* m4/depend.m4 (AM_DEPENDENCIES): Don't leave `AC_PROG_CC' etc. in
authorAkim Demaille <akim@epita.fr>
Fri, 26 Jan 2001 14:21:37 +0000 (14:21 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 26 Jan 2001 14:21:37 +0000 (14:21 +0000)
clear.
* m4/init.m4: Likewise.
* m4/sanity.m4: s/conftestfile/conftest.file/.

m4/Makefile.in
tests/ChangeLog
tests/ansi3.test
tests/cond9.test
tests/defs
tests/install2.test
tests/pr19.test
tests/pr87.test
tests/pr9.test
tests/subobj3.test
tests/target-cflags.test

index 6216635..22efe7c 100644 (file)
@@ -61,8 +61,6 @@ POST_UNINSTALL = :
 AMDEP = @AMDEP@
 AMTAR = @AMTAR@
 AWK = @AWK@
-CC = @CC@
-CXX = @CXX@
 DEPDIR = @DEPDIR@
 MAKEINFO = @MAKEINFO@
 PACKAGE = @PACKAGE@
index a21498d..b836f37 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-26  Akim Demaille  <akim@epita.fr>
+
+       * defs (AUTOCONF, has_autoconf, needs_autoconf): New.
+       * ansi3.test, cond9.test, depacl2.test, install2.test, pr19.test,
+       * pr87.test, pr9.test, subobj3.test, target-cflags.test: Use them.
+
 2001-01-25  Pavel Roskin  <proski@gnu.org>
 
        * makevars.test: Disable shell tracing.
index de75390..858b009 100755 (executable)
@@ -29,7 +29,7 @@ main (int argc, char *argv[])
 END
 
 # Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
 
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 0
@@ -37,7 +37,7 @@ END
 # We use gcc and not gcc -traditional as the latter fails on some
 # Linux boxes (Red Hat 5.1 in particular).
 $ACLOCAL \
-   && autoconf \
+   && $AUTOCONF \
    && $AUTOMAKE -a \
    && CC='gcc' ./configure \
    && $MAKE ANSI2KNR=./ansi2knr U=_ \
index 504323c..ebe419c 100755 (executable)
@@ -22,10 +22,10 @@ echo-something:
        echo '$(this)'
 END
 
-(autoconf --version) > /dev/null 2>&1 || exit 77
+$needs_autoconf
 
 $ACLOCAL \
-  && autoconf \
+  && $AUTOCONF \
   && $AUTOMAKE -a \
   && ./configure \
   && $MAKE echo-something | grep interesting > /dev/null
index 4a6824d..11f2f8f 100644 (file)
@@ -54,6 +54,17 @@ test -z "$PERL" && PERL=perl
 # User can set MAKE to choose which make to use.  Must use GNU make.
 test -z "$MAKE" && MAKE=make
 
+# User can set which tools from Autoconf to use.
+test -z "$AUTOCONF" && AUTOCONF=autoconf
+if ($AUTOCONF --version) >/dev/null 2>&1; then
+  has_autoconf=:
+  needs_autoconf=:
+else
+  has_autoconf=false
+  needs_autoconf='exit 77'
+fi
+
+
 echo "=== Running test $0"
 
 # See how Automake should be run.  We put --foreign as the default
index 4bd438f..9980e11 100755 (executable)
@@ -21,13 +21,13 @@ END
 rm -f install-sh mkinstalldirs missing
 
 # Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
 
 # Likewise for gzip.
 (gzip --version) > /dev/null 2>&1 || exit 0
 
 $ACLOCAL || exit 1
-autoconf || exit 1
+$AUTOCONF || exit 1
 $AUTOMAKE -a || exit 1
 
 chmod 000 Makefile.am
index 8c13873..1798404 100755 (executable)
@@ -34,7 +34,7 @@ rm -f install-sh missing mkinstalldirs depcomp
 echo %% > foo.l
 
 # Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
 
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 0
@@ -43,7 +43,7 @@ echo %% > foo.l
 (gzip --version) > /dev/null 2>&1 || exit 0
 
 $ACLOCAL || exit 1
-autoconf || exit 1
+$AUTOCONF || exit 1
 $AUTOMAKE -a || exit 1
 CC=gcc ./configure || exit 1
 $MAKE || exit 1
index 0fa892a..0db44d3 100755 (executable)
@@ -27,7 +27,7 @@ AC_OUTPUT(Makefile `echo $subdirs | sed 's|\([a-z][a-z]*\)|\1/Makefile|g'`)
 EOF
 
 # Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
 
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 0
@@ -41,7 +41,7 @@ rm missing install-sh mkinstalldirs
 # We use gcc and not gcc -traditional as the latter fails on some
 # Linux boxes (Red Hat 5.1 in particular).
 $ACLOCAL \
-   && autoconf \
+   && $AUTOCONF \
    && $AUTOMAKE -a \
    && cd build \
    && CC='gcc' ../configure \
index 5e44d64..735a3ae 100755 (executable)
@@ -20,14 +20,14 @@ rm -f install-sh missing mkinstalldirs depcomp
 mkdir support
 
 # Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
 
 # Likewise for gzip.
 (gzip --version) > /dev/null 2>&1 || exit 0
 
 $ACLOCAL || exit 1
 
-autoconf || exit 1
+$AUTOCONF || exit 1
 $AUTOMAKE -a -c || exit 1
 ./configure || exit 1
 $MAKE || exit 1
index 64af126..bfd36eb 100755 (executable)
@@ -37,7 +37,7 @@ main (int argc, char *argv[])
 END
 
 # Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
 
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 0
@@ -45,7 +45,7 @@ END
 # We use gcc and not gcc -traditional as the latter fails on some
 # Linux boxes (Red Hat 5.1 in particular).
 $ACLOCAL \
-   && autoconf \
+   && $AUTOCONF \
    && $AUTOMAKE -a \
    && CC='gcc' ./configure \
    && $MAKE ANSI2KNR=./ansi2knr U=_ \
index fd412fd..4179a55 100755 (executable)
@@ -38,13 +38,13 @@ int main(void)
 END
 
 # Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
 
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 0
 
 $ACLOCAL \
-   && autoconf \
+   && $AUTOCONF \
    && $AUTOMAKE -a \
    && mkdir obj \
    && (cd obj && ../configure && $MAKE && ./foo && ./bar) \