disable valgrind

SVN revision: 18857
This commit is contained in:
Carsten Haitzler 2005-12-06 00:50:26 +00:00
parent 34566645fd
commit 25bc31fb69
1 changed files with 20 additions and 20 deletions

View File

@ -39,27 +39,27 @@ AC_SUBST(fnmatch_libs)
# Setting have_valgrind to "no" seems pointless, but we just need to # Setting have_valgrind to "no" seems pointless, but we just need to
# put something in as the 4th parameter, so configure doesn't abort # put something in as the 4th parameter, so configure doesn't abort
# when valgrind.pc isn't found. # when valgrind.pc isn't found.
have_valgrind="no" #have_valgrind="no"
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no) #PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
AC_ARG_ENABLE(valgrind, #AC_ARG_ENABLE(valgrind,
[ --enable-valgrind enable valgrind support], [ # [ --enable-valgrind enable valgrind support], [
if test x"$enableval" = x"yes" ; then # if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes) # AC_MSG_RESULT(yes)
have_valgrind="yes" # have_valgrind="yes"
else # else
AC_MSG_RESULT(no) # AC_MSG_RESULT(no)
have_valgrind="no" # have_valgrind="no"
VALGRIND_CFLAGS="" # VALGRIND_CFLAGS=""
VALGRIND_LIBS="" # VALGRIND_LIBS=""
fi # fi
], [ # ], [
have_valgrind=$have_valgrind # have_valgrind=$have_valgrind
] # ]
) #)
if test x$have_valgrind = "xyes"; then #if test x$have_valgrind = "xyes"; then
AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support]) # AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
fi #fi
MODULE_ARCH="$host_os-$host_cpu" MODULE_ARCH="$host_os-$host_cpu"
AC_SUBST(MODULE_ARCH) AC_SUBST(MODULE_ARCH)