fix warnings merge
[openocd/dsp568013.git] / bootstrap
blob7062fc0852c71160c02b790a1302b91b676f93ea
1 #!/bin/sh -e
3 #Prepare necessary submodules before runing autotools
4 if [ "$1" = "nosubmodule" ]; then
5 SKIP_SUBMODULE=1
6 elif [ -n "$1" ]; then
7 echo "$0: Illegal argument $1"
8 echo "USAGE: $0 [nosubmodule]"
9 exit 1
12 if [ -n "$SKIP_SUBMODULE" ]; then
13 echo "Skipping submodule setup"
14 else
15 echo "Setting up submodules"
16 git submodule init
17 git submodule update
20 #Check what libtool version to use
21 if which libtoolize > /dev/null; then
22 libtoolize="libtoolize"
23 elif which glibtoolize >/dev/null; then
24 libtoolize="glibtoolize"
25 else
26 echo "$0: Error: libtool is required" >&2
27 exit 1
30 # bootstrap the autotools
32 set -x
33 aclocal
34 ${libtoolize} --automake --copy
35 autoconf
36 autoheader
37 automake --gnu --add-missing --copy
40 # AM_MAINTAINER_MODE requires --enable-maintainer-mode from everyone using
41 # current source snapshots (working from GIT, or some source snapshot, etc)
42 # otherwise the documentation will fail to build due to missing version.texi
44 echo "Bootstrap complete. Quick build instructions:"
45 echo "./configure --enable-maintainer-mode ...."