+2000-07-13 Akim Demaille <akim@epita.fr>
+
+ Make it easier to trace what autoreconf does.
+
+ * autoheader.sh: Be more verbose, and always report your name in
+ verbose messages.
+ * autoconf.sh: Likewise.
+ * autoreconf.sh: Likewise.
+ (update.sh): Redirect ls's stderr to /dev/null.
+
2000-07-13 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Properly
fi
# Run m4 on the input file to get traces.
- $verbose "Running $run_m4_trace $infile | $M4 $tmp/trace.m4" >&2
+ $verbose "$me: running $run_m4_trace $infile | $M4 $tmp/trace.m4" >&2
$run_m4_trace $infile 2>&1 >/dev/null |
sed -f $tmp/trace2m4.sed |
# Now we are ready to run m4 to process the trace file.
fi
# Run m4 on the input file to get traces.
- $verbose "Running $run_m4_trace $infile | $M4 $tmp/trace.m4" >&2
+ $verbose "$me: running $run_m4_trace $infile | $M4 $tmp/trace.m4" >&2
$run_m4_trace $infile 2>&1 >/dev/null |
sed -f $tmp/trace2m4.sed |
# Now we are ready to run m4 to process the trace file.
# ----------------------- #
# Source what the traces are trying to tell us.
+$verbose $me: running $autoconf to trace from $infile >&2
$autoconf \
--trace AC_CONFIG_HEADERS:'config_h="$1"' \
--trace AH_OUTPUT:'ac_verbatim_$1="\
--trace AC_DEFINE:'syms="$$syms $1"' \
--trace AC_DEFINE_UNQUOTED:'syms="$$syms $1"' \
$infile >$tmp/traces.sh || exit 1
+
+$verbose $me: sourcing $tmp/traces.sh >&2
. $tmp/traces.sh
# Make SYMS newline-separated rather than blank-separated, and remove dups.
# Check that all the symbols have a template.
+$verbose $me: checking completeness of the template >&2
status=0
# Regexp for a white space.
w='[ ]'
# ----------------------- #
# Source what the traces are trying to tell us.
+$verbose $me: running $autoconf to trace from $infile >&2
$autoconf \
--trace AC_CONFIG_HEADERS:'config_h="$1"' \
--trace AH_OUTPUT:'ac_verbatim_$1="\
--trace AC_DEFINE:'syms="$$syms $1"' \
--trace AC_DEFINE_UNQUOTED:'syms="$$syms $1"' \
$infile >$tmp/traces.sh || exit 1
+
+$verbose $me: sourcing $tmp/traces.sh >&2
. $tmp/traces.sh
# Make SYMS newline-separated rather than blank-separated, and remove dups.
# Check that all the symbols have a template.
+$verbose $me: checking completeness of the template >&2
status=0
# Regexp for a white space.
w='[ ]'
# Exit 0 iff the first argument is not the most recent of all or is missing.
cat >$tmp/update.sh <<\EOF
test -f "$1" || exit 0
-test x`ls -1dt "$@" | sed 1q` != x"$1"
+test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
EOF
update="@SHELL@ $tmp/update.sh"
aclocal_flags="$aclocal_flags -I $m4dir";;
esac
- $verbose running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
+ $verbose $me: running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
$aclocal $aclocal_flags --output=$localdir/aclocal.m4
fi
# update the file or not. In fact, the effect of `$force' is already
# included in `$automake' via `--no-force'.
if $uses_automake; then
- $verbose running $automake in $dir >&2
+ $verbose $me: running $automake in $dir >&2
$automake
fi
if $force ||
$update configure configure.in $localdir/aclocal.m4; then
- $verbose running $autoconf in $dir >&2
+ $verbose $me: running $autoconf in $dir >&2
$autoconf
fi
# -------------------- #
# templates -- arguments of AC_CONFIG_HEADERS.
+ $verbose $me: running $autoconf -t 'AC_CONFIG_HEADERS:$1'
templates=`$autoconf -t 'AC_CONFIG_HEADERS:$1'`
if test -n "$templates"; then
tcount=`set -- $templates; echo $#`
configure.in $localdir/aclocal.m4 $localdir/acconfig.h ||
$update $stamp \
configure.in $localdir/aclocal_m4 $localdir/acconfig.h; } then
- $verbose running $autoheader in $dir >&2
+ $verbose $me: running $autoheader in $dir >&2
$autoheader &&
$verbose "touching $stamp" >&2 &&
touch $stamp
# Exit 0 iff the first argument is not the most recent of all or is missing.
cat >$tmp/update.sh <<\EOF
test -f "$1" || exit 0
-test x`ls -1dt "$@" | sed 1q` != x"$1"
+test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
EOF
update="@SHELL@ $tmp/update.sh"
aclocal_flags="$aclocal_flags -I $m4dir";;
esac
- $verbose running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
+ $verbose $me: running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
$aclocal $aclocal_flags --output=$localdir/aclocal.m4
fi
# update the file or not. In fact, the effect of `$force' is already
# included in `$automake' via `--no-force'.
if $uses_automake; then
- $verbose running $automake in $dir >&2
+ $verbose $me: running $automake in $dir >&2
$automake
fi
if $force ||
$update configure configure.in $localdir/aclocal.m4; then
- $verbose running $autoconf in $dir >&2
+ $verbose $me: running $autoconf in $dir >&2
$autoconf
fi
# -------------------- #
# templates -- arguments of AC_CONFIG_HEADERS.
+ $verbose $me: running $autoconf -t 'AC_CONFIG_HEADERS:$1'
templates=`$autoconf -t 'AC_CONFIG_HEADERS:$1'`
if test -n "$templates"; then
tcount=`set -- $templates; echo $#`
configure.in $localdir/aclocal.m4 $localdir/acconfig.h ||
$update $stamp \
configure.in $localdir/aclocal_m4 $localdir/acconfig.h; } then
- $verbose running $autoheader in $dir >&2
+ $verbose $me: running $autoheader in $dir >&2
$autoheader &&
$verbose "touching $stamp" >&2 &&
touch $stamp
fi
# Run m4 on the input file to get traces.
- $verbose "Running $run_m4_trace $infile | $M4 $tmp/trace.m4" >&2
+ $verbose "$me: running $run_m4_trace $infile | $M4 $tmp/trace.m4" >&2
$run_m4_trace $infile 2>&1 >/dev/null |
sed -f $tmp/trace2m4.sed |
# Now we are ready to run m4 to process the trace file.
# ----------------------- #
# Source what the traces are trying to tell us.
+$verbose $me: running $autoconf to trace from $infile >&2
$autoconf \
--trace AC_CONFIG_HEADERS:'config_h="$1"' \
--trace AH_OUTPUT:'ac_verbatim_$1="\
--trace AC_DEFINE:'syms="$$syms $1"' \
--trace AC_DEFINE_UNQUOTED:'syms="$$syms $1"' \
$infile >$tmp/traces.sh || exit 1
+
+$verbose $me: sourcing $tmp/traces.sh >&2
. $tmp/traces.sh
# Make SYMS newline-separated rather than blank-separated, and remove dups.
# Check that all the symbols have a template.
+$verbose $me: checking completeness of the template >&2
status=0
# Regexp for a white space.
w='[ ]'
# Exit 0 iff the first argument is not the most recent of all or is missing.
cat >$tmp/update.sh <<\EOF
test -f "$1" || exit 0
-test x`ls -1dt "$@" | sed 1q` != x"$1"
+test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
EOF
update="@SHELL@ $tmp/update.sh"
aclocal_flags="$aclocal_flags -I $m4dir";;
esac
- $verbose running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
+ $verbose $me: running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
$aclocal $aclocal_flags --output=$localdir/aclocal.m4
fi
# update the file or not. In fact, the effect of `$force' is already
# included in `$automake' via `--no-force'.
if $uses_automake; then
- $verbose running $automake in $dir >&2
+ $verbose $me: running $automake in $dir >&2
$automake
fi
if $force ||
$update configure configure.in $localdir/aclocal.m4; then
- $verbose running $autoconf in $dir >&2
+ $verbose $me: running $autoconf in $dir >&2
$autoconf
fi
# -------------------- #
# templates -- arguments of AC_CONFIG_HEADERS.
+ $verbose $me: running $autoconf -t 'AC_CONFIG_HEADERS:$1'
templates=`$autoconf -t 'AC_CONFIG_HEADERS:$1'`
if test -n "$templates"; then
tcount=`set -- $templates; echo $#`
configure.in $localdir/aclocal.m4 $localdir/acconfig.h ||
$update $stamp \
configure.in $localdir/aclocal_m4 $localdir/acconfig.h; } then
- $verbose running $autoheader in $dir >&2
+ $verbose $me: running $autoheader in $dir >&2
$autoheader &&
$verbose "touching $stamp" >&2 &&
touch $stamp