2000-12-18 22:24:19 +01:00
|
|
|
cflags="$c_warnings $extra_flags"
|
|
|
|
cxxflags="$cxx_warnings $base_cxxflags $extra_flags"
|
|
|
|
configure="./configure $base_configs $extra_configs"
|
2001-01-31 02:43:16 +01:00
|
|
|
for arg
|
|
|
|
do
|
|
|
|
# Escape special characters so they don't confuse eval
|
|
|
|
configure="$configure "`echo "$arg" | \
|
|
|
|
sed -e 's,\([^a-zA-Z0-9_.=-]\),\\\\\1,g'`
|
2000-12-18 22:55:47 +01:00
|
|
|
done
|
|
|
|
|
2001-01-31 02:43:16 +01:00
|
|
|
commands="\
|
|
|
|
$make -k clean || true
|
2002-02-07 20:34:35 +01:00
|
|
|
/bin/rm -f */.deps/*.P config.cache innobase/config.cache bdb/build_unix/config.cache
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2001-03-05 02:59:13 +01:00
|
|
|
aclocal && autoheader && aclocal && automake && autoconf
|
|
|
|
(cd bdb/dist && sh s_all)
|
|
|
|
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
|
2001-05-29 15:29:08 +02:00
|
|
|
if [ -d gemini ]
|
|
|
|
then
|
|
|
|
(cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
|
|
|
|
fi
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2002-02-07 20:34:35 +01:00
|
|
|
CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" \
|
|
|
|
$configure"
|
2001-01-31 02:43:16 +01:00
|
|
|
|
2001-03-04 22:34:26 +01:00
|
|
|
if [ -z "$just_configure" ]
|
2001-01-31 02:43:16 +01:00
|
|
|
then
|
|
|
|
commands="$commands
|
2000-12-20 08:11:49 +01:00
|
|
|
|
2001-03-04 22:34:26 +01:00
|
|
|
$make $AM_MAKEFLAGS"
|
|
|
|
|
|
|
|
if [ "x$strip" = "xyes" ]
|
|
|
|
then
|
|
|
|
commands="$commands
|
|
|
|
|
2001-02-03 17:00:29 +01:00
|
|
|
mkdir -p tmp
|
2001-01-31 02:43:16 +01:00
|
|
|
nm --numeric-sort sql/mysqld > tmp/mysqld.sym
|
|
|
|
objdump -d sql/mysqld > tmp/mysqld.S
|
|
|
|
strip sql/mysqld"
|
2001-03-04 22:34:26 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-01-31 02:43:16 +01:00
|
|
|
|
|
|
|
if test -z "$nonono"
|
|
|
|
then
|
|
|
|
eval "set -x; $commands"
|
|
|
|
else
|
|
|
|
echo "$commands"
|
|
|
|
fi
|