]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-02-10 Tom Tromey <tromey@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 25 Feb 1999 18:24:02 +0000 (18:24 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 25 Feb 1999 18:24:02 +0000 (18:24 +0000)
* acgeneral.m4 (AC_CACHE_LOAD): Avoid sourcing special files.
Works around bug in some versions of bash.

acgeneral.m4
lib/autoconf/general.m4

index c1c3a6f254d29f3c67da57d6af9bceca6fdfccc0..0d4f914361dc537a9ba47f27a9e6eb92f6ed7359 100644 (file)
@@ -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
index c1c3a6f254d29f3c67da57d6af9bceca6fdfccc0..0d4f914361dc537a9ba47f27a9e6eb92f6ed7359 100644 (file)
@@ -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