# HG changeset patch # User Sam Lantinga # Date 1142924554 0 # Node ID 4950a25bd91e9be743aaff9e27b9fd22d2935f81 # Parent b054590b967a2f499b58ffcdc35bd0d5e09ec639 Show an error message if autoconf isn't found diff -r b054590b967a -r 4950a25bd91e autogen.sh --- a/autogen.sh Tue Mar 21 06:54:24 2006 +0000 +++ b/autogen.sh Tue Mar 21 07:02:34 2006 +0000 @@ -5,9 +5,14 @@ # Regenerate configuration files cp acinclude.m4 aclocal.m4 +found=false for autoconf in autoconf autoconf259 -do if which $autoconf >/dev/null; then $autoconf; break; fi +do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi done +if test x$found = xfalse; then + echo "Couldn't find autoconf, aborting" + exit 1 +fi (cd test; sh autogen.sh) # Run configure for this platform diff -r b054590b967a -r 4950a25bd91e test/autogen.sh --- a/test/autogen.sh Tue Mar 21 06:54:24 2006 +0000 +++ b/test/autogen.sh Tue Mar 21 07:02:34 2006 +0000 @@ -2,6 +2,11 @@ # # Regenerate configuration files cp acinclude.m4 aclocal.m4 +found=false for autoconf in autoconf autoconf259 -do if which $autoconf >/dev/null; then $autoconf; break; fi +do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi done +if test x$found = xfalse; then + echo "Couldn't find autoconf, aborting" + exit 1 +fi