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