2004-01-30 12:19:45 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-08-01 09:52:20 -04:00
|
|
|
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin"
|
|
|
|
|
2015-02-27 17:11:39 -05:00
|
|
|
_ac_version="2.69"
|
2020-01-18 18:26:46 -05:00
|
|
|
_am_version="1.15"
|
2004-01-30 12:19:45 -05:00
|
|
|
|
2017-07-07 10:43:08 -04:00
|
|
|
if [ ! -f "./$(basename $0)" ]; then
|
|
|
|
echo "Please chdir into $(basename $0)'s directory first."
|
2007-02-24 16:16:26 -05:00
|
|
|
exit 1
|
2004-01-30 12:19:45 -05:00
|
|
|
fi
|
|
|
|
|
2022-08-20 17:00:47 -04:00
|
|
|
test -n "${AUTOCONF_VERSION}" || AUTOCONF_VERSION="${_ac_version}"
|
|
|
|
test -n "${AUTOMAKE_VERSION}" || AUTOMAKE_VERSION="${_am_version}"
|
|
|
|
test -n "${DEFAULT_AUTOCONF}" || DEFAULT_AUTOCONF="${_ac_version}"
|
|
|
|
export AUTOCONF_VERSION AUTOMAKE_VERSION DEFAULT_AUTOCONF
|
|
|
|
|
2022-08-20 17:00:30 -04:00
|
|
|
USE_LIBTOOL="$(grep ^LT_INIT ./configure.* 2> /dev/null)"
|
2009-08-01 11:26:28 -04:00
|
|
|
|
2009-03-15 20:08:31 -04:00
|
|
|
EXTRA=
|
2009-08-01 09:52:20 -04:00
|
|
|
if [ -d m4 ]; then
|
|
|
|
EXTRA="-I m4"
|
|
|
|
fi
|
|
|
|
|
2009-03-15 20:08:31 -04:00
|
|
|
if [ -d /usr/local/share/aclocal ]; then
|
2009-08-01 09:52:20 -04:00
|
|
|
EXTRA="${EXTRA} -I /usr/local/share/aclocal"
|
2009-03-15 20:08:31 -04:00
|
|
|
fi
|
|
|
|
|
2022-08-20 17:00:47 -04:00
|
|
|
aclocal ${EXTRA} || exit 1
|
|
|
|
autoconf || exit 1
|
|
|
|
autoheader || exit 1
|
2009-08-01 11:26:28 -04:00
|
|
|
if [ -n "${USE_LIBTOOL}" ]; then
|
2022-08-20 17:00:47 -04:00
|
|
|
libtoolize --automake -c -f || exit 1
|
2009-08-01 11:26:28 -04:00
|
|
|
fi
|
2022-08-20 17:00:47 -04:00
|
|
|
automake -a -c || exit 1
|
2009-08-01 09:52:20 -04:00
|
|
|
|
2007-02-24 16:16:26 -05:00
|
|
|
rm -r autom4te.cache
|
2009-08-01 09:52:20 -04:00
|
|
|
|
|
|
|
exit 0
|