summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 1795b595b854c5e424498b93dd8b651c6a0e7cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd "$srcdir"

if ! type autoreconf >/dev/null 2>&1; then
	echo "**Error**: Missing \`autoreconf' program." >&2
	echo "You will need the autoconf and automake packages." >&2
	echo "You can download them from ftp://ftp.gnu.org/pub/gnu/." >&2
	exit 1
fi

autoreconf -v --install || exit 1
cd "$ORIGDIR" || exit $?

if test "x$NOCONFIGURE" = x; then
	"$srcdir"/configure --enable-maintainer-mode "$@"
fi