autogen.sh 1.1 KB
Newer Older
B
Behdad Esfahbod 已提交
1 2 3
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

4 5
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
B
Behdad Esfahbod 已提交
6

7
olddir=`pwd`
B
Behdad Esfahbod 已提交
8 9
cd $srcdir

10 11 12 13 14
#echo -n "checking for ragel... "
#which ragel || {
#	echo "You need to install ragel... See http://www.complang.org/ragel/"
#	exit 1
#}
15

16 17 18 19 20 21
echo -n "checking for pkg-config... "
which pkg-config || {
	echo "*** No pkg-config found, please install it ***"
	exit 1
}

22
echo -n "checking for libtoolize... "
B
Behdad Esfahbod 已提交
23
which glibtoolize || which libtoolize || {
24 25 26
	echo "*** No libtoolize (libtool) found, please install it ***"
	exit 1
}
A
Anthony Carrico 已提交
27
echo -n "checking for gtkdocize... "
28 29 30
if which gtkdocize ; then
	gtkdocize --copy || exit 1
else
31
	echo "*** No gtkdocize (gtk-doc) found, skipping documentation ***"
32
	echo "EXTRA_DIST = " > gtk-doc.make
33
fi
A
Anthony Carrico 已提交
34

35 36
echo -n "checking for autoreconf... "
which autoreconf || {
37
	echo "*** No autoreconf (autoconf) found, please install it ***"
38
	exit 1
39 40
}

41 42
echo "running autoreconf --force --install --verbose"
autoreconf --force --install --verbose || exit $?
B
Behdad Esfahbod 已提交
43

44
cd $olddir
E
Ebrahim Byagowi 已提交
45 46 47 48
test -n "$NOCONFIGURE" || {
	echo "running configure $@"
	"$srcdir/configure" "$@"
}