2002-08-14 07:43:41 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
#
|
|
|
|
|
2016-03-06 09:32:18 +01:00
|
|
|
PKG_NAME=Firebird4
|
2002-08-14 07:43:41 +02:00
|
|
|
SRCDIR=`dirname $0`
|
|
|
|
|
2009-02-25 15:44:25 +01:00
|
|
|
if [ -z "$AUTORECONF" ]
|
2004-09-28 07:56:07 +02:00
|
|
|
then
|
2009-02-25 15:44:25 +01:00
|
|
|
AUTORECONF=autoreconf
|
2004-09-28 07:56:07 +02:00
|
|
|
fi
|
|
|
|
|
2009-02-25 15:44:25 +01:00
|
|
|
echo "AUTORECONF="$AUTORECONF
|
2004-09-28 07:56:07 +02:00
|
|
|
|
2009-02-25 15:44:25 +01:00
|
|
|
# This prevents calling automake in old autotools
|
|
|
|
AUTOMAKE=true
|
|
|
|
export AUTOMAKE
|
|
|
|
|
2009-04-22 18:35:38 +02:00
|
|
|
# This helps some old aclocal versions find binreloc.m4 in current directory
|
|
|
|
ACLOCAL='aclocal -I .'
|
|
|
|
export ACLOCAL
|
|
|
|
|
2002-08-14 07:43:41 +02:00
|
|
|
# Give a warning if no arguments to 'configure' have been supplied.
|
2002-11-05 02:36:39 +01:00
|
|
|
if test -z "$*" -a x$NOCONFIGURE = x; then
|
2002-08-14 07:43:41 +02:00
|
|
|
echo "**Warning**: I am going to run \`configure' with no arguments."
|
|
|
|
echo "If you wish to pass any to it, please specify them on the"
|
|
|
|
echo \`$0\'" command line."
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
2009-03-05 10:27:27 +01:00
|
|
|
# Some versions of autotools need it
|
2009-02-27 16:01:14 +01:00
|
|
|
if [ ! -d m4 ]; then
|
|
|
|
rm -rf m4
|
|
|
|
mkdir m4
|
|
|
|
fi
|
|
|
|
|
2009-03-05 10:27:27 +01:00
|
|
|
# Ensure correct utilities are called by AUTORECONF
|
|
|
|
autopath=`dirname $AUTORECONF`
|
2009-04-22 18:34:03 +02:00
|
|
|
if [ "x$autopath" != "x" ]; then
|
2009-03-05 10:27:27 +01:00
|
|
|
PATH=$autopath:$PATH
|
|
|
|
export PATH
|
|
|
|
fi
|
|
|
|
|
2009-02-25 15:44:25 +01:00
|
|
|
echo "Running autoreconf ..."
|
|
|
|
$AUTORECONF --install --force --verbose || exit 1
|
2002-08-14 07:43:41 +02:00
|
|
|
|
2009-03-05 10:27:27 +01:00
|
|
|
# Hack to bypass bug in autoreconf - --install switch not passed to libtoolize,
|
|
|
|
# therefore missing config.sub and confg.guess files
|
|
|
|
CONFIG_AUX_DIR=builds/make.new/config
|
|
|
|
if [ ! -f $CONFIG_AUX_DIR/config.sub -o ! -f $CONFIG_AUX_DIR/config.guess ]; then
|
|
|
|
# re-run libtoolize with --install switch, if it does not understand that switch
|
|
|
|
# and there are no config.sub/guess files in CONFIG_AUX_DIR, we will anyway fail
|
|
|
|
echo "Re-running libtoolize ..."
|
|
|
|
if [ -z "$LIBTOOLIZE" ]; then
|
|
|
|
LIBTOOLIZE=libtoolize
|
|
|
|
fi
|
|
|
|
$LIBTOOLIZE --install --copy --force || exit 1
|
|
|
|
fi
|
|
|
|
|
2002-08-14 07:43:41 +02:00
|
|
|
# If NOCONFIGURE is set, skip the call to configure
|
2003-03-13 07:50:05 +01:00
|
|
|
if test "x$NOCONFIGURE" = "x"; then
|
2009-10-21 02:42:38 +02:00
|
|
|
conf_flags="$conf_flags --enable-binreloc"
|
2002-08-14 07:43:41 +02:00
|
|
|
echo Running $SRCDIR/configure $conf_flags "$@" ...
|
2002-08-14 13:14:01 +02:00
|
|
|
rm -f config.cache config.log
|
2003-04-17 20:41:28 +02:00
|
|
|
chmod a+x $SRCDIR/configure
|
2002-08-14 07:43:41 +02:00
|
|
|
$SRCDIR/configure $conf_flags "$@" \
|
|
|
|
&& echo Now type \`make\' to compile $PKG_NAME
|
|
|
|
else
|
2002-11-05 02:36:39 +01:00
|
|
|
echo Autogen skipping configure process.
|
2002-08-14 07:43:41 +02:00
|
|
|
fi
|
|
|
|
|
2002-09-11 13:30:50 +02:00
|
|
|
# EOF
|