5 |
|
|
6 |
AC_INIT(dftables.c) |
AC_INIT(dftables.c) |
7 |
|
|
8 |
|
dnl A safety precaution |
9 |
|
|
10 |
|
AC_PREREQ(2.57) |
11 |
|
|
12 |
dnl Arrange to build config.h from config.in. Note that pcre.h is |
dnl Arrange to build config.h from config.in. Note that pcre.h is |
13 |
dnl built differently, as it is just a "substitution" file. |
dnl built differently, as it is just a "substitution" file. |
14 |
dnl Manual says this macro should come right after AC_INIT. |
dnl Manual says this macro should come right after AC_INIT. |
21 |
dnl that many releases anyway. |
dnl that many releases anyway. |
22 |
|
|
23 |
PCRE_MAJOR=4 |
PCRE_MAJOR=4 |
24 |
PCRE_MINOR=1 |
PCRE_MINOR=2 |
25 |
PCRE_DATE=12-Mar-2003 |
PCRE_DATE=14-Apr-2003 |
26 |
PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} |
PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} |
27 |
|
|
28 |
dnl Default values for miscellaneous macros |
dnl Default values for miscellaneous macros |
42 |
AC_LIBTOOL_WIN32_DLL |
AC_LIBTOOL_WIN32_DLL |
43 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
44 |
|
|
45 |
dnl This is the compiler for compiling a program to run on the local host |
dnl We need to find a compiler for compiling a program to run on the local host |
46 |
dnl while building. It needs to be different from CC when cross-compiling. |
dnl while building. It needs to be different from CC when cross-compiling. |
47 |
dnl There is a macro called AC_PROG_CC_FOR_BUILD in the GNU archive for |
dnl There is a macro called AC_PROG_CC_FOR_BUILD in the GNU archive for |
48 |
dnl figuring this out automatically, but I could not get it to work and I |
dnl figuring this out automatically. Unfortunately, it does not work with the |
49 |
dnl ran out of time. Therefore, these values will have to be set manually |
dnl latest versions of autoconf. So for the moment, we just default to the |
50 |
dnl by people who are cross-compiling. |
dnl same values as the "main" compiler. People who are corss-compiling will |
51 |
|
dnl just have to adjust the Makefile by hand or set these values when they |
52 |
|
dnl run "configure". |
53 |
|
|
54 |
CC_FOR_BUILD=${CC_FOR_BUILD:-'$(CC)'} |
CC_FOR_BUILD=${CC_FOR_BUILD:-'$(CC)'} |
55 |
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:-'$(CFLAGS)'} |
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:-'$(CFLAGS)'} |
56 |
|
BUILD_EXEEXT=${BUILD_EXEEXT:-'$(EXEEXT)'} |
57 |
|
BUILD_OBJEXT=${BUILD_OBJEXT:-'$(OBJEXT)'} |
58 |
|
|
59 |
dnl Checks for header files. |
dnl Checks for header files. |
60 |
|
|
128 |
|
|
129 |
dnl "Export" these variables |
dnl "Export" these variables |
130 |
|
|
131 |
|
AC_SUBST(BUILD_EXEEXT) |
132 |
|
AC_SUBST(BUILD_OBJEXT) |
133 |
AC_SUBST(CC_FOR_BUILD) |
AC_SUBST(CC_FOR_BUILD) |
134 |
AC_SUBST(CFLAGS_FOR_BUILD) |
AC_SUBST(CFLAGS_FOR_BUILD) |
135 |
AC_SUBST(HAVE_MEMMOVE) |
AC_SUBST(HAVE_MEMMOVE) |
153 |
POSIX_OBJ=pcreposix.o |
POSIX_OBJ=pcreposix.o |
154 |
POSIX_LOBJ=pcreposix.lo |
POSIX_LOBJ=pcreposix.lo |
155 |
POSIX_LIB= |
POSIX_LIB= |
156 |
|
ON_WINDOWS= |
157 |
|
NOT_ON_WINDOWS="#" |
158 |
|
WIN_PREFIX= |
159 |
|
;; |
160 |
|
cygwin* ) |
161 |
|
ON_WINDOWS= |
162 |
|
POSIX_OBJ=pcreposix.o |
163 |
|
POSIX_LOBJ=pcreposix.lo |
164 |
|
POSIX_LIB= |
165 |
|
WIN_PREFIX=cyg |
166 |
|
NOT_ON_WINDOWS="#" |
167 |
;; |
;; |
168 |
* ) |
* ) |
169 |
|
ON_WINDOWS="#" |
170 |
|
NOT_ON_WINDOWS= |
171 |
POSIX_OBJ= |
POSIX_OBJ= |
172 |
POSIX_LOBJ= |
POSIX_LOBJ= |
173 |
POSIX_LIB=libpcreposix.la |
POSIX_LIB=libpcreposix.la |
174 |
|
WIN_PREFIX= |
175 |
;; |
;; |
176 |
esac |
esac |
177 |
|
AC_SUBST(WIN_PREFIX) |
178 |
|
AC_SUBST(ON_WINDOWS) |
179 |
|
AC_SUBST(NOT_ON_WINDOWS) |
180 |
AC_SUBST(POSIX_OBJ) |
AC_SUBST(POSIX_OBJ) |
181 |
AC_SUBST(POSIX_LOBJ) |
AC_SUBST(POSIX_LOBJ) |
182 |
AC_SUBST(POSIX_LIB) |
AC_SUBST(POSIX_LIB) |