Reword the copyright notices to match what's suggested in GPLv3.
[automake/plouj.git] / tests / asm3.test
blob2d8c10482abf0ed602ea9551d528fa1ad7c26769
1 #! /bin/sh
2 # Copyright (C) 2001, 2002, 2003, 2006, 2007 Free Software Foundation,
3 # Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Test of basic preprocessed assembly functionality with extension .sx.
20 . ./defs || exit 1
22 set -e
24 cat > Makefile.am << 'END'
25 noinst_PROGRAMS = maude
26 maude_SOURCES = maude.sx
27 END
29 : > maude.sx
31 # Should fail because we need CC and CCAS.
32 echo 1
33 cat > configure.in << 'END'
34 AC_INIT
35 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
36 AC_SUBST(CCASFLAGS)
37 AC_OUTPUT(Makefile)
38 END
40 $ACLOCAL
41 AUTOMAKE_fails
42 grep AM_PROG_AS stderr
44 # On fast machines the autom4te.cache created during the above run of
45 # $AUTOMAKE is likely to have the same time stamp as the configure.in
46 # created below; thus causing traces for the old configure.in to be
47 # used. We could do `$sleep', but it's faster to erase the
48 # directory. (Erase autom4te*.cache, not autom4te.cache, because some
49 # bogus installations of Autoconf use a versioned cache.)
50 rm -rf autom4te*.cache
52 # We still need CCAS.
53 echo 2
54 cat > configure.in << 'END'
55 AC_INIT
56 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
57 AC_PROG_CC
58 AC_SUBST(CCASFLAGS)
59 AC_OUTPUT(Makefile)
60 END
62 $ACLOCAL
63 AUTOMAKE_fails
64 grep CCAS stderr
65 grep AM_PROG_AS stderr
67 rm -rf autom4te*.cache
69 # We need CCASFLAGS.
70 echo 3
71 cat > configure.in << 'END'
72 AC_INIT
73 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
74 CCAS='$(CC)'
75 AC_SUBST(CCAS)
76 AC_PROG_CC
77 AC_OUTPUT(Makefile)
78 END
80 $ACLOCAL
81 AUTOMAKE_fails
82 grep CCASFLAGS stderr
83 grep AM_PROG_AS stderr
85 rm -rf autom4te*.cache
87 # We need dependency tracking.
88 echo 4
89 cat > configure.in << 'END'
90 AC_INIT
91 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
92 CCAS='$(CC)'
93 AC_SUBST(CCAS)
94 AC_PROG_CC
95 AC_SUBST(CCASFLAGS)
96 AC_OUTPUT(Makefile)
97 END
99 $ACLOCAL
100 AUTOMAKE_fails
101 grep AM_PROG_AS stderr
103 rm -rf autom4te*.cache
105 # We have every needed, expect a success.
106 echo 5
107 cat > configure.in << 'END'
108 AC_INIT
109 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
110 CCAS='$(CC)'
111 AC_SUBST(CCAS)
112 AC_PROG_CC
113 _AM_DEPENDENCIES(CCAS)
114 AC_SUBST(CCASFLAGS)
115 AC_OUTPUT(Makefile)
118 $ACLOCAL
119 $AUTOMAKE
121 rm -rf autom4te*.cache
123 # We have every needed, expect a success.
124 echo 6
125 cat > configure.in << 'END'
126 AC_INIT
127 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
128 AM_PROG_AS
129 AC_OUTPUT(Makefile)
132 $ACLOCAL
133 $AUTOMAKE
135 exit 0