You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
974B

  1. #!/bin/sh
  2. # Run the autotools bootstrap sequence to create the configure script
  3. # Abort execution on error
  4. set -e
  5. if which libtoolize > /dev/null; then
  6. libtoolize="libtoolize"
  7. elif which glibtoolize >/dev/null; then
  8. libtoolize="glibtoolize"
  9. else
  10. echo "$0: Error: libtool is required" >&2
  11. exit 1
  12. fi
  13. if [ "$1" = "nosubmodule" ]; then
  14. SKIP_SUBMODULE=1
  15. elif [ -n "$1" ]; then
  16. echo "$0: Illegal argument $1"
  17. echo "USAGE: $0 [nosubmodule]"
  18. exit 1
  19. fi
  20. # bootstrap the autotools
  21. (
  22. set -x
  23. aclocal
  24. ${libtoolize} --automake --copy
  25. autoconf
  26. autoheader
  27. automake --gnu --add-missing --copy
  28. )
  29. if [ -n "$SKIP_SUBMODULE" ]; then
  30. echo "Skipping submodule setup"
  31. else
  32. echo "Setting up submodules"
  33. git submodule init
  34. git submodule update
  35. fi
  36. if [ -x src/jtag/drivers/libjaylink/autogen.sh ]; then
  37. (
  38. cd src/jtag/drivers/libjaylink
  39. ./autogen.sh
  40. )
  41. fi
  42. echo "Bootstrap complete. Quick build instructions:"
  43. echo "./configure ...."