From: Ryan Bloom Date: Fri, 24 Dec 1999 21:22:27 +0000 (+0000) Subject: Cleanup the threads check, also resets the CFLAGS and LDFLAGS variables X-Git-Tag: 1.3.10~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6044a399ad9101fce71df062c5311c10b0f4cb8;p=apache Cleanup the threads check, also resets the CFLAGS and LDFLAGS variables in cases where no threading library was found. Submitted by: Sascha Schumann Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84370 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/acinclude.m4 b/acinclude.m4 index 5fbbd82443..9f14dbb41c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -127,15 +127,17 @@ define(APACHE_CHECK_THREADS, [dnl LDFLAGS="$test_ldflag $ldflags_orig" THREAD_TEST() if test "$apache_threads_working" = "yes"; then - break + break 2 fi done - if test "$apache_threads_working" = "yes"; then - threads_result="Updating CFLAGS and LDFLAGS" - break - fi - threads_result="Threads not found" done + if test "$apache_threads_working" = "yes"; then + threads_result="POSIX Threads found" + else + CFLAGS="$cflags_orig" + LDFLAGS="$ldflags_orig" + threads_result="POSIX Threads not found" + fi ] ) dnl