* tests/discover.test: Use a full configure.in that calls AC_INIT.
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 12 Apr 2002 16:37:28 +0000 (16:37 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 12 Apr 2002 16:37:28 +0000 (16:37 +0000)
Use AC_LIBOBJ.  Grep the error message.
* test/ldadd.test: Don't use LIBOBJS.  Use a full configure.in.
Grep the error message.  Require libtool.
* tests/ldflags.test:  Don't use LIBOBJS.
* tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the
error messages for CC and CXX.

ChangeLog
tests/discover.test
tests/ldadd.test
tests/ldflags.test
tests/seenc.test

index 307eba3..57bd6f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
+       * tests/discover.test: Use a full configure.in that calls AC_INIT.
+       Use AC_LIBOBJ.  Grep the error message.
+       * test/ldadd.test: Don't use LIBOBJS.  Use a full configure.in.
+       Grep the error message.  Require libtool.
+       * tests/ldflags.test:  Don't use LIBOBJS.
+       * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the
+       error messages for CC and CXX.
+
+2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
        * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
        and AMDEPBACKSLASH.
        * tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
index 35f05cd..37052b7 100755 (executable)
@@ -4,11 +4,11 @@
 
 . $srcdir/defs || exit 1
 
-cat > configure.in << 'END'
+cat >> configure.in << 'END'
 AC_PROG_RANLIB
 AC_PROG_CC
-LIBOBJS="$LIBOBJS fsusage.o"
-AC_OUTPUT(Makefile)
+AC_LIBOBJ([fsusage])
+AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
@@ -20,5 +20,5 @@ END
 : > fsusage.c
 
 $ACLOCAL || exit 1
-$AUTOMAKE && exit 1
+$AUTOMAKE 2>&1 | fgrep fsusage.c || exit 1
 exit 0
index ff31677..4784f74 100755 (executable)
@@ -2,15 +2,14 @@
 
 # Check to make sure incorrect LDADD usage is diagnosed.
 
+required=libtool
 . $srcdir/defs || exit 1
 
-cat > configure.in << 'END'
+cat >> configure.in << 'END'
 AC_PROG_CC
 AC_PROG_LIBTOOL
-AC_OUTPUT(Makefile)
-LTLIBOBJS="$LTLIBOBJS q.o"
-LIBOBJS="$LIBOBJS q.o"
-AC_SUBST(LTLIBOBJS)
+AC_SUBST([LTLIBOBJS], [q.lo])
+AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
@@ -26,5 +25,5 @@ END
 : > q.c
 
 $ACLOCAL || exit 1
-$AUTOMAKE && exit 1
+$AUTOMAKE 2>&1 | grep LDADD || exit 1
 exit 0
index 4784462..56c746f 100755 (executable)
@@ -5,16 +5,12 @@
 required=libtool
 . $srcdir/defs || exit 1
 
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(no, 0)
+cat >> configure.in << 'END'
 AC_PROG_CC
 AC_PROG_LIBTOOL
-AC_OUTPUT(Makefile)
-LTLIBOBJS="$LTLIBOBJS q.o"
-LIBOBJS="$LIBOBJS q.o"
-AC_SUBST(LTLIBOBJS)
+AC_SUBST([LTLIBOBJS], [q.o])
 AM_CONDITIONAL(USE_SWIG, :)
+AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
index 16ce89f..544b020 100755 (executable)
@@ -5,7 +5,9 @@
 . $srcdir/defs || exit 1
 
 cat >> configure.in << 'END'
-LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
+dnl AC_PROG_CC and AC_PROG_CXX missing on purpose
+AC_LIBOBJ([fsusage])
+AC_LIBOBJ([mountlist])
 END
 
 cat > Makefile.am << 'END'
@@ -18,5 +20,9 @@ END
 : > mountlist.c
 
 $ACLOCAL || exit 1
-$AUTOMAKE > out 2>&1 && exit 1
-exit 0
+# Use -Wno-error, because there are many error messages
+# output for this test, and we just want to make sure some of
+# them are about CC and CXX being undefined.
+$AUTOMAKE --Wno-error 2> err && exit 1
+fgrep CC err || exit 1
+fgrep CXX err || exit 1