diff options
author | monty@mysql.com <> | 2005-01-03 23:04:52 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-01-03 23:04:52 +0200 |
commit | 309b1a2b6ca36ed76753057cb032b6f4179bdc9b (patch) | |
tree | 0f73878fcf058ff862f3f7eb305aafae2ad3465d /BUILD | |
parent | a9853184d3b69a3802984e0994282dc3a3320296 (diff) | |
parent | 530a104eec3abc0620ee6c3b649f9a425306bfe1 (diff) | |
download | mariadb-git-309b1a2b6ca36ed76753057cb032b6f4179bdc9b.tar.gz |
Merge with 4.1 tree to get fix for INSERT IGNORE ... ON DUPLICATE KEY
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/compile-dist | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/BUILD/compile-dist b/BUILD/compile-dist new file mode 100755 index 00000000000..f27c218747c --- /dev/null +++ b/BUILD/compile-dist @@ -0,0 +1,47 @@ +#!/bin/sh +# +# This script's purpose is to update the automake/autoconf helper scripts and +# to run a plain "configure" without any special compile flags. Only features +# that affect the content of the source distribution are enabled. The resulting +# tree can then be picked up by "make dist" to create the "pristine source +# package" that is used as the basis for all other binary builds. +# +make distclean +aclocal +autoheader +libtoolize --automake --force --copy +automake --force --add-missing --copy +autoconf +(cd bdb/dist && sh s_all) +(cd innobase && aclocal && autoheader && aclocal && automake && autoconf) + +# Default to gcc for CC and CXX +if test -z "$CXX" ; then + export CXX=gcc +fi + +if test -z "$CC" ; then + export CC=gcc +fi + +# Use ccache, if available +if ccache -V > /dev/null 2>&1 +then + if ! (echo "$CC" | grep "ccache" > /dev/null) + then + export CC="ccache $CC" + fi + if ! (echo "$CXX" | grep "ccache" > /dev/null) + then + export CXX="ccache $CXX" + fi +fi + +# Make sure to enable all features that affect "make dist" +./configure \ + --with-embedded-server \ + --with-berkeley-db \ + --with-innodb \ + --enable-thread-safe-client \ + --with-ndbcluster +make |