2009-05-13 16:55:16 -05:00
|
|
|
#!/bin/sh -e
|
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
|
|
|
|
2009-12-29 17:48:49 -06:00
|
|
|
# Stop execution as soon as we have an unknown command
|
2009-12-04 02:50:55 -06:00
|
|
|
set -e
|
|
|
|
|
2009-05-13 16:55:16 -05:00
|
|
|
if libtoolize --version >/dev/null 2>&1; then
|
|
|
|
libtoolize="libtoolize"
|
2009-05-13 18:37:29 -05:00
|
|
|
elif glibtoolize --version >/dev/null 2>&1; then
|
2009-05-13 16:55:16 -05: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 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-10-29 08:05:15 -05:00
|
|
|
echo "Bootstrap complete. Quick start build instructions:"
|
|
|
|
echo ""
|
2010-11-19 03:08:09 -06:00
|
|
|
echo "1. Fetch Jim Tcl"
|
2010-10-29 08:05:15 -05:00
|
|
|
echo ""
|
|
|
|
echo "git submodule init"
|
|
|
|
echo "git submodule update"
|
|
|
|
echo ""
|
|
|
|
echo "2. Configure"
|
|
|
|
echo "./configure --enable-maintainer-mode ...."
|