diff options
author | Mukund Sivaraman <muks@banu.com> | 2010-01-03 13:52:00 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2010-01-03 13:52:00 +0530 |
commit | e42d1cf9fd3183bf385c942b960a31a973ba9f52 (patch) | |
tree | 200fb2c038f0b4fd9263d1187564015e9daeb00a | |
parent | 8077fd8936628267f5c3fc0e1e47e3ce293255bc (diff) | |
download | tinyproxy-e42d1cf9fd3183bf385c942b960a31a973ba9f52.tar.gz tinyproxy-e42d1cf9fd3183bf385c942b960a31a973ba9f52.zip |
Use a configure arg to request regex checking
Disabling the regex check seems to be required during cross-compiles,
where it's not possible to test the target's regex library at
compile time.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0762bd3..efc52d8 100644 --- a/configure.ac +++ b/configure.ac @@ -131,6 +131,11 @@ if test x"$transparent_enabled" = x"yes"; then AC_DEFINE(TRANSPARENT_PROXY) fi +dnl Check for broken regex library +TP_ARG_ENABLE(regexcheck, + [Check for working regex library (default is YES)], + yes) + # This is required to build test programs below AC_PROG_CC @@ -227,7 +232,7 @@ dnl Handle the REGEX library if test x"$ac_cv_func_regexec" != x"yes"; then AC_MSG_ERROR([Could not locate the regexec() function]) else - if test x"$i_know_my_regex_works" != x"yes"; then + if test x"$regexcheck_enabled" = x"yes" ; then AC_MSG_CHECKING([whether the system's regex library is broken]) AC_CACHE_VAL(tinyproxy_cv_regex_broken, [AC_TRY_RUN([ |