]> granicus.if.org Git - apache/commitdiff
We need to pass the prefix to APR, APR-util, and PCRE. If we don't
authorRyan Bloom <rbb@apache.org>
Sun, 8 Jul 2001 03:27:18 +0000 (03:27 +0000)
committerRyan Bloom <rbb@apache.org>
Sun, 8 Jul 2001 03:27:18 +0000 (03:27 +0000)
pass that information, then all three libraries will install themselves
into their default locations.
PR: 7750

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89515 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index ffad43ec48eb05306ce00a03785d80e7da196f07..cc4c0b9ebe3688ae0fb12b216dc5ec869a9bed36 100644 (file)
@@ -33,19 +33,27 @@ APR_CONFIG_NICE(config.nice)
 
 nl='
 '
+
+dnl XXX we can't just use AC_PREFIX_DEFAULT because that isn't subbed in
+dnl by configure until it is too late.  Is that how it should be or not?
+dnl Something seems broken here.
+AC_PREFIX_DEFAULT(/usr/local/apache2)
+test "$prefix" = "NONE" && prefix='/usr/local/apache2'
+test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
+
 dnl ## Run configure for packages Apache uses
 
 echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
 
-APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --disable-shared")
+APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --disable-shared --prefix=$prefix")
 
 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
 
-APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --disable-shared")
+APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --disable-shared --prefix=$prefix")
 
 echo $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"
 
-APR_SUBDIR_CONFIG(srclib/pcre)
+APR_SUBDIR_CONFIG(srclib/pcre, "--prefix=$prefix")
 
 echo $ac_n "${nl}Configuring Apache httpd ...${nl}"
 
@@ -66,13 +74,6 @@ EXTRA_LDFLAGS=
 EXTRA_LIBS=
 EXTRA_INCLUDES=
 
-dnl XXX we can't just use AC_PREFIX_DEFAULT because that isn't subbed in
-dnl by configure until it is too late.  Is that how it should be or not?
-dnl Something seems broken here.
-AC_PREFIX_DEFAULT(/usr/local/apache2)
-test "$prefix" = "NONE" && prefix='/usr/local/apache2'
-test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
-
 dnl Absolute source/build directory
 abs_srcdir=`(cd $srcdir && pwd)`
 abs_builddir=`pwd`