You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@codematters.co.uk> on 2002/02/01 13:46:20 UTC

Re: svn commit: rev 1128 - trunk trunk/ac-helpers

jerenkrantz@tigris.org writes:

> Author: jerenkrantz
> Date: 2002-02-01 03:21 GMT
> New Revision: 1128
> 
> Added:
>    trunk/ac-helpers/find_apr.m4
> Modified:
>    trunk/ac-helpers/apr.m4
>    trunk/configure.in
> Log:
> Use APR's own find_apr.m4 to find APR.
> 
> (This is essentially the same as revision 703, but with a fix to 
> allow source APR dirs to build.)
> 
> * ac-helpers/find_apr.m4: New file, imported from APR CVS repository,
> provides the APR_FIND_APR macro.
> 
> * ac-helpers/apr.m4 (SVN_LIB_APR): Refactor the APR detection code
> to take advantage of APR_FIND_APR.
> (SVN_FIND_APR): Removed.
> 
> * configure.in: Add find_apr.m4 as an included file to source.
> 

This change appears to have broken builddir != srcdir builds.

creating config.nice
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
configure: Apache Portable Runtime (APR) library configuration
checking for APR... no
configure: WARNING: APR not found
No Apache Portable Runtime (APR) library can be found.
Either install APR on this system and supply appropriate
--with-apr-libs and --with-apr-includes options

or

get it with CVS and put it in a subdirectory of this source:

   cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
      (password 'anoncvs')

   cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr

Run that right here in the top-level of the Subversion tree.

configure: error: no suitable apr found


-- 
Philip

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 1128 - trunk trunk/ac-helpers

Posted by Justin Erenkrantz <je...@ebuilt.com>.
On Fri, Feb 01, 2002 at 02:08:39PM +0000, Philip Martin wrote:
> I'm not an autoconf expert but this seems to fix it. Anyone object to
> the following patch?
> 
> Index: ./ac-helpers/aprutil.m4
> ===================================================================
> --- ./ac-helpers/aprutil.m4
> +++ ./ac-helpers/aprutil.m4	Fri Feb  1 13:58:37 2002
> @@ -17,6 +17,10 @@
>    APR_FIND_APU(apr-util, $abs_builddir)
>  
>    if test $apu_found = "no"; then
> +    APR_FIND_APU($srcdir/apr-util, $abs_builddir)
> +  fi
> +
> +  if test $apu_found = "no"; then
>      AC_MSG_WARN([APRUTIL not found])
>      SVN_DOWNLOAD_APRUTIL
>    fi

How about just using $srcdir/apr{-util} always?  I think that
should work.  -- justin


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 1128 - trunk trunk/ac-helpers

Posted by Philip Martin <ph...@codematters.co.uk>.
Philip Martin <ph...@codematters.co.uk> writes:

> jerenkrantz@tigris.org writes:
> 
> > Author: jerenkrantz
> > Date: 2002-02-01 03:21 GMT
> > New Revision: 1128
> > 
> > Added:
> >    trunk/ac-helpers/find_apr.m4
> > Modified:
> >    trunk/ac-helpers/apr.m4
> >    trunk/configure.in
> > Log:
> > Use APR's own find_apr.m4 to find APR.
> > 
> > (This is essentially the same as revision 703, but with a fix to 
> > allow source APR dirs to build.)
> > 
> > * ac-helpers/find_apr.m4: New file, imported from APR CVS repository,
> > provides the APR_FIND_APR macro.
> > 
> > * ac-helpers/apr.m4 (SVN_LIB_APR): Refactor the APR detection code
> > to take advantage of APR_FIND_APR.
> > (SVN_FIND_APR): Removed.
> > 
> > * configure.in: Add find_apr.m4 as an included file to source.
> > 
> 
> This change appears to have broken builddir != srcdir builds.

I'm not an autoconf expert but this seems to fix it. Anyone object to
the following patch?

Index: ./ac-helpers/aprutil.m4
===================================================================
--- ./ac-helpers/aprutil.m4
+++ ./ac-helpers/aprutil.m4	Fri Feb  1 13:58:37 2002
@@ -17,6 +17,10 @@
   APR_FIND_APU(apr-util, $abs_builddir)
 
   if test $apu_found = "no"; then
+    APR_FIND_APU($srcdir/apr-util, $abs_builddir)
+  fi
+
+  if test $apu_found = "no"; then
     AC_MSG_WARN([APRUTIL not found])
     SVN_DOWNLOAD_APRUTIL
   fi
Index: ./ac-helpers/apr.m4
===================================================================
--- ./ac-helpers/apr.m4
+++ ./ac-helpers/apr.m4	Fri Feb  1 13:56:50 2002
@@ -12,6 +12,10 @@
   APR_FIND_APR(apr, $abs_builddir)
 
   if test $apr_found = "no"; then
+    APR_FIND_APR($srcdir/apr, $abs_builddir)
+  fi
+
+  if test $apr_found = "no"; then
     AC_MSG_WARN([APR not found])
     SVN_DOWNLOAD_APR
   fi


-- 
Philip

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org