jerenkrantz 01/12/11 02:27:55
Modified: build find_apr.m4
Log:
Add preliminary srcdir support - call it with APR_FIND_APR(apr)
Revision Changes Path
1.4 +17 -0 apr/build/find_apr.m4
Index: find_apr.m4
===================================================================
RCS file: /home/cvs/apr/build/find_apr.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- find_apr.m4 2001/12/11 10:05:19 1.3
+++ find_apr.m4 2001/12/11 10:27:55 1.4
@@ -127,6 +127,23 @@
])
])
+ dnl We attempt to guess what the data will be *after* configure is run.
+ dnl Note, if we don't see configure, but do have configure.in, it'd be
+ dnl nice to run buildconf, but that's for another day.
+ if test "$apr_found" = "no" && test -n "$1" && test -x "$1/configure"; then
+ apr_found="reconfig"
+ apr_srcdir="$1"
+ apr_libdir=""
+ apr_la_file="$apr_srcdir/libapr.la"
+ apr_vars="$apr_srcdir/APRVARS"
+ if test -f $apr_srcdir/apr-config.in; then
+ apr_config="$apr_srcdir/apr-config"
+ else
+ apr_config=""
+ fi
+ apr_includes="-I$apr_srcdir/include"
+ fi
+
if test "$apr_found" != "no" && test "$apr_libdir" != ""; then
if test "$apr_vars" = "" && test -f "$apr_libdir/APRVARS"; then
apr_vars="$apr_libdir/APRVARS"