2003-02-14 20:34:03 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2010-01-12 22:27:02 +00:00
|
|
|
# autoconf-2.59 or 2.61, 2.62 is known to work
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
: ${AUTOHEADER="autoheader${AC_VER}"}
|
|
|
|
: ${AUTOCONF="autoconf${AC_VER}"}
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2008-07-25 21:06:55 +00:00
|
|
|
# automake-1.9.x or 1.10 is known to work
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
: ${ACLOCAL="aclocal${AM_VER}"}
|
|
|
|
: ${AUTOMAKE="automake${AM_VER}"}
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
# Verify autoconf version
|
|
|
|
|
|
|
|
AUTOCONF_VER=`(${AUTOCONF} --version 2>/dev/null | head -n 1 | \
|
|
|
|
cut -d ' ' -f 4) 2>/dev/null`
|
2010-01-12 22:27:02 +00:00
|
|
|
if [ "$AUTOCONF_VER" != "2.59" -a "$AUTOCONF_VER" != "2.61" -a "$AUTOCONF_VER" != "2.62" ]
|
2003-03-06 04:45:30 +00:00
|
|
|
then
|
2010-01-12 22:27:02 +00:00
|
|
|
echo "Warning: This program is tested with autoconf version 2.59, 2.61 and 2.62."
|
2003-03-06 04:45:30 +00:00
|
|
|
echo "You are using `${AUTOCONF} --version | head -n 1`."
|
2003-02-14 20:34:03 +00:00
|
|
|
fi
|
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
# Verify automake version
|
|
|
|
|
|
|
|
AUTOMAKE_VER=`(${AUTOMAKE} --version | head -n 1 | \
|
|
|
|
cut -d ' ' -f 4 | cut -d '.' -f -2) 2>/dev/null`
|
2008-07-25 21:06:55 +00:00
|
|
|
if [ "$AUTOMAKE_VER" != "1.9" -a "$AUTOMAKE_VER" != "1.10" ]
|
2003-03-06 04:45:30 +00:00
|
|
|
then
|
2008-07-25 21:06:55 +00:00
|
|
|
echo "Warning: This program is tested with automake version 1.9 and 1.10."
|
2003-03-06 04:45:30 +00:00
|
|
|
echo "You are using `${AUTOMAKE} --version | head -n 1`."
|
2003-02-14 20:34:03 +00:00
|
|
|
fi
|
|
|
|
|
2003-03-10 21:25:13 +00:00
|
|
|
export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE
|
2003-03-10 20:20:55 +00:00
|
|
|
|
2003-02-14 20:34:03 +00:00
|
|
|
# Bootstrap the build system.
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2004-07-19 06:10:43 +00:00
|
|
|
rm -rf autom4te.cache
|
|
|
|
|
2003-02-14 20:34:03 +00:00
|
|
|
${ACLOCAL}
|
|
|
|
${AUTOHEADER}
|
|
|
|
${AUTOCONF}
|
|
|
|
${AUTOMAKE} -a -c
|