diff options
author | sussman <sussman@13f79535-47bb-0310-9956-ffa450edef68> | 2002-11-05 22:09:19 +0000 |
---|---|---|
committer | sussman <sussman@13f79535-47bb-0310-9956-ffa450edef68> | 2002-11-05 22:09:19 +0000 |
commit | a7d8ce975c4e3d06dcfccb679245c5f58ce31e67 (patch) | |
tree | eb1fe72f36d285158941ca440411ccd13e082780 /build | |
parent | cecd008a589a63feb954655962d3e7ab2ce385b3 (diff) | |
download | libapr-a7d8ce975c4e3d06dcfccb679245c5f58ce31e67.tar.gz |
* find_apr.m4: backport a change from svn; favor in-tree over installed apr
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63999 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/find_apr.m4 | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/build/find_apr.m4 b/build/find_apr.m4 index a334cc168..90865aeca 100644 --- a/build/find_apr.m4 +++ b/build/find_apr.m4 @@ -73,7 +73,17 @@ AC_DEFUN(APR_FIND_APR, [ build directory, or an apr-config file.]) fi ],[ - if test -n "$3" && test "$3" = "1"; then + dnl if we have a bundled source directory, use it + if test -d "$1"; then + apr_temp_abs_srcdir="`cd $1 && pwd`" + apr_found="reconfig" + if test -n "$2"; then + apr_config="$2/apr-config" + else + apr_config="$1/apr-config" + fi + fi + if test "$apr_found" = "no" && test -n "$3" && test "$3" = "1"; then if apr-config --help > /dev/null 2>&1 ; then apr_found="yes" apr_config="apr-config" @@ -88,25 +98,6 @@ build directory, or an apr-config file.]) done fi fi - dnl if we have a bundled source directory, then we may have more work - if test -d "$1"; then - apr_temp_abs_srcdir="`cd $1 && pwd`" - if test "$apr_found" = "yes" \ - && test "`$apr_config --srcdir`" = "$apr_temp_abs_srcdir"; then - dnl the installed apr-config represents our source directory, so - dnl pretend we didn't see it and just use our bundled source - apr_found="no" - fi - dnl We could not find an apr-config; use the bundled one - if test "$apr_found" = "no"; then - apr_found="reconfig" - if test -n "$2"; then - apr_config="$2/apr-config" - else - apr_config="$1/apr-config" - fi - fi - fi ]) AC_MSG_RESULT($apr_found) |