[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf 2.52f and OS/2
From: |
Akim Demaille |
Subject: |
Re: autoconf 2.52f and OS/2 |
Date: |
24 Jan 2002 18:58:43 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) |
Thanks, installed. Please, send ChangeLog entries next time.
----------------------------------------------------------------------
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
- Re: autoconf 2.52f and OS/2,
Akim Demaille <=