compile: implement library search to support MSVC static linking
[automake.git] / tests / pluseq10.test
blob92734155dced927e916eeb8ffe941081a9a1094b
1 #! /bin/sh
2 # Copyright (C) 2002, 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)
7 # any later version.
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 for += and backslashes.
18 # Reported by Ralf Corsepius.
20 . ./defs || Exit 1
22 set -e
24 cat >>configure.in << 'END'
25 AM_CONDITIONAL([A], [true])
26 AM_CONDITIONAL([B], [false])
27 AC_OUTPUT
28 END
30 cat > Makefile.am << 'END'
31 foo = 0.h
32 if A
33 foo += a0.h \
34 a1.h
35 foo += a2.h \
36 a3.h
37 endif
38 if B
39 foo += b0.h \
40 b1.h
41 endif
43 .PHONY: print
44 print:
45 @echo BEG: $(foo) :END
46 END
48 $ACLOCAL
49 $AUTOCONF
50 $AUTOMAKE
52 ./configure
53 $MAKE print >stdout || { cat stdout; Exit 1; }
54 cat stdout
55 $FGREP 'BEG: 0.h a0.h a1.h a2.h a3.h :END' stdout