397 lines
12 KiB
Plaintext
397 lines
12 KiB
Plaintext
--- httpd-2.1.3-alpha/acinclude.m4
|
|
+++ httpd-2.1.3-alpha/acinclude.m4
|
|
@@ -4,25 +4,25 @@
|
|
dnl AC_HELP_STRING, so let's try to call it if we can.
|
|
dnl Note: this define must be on one line so that it can be properly returned
|
|
dnl as the help string.
|
|
-AC_DEFUN(APACHE_HELP_STRING,[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING($1,$2),[ ]$1 substr([ ],len($1))$2)])dnl
|
|
+AC_DEFUN([APACHE_HELP_STRING],[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING($1,$2),[ ]$1 substr([ ],len($1))$2)])dnl
|
|
|
|
dnl APACHE_SUBST(VARIABLE)
|
|
dnl Makes VARIABLE available in generated files
|
|
dnl (do not use @variable@ in Makefiles, but $(variable))
|
|
-AC_DEFUN(APACHE_SUBST,[
|
|
+AC_DEFUN([APACHE_SUBST],[
|
|
APACHE_VAR_SUBST="$APACHE_VAR_SUBST $1"
|
|
AC_SUBST($1)
|
|
])
|
|
|
|
dnl APACHE_FAST_OUTPUT(FILENAME)
|
|
dnl Perform substitutions on FILENAME (Makefiles only)
|
|
-AC_DEFUN(APACHE_FAST_OUTPUT,[
|
|
+AC_DEFUN([APACHE_FAST_OUTPUT],[
|
|
APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $1"
|
|
])
|
|
|
|
dnl APACHE_GEN_CONFIG_VARS
|
|
dnl Creates config_vars.mk
|
|
-AC_DEFUN(APACHE_GEN_CONFIG_VARS,[
|
|
+AC_DEFUN([APACHE_GEN_CONFIG_VARS],[
|
|
APACHE_SUBST(abs_srcdir)
|
|
APACHE_SUBST(bindir)
|
|
APACHE_SUBST(sbindir)
|
|
@@ -109,14 +109,14 @@
|
|
|
|
dnl APACHE_GEN_MAKEFILES
|
|
dnl Creates Makefiles
|
|
-AC_DEFUN(APACHE_GEN_MAKEFILES,[
|
|
+AC_DEFUN([APACHE_GEN_MAKEFILES],[
|
|
$SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
|
|
])
|
|
|
|
dnl ## APACHE_OUTPUT(file)
|
|
dnl ## adds "file" to the list of files generated by AC_OUTPUT
|
|
dnl ## This macro can be used several times.
|
|
-AC_DEFUN(APACHE_OUTPUT, [
|
|
+AC_DEFUN([APACHE_OUTPUT], [
|
|
APACHE_OUTPUT_FILES="$APACHE_OUTPUT_FILES $1"
|
|
])
|
|
|
|
@@ -125,7 +125,7 @@
|
|
dnl
|
|
dnl If rlim_t is not defined, define it to int
|
|
dnl
|
|
-AC_DEFUN(APACHE_TYPE_RLIM_T, [
|
|
+AC_DEFUN([APACHE_TYPE_RLIM_T], [
|
|
AC_CACHE_CHECK([for rlim_t], ac_cv_type_rlim_t, [
|
|
AC_TRY_COMPILE([
|
|
#include <sys/types.h>
|
|
@@ -143,7 +143,7 @@
|
|
])
|
|
|
|
dnl APACHE_MODPATH_INIT(modpath)
|
|
-AC_DEFUN(APACHE_MODPATH_INIT,[
|
|
+AC_DEFUN([APACHE_MODPATH_INIT],[
|
|
current_dir=$1
|
|
modpath_current=modules/$1
|
|
modpath_static=
|
|
@@ -152,7 +152,7 @@
|
|
> $modpath_current/modules.mk
|
|
])dnl
|
|
dnl
|
|
-AC_DEFUN(APACHE_MODPATH_FINISH,[
|
|
+AC_DEFUN([APACHE_MODPATH_FINISH],[
|
|
echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
|
|
echo "static = $modpath_static" >> $modpath_current/modules.mk
|
|
echo "shared = $modpath_shared" >> $modpath_current/modules.mk
|
|
@@ -165,7 +165,7 @@
|
|
])dnl
|
|
dnl
|
|
dnl APACHE_MODPATH_ADD(name[, shared[, objects [, ldflags[, libs]]]])
|
|
-AC_DEFUN(APACHE_MODPATH_ADD,[
|
|
+AC_DEFUN([APACHE_MODPATH_ADD],[
|
|
if test -z "$3"; then
|
|
objects="mod_$1.lo"
|
|
else
|
|
@@ -209,7 +209,7 @@
|
|
dnl setting. otherwise, fall under the "all" setting.
|
|
dnl explicit yes/no always overrides.
|
|
dnl
|
|
-AC_DEFUN(APACHE_MODULE,[
|
|
+AC_DEFUN([APACHE_MODULE],[
|
|
AC_MSG_CHECKING(whether to enable mod_$1)
|
|
define([optname],[--]ifelse($5,yes,disable,enable)[-]translit($1,_,-))dnl
|
|
AC_ARG_ENABLE(translit($1,_,-),APACHE_HELP_STRING(optname(),$2),,enable_$1=ifelse($5,,maybe-all,$5))
|
|
@@ -282,7 +282,7 @@
|
|
dnl
|
|
dnl APACHE_ENABLE_MODULES
|
|
dnl
|
|
-AC_DEFUN(APACHE_ENABLE_MODULES,[
|
|
+AC_DEFUN([APACHE_ENABLE_MODULES],[
|
|
module_selection=default
|
|
module_default=yes
|
|
|
|
@@ -312,7 +312,7 @@
|
|
])
|
|
])
|
|
|
|
-AC_DEFUN(APACHE_REQUIRE_CXX,[
|
|
+AC_DEFUN([APACHE_REQUIRE_CXX],[
|
|
if test -z "$apache_cxx_done"; then
|
|
AC_PROG_CXX
|
|
AC_PROG_CXXCPP
|
|
@@ -326,7 +326,7 @@
|
|
dnl Configure for the detected openssl/ssl-c toolkit installation, giving
|
|
dnl preference to "--with-ssl=<path>" if it was specified.
|
|
dnl
|
|
-AC_DEFUN(APACHE_CHECK_SSL_TOOLKIT,[
|
|
+AC_DEFUN([APACHE_CHECK_SSL_TOOLKIT],[
|
|
if test "x$ap_ssltk_configured" = "x"; then
|
|
dnl initialise the variables we use
|
|
ap_ssltk_base=""
|
|
@@ -499,14 +499,14 @@
|
|
dnl apache will use while generating scripts like autoconf and apxs and
|
|
dnl the default config file.
|
|
|
|
-AC_DEFUN(APACHE_SUBST_EXPANDED_ARG,[
|
|
+AC_DEFUN([APACHE_SUBST_EXPANDED_ARG],[
|
|
APR_EXPAND_VAR(exp_$1, [$]$1)
|
|
APACHE_SUBST(exp_$1)
|
|
APR_PATH_RELATIVE(rel_$1, [$]exp_$1, ${prefix})
|
|
APACHE_SUBST(rel_$1)
|
|
])
|
|
|
|
-AC_DEFUN(APACHE_EXPORT_ARGUMENTS,[
|
|
+AC_DEFUN([APACHE_EXPORT_ARGUMENTS],[
|
|
APACHE_SUBST_EXPANDED_ARG(exec_prefix)
|
|
APACHE_SUBST_EXPANDED_ARG(bindir)
|
|
APACHE_SUBST_EXPANDED_ARG(sbindir)
|
|
--- httpd-2.1.3-alpha/build/apr_common.m4
|
|
+++ httpd-2.1.3-alpha/build/apr_common.m4
|
|
@@ -22,7 +22,7 @@
|
|
dnl
|
|
dnl Saves a snapshot of the configure command-line for later reuse
|
|
dnl
|
|
-AC_DEFUN(APR_CONFIG_NICE,[
|
|
+AC_DEFUN([APR_CONFIG_NICE],[
|
|
rm -f $1
|
|
cat >$1<<EOF
|
|
#! /bin/sh
|
|
@@ -74,7 +74,7 @@
|
|
|
|
dnl APR_MKDIR_P_CHECK(fallback-mkdir-p)
|
|
dnl checks whether mkdir -p works
|
|
-AC_DEFUN(APR_MKDIR_P_CHECK,[
|
|
+AC_DEFUN([APR_MKDIR_P_CHECK],[
|
|
AC_CACHE_CHECK(for working mkdir -p, ac_cv_mkdir_p,[
|
|
test -d conftestdir && rm -rf conftestdir
|
|
mkdir -p conftestdir/somedir >/dev/null 2>&1
|
|
@@ -112,7 +112,7 @@
|
|
dnl Trying to optimize this is left as an exercise to the reader who wants
|
|
dnl to put up with more autoconf craziness. I give up.
|
|
dnl
|
|
-AC_DEFUN(APR_SUBDIR_CONFIG, [
|
|
+AC_DEFUN([APR_SUBDIR_CONFIG], [
|
|
# save our work to this point; this allows the sub-package to use it
|
|
AC_CACHE_SAVE
|
|
|
|
@@ -180,7 +180,7 @@
|
|
dnl
|
|
dnl Stores the variable (usually a Makefile macro) for later restoration
|
|
dnl
|
|
-AC_DEFUN(APR_SAVE_THE_ENVIRONMENT,[
|
|
+AC_DEFUN([APR_SAVE_THE_ENVIRONMENT],[
|
|
apr_ste_save_$1="$$1"
|
|
])dnl
|
|
|
|
@@ -192,7 +192,7 @@
|
|
dnl and restoring the original variable contents. This makes it possible
|
|
dnl for a user to override configure when it does something stupid.
|
|
dnl
|
|
-AC_DEFUN(APR_RESTORE_THE_ENVIRONMENT,[
|
|
+AC_DEFUN([APR_RESTORE_THE_ENVIRONMENT],[
|
|
if test "x$apr_ste_save_$1" = "x"; then
|
|
$2$1="$$1"
|
|
$1=
|
|
@@ -216,7 +216,7 @@
|
|
dnl
|
|
dnl Set variable iff it's currently null
|
|
dnl
|
|
-AC_DEFUN(APR_SETIFNULL,[
|
|
+AC_DEFUN([APR_SETIFNULL],[
|
|
if test -z "$$1"; then
|
|
test "x$silent" != "xyes" && echo " setting $1 to \"$2\""
|
|
$1="$2"
|
|
@@ -228,7 +228,7 @@
|
|
dnl
|
|
dnl Set variable no matter what
|
|
dnl
|
|
-AC_DEFUN(APR_SETVAR,[
|
|
+AC_DEFUN([APR_SETVAR],[
|
|
test "x$silent" != "xyes" && echo " forcing $1 to \"$2\""
|
|
$1="$2"
|
|
])dnl
|
|
@@ -238,7 +238,7 @@
|
|
dnl
|
|
dnl Add value to variable
|
|
dnl
|
|
-AC_DEFUN(APR_ADDTO,[
|
|
+AC_DEFUN([APR_ADDTO],[
|
|
if test "x$$1" = "x"; then
|
|
test "x$silent" != "xyes" && echo " setting $1 to \"$2\""
|
|
$1="$2"
|
|
@@ -265,7 +265,7 @@
|
|
dnl
|
|
dnl Remove a value from a variable
|
|
dnl
|
|
-AC_DEFUN(APR_REMOVEFROM,[
|
|
+AC_DEFUN([APR_REMOVEFROM],[
|
|
if test "x$$1" = "x$2"; then
|
|
test "x$silent" != "xyes" && echo " nulling $1"
|
|
$1=""
|
|
@@ -289,7 +289,7 @@
|
|
dnl
|
|
dnl APR_CHECK_DEFINE_FILES( symbol, header_file [header_file ...] )
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_DEFINE_FILES,[
|
|
+AC_DEFUN([APR_CHECK_DEFINE_FILES],[
|
|
AC_CACHE_CHECK([for $1 in $2],ac_cv_define_$1,[
|
|
ac_cv_define_$1=no
|
|
for curhdr in $2
|
|
@@ -311,7 +311,7 @@
|
|
dnl
|
|
dnl APR_CHECK_DEFINE(symbol, header_file)
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_DEFINE,[
|
|
+AC_DEFUN([APR_CHECK_DEFINE],[
|
|
AC_CACHE_CHECK([for $1 in $2],ac_cv_define_$1,[
|
|
AC_EGREP_CPP(YES_IS_DEFINED, [
|
|
#include <$2>
|
|
@@ -328,7 +328,7 @@
|
|
dnl
|
|
dnl APR_CHECK_APR_DEFINE( symbol )
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_APR_DEFINE,[
|
|
+AC_DEFUN([APR_CHECK_APR_DEFINE],[
|
|
apr_old_cppflags=$CPPFLAGS
|
|
CPPFLAGS="$CPPFLAGS $INCLUDES"
|
|
AC_EGREP_CPP(YES_IS_DEFINED, [
|
|
@@ -353,7 +353,7 @@
|
|
fi])
|
|
])
|
|
|
|
-define(APR_IFALLYES,[dnl
|
|
+define([APR_IFALLYES],[dnl
|
|
ac_rc=yes
|
|
for ac_spec in $1; do
|
|
ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
|
|
@@ -405,7 +405,7 @@
|
|
])
|
|
|
|
|
|
-define(APR_DECISION_OVERRIDE,[dnl
|
|
+define([APR_DECISION_OVERRIDE],[dnl
|
|
ac_decision=''
|
|
for ac_item in $1; do
|
|
eval "ac_decision_this=\$ac_decision_${ac_item}"
|
|
@@ -417,13 +417,13 @@
|
|
])
|
|
|
|
|
|
-define(APR_DECISION_FORCE,[dnl
|
|
+define([APR_DECISION_FORCE],[dnl
|
|
ac_decision="$1"
|
|
eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
|
|
])
|
|
|
|
|
|
-define(APR_END_DECISION,[dnl
|
|
+define([APR_END_DECISION],[dnl
|
|
if test ".$ac_decision" = .; then
|
|
echo "[$]0:Error: decision on $ac_decision_item failed" 1>&2
|
|
exit 1
|
|
@@ -443,7 +443,7 @@
|
|
dnl A variant of AC_CHECK_SIZEOF which allows the checking of
|
|
dnl sizes of non-builtin types
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_SIZEOF_EXTENDED,
|
|
+AC_DEFUN([APR_CHECK_SIZEOF_EXTENDED],
|
|
[changequote(<<,>>)dnl
|
|
dnl The name to #define
|
|
define(<<AC_TYPE_NAME>>, translit(sizeof_$2, [a-z *], [A-Z_P]))dnl
|
|
@@ -515,7 +515,7 @@
|
|
dnl string.
|
|
dnl
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_STRERROR_R_RC,[
|
|
+AC_DEFUN([APR_CHECK_STRERROR_R_RC],[
|
|
AC_MSG_CHECKING(for type of return code from strerror_r)
|
|
AC_TRY_RUN([
|
|
#include <errno.h>
|
|
@@ -550,7 +550,7 @@
|
|
dnl structure on this platform. Single UNIX Spec says d_ino,
|
|
dnl BSD uses d_fileno. Undef to find the real beast.
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_DIRENT_INODE, [
|
|
+AC_DEFUN([APR_CHECK_DIRENT_INODE], [
|
|
AC_CACHE_CHECK([for inode member of struct dirent], apr_cv_dirent_inode, [
|
|
apr_cv_dirent_inode=no
|
|
AC_TRY_COMPILE([
|
|
@@ -588,7 +588,7 @@
|
|
dnl Note that this is worthless without DT_xxx macros, so
|
|
dnl look for one while we are at it.
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_DIRENT_TYPE,[
|
|
+AC_DEFUN([APR_CHECK_DIRENT_TYPE],[
|
|
AC_CACHE_CHECK([for file type member of struct dirent], apr_cv_dirent_type,[
|
|
apr_cv_dirent_type=no
|
|
AC_TRY_COMPILE([
|
|
@@ -637,7 +637,7 @@
|
|
dnl all "." and "-" chars. If the 3rd parameter is "yes" then instead of
|
|
dnl setting to 1 or 0, we set FLAG-TO-SET to yes or no.
|
|
dnl
|
|
-AC_DEFUN(APR_FLAG_HEADERS,[
|
|
+AC_DEFUN([APR_FLAG_HEADERS],[
|
|
AC_CHECK_HEADERS($1)
|
|
for aprt_i in $1
|
|
do
|
|
@@ -658,7 +658,7 @@
|
|
dnl is "yes" then instead of setting to 1 or 0, we set FLAG-TO-SET
|
|
dnl to yes or no.
|
|
dnl
|
|
-AC_DEFUN(APR_FLAG_FUNCS,[
|
|
+AC_DEFUN([APR_FLAG_FUNCS],[
|
|
AC_CHECK_FUNCS($1)
|
|
for aprt_j in $1
|
|
do
|
|
@@ -683,7 +683,7 @@
|
|
dnl APR_EXPAND_VAR(fraz, $baz)
|
|
dnl $fraz is now "1/2/3"
|
|
dnl
|
|
-AC_DEFUN(APR_EXPAND_VAR,[
|
|
+AC_DEFUN([APR_EXPAND_VAR],[
|
|
ap_last=
|
|
ap_cur="$2"
|
|
while test "x${ap_cur}" != "x${ap_last}";
|
|
@@ -702,7 +702,7 @@
|
|
dnl orig_path="${prefix}/bar"
|
|
dnl APR_PATH_RELATIVE(final_path, $orig_path, $prefix)
|
|
dnl $final_path now contains "bar"
|
|
-AC_DEFUN(APR_PATH_RELATIVE,[
|
|
+AC_DEFUN([APR_PATH_RELATIVE],[
|
|
ap_stripped=`echo $2 | sed -e "s#^$3##"`
|
|
# check if the stripping was successful
|
|
if test "x$2" != "x${ap_stripped}"; then
|
|
@@ -720,12 +720,12 @@
|
|
dnl Note: this define must be on one line so that it can be properly returned
|
|
dnl as the help string. When using this macro with a multi-line RHS, ensure
|
|
dnl that you surround the macro invocation with []s
|
|
-AC_DEFUN(APR_HELP_STRING,[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING([$1],[$2]),[ ][$1] substr([ ],len($1))[$2])])
|
|
+AC_DEFUN([APR_HELP_STRING],[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING([$1],[$2]),[ ][$1] substr([ ],len($1))[$2])])
|
|
|
|
dnl
|
|
dnl APR_LAYOUT(configlayout, layoutname [, extravars])
|
|
dnl
|
|
-AC_DEFUN(APR_LAYOUT,[
|
|
+AC_DEFUN([APR_LAYOUT],[
|
|
if test ! -f $srcdir/config.layout; then
|
|
echo "** Error: Layout file $srcdir/config.layout not found"
|
|
echo "** Error: Cannot use undefined layout '$LAYOUT'"
|
|
@@ -781,7 +781,7 @@
|
|
dnl
|
|
dnl APR_ENABLE_LAYOUT(default layout name [, extra vars])
|
|
dnl
|
|
-AC_DEFUN(APR_ENABLE_LAYOUT,[
|
|
+AC_DEFUN([APR_ENABLE_LAYOUT],[
|
|
AC_ARG_ENABLE(layout,
|
|
[ --enable-layout=LAYOUT],[
|
|
LAYOUT=$enableval
|
|
@@ -802,7 +802,7 @@
|
|
dnl a reimplementation of autoconf's argument parser,
|
|
dnl used here to allow us to co-exist layouts and argument based
|
|
dnl set ups.
|
|
-AC_DEFUN(APR_PARSE_ARGUMENTS,[
|
|
+AC_DEFUN([APR_PARSE_ARGUMENTS],[
|
|
ac_prev=
|
|
for ac_option
|
|
do
|
|
@@ -924,7 +924,7 @@
|
|
dnl
|
|
dnl Determine what program we can use to generate .deps-style dependencies
|
|
dnl
|
|
-AC_DEFUN(APR_CHECK_DEPEND,[
|
|
+AC_DEFUN([APR_CHECK_DEPEND],[
|
|
dnl Try to determine what depend program we can use
|
|
dnl All GCC-variants should have -MM.
|
|
dnl If not, then we can check on those, too.
|