Initial autotools support: not the project is fully independent
[adg-lua.git] / autogen.sh
blob0f2f6815e68b543167f6179383c4f4f070f51b7f
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 if test ! -f $srcdir/configure.ac -o ! -f $srcdir/examples/Adg.lua; then
8 echo "**Error**: '$srcdir' does not look like the top-level adg-lua directory"
9 exit 1
12 cd $srcdir
13 libtoolize --automake || exit $?
14 autoreconf -is -Wall || exit $?
15 ./configure "$@" && echo "Now type 'make' to compile $PROJECT."