bootstrap 906 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. echo "Please make sure that you use automake 1.11 or later"
  3. echo "Warnings about underquoted definitions are harmless"
  4. if [ `uname -s` = Darwin ]; then
  5. echo "On OSX, install latest libtool, as the OS provided glibtoolize will not work"
  6. fi
  7. echo "Running aclocal"
  8. aclocal -I m4 --install || exit 1
  9. # on Mac libtoolize is called glibtoolize
  10. LIBTOOLIZE=libtoolize
  11. #if [ `uname -s` = Darwin ]; then
  12. # LIBTOOLIZE=glibtoolize
  13. #fi
  14. echo "Running $LIBTOOLIZE"
  15. $LIBTOOLIZE --copy --automake --install || exit 1
  16. echo "Running autoheader"
  17. autoheader || exit 1
  18. echo "Running automake"
  19. automake --foreign --add-missing --copy || exit 1
  20. echo "Running autoconf"
  21. autoconf || exit 1
  22. echo "Running bootstrap in ou directory"
  23. (cd ou && ./bootstrap)
  24. if [ -d libccd ]; then
  25. echo "Running bootstrap in libccd directory"
  26. (cd libccd && ./bootstrap)
  27. fi;
  28. echo "Now you are ready to run ./configure"