configure.in revision 65a71e30f9ae4ac4d8a71faf25493015bc4f467c
b095ab1f1a0708c604aa661d916b5dc9317d624crbbdnl Autoconf configuration for Apache httpd
6e24b94d1e7122e128d9c19b3dff0e49475f5d37rbbdnl Use ./buildconf to produce a configure script
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaAC_PREREQ(2.13)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaAC_INIT(ABOUT_APACHE)
ce3da141a81ef0e22f46e496675f602e3c483b88rbbAC_CONFIG_HEADER(include/ap_config_auto.h)
a3658aa5c00f07bf898d46fdddae880c52424872saschaAC_CONFIG_AUX_DIR(srclib/apr/build)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadnl # Include our own M4 macros along with those for APR and libtool
bc26992c7172dff00bc89fbfb5f0c6e3c4d6a261rbbdnl Save user-defined environment settings for later restoration
2795c373a9fb112dc77576c1dfc23119f02d598amanojAPR_SAVE_THE_ENVIRONMENT(CPPFLAGS)
2795c373a9fb112dc77576c1dfc23119f02d598amanojAPR_SAVE_THE_ENVIRONMENT(CFLAGS)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaAPR_SAVE_THE_ENVIRONMENT(CXXFLAGS)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaAPR_SAVE_THE_ENVIRONMENT(LDFLAGS)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaAPR_SAVE_THE_ENVIRONMENT(LIBS)
7bfe076b680e6e591add6cdc754ce9a6910682a2saschaAPR_SAVE_THE_ENVIRONMENT(INCLUDES)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadnl Generate ./config.nice for reproducing runs of configure
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaAPR_CONFIG_NICE(config.nice)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadnl XXX we can't just use AC_PREFIX_DEFAULT because that isn't subbed in
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadnl by configure until it is too late. Is that how it should be or not?
46a06e5f359747d9b673ea77fcef89a851192e18rbbdnl Something seems broken here.
46a06e5f359747d9b673ea77fcef89a851192e18rbbAC_PREFIX_DEFAULT(/usr/local/apache2)
46a06e5f359747d9b673ea77fcef89a851192e18rbbtest "$prefix" = "NONE" && prefix='/usr/local/apache2'
6ca0e6973c8176100f4a426444823ae5e777e28fsaschatest "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadnl ## Run configure for packages Apache uses
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaecho $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
de2aecd8da21eeae4394088cca196dfcb491de84rbbAPR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --prefix=$prefix")
26d4668b602c703d63655271b1caaa420bf7a572rbbecho $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
26d4668b602c703d63655271b1caaa420bf7a572rbbAPR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --prefix=$prefix")
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaecho $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"
02a2457c82c9f4e5e95e6e97d249e8a20c4154d6saschaAPR_SUBDIR_CONFIG(srclib/pcre, "--prefix=$prefix")
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaecho $ac_n "${nl}Configuring Apache httpd ...${nl}"
7bfe076b680e6e591add6cdc754ce9a6910682a2saschaecho $ac_n "obtaining flag settings from the sub-configures...${nl}"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadnl Now that we have APR's EXTRA_flags in our environment, move them over
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadnl to the normal variables to avoid duplications and use them for testing.
7bfe076b680e6e591add6cdc754ce9a6910682a2saschadnl We ignore EXTRA_INCLUDES because our own includes will encompass them.
2a67190265146d3e80b1b0c9ef04f181c8db7f64rbbAPR_ADDTO(CFLAGS, $EXTRA_CFLAGS)
2a67190265146d3e80b1b0c9ef04f181c8db7f64rbbAPR_ADDTO(CPPFLAGS, $EXTRA_CPPFLAGS)
2a67190265146d3e80b1b0c9ef04f181c8db7f64rbbAPR_ADDTO(LDFLAGS, $EXTRA_LDFLAGS)
7bfe076b680e6e591add6cdc754ce9a6910682a2saschaAPR_ADDTO(LIBS, $EXTRA_LIBS)
87193a6150fcb830b68d79fdbb3f068cb3724677saschaEXTRA_CFLAGS=
87193a6150fcb830b68d79fdbb3f068cb3724677saschaEXTRA_CPPFLAGS=
87193a6150fcb830b68d79fdbb3f068cb3724677saschaEXTRA_LDFLAGS=
87193a6150fcb830b68d79fdbb3f068cb3724677saschaEXTRA_INCLUDES=
26f3a893a0221238d498d03cc19c11c0373f61d6rbbdnl Absolute source/build directory
26f3a893a0221238d498d03cc19c11c0373f61d6rbbabs_srcdir=`(cd $srcdir && pwd)`
f8bdb98352f4ed1a5dba2471bc9486ef26d2ceberbbabs_builddir=`pwd`
f8bdb98352f4ed1a5dba2471bc9486ef26d2ceberbbdnl If the source dir is not equal to the build dir,
f8bdb98352f4ed1a5dba2471bc9486ef26d2ceberbbdnl then we are running in VPATH mode.
0b483bc2a16712efe6aa95e06a57ec2c1cb956c7saschaif test "$abs_builddir" != "$abs_srcdir"; then
6ca0e6973c8176100f4a426444823ae5e777e28fsascha USE_VPATH=1
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha APR_ADDTO(INCLUDES, [-I. -I\$(srcdir) -I\$(top_builddir)/os/\$(OS_DIR) -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_builddir)/server/mpm/\$(MPM_NAME) -I\$(top_srcdir)/server/mpm/\$(MPM_NAME) -I\$(top_builddir)/modules/http -I\$(top_srcdir)/modules/http -I\$(top_builddir)/include -I\$(top_srcdir)/include -I\$(top_builddir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_builddir)/srclib/apr-util/include -I\$(top_srcdir)/srclib/apr-util/include])
6cb7893a671cebe32dd0455ba79781a4834e141egregames APR_ADDTO(INCLUDES, [-I. -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr-util/include])
6cb7893a671cebe32dd0455ba79781a4834e141egregamesecho $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaAC_CANONICAL_SYSTEM
6ca0e6973c8176100f4a426444823ae5e777e28fsaschacase $host in
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha # Use a custom made libtool replacement
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha echo "using aplibtool"
bbd84c2a95afbca61ef7897e2fb8e897e4682f9drbb SH_LIBTOOL="$LIBTOOL --shared --export-all"
b53eaa68ccc40475cbb2af34ab0e342223b76dd6rbb CORE_IMPLIB_FILE="ApacheCoreOS2.la"
156e4036ec6e4b5d858025a1af72403c0eb15d9adreid CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
156e4036ec6e4b5d858025a1af72403c0eb15d9adreid MK_IMPLIB="emximp"
b6d830878cedf541e64b399766a38ffc5d8edf05gstein other_targets="$other_targets os2core"
b095ab1f1a0708c604aa661d916b5dc9317d624crbb INSTALL_PROG_FLAGS="-e .exe"
b095ab1f1a0708c604aa661d916b5dc9317d624crbb SHLTCFLAGS=""
6ca0e6973c8176100f4a426444823ae5e777e28fsascha LTCFLAGS=""
LIBTOOL='$(SHELL) $(top_builddir)/srclib/apr/libtool $(LTFLAGS)'
libtoolversion=`$abs_builddir/srclib/apr/libtool --version`
string.h \
limits.h \
unistd.h \
pwd.h \
grp.h \
[if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-port requires a value (the TCP port number)'); else PORT="$withval"; fi],
AC_ARG_ENABLE(maintainer-mode,[ --enable-maintainer-mode Turn on debugging and compile time warnings],
esyscmd(./build/config-stubs .)
$SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-bE:$abs_srcdir/server/httpd.exp"
SH_LDFLAGS="$SH_LDFLAGS -Wl,-bI:$abs_srcdir/server/httpd.exp"
HTTPD_LDFLAGS="$HTTPD_LDFLAGS --main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
SH_LDFLAGS="$SH_LDFLAGS --core-dll=$abs_srcdir/apachecore.dll"
AP_LIBS="$AP_LIBS $abs_builddir/srclib/apr/libapr.la"
APACHE_FAST_OUTPUT(srclib/$i/Makefile)
APACHE_FAST_OUTPUT(test/Makefile)
dnl ## Build modules.c
rm -f modules.c
AC_DEFINE_UNQUOTED(SERVER_CONFIG_FILE, "conf/$progname.conf",
perlbin=`$ac_aux_dir/PrintPath perl`
perlbin="/replace/with/path/to/perl/interpreter"
dnl If we are running on BSD/OS, we need to use the BSD .include syntax.
if make --version > /dev/null 2>&1; then
AC_OUTPUT($APACHE_OUTPUT_FILES support/apxs support/apachectl support/dbmmanage support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk,,[