1. For the "request" command: removed the calls to osrfAppSessionConnect()
[OpenSRF.git] / autogen.sh
old mode 100644 (file)
new mode 100755 (executable)
index dc8591f..ff28cf2
@@ -1,7 +1,13 @@
 #!/bin/sh
 # autogen.sh - generates configure using the autotools
 
-: ${LIBTOOLIZE=libtoolize}
+OS=`uname`
+if [ "$OS" = "Darwin" ]; then
+    : ${LIBTOOLIZE=glibtoolize}
+elif [ "$OS" = "Linux" ]; then
+    : ${LIBTOOLIZE=libtoolize}
+fi
+
 : ${ACLOCAL=aclocal}
 : ${AUTOHEADER=autoheader}
 : ${AUTOMAKE=automake}
 
 ${LIBTOOLIZE} --force --copy
 ${ACLOCAL}
-${AUTOMAKE} --add-missing
+${AUTOMAKE} --add-missing --copy
 
 
 ${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 1
+        ;;
+esac
+
 echo 
 echo "---------------------------------------------"
 echo "autogen finished running, now run ./configure"