Changeset 531

Show
Ignore:
Timestamp:
2004-08-30 05:25:29 (4 years ago)
Author:
conrad
Message:

make testing under valgrind disabled by default, and spew a warning if
--enable-valgrind-testing is invoked without --disable-shared

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • liboggz/trunk/configure.ac

    r463 r531  
    5151 
    5252# Check for valgrind 
    53 ac_enable_valgrind=yes 
     53ac_enable_valgrind=no 
    5454AC_ARG_ENABLE(valgrind-testing, 
    55      [  --disable-valgrind-testing    disable running of tests inside Valgrind ], 
    56      [ ac_enable_valgrind=no ], [ ac_enable_valgrind=yes] ) 
     55     [  --enable-valgrind-testing     enable running of tests inside Valgrind ], 
     56     [ ac_enable_valgrind=yes ], [ ac_enable_valgrind=no] ) 
    5757 
    5858if test "x${ac_enable_valgrind}" = xyes ; then 
     59  if test "x${enable_shared}" = xyes ; then 
     60    AC_MSG_WARN([ 
     61*** You have requested to test under valgrind, but have not disabled the 
     62*** building of shared libraries. You usually need to do: 
     63***   ./configure --disable-shared --enable-valgrind-testing 
     64*** for Valgrind to produce useful output.]) 
     65  fi 
     66 
    5967  AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no) 
    6068  if test "x$HAVE_VALGRIND" = xyes ; then 
     
    6775  fi 
    6876else 
    69   TESTS_INFO="'make check' to run test suite (Valgrind testing disabled)" 
     77  TESTS_INFO="'make check' to run test suite (Valgrind testing not enabled)" 
    7078fi 
    7179