]>
Commit | Line | Data |
---|---|---|
7c4399ed | 1 | dnl Process this file with autoconf to produce a configure script. |
3114db31 | 2 | AC_INIT(src/reduce.c) |
f87a2205 | 3 | AM_INIT_AUTOMAKE(bison,1.29) |
ab137502 | 4 | AM_CONFIG_HEADER(config.h:config.hin) |
8d57fff0 | 5 | AC_PREREQ(2.13) |
f2939cd6 | 6 | |
bb99b87e | 7 | ALL_LINGUAS="de es fr nl ru" |
bbcb769c | 8 | |
f2939cd6 | 9 | dnl Checks for programs. |
7c4399ed | 10 | AC_PROG_CC |
d2729d44 JT |
11 | AC_MINIX |
12 | AC_ISC_POSIX | |
13 | AM_PROG_CC_STDC | |
7c4399ed | 14 | AC_PROG_INSTALL |
ab137502 | 15 | AC_PROG_RANLIB |
f2939cd6 | 16 | |
d2729d44 | 17 | dnl Checks for libraries. |
f2939cd6 DM |
18 | |
19 | dnl Checks for header files. | |
20 | AC_HEADER_STDC | |
d2729d44 JT |
21 | AC_CHECK_HEADERS(ctype.h locale.h memory.h stdlib.h string.h unistd.h) |
22 | ||
23 | dnl Checks for typedefs. | |
24 | ||
25 | dnl Checks for structures. | |
f2939cd6 | 26 | |
d2729d44 | 27 | dnl Checks for compiler characteristics. |
f2939cd6 | 28 | AC_C_CONST |
d2729d44 | 29 | AM_C_PROTOTYPES |
f2939cd6 DM |
30 | |
31 | dnl Checks for library functions. | |
32 | AC_FUNC_ALLOCA | |
8d57fff0 | 33 | AC_CHECK_FUNCS(mkstemp setlocale) |
f9b730cd | 34 | BISON_NEED_DECLARATIONS(calloc realloc) |
f2939cd6 | 35 | |
bbcb769c JT |
36 | AM_GNU_GETTEXT |
37 | ||
38 | # This is necessary so that .o files in LIBOBJS are also built via | |
39 | # the ANSI2KNR-filtering rules. | |
40 | LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` | |
41 | ||
6ed61226 | 42 | AC_DEFINE_UNQUOTED(VERSION_STRING, "GNU Bison version ${VERSION}") |
86b7964a JT |
43 | XPFILE="${datadir}/bison.simple" |
44 | BISON_DEFINE_FILE(XPFILE, XPFILE) | |
45 | XPFILE1="${datadir}/bison.hairy" | |
46 | BISON_DEFINE_FILE(XPFILE1, XPFILE1) | |
47 | LOCALEDIR="${datadir}/locale" | |
48 | BISON_DEFINE_FILE(LOCALEDIR, LOCALEDIR) | |
9eceb6c6 | 49 | |
8ebbae2a | 50 | AC_OUTPUT(Makefile intl/Makefile po/Makefile.in src/Makefile doc/Makefile) |