autogen.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. # Run this to set up the build system: configure, makefiles, etc.
  3. # (based on the version in enlightenment's cvs)
  4. package="vorbisidec"
  5. srcdir=`dirname $0`
  6. test -z "$srcdir" && srcdir=.
  7. cd "$srcdir"
  8. DIE=0
  9. (autoconf --version) < /dev/null > /dev/null 2>&1 || {
  10. echo
  11. echo "You must have autoconf installed to compile $package."
  12. echo "Download the appropriate package for your distribution,"
  13. echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
  14. DIE=1
  15. }
  16. (automake --version) < /dev/null > /dev/null 2>&1 || {
  17. echo
  18. echo "You must have automake installed to compile $package."
  19. echo "Download the appropriate package for your system,"
  20. echo "or get the source from one of the GNU ftp sites"
  21. echo "listed in http://www.gnu.org/order/ftp.html"
  22. DIE=1
  23. }
  24. (libtool --version) < /dev/null > /dev/null 2>&1 || {
  25. echo
  26. echo "You must have libtool installed to compile $package."
  27. echo "Download the appropriate package for your system,"
  28. echo "or get the source from one of the GNU ftp sites"
  29. echo "listed in http://www.gnu.org/order/ftp.html"
  30. DIE=1
  31. }
  32. if test "$DIE" -eq 1; then
  33. exit 1
  34. fi
  35. if test -z "$*"; then
  36. echo "I am going to run ./configure with no arguments - if you wish "
  37. echo "to pass any to it, please specify them on the $0 command line."
  38. fi
  39. echo "Generating configuration files for $package, please wait...."
  40. echo " aclocal $ACLOCAL_FLAGS"
  41. aclocal $ACLOCAL_FLAGS || exit 1
  42. echo " autoheader"
  43. autoheader || exit 1
  44. echo " libtoolize --automake"
  45. libtoolize --automake || exit 1
  46. echo " automake --add-missing $AUTOMAKE_FLAGS"
  47. automake --add-missing $AUTOMAKE_FLAGS || exit 1
  48. echo " autoconf"
  49. autoconf || exit 1
  50. $srcdir/configure "$@" && echo