[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Patch 1/3] Small DOS issues
From: |
Tim Van Holder |
Subject: |
[Patch 1/3] Small DOS issues |
Date: |
Sun, 3 Mar 2002 19:29:56 +0100 |
Not sure if the first patch is acceptable; if not; it'll
just stay local to the DJGPP package.
2002-03-03 Tim Van Holder <address@hidden>
* lib/autoconf/general.m4: Work around a DJGPP issue when
loading the cache file.
* lib/m4sugar/m4sh.m4: Use the canonical test for absolute
paths.
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.789
diff -u -r1.789 general.m4
--- lib/autoconf/general.m4 2 Mar 2002 15:19:48 -0000 1.789
+++ lib/autoconf/general.m4 3 Mar 2002 18:21:13 -0000
@@ -1664,8 +1664,9 @@
m4_define([AC_CACHE_LOAD],
[if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
- # files actually), so we avoid doing that.
- if test -f "$cache_file"; then
+ # files actually), so we avoid doing that. The LFN=n is needed
+ # is needed for DJGPP's bash to DTRT under Win2K/XP.
+ if LFN=n test -f "$cache_file"; then
AC_MSG_NOTICE([loading cache $cache_file])
case $cache_file in
[[\\/]]* | ?:[[\\/]]* ) . $cache_file;;
Index: lib/m4sugar/m4sh.m4
===================================================================
RCS file: /cvs/autoconf/lib/m4sugar/m4sh.m4,v
retrieving revision 1.74
diff -u -r1.74 m4sh.m4
--- lib/m4sugar/m4sh.m4 7 Feb 2002 15:49:33 -0000 1.74
+++ lib/m4sugar/m4sh.m4 3 Mar 2002 18:21:15 -0000
@@ -504,7 +504,7 @@
_AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH],
[for as_base in sh bash ksh sh5; do
case $as_dir in
- /*)
+ [\\/]* | ?:[\\/]*)
if ("$as_dir/$as_base" -c '_AS_LINENO_WORKS') 2>/dev/null;
then
CONFIG_SHELL=$as_dir/$as_base
export CONFIG_SHELL
- [Patch 1/3] Small DOS issues,
Tim Van Holder <=