Commit 3d9db382 authored by Sam Lantinga's avatar Sam Lantinga

Show an error message if autoconf isn't found

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401568
parent 6f035998
...@@ -5,9 +5,14 @@ echo "This may take a while ..." ...@@ -5,9 +5,14 @@ echo "This may take a while ..."
# Regenerate configuration files # Regenerate configuration files
cp acinclude.m4 aclocal.m4 cp acinclude.m4 aclocal.m4
found=false
for autoconf in autoconf autoconf259 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 done
if test x$found = xfalse; then
echo "Couldn't find autoconf, aborting"
exit 1
fi
(cd test; sh autogen.sh) (cd test; sh autogen.sh)
# Run configure for this platform # Run configure for this platform
......
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
# #
# Regenerate configuration files # Regenerate configuration files
cp acinclude.m4 aclocal.m4 cp acinclude.m4 aclocal.m4
found=false
for autoconf in autoconf autoconf259 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 done
if test x$found = xfalse; then
echo "Couldn't find autoconf, aborting"
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment