Remove, dead.
* bin/autoreconf.in (&autoreconf): Do not run gettextize when
`intl' is already present, as it refuses unless --force.
(&parse_args): Use -I, --include instead of the old Autoconf
options.
($localdir, $autoconf_dir): Remove.
(@include): New.
(&maybe_autoreconf): New, to preserve $_ for File::Find.
+2001-10-20 Akim Demaille <akim@epita.fr>
+
+ * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
+ Remove, dead.
+ * bin/autoreconf.in (&autoreconf): Do not run gettextize when
+ `intl' is already present, as it refuses unless --force.
+ (&parse_args): Use -I, --include instead of the old Autoconf
+ options.
+ ($localdir, $autoconf_dir): Remove.
+ (@include): New.
+ (&maybe_autoreconf): New, to preserve $_ for File::Find.
+
2001-10-19 Jens Petersen <petersen@redhat.com>
* lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
my $autom4te = $ENV{'AUTOM4TE'} || '@autom4te-name@';
local $config_h;
my $config_h_in;
-my $localdir = '.';
my @include;
my @warning;
-# m4.
-my $m4 = $ENV{"M4"} || "@M4@";
-my $SIMPLE_BACKUP_SUFFIX = $ENV{'SIMPLE_BACKUP_SUFFIX'} || '~';
# $HELP
$help = <<"END";
Usage: $0 [OPTION] ... [TEMPLATE-FILE]
-Create a template file of C \`#define\' statements for \`configure\' to
+Create a template file of C \`\#define\' statements for \`configure\' to
use. To this end, scan TEMPLATE-FILE, or \`configure.ac\' if present,
or else \`configure.in\'.
-V, --version print version number, then exit
-v, --verbose verbosely report processing
-d, --debug don\'t remove temporary files
- -I, --include=DIR look for input files in DIR (cumulative)
-f, --force consider all files obsolete
-W, --warnings=CATEGORY report the warnings falling in CATEGORY
\`none\' turn off all the warnings
\`error\' warnings are error
+Library directories:
+ -I, --include=DIR look for files in DIR (cumulative)
+
Report bugs to <bug-autoconf\@gnu.org>.
END
# --------
$version = <<"END";
autoheader (@PACKAGE_NAME@) @VERSION@
-Written by Roland McGrath.
+Written by Roland McGrath and Akim Demaille.
Copyright 1992, 1993, 1994, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
# Set up autoconf.
my $autoconf = "$autom4te --language=autoconf ";
-$autoconf .= join (' ' , map { "--include=$_" } @include);
+$autoconf .= join (' ', map { "--include=$_" } @include);
$autoconf .= ' --debug' if $debug;
$autoconf .= ' --force' if $force;
$autoconf .= ' --verbose' if $verbose;
other tools.
Library directories:
- -A, --autoconf-dir=ACDIR location of Autoconf's macro files (rarely needed)
- -l, --localdir=DIR location of `aclocal.m4' and `acconfig.h'
- -M, --m4dir=M4DIR this package's Autoconf extensions
+ -I, --include=DIR look for FILES in DIR (cumulative)
+ -M, --m4dir=M4DIR this package's Autoconf extensions
Unless specified, heuristics try to compute `M4DIR' from the `Makefile.am',
or defaults to `m4' if it exists.
# --install -- as --add-missing in other tools.
my $install = 0;
-my $localdir = '.';
-my $autoconf_dir = '.';
+my @include;
# m4dir -- local Autoconf extensions. Typically `m4'.
my $m4dir;
my $status = 0;
{
my $srcdir;
- getopt ('l|localdir=s' => \$localdir,
- 'A|autoconf-dir|m|macrodir=s' => \$autoconf_dir,
- 'M|m4dir=s' => \$m4dir,
- 'i|install' => \$install,
- 's|symlink' => \$symlink);
+ getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include,
+ 'M|m4dir=s' => \$m4dir,
+ 'i|install' => \$install,
+ 's|symlink' => \$symlink);
die "$me: too many arguments\n"
if @ARGV;
}
# Dispatch autoreconf's option to the tools.
- # --localdir
- $autoconf .= " --include=$autoconf_dir --include=$localdir";
- $autoheader .= " --include=$autoconf_dir --include=$localdir";
+ # --include;
+ $autoconf .= join (' ', map { "--include=$_" } @include);
+ $autoheader .= join (' ', map { "--include=$_" } @include);
+
# --install and --symlink;
if ($install)
{
- $automake .= ' --add-missing';
- $automake .= ' --copy'
- unless $symlink;
- $gettextize .= ' --copy'
- unless $symlink;
- $libtoolize .= ' --copy'
- unless $symlink;
+ $automake .= ' --add-missing';
+ $automake .= ' --copy' unless $symlink;
+ $gettextize .= ' --copy' unless $symlink;
+ $libtoolize .= ' --copy' unless $symlink;
}
# --force;
if ($force)
{
verbose "$configure_ac: not using Gettext";
}
+ elsif (-d 'intl')
+ {
+ verbose "$configure_ac: not running gettextize: `intl' is already present";
+ }
else
{
xsystem ($gettextize);
# Running aclocal. #
# ----------------- #
- if (-f "$localdir/aclocal.m4" &&
- !up_to_date_p ("$localdir/aclocal.m4", "$localdir/acinclude.m4"))
+ if (-f 'aclocal.m4' &&
+ !up_to_date_p ('aclocal.m4', 'acinclude.m4'))
{
# If there are flags for aclocal in Makefile.am, use them.
my $aclocal_flags;
- if (-f "Makefile.am")
+ if (-f 'Makefile.am')
{
- my $aclocal_m4 = new Autom4te::XFile "Makefile.am";
+ my $aclocal_m4 = new Autom4te::XFile 'Makefile.am';
while ($_ = $aclocal_m4->getline)
{
if (/^ACLOCAL_[A-Z_]*FLAGS\s*=\s*(.*)/)
mktmpdir ('ah');
$ENV{'TMPDIR'} = $tmp;
parse_args;
-find (\&autoreconf, '.');
+find (\&maybe_autoreconf, '.');
\fB\-d\fR, \fB\-\-debug\fR
don't remove temporary files
.TP
-\fB\-I\fR, \fB\-\-include\fR=\fIDIR\fR
-look for input files in DIR (cumulative)
-.TP
\fB\-f\fR, \fB\-\-force\fR
consider all files obsolete
.TP
.TP
`error'
warnings are error
+.SS "Library directories:"
+.TP
+\fB\-I\fR, \fB\-\-include\fR=\fIDIR\fR
+look for files in DIR (cumulative)
.SH AUTHOR
-Written by Roland McGrath.
+Written by Roland McGrath and Akim Demaille.
.PP
Copyright 1992, 1993, 1994, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
other tools.
.SS "Library directories:"
.TP
-\fB\-A\fR, \fB\-\-autoconf\-dir\fR=\fIACDIR\fR
-location of Autoconf's macro files (rarely needed)
-.TP
-\fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
-location of `aclocal.m4' and `acconfig.h'
+\fB\-I\fR, \fB\-\-include\fR=\fIDIR\fR
+look for FILES in DIR (cumulative)
.TP
\fB\-M\fR, \fB\-\-m4dir\fR=\fIM4DIR\fR
this package's Autoconf extensions