2008-06-23 22:04:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2011-08-06 16:45:41 +00:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2008-06-23 22:04:20 +00:00
|
|
|
|
2011-08-06 16:45:41 +00:00
|
|
|
olddir=`pwd`
|
|
|
|
cd "$srcdir"
|
2008-06-23 22:04:20 +00:00
|
|
|
|
2011-08-06 16:45:41 +00:00
|
|
|
INTLTOOLIZE=`which intltoolize`
|
|
|
|
if test -z $INTLTOOLIZE; then
|
|
|
|
echo "*** No intltoolize found, please install the intltool package ***"
|
|
|
|
exit 1
|
|
|
|
fi
|
2008-06-23 22:04:20 +00:00
|
|
|
|
2011-08-06 16:45:41 +00:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
echo "*** No autoreconf found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
fi
|
2008-06-23 22:04:20 +00:00
|
|
|
|
2011-08-06 16:45:41 +00:00
|
|
|
if test -z `which autopoint`; then
|
|
|
|
echo "*** No autopoint found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-08-12 17:05:07 +00:00
|
|
|
LIBTOOL=`which libtoolize`
|
|
|
|
if test -z $LIBTOOL; then
|
|
|
|
echo "*** No libtool found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2013-02-14 10:28:22 +00:00
|
|
|
git submodule update --init --recursive
|
|
|
|
|
2015-05-04 01:08:49 +00:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
echo "*** Failed to download submodules. Maybe you have a bad connection or a submodule was not forked?"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2011-08-06 16:45:41 +00:00
|
|
|
autopoint --force
|
|
|
|
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
|
|
|
|
|
|
|
|
cd "$olddir"
|
|
|
|
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|