2 # Copyright (C) 2011-2018 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 <https://www.gnu.org/licenses/>.
18 # - check2.am and interaction with $(EXEEXT)
22 cat >> configure.ac
<< 'END'
23 dnl We need to fool the init.
m4 internals a little.
25 [m4_provide
([_AM_COMPILER_EXEEXT
])
26 AC_SUBST
([CC
], [false
])
32 cat > Makefile.am
<< 'END'
33 TESTS
= x y a.
test b.
test
35 TEST_LOG_COMPILER
= true
36 ## We also need to fool the automake internals a little.
45 $EGREP 'EXEEXT|\.log|\.test' Makefile.
in # For debugging.
48 touch x y a.
test b.
test
52 rm -f x y a.
test b.
test *.log
*.trs
54 .
/configure EXEEXT
=.bin
55 touch x y.bin a.
test b.
test.bin
57 ls -l # For debugging.
63 $EGREP '^y\.log: y(\$\(EXEEXT\)|\.bin)' Makefile
64 $EGREP '^\.test(\$\(EXEEXT\)|\.bin)\.log:' Makefile