2015-02-06 08:31:47 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
check_for_app() {
|
|
|
|
$1 --version 2>&1 >/dev/null
|
|
|
|
if [ $? != 0 ]
|
|
|
|
then
|
|
|
|
echo "Please install $1 and run bootstrap.sh again!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
# On FreeBSD and OpenBSD, multiple autoconf/automake versions have different names.
|
|
|
|
# On Linux, environment variables tell which one to use.
|
|
|
|
|
|
|
|
case `uname -sr` in
|
|
|
|
OpenBSD*)
|
|
|
|
export AUTOCONF_VERSION=2.63
|
|
|
|
export AUTOMAKE_VERSION=1.9
|
|
|
|
;;
|
2015-06-15 10:42:59 -04:00
|
|
|
FreeBSD*)
|
|
|
|
AUTOCONF_VERSION=2.69
|
2015-09-03 13:29:43 -04:00
|
|
|
AUTOMAKE_VERSION=1.15
|
2015-02-06 08:31:47 -05:00
|
|
|
export AUTOCONF_VERSION
|
|
|
|
export AUTOMAKE_VERSION
|
|
|
|
;;
|
2015-06-15 10:42:59 -04:00
|
|
|
*)
|
|
|
|
;;
|
2015-02-06 08:31:47 -05:00
|
|
|
esac
|
|
|
|
|
2015-06-01 12:41:54 -04:00
|
|
|
check_for_app autoconf
|
|
|
|
check_for_app autoheader
|
|
|
|
check_for_app automake
|
|
|
|
check_for_app aclocal
|
2015-02-06 08:31:47 -05:00
|
|
|
|
|
|
|
echo "Generating the configure script ..."
|
|
|
|
|
2015-06-01 12:41:54 -04:00
|
|
|
aclocal
|
|
|
|
autoconf
|
|
|
|
autoheader
|
|
|
|
automake --add-missing --copy 2>/dev/null
|
2015-02-06 08:31:47 -05:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|