configure.in revision 96e6cafca226a8a2a64a7bbdc634b5b2679c9e0c
89ea179b603cecfd1096a673073325f13028c421Didier Rochednl ## Process this file with autoconf to produce a configure script
89ea179b603cecfd1096a673073325f13028c421Didier RocheAC_PREREQ(2.13)
89ea179b603cecfd1096a673073325f13028c421Didier RocheAC_CONFIG_AUX_DIR(.)
89ea179b603cecfd1096a673073325f13028c421Didier Rochednl ## This is the central place where Apache's version should be kept.
89ea179b603cecfd1096a673073325f13028c421Didier Rochednl AM_INIT_AUTOMAKE(apache, 2.0-dev)
89ea179b603cecfd1096a673073325f13028c421Didier RocheVERSION="apache-2.0-dev"
89ea179b603cecfd1096a673073325f13028c421Didier RocheAPACHE_VERSION=$VERSION
89ea179b603cecfd1096a673073325f13028c421Didier RocheAPACHE_SUBST(APACHE_VERSION)
89ea179b603cecfd1096a673073325f13028c421Didier Rochetest "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
89ea179b603cecfd1096a673073325f13028c421Didier Rochetest "$prefix" = "NONE" && prefix='/usr/local'
89ea179b603cecfd1096a673073325f13028c421Didier Rochednl Absolute source/build directory
89ea179b603cecfd1096a673073325f13028c421Didier Rocheabs_srcdir=`(cd $srcdir && pwd)`
89ea179b603cecfd1096a673073325f13028c421Didier Rocheabs_builddir=`pwd`
89ea179b603cecfd1096a673073325f13028c421Didier RocheAPACHE_CONFIG_NICE(config.nice)
89ea179b603cecfd1096a673073325f13028c421Didier Rochednl If the source dir is not equal to the build dir,
89ea179b603cecfd1096a673073325f13028c421Didier Rochednl then we are running in VPATH mode.
string.h \
stdlib.h \
ctype.h \
limits.h \
unistd.h \
netdb.h \
pwd.h \
grp.h \
[if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG"; else CFLAGS="$CFLAGS -g"; fi])
INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/lib/apr/include"
INCLUDES="$INCLUDES -I\$(top_builddir)/include -I\$(top_builddir)/lib/apr/include"
esyscmd(./helpers/config-stubs .)
$SHELL $srcdir/ltconfig --output=shlibtool --disable-static --srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh
dnl AP_LIB_DIRS specifies the additional libs from src/lib/ that we need
AP_LIBS="$AP_LIBS lib/sdbm/libsdbm.la"
INCLUDES="$INCLUDES -I\$(top_srcdir)/lib/sdbm"
AP_LIBS="$AP_LIBS lib/expat-lite/libexpat.la"
INCLUDES="$INCLUDES -I\$(top_srcdir)/lib/expat-lite"
APACHE_FAST_OUTPUT(lib/$i/Makefile)
RUN_SUBDIR_CONFIG_NOW(lib/apr)
RUN_SUBDIR_CONFIG_NOW(lib/pcre)
dnl ## Build modules.c
rm -f $srcdir/modules.c
echo "#define SUEXEC_BIN \"$bindir/suexec\"" >> ${path_h}.new
echo "#define SERVER_CONFIG_FILE \"conf/$progname.conf\"" >> ${path_h}.new
cmp ${path_h}.new ${path_h} >/dev/null 2>&1
path_h=./include/ap_config_path.h
perlbin=`$srcdir/helpers/PrintPath perl`
dnl If we are running on BSD/OS, we need to use the BSD .include syntax.
AC_OUTPUT($APACHE_OUTPUT_FILES support/apxs,,[