2011-06-01 13:59:52 -05:00
|
|
|
#!/bin/sh
|
2009-05-28 18:47:37 -05:00
|
|
|
# Run the autotools bootstrap sequence to create the configure script
|
2009-05-13 16:55:16 -05:00
|
|
|
|
2011-06-01 13:59:52 -05:00
|
|
|
# Abort execution on error
|
2009-12-04 02:50:55 -06:00
|
|
|
set -e
|
|
|
|
|
2011-06-01 13:59:52 -05:00
|
|
|
if which libtoolize > /dev/null; then
|
|
|
|
libtoolize="libtoolize"
|
|
|
|
elif which glibtoolize >/dev/null; then
|
|
|
|
libtoolize="glibtoolize"
|
2009-05-13 16:55:16 -05:00
|
|
|
else
|
2011-06-01 13:59:52 -05:00
|
|
|
echo "$0: Error: libtool is required" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "nosubmodule" ]; then
|
|
|
|
SKIP_SUBMODULE=1
|
|
|
|
elif [ -n "$1" ]; then
|
|
|
|
echo "$0: Illegal argument $1"
|
|
|
|
echo "USAGE: $0 [nosubmodule]"
|
|
|
|
exit 1
|
2009-05-13 16:55:16 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
# bootstrap the autotools
|
|
|
|
(
|
|
|
|
set -x
|
|
|
|
aclocal
|
|
|
|
${libtoolize} --automake --copy
|
|
|
|
autoconf
|
|
|
|
autoheader
|
2009-06-30 16:44:48 -05:00
|
|
|
automake --gnu --add-missing --copy
|
2009-05-13 16:55:16 -05:00
|
|
|
)
|
2009-04-24 11:14:21 -05:00
|
|
|
|
2009-10-07 19:13:50 -05:00
|
|
|
# AM_MAINTAINER_MODE requires --enable-maintainer-mode from everyone using
|
|
|
|
# current source snapshots (working from GIT, or some source snapshot, etc)
|
2009-04-24 11:14:21 -05:00
|
|
|
# otherwise the documentation will fail to build due to missing version.texi
|
2010-12-22 07:29:34 -06:00
|
|
|
|
2011-06-01 13:59:52 -05:00
|
|
|
if [ -n "$SKIP_SUBMODULE" ]; then
|
2011-05-31 03:52:50 -05:00
|
|
|
echo "Skipping submodule setup"
|
2011-06-01 13:59:52 -05:00
|
|
|
else
|
2010-12-22 07:29:34 -06:00
|
|
|
echo "Setting up submodules"
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
fi
|
|
|
|
|
2011-06-01 13:59:52 -05:00
|
|
|
echo "Bootstrap complete. Quick build instructions:"
|
2010-10-29 08:05:15 -05:00
|
|
|
echo "./configure --enable-maintainer-mode ...."
|