This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: texinfo10 prob


>>> "Patrick" == Patrick Welche <prlw1@newn.cam.ac.uk> writes:

 Patrick> On the computers without TeX installed, all tests pass
 Patrick> fine, but the one with TeX hangs at

 Patrick> PASS: texinfo10.test

 Patrick> [1]  + Stopped (tty input)    gmake check

 Patrick> (is it running texinfo10, or texinfo13?)

texinfo13

 Patrick> apparently because it is running "tex --version". On
 Patrick> my version of TeX, that gets:

 Patrick> % tex --version
 Patrick> This is TeX, Version 3.14159 (C version 6.1)
 Patrick> ! I can't find file `--version'.
 Patrick> <*> --version
             
 Patrick> Please type another input file name: 

 Patrick> so obviously it won't get very far ;)

Ouch!  Ok, let's assume the worse (i.e., that "tex -version"
won't work either) and check for "tex" in configure.

I'm installing the following patch.  Thanks for reporting this.

2002-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>

	* configure.in: Check for 'tex'.
	* tests/defs.in: Handle required=tex using configure's result.
	Reported by Patrick Welche.

Index: configure.in
===================================================================
RCS file: /cvs/automake/automake/configure.in,v
retrieving revision 1.118
diff -u -r1.118 configure.in
--- configure.in	22 Sep 2002 15:06:44 -0000	1.118
+++ configure.in	25 Sep 2002 18:39:04 -0000
@@ -53,6 +53,9 @@
    AC_MSG_ERROR([perl 5.005 or better is required])
 }
 
+# The test suite will skip some tests if tex is absent.
+AC_CHECK_PROG([TEX], [tex], [tex])
+
 # Test for Autoconf.  We run Autoconf in a subdirectory to ease
 # deletion of any files created (such as those added to
 # autom4te.cache).
Index: tests/defs.in
===================================================================
RCS file: /cvs/automake/automake/tests/defs.in,v
retrieving revision 1.3
diff -u -r1.3 defs.in
--- tests/defs.in	24 Sep 2002 08:05:58 -0000	1.3
+++ tests/defs.in	25 Sep 2002 18:39:06 -0000
@@ -102,6 +102,11 @@
 	rm -f $priv_check_temp
 	test $overwrite_status = 0 && exit 77
 	;;
+      tex)
+        # No all versions of Tex support `--version', so we use
+        # a configure check.
+        test -n "@TEX@" || exit 77
+	;;
       # Generic case: the tool must support --version.
       *)
 	echo "$me: running $tool --version"

-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]