bug-libtool
[Top][All Lists]
Advanced

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

libtool-1.5/libtool.m4 problem


From: Lars J. Aas
Subject: libtool-1.5/libtool.m4 problem
Date: Tue, 3 Jun 2003 14:54:41 +0200
User-agent: Mutt/1.3.24i

When configure-scripts bootstrapped with libtool-1.5 is run on MKS,
and $PATH contains directories with spaces in them ("Program Files"),
you get the following strange error messages:

test: ./configure 383: expression syntax error
(once for each time a path-dir contains space)

The following patch seems to fix the problem.

I see that $dir/echo is used a couple of other places in the macro
(the next two lines), but I'm a bit unsure about how to quote those...

  Lars J

--- libtool.m4.orig     Mon Jun  2 16:31:12 2003
+++ libtool.m4  Mon Jun  2 16:32:07 2003
@@ -347,7 +347,7 @@
   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   for dir in $PATH /usr/ucb; do
     IFS="$lt_save_ifs"
-    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+    if (test -f "$dir/echo" || test -f "$dir/echo$ac_exeext") &&
        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
        test "X$echo_testing_string" = "X$echo_test_string"; then




reply via email to

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