[MOAB-dev] r2020 - in MOAB/trunk: . m4

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Jul 16 09:23:17 CDT 2008


Author: kraftche
Date: 2008-07-16 09:23:16 -0500 (Wed, 16 Jul 2008)
New Revision: 2020

Modified:
   MOAB/trunk/configure.in
   MOAB/trunk/m4/compiler.m4
Log:
The AC_CHECK_HEADER call I added yesterday seems to really mess up the 
configure script (e.g. fails to detect stdlib.h).  I think this might
be because the call was made before AC_PROG_LIBTOOL.  Anyway, moving it
to a location later in the configure script seems to fix the problem.




Modified: MOAB/trunk/configure.in
===================================================================
--- MOAB/trunk/configure.in	2008-07-16 03:47:38 UTC (rev 2019)
+++ MOAB/trunk/configure.in	2008-07-16 14:23:16 UTC (rev 2020)
@@ -98,8 +98,10 @@
 #                             System Headers
 ################################################################################
 AC_CHECK_HEADER([ieeefp.h],[DEFINES="$DEFINES -DHAVE_IEEEFP_H"] )
+if test "xyes" = "x$enable_debug"; then
+  AC_CHECK_HEADER( [valgrind/memcheck.h], [CXXFLAGS="$CXXFLAGS -DVALGRIND"] )
+fi
 
-
 ################################################################################
 #                             BOOST OPTIONS
 ################################################################################

Modified: MOAB/trunk/m4/compiler.m4
===================================================================
--- MOAB/trunk/m4/compiler.m4	2008-07-16 03:47:38 UTC (rev 2019)
+++ MOAB/trunk/m4/compiler.m4	2008-07-16 14:23:16 UTC (rev 2020)
@@ -148,7 +148,6 @@
   CXXFLAGS="$CXXFLAGS -g"
   CFLAGS="$CFLAGS -g"
   FCFLAGS="$FCFLAGS -g"
-  AC_CHECK_HEADER( [valgrind/memcheck.h], [CXXFLAGS="$CXXFLAGS -DVALGRIND"] )
 fi
 if test "xyes" = "x$enable_cxx_optimize"; then
   CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"




More information about the moab-dev mailing list