Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 20124 invoked from network); 12 Sep 2005 10:34:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2005 10:34:31 -0000 Received: (qmail 7136 invoked by uid 500); 12 Sep 2005 10:34:28 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 7088 invoked by uid 500); 12 Sep 2005 10:34:26 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 7075 invoked by uid 99); 12 Sep 2005 10:34:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2005 03:34:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [131.111.204.130] (HELO henry.newn.cam.ac.uk) (131.111.204.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2005 03:34:37 -0700 Received: from quartz.itdept.newn.cam.ac.uk ([192.168.200.180]) by henry.newn.cam.ac.uk with esmtp (Exim 4.20) id 1EEldm-0004DM-Rt for dev@httpd.apache.org; Mon, 12 Sep 2005 11:34:22 +0100 Received: from prlw1 by quartz.itdept.newn.cam.ac.uk with local (Exim 4.20) id 1EEldm-0002TO-HA for dev@httpd.apache.org; Mon, 12 Sep 2005 11:34:22 +0100 Date: Mon, 12 Sep 2005 11:34:22 +0100 From: Patrick Welche To: dev@httpd.apache.org Subject: Re: [semi-PATCH] Allow out-of-tree apr/apu source Message-ID: <20050912103422.GB7504@quartz.itdept.newn.cam.ac.uk> References: <20050912095907.GA22964@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <20050912095907.GA22964@redhat.com> User-Agent: Mutt/1.5.10i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 12, 2005 at 10:59:07AM +0100, Joe Orton wrote: > On Sun, Sep 11, 2005 at 11:26:04PM -0700, Sander Temme wrote: > > Trying to scratch a personal itch tonight. I'd like to build my > > checked out tree against a checkout of {apr,apu}, which sit somewhere > > else on my system. As far as I can tell, this is currently not > > possible. I tried to point buildconf to my working copies: it borks. > > The following patch to buildconf (also attached) unborks: > > You have to buildconf both the apr and apr-util source trees before > doing so in the httpd tree, which is not unreasonable IMO. I think it'd > be surprising behaviour for the httpd buildconf to go and regenerate the > configure script in the external directories so -0 on the patch. I think the problem is that although buildconf claims to look in srclib/apr and ../apr, configure.in only runs APR_FIND_APR on srclib/apr, so never looks in ../apr. I have been running with the attached patch instead, but I think the aim is the same.. (There is a problem here..) Cheers, Patrick --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=httppat Index: configure.in =================================================================== --- configure.in (revision 240059) +++ configure.in (working copy) @@ -61,21 +61,24 @@ echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}" -APR_FIND_APR("$srcdir/srclib/apr", "./srclib/apr", 1, 1) +apr_src_dirs="srclib/apr ../apr" +for apr_src_dir in $apr_src_dirs; do + APR_FIND_APR("$srcdir/$apr_src_dir", "./srclib/apr", 1, 1) + if test "$apr_found" = "reconfig"; then + APR_SUBDIR_CONFIG("$apr_src_dir", + [$apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir], + [--enable-layout=*|\'--enable-layout=*]) + dnl We must be the first to build and the last to be cleaned + AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS" + AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr" + fi +done + if test "$apr_found" = "no"; then AC_MSG_ERROR([APR not found. Please read the documentation.]) fi -if test "$apr_found" = "reconfig"; then - APR_SUBDIR_CONFIG(srclib/apr, - [$apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir], - [--enable-layout=*|\'--enable-layout=*]) - dnl We must be the first to build and the last to be cleaned - AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS" - AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr" -fi - APR_SETIFNULL(CC, `$apr_config --cc`) APR_SETIFNULL(CPP, `$apr_config --cpp`) APR_ADDTO(CFLAGS, `$apr_config --cflags`) @@ -90,8 +93,10 @@ echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}" APR_FIND_APU("$srcdir/srclib/apr-util", "./srclib/apr-util", 1, 1) - if test "$apu_found" = "no"; then + APR_FIND_APU("$srcdir/../apr-util", "./../apr-util", 1, 1) +fi +if test "$apu_found" = "no"; then AC_MSG_ERROR([APR-util not found. Please read the documentation.]) fi --cNdxnHkX5QqsyA0e--