diff options
author | Michael Widenius <monty@askmonty.org> | 2009-02-15 12:58:34 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2009-02-15 12:58:34 +0200 |
commit | a8fdaa6f2c5b2e302bffb069be3475772ca20f48 (patch) | |
tree | b5c9560ec7346f7af6a5904ad344fdbb8020849c /BUILD/compile-dist | |
parent | 115efe100dbc1393bce964fa1370e50cfef71d18 (diff) | |
parent | f7a24d72dc7a86341da4634f6d1a71f1ea77000b (diff) | |
download | mariadb-git-a8fdaa6f2c5b2e302bffb069be3475772ca20f48.tar.gz |
Merge with base MySQL 5.1
Contains fixes for test cases
Changed release tag to beta
configure.in:
change release tag to beta
Diffstat (limited to 'BUILD/compile-dist')
-rwxr-xr-x | BUILD/compile-dist | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/BUILD/compile-dist b/BUILD/compile-dist index bc907ed2bd0..e7bfb97be41 100755 --- a/BUILD/compile-dist +++ b/BUILD/compile-dist @@ -11,16 +11,33 @@ test -f Makefile && make maintainer-clean path=`dirname $0` . $path/autorun.sh +gmake= +for x in gmake gnumake make; do + if $x --version 2>/dev/null | grep GNU > /dev/null; then + gmake=$x + break; + fi +done + +if [ -z "$gmake" ]; then + # Our build may not depend on GNU make, but I wouldn't count on it + echo "Please install GNU make, and ensure it is in your path as gnumake, gmake, or make" >&2 + exit 2 +fi + # Default to gcc for CC and CXX if test -z "$CXX" ; then + export CXX CXX=gcc # Set some required compile options if test -z "$CXXFLAGS" ; then + export CXXFLAGS CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti" fi fi if test -z "$CC" ; then + export CC CC=gcc fi @@ -28,37 +45,23 @@ fi # Use ccache, if available if ccache -V > /dev/null 2>&1 then - if echo "$CC" | grep "ccache" > /dev/null + if echo "$CC" | grep -v ccache > /dev/null then - : - else + export CC CC="ccache $CC" fi - if echo "$CXX" | grep "ccache" > /dev/null + if echo "$CXX" | grep -v ccache > /dev/null then - : - else + export CXX CXX="ccache $CXX" fi fi -if test -z "$MAKE" -then - if gmake -v > /dev/null 2>&1 - then - MAKE="gmake" - else - MAKE="make" - fi -fi - -export CC CXX MAKE - # Make sure to enable all features that affect "make dist" # Remember that configure restricts the man pages to the configured features ! ./configure \ --with-maria-storage-engine \ --with-embedded-server \ --with-ndbcluster -$MAKE +$gmake |