source: vendor/flex/2.5.33/configure.in@ 3334

Last change on this file since 3334 was 3031, checked in by bird, 18 years ago

flex 2.5.33.

File size: 4.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3dnl This file is part of flex.
4
5dnl Redistribution and use in source and binary forms, with or without
6dnl modification, are permitted provided that the following conditions
7dnl are met:
8
9dnl 1. Redistributions of source code must retain the above copyright
10dnl notice, this list of conditions and the following disclaimer.
11dnl 2. Redistributions in binary form must reproduce the above copyright
12dnl notice, this list of conditions and the following disclaimer in the
13dnl documentation and/or other materials provided with the distribution.
14
15dnl Neither the name of the University nor the names of its contributors
16dnl may be used to endorse or promote products derived from this software
17dnl without specific prior written permission.
18
19dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
20dnl IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
21dnl WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22dnl PURPOSE.
23
24dnl autoconf requirements and initialization
25
26AC_PREREQ(2.54)
27AC_INIT(flex,2.5.33,flex-help@lists.sourceforge.net)
28AC_CONFIG_SRCDIR(scan.l)
29AM_INIT_AUTOMAKE
30AC_CONFIG_HEADER(config.h:conf.in)
31
32dnl checks for programs
33
34AM_GNU_GETTEXT([external])
35AM_GNU_GETTEXT_VERSION(0.12)
36
37AC_PROG_YACC
38AM_PROG_LEX
39AC_PROG_CC
40AC_PROG_CXX
41AC_PROG_LN_S
42AC_PROG_RANLIB
43
44AC_PATH_PROG(BISON, bison,bison)
45AC_PATH_PROG(HELP2MAN, help2man, help2man)
46
47
48# Check for a GNU m4 that supports --prefix-builtins
49AC_PATH_PROGS(M4, gm4 gnum4 m4, m4)
50if test x"$M4" != x; then
51 AC_MSG_CHECKING([for GNU m4])
52 case `$M4 --help < /dev/null 2>&1` in
53 *prefix-builtins*) AC_MSG_RESULT(yes) ;;
54 *) AC_MSG_RESULT(no) ;
55 AC_MSG_ERROR([GNU M4 1.4 is required]) ;;
56 esac
57else
58 AC_MSG_ERROR([GNU M4 1.4 is required]) ;
59fi
60AC_DEFINE_UNQUOTED([M4], ["$M4"], [Define to the GNU M4 executable name.])
61
62AC_PATH_PROG(INDENT, indent, indent)
63dnl if INDENT is set to 'indent' then we didn't find indent
64if test "$INDENT" != indent ; then
65 AC_MSG_CHECKING(if $INDENT is GNU indent)
66 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
67 AC_MSG_RESULT(yes)
68 else
69 AC_MSG_RESULT(no)
70 AC_MSG_WARN($INDENT does not appear to be GNU indent.)
71 fi
72else
73 AC_MSG_WARN(no indent program found: make indent target will not function)
74fi
75
76dnl checks for libraries
77AC_CHECK_LIB(m, log)
78
79dnl checks for header files
80
81AC_HEADER_STDC
82AC_CHECK_HEADERS(unistd.h stdbool.h netinet/in.h limits.h)
83AC_CHECK_HEADERS( sys/wait.h sys/params.h)
84AC_CHECK_HEADERS(cunistd)
85AC_CHECK_HEADERS(locale.h libintl.h)
86AC_CHECK_HEADERS(regex.h)
87
88dnl checks for types
89
90AC_TYPE_SIZE_T
91
92dnl checks for functions
93
94AC_CHECK_DECLS(__func__)
95
96AC_CONFIG_FILES(
97flex.spec
98Makefile
99doc/Makefile
100examples/Makefile
101examples/fastwc/Makefile
102examples/manual/Makefile
103m4/Makefile
104po/Makefile.in
105tools/Makefile
106tests/Makefile
107tests/TEMPLATE/Makefile
108tests/test-array-nr/Makefile
109tests/test-array-r/Makefile
110tests/test-basic-nr/Makefile
111tests/test-basic-r/Makefile
112tests/test-bison-yylloc/Makefile
113tests/test-bison-yylval/Makefile
114tests/test-c-cpp-nr/Makefile
115tests/test-c-cpp-r/Makefile
116tests/test-header-nr/Makefile
117tests/test-header-r/Makefile
118tests/test-include-by-buffer/Makefile
119tests/test-include-by-push/Makefile
120tests/test-include-by-reentrant/Makefile
121tests/test-multiple-scanners-nr/Makefile
122tests/test-multiple-scanners-r/Makefile
123tests/test-noansi-nr/Makefile
124tests/test-noansi-r/Makefile
125tests/test-prefix-nr/Makefile
126tests/test-prefix-r/Makefile
127tests/test-pthread/Makefile
128tests/test-string-nr/Makefile
129tests/test-string-r/Makefile
130tests/test-yyextra/Makefile
131tests/test-lineno-nr/Makefile
132tests/test-lineno-r/Makefile
133tests/test-linedir-r/Makefile
134tests/test-debug-r/Makefile
135tests/test-debug-nr/Makefile
136tests/test-mem-nr/Makefile
137tests/test-mem-r/Makefile
138tests/test-posix/Makefile
139tests/test-posixly-correct/Makefile
140tests/test-table-opts/Makefile
141tests/test-c++-basic/Makefile
142tests/test-bison-nr/Makefile
143tests/test-reject/Makefile
144tests/test-c++-multiple-scanners/Makefile
145tests/test-top/Makefile
146tests/test-rescan-nr/Makefile
147tests/test-rescan-r/Makefile
148dnl --new-test-here-- This line is processed by tests/create-test.
149)
150
151AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.