+2000-05-26 Akim Demaille <akim@epita.fr>
+
+ Thanks to --program-transform-name, `autoconf' might be install as
+ `yo-man-i-am-the-all-mighty-AVt0c0nF-eh-eh'. But when
+ `yo-man-i-am-the-all-mighty-AVt0h3Ad3R-eh-eh' and the other tools
+ want to trace, they might stupidly invoke the program named
+ `autoconf' instead. Pfff, stupid scripts :)
+
+ * Makefile.am (editsh): Transfer the names of the install
+ `autoconf' and `autoheader'.
+ * autoconf.sh: Add a missing period at the end of the comment
+ # Parse command line
+ Make sure to have a ChangeLog much longer than the patch.
+ * autoheader.sh: Use the right `autoconf'.
+ * autoupdate.sh: Likewise.
+ * autoreconf.sh: Likewise, and for `autoheader' too.
+ Simplify the handling of localdir and AC_MACRODIR.
+ * ifnames.sh: Formatting changes.
+
2000-05-25 Steven G. Johnson <stevenj@alum.mit.edu>
Don't use f2c as a possible Fortran compiler, since by itself it
# The scripts.
-editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e \
- 's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' \
+editsh = sed \
+ -e 's,@''datadir''@,$(pkgdatadir),g' \
+ -e 's,@''M4''@,$(M4),g' \
+ -e 's,@''AWK''@,$(AWK),g' \
-e 's,@''SHELL''@,$(SHELL),g' \
- -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
-editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' \
- -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
+ -e 's,@''VERSION''@,$(VERSION),g' \
+ -e 's,@''PACKAGE''@,$(PACKAGE),g' \
+ -e 's,@autoconf-name@,'`echo autoconf | sed '$(transform)'`',g' \
+ -e 's,@autoheader-name@,'`echo autoheader | sed '$(transform)'`',g'
+
+editpl = sed \
+ -e 's,@''datadir''@,$(pkgdatadir),g' \
+ -e 's,@''PERL''@,$(PERL),g' \
+ -e 's,@''VERSION''@,$(VERSION),g' \
+ -e 's,@''PACKAGE''@,$(PACKAGE),g'
.sh:
rm -f $@ $@.tmp
- $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+ $(editsh) $< >$@.tmp
+ chmod +x $@.tmp
+ mv $@.tmp $@
.pl:
rm -f $@ $@.tmp
- $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+ $(editpl) $< >$@.tmp
+ chmod +x $@.tmp
+ mv $@.tmp $@
.m4.m4f:
- $(M4) -F $*.m4f -I$(srcdir) $(srcdir)/$*.m4
+ $(M4) -I $(srcdir) $(srcdir)/$*.m4 --freeze-state=$*.m4f
common = libm4.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 acversion.m4 \
aclang.m4
# The scripts.
-editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' -e 's,@''SHELL''@,$(SHELL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
+editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' -e 's,@''SHELL''@,$(SHELL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g' -e 's,@autoconf-name@,'`echo autoconf | sed '$(transform)'`',g' -e 's,@autoheader-name@,'`echo autoheader | sed '$(transform)'`',g'
-editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
+
+editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
common = libm4.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 acversion.m4 aclang.m4
.sh:
rm -f $@ $@.tmp
- $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+ $(editsh) $< >$@.tmp
+ chmod +x $@.tmp
+ mv $@.tmp $@
.pl:
rm -f $@ $@.tmp
- $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+ $(editpl) $< >$@.tmp
+ chmod +x $@.tmp
+ mv $@.tmp $@
.m4.m4f:
- $(M4) -F $*.m4f -I$(srcdir) $(srcdir)/$*.m4
+ $(M4) -I $(srcdir) $(srcdir)/$*.m4 --freeze-state=$*.m4f
autoconf.m4f: autoconf.m4 $(common)
tmp=
verbose=:
-# Parse command line
+# Parse command line.
while test $# -gt 0 ; do
case "$1" in
--version | --vers* | -V )
tmp=
verbose=:
-# Parse command line
+# Parse command line.
while test $# -gt 0 ; do
case "$1" in
--version | --vers* | -V )
# Variables.
: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+ autoconf=$AUTOCONF
+else
+ autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
debug=false
localdir=.
tmp=
warning_error=false
warning_obsolete=false
+# Parse command line.
while test $# -gt 0 ; do
case "$1" in
--version | --vers* | -V )
exit 1 ;;
esac
-# Well, work now!
-config_h=
-syms=
+# Set up autoconf.
+autoconf="$autoconf -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here. #
+# ----------------------- #
# Source what the traces are trying to tell us.
-autoconf=`echo "$0" | sed -e 's,[^/]*$,autoconf,'`
-test -n "$localdir" && autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
$autoconf \
--trace AC_CONFIG_HEADERS:'config_h="$1"' \
--trace AH_OUTPUT:'ac_verbatim_$1="\
# Variables.
: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+ autoconf=$AUTOCONF
+else
+ autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
debug=false
localdir=.
tmp=
warning_error=false
warning_obsolete=false
+# Parse command line.
while test $# -gt 0 ; do
case "$1" in
--version | --vers* | -V )
exit 1 ;;
esac
-# Well, work now!
-config_h=
-syms=
+# Set up autoconf.
+autoconf="$autoconf -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here. #
+# ----------------------- #
# Source what the traces are trying to tell us.
-autoconf=`echo "$0" | sed -e 's,[^/]*$,autoconf,'`
-test -n "$localdir" && autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
$autoconf \
--trace AC_CONFIG_HEADERS:'config_h="$1"' \
--trace AH_OUTPUT:'ac_verbatim_$1="\
help="\
Try \`$me --help' for more information."
-localdir=
-verbose=:
-force=no
+# NLS nuisances.
+# Only set these to C if already set. These must not be set unconditionally
+# because not all systems understand e.g. LANG=C (notably SCO).
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+# Non-C LC_CTYPE values break the ctype check.
+if test "${LANG+set}" = set; then LANG=C; export LANG; fi
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
+
+# Variables.
+: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+ autoconf=$AUTOCONF
+else
+ autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
+if test -n "$AUTOHEADER"; then
+ autoheader=$AUTOHEADER
+else
+ autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
+fi
automake_mode=--gnu
automake_deps=
+force=no
+localdir=.
+verbose=:
-test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
-
+# Parse command line.
while test $# -gt 0; do
case "$1" in
--version | --vers* | -V )
exit 1
fi
-# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo "$0" | sed s%autoreconf%autoconf%`
-top_autoheader=`echo "$0" | sed s%autoreconf%autoheader%`
+# Set up autoconf and autoheader.
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here. #
+# ----------------------- #
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;;
esac
- case "$0" in
- /*) autoconf=$top_autoconf; autoheader=$top_autoheader ;;
- */*) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;;
- *) autoconf=$top_autoconf; autoheader=$top_autoheader ;;
- esac
-
- case "$AC_MACRODIR" in
- /*) macrodir_opt="--macrodir=$AC_MACRODIR" ;;
- *) macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;;
- esac
-
case "$localdir" in
- "") localdir_opt=
- aclocal_m4=aclocal.m4 ;;
/*) localdir_opt="--localdir=$localdir"
aclocal_m4=$localdir/aclocal.m4 ;;
*) localdir_opt="--localdir=$dots$localdir"
:
else
$verbose "running autoconf in $dir"
- $autoconf $macrodir_opt $localdir_opt
+ $autoconf $localdir_opt
fi
if grep '^[ ]*A[CM]_CONFIG_HEADER' configure.in >/dev/null; then
:
else
$verbose "running autoheader in $dir"
- $autoheader $macrodir_opt $localdir_opt &&
+ $autoheader $localdir_opt &&
$verbose "touching $stamp" &&
touch $stamp
fi
help="\
Try \`$me --help' for more information."
-localdir=
-verbose=:
-force=no
+# NLS nuisances.
+# Only set these to C if already set. These must not be set unconditionally
+# because not all systems understand e.g. LANG=C (notably SCO).
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+# Non-C LC_CTYPE values break the ctype check.
+if test "${LANG+set}" = set; then LANG=C; export LANG; fi
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
+
+# Variables.
+: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+ autoconf=$AUTOCONF
+else
+ autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
+if test -n "$AUTOHEADER"; then
+ autoheader=$AUTOHEADER
+else
+ autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
+fi
automake_mode=--gnu
automake_deps=
+force=no
+localdir=.
+verbose=:
-test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
-
+# Parse command line.
while test $# -gt 0; do
case "$1" in
--version | --vers* | -V )
exit 1
fi
-# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo "$0" | sed s%autoreconf%autoconf%`
-top_autoheader=`echo "$0" | sed s%autoreconf%autoheader%`
+# Set up autoconf and autoheader.
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here. #
+# ----------------------- #
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;;
esac
- case "$0" in
- /*) autoconf=$top_autoconf; autoheader=$top_autoheader ;;
- */*) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;;
- *) autoconf=$top_autoconf; autoheader=$top_autoheader ;;
- esac
-
- case "$AC_MACRODIR" in
- /*) macrodir_opt="--macrodir=$AC_MACRODIR" ;;
- *) macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;;
- esac
-
case "$localdir" in
- "") localdir_opt=
- aclocal_m4=aclocal.m4 ;;
/*) localdir_opt="--localdir=$localdir"
aclocal_m4=$localdir/aclocal.m4 ;;
*) localdir_opt="--localdir=$dots$localdir"
:
else
$verbose "running autoconf in $dir"
- $autoconf $macrodir_opt $localdir_opt
+ $autoconf $localdir_opt
fi
if grep '^[ ]*A[CM]_CONFIG_HEADER' configure.in >/dev/null; then
:
else
$verbose "running autoheader in $dir"
- $autoheader $macrodir_opt $localdir_opt &&
+ $autoheader $localdir_opt &&
$verbose "touching $stamp" &&
touch $stamp
fi
tmp=
verbose=:
-# Parse command line
+# Parse command line.
while test $# -gt 0 ; do
case "$1" in
--version | --vers* | -V )
# Variables.
: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+ autoconf=$AUTOCONF
+else
+ autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
debug=false
localdir=.
tmp=
warning_error=false
warning_obsolete=false
+# Parse command line.
while test $# -gt 0 ; do
case "$1" in
--version | --vers* | -V )
exit 1 ;;
esac
-# Well, work now!
-config_h=
-syms=
+# Set up autoconf.
+autoconf="$autoconf -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here. #
+# ----------------------- #
# Source what the traces are trying to tell us.
-autoconf=`echo "$0" | sed -e 's,[^/]*$,autoconf,'`
-test -n "$localdir" && autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
$autoconf \
--trace AC_CONFIG_HEADERS:'config_h="$1"' \
--trace AH_OUTPUT:'ac_verbatim_$1="\
help="\
Try \`$me --help' for more information."
-localdir=
-verbose=:
-force=no
+# NLS nuisances.
+# Only set these to C if already set. These must not be set unconditionally
+# because not all systems understand e.g. LANG=C (notably SCO).
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+# Non-C LC_CTYPE values break the ctype check.
+if test "${LANG+set}" = set; then LANG=C; export LANG; fi
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
+
+# Variables.
+: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+ autoconf=$AUTOCONF
+else
+ autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
+if test -n "$AUTOHEADER"; then
+ autoheader=$AUTOHEADER
+else
+ autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
+fi
automake_mode=--gnu
automake_deps=
+force=no
+localdir=.
+verbose=:
-test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
-
+# Parse command line.
while test $# -gt 0; do
case "$1" in
--version | --vers* | -V )
exit 1
fi
-# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo "$0" | sed s%autoreconf%autoconf%`
-top_autoheader=`echo "$0" | sed s%autoreconf%autoheader%`
+# Set up autoconf and autoheader.
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here. #
+# ----------------------- #
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;;
esac
- case "$0" in
- /*) autoconf=$top_autoconf; autoheader=$top_autoheader ;;
- */*) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;;
- *) autoconf=$top_autoconf; autoheader=$top_autoheader ;;
- esac
-
- case "$AC_MACRODIR" in
- /*) macrodir_opt="--macrodir=$AC_MACRODIR" ;;
- *) macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;;
- esac
-
case "$localdir" in
- "") localdir_opt=
- aclocal_m4=aclocal.m4 ;;
/*) localdir_opt="--localdir=$localdir"
aclocal_m4=$localdir/aclocal.m4 ;;
*) localdir_opt="--localdir=$dots$localdir"
:
else
$verbose "running autoconf in $dir"
- $autoconf $macrodir_opt $localdir_opt
+ $autoconf $localdir_opt
fi
if grep '^[ ]*A[CM]_CONFIG_HEADER' configure.in >/dev/null; then
:
else
$verbose "running autoheader in $dir"
- $autoheader $macrodir_opt $localdir_opt &&
+ $autoheader $localdir_opt &&
$verbose "touching $stamp" &&
touch $stamp
fi
\`#ifndef' directives. Print each identifier on a line, followed by a
space-separated list of the files in which that identifier occurs.
- -h, --help print this help, then exit
- -V, --version print version number, then exit
- -v, --verbose verbosely report processing
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -v, --verbose verbosely report processing
Report bugs to <bug-autoconf@gnu.org>."
\`#ifndef' directives. Print each identifier on a line, followed by a
space-separated list of the files in which that identifier occurs.
- -h, --help print this help, then exit
- -V, --version print version number, then exit
- -v, --verbose verbosely report processing
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -v, --verbose verbosely report processing
Report bugs to <bug-autoconf@gnu.org>."
\`#ifndef' directives. Print each identifier on a line, followed by a
space-separated list of the files in which that identifier occurs.
- -h, --help print this help, then exit
- -V, --version print version number, then exit
- -v, --verbose verbosely report processing
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -v, --verbose verbosely report processing
Report bugs to <bug-autoconf@gnu.org>."