From 7b98d14e264f526ce36dbcdd4038760942b99d73 Mon Sep 17 00:00:00 2001 From: jorton Date: Tue, 29 May 2007 09:01:39 +0000 Subject: Merge r423435 from trunk: * 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: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@542464 13f79535-47bb-0310-9956-ffa450edef68 --- build/apr_common.m4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build/apr_common.m4 b/build/apr_common.m4 index e65314efd..94e15e978 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -45,7 +45,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 @@ -814,6 +819,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. -- cgit v1.2.1