From: Alexandre Duret-Lutz Date: Tue, 5 Aug 2003 09:25:17 +0000 (+0000) Subject: * automake.in (handle_texinfo_helper): Use the user definition X-Git-Tag: Release-1-7b~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38b63de1afcbe666e26f8bf84800ca5ad9e2dc7b;p=thirdparty%2Fautomake.git * automake.in (handle_texinfo_helper): Use the user definition of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR. * tests/txinfo22.test: New file. * tests/Makefile.am (TESTS): Add txinfo22.test. Report from Tom Tromey. --- diff --git a/ChangeLog b/ChangeLog index 8637256f9..96a77ecbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ +2003-08-05 Alexandre Duret-Lutz + + * automake.in (handle_texinfo_helper): Use the user definition + of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR. + * tests/txinfo22.test: New file. + * tests/Makefile.am (TESTS): Add txinfo22.test. + Report from Tom Tromey. + 2003-08-03 Raja R Harinath - + * lib/Automake/Variable.pm (@EXPORT): Remove traverse_variable_recursively and require_variables_for_variable. diff --git a/automake.in b/automake.in index 2c3e15091..464305315 100755 --- a/automake.in +++ b/automake.in @@ -3063,7 +3063,14 @@ sub handle_texinfo_helper ($) # Handle location of texinfo.tex. my $need_texi_file = 0; my $texinfodir; - if ($options{'cygnus'}) + if (var ('TEXINFO_TEX')) + { + # The user defined TEXINFO_TEX so assume he knows what he is + # doing. + $texinfodir = ('$(srcdir)/' + . dirname (variable_value ('TEXINFO_TEX'))); + } + elsif ($options{'cygnus'}) { $texinfodir = '$(top_srcdir)/../texinfo'; define_variable ('TEXINFO_TEX', "$texinfodir/texinfo.tex", INTERNAL); @@ -3074,13 +3081,6 @@ sub handle_texinfo_helper ($) define_variable ('TEXINFO_TEX', "$texinfodir/texinfo.tex", INTERNAL); $need_texi_file = 2; # so that we require_conf_file later } - elsif (var ('TEXINFO_TEX')) - { - # The user defined TEXINFO_TEX so assume he knows what he is - # doing. - $texinfodir = ('$(srcdir)/' - . dirname (variable_value ('TEXINFO_TEX'))); - } else { $texinfodir = '$(srcdir)'; diff --git a/tests/Makefile.am b/tests/Makefile.am index e8e73d104..11fb3f585 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -453,6 +453,7 @@ txinfo18.test \ txinfo19.test \ txinfo20.test \ txinfo21.test \ +txinfo22.test \ transform.test \ unused.test \ vars.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 81a0b6e49..d11cdb9cd 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -564,6 +564,7 @@ txinfo18.test \ txinfo19.test \ txinfo20.test \ txinfo21.test \ +txinfo22.test \ transform.test \ unused.test \ vars.test \ diff --git a/tests/txinfo22.test b/tests/txinfo22.test new file mode 100755 index 000000000..5f62e83f3 --- /dev/null +++ b/tests/txinfo22.test @@ -0,0 +1,64 @@ +#! /bin/sh +# Copyright (C) 2003 Free Software Foundation, Inc. +# +# This file is part of GNU Automake. +# +# GNU Automake is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# GNU Automake is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Automake; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# Make sure the user can override TEXINFO_TEX. +# Report from Tom Tromey. + +required='makeinfo tex' +. ./defs || exit 1 + +set -e + +cat >>configure.in < Makefile.am << 'END' +TEXINFO_TEX = tex/texinfo.tex +info_TEXINFOS = main.texi +sure_it_exists: + test -f $(TEXINFO_TEX) +END + +cat > main.texi << 'END' +\input texinfo +@setfilename main.info +@settitle main +@node Top +Hello walls. +@bye +END + +mkdir aux +mkdir tex +cp $testsrcdir/../lib/texinfo.tex tex + +$ACLOCAL +$AUTOMAKE --add-missing +$AUTOCONF + +test ! -f texinfo.tex +test ! -f aux/texinfo.tex +test -f tex/texinfo.tex + +./configure +$MAKE sure_it_exists +$MAKE distcheck