autogen.sh revision 1264b23e4a4ae1c9831a3009e1c7ab8e65a5b434
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
10echo -n "checking for ragel... "
11which ragel || {
12	echo "You need to install ragel... See http://www.complang.org/ragel/"
13	exit 1
14}
15
16echo -n "checking for autoreconf... "
17which autoreconf || {
18	echo "*** No autoreconf found, please install it ***"
19	exit 1
20}
21
22echo "running autoreconf"
23autoreconf --force --install || exit $?
24
25cd $olddir
26echo "running configure $@"
27test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
28