]> git.saurik.com Git - bison.git/blame - configure.in
* getargs.c (skeleton): New variable.
[bison.git] / configure.in
CommitLineData
e79137ac 1# Process this file with autoconf to produce a configure script.
18569462 2AC_PREREQ(2.49c)
3114db31 3AC_INIT(src/reduce.c)
8c44d3ec 4AM_INIT_AUTOMAKE(bison, 1.28a)
ab137502 5AM_CONFIG_HEADER(config.h:config.hin)
f2939cd6 6
e79137ac
AD
7# Initialize the test suite.
8AT_CONFIG(../src)
bbcb769c 9
e79137ac 10# Checks for programs.
7c4399ed 11AC_PROG_CC
d2729d44
JT
12AC_MINIX
13AC_ISC_POSIX
14AM_PROG_CC_STDC
7c4399ed 15AC_PROG_INSTALL
ab137502 16AC_PROG_RANLIB
e79137ac
AD
17# GNU M4 is needed to build the testsuite.
18BISON_AC_PROG_GNU_M4
19if test "$ac_cv_prog_gnu_m4" != yes; then
20 missing_dir=`cd $ac_aux_dir && pwd`
21 M4="$missing_dir/missing m4"
22fi
f2939cd6 23
630f5212
JT
24AC_ARG_ENABLE(gcc-warnings,
25[ --enable-gcc-warnings turn on lots of GCC warnings (not recommended)],
26[case "${enableval}" in
27 yes|no) ;;
28 *) AC_MSG_ERROR([bad value ${enableval} for gcc-warnings option]) ;;
29 esac
30],
31enableval=no
32)
33if test "${enableval}" = yes; then
34 BISON_WARNING(-Wall)
35 BISON_WARNING(-W)
36 BISON_WARNING(-Wbad-function-cast)
37 BISON_WARNING(-Wcast-align)
38 BISON_WARNING(-Wcast-qual)
39 BISON_WARNING(-Wmissing-declarations)
40 BISON_WARNING(-Wmissing-prototypes)
41 BISON_WARNING(-Wnested-externs)
ab3bec29 42 BISON_WARNING(-Wshadow)
630f5212
JT
43 BISON_WARNING(-Wstrict-prototypes)
44 BISON_WARNING(-Wwrite-strings)
cbd25751 45 CFLAGS="$CFLAGS $WARNING_CFLAGS"
630f5212
JT
46fi
47
e79137ac
AD
48# Checks for libraries.
49AC_DEFINE([_GNU_SOURCE],1,[Define to 1 for GNU C library extensions.])
f2939cd6 50
e79137ac 51# Checks for header files.
f2939cd6 52AC_HEADER_STDC
d2729d44
JT
53AC_CHECK_HEADERS(ctype.h locale.h memory.h stdlib.h string.h unistd.h)
54
e79137ac 55# Checks for typedefs.
d2729d44 56
e79137ac 57# Checks for structures.
f2939cd6 58
e79137ac 59# Checks for compiler characteristics.
f2939cd6 60AC_C_CONST
dd877b0c 61AC_C_INLINE
d2729d44 62AM_C_PROTOTYPES
f2939cd6 63
e79137ac 64# Checks for library functions.
f2939cd6 65AC_FUNC_ALLOCA
8d57fff0 66AC_CHECK_FUNCS(mkstemp setlocale)
18569462
AD
67AC_CHECK_DECLS([stpcpy, strndup, strnlen, memchr])
68AC_REPLACE_FUNCS(stpcpy strndup strnlen memchr)
d7913476
AD
69jm_FUNC_MALLOC
70jm_FUNC_REALLOC
ff4a34be 71jm_PREREQ_QUOTEARG
5141b016 72jm_PREREQ_ERROR
f2939cd6 73
e79137ac 74ALL_LINGUAS="de es et fr ja nl ru"
bbcb769c
JT
75AM_GNU_GETTEXT
76
77# This is necessary so that .o files in LIBOBJS are also built via
78# the ANSI2KNR-filtering rules.
79LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
18539825 80AC_SUBST(LIBOBJS)
bbcb769c 81
8c44d3ec
AD
82AC_OUTPUT([Makefile
83 intl/Makefile po/Makefile.in
e79137ac
AD
84 lib/Makefile src/Makefile doc/Makefile
85 m4/Makefile
86 tests/Makefile tests/atconfig])