autogen.sh 424 B

1234567891011121314151617
  1. #!/bin/sh
  2. cwd="$PWD"
  3. bs_dir="$(dirname $(readlink -f $0))"
  4. rm -rf "${bs_dir}"/autom4te.cache
  5. rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh
  6. echo 'Running autoreconf -if...'
  7. autoreconf -if || exit 1
  8. if test -z "$NOCONFIGURE" ; then
  9. echo 'Configuring...'
  10. cd "${bs_dir}" &> /dev/null
  11. test "$?" = "0" || e=1
  12. test "$cwd" != "$bs_dir" && cd "$bs_dir" &> /dev/null
  13. ./configure $@
  14. test "$e" = "1" && exit 1
  15. cd "$cwd"
  16. fi