diff options
author | Joe Orton <jorton@apache.org> | 2005-11-02 14:58:08 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2005-11-02 14:58:08 +0100 |
commit | a464e95bc9da7136acadc9879736460c115cf7c5 (patch) | |
tree | c8943d8a5f00d012b2bc2e56f8ecc4431b67a18f /build/config_vars.sh.in | |
parent | * build/config_vars.sh.in: Prepend DESTDIR to paths to installed (diff) | |
download | apache2-a464e95bc9da7136acadc9879736460c115cf7c5.tar.xz apache2-a464e95bc9da7136acadc9879736460c115cf7c5.zip |
* build/config_vars.sh.in: Check for the *-config scripts both at the
DESTDIR-relocated path and at the not-relocated path, to cope with
both builds with and without the bundled APR.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@330257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/config_vars.sh.in')
-rw-r--r-- | build/config_vars.sh.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/build/config_vars.sh.in b/build/config_vars.sh.in index 7b3d6177f0..590803aa0f 100644 --- a/build/config_vars.sh.in +++ b/build/config_vars.sh.in @@ -21,8 +21,19 @@ # installed. Such a file cannot be generated at configure-time, since it # requires the output of the *installed* ap*-config scripts. -APR_CONFIG=${DESTDIR}@APR_CONFIG@ -APU_CONFIG=${DESTDIR}@APU_CONFIG@ +# For a DESTDIR=... installation using the bundled copies of +# apr/apr-util, the installed ap?-config scripts must be found +# in the DESTDIR-relocated install tree. For a DESTDIR=... +# installation when using *external* copies of apr/apr-util, +# the absolute path must be used, not DESTDIR-relocated. + +if test -f ${DESTDIR}@APR_CONFIG@; then + APR_CONFIG=${DESTDIR}@APR_CONFIG@ + APU_CONFIG=${DESTDIR}@APU_CONFIG@ +else + APR_CONFIG=@APR_CONFIG@ + APU_CONFIG=@APU_CONFIG@ +fi APR_LIBTOOL="`${APR_CONFIG} --apr-libtool`" APR_INCLUDEDIR="`${APR_CONFIG} --includedir`" |