* configure.ac (AC_GNU_SOURCE): Use it instead of hand written code.

(O0FLAGS): New.
(VALGRIND, GXX): New.
* tests/atlocal.in (CFLAGS): Use O0FLAGS.
* tests/bison.in: Run $PREBISON a pre-command.
* tests/Makefile.am (maintainer-check, maintainer-check-valgrind)
(maintainer-check-g++): New.
* Makefile.am (maintainer-check): New.
This commit is contained in:
Akim Demaille
2002-10-13 18:49:44 +00:00
parent 2a1fe6ed6f
commit f377f69fec
7 changed files with 68 additions and 31 deletions

View File

@@ -71,3 +71,23 @@ check_SCRIPTS = bison
# Run the test suite on the *installed* tree.
installcheck-local:
$(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
# Be real mean with it.
.PHONY: maintainer-check-valgrind
maintainer-check-valgrind: $(TESTSUITE)
if test -n "$(VALGRIND)"; then \
$(TESTSUITE) PREBISON='$(VALGRIND) -q' PREPARSER='$(VALGRIND) -q'; \
else \
true; \
fi
.PHONY: maintainer-check-g++
maintainer-check-g++: $(TESTSUITE)
if test -n "$(VALGRIND)"; then \
$(TESTSUITE) CC='$(GXX)' \
else \
true; \
fi
.PHONY: maintainer-check
maintainer-check: maintainer-check-valgrind maintainer-check-g++