autogen.sh 566 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. bs_dir="$(dirname $(readlink -f $0))"
  3. rm -rf "${bs_dir}"/autom4te.cache
  4. rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh
  5. libusb_dir="${bs_dir}"/compat/libusb-1.0/
  6. rm -rf "${libusb_dir}"/autom4te.cache
  7. rm -rf "${libusb_dir}"/aclocal.m4 "${libusb_dir}"/ltmain.sh
  8. echo 'Running autoreconf -if...'
  9. aclocal --force -I m4
  10. libtoolize --install --copy --force
  11. autoheader --force
  12. automake --add-missing --copy --force-missing
  13. autoconf --force
  14. autoreconf -fi "${libusb_dir}"
  15. if test -z "$NOCONFIGURE" ; then
  16. echo 'Configuring...'
  17. "$bs_dir"/configure "$@"
  18. fi