2009-05-13 21:55:16 +00:00
|
|
|
#!/bin/sh -e
|
2009-05-28 23:47:37 +00:00
|
|
|
# Run the autotools bootstrap sequence to create the configure script
|
2009-05-13 21:55:16 +00:00
|
|
|
|
2009-12-29 23:48:49 +00:00
|
|
|
# Stop execution as soon as we have an unknown command
|
2009-12-04 08:50:55 +00:00
|
|
|
set -e
|
|
|
|
|
2009-05-13 21:55:16 +00:00
|
|
|
if libtoolize --version >/dev/null 2>&1; then
|
|
|
|
libtoolize="libtoolize"
|
2009-05-13 23:37:29 +00:00
|
|
|
elif glibtoolize --version >/dev/null 2>&1; then
|
2009-05-13 21:55:16 +00:00
|
|
|
libtoolize="glibtoolize"
|
|
|
|
else
|
|
|
|
echo "libtool is required" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# bootstrap the autotools
|
|
|
|
(
|
|
|
|
set -x
|
|
|
|
aclocal
|
|
|
|
${libtoolize} --automake --copy
|
|
|
|
autoconf
|
|
|
|
autoheader
|
2009-06-30 21:44:48 +00:00
|
|
|
automake --gnu --add-missing --copy
|
2009-05-13 21:55:16 +00:00
|
|
|
)
|
2009-04-24 16:14:21 +00:00
|
|
|
|
2009-10-08 00:13:50 +00: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 16:14:21 +00:00
|
|
|
# otherwise the documentation will fail to build due to missing version.texi
|
2010-12-22 13:29:34 +00:00
|
|
|
|
2011-05-31 08:52:50 +00:00
|
|
|
if [ $1 == nosubmodule ]; then
|
|
|
|
echo "Skipping submodule setup"
|
|
|
|
elif [ -z $1 ]; then
|
2010-12-22 13:29:34 +00:00
|
|
|
echo "Setting up submodules"
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
else
|
2011-05-31 08:52:50 +00:00
|
|
|
echo "Argument to bootstrap is either no argument or nosubmodule"
|
|
|
|
exit 1
|
2010-12-22 13:29:34 +00:00
|
|
|
fi
|
|
|
|
|
2010-10-29 13:05:15 +00:00
|
|
|
echo "Bootstrap complete. Quick start build instructions:"
|
|
|
|
echo "./configure --enable-maintainer-mode ...."
|