From: Akim Demaille Date: Fri, 25 Oct 2002 08:22:52 +0000 (+0000) Subject: * bin/autoscan.in (output): Output AC_PREREQ. X-Git-Tag: AUTOCONF-2.54a~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd71c86380cb5ff3aade307a159dbbf7eb974968;p=thirdparty%2Fautoconf.git * bin/autoscan.in (output): Output AC_PREREQ. (%needed_macros): Add AC_PREREQ so that configure.ac without one be reported. --- diff --git a/ChangeLog b/ChangeLog index a407b061a..d4331b9b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-10-25 Akim Demaille + + * bin/autoscan.in (output): Output AC_PREREQ. + (%needed_macros): Add AC_PREREQ so that configure.ac without one + be reported. + 2002-10-23 Akim Demaille * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL, diff --git a/bin/autoscan.in b/bin/autoscan.in index 70f1006f1..c1beeab6a 100644 --- a/bin/autoscan.in +++ b/bin/autoscan.in @@ -73,7 +73,10 @@ my %macro = (); # $NEEDED_MACROS{MACRO} is an array of locations requiring MACRO. # E.g., $NEEDED_MACROS{AC_FUNC_ALLOC} the list of `file:line' containing # `alloca (...)'. -my %needed_macros = (); +my %needed_macros = + ( + 'AC_PREREQ' => [$me], + ); my $configure_scan = 'configure.scan'; my $log = new Autom4te::XFile ">$me.log"; @@ -98,6 +101,8 @@ preliminary `configure.ac' for that package. -V, --version print version number, then exit -v, --verbose verbosely report processing -d, --debug don't remove temporary files + +Library directories: -B, --prepend-include=DIR prepend directory DIR to search path -I, --include=DIR append directory DIR to search path @@ -496,8 +501,11 @@ sub output ($) my $file = new Autom4te::XFile ">$configure_scan"; print $file - ("# Process this file with autoconf to produce a configure script.\n" - . "AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)\n"); + ("# -*- Autoconf -*-\n" . + "# Process this file with autoconf to produce a configure script.\n" . + "\n" . + "AC_PREREQ(@VERSION@)\n" . + "AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)\n"); if (defined $cfiles[0]) { print $file "AC_CONFIG_SRCDIR([$cfiles[0]])\n"; diff --git a/man/autoscan.1 b/man/autoscan.1 index 4465c854d..b9d496da5 100644 --- a/man/autoscan.1 +++ b/man/autoscan.1 @@ -23,6 +23,7 @@ verbosely report processing .TP \fB\-d\fR, \fB\-\-debug\fR don't remove temporary files +.SS "Library directories:" .TP \fB\-B\fR, \fB\-\-prepend\-include\fR=\fIDIR\fR prepend directory DIR to search path