[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fw: bug in texi2dvi, and hack patch
From: |
Stepan Kasal |
Subject: |
Re: Fw: bug in texi2dvi, and hack patch |
Date: |
Thu, 20 Jan 2005 12:35:08 +0100 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Wed, Jan 19, 2005 at 08:16:51PM +0200, Eli Zaretskii wrote:
> > CVS Autoconf also tackled this issue, see
> > http://lists.gnu.org/archive/html/autoconf-patches/2004-12/msg00057.html
...
> Unless I'm missing something, the above message from autoconf-patches
> does not solve this problem, since "test -f tex && test -x tex" will
> fail due to the absence of a file named literally `tex'.
(I wrote the above patch.)
The trick is that AC_CHECK_PROG contains the following code:
for ac_exec_ext in '' $ac_executable_extensions; do
if AS_EXECUTABLE_P(["$as_dir/$ac_word$ac_exec_ext"]); then
thus we eventually get to
test -f tex.exe && test -x tex.exe
which succeeds.
> Therefore, "test -x tex" was modified to check for
> `tex.exe' if `tex' does not exist.
Using `test -x' alone has always the danger that you encounter a directory.
Perhaps texi2dvi could use
test -x tex && ! test -d tex
(Autoconf couldn't use this because of possible portability fears.)
Regards,
Stepan
- Fw: bug in texi2dvi, and hack patch, Eric Blake, 2005/01/18
- Re: Fw: bug in texi2dvi, and hack patch, Karl Berry, 2005/01/18
- Re: Fw: bug in texi2dvi, and hack patch, Eli Zaretskii, 2005/01/18
- Re: Fw: bug in texi2dvi, and hack patch, Eric Blake, 2005/01/19
- Re: Fw: bug in texi2dvi, and hack patch, Eli Zaretskii, 2005/01/19
- Re: Fw: bug in texi2dvi, and hack patch,
Stepan Kasal <=
- Re: Fw: bug in texi2dvi, and hack patch, Karl Berry, 2005/01/20
- Re: Fw: bug in texi2dvi, and hack patch, Stepan Kasal, 2005/01/20
- Re: Fw: bug in texi2dvi, and hack patch, Karl Berry, 2005/01/20
- Re: bug in texi2dvi, and hack patch, Akim Demaille, 2005/01/21
- Re: bug in texi2dvi, and hack patch, Stepan Kasal, 2005/01/21
- Re: bug in texi2dvi, and hack patch, Akim Demaille, 2005/01/21
- Re: Fw: bug in texi2dvi, and hack patch, Eli Zaretskii, 2005/01/20
- Re: Fw: bug in texi2dvi, and hack patch, Ben Pfaff, 2005/01/20
- Re: Fw: bug in texi2dvi, and hack patch, Eli Zaretskii, 2005/01/21
- Re: Fw: bug in texi2dvi, and hack patch, Ben Pfaff, 2005/01/22