merged in Shawn's build tools checker for autogen
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 11 Aug 2008 20:07:53 +0000 (20:07 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 11 Aug 2008 20:07:53 +0000 (20:07 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1411 9efc2488-bf62-4759-914b-345cdb29e865

autogen.sh

index dc8591f..9190b41 100755 (executable)
@@ -15,6 +15,22 @@ ${AUTOMAKE} --add-missing
 
 ${AUTOCONF}
 
 
 ${AUTOCONF}
 
+SILENT=`which libtoolize aclocal autoheader automake autoconf`
+case "$?" in
+    0 )
+        echo All build tools found.
+        ;;
+    1)
+        echo
+        echo "--------------------------------------------------------------"
+        echo "          >>> Some build tools are missing! <<<"
+        echo Please make sure your system has the GNU autoconf and automake
+        echo toolchains installed.
+        echo "--------------------------------------------------------------"
+        exit
+        ;;
+esac
+
 echo 
 echo "---------------------------------------------"
 echo "autogen finished running, now run ./configure"
 echo 
 echo "---------------------------------------------"
 echo "autogen finished running, now run ./configure"