Added a --without-valgrind option to configure
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 21 Feb 2005 07:13:35 +0000 (07:13 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 21 Feb 2005 07:13:35 +0000 (07:13 +0000)
to cope with broken valgrind implementations

ChangeLog
configure.ac

index fb7208f55219e9761bc1787664a18738e1c1378e..6d73da39508eead5106370bc473d815f58b6f897 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 21 15:04:55 WST 2005 John Darrington <john@darrington.wattle.id.au> 
+
+       * configure.ac: Added a --without-valgrind option to cope with
+       building on machines with a broken valgrind installation
+
 Fri Jan  7 08:01:02 WST 2005 John Darrington <john@darrington.wattle.id.au> 
 
        * configure.ac pref.h.orig: Compilation with libplot is now optional
index e3da678e616eda184b1f8fdd487af66d93e263a9..02003a27606f688ed14cac47bf85ac2e5b302e65 100644 (file)
@@ -77,9 +77,13 @@ if test "$ac_cv_lib_readline_readline" = yes; then
 fi
 
 dnl Checks for header files.
+AC_ARG_WITH(valgrind, [  --without-valgrind        don't compile in valgrind])
+if test "x$with_valgrind" != x"no"; then 
+ AC_CHECK_HEADERS([valgrind/valgrind.h])
+fi
 AC_CHECK_HEADERS([limits.h memory.h sys/stat.h sys/time.h sys/types.h \
-                  fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h \
-                 valgrind/valgrind.h])
+                  fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h] )
+
 AC_HEADER_STAT
 AC_HEADER_STDC
 AC_HEADER_TIME