autogen.sh 763 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. if automake --version >/dev/null 2>&1; then
  3. :
  4. else
  5. echo "You need to have automake installed to build this package"
  6. DIE=1
  7. fi
  8. if autoconf --version >/dev/null 2>&1; then
  9. :
  10. else
  11. echo "You need to have autoconf installed to build this package"
  12. DIE=1
  13. fi
  14. if libtoolize --version >/dev/null 2>&1; then
  15. :
  16. elif glibtoolize --version >/dev/null 2>&1; then # macOS
  17. :
  18. else
  19. echo "You need to have libtool installed to build this package"
  20. DIE=1
  21. fi
  22. if pkg-config --version >/dev/null 2>&1; then
  23. :
  24. else
  25. echo "You need to have pkg-config installed to build this package"
  26. DIE=1
  27. fi
  28. # bail out as scheduled
  29. test "0$DIE" -gt 0 && exit 1
  30. echo "Running: autoreconf -i && ./configure $@"
  31. autoreconf -f -i -Wno-portability && ./configure "$@"