comparison autogen.sh @ 1564:4950a25bd91e

Show an error message if autoconf isn't found
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Mar 2006 07:02:34 +0000
parents b054590b967a
children 14717b52abc0
comparison
equal deleted inserted replaced
1563:b054590b967a 1564:4950a25bd91e
3 echo "Generating build information using autoconf" 3 echo "Generating build information using autoconf"
4 echo "This may take a while ..." 4 echo "This may take a while ..."
5 5
6 # Regenerate configuration files 6 # Regenerate configuration files
7 cp acinclude.m4 aclocal.m4 7 cp acinclude.m4 aclocal.m4
8 found=false
8 for autoconf in autoconf autoconf259 9 for autoconf in autoconf autoconf259
9 do if which $autoconf >/dev/null; then $autoconf; break; fi 10 do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
10 done 11 done
12 if test x$found = xfalse; then
13 echo "Couldn't find autoconf, aborting"
14 exit 1
15 fi
11 (cd test; sh autogen.sh) 16 (cd test; sh autogen.sh)
12 17
13 # Run configure for this platform 18 # Run configure for this platform
14 echo "Now you are ready to run ./configure" 19 echo "Now you are ready to run ./configure"