httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@apache.org>
Subject [PATCH] Fix configure.in for autoconf 2.52 WAS: RE: cvs commit: httpd-2.0 configure.in acinclude.m4
Date Thu, 28 Feb 2002 15:31:29 GMT
Hi,

Reposted with a clearer subject line.  This fixes the problem for
me (although I didn't apply the patch, but moved AC_PREFIX_DEFAULT
manually).

Sander


> * aaron@apache.org (aaron@apache.org) wrote :
> > aaron       02/02/27 17:38:11
> > 
> >   Modified:    .        configure.in acinclude.m4
> >   Log:
> >   Fix a typo in the default cgidir variable.
> >   Set a couple more defaults if they haven't already been set, just
> >   as a precaution.
> >   
> Sadly this breaks under autoconf 2.52 - AC_PREFIX_DEFAULT needs to be run
> after the apr m4 files are included, not before. (buildconf chokes like
> this otherwise:
> 
> Creating configure ...
> rebuilding srclib/pcre/configure
> rebuilding include/ap_config_auto.h.in
> configure.in:8: error: m4_defn: undefined macro: _m4_divert_diversion
> acgeneral.m4:616: AC_PREFIX_DEFAULT is expanded from...
> configure.in:8: the top level
> autoconf: tracing failed
> rebuilding configure
> configure.in:8: error: m4_defn: undefined macro: _m4_divert_diversion
> acgeneral.m4:616: AC_PREFIX_DEFAULT is expanded from...
> configure.in:8: the top level
> 
> Sander Striker spotted this one.
> 
> Patch attached to move it back, and add the warning back in.
> Cheers,
> -Thom
> 
> 
> Index: configure.in
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/configure.in,v
> retrieving revision 1.204
> diff -u -u -r1.204 configure.in
> --- configure.in	28 Feb 2002 02:56:15 -0000	1.204
> +++ configure.in	28 Feb 2002 13:18:32 -0000
> @@ -5,7 +5,6 @@
>  dnl
>  
>  AC_PREREQ(2.13)
> -AC_PREFIX_DEFAULT(/usr/local/apache2)
>  AC_INIT(ABOUT_APACHE)
>  
>  AC_CONFIG_HEADER(include/ap_config_auto.h)
> @@ -18,6 +17,11 @@
>  sinclude(srclib/apr/build/apr_network.m4)
>  sinclude(srclib/apr/build/apr_threads.m4)
>  sinclude(acinclude.m4)
> +
> +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)
>  
>  dnl Get the layout here, so we can pass the required variables to apr
>  dnl APACHE_ENABLE_LAYOUT


Mime
View raw message