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