target/image: Use proper data types
[openocd.git] / bootstrap
blobe81ba4d02d0ad3fd5e203c335617b75886a8638d
1 #!/bin/sh
2 # Run the autotools bootstrap sequence to create the configure script
4 # Abort execution on error
5 set -e
7 if which libtoolize > /dev/null; then
8 libtoolize="libtoolize"
9 elif which glibtoolize >/dev/null; then
10 libtoolize="glibtoolize"
11 else
12 echo "$0: Error: libtool is required" >&2
13 exit 1
16 if [ "$1" = "nosubmodule" ]; then
17 SKIP_SUBMODULE=1
18 elif [ -n "$1" ]; then
19 echo "$0: Illegal argument $1"
20 echo "USAGE: $0 [nosubmodule]"
21 exit 1
24 # bootstrap the autotools
26 set -x
27 aclocal --warnings=all
28 # Apparently, not all versions of libtoolize support option --warnings=all .
29 ${libtoolize} --automake --copy
30 autoconf --warnings=all
31 autoheader --warnings=all
32 automake --warnings=all --gnu --add-missing --copy
35 if [ -n "$SKIP_SUBMODULE" ]; then
36 echo "Skipping submodule setup"
37 else
38 echo "Setting up submodules"
39 git submodule init
40 git submodule update
43 if [ -x src/jtag/drivers/libjaylink/autogen.sh ]; then
45 cd src/jtag/drivers/libjaylink
46 ./autogen.sh
50 echo "Bootstrap complete. Quick build instructions:"
51 echo "./configure ...."