2 # Copyright (C) 2003, 2006, 2011 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 # Make sure xxx_PROGRAMS gets properly rewritten where needed. These
18 # checks have been introduced in commit `Release-1-9-254-g9d0eaef' into
19 # the former test `subst2.test'.
23 cat >> configure.
in << 'END'
28 cat >Makefile.am
<<'END'
29 AUTOMAKE_OPTIONS = no-dependencies
34 bin_PROGRAMS = b @FOO@
35 noinst_PROGRAMS = $(bar) $(baz:=de)
43 test '$(check_PROGRAMS)' = a.bin
44 test '$(bin_PROGRAMS)' = 'b.bin c'
45 test '$(noinst_PROGRAMS)' = 'zardoz.bin maude.bin'
51 grep PROGRAMS Makefile.
in # For debugging.
53 # Check that no useless indirections are used.
54 grep '^check_PROGRAMS = a$(EXEEXT)$' Makefile.
in
55 grep '^bin_PROGRAMS = b$(EXEEXT) @FOO@$' Makefile.
in