2001-01-31 02:43:16 +01:00
|
|
|
if ! test -f sql/mysqld.cc
|
|
|
|
then
|
2000-12-18 22:24:19 +01:00
|
|
|
echo "You must run this script from the MySQL top-level directory"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2001-01-31 02:43:16 +01:00
|
|
|
nonono=
|
2001-03-04 22:34:26 +01:00
|
|
|
just_configure=
|
|
|
|
while test $# -gt 0
|
|
|
|
do
|
|
|
|
case "$1" in
|
|
|
|
-c | --just-configure ) just_configure=1; shift ;;
|
2001-03-08 02:15:54 +01:00
|
|
|
-n | --just-print | --print ) nonono=1; shift ;;
|
2001-03-04 22:34:26 +01:00
|
|
|
-h | --help ) cat <<EOF; exit 0 ;;
|
2001-01-31 02:43:16 +01:00
|
|
|
Usage: $0 [-h|-n] [configure-options]
|
|
|
|
-h, --help Show this help message.
|
|
|
|
-n, --just-print Don't actually run any commands; just print them.
|
2001-03-04 22:34:26 +01:00
|
|
|
-c, --just-configure Stop after running configure.
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2001-01-31 02:43:16 +01:00
|
|
|
Any other options will be passed directly to configure.
|
|
|
|
|
|
|
|
Note: this script is intended for internal use by MySQL developers.
|
|
|
|
EOF
|
2001-03-04 22:34:26 +01:00
|
|
|
* ) break ;;
|
|
|
|
esac
|
|
|
|
done
|
2001-01-31 02:43:16 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export AM_MAKEFLAGS
|
|
|
|
AM_MAKEFLAGS="-j 4"
|
2000-12-18 22:24:19 +01:00
|
|
|
|
|
|
|
# If you are not using codefusion add "-Wpointer-arith" to WARNINGS
|
|
|
|
# The following warning flag will give too many warnings:
|
|
|
|
# -Wshadow -Wunused -Winline (The later isn't usable in C++ as
|
|
|
|
# __attribute()__ doesn't work with gnu C++)
|
2000-12-20 08:11:49 +01:00
|
|
|
global_warnings="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings"
|
2001-10-31 17:27:49 +01:00
|
|
|
#debug_extra_warnings="-Wuninitialized"
|
2000-12-18 22:24:19 +01:00
|
|
|
c_warnings="$global_warnings -Wunused"
|
|
|
|
cxx_warnings="$global_warnings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"
|
|
|
|
|
2001-01-31 02:43:16 +01:00
|
|
|
alpha_cflags="-mcpu=ev6 -Wa,-mev6" # Not used yet
|
2001-10-30 15:31:35 +01:00
|
|
|
pentium_cflags="-mcpu=pentiumpro"
|
2000-12-18 22:24:19 +01:00
|
|
|
sparc_cflags=""
|
|
|
|
|
2001-05-26 00:26:52 +02:00
|
|
|
# be as fast as we can be without losing our ability to backtrace
|
2001-04-13 21:09:33 +02:00
|
|
|
fast_cflags="-O3 -fno-omit-frame-pointer"
|
2001-05-26 00:26:52 +02:00
|
|
|
# this is one is for someone who thinks 1% speedup is worth not being
|
|
|
|
# able to backtrace
|
|
|
|
reckless_cflags="-O3 -fomit-frame-pointer "
|
2001-11-03 20:22:06 +01:00
|
|
|
debug_cflags="-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DSAFE_MUTEX -O1"
|
2000-12-18 22:24:19 +01:00
|
|
|
|
|
|
|
base_cxxflags="-felide-constructors -fno-exceptions -fno-rtti"
|
|
|
|
|
2002-01-26 00:19:47 +01:00
|
|
|
base_configs="--prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client"
|
|
|
|
static_link="--with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static"
|
2001-01-31 02:43:16 +01:00
|
|
|
alpha_configs="" # Not used yet
|
2000-12-18 22:24:19 +01:00
|
|
|
pentium_configs=""
|
|
|
|
sparc_configs=""
|
2002-03-02 20:45:44 +01:00
|
|
|
# we need local-infile in all binaries for rpl000001
|
|
|
|
# if you need to disable local-infile in the client, write a build script
|
|
|
|
# and unset local_infile_configs
|
|
|
|
local_infile_configs="--enable-local-infile"
|
2000-12-18 22:24:19 +01:00
|
|
|
|
|
|
|
debug_configs="--with-debug"
|
|
|
|
|
2001-01-31 02:43:16 +01:00
|
|
|
if gmake --version > /dev/null 2>&1
|
|
|
|
then
|
2000-12-18 22:24:19 +01:00
|
|
|
make=gmake
|
|
|
|
else
|
|
|
|
make=make
|
|
|
|
fi
|
2001-10-30 15:31:35 +01:00
|
|
|
|
2002-03-26 10:40:18 +01:00
|
|
|
CXX=gcc
|