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