2 # Copyright (C) 2013-2017 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/>.
17 # Info split files should not be produced (automake bug#13351).
22 echo AC_OUTPUT
>> configure.ac
24 cat > Makefile.am
<<'END'
25 MAKEINFO = makeinfo --split-size 10
26 info_TEXINFOS = foo.texi
28 test-split: # A sanity check.
29 $(MAKEINFO) -o split.info foo.texi
32 test -f $(srcdir)/foo.info
33 test ! -f $(srcdir)/foo.info-1
34 test "`find $(srcdir) . | grep '\.info'`" = "$(srcdir)/foo.info"
37 # Systems lacking a working TeX installation cannot run "make dvi".
38 if test -z "$TEX"; then
39 warn_
"TeX installation missing, \"make dvi\" will be skipped"
40 echo AUTOMAKE_OPTIONS
= -Wno-override >> Makefile.am
41 echo 'dvi:; @echo Tex is missing, do nothing' >> Makefile.am
44 cat > foo.texi
<< 'END'
48 @dircategory Dummy utilities
50 * Foo
: (foo
). Does nothing
at all.
57 * Intro
:: Introduction
58 * Planets
:: List of Planets
66 @chapter List of planets
86 ls -l # For debugging.
94 ls -l # For debugging.
97 test "$(find . | $FGREP '.info' | sed 's|^\./||')" = foo.info