php-src/ext/pcre/config.m4
Andrey Hristov 17bbbf2963 Initial check-in of PCRE (Perl Compatible Regular Expressions) extension.
PCRE library can be found at ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/

config.m4 will be updated to be more robust later on.

perl_match() takes a regular expression, the source string, and the array
for subpattern matches.

perl_replace() takes a regular expression, the search string, and the replacement
string.

Regular expression is specified using delimiters and options.  Example:

perl_match("/<[a-z]*>/i", $text, $tags);

More stuff is coming soon.
1999-05-21 13:17:23 +00:00

19 lines
415 B
Plaintext

dnl $Id$
dnl config.m4 for extension pcre
AC_MSG_CHECKING(for PCRE support)
AC_ARG_WITH(pcre,
[ --with-pcre Include Perl Compatible Regular Expressions support],[
if test "$withval" = "yes"; then
PCRE_LIBS="-lpcre"
AC_DEFINE(HAVE_LIBPCRE, 1)
AC_MSG_RESULT(yes)
PHP_EXTENSION(pcre)
EXTRA_LIBS="$EXTRA_LIBS $PCRE_LIBS"
else
AC_MSG_RESULT(no)
fi
],[
AC_MSG_RESULT(no)
])