Show an error message if autoconf isn't found
authorSam Lantinga <slouken@libsdl.org>
Tue, 21 Mar 2006 07:02:34 +0000
changeset 15644950a25bd91e
parent 1563 b054590b967a
child 1565 57431b199aed
Show an error message if autoconf isn't found
autogen.sh
test/autogen.sh
     1.1 --- a/autogen.sh	Tue Mar 21 06:54:24 2006 +0000
     1.2 +++ b/autogen.sh	Tue Mar 21 07:02:34 2006 +0000
     1.3 @@ -5,9 +5,14 @@
     1.4  
     1.5  # Regenerate configuration files
     1.6  cp acinclude.m4 aclocal.m4
     1.7 +found=false
     1.8  for autoconf in autoconf autoconf259
     1.9 -do if which $autoconf >/dev/null; then $autoconf; break; fi
    1.10 +do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
    1.11  done
    1.12 +if test x$found = xfalse; then
    1.13 +    echo "Couldn't find autoconf, aborting"
    1.14 +    exit 1
    1.15 +fi
    1.16  (cd test; sh autogen.sh)
    1.17  
    1.18  # Run configure for this platform
     2.1 --- a/test/autogen.sh	Tue Mar 21 06:54:24 2006 +0000
     2.2 +++ b/test/autogen.sh	Tue Mar 21 07:02:34 2006 +0000
     2.3 @@ -2,6 +2,11 @@
     2.4  #
     2.5  # Regenerate configuration files
     2.6  cp acinclude.m4 aclocal.m4
     2.7 +found=false
     2.8  for autoconf in autoconf autoconf259
     2.9 -do if which $autoconf >/dev/null; then $autoconf; break; fi
    2.10 +do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
    2.11  done
    2.12 +if test x$found = xfalse; then
    2.13 +    echo "Couldn't find autoconf, aborting"
    2.14 +    exit 1
    2.15 +fi