>  >> aclocal --acdir=$temp -I .
> This is a work-around makes sense up to Automake 1.4.
> It still works with 1.5.
> It breaks with recent versions.
> override a /usr/share/aclocal/ macro, hence your script.
Alexandre, thank you very much for the detailed explanation.
-  echo "guile-aclocal.sh: cannot create temp directory"
+       echo "guile-aclocal.sh: cannot create temp directory"
+    aclocal --acdir=$temp -I .