Developers will want to pick up this APR change at some point.
I'm about to check in some SVN work on configuration which uses the
RUN_SUBDIR_CONFIG_NOW macro. However: it is commented out in configure.in,
so it is not imperative to get this change /now/. Just remember to do it at
some point.
Cheers,
-g
----- Forwarded message from gstein@locus.apache.org -----
Reply-To: new-httpd@apache.org
Date: 30 Aug 2000 01:32:51 -0000
From: gstein@locus.apache.org
To: apache-2.0-cvs@apache.org
Subject: cvs commit: apache-2.0/src/lib/apr apr_common.m4
gstein 00/08/29 18:32:50
Modified: src/lib/apr apr_common.m4
Log:
fix the cache mgmt when configuring a sub-package: this saves work up to the
sub-config point, runs the sub-config, then loads whatever the sub-config
added to the cached config values.
also: allow additional command-line arguments to be pass to the sub-config
(this speeds up the ./configure process)
Revision Changes Path
1.4 +10 -2 apache-2.0/src/lib/apr/apr_common.m4
Index: apr_common.m4
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/apr_common.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- apr_common.m4 2000/07/23 12:32:17 1.3
+++ apr_common.m4 2000/08/30 01:32:50 1.4
@@ -1,4 +1,10 @@
+dnl
+dnl RUN_SUBDIR_CONFIG_NOW(dir [, sub-package-cmdline-args])
+dnl
AC_DEFUN(RUN_SUBDIR_CONFIG_NOW, [
+ # save our work to this point; this allows the sub-package to use it
+ AC_CACHE_SAVE
+
echo "configuring package in $1 now"
ac_popdir=`pwd`
ac_abs_srcdir=`(cd $srcdir/$1 && pwd)`
@@ -19,8 +25,7 @@
esac
# The eval makes quoting arguments work.
-
- if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir
+ if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $2
then :
echo "$1 configured properly"
else
@@ -28,6 +33,9 @@
fi
cd $ac_popdir
+
+ # grab any updates from the sub-package
+ AC_CACHE_LOAD
])
dnl
dnl REENTRANCY_FLAGS
----- End forwarded message -----
--
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:07 2006