test: protect more yacc declarations against C vs. C++ linkage.
[automake.git] / t / txinfo-nodist-info.sh
blob1c4e2f7eb614eaedbb58f66f3b25951dc459b8f6
1 #! /bin/sh
2 # Copyright (C) 2013-2024 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 <https://www.gnu.org/licenses/>.
17 # Check that we can force generated '.info' info files not to be
18 # distributed.
20 required=makeinfo
21 . test-init.sh
23 echo AC_OUTPUT >> configure.ac
25 cat > Makefile.am << 'END'
26 AUTOMAKE_OPTIONS = info-in-builddir
27 info_TEXINFOS = foo.texi
28 CLEANFILES = foo.info
30 # To make distcheck work without requiring TeX and texi2dvi.
31 dvi:
33 # Do not distribute generated '.info' files.
34 dist-info:
36 END
38 mkdir subdir
40 cat > foo.texi << 'END'
41 \input texinfo
42 @setfilename foo.info
43 @settitle foo
44 @node Top
45 Hello walls.
46 @include version.texi
47 @bye
48 END
50 $ACLOCAL
51 $AUTOCONF
52 $AUTOMAKE -a -Wno-override
54 ./configure
55 $MAKE distdir
56 ls -l . $distdir # For debugging.
57 test ! -e foo.info
58 test ! -e $distdir/foo.info
59 $MAKE
60 test -f foo.info
61 $MAKE distdir
62 ls -l $distdir # For debugging.
63 test ! -f $distdir/foo.info
64 $MAKE distcheck