From df08d801fe5a5cbd2a5401715f47b08089bebede Mon Sep 17 00:00:00 2001 From: Mathew Mrosko Date: Tue, 22 Dec 2009 09:24:56 -0800 Subject: build: allow a forcing build with "broken" regex. The configure would fail when cross compiling due to the regex check automatically failing for cross compilation. Since you can't run the regex binary check, assuming the regex library on the target platform is working would be the only way to get the build working, or adding a force for people to control based on their build environment. Signed-off-by: Michael Adam --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index c3d61a8..6ac6c14 100644 --- a/configure.ac +++ b/configure.ac @@ -227,6 +227,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 AC_MSG_CHECKING([whether the system's regex library is broken]) AC_CACHE_VAL(tinyproxy_cv_regex_broken, [AC_TRY_RUN([ @@ -264,6 +265,7 @@ int main(void) if test x"$tinyproxy_cv_regex_broken" = x"yes" ; then AC_MSG_ERROR([Your system's regexec() function is broken.]) fi + fi fi dnl -- cgit v1.2.3