129aa40018301a4f138cd5e73463079c7704bf3acBehdad Esfahbod#!/bin/sh 229aa40018301a4f138cd5e73463079c7704bf3acBehdad Esfahbod# Run this to generate all the initial makefiles, etc. 329aa40018301a4f138cd5e73463079c7704bf3acBehdad Esfahbod 42abe1264a580858bf7803af1701117a462375fb4Javier Jardóntest -n "$srcdir" || srcdir=`dirname "$0"` 52abe1264a580858bf7803af1701117a462375fb4Javier Jardóntest -n "$srcdir" || srcdir=. 629aa40018301a4f138cd5e73463079c7704bf3acBehdad Esfahbod 72abe1264a580858bf7803af1701117a462375fb4Javier Jardónolddir=`pwd` 829aa40018301a4f138cd5e73463079c7704bf3acBehdad Esfahbodcd $srcdir 929aa40018301a4f138cd5e73463079c7704bf3acBehdad Esfahbod 10adff3778155facb7b149ce66ab7d573368e048deBehdad Esfahbodecho -n "checking for ragel... " 11adff3778155facb7b149ce66ab7d573368e048deBehdad Esfahbodwhich ragel || { 12adff3778155facb7b149ce66ab7d573368e048deBehdad Esfahbod echo "You need to install ragel... See http://www.complang.org/ragel/" 13adff3778155facb7b149ce66ab7d573368e048deBehdad Esfahbod exit 1 14adff3778155facb7b149ce66ab7d573368e048deBehdad Esfahbod} 15adff3778155facb7b149ce66ab7d573368e048deBehdad Esfahbod 16b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbodecho -n "checking for pkg-config... " 17b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbodwhich pkg-config || { 18b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbod echo "*** No pkg-config found, please install it ***" 19b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbod exit 1 20b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbod} 21b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbod 22f7c72b42efb8d42859023659fd2e3d589523436dAnthony Carricoecho -n "checking for gtkdocize... " 23b456d42bf68c4374f71f09867e375a51c7f2b3edBehdad Esfahbodif which gtkdocize ; then 24b456d42bf68c4374f71f09867e375a51c7f2b3edBehdad Esfahbod gtkdocize --copy || exit 1 25b456d42bf68c4374f71f09867e375a51c7f2b3edBehdad Esfahbodelse 26b456d42bf68c4374f71f09867e375a51c7f2b3edBehdad Esfahbod echo "*** No gtkdocize found, skipping documentation ***" 27e9853f33d1f53d4d69ee0fa340ce9225a5ed17caBehdad Esfahbod echo "EXTRA_DIST = " > gtk-doc.make 28b456d42bf68c4374f71f09867e375a51c7f2b3edBehdad Esfahbodfi 29f7c72b42efb8d42859023659fd2e3d589523436dAnthony Carrico 301264b23e4a4ae1c9831a3009e1c7ab8e65a5b434Behdad Esfahbodecho -n "checking for autoreconf... " 311264b23e4a4ae1c9831a3009e1c7ab8e65a5b434Behdad Esfahbodwhich autoreconf || { 322abe1264a580858bf7803af1701117a462375fb4Javier Jardón echo "*** No autoreconf found, please install it ***" 332abe1264a580858bf7803af1701117a462375fb4Javier Jardón exit 1 341264b23e4a4ae1c9831a3009e1c7ab8e65a5b434Behdad Esfahbod} 351264b23e4a4ae1c9831a3009e1c7ab8e65a5b434Behdad Esfahbod 36b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbodecho "running autoreconf --force --install --verbose" 37b301478a69d961c724a4875b839a81fb458d1153Behdad Esfahbodautoreconf --force --install --verbose || exit $? 3829aa40018301a4f138cd5e73463079c7704bf3acBehdad Esfahbod 392abe1264a580858bf7803af1701117a462375fb4Javier Jardóncd $olddir 401264b23e4a4ae1c9831a3009e1c7ab8e65a5b434Behdad Esfahbodecho "running configure $@" 412abe1264a580858bf7803af1701117a462375fb4Javier Jardóntest -n "$NOCONFIGURE" || "$srcdir/configure" "$@" 42