2000-12-18 22:24:19 +01:00
|
|
|
cflags="$c_warnings $extra_flags"
|
|
|
|
cxxflags="$cxx_warnings $base_cxxflags $extra_flags"
|
2002-03-02 20:45:44 +01:00
|
|
|
extra_configs="$extra_configs $local_infile_configs"
|
2000-12-18 22:24:19 +01:00
|
|
|
configure="./configure $base_configs $extra_configs"
|
2000-12-18 22:55:47 +01:00
|
|
|
|
2001-01-31 02:43:16 +01:00
|
|
|
commands="\
|
2004-11-23 15:11:49 +01:00
|
|
|
$make -k distclean || true
|
2003-02-20 10:20:26 +01:00
|
|
|
/bin/rm -rf */.deps/*.P config.cache innobase/config.cache bdb/build_unix/config.cache bdb/dist/autom4te.cache autom4te.cache innobase/autom4te.cache;
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2005-05-18 13:23:29 +02:00
|
|
|
|
|
|
|
path=`dirname $0`
|
|
|
|
. \"$path/autorun.sh\""
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2003-08-27 21:30:50 +02:00
|
|
|
if [ -z "$just_clean" ]
|
|
|
|
then
|
|
|
|
commands="$commands
|
2005-10-06 16:54:43 +02:00
|
|
|
CC=\"$CC\" CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" \
|
2002-01-02 20:29:41 +01:00
|
|
|
$configure"
|
2003-08-27 21:30:50 +02:00
|
|
|
fi
|
2001-01-31 02:43:16 +01:00
|
|
|
|
2003-08-27 21:30:50 +02:00
|
|
|
if [ -z "$just_configure" -a -z "$just_clean" ]
|
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
|
|
|
|
2003-10-08 20:50:05 +02:00
|
|
|
if test -z "$just_print"
|
2001-01-31 02:43:16 +01:00
|
|
|
then
|
|
|
|
eval "set -x; $commands"
|
|
|
|
else
|
|
|
|
echo "$commands"
|
|
|
|
fi
|