файл configure.in Код | # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_INIT([mod_log_post], [0.1.0], [[email protected]]) AC_CONFIG_SRCDIR([mod_log_post.c])
# Checks for programs. AC_PROG_CC AC_STDC_HEADERS
AC_PATH_PROG([sed], [sed], [no]) if test "$sed" = "no"; then AC_MSG_ERROR([The sed (stream editor) binary is required, please install it!]) else [SED="$sed"] fi AC_SUBST(SED)
AC_PATH_PROG([install], [install], [no]) if test "$install" = "no"; then AC_MSG_ERROR([The install binary e.g. from coreutils is required, please install it!]) else [INSTALL="$install"] fi AC_SUBST(INSTALL)
# We use axps to compile source files, which may be in /usr/sbin. AC_ARG_WITH(apxs, AS_HELP_STRING([--with-apxs=PATH], [Specify path to apxs (if needed)]), [APXS="$withval"], [AC_PATH_PROGS([APXS], [apxs apxs2], , [$PATH:/usr/local/sbin:/usr/sbin])]) if test -z $APXS; then AC_MSG_ERROR([The apxs (APache eXtenSion) tool is required, please install e.g. httpd-devel or apache2-devel!]) fi AC_SUBST(APXS)
# Try to find the configuration directory for configuration file. AC_ARG_WITH(conf-dir, AS_HELP_STRING([--with-conf-dir=PATH], [Override configuration directoy (if needed)]), [CONFDIR="$withval"], [AC_DEFINE_UNQUOTED(CONFDIR, "$withval")]) if test -z $CONFDIR; then for dir in /etc/httpd/conf.d /usr/local/etc/apache22; do if test -d $dir; then CONFDIR=$dir break fi done fi if test -z $CONFDIR; then AC_MSG_ERROR([The Apache configuration directory wasn't found, please use --with-conf-dir=PATH when re-running!]) else AC_MSG_CHECKING([for configuration directory]) AC_MSG_RESULT($CONFDIR) fi AC_SUBST(CONFDIR)
# Try to find the log file directory for configuration file. AC_ARG_WITH(log-dir, AS_HELP_STRING([--with-log-dir=PATH], [Override log file directoy (if needed)]), [LOGDIR="$withval"], [AC_DEFINE_UNQUOTED(LOGDIR, "$withval")]) if test -z $LOGDIR; then for dir in /var/log/httpd /var/log/apache2; do if test -d $dir; then LOGDIR=$dir break fi done fi if test -z $LOGDIR; then AC_MSG_ERROR([The Apache log file directory wasn't found, please use --with-log-dir=PATH when re-running!]) else AC_MSG_CHECKING([for log file directory]) AC_MSG_RESULT($LOGDIR) fi AC_SUBST(LOGDIR)
# Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([memset strcasecmp strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol])
# Create makefile. AC_CONFIG_FILES([Makefile]) AC_OUTPUT
|
Команда выдает: Цитата | poiuyt123410# ./configure --with-conf-dir=/usr/local/etc/apache22 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sed... /usr/bin/sed checking for install... /usr/bin/install checking for apxs... /usr/local/sbin/apxs checking for configuration directory... /usr/local/etc/apache22 configure: error: The Apache log file directory wasn't found, please use --with-log-dir=PATH when re-running!
|
В чем причина этой ошибки при попытке установки mod_log_post? конфиг апача здесь /usr/local/etc/apache22 система freebsd
|