autogen.sh 462 B

123456789101112131415161718192021222324
  1. #! /bin/sh
  2. #
  3. # Copyright (c), Recep Aslantas.
  4. #
  5. # MIT License (MIT), http://opensource.org/licenses/MIT
  6. # Full license can be found in the LICENSE file
  7. #
  8. cd $(dirname "$0")
  9. if [ "$(uname)" = "Darwin" ]; then
  10. libtoolBin=$(which glibtoolize)
  11. libtoolBinDir=$(dirname "${libtoolBin}")
  12. if [ ! -f "${libtoolBinDir}/libtoolize" ]; then
  13. ln -s $libtoolBin "${libtoolBinDir}/libtoolize"
  14. fi
  15. fi
  16. autoheader
  17. libtoolize
  18. aclocal -I m4
  19. autoconf
  20. automake --add-missing --copy