autogen.sh
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:1k
源码类别:

DVD

开发平台:

Unix_Linux

  1. #!/bin/sh
  2. # Run this to generate all the initial makefiles, etc.
  3. # This was lifted from the Gimp, and adapted slightly by
  4. # Raph Levien .
  5. DIE=0
  6. PROG=mpeg2dec
  7. (autoconf --version) < /dev/null > /dev/null 2>&1 || {
  8.         echo
  9.         echo "You must have autoconf installed to compile $PROG."
  10.         echo "Download the appropriate package for your distribution,"
  11.         echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
  12.         DIE=1
  13. }
  14. # Do we really need libtool?
  15. #(libtool --version) < /dev/null > /dev/null 2>&1 || {
  16. #        echo
  17. #        echo "You must have libtool installed to compile $PROG."
  18. #        echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz"
  19. #        echo "(or a newer version if it is available)"
  20. #        DIE=1
  21. #}
  22. (automake --version) < /dev/null > /dev/null 2>&1 || {
  23.         echo
  24.         echo "You must have automake installed to compile $PROG."
  25.         echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
  26.         echo "(or a newer version if it is available)"
  27.         DIE=1
  28. }
  29. if test "$DIE" -eq 1; then
  30.         exit 1
  31. fi
  32. if test -z "$*"; then
  33.         echo "I am going to run ./configure with no arguments - if you wish "
  34.         echo "to pass any to it, please specify them on the $0 command line."
  35. fi
  36. for dir in .
  37. do 
  38.   echo processing $dir
  39.   (cd $dir; 
  40.   aclocalinclude="$ACLOCAL_FLAGS"; 
  41.   aclocal $aclocalinclude; 
  42.   autoheader; automake --foreign -a; autoconf)
  43. done
  44. ./configure "$@"
  45. echo 
  46. echo "Now type 'make' to compile $PROG."