$AUTOMAKE and $ACLOCAL.
Pass --verbose to the tools.
Avoid using plenty of variables, just append to existing
variables.
* doc/autoconf.texi: List options in the order --help, --version,
--verbose, --debug, and then specific options.
+2000-06-26 Akim Demaille <akim@epita.fr>
+
+ * autoreconf.sh (automake, aclocal): New variables. Import
+ $AUTOMAKE and $ACLOCAL.
+ Pass --verbose to the tools.
+ Avoid using plenty of variables, just append to existing
+ variables.
+ * doc/autoconf.texi: List options in the order --help, --version,
+ --verbose, --debug, and then specific options.
+
2000-06-26 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi: Various Texinfo adjustments.
-f, --force consider every files are obsolete
The following options are passed to \`automake':
- --cygnus assume program is part of Cygnus-style tree
- --foreign set strictness to foreign
- --gnits set strictness to gnits
- --gnu set strictness to gnu
- -i, --include-deps include generated dependencies in Makefile.in
+ --cygnus assume program is part of Cygnus-style tree
+ --foreign set strictness to foreign
+ --gnits set strictness to gnits
+ --gnu set strictness to gnu
+ --include-deps include generated dependencies in Makefile.in
+ -i deprecated alias for --include-deps
+
+The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, and ACLOCAL
+are honored.
Report bugs to <bug-autoconf@gnu.org>."
# Variables.
: ${AC_MACRODIR=@datadir@}
dir=`echo "$0" | sed -e 's/[^/]*$//'`
+force=no
+localdir=.
+verbose=:
+
+# Looking for autoconf.
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
for autoconf in "$AUTOCONF" \
"@bindir@/@autoconf-name@"; do
test -f "$autoconf" && break
done
+
+# Looking for autoheader.
for autoheader in "$AUTOHEADER" \
"$dir/@autoheader-name@" \
"$dir/autoheader" \
"@bindir@/@autoheader-name@"; do
test -f "$autoheader" && break
done
-automake_mode=--gnu
-automake_deps=
-force=no
-localdir=.
-verbose=:
+# Looking for automake.
+: ${automake=${AUTOMAKE=automake}}
+# Looking for aclocal.
+: ${aclocal=${ACLOCAL=aclocal}}
# Parse command line.
while test $# -gt 0; do
--force | -f )
force=yes; shift ;;
- --cygnus | --foreign | --gnits | --gnu)
- automake_mode=$1; shift ;;
- --include-deps | -i)
- automake_deps=$1; shift ;;
+
+ # Options of Automake.
+ --cygnus | --foreign | --gnits | --gnu | --include-deps | -i )
+ automake="$automake $1"; shift ;;
-- ) # Stop option processing.
shift; break ;;
exit 1
fi
-# Set up autoconf and autoheader.
-autoconf="$autoconf -l $localdir"
-autoheader="$autoheader -l $localdir"
+# Dispatch autoreconf's option to the tools.
+autoconf="$autoconf -l $localdir `$verbose --verbose`"
+autoheader="$autoheader -l $localdir `$verbose --verbose`"
+test $force = no && automake="$automake --no-force"
+automake="$automake `$verbose --verbose`"
+aclocal="$aclocal `$verbose --verbose`"
export AC_MACRODIR
# ----------------------- #
then
aclocal_flags="$aclocal_flags -I $aclocal_dir"
fi
- $verbose "running aclocal $aclocal_flags in $dir, creating $aclocal_m4"
- aclocal $aclocal_flags --output=$aclocal_m4
+ $verbose "running $aclocal $aclocal_flags in $dir, creating $aclocal_m4"
+ $aclocal $aclocal_flags --output=$aclocal_m4
fi
fi
# Re-run automake if required. Assumes that there is a Makefile.am
# in the topmost directory.
- if test -f Makefile.am
- then
- amforce=
- test $force = no && amforce=--no-force
- $verbose running automake $amforce in $dir
- automake $amforce $automake_mode $automake_deps
+ if test -f Makefile.am; then
+ $verbose running $automake $amforce in $dir
+ $automake $amforce $automake_mode $automake_deps
fi
test ! -f $aclocal_m4 && aclocal_m4=
-f, --force consider every files are obsolete
The following options are passed to \`automake':
- --cygnus assume program is part of Cygnus-style tree
- --foreign set strictness to foreign
- --gnits set strictness to gnits
- --gnu set strictness to gnu
- -i, --include-deps include generated dependencies in Makefile.in
+ --cygnus assume program is part of Cygnus-style tree
+ --foreign set strictness to foreign
+ --gnits set strictness to gnits
+ --gnu set strictness to gnu
+ --include-deps include generated dependencies in Makefile.in
+ -i deprecated alias for --include-deps
+
+The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, and ACLOCAL
+are honored.
Report bugs to <bug-autoconf@gnu.org>."
# Variables.
: ${AC_MACRODIR=@datadir@}
dir=`echo "$0" | sed -e 's/[^/]*$//'`
+force=no
+localdir=.
+verbose=:
+
+# Looking for autoconf.
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
for autoconf in "$AUTOCONF" \
"@bindir@/@autoconf-name@"; do
test -f "$autoconf" && break
done
+
+# Looking for autoheader.
for autoheader in "$AUTOHEADER" \
"$dir/@autoheader-name@" \
"$dir/autoheader" \
"@bindir@/@autoheader-name@"; do
test -f "$autoheader" && break
done
-automake_mode=--gnu
-automake_deps=
-force=no
-localdir=.
-verbose=:
+# Looking for automake.
+: ${automake=${AUTOMAKE=automake}}
+# Looking for aclocal.
+: ${aclocal=${ACLOCAL=aclocal}}
# Parse command line.
while test $# -gt 0; do
--force | -f )
force=yes; shift ;;
- --cygnus | --foreign | --gnits | --gnu)
- automake_mode=$1; shift ;;
- --include-deps | -i)
- automake_deps=$1; shift ;;
+
+ # Options of Automake.
+ --cygnus | --foreign | --gnits | --gnu | --include-deps | -i )
+ automake="$automake $1"; shift ;;
-- ) # Stop option processing.
shift; break ;;
exit 1
fi
-# Set up autoconf and autoheader.
-autoconf="$autoconf -l $localdir"
-autoheader="$autoheader -l $localdir"
+# Dispatch autoreconf's option to the tools.
+autoconf="$autoconf -l $localdir `$verbose --verbose`"
+autoheader="$autoheader -l $localdir `$verbose --verbose`"
+test $force = no && automake="$automake --no-force"
+automake="$automake `$verbose --verbose`"
+aclocal="$aclocal `$verbose --verbose`"
export AC_MACRODIR
# ----------------------- #
then
aclocal_flags="$aclocal_flags -I $aclocal_dir"
fi
- $verbose "running aclocal $aclocal_flags in $dir, creating $aclocal_m4"
- aclocal $aclocal_flags --output=$aclocal_m4
+ $verbose "running $aclocal $aclocal_flags in $dir, creating $aclocal_m4"
+ $aclocal $aclocal_flags --output=$aclocal_m4
fi
fi
# Re-run automake if required. Assumes that there is a Makefile.am
# in the topmost directory.
- if test -f Makefile.am
- then
- amforce=
- test $force = no && amforce=--no-force
- $verbose running automake $amforce in $dir
- automake $amforce $automake_mode $automake_deps
+ if test -f Makefile.am; then
+ $verbose running $automake $amforce in $dir
+ $automake $amforce $automake_mode $automake_deps
fi
test ! -f $aclocal_m4 && aclocal_m4=
-f, --force consider every files are obsolete
The following options are passed to \`automake':
- --cygnus assume program is part of Cygnus-style tree
- --foreign set strictness to foreign
- --gnits set strictness to gnits
- --gnu set strictness to gnu
- -i, --include-deps include generated dependencies in Makefile.in
+ --cygnus assume program is part of Cygnus-style tree
+ --foreign set strictness to foreign
+ --gnits set strictness to gnits
+ --gnu set strictness to gnu
+ --include-deps include generated dependencies in Makefile.in
+ -i deprecated alias for --include-deps
+
+The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, and ACLOCAL
+are honored.
Report bugs to <bug-autoconf@gnu.org>."
# Variables.
: ${AC_MACRODIR=@datadir@}
dir=`echo "$0" | sed -e 's/[^/]*$//'`
+force=no
+localdir=.
+verbose=:
+
+# Looking for autoconf.
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
for autoconf in "$AUTOCONF" \
"@bindir@/@autoconf-name@"; do
test -f "$autoconf" && break
done
+
+# Looking for autoheader.
for autoheader in "$AUTOHEADER" \
"$dir/@autoheader-name@" \
"$dir/autoheader" \
"@bindir@/@autoheader-name@"; do
test -f "$autoheader" && break
done
-automake_mode=--gnu
-automake_deps=
-force=no
-localdir=.
-verbose=:
+# Looking for automake.
+: ${automake=${AUTOMAKE=automake}}
+# Looking for aclocal.
+: ${aclocal=${ACLOCAL=aclocal}}
# Parse command line.
while test $# -gt 0; do
--force | -f )
force=yes; shift ;;
- --cygnus | --foreign | --gnits | --gnu)
- automake_mode=$1; shift ;;
- --include-deps | -i)
- automake_deps=$1; shift ;;
+
+ # Options of Automake.
+ --cygnus | --foreign | --gnits | --gnu | --include-deps | -i )
+ automake="$automake $1"; shift ;;
-- ) # Stop option processing.
shift; break ;;
exit 1
fi
-# Set up autoconf and autoheader.
-autoconf="$autoconf -l $localdir"
-autoheader="$autoheader -l $localdir"
+# Dispatch autoreconf's option to the tools.
+autoconf="$autoconf -l $localdir `$verbose --verbose`"
+autoheader="$autoheader -l $localdir `$verbose --verbose`"
+test $force = no && automake="$automake --no-force"
+automake="$automake `$verbose --verbose`"
+aclocal="$aclocal `$verbose --verbose`"
export AC_MACRODIR
# ----------------------- #
then
aclocal_flags="$aclocal_flags -I $aclocal_dir"
fi
- $verbose "running aclocal $aclocal_flags in $dir, creating $aclocal_m4"
- aclocal $aclocal_flags --output=$aclocal_m4
+ $verbose "running $aclocal $aclocal_flags in $dir, creating $aclocal_m4"
+ $aclocal $aclocal_flags --output=$aclocal_m4
fi
fi
# Re-run automake if required. Assumes that there is a Makefile.am
# in the topmost directory.
- if test -f Makefile.am
- then
- amforce=
- test $force = no && amforce=--no-force
- $verbose running automake $amforce in $dir
- automake $amforce $automake_mode $automake_deps
+ if test -f Makefile.am; then
+ $verbose running $automake $amforce in $dir
+ $automake $amforce $automake_mode $automake_deps
fi
test ! -f $aclocal_m4 && aclocal_m4=
@item --help
Print a summary of the command line options and exit.
+@item --version
+@itemx -V
+Print the version number of Autoconf and exit.
+
+@item --verbose
+Print the names of the files it examines and the potentially interesting
+symbols it finds in them. This output can be voluminous.
+
@item --macrodir=@var{dir}
@evindex AC_MACRODIR
Look for the data files in directory @var{dir} instead of the default
installation directory. You can also set the @code{AC_MACRODIR}
environment variable to a directory; this option overrides the
environment variable.
-
-@item --verbose
-Print the names of the files it examines and the potentially interesting
-symbols it finds in them. This output can be voluminous.
-
-@item --version
-@itemx -V
-Print the version number of Autoconf and exit.
@end table
@node ifnames Invocation, autoconf Invocation, autoscan Invocation, Making configure Scripts
@itemx -h
Print a summary of the command line options and exit.
+@item --version
+@itemx -V
+Print the version number of Autoconf and exit.
+
+@item --verbose
+Print the name of each directory where @code{autoreconf} runs
+@code{autoconf} (and @code{autoheader}, if appropriate).
+
@item --force
@itemx -f
Remake even @file{configure} scripts and configuration headers that are
default installation directory. You can also set the @code{AC_MACRODIR}
environment variable to a directory; this option overrides the
environment variable.
-
-@item --verbose
-Print the name of each directory where @code{autoreconf} runs
-@code{autoconf} (and @code{autoheader}, if appropriate).
-
-@item --version
-@itemx -V
-Print the version number of Autoconf and exit.
@end table
\fB\-\-gnu\fR
set strictness to gnu
.TP
-\fB\-i\fR, \fB\-\-include\-deps\fR
+\fB\-\-include\-deps\fR
include generated dependencies in Makefile.in
+.TP
+\fB\-i\fR
+deprecated alias for \fB\-\-include\-deps\fR
+.PP
+The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, and ACLOCAL
+are honored.
.SH AUTHOR
Written by David J. MacKenzie.
.SH "REPORTING BUGS"