mutter/autogen.sh

28 lines
525 B
Bash
Raw Normal View History

#!/bin/sh
2001-06-02 00:14:18 -04:00
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
REQUIRED_AUTOMAKE_VERSION=1.11
olddir="$(pwd)"
cd "${srcdir}"
2017-02-16 10:01:42 -05:00
(test -f configure.ac \
&& test -d src) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
2017-02-16 10:01:42 -05:00
echo " top-level mutter directory"
exit 1
2001-06-02 00:14:18 -04:00
}
2017-02-16 10:01:42 -05:00
aclocal --install || exit 1
autoreconf --verbose --force --install || exit 1
cd "${olddir}"
2017-02-16 10:01:42 -05:00
if [ "$NOCONFIGURE" = "" ]; then
"${srcdir}/configure" "$@" || exit 1
2017-02-16 10:01:42 -05:00
fi