* acgeneral.m4 (AC_CACHE_LOAD): Avoid sourcing special files.
Works around bug in some versions of bash.
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
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