199c6e2918
The change causes problems for people on various sad distros. Oh well, whatever. This reverts commitbd00d9fd05
. This reverts commit054a9cdb04
. Change-Id: Ie439e4c655d02b6f34bdd1a9c1c5b6db6048b653
39 lines
768 B
Bash
Executable file
39 lines
768 B
Bash
Executable file
#! /bin/bash
|
|
|
|
srcdir=`dirname $0`
|
|
test -n "$srcdir" || srcdir=.
|
|
|
|
olddir=`pwd`
|
|
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; then
|
|
libtoolize || failed "libtool"
|
|
elif test `uname -s` = Darwin; then
|
|
glibtoolize || failed "Can't find glibtoolize. For instance use the one from https://brew.sh, 'brew install libtool', or build GNU libtool yourself."
|
|
fi
|
|
|
|
aclocal || failed "aclocal"
|
|
|
|
autoheader || failed "autoheader"
|
|
|
|
automake --add-missing || failed "automake"
|
|
|
|
autoreconf || failed "autoreconf"
|
|
|
|
cat << EOF
|
|
|
|
Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
|
|
|
|
EOF
|
|
|
|
cd "$olddir"
|