2 # Copyright (C) 2003, 2010 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test to make sure links created by AC_CONFIG_LINKS get removed with
24 echo 'SUBDIRS = sdir' > Makefile.am
31 cat >>configure.in << 'EOF'
32 AC_CONFIG_FILES([sdir/Makefile])
33 AC_CONFIG_LINKS([dest:src])
34 AC_CONFIG_LINKS([dest2:src])
35 AC_CONFIG_LINKS([sdir/dest3:src])
36 AC_CONFIG_LINKS([dest4:sdir/src2])
37 AC_CONFIG_LINKS([sdir/dest5:sdir/src2 sdir-no-make/dest6:src])
46 # Make sure nothing is deleted by `make clean'
54 test -r sdir-no-make/dest6
58 # Make sure the links are deleted by `make distclean' and the original files
65 test -r dest && Exit 1
66 test -r dest2 && Exit 1
67 test -r sdir/dest3 && Exit 1
68 test -r dest4 && Exit 1
69 test -r sdir/dest5 && Exit 1
70 test -r sdir-no-make/dest6 && Exit 1