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
# put something in as the 4th parameter, so configure doesn't abort
# when valgrind.pc isn't found.
have_valgrind="no"
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
AC_ARG_ENABLE(valgrind,
[ --enable-valgrind enable valgrind support], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_valgrind="yes"
else
AC_MSG_RESULT(no)
have_valgrind="no"
VALGRIND_CFLAGS=""
VALGRIND_LIBS=""
fi
], [
have_valgrind=$have_valgrind
]
)
#have_valgrind="no"
#PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
#AC_ARG_ENABLE(valgrind,
# [ --enable-valgrind enable valgrind support], [
# if test x"$enableval" = x"yes" ; then
# AC_MSG_RESULT(yes)
# have_valgrind="yes"
# else
# AC_MSG_RESULT(no)
# have_valgrind="no"
# VALGRIND_CFLAGS=""
# VALGRIND_LIBS=""
# fi
# ], [
# have_valgrind=$have_valgrind
# ]
#)
if test x$have_valgrind = "xyes"; then
AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
fi
#if test x$have_valgrind = "xyes"; then
# AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
#fi
MODULE_ARCH="$host_os-$host_cpu"
AC_SUBST(MODULE_ARCH)