458c23e5aa
This is backwards-compatible and core.git autogen.sh executes configure, so it eliminates a pointless difference. Signed-off-by: Miklos Vajna <vmiklos@collabora.com> Change-Id: I897bd2f6464201a19e26e55006cd52727abdfc41
52 lines
1.1 KiB
Bash
Executable file
52 lines
1.1 KiB
Bash
Executable file
#! /usr/bin/env bash
|
|
|
|
srcdir=`dirname $0`
|
|
test -n "$srcdir" || srcdir=.
|
|
|
|
cd "$srcdir"
|
|
|
|
function failed {
|
|
cat << EOF 1>&2
|
|
|
|
Result: $1 failed
|
|
|
|
Please try running the commands from autogen.sh manually, and fix errors.
|
|
EOF
|
|
exit 1
|
|
}
|
|
|
|
if test `uname -s` = Linux -o `uname -s` = FreeBSD; then
|
|
libtoolize || failed "libtool"
|
|
elif test `uname -s` = Darwin; then
|
|
libtoolize || glibtoolize || failed "Can't find libtoolize or glibtoolize. Use lode or install it yourself."
|
|
fi
|
|
|
|
aclocal || failed "aclocal"
|
|
|
|
autoheader || failed "autoheader"
|
|
|
|
automake --add-missing || failed "automake"
|
|
|
|
autoreconf || failed "autoreconf"
|
|
|
|
scripts/refresh-git-hooks || failed "refresh-git-hooks"
|
|
|
|
if [ $# -gt 0 ]; then
|
|
# If we got parameters, we can execute configure directly.
|
|
echo -n "Result: All went OK, running $srcdir/configure "
|
|
for arg in "$@"
|
|
do
|
|
echo -n "'${arg}' "
|
|
done
|
|
echo "now."
|
|
$srcdir/configure "$@" || failed "configure"
|
|
exit 0
|
|
fi
|
|
|
|
cat << EOF
|
|
|
|
Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
|
|
|
|
EOF
|
|
|
|
# vim:set shiftwidth=4 softtabstop=4 expandtab:
|