Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 26710 invoked by uid 500); 7 Mar 2003 12:41:26 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 26699 invoked from network); 7 Mar 2003 12:41:26 -0000 Date: 7 Mar 2003 12:41:26 -0000 Message-ID: <20030307124126.91532.qmail@icarus.apache.org> From: trawick@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/build apr_common.m4 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N trawick 2003/03/07 04:41:26 Modified: build apr_common.m4 Log: don't compile for a test when preprocessing is sufficient Submitted by: Joe Orton Revision Changes Path 1.54 +6 -4 apr/build/apr_common.m4 Index: apr_common.m4 =================================================================== RCS file: /home/cvs/apr/build/apr_common.m4,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- apr_common.m4 7 Mar 2003 12:12:40 -0000 1.53 +++ apr_common.m4 7 Mar 2003 12:41:26 -0000 1.54 @@ -276,10 +276,12 @@ AC_DEFUN(APR_CHECK_APR_DEFINE,[ apr_old_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $INCLUDES" -AC_TRY_COMPILE([#include ], [ -#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 +#if $1 +YES_IS_DEFINED +#endif +], ac_cv_define_$1=yes, ac_cv_define_$1=no) CPPFLAGS=$apr_old_cppflags ])