--- code/trunk/configure.in 2007/02/24 21:39:25 45 +++ code/trunk/configure.in 2007/02/24 21:39:42 53 @@ -17,19 +17,20 @@ dnl that many releases anyway. PCRE_MAJOR=3 -PCRE_MINOR=1 -PCRE_DATE=09-Feb-2000 +PCRE_MINOR=5 +PCRE_DATE=15-Aug-2001 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} dnl Provide versioning information for libtool shared libraries that dnl are built by default on Unix systems. -PCRE_LIB_VERSION=0:0:0 +PCRE_LIB_VERSION=0:1:0 PCRE_POSIXLIB_VERSION=0:0:0 dnl Checks for programs. AC_PROG_CC +AC_PROG_INSTALL AC_PROG_RANLIB dnl Checks for header files. @@ -44,26 +45,45 @@ dnl Checks for library functions. -AC_CHECK_FUNCS(memmove strerror) +AC_CHECK_FUNCS(bcopy memmove strerror) -dnl Handle --enable-shared-libraries +dnl Handle --enable-utf8 -LIBTOOL=libtool -LIBSUFFIX=la -AC_ARG_ENABLE(shared, -[ --disable-shared build PCRE as a static library], -if test "$enableval" = "no"; then - LIBTOOL= - LIBSUFFIX=a +AC_ARG_ENABLE(utf8, +[ --enable-utf8 enable UTF8 support (incomplete)], +if test "$enableval" = "yes"; then + UTF8=-DSUPPORT_UTF8 fi ) +dnl Handle --enable-newline-is-cr + +AC_ARG_ENABLE(newline-is-cr, +[ --enable-newline-is-cr use CR as the newline character], +if test "$enableval" = "yes"; then + NEWLINE=-DNEWLINE=13 +fi +) + +dnl Handle --enable-newline-is-lf + +AC_ARG_ENABLE(newline-is-lf, +[ --enable-newline-is-lf use LF as the newline character], +if test "$enableval" = "yes"; then + NEWLINE=-DNEWLINE=10 +fi +) + +dnl Now arrange to build libtool + +AC_PROG_LIBTOOL + dnl "Export" these variables AC_SUBST(HAVE_MEMMOVE) AC_SUBST(HAVE_STRERROR) -AC_SUBST(LIBTOOL) -AC_SUBST(LIBSUFFIX) +AC_SUBST(NEWLINE) +AC_SUBST(UTF8) AC_SUBST(PCRE_MAJOR) AC_SUBST(PCRE_MINOR) AC_SUBST(PCRE_DATE) @@ -71,5 +91,5 @@ AC_SUBST(PCRE_LIB_VERSION) AC_SUBST(PCRE_POSIXLIB_VERSION) -dnl This must be last; it determines what files are written -AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config,[chmod a+x pcre-config]) +dnl This must be last; it determines what files are written as well as config.h +AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])