| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | #! /bin/sh# Copyright (C) 2013-2017 Free Software Foundation, Inc.## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program.  If not, see <http://www.gnu.org/licenses/>.# Check that the Automake-generated recursive rules are resilient against# false positives in deciding whether make is running with the '-k'# option, and thus whether a failure into one of the $(SUBDIRS) should# still prevent recursion in the following $(SUBDIRS) entries.  See# automake bug#12544.. test-init.shecho nil: | $MAKE -I . -f - || skip_ "$MAKE doesn't support the -I option"cat >> configure.ac <<'END'AC_CONFIG_FILES([sub1/Makefile sub2/Makefile])AC_OUTPUTENDmkdir k ./--keep-going sub1 sub2cat > Makefile.am <<'END'SUBDIRS = sub1 sub2ENDcat > sub1/Makefile.am <<'END'all-local:	touch ko	falseENDcat > sub2/Makefile.am <<'END'all-local:	test -f ../sub1/ko	touch okEND$ACLOCAL$AUTOCONF$AUTOMAKE./configurest=0$MAKE -I k -I --keep-going \  TESTS='k --keep-going -k' AM_MAKEFLAGS="TESTS='k --keep-going -k'" \  || st=$?# Don't trust the exit status of "make -k" for non-GNU make.if using_gmake; then  test $st -gt 0 || exit 1fitest ! -r sub2/ok# Sanity check.st=0; $MAKE -k || st=$?if { using_gmake && test $st -eq 0; } || test ! -f sub2/ok; then  fatal_ '"make -k" not working as expected'fi:
 |