+Mon Aug 10 20:57:35 1998 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (handle_yacc_lex_cxx): Redirect ansi2knr output to
+ correct file. From Kave Ghazi.
+
Sun Aug 2 16:05:16 1998 Tom Tromey <tromey@cygnus.com>
* Released 1.3a.
. '`if test -f $(srcdir)/' . $base . '.c'
. '; then echo $(srcdir)/' . $base . '.c'
. '; else echo ' . $base . '.c; fi` '
- . '| $(ANSI2KNR) ' . $base . "_.c\n");
+ . '| $(ANSI2KNR) > ' . $base . "_.c\n");
push (@objects, $base . '_.o');
push (@objects, $base . '_.lo') if $seen_libtool;
}
+Mon Aug 10 21:05:15 1998 Tom Tromey <tromey@cygnus.com>
+
+ * ansi3.test: New file.
+
Sat Jul 18 00:27:26 1998 Tom Tromey <tromey@cygnus.com>
* recurs.test: New file.
texinfo5.test aclocali.test texinfo6.test condman2.test colon4.test \
java.test sinclude.test javaprim.test javasubst.test aclocalii.test \
lex2.test libobj8.test version3.test instdata.test exdir2.test \
-colon5.test library.test syntax.test cond4.test cond5.test recurs.test
+colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
+ansi3.test
EXTRA_DIST = defs $(TESTS)
texinfo5.test aclocali.test texinfo6.test condman2.test colon4.test \
java.test sinclude.test javaprim.test javasubst.test aclocalii.test \
lex2.test libobj8.test version3.test instdata.test exdir2.test \
-colon5.test library.test syntax.test cond4.test cond5.test recurs.test
+colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
+ansi3.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Actual test of ansi2knr functionality. Relies on existence
+# of working gcc.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(hello.c)
+AM_INIT_AUTOMAKE(hello,0.23)
+AC_PROG_CC
+AM_C_PROTOTYPES
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = ansi2knr
+bin_PROGRAMS = hello
+END
+
+cat > hello.c << 'END'
+#include <stdio.h>
+int
+main (int argc, char *argv[])
+{
+ printf ("yeah, yeah\n");
+ return 0;
+}
+END
+
+# Fail gracefully if no autoconf.
+(autoconf --version) > /dev/null 2>&1 || exit 0
+
+# Likewise for gcc.
+(gcc -v) > /dev/null 2>&1 || exit 0
+
+$ACLOCAL \
+ && autoconf \
+ && $AUTOMAKE -a \
+ && CC='gcc -traditional' ./configure \
+ && $MAKE ANSI2KNR=./ansi2knr U=_ \
+ && ./hello