2 # Copyright (C) 2003-2013 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 that AC_CONFIG_LINKS using a variable source
22 cat > Makefile.am << 'END'
26 test ! -r $(distdir)/sdir/dest3
27 test ! -r $(distdir)/sdir/dest2
28 test ! -r $(distdir)/dest3
29 test ! -r $(distdir)/dest2
30 test -f $(distdir)/src2
31 ## src3 cannot be distributed, Automake knows nothing about it.
32 test ! -r $(distdir)/sdir/src3
33 test ! -r $(distdir)/src3
42 cat >>configure.ac << 'EOF'
43 AC_CONFIG_FILES([sdir/Makefile])
46 AC_CONFIG_LINKS([sdir/dest2:src2 sdir/dest3:$my_src_dir/src3])
47 AC_CONFIG_LINKS([$my_dest:src])
48 # The following is a link whose source is itself a link.
49 AC_CONFIG_LINKS([dest4:sdir/dest2])
50 # Some package prefer to compute links.
52 AC_CONFIG_LINKS([$cmplink])
60 # $my_src_dir and $my_dest are variables local to configure, they should
61 # not appear in Makefile.
62 grep my_src_dir Makefile.in && exit 1
63 grep my_dest Makefile.in && exit 1
76 test -r dest # Should still exist, Automake knows nothing about it.
77 test -r dest5 # Ditto.