You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Cody Sherr <cs...@covalent.net> on 2002/08/10 01:37:40 UTC

[PATCH] apr-util not finding apr correctly

The purpose of this patch is to allow apr-util to build with a relocated
apr. The current implentation of APU_FIND_APR seds the location form
APR_FIND_APR when --with-apr= is provided to apr-util's configure.  
However, APR_FIND_APR returns the path to apr_config, which is
apr/bin/aprconfig.

This results in apr-util thinking that the apr root is apr/bin. That is
incorrect.

Thanks,

-- 
Cody Sherr
Software Engineer
Covalent Technoligies, Inc.
email: csherr@covalent.net

Index: build/apu-conf.m4
===================================================================
RCS file: /home/cvspublic/apr-util/build/apu-conf.m4,v
retrieving revision 1.44
diff -u -u -r1.44 apu-conf.m4
--- build/apu-conf.m4	30 Jul 2002 19:34:19 -0000	1.44
+++ build/apu-conf.m4	9 Aug 2002 23:25:00 -0000
@@ -14,7 +14,7 @@
   fi
 
   changequote(<<,>>)dnl
-  APR_BUILD_DIR="`echo $apr_config | sed 's,/[^/]*$,,'`"
+  APR_BUILD_DIR="`echo $apr_config | sed 's,\(/bin\)*/[^/]*$,,'`"
   changequote([,])dnl
 
   dnl make APR_BUILD_DIR an absolute directory (we'll need it in the