2 # Run the autotools bootstrap sequence to create the configure script
4 # Abort execution on error
7 if which libtoolize > /dev/null; then
8 libtoolize="libtoolize"
9 elif which glibtoolize >/dev/null; then
10 libtoolize="glibtoolize"
12 echo "$0: Error: libtool is required" >&2
16 if [ "$1" = "nosubmodule" ]; then
18 elif [ -n "$1" ]; then
19 echo "$0: Illegal argument $1"
20 echo "USAGE: $0 [nosubmodule]"
24 # bootstrap the autotools
28 ${libtoolize} --automake --copy
31 automake --gnu --add-missing --copy
34 # AM_MAINTAINER_MODE requires --enable-maintainer-mode from everyone using
35 # current source snapshots (working from GIT, or some source snapshot, etc)
36 # otherwise the documentation will fail to build due to missing version.texi
38 if [ -n "$SKIP_SUBMODULE" ]; then
39 echo "Skipping submodule setup"
41 echo "Setting up submodules"
46 echo "Bootstrap complete. Quick build instructions:"
47 echo "./configure --enable-maintainer-mode ...."