autogen.sh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="vorbis"
  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
  42. #echo " autoheader"
  43. #autoheader
  44. echo " libtoolize --automake"
  45. libtoolize --automake
  46. echo " automake --add-missing"
  47. automake --add-missing
  48. echo " autoconf"
  49. autoconf
  50. $srcdir/configure "$@" && echo