From 67d8e848ec7d4a7c6d97a8190d234786ec4c8f31 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 25 Feb 1999 18:24:02 +0000 Subject: [PATCH] 1999-02-10 Tom Tromey * acgeneral.m4 (AC_CACHE_LOAD): Avoid sourcing special files. Works around bug in some versions of bash. --- acgeneral.m4 | 4 +++- lib/autoconf/general.m4 | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/acgeneral.m4 b/acgeneral.m4 index c1c3a6f2..0d4f9143 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1032,7 +1032,9 @@ dnl AC_CACHE_LOAD() define(AC_CACHE_LOAD, [if test -r "$cache_file"; then echo "loading cache $cache_file" - . $cache_file + dnl Some versions of bash will fail to source /dev/null, so we + dnl avoid doing that. + test -f "$cache_file" && . $cache_file else echo "creating cache $cache_file" > $cache_file diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index c1c3a6f2..0d4f9143 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1032,7 +1032,9 @@ dnl AC_CACHE_LOAD() define(AC_CACHE_LOAD, [if test -r "$cache_file"; then echo "loading cache $cache_file" - . $cache_file + dnl Some versions of bash will fail to source /dev/null, so we + dnl avoid doing that. + test -f "$cache_file" && . $cache_file else echo "creating cache $cache_file" > $cache_file -- 2.47.2