jorton cc2146
jorton cc2146
Author: jorton
jorton cc2146
Date: Wed Jul 19 04:07:31 2006
jorton cc2146
New Revision: 423435
jorton cc2146
jorton cc2146
URL: http://svn.apache.org/viewvc?rev=423435&view=rev
jorton cc2146
Log:
jorton cc2146
* build/apr_common.m4 (APR_CONFIG_NICE, APR_PARSE_ARGUMENTS): Fix to
jorton cc2146
remove assumption that $@ is preserved forever - it never was in any
jorton cc2146
autoconf release; autoconf 2.60 happens to overwrite it earlier.
jorton cc2146
jorton cc2146
--- apr-1.2.7/build/apr_common.m4.ac260
jorton cc2146
+++ apr-1.2.7/build/apr_common.m4
jorton cc2146
@@ -64,7 +64,12 @@
jorton cc2146
     echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> $1
jorton cc2146
   fi
jorton cc2146
 
jorton cc2146
-  for arg in [$]0 "[$]@"; do
jorton cc2146
+  # Retrieve command-line arguments.
jorton cc2146
+  eval "set x $[0] $ac_configure_args"
jorton cc2146
+  shift
jorton cc2146
+
jorton cc2146
+  for arg
jorton cc2146
+  do
jorton cc2146
     APR_EXPAND_VAR(arg, $arg)
jorton cc2146
     echo "\"[$]arg\" \\" >> $1
jorton cc2146
   done
jorton cc2146
@@ -800,6 +805,10 @@
jorton cc2146
 dnl set ups.
jorton cc2146
 AC_DEFUN(APR_PARSE_ARGUMENTS,[
jorton cc2146
 ac_prev=
jorton cc2146
+# Retrieve the command-line arguments.  The eval is needed because
jorton cc2146
+# the arguments are quoted to preserve accuracy.
jorton cc2146
+eval "set x $ac_configure_args"
jorton cc2146
+shift
jorton cc2146
 for ac_option
jorton cc2146
 do
jorton cc2146
   # If the previous option needs an argument, assign it.