| 17 |
dnl that many releases anyway. |
dnl that many releases anyway. |
| 18 |
|
|
| 19 |
PCRE_MAJOR=3 |
PCRE_MAJOR=3 |
| 20 |
PCRE_MINOR=0 |
PCRE_MINOR=4 |
| 21 |
PCRE_DATE=01-Feb-2000 |
PCRE_DATE=22-Aug-2000 |
| 22 |
PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} |
PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} |
| 23 |
|
|
| 24 |
dnl Provide versioning information for libtool shared libraries that |
dnl Provide versioning information for libtool shared libraries that |
| 25 |
dnl are built by default on Unix systems. |
dnl are built by default on Unix systems. |
| 26 |
|
|
| 27 |
PCRE_LIB_VERSION=0:0:0 |
PCRE_LIB_VERSION=0:1:0 |
| 28 |
PCRE_POSIXLIB_VERSION=0:0:0 |
PCRE_POSIXLIB_VERSION=0:0:0 |
| 29 |
|
|
| 30 |
dnl Checks for programs. |
dnl Checks for programs. |
| 44 |
|
|
| 45 |
dnl Checks for library functions. |
dnl Checks for library functions. |
| 46 |
|
|
| 47 |
AC_CHECK_FUNCS(memmove strerror) |
AC_CHECK_FUNCS(bcopy memmove strerror) |
| 48 |
|
|
| 49 |
dnl Handle --enable-shared-libraries |
dnl Handle --enable-shared-libraries |
| 50 |
|
|
| 51 |
LIBTOOL=libtool |
LIBTOOL=./libtool |
| 52 |
LIBSUFFIX=la |
LIBSUFFIX=la |
| 53 |
AC_ARG_ENABLE(shared, |
AC_ARG_ENABLE(shared, |
| 54 |
[ --disable-shared build PCRE as a static library], |
[ --disable-shared build PCRE as a static library], |
| 58 |
fi |
fi |
| 59 |
) |
) |
| 60 |
|
|
| 61 |
|
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 |
dnl "Export" these variables |
dnl "Export" these variables |
| 71 |
|
|
| 72 |
AC_SUBST(HAVE_MEMMOVE) |
AC_SUBST(HAVE_MEMMOVE) |
| 73 |
AC_SUBST(HAVE_STRERROR) |
AC_SUBST(HAVE_STRERROR) |
| 74 |
AC_SUBST(LIBTOOL) |
AC_SUBST(LIBTOOL) |
| 75 |
AC_SUBST(LIBSUFFIX) |
AC_SUBST(LIBSUFFIX) |
| 76 |
|
AC_SUBST(UTF8) |
| 77 |
AC_SUBST(PCRE_MAJOR) |
AC_SUBST(PCRE_MAJOR) |
| 78 |
AC_SUBST(PCRE_MINOR) |
AC_SUBST(PCRE_MINOR) |
| 79 |
AC_SUBST(PCRE_DATE) |
AC_SUBST(PCRE_DATE) |
| 82 |
AC_SUBST(PCRE_POSIXLIB_VERSION) |
AC_SUBST(PCRE_POSIXLIB_VERSION) |
| 83 |
|
|
| 84 |
dnl This must be last; it determines what files are written |
dnl This must be last; it determines what files are written |
| 85 |
AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config,[chmod a+x pcre-config]) |
AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config]) |