diff options
author | unknown <lenz@mysql.com> | 2004-12-31 12:57:05 +0100 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2004-12-31 12:57:05 +0100 |
commit | 74ddae773af458a33b73f5d21ff8e4ed3845896d (patch) | |
tree | c711e87f6707b666ce667cef9787bf133cdfe7db /BUILD | |
parent | 295c4e6ae2b7546598497594184e0dd83280ba35 (diff) | |
parent | 54b768472c3d304d18118ee8f88c7afe3ad92743 (diff) | |
download | mariadb-git-74ddae773af458a33b73f5d21ff8e4ed3845896d.tar.gz |
Merge mysql.com:/space/my/mysql-4.0
into mysql.com:/space/my/mysql-4.1-build
Build-tools/Bootstrap:
Auto merged
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/compile-dist | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/BUILD/compile-dist b/BUILD/compile-dist new file mode 100755 index 00000000000..2344d4dfffd --- /dev/null +++ b/BUILD/compile-dist @@ -0,0 +1,46 @@ +#!/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 +make |