2010-06-11 19:14:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2012-02-14 08:03:01 +00:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2010-06-11 19:14:37 +00:00
|
|
|
|
2012-02-14 08:03:01 +00:00
|
|
|
olddir=`pwd`
|
2010-06-11 19:14:37 +00:00
|
|
|
cd $srcdir
|
|
|
|
|
2021-01-07 13:53:25 +00:00
|
|
|
#printf "checking for ragel... "
|
2018-03-07 18:29:23 +00:00
|
|
|
#which ragel || {
|
|
|
|
# echo "You need to install ragel... See http://www.complang.org/ragel/"
|
|
|
|
# exit 1
|
|
|
|
#}
|
2010-06-11 19:14:37 +00:00
|
|
|
|
2021-01-07 13:53:25 +00:00
|
|
|
printf "checking for pkg-config... "
|
2012-02-14 08:03:01 +00:00
|
|
|
which pkg-config || {
|
|
|
|
echo "*** No pkg-config found, please install it ***"
|
|
|
|
exit 1
|
2010-06-11 19:14:37 +00:00
|
|
|
}
|
|
|
|
|
2021-01-07 13:53:25 +00:00
|
|
|
printf "checking for libtoolize... "
|
2016-10-26 09:53:00 +00:00
|
|
|
which glibtoolize || which libtoolize || {
|
|
|
|
echo "*** No libtoolize (libtool) found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
}
|
2021-01-07 13:53:25 +00:00
|
|
|
printf "checking for gtkdocize... "
|
2016-10-26 09:53:00 +00:00
|
|
|
if which gtkdocize ; then
|
|
|
|
gtkdocize --copy || exit 1
|
|
|
|
else
|
|
|
|
echo "*** No gtkdocize (gtk-doc) found, skipping documentation ***"
|
|
|
|
echo "EXTRA_DIST = " > gtk-doc.make
|
|
|
|
fi
|
|
|
|
|
2021-01-07 13:53:25 +00:00
|
|
|
printf "checking for autoreconf... "
|
2012-02-14 08:03:01 +00:00
|
|
|
which autoreconf || {
|
2016-10-26 09:53:00 +00:00
|
|
|
echo "*** No autoreconf (autoconf) found, please install it ***"
|
2012-02-14 08:03:01 +00:00
|
|
|
exit 1
|
2010-06-11 19:14:37 +00:00
|
|
|
}
|
|
|
|
|
2012-02-14 08:03:01 +00:00
|
|
|
echo "running autoreconf --force --install --verbose"
|
|
|
|
autoreconf --force --install --verbose || exit $?
|
2010-06-11 19:14:37 +00:00
|
|
|
|
2012-02-14 08:03:01 +00:00
|
|
|
cd $olddir
|
2018-02-27 17:37:56 +00:00
|
|
|
test -n "$NOCONFIGURE" || {
|
|
|
|
echo "running configure $@"
|
|
|
|
"$srcdir/configure" "$@"
|
|
|
|
}
|