autogen.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/sh
  2. # Run this to generate all the initial makefiles, etc.
  3. # (basically ripped directly from enlightenment's autogen.sh)
  4. srcdir=`dirname $0`
  5. test -z "$srcdir" && srcdir=.
  6. cd "$srcdir"
  7. DIE=0
  8. (autoconf --version) < /dev/null > /dev/null 2>&1 || {
  9. echo
  10. echo "You must have autoconf installed to compile libogg."
  11. echo "Download the appropriate package for your distribution,"
  12. echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
  13. DIE=1
  14. }
  15. (automake --version) < /dev/null > /dev/null 2>&1 || {
  16. echo
  17. echo "You must have automake installed to compile libogg."
  18. echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
  19. echo "(or a newer version if it is available)"
  20. DIE=1
  21. }
  22. if test "$DIE" -eq 1; then
  23. exit 1
  24. fi
  25. if test -z "$*"; then
  26. echo "I am going to run ./configure with no arguments - if you wish "
  27. echo "to pass any to it, please specify them on the $0 command line."
  28. fi
  29. echo "Generating configuration files for libogg, please wait...."
  30. echo " aclocal $ACLOCAL_FLAGS"
  31. aclocal $ACLOCAL_FLAGS
  32. echo " autoheader"
  33. autoheader
  34. echo " automake --add-missing"
  35. automake --add-missing
  36. echo " autoconf"
  37. autoconf
  38. $srcdir/configure "$@" && echo