1 dnl Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(bison, 1.28a)
5 AM_CONFIG_HEADER(config.h:config.hin)
6 AC_DEFINE_UNQUOTED(VERSION_STRING, "GNU Bison version ${VERSION}",
9 AC_DEFINE([_GNU_SOURCE],1,[Define to 1 for GNU C library extensions.])
11 ALL_LINGUAS="de es et fr ja nl ru"
13 dnl Checks for programs.
21 AC_ARG_ENABLE(gcc-warnings,
22 [ --enable-gcc-warnings turn on lots of GCC warnings (not recommended)],
23 [case "${enableval}" in
25 *) AC_MSG_ERROR([bad value ${enableval} for gcc-warnings option]) ;;
30 if test "${enableval}" = yes; then
33 BISON_WARNING(-Wbad-function-cast)
34 BISON_WARNING(-Wcast-align)
35 BISON_WARNING(-Wcast-qual)
36 BISON_WARNING(-Wmissing-declarations)
37 BISON_WARNING(-Wmissing-prototypes)
38 BISON_WARNING(-Wnested-externs)
39 BISON_WARNING(-Wshadow)
40 BISON_WARNING(-Wstrict-prototypes)
41 BISON_WARNING(-Wwrite-strings)
44 dnl Checks for libraries.
46 dnl Checks for header files.
48 AC_CHECK_HEADERS(ctype.h locale.h memory.h stdlib.h string.h unistd.h)
50 dnl Checks for typedefs.
52 dnl Checks for structures.
54 dnl Checks for compiler characteristics.
58 dnl Checks for library functions.
60 AC_CHECK_FUNCS(mkstemp setlocale)
61 BISON_NEED_DECLARATIONS(calloc realloc)
66 # This is necessary so that .o files in LIBOBJS are also built via
67 # the ANSI2KNR-filtering rules.
68 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
72 intl/Makefile po/Makefile.in
73 lib/Makefile src/Makefile doc/Makefile m4/Makefile])