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>
+ * 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.
. $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'
: > fsusage.c
$ACLOCAL || exit 1
-$AUTOMAKE && exit 1
+$AUTOMAKE 2>&1 | fgrep fsusage.c || exit 1
exit 0
# 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'
: > q.c
$ACLOCAL || exit 1
-$AUTOMAKE && exit 1
+$AUTOMAKE 2>&1 | grep LDADD || exit 1
exit 0
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'
. $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'
: > 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