configure.ac
changeset 1284 ad40f7d32846
parent 840 7c0ad6bd6a63
parent 1037 d3b041452dd8
child 1276 bb4fde5d0634
     1.1 --- a/configure.ac	Fri Aug 09 11:07:27 2013 +0200
     1.2 +++ b/configure.ac	Sun Aug 11 15:28:12 2013 +0200
     1.3 @@ -41,6 +41,7 @@
     1.4  AC_PROG_LIBTOOL
     1.5  
     1.6  AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
     1.7 +AC_CHECK_PROG([python_found],[python],[yes],[no])
     1.8  AC_CHECK_PROG([gs_found],[gs],[yes],[no])
     1.9  
    1.10  dnl Detect Intel compiler.
    1.11 @@ -82,6 +83,21 @@
    1.12  fi
    1.13  AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"])
    1.14  
    1.15 +dnl Support for running test cases using valgrind.
    1.16 +use_valgrind=no
    1.17 +AC_ARG_ENABLE([valgrind],
    1.18 +AS_HELP_STRING([--enable-valgrind], [use valgrind when running tests]),
    1.19 +              [use_valgrind=yes])
    1.20 +
    1.21 +if [[ "$use_valgrind" = "yes" ]]; then
    1.22 +  AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
    1.23 +
    1.24 +  if [[ "$HAVE_VALGRIND" = "no" ]]; then
    1.25 +    AC_MSG_ERROR([Valgrind not found in PATH.])
    1.26 +  fi
    1.27 +fi
    1.28 +AM_CONDITIONAL(USE_VALGRIND, [test "$use_valgrind" = "yes"])
    1.29 +
    1.30  dnl Checks for header files.
    1.31  AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    1.32  
    1.33 @@ -128,6 +144,7 @@
    1.34  echo CBC support................... : $lx_cbc_found
    1.35  echo
    1.36  echo Build additional tools........ : $enable_tools
    1.37 +echo Use valgrind for tests........ : $use_valgrind
    1.38  echo
    1.39  echo The packace will be installed in
    1.40  echo -n '  '