diff --git a/ChangeLog b/ChangeLog index acc21572..0af4f737 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-07-10 Akim Demaille + + * autoreconf.sh (run_aclocal): Rename as `uses_aclocal' to avoid + the convention clash with autoconf.sh where `run_foo' is the + command to run `foo'. + (uses_autoheader): New variable. + 2000-07-10 Akim Demaille * autoreconf.sh (update.sh): New sub program. diff --git a/autoreconf.in b/autoreconf.in index 5700b9c9..87794dac 100644 --- a/autoreconf.in +++ b/autoreconf.in @@ -246,14 +246,14 @@ while read dir; do # Running aclocal. # # ----------------- # - # run_aclocal -- is this package using aclocal? - run_aclocal=false + # uses_aclocal -- is this package using aclocal? + uses_aclocal=false aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'` if grep 'generated automatically by aclocal' $aclocal_m4 >/dev/null 2>&1 || test -f "$aclocal_dir/acinclude.m4"; then - run_aclocal=: + uses_aclocal=: fi - if $run_aclocal && + if $uses_aclocal && { $force || $update $aclocal_m4 $aclocal_dir/acinclude.m4; } then # If there are flags for aclocal in Makefile.am, use them. @@ -310,10 +310,14 @@ while read dir; do stamp=$template_dir/stamp-h$stamp_num.in acconfig_h=`echo $localdir_opt | sed -e 's/--localdir=//' \ -e '/./ s%$%/%'`acconfig.h - if test ! -f "$template" || grep autoheader "$template" >/dev/null; then - if $force || + uses_autoheader=false; + if grep autoheader "$template" >/dev/null 2>&1; then + uses_autoheader=: + fi + if $uses_autoheader && + { $force || $update $template $stamp configure.in $aclocal_m4 $acconfig_h || - $update $stamp $template configure.in $aclocal_m4 $acconfig_h; then + $update $stamp $template configure.in $aclocal_m4 $acconfig_h; } then $verbose running $autoheader $localdir_opt in $dir $autoheader $localdir_opt && $verbose "touching $stamp" && diff --git a/autoreconf.sh b/autoreconf.sh index 5700b9c9..87794dac 100644 --- a/autoreconf.sh +++ b/autoreconf.sh @@ -246,14 +246,14 @@ while read dir; do # Running aclocal. # # ----------------- # - # run_aclocal -- is this package using aclocal? - run_aclocal=false + # uses_aclocal -- is this package using aclocal? + uses_aclocal=false aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'` if grep 'generated automatically by aclocal' $aclocal_m4 >/dev/null 2>&1 || test -f "$aclocal_dir/acinclude.m4"; then - run_aclocal=: + uses_aclocal=: fi - if $run_aclocal && + if $uses_aclocal && { $force || $update $aclocal_m4 $aclocal_dir/acinclude.m4; } then # If there are flags for aclocal in Makefile.am, use them. @@ -310,10 +310,14 @@ while read dir; do stamp=$template_dir/stamp-h$stamp_num.in acconfig_h=`echo $localdir_opt | sed -e 's/--localdir=//' \ -e '/./ s%$%/%'`acconfig.h - if test ! -f "$template" || grep autoheader "$template" >/dev/null; then - if $force || + uses_autoheader=false; + if grep autoheader "$template" >/dev/null 2>&1; then + uses_autoheader=: + fi + if $uses_autoheader && + { $force || $update $template $stamp configure.in $aclocal_m4 $acconfig_h || - $update $stamp $template configure.in $aclocal_m4 $acconfig_h; then + $update $stamp $template configure.in $aclocal_m4 $acconfig_h; } then $verbose running $autoheader $localdir_opt in $dir $autoheader $localdir_opt && $verbose "touching $stamp" && diff --git a/bin/autoreconf.in b/bin/autoreconf.in index 5700b9c9..87794dac 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -246,14 +246,14 @@ while read dir; do # Running aclocal. # # ----------------- # - # run_aclocal -- is this package using aclocal? - run_aclocal=false + # uses_aclocal -- is this package using aclocal? + uses_aclocal=false aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'` if grep 'generated automatically by aclocal' $aclocal_m4 >/dev/null 2>&1 || test -f "$aclocal_dir/acinclude.m4"; then - run_aclocal=: + uses_aclocal=: fi - if $run_aclocal && + if $uses_aclocal && { $force || $update $aclocal_m4 $aclocal_dir/acinclude.m4; } then # If there are flags for aclocal in Makefile.am, use them. @@ -310,10 +310,14 @@ while read dir; do stamp=$template_dir/stamp-h$stamp_num.in acconfig_h=`echo $localdir_opt | sed -e 's/--localdir=//' \ -e '/./ s%$%/%'`acconfig.h - if test ! -f "$template" || grep autoheader "$template" >/dev/null; then - if $force || + uses_autoheader=false; + if grep autoheader "$template" >/dev/null 2>&1; then + uses_autoheader=: + fi + if $uses_autoheader && + { $force || $update $template $stamp configure.in $aclocal_m4 $acconfig_h || - $update $stamp $template configure.in $aclocal_m4 $acconfig_h; then + $update $stamp $template configure.in $aclocal_m4 $acconfig_h; } then $verbose running $autoheader $localdir_opt in $dir $autoheader $localdir_opt && $verbose "touching $stamp" &&