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.
 
 
 
 
 
 

52 lines
1.1 KiB

  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 --warnings=all
  24. # Apparently, not all versions of libtoolize support option --warnings=all .
  25. ${libtoolize} --automake --copy
  26. autoconf --warnings=all
  27. autoheader --warnings=all
  28. automake --warnings=all --gnu --add-missing --copy
  29. )
  30. if [ -n "$SKIP_SUBMODULE" ]; then
  31. echo "Skipping submodule setup"
  32. else
  33. echo "Setting up submodules"
  34. git submodule init
  35. git submodule update
  36. fi
  37. if [ -x src/jtag/drivers/libjaylink/autogen.sh ]; then
  38. (
  39. cd src/jtag/drivers/libjaylink
  40. ./autogen.sh
  41. )
  42. fi
  43. echo "Bootstrap complete. Quick build instructions:"
  44. echo "./configure ...."