summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2003-03-07 12:41:26 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2003-03-07 12:41:26 +0000
commitfeaa508d207be10ea108da6fe8ad552371d41e02 (patch)
tree02f53e6a968a2fbba5383da1ab84fe938fe8fb3f
parentef3e4194f190f85b1e58ef2804ba1bd69aa2c985 (diff)
downloadlibapr-feaa508d207be10ea108da6fe8ad552371d41e02.tar.gz
don't compile for a test when preprocessing is sufficient
Submitted by: Joe Orton git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64407 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build/apr_common.m410
1 files changed, 6 insertions, 4 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4
index 8cc16b37a..8dbe89423 100644
--- a/build/apr_common.m4
+++ b/build/apr_common.m4
@@ -276,10 +276,12 @@ dnl
AC_DEFUN(APR_CHECK_APR_DEFINE,[
apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
-AC_TRY_COMPILE([#include <apr.h>], [
-#if !$1
-#error APR does not have $1
-#endif], ac_cv_define_$1=yes, ac_cv_define_$1=no)
+AC_EGREP_CPP(YES_IS_DEFINED, [
+#include <apr.h>
+#if $1
+YES_IS_DEFINED
+#endif
+], ac_cv_define_$1=yes, ac_cv_define_$1=no)
CPPFLAGS=$apr_old_cppflags
])