diff options
| author | Sascha Schumann <sas@php.net> | 1999-11-12 20:56:30 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-11-12 20:56:30 +0000 |
| commit | ceae3847b8b53c8f22b3dde52834d395c41a2e68 (patch) | |
| tree | 2ea32759062707dd89c409133c6df029e6e3eef0 /configure.in | |
| parent | 6f572248907b8489b360ed2f030c10a2f5bb2e67 (diff) | |
| download | php-git-ceae3847b8b53c8f22b3dde52834d395c41a2e68.tar.gz | |
Enable selective regex library compilation.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 45 |
1 files changed, 2 insertions, 43 deletions
diff --git a/configure.in b/configure.in index bd943cbca3..cbf3489673 100644 --- a/configure.in +++ b/configure.in @@ -386,49 +386,6 @@ AC_ARG_ENABLE(versioning, ]) AC_MSG_RESULT($RESULT) -AC_MSG_CHECKING(whether to use bundled regex library) -AC_ARG_WITH(system-regex, -[ --with-system-regex Do not use the bundled regex library], -[ - if test -n "$APXS"; then - if test -n "`$APXS -q CFLAGS | grep USE_HSREGEX`"; then - HSREGEX=yes - else - HSREGEX=no - fi - else - if test "$withval" = "no"; then - HSREGEX=yes - else - HSREGEX=no - fi - fi -],[ - if test -n "$APXS"; then - if test -n "`$APXS -q CFLAGS | grep USE_HSREGEX`"; then - HSREGEX=yes - else - HSREGEX=no - fi - else - HSREGEX=yes - fi -]) -AC_MSG_RESULT($HSREGEX) - -if test "$HSREGEX" = "yes"; then - REGEX_LIB=regex/libregex.la - AC_DEFINE(HSREGEX) - AC_DEFINE(REGEX,1) -else - REGEX_LIB= - AC_DEFINE(REGEX,0) -fi - -AC_SUBST(REGEX_LIB) -AC_SUBST(HSREGEX) - - AC_MSG_CHECKING(whether to use a configuration file) AC_ARG_WITH(config-file-path, [ --with-config-file-path=PATH @@ -672,6 +629,8 @@ if test "$enable_debug" != "yes"; then AM_SET_LIBTOOL_VARIABLE([--silent]) fi +PHP_HSREGEX + dnl If we are using gcc and the user has not specified CFLAGS, add -O2. test -n "$auto_cflags" && test -n "$GCC" && CFLAGS="$CFLAGS -O2" |
