From: Ralf Wildenhues Date: Tue, 22 Jan 2008 20:46:59 +0000 (+0100) Subject: Fix parallel `maintainer-check'. X-Git-Tag: v2.62~81 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=be86a1b9216b5e11113373c7584f38fe0bad0adc;p=thirdparty%2Fautoconf.git Fix parallel `maintainer-check'. * Makefile.am (maintainer-check-tests): Depend on `all'. Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'. * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix): Likewise. (maintainer-check): Serialize the testsuite runs. --- diff --git a/ChangeLog b/ChangeLog index ac0aec4d..74b8b909 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-01-22 Ralf Wildenhues + Fix parallel `maintainer-check'. + * Makefile.am (maintainer-check-tests): Depend on `all'. + Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'. + * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix): + Likewise. + (maintainer-check): Serialize the testsuite runs. + * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+' in feature string for --enable/--with. Convert to underscore for variable name. diff --git a/Makefile.am b/Makefile.am index cfe88a1d..6a111f2d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ # Make Autoconf. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007 Free +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008 Free # Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify @@ -53,8 +53,8 @@ $(srcdir)/INSTALL: $(top_srcdir)/doc/install.texi ## maintainer-check ## maintainer-check: maintainer-check-tests -maintainer-check-tests: - cd tests && make maintainer-check +maintainer-check-tests: all + cd tests && $(MAKE) $(AM_MAKEFLAGS) maintainer-check ## ----------------------------------- ## diff --git a/tests/Makefile.am b/tests/Makefile.am index 91b09e2d..ac89c624 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -190,7 +190,10 @@ MAINTAINERCLEANFILES += mktests.stamp ## maintainer-check ## -maintainer-check: maintainer-check-posix maintainer-check-c++ +# These cannot be run in parallel. +maintainer-check: + $(MAKE) $(AM_MAKEFLAGS) maintainer-check-posix + $(MAKE) $(AM_MAKEFLAGS) maintainer-check-c++ # The hairy heredoc is more robust than using echo. CLEANFILES += expr @@ -209,9 +212,9 @@ expr: # Try the test suite with more severe environments. maintainer-check-posix: expr - POSIXLY_CORRECT=yes make check + POSIXLY_CORRECT=yes $(MAKE) $(AM_MAKEFLAGS) check rm expr # Try using G++ as a C compiler. maintainer-check-c++: - CC=g++ make check + CC=g++ $(MAKE) $(AM_MAKEFLAGS) check