| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 | #! /bin/sh# Copyright (C) 2012-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 obsolescent idiom of setting $(ACLOCAL_AMFLAGS) in# Makefile.am still works.  Remove this test once support for this# obsolescent idiom is removed.. test-init.shcat >> configure.ac <<'END'MACRO_FOO || AS_EXIT([1])AC_OUTPUTENDmkdir m4_1 m4_2cat > m4_1/foo.m4 <<'END'AC_DEFUN([MACRO_FOO], [: > foo])ENDcat > m4_2/bar.m4 <<'END'AC_DEFUN([MACRO_BAR], [: > bar])ENDcat > Makefile.am <<'END'ACLOCAL_AMFLAGS = -I m4_2 --verbosecheck-local:	test ! -r foo	test -f barDISTCLEANFILES = barEND$ACLOCAL -I m4_1 >output 2>&1 || { cat output; exit 1; }cat outputgrep 'found macro' output && exit 1 # Sanity check.$AUTOCONF$AUTOMAKE./configuretest -f foorm -f foo# ACLOCAL_AMFLAGS is used in rebuild rules, so trigger them.$sleepsed 's/MACRO_FOO/MACRO_BAR/' configure.ac > tmv -f t configure.acrun_make -M Makefilegrep "^aclocal.*:.*found macro.*MACRO_BAR.*m4_2/bar\.m4" outputgrep "macro.*MACRO_FOO" output && exit 1test ! -r footest -f bar$MAKE distcheck:
 |