From 70028b82a9d1f4c6b2a797c76b1e7d0e1da7480f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 11 Sep 2006 12:47:40 +0000 Subject: r18381: make sure autoconf doesn't add '-O2' to CFLAGS metze (This used to be commit ec6365b5f18eea7035b6963c8005e75b9f4e3437) --- source4/lib/replace/libreplace.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4 index b428870a87..52e1b5fe1d 100644 --- a/source4/lib/replace/libreplace.m4 +++ b/source4/lib/replace/libreplace.m4 @@ -15,11 +15,12 @@ dnl stop the C89 attempt by autoconf - if autoconf detects -Ae it will enable it dnl which conflicts with C99 on HPUX ac_cv_prog_cc_Ae=no -dnl needed before AC_TRY_COMPILE +savedCFLAGS=$CFLAGS +AC_PROG_CC +CFLAGS=$savedCFLAGS AC_ISC_POSIX AC_USE_SYSTEM_EXTENSIONS AC_PROG_CC_C99 -AC_PROG_CC AC_C_INLINE AC_PROG_INSTALL -- cgit