autogen.sh 569 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. echo "Generating build information using autoconf"
  4. echo "This may take a while ..."
  5. srcdir=`dirname $0`
  6. test -z "$srcdir" && srcdir=.
  7. pushd $srcdir
  8. # Regenerate configuration files
  9. cat acinclude/* >aclocal.m4
  10. found=false
  11. for autoconf in autoconf autoconf259 autoconf-2.59
  12. do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
  13. done
  14. if test x$found = xfalse; then
  15. echo "Couldn't find autoconf, aborting"
  16. exit 1
  17. fi
  18. (cd test; sh autogen.sh)
  19. popd
  20. # Run configure for this platform
  21. echo "Now you are ready to run ./configure"