Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
3d01dd2e
Commit
3d01dd2e
authored
Nov 22, 2007
by
Alexandre Duret-Lutz
Browse files
* m4/valgrind.m4: New file.
* configure.ac: Use it.
parent
ec6bca79
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
3d01dd2e
2007-11-22 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* m4/valgrind.m4: New file.
* configure.ac: Use it.
2007-10-05 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* wrap/python/cgi/ltl2tgba.in: Adjust to newer versions of swig.
...
...
configure.ac
View file @
3d01dd2e
...
...
@@ -63,7 +63,7 @@ AC_CHECK_PROG([MODELLA], [modella], [modella])
AC_CHECK_PROG([LTL2NBA], [script4lbtt.py], [script4lbtt.py])
AC_CHECK_PROG([PERL], [perl], [perl])
AC_CHECK_PROG([SPIN], [spin], [spin])
A
C
_CHECK_
PROG([
VALGRIND
], [valgrind], [valgrind])
A
X
_CHECK_VALGRIND
AC_CHECK_PROG([WRING2LBTT], [wring2lbtt], [wring2lbtt])
AC_CONFIG_FILES([
...
...
m4/valgrind.m4
0 → 100644
View file @
3d01dd2e
# _AX_CHECK_VALGRIND_SANITY(IF-SANE, IF-NOT)
# ------------------------------------------
# Some installations of valgrind emit spurious warnings in ld.so or
# other standard libraries. We cannot rely on these during "make check".
# We check that by running valgrind on "ls".
AC_DEFUN([_AX_CHECK_VALGRIND_SANITY],
[
if (exec 8>valgrind.err
exitcode=0
$VALGRIND --tool=memcheck --leak-check=yes --log-fd=8 -q ls >/dev/null ||
exitcode=$?
test -z "`sed 1q valgrind.err`" || exitcode=50
rm -f valgrind.err
exit $exitcode
); then
$1;
else
$2;
fi
])
AC_DEFUN([AX_CHECK_VALGRIND], [
AC_CHECK_PROG([VALGRIND], [valgrind], [valgrind])
if test -n "$VALGRIND"; then
AC_CACHE_CHECK([wether valgrind is sane],
[ax_cv_valgrind_sanity],
[_AX_CHECK_VALGRIND_SANITY([ax_cv_valgrind_sanity=yes],
[ax_cv_valgrind_sanity=no])])
if test x"$ax_cv_valgrind_sanity" = xno; then
VALGRIND=
fi
fi
])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment