autogen.sh 744 B

12345678910111213141516171819202122232425262728
  1. #! /bin/sh
  2. # autoregen doesn't run libtoolize with --ltdl on older systems, so force it
  3. LIBTOOLIZE=libtoolize
  4. if test -x /opt/local/bin/glibtoolize; then
  5. LIBTOOLIZE=/opt/local/bin/glibtoolize
  6. fi
  7. export LIBTOOLIZE
  8. echo "autogen.sh: running: $LIBTOOLIZE --copy --force"
  9. $LIBTOOLIZE --copy --force
  10. autoreconf -v --install --force || exit 1
  11. # ensure config/depcomp exists even if still using automake-1.4
  12. # otherwise "make dist" fails.
  13. touch config/depcomp
  14. # ensure COPYING is based on epl-v10.txt
  15. # epl-v10.txt was obtained from: https://www.eclipse.org/legal/epl-v10.html
  16. # by using lynx to print to .txt.
  17. rm -f COPYING
  18. cp epl-v10.txt COPYING
  19. # don't use any old cache, but create a new one
  20. rm -f config.cache
  21. ./configure -C "$@"