configure.in revision adc9a96eb3f2ee826dea80b7bc61273221c70139
842ae4bd224140319ae7feec1872b93dfd491143fieldingdnl ## Process this file with autoconf to produce a configure script
842ae4bd224140319ae7feec1872b93dfd491143fieldingAC_PREREQ(2.13)
842ae4bd224140319ae7feec1872b93dfd491143fieldingAC_CONFIG_HEADER(include/ap_config_auto.h)
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndAC_CONFIG_AUX_DIR(.)
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnddnl ## This is the central place where Apache's version should be kept.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnddnl AM_INIT_AUTOMAKE(apache, 2.0-dev)
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndVERSION="apache-2.0-dev"
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndAPACHE_VERSION=$VERSION
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndAPACHE_SUBST(APACHE_VERSION)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingtest "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingtest "$prefix" = "NONE" && prefix='/usr/local'
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingdnl Absolute source/build directory
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingabs_srcdir=`(cd $srcdir && pwd)`
7c1827557873d94e3a0323172837fca1c3b27f6cwroweabs_builddir=`pwd`
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingAPACHE_CONFIG_NICE(config.nice)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingdnl If the source dir is not equal to the build dir,
95db5a4aa11a83bd25a6e11b53dd62c0af243e92wrowednl then we are running in VPATH mode.
7c1827557873d94e3a0323172837fca1c3b27f6cwroweif test "$abs_builddir" != "$abs_srcdir"; then
f6bd1c0924641e60dcc56cbaba27d3cb3ce4917erbb USE_VPATH=1
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingAC_CANONICAL_SYSTEM
7c1827557873d94e3a0323172837fca1c3b27f6cwrowednl ## Preload our OS configuration
f6bd1c0924641e60dcc56cbaba27d3cb3ce4917erbbAPR_PRELOAD
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingAPACHE_PRELOAD
c2549f0b237ac86f3623a601a766969d805dbc2anddnl Process command line arguments. This is done early in the process so the
c2549f0b237ac86f3623a601a766969d805dbc2anddnl user can get feedback quickly in case of an error.
c2549f0b237ac86f3623a601a766969d805dbc2andAPACHE_CHECK_DBM
c2549f0b237ac86f3623a601a766969d805dbc2anddnl ## Check for programs
c2549f0b237ac86f3623a601a766969d805dbc2andAC_PROG_AWK
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingAC_PROG_INSTALL
95db5a4aa11a83bd25a6e11b53dd62c0af243e92wroweAC_PROG_LN_S
7b3590ada24130fe5d52ce7fbf98177e3d121a4cstoddardAC_CHECK_TOOL(RANLIB, ranlib, true)
7c1827557873d94e3a0323172837fca1c3b27f6cwrowednl AC_PATH_PROG(PERL_PATH, perl)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingREENTRANCY_FLAGS
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)/srclib/apr/include"
INCLUDES="$INCLUDES -I\$(top_builddir)/include -I\$(top_builddir)/srclib/apr/include"
esyscmd(./build/config-stubs .)
$SHELL $srcdir/ltconfig --output=shlibtool --disable-static --srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh
AP_LIBS="$AP_LIBS srclib/sdbm/libsdbm.la"
INCLUDES="$INCLUDES -I\$(top_srcdir)/srclib/sdbm"
AP_LIBS="$AP_LIBS srclib/expat-lite/libexpat.la"
INCLUDES="$INCLUDES -I\$(top_srcdir)/srclib/expat-lite"
APACHE_FAST_OUTPUT(srclib/$i/Makefile)
RUN_SUBDIR_CONFIG_NOW(srclib/apr, $apache_apr_flags)
RUN_SUBDIR_CONFIG_NOW(srclib/apr-util, "--with-apr=../apr")
RUN_SUBDIR_CONFIG_NOW(srclib/pcre)
dnl ## Build modules.c
rm -f 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/build/PrintPath perl`
dnl If we are running on BSD/OS, we need to use the BSD .include syntax.