Merge branch 'upstream'
[framework/uifw/harfbuzz.git] / autogen.sh
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 autoreconf... "
17 which autoreconf || {
18         echo "*** No autoreconf found, please install it ***"
19         exit 1
20 }
21
22 echo "running autoreconf"
23 autoreconf --force --install || exit $?
24
25 cd $olddir
26 echo "running configure $@"
27 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"