| 20 |
dnl digits for minor numbers less than 10. There are unlikely to be |
dnl digits for minor numbers less than 10. There are unlikely to be |
| 21 |
dnl that many releases anyway. |
dnl that many releases anyway. |
| 22 |
|
|
| 23 |
PCRE_MAJOR=4 |
PCRE_MAJOR=5 |
| 24 |
PCRE_MINOR=5 |
PCRE_MINOR=0 |
| 25 |
PCRE_DATE=01-December-2003 |
PCRE_DATE=13-Sep-2004 |
| 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 |
| 38 |
dnl Checks for programs. |
dnl Checks for programs. |
| 39 |
|
|
| 40 |
AC_PROG_CC |
AC_PROG_CC |
| 41 |
|
|
| 42 |
|
dnl The icc compiler has the same options as gcc, so let the rest of the |
| 43 |
|
dnl configure script think it has gcc when setting up dnl options etc. |
| 44 |
|
dnl This is a nasty hack which no longer seems necessary with the update |
| 45 |
|
dnl to the latest libtool files, so I have commented it out. |
| 46 |
|
dnl |
| 47 |
|
dnl if test "$CC" = "icc" ; then GCC=yes ; fi |
| 48 |
|
|
| 49 |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
| 50 |
AC_LIBTOOL_WIN32_DLL |
AC_LIBTOOL_WIN32_DLL |
| 51 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
| 87 |
fi |
fi |
| 88 |
) |
) |
| 89 |
|
|
| 90 |
|
dnl Handle --enable-unicode-properties |
| 91 |
|
|
| 92 |
|
AC_ARG_ENABLE(unicode-properties, |
| 93 |
|
[ --enable-unicode-properties enable Unicode properties support], |
| 94 |
|
if test "$enableval" = "yes"; then |
| 95 |
|
UCP=-DSUPPORT_UCP |
| 96 |
|
fi |
| 97 |
|
) |
| 98 |
|
|
| 99 |
dnl Handle --enable-newline-is-cr |
dnl Handle --enable-newline-is-cr |
| 100 |
|
|
| 101 |
AC_ARG_ENABLE(newline-is-cr, |
AC_ARG_ENABLE(newline-is-cr, |
| 124 |
) |
) |
| 125 |
|
|
| 126 |
dnl Handle --disable-stack-for-recursion |
dnl Handle --disable-stack-for-recursion |
| 127 |
AC_ARG_ENABLE(recursion, |
|
| 128 |
|
AC_ARG_ENABLE(stack-for-recursion, |
| 129 |
[ --disable-stack-for-recursion disable use of stack recursion when matching], |
[ --disable-stack-for-recursion disable use of stack recursion when matching], |
| 130 |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
| 131 |
NO_RECURSE=-DNO_RECURSE |
NO_RECURSE=-DNO_RECURSE |
| 161 |
|
|
| 162 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
| 163 |
|
|
| 164 |
|
dnl Unicode character property support implies UTF-8 support |
| 165 |
|
|
| 166 |
|
if test "$UCP" != "" ; then |
| 167 |
|
UTF8=-DSUPPORT_UTF8 |
| 168 |
|
fi |
| 169 |
|
|
| 170 |
dnl "Export" these variables |
dnl "Export" these variables |
| 171 |
|
|
| 172 |
AC_SUBST(BUILD_EXEEXT) |
AC_SUBST(BUILD_EXEEXT) |
| 187 |
AC_SUBST(PCRE_LIB_VERSION) |
AC_SUBST(PCRE_LIB_VERSION) |
| 188 |
AC_SUBST(PCRE_POSIXLIB_VERSION) |
AC_SUBST(PCRE_POSIXLIB_VERSION) |
| 189 |
AC_SUBST(POSIX_MALLOC_THRESHOLD) |
AC_SUBST(POSIX_MALLOC_THRESHOLD) |
| 190 |
|
AC_SUBST(UCP) |
| 191 |
AC_SUBST(UTF8) |
AC_SUBST(UTF8) |
| 192 |
|
|
| 193 |
dnl Stuff to make MinGW work better. Special treatment is no longer |
dnl Stuff to make MinGW work better. Special treatment is no longer |
| 223 |
fi |
fi |
| 224 |
|
|
| 225 |
dnl This must be last; it determines what files are written as well as config.h |
dnl This must be last; it determines what files are written as well as config.h |
| 226 |
AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config]) |
AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in libpcre.pc:libpcre.pc.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config]) |