/[pcre]/code/tags/pcre-4.1/configure.in
ViewVC logotype

Contents of /code/tags/pcre-4.1/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49 - (hide annotations) (download)
Sat Feb 24 21:39:33 2007 UTC (7 years, 9 months ago) by nigel
Original Path: code/trunk/configure.in
File size: 2132 byte(s)
Load pcre-3.3 into code/trunk.

1 nigel 41 dnl Process this file with autoconf to produce a configure script.
2    
3     dnl This is required at the start; the name is the name of a file
4     dnl it should be seeing, to verify it is in the same directory.
5    
6     AC_INIT(dftables.c)
7    
8 nigel 43 dnl Arrange to build config.h from config.in. Note that pcre.h is
9     dnl built differently, as it is just a "substitution" file.
10     dnl Manual says this macro should come right after AC_INIT.
11     AC_CONFIG_HEADER(config.h:config.in)
12    
13     dnl Provide the current PCRE version information. Do not use numbers
14     dnl with leading zeros for the minor version, as they end up in a C
15     dnl macro, and may be treated as octal constants. Stick to single
16     dnl digits for minor numbers less than 10. There are unlikely to be
17     dnl that many releases anyway.
18    
19     PCRE_MAJOR=3
20 nigel 49 PCRE_MINOR=3
21     PCRE_DATE=01-Aug-2000
22 nigel 43 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
23    
24     dnl Provide versioning information for libtool shared libraries that
25     dnl are built by default on Unix systems.
26    
27 nigel 47 PCRE_LIB_VERSION=0:1:0
28 nigel 43 PCRE_POSIXLIB_VERSION=0:0:0
29    
30 nigel 41 dnl Checks for programs.
31 nigel 43
32 nigel 41 AC_PROG_CC
33     AC_PROG_RANLIB
34    
35     dnl Checks for header files.
36 nigel 43
37 nigel 41 AC_HEADER_STDC
38     AC_CHECK_HEADERS(limits.h)
39    
40     dnl Checks for typedefs, structures, and compiler characteristics.
41 nigel 43
42 nigel 41 AC_C_CONST
43     AC_TYPE_SIZE_T
44    
45     dnl Checks for library functions.
46 nigel 43
47 nigel 47 AC_CHECK_FUNCS(bcopy memmove strerror)
48 nigel 41
49 nigel 43 dnl Handle --enable-shared-libraries
50 nigel 41
51 nigel 47 LIBTOOL=./libtool
52 nigel 43 LIBSUFFIX=la
53 nigel 41 AC_ARG_ENABLE(shared,
54 nigel 43 [ --disable-shared build PCRE as a static library],
55     if test "$enableval" = "no"; then
56     LIBTOOL=
57     LIBSUFFIX=a
58 nigel 41 fi
59     )
60 nigel 43
61 nigel 49 dnl Handle --enable-utf8
62    
63     AC_ARG_ENABLE(utf8,
64     [ --enable-utf8 enable UTF8 support (incomplete)],
65     if test "$enableval" = "yes"; then
66     UTF8=-DSUPPORT_UTF8
67     fi
68     )
69    
70 nigel 43 dnl "Export" these variables
71    
72     AC_SUBST(HAVE_MEMMOVE)
73     AC_SUBST(HAVE_STRERROR)
74 nigel 41 AC_SUBST(LIBTOOL)
75     AC_SUBST(LIBSUFFIX)
76 nigel 49 AC_SUBST(UTF8)
77 nigel 43 AC_SUBST(PCRE_MAJOR)
78     AC_SUBST(PCRE_MINOR)
79     AC_SUBST(PCRE_DATE)
80     AC_SUBST(PCRE_VERSION)
81     AC_SUBST(PCRE_LIB_VERSION)
82     AC_SUBST(PCRE_POSIXLIB_VERSION)
83 nigel 41
84     dnl This must be last; it determines what files are written
85 nigel 49 AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12