automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

minor bootstrap problem


From: Jim Meyering
Subject: minor bootstrap problem
Date: Mon, 17 Nov 2003 09:30:23 +0100

I have a directory named `perl' that resides in a `bin'
directory, and that latter happens to be early in my path.
This situation caused automake's bootstrap script to malfunction
because it selected my bin/perl *directory* to use as a perl binary.

Here's a proposed patch to fix that:

2003-11-17  Jim Meyering  <address@hidden>

        * bootstrap: Require not only that `perl' have the executable
        bit set, but also that it is not a directory.

Index: bootstrap
===================================================================
RCS file: /cvs/automake/automake/bootstrap,v
retrieving revision 1.13
diff -u -p -u -p -r1.13 bootstrap
--- bootstrap   24 Sep 2003 21:20:05 -0000      1.13
+++ bootstrap   17 Nov 2003 08:29:10 -0000
@@ -40,7 +40,7 @@ if test -z "$PERL"; then
        for dir in $PATH; do
                IFS=$save_IFS
                test -z "$dir" && dir=.
-               if test -x "$dir/perl"; then
+               if test -x "$dir/perl" && test ! -d "$dir/perl"; then
                        PERL="$dir/perl"
                        break
                fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]