2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Run the autotools bootstrap sequence to create the configure script
6 # Abort execution on error
9 if which libtoolize
> /dev
/null
; then
10 libtoolize
="libtoolize"
11 elif which glibtoolize
>/dev
/null
; then
12 libtoolize
="glibtoolize"
14 echo "$0: Error: libtool is required" >&2
18 if [ "$1" = "nosubmodule" ]; then
20 elif [ -n "$1" ]; then
21 echo "$0: Illegal argument $1"
22 echo "USAGE: $0 [nosubmodule]"
26 # bootstrap the autotools
29 aclocal
--warnings=all
30 # Apparently, not all versions of libtoolize support option --warnings=all .
31 ${libtoolize} --automake --copy
32 autoconf
--warnings=all
33 autoheader
--warnings=all
34 automake
--warnings=all
--gnu --add-missing --copy
37 if [ -n "$SKIP_SUBMODULE" ]; then
38 echo "Skipping submodule setup"
40 echo "Setting up submodules"
45 if [ -x src
/jtag
/drivers
/libjaylink
/autogen.sh
]; then
47 cd src
/jtag
/drivers
/libjaylink
52 echo "Bootstrap complete. Quick build instructions:"
53 echo "./configure ...."