Modified create-test to handle the above changes in configure.in.
Added support for <stdbool.h>.
AC_PROG_YACC
AC_CHECK_PROG(BISON, bison, bison)
AM_PROG_LEX
-AC_LN_S
+AC_PROG_LN_S
AC_PROG_CC
AC_PROG_RANLIB
AC_PATH_PROG(HELP2MAN, help2man, $srcdir/missing)
-AC_CONST
+AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_STDC
-AC_HAVE_HEADERS(string.h malloc.h sys/types.h unistd.h)
+AC_CHECK_HEADERS(string.h malloc.h sys/types.h unistd.h stdbool.h)
-AC_OUTPUT(
+AC_CONFIG_FILES(
Makefile
examples/Makefile
examples/fastwc/Makefile
tests/test-lineno-r/Makefile
tests/test-debug-r/Makefile
tests/test-debug-nr/Makefile
+dnl --new-test-here-- This line is processed by tests/create-test.
)
+AC_OUTPUT
#define isascii(c) ((c) <= 0177)
#endif
-
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#else
+#define bool int
#define true 1
#define false 0
+#endif
+
#define unspecified -1
echo "$1" >> "$1"/.cvsignore
# Modify top-level configure.in
-sed '$i\
+sed '/--new-test-here--/i\
tests/'"$1"'/Makefile' < ../configure.in > configure.in.tmp
mv configure.in.tmp ../configure.in