autoconf-patches
[Top][All Lists]
Advanced

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

autoconf 2.52f and OS/2


From: Andreas Buening
Subject: autoconf 2.52f and OS/2
Date: Sun, 16 Dec 2001 02:55:32 +0100

Hello!

I've just tested autoconf 2.52f with OS/2. There are two
problems I want to mention. The first one (PATH_SEPARATOR)
should be obvious, the second one (#! $SHELL) can become
a problem if $SHELL refers to a not sh compatible shell.
In my opinion it would be better to define $SHELL
_before_ using it, e.g.:
SHELL=${CONFIG_SHELL-/bin/sh}


--- old/autoconf-2.52f/lib/m4sugar/m4sh.m4      Fri Nov  2 16:10:56 2001
+++ gnu/autoconf-2.52f/lib/m4sugar/m4sh.m4      Sun Dec 16 00:29:34 2001
@@ -502,7 +502,7 @@
   fi
   case $CONFIG_SHELL in
   '')
-    _AS_PATH_WALK([/bin:/usr/bin:$PATH],
+    _AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH],
       [for as_base in sh bash ksh sh5; do
         case $as_dir in
         /*)
@@ -579,7 +579,7 @@
 m4_defun([_AS_PATH_SEPARATOR_PREPARE],
 [# The user is always right.
 if test "${PATH_SEPARATOR+set}" != set; then
-  echo "#! $SHELL" >conftest.sh
+  echo "#! /bin/sh" >conftest.sh
   echo  "exit 0"   >>conftest.sh
   chmod +x conftest.sh
   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then


bye,
Andreas



reply via email to

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