autogen.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/sh
  2. # Run this to generate all the initial makefiles, etc.
  3. test -n "$srcdir" || srcdir=`dirname "$0"`
  4. test -n "$srcdir" || srcdir=.
  5. olddir=`pwd`
  6. cd $srcdir
  7. echo -n "checking for ragel... "
  8. which ragel || {
  9. echo "You need to install ragel... See http://www.complang.org/ragel/"
  10. exit 1
  11. }
  12. echo -n "checking for pkg-config... "
  13. which pkg-config || {
  14. echo "*** No pkg-config found, please install it ***"
  15. exit 1
  16. }
  17. echo -n "checking for libtoolize... "
  18. which glibtoolize || which libtoolize || {
  19. echo "*** No libtoolize (libtool) found, please install it ***"
  20. exit 1
  21. }
  22. echo -n "checking for gtkdocize... "
  23. if which gtkdocize ; then
  24. gtkdocize --copy || exit 1
  25. else
  26. echo "*** No gtkdocize (gtk-doc) found, skipping documentation ***"
  27. echo "EXTRA_DIST = " > gtk-doc.make
  28. fi
  29. echo -n "checking for autoreconf... "
  30. which autoreconf || {
  31. echo "*** No autoreconf (autoconf) found, please install it ***"
  32. exit 1
  33. }
  34. echo "running autoreconf --force --install --verbose"
  35. autoreconf --force --install --verbose || exit $?
  36. cd $olddir
  37. echo "running configure $@"
  38. test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"