diff options
-rw-r--r-- | ext/standard/config.m4 | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 120e19ac14..4f68ecde38 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -199,8 +199,23 @@ AC_FLUSH_IO divert(5)dnl AC_ARG_WITH(regex, -[ --with-regex=TYPE regex library type: system, apache, php],[ - REGEX_TYPE=$withval +[ --with-regex=TYPE regex library type: system, apache, php], +[ + case $withval in + system) + REGEX_TYPE=system + ;; + apache) + REGEX_TYPE=apache + ;; + php) + REGEX_TYPE=php + ;; + *) + REGEX_TYPE=php + AC_MSG_WARN(Invalid regex library type. Using default value: php) + ;; + esac ],[ REGEX_TYPE=php ]) |