2009-11-02 21:28:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2011-01-10 03:18:53 +00:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2009-11-02 21:28:39 +00:00
|
|
|
|
2011-01-10 03:18:53 +00:00
|
|
|
olddir=`pwd`
|
2009-11-02 21:28:39 +00:00
|
|
|
cd $srcdir
|
|
|
|
|
2013-02-07 04:43:27 +00:00
|
|
|
echo -n "checking for ragel... "
|
|
|
|
which ragel || {
|
|
|
|
echo "You need to install ragel... See http://www.complang.org/ragel/"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2011-08-02 15:25:13 +00:00
|
|
|
echo -n "checking for pkg-config... "
|
|
|
|
which pkg-config || {
|
|
|
|
echo "*** No pkg-config found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2013-02-24 18:00:33 +00:00
|
|
|
echo -n "checking for gtkdocize... "
|
|
|
|
which gtkdocize || {
|
|
|
|
echo "*** No gtkdocize found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
gtkdocize || exit 1
|
|
|
|
|
2011-08-01 20:39:32 +00:00
|
|
|
echo -n "checking for autoreconf... "
|
|
|
|
which autoreconf || {
|
2011-01-10 03:18:53 +00:00
|
|
|
echo "*** No autoreconf found, please install it ***"
|
|
|
|
exit 1
|
2011-08-01 20:39:32 +00:00
|
|
|
}
|
|
|
|
|
2011-08-02 15:25:13 +00:00
|
|
|
echo "running autoreconf --force --install --verbose"
|
|
|
|
autoreconf --force --install --verbose || exit $?
|
2009-11-02 21:28:39 +00:00
|
|
|
|
2011-01-10 03:18:53 +00:00
|
|
|
cd $olddir
|
2011-08-01 20:39:32 +00:00
|
|
|
echo "running configure $@"
|
2011-01-10 03:18:53 +00:00
|
|
|
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|