summaryrefslogtreecommitdiff
path: root/build/apr_common.m4
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2006-07-19 11:07:31 +0000
committerJoe Orton <jorton@apache.org>2006-07-19 11:07:31 +0000
commitc7948d078cb9e1e8dac5e98a63735090f4a5d1b5 (patch)
tree871287135967b086e4bd1789646b364bfb10739c /build/apr_common.m4
parent522580536b73c31a2a1c99b94a001a9c2c9dbe71 (diff)
downloadapr-c7948d078cb9e1e8dac5e98a63735090f4a5d1b5.tar.gz
* build/apr_common.m4 (APR_CONFIG_NICE, APR_PARSE_ARGUMENTS): Fix to
remove assumption that $@ is preserved forever - it never was in any autoconf release; autoconf 2.60 happens to overwrite it earlier. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@423435 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_common.m4')
-rw-r--r--build/apr_common.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4
index dacdeaf85..0691c63d1 100644
--- a/build/apr_common.m4
+++ b/build/apr_common.m4
@@ -64,7 +64,12 @@ EOF
echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> $1
fi
- for arg in [$]0 "[$]@"; do
+ # Retrieve command-line arguments.
+ eval "set x $[0] $ac_configure_args"
+ shift
+
+ for arg
+ do
APR_EXPAND_VAR(arg, $arg)
echo "\"[$]arg\" \\" >> $1
done
@@ -800,6 +805,10 @@ dnl used here to allow us to co-exist layouts and argument based
dnl set ups.
AC_DEFUN([APR_PARSE_ARGUMENTS], [
ac_prev=
+# Retrieve the command-line arguments. The eval is needed because
+# the arguments are quoted to preserve accuracy.
+eval "set x $ac_configure_args"
+shift
for ac_option
do
# If the previous option needs an argument, assign it.