Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 90246 invoked by uid 500); 28 Feb 2002 15:26:49 -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: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 90232 invoked from network); 28 Feb 2002 15:26:48 -0000 From: "Sander Striker" To: 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 16:31:29 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <20020228131954.GB14699@eustasy> Importance: Normal X-Rcpt-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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