| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | #! /bin/sh# Copyright (C) 2003-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/>.# Test to make sure links to _identical files_ created by AC_CONFIG_LINKS get# removed with 'make distclean' only if doing a VPATH build.. test-init.shmkdir nonmk-subdir sdir sdir/mk-subdir: > src: > sdir/Makefile.am: > sdir/src2: > nonmk-subdir/src3: > sdir/mk-subdir/src4cat >> Makefile.am <<'EOF'SUBDIRS = sdir.PHONY: testtest: distdir	test -f $(distdir)/src	test -f $(distdir)/sdir/src2	test -f $(distdir)/nonmk-subdir/src3	test -f $(distdir)/sdir/mk-subdir/src4EOFcat >>configure.ac << 'EOF'AC_CONFIG_FILES([sdir/Makefile])AC_CONFIG_LINKS([src:src])AC_CONFIG_LINKS([sdir/src2:sdir/src2])AC_CONFIG_LINKS([nonmk-subdir/src3:nonmk-subdir/src3])AC_CONFIG_LINKS([sdir/mk-subdir/src4:sdir/mk-subdir/src4])AC_OUTPUTEOF$ACLOCAL$AUTOMAKE$AUTOCONFmkdir buildcd build../configure$MAKE test# Make sure nothing is deleted by 'make clean'$MAKE cleantest -f ../srctest -f ../sdir/src2test -f ../nonmk-subdir/src3test -f ../sdir/mk-subdir/src4# Make sure the links are deleted by 'make distclean' and the original files# are not.$MAKE distcleantest -f ../srctest -f ../sdir/src2test -f ../nonmk-subdir/src3test -f ../sdir/mk-subdir/src4test -r src && exit 1test -r sdir/src2 && exit 1test -r nonmk-subdir/src3 && exit 1test -r sdir/mk-subdir/src4 && exit 1cd .../configure$MAKE test# Make sure nothing is deleted by 'make distclean'$MAKE distcleantest -f srctest -f sdir/src2test -f nonmk-subdir/src3test -f sdir/mk-subdir/src4:
 |