Author: wyoung
Date: Thu Jan 2 19:13:32 2014
New Revision: 2761
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2761&view=rev
Log:
bootstrap script now checks for existence of needed build tools before
trying to use them. This lets us emit a clearer error message than the
shell will. Original patch by Adrian Cornish, with improvements by me.
Modified:
trunk/bootstrap
Modified: trunk/bootstrap
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/bootstrap?rev=2761&r1=2760&r2=2761&view=diff
==============================================================================
--- trunk/bootstrap (original)
+++ trunk/bootstrap Thu Jan 2 19:13:32 2014
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
ARGS=1
BF_OPTIONS=
@@ -45,6 +45,23 @@
ARGS=0
;;
esac
+done
+
+# Check for existence of needed tools, so we can give a better error
+# message than the shell will.
+tools="make"
# POSIX
+tools="$tools aclocal autoconf autoheader libtoolize" # autotools
+tools="$tools bakefile bakefilize bakefile_gen" #
Bakefile
+for tool in $tools
+do
+ if ! type -p $tool > /dev/null
+ then
+ echo "FAILED to find build tool '$tool'!"
+ echo
+ echo BOOTSTRAP FAILED!
+ echo
+ exit 1
+ fi
done
# Find location of Bakefile's stock M4 autoconf macros
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits