source: trunk/third/pcre/configure.in @ 19309

Revision 19309, 2.3 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r19308, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3dnl This is required at the start; the name is the name of a file
4dnl it should be seeing, to verify it is in the same directory.
5
6AC_INIT(dftables.c)
7
8dnl Arrange to build config.h from config.in. Note that pcre.h is
9dnl built differently, as it is just a "substitution" file.
10dnl Manual says this macro should come right after AC_INIT.
11AC_CONFIG_HEADER(config.h:config.in)
12
13dnl Provide the current PCRE version information. Do not use numbers
14dnl with leading zeros for the minor version, as they end up in a C
15dnl macro, and may be treated as octal constants. Stick to single
16dnl digits for minor numbers less than 10. There are unlikely to be
17dnl that many releases anyway.
18
19PCRE_MAJOR=3
20PCRE_MINOR=9
21PCRE_DATE=02-Jan-2002
22PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
23
24dnl Provide versioning information for libtool shared libraries that
25dnl are built by default on Unix systems.
26
27PCRE_LIB_VERSION=0:1:0
28PCRE_POSIXLIB_VERSION=0:0:0
29
30dnl Checks for programs.
31
32AC_PROG_CC
33AC_PROG_INSTALL
34AC_PROG_RANLIB
35
36dnl Checks for header files.
37
38AC_HEADER_STDC
39AC_CHECK_HEADERS(limits.h)
40
41dnl Checks for typedefs, structures, and compiler characteristics.
42
43AC_C_CONST
44AC_TYPE_SIZE_T
45
46dnl Checks for library functions.
47
48AC_CHECK_FUNCS(bcopy memmove strerror)
49
50dnl Handle --enable-utf8
51
52AC_ARG_ENABLE(utf8,
53[  --enable-utf8           enable UTF8 support (incomplete)],
54if test "$enableval" = "yes"; then
55  UTF8=-DSUPPORT_UTF8
56fi
57)
58
59dnl Handle --enable-newline-is-cr
60
61AC_ARG_ENABLE(newline-is-cr,
62[  --enable-newline-is-cr  use CR as the newline character],
63if test "$enableval" = "yes"; then
64  NEWLINE=-DNEWLINE=13
65fi
66)
67
68dnl Handle --enable-newline-is-lf
69
70AC_ARG_ENABLE(newline-is-lf,
71[  --enable-newline-is-lf  use LF as the newline character],
72if test "$enableval" = "yes"; then
73  NEWLINE=-DNEWLINE=10
74fi
75)
76
77dnl Now arrange to build libtool
78
79AC_PROG_LIBTOOL
80
81dnl "Export" these variables
82
83AC_SUBST(HAVE_MEMMOVE)
84AC_SUBST(HAVE_STRERROR)
85AC_SUBST(NEWLINE)
86AC_SUBST(UTF8)
87AC_SUBST(PCRE_MAJOR)
88AC_SUBST(PCRE_MINOR)
89AC_SUBST(PCRE_DATE)
90AC_SUBST(PCRE_VERSION)
91AC_SUBST(PCRE_LIB_VERSION)
92AC_SUBST(PCRE_POSIXLIB_VERSION)
93
94dnl This must be last; it determines what files are written as well as config.h
95AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])
Note: See TracBrowser for help on using the repository browser.