jack1 codebase
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.

50 lines
964B

  1. #!/bin/sh
  2. #
  3. # on OS X, which(1) returns 0 even when it can't find a program
  4. #
  5. if type libtoolize >/dev/null 2>&1
  6. then
  7. LIBTOOLIZE=libtoolize
  8. else
  9. if which glibtoolize >/dev/null
  10. then
  11. # on the Mac it's called glibtoolize for some reason
  12. LIBTOOLIZE=glibtoolize
  13. else
  14. echo "libtoolize not found"
  15. exit 1
  16. fi
  17. fi
  18. $LIBTOOLIZE --force 2>&1 | sed '/^You should/d' || {
  19. echo "libtool failed, exiting..."
  20. exit 1
  21. }
  22. aclocal $ACLOCAL_FLAGS || {
  23. echo "aclocal \$ACLOCAL_FLAGS where \$ACLOCAL_FLAGS= failed, exiting..."
  24. exit 1
  25. }
  26. autoheader || {
  27. echo "autoheader failed, exiting..."
  28. exit 1
  29. }
  30. automake --add-missing --foreign || {
  31. echo "automake --add-missing --foreign failed, exiting..."
  32. exit 1
  33. }
  34. autoconf || {
  35. echo "autoconf failed, exiting..."
  36. exit 1
  37. }
  38. if test x$1 = x--run-conf; then
  39. echo "because of \"$1\" Running ./configure --enable-maintainer-mode $@..."
  40. ./configure --enable-maintainer-mode $@
  41. fi