From: John Millaway Date: Tue, 9 Jul 2002 18:11:50 +0000 (+0000) Subject: Replaced obsolete macros in configure.in. X-Git-Tag: flex-2-5-10~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cfbabfe5dea37286ed9fc7e697493e832affbbc;p=flex Replaced obsolete macros in configure.in. Modified create-test to handle the above changes in configure.in. Added support for . --- diff --git a/configure.in b/configure.in index 467024d..1daa526 100644 --- a/configure.in +++ b/configure.in @@ -31,18 +31,18 @@ AM_CONFIG_HEADER(config.h:conf.in) 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 @@ -75,4 +75,6 @@ tests/test-lineno-nr/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 diff --git a/flexdef.h b/flexdef.h index 93f7e10..9fc642b 100644 --- a/flexdef.h +++ b/flexdef.h @@ -124,9 +124,14 @@ #define isascii(c) ((c) <= 0177) #endif - +#ifdef HAVE_STDBOOL_H +#include +#else +#define bool int #define true 1 #define false 0 +#endif + #define unspecified -1 diff --git a/tests/create-test b/tests/create-test index de780ef..44c339b 100755 --- a/tests/create-test +++ b/tests/create-test @@ -25,7 +25,7 @@ done 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