NAND/AT91SAM9: remove private "target" copy
[openocd/openocdswd.git] / bootstrap
blob071ee2b0ac40300ec09568f6dd6662ca6422b8d5
1 #!/bin/sh -e
2 # Run the autotools bootstrap sequence to create the configure script
4 # Stop execution as soon as we have an unknown command
5 set -e
7 if libtoolize --version >/dev/null 2>&1; then
8 libtoolize="libtoolize"
9 elif glibtoolize --version >/dev/null 2>&1; then
10 libtoolize="glibtoolize"
11 else
12 echo "libtool is required" >&2
13 exit 1
16 # bootstrap the autotools
18 set -x
19 aclocal
20 ${libtoolize} --automake --copy
21 autoconf
22 autoheader
23 automake --gnu --add-missing --copy
26 # AM_MAINTAINER_MODE requires --enable-maintainer-mode from everyone using
27 # current source snapshots (working from GIT, or some source snapshot, etc)
28 # otherwise the documentation will fail to build due to missing version.texi
30 if [ -n $1 ] || [ $1 != nosubmodule ]
31 then
32 echo "Setting up submodules"
33 git submodule init
34 git submodule update
35 else
36 echo "Skipping submodule setup"
39 echo "Bootstrap complete. Quick start build instructions:"
40 echo "./configure --enable-maintainer-mode ...."