mirror of
https://github.com/php/php-src.git
synced 2024-09-30 14:26:12 +00:00
17bbbf2963
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.
19 lines
415 B
Plaintext
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)
|
|
])
|