1#!/bin/sh 2# Run this to generate all the initial makefiles, etc. 3 4srcdir=`dirname $0` 5test -z "$srcdir" && srcdir=. 6 7PROJECT=liblingoteach 8 9DIE=0 10 11(autoconf --version) < /dev/null > /dev/null 2>&1 || { 12 echo 13 echo "You must have autoconf installed to compile $PROJECT." 14 echo "Download the appropriate package for your distribution," 15 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 16 DIE=1 17} 18 19(libtool --version) < /dev/null > /dev/null 2>&1 || { 20 echo 21 echo "You must have libtool installed to compile $PROJECT." 22 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz" 23 echo "(or a newer version if it is available)" 24 DIE=1 25} 26 27(automake --version) < /dev/null > /dev/null 2>&1 || { 28 echo 29 echo "You must have automake installed to compile $PROJECT." 30 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz" 31 echo "(or a newer version if it is available)" 32 DIE=1 33} 34 35if test "$DIE" -eq 1; then 36 exit 1 37fi 38 39if test -z "$*"; then 40 echo "I am going to run ./configure with no arguments - if you wish " 41 echo "to pass any to it, please specify them on the $0 command line." 42fi 43 44case $CC in 45*lcc | *lcc\ *) am_opt=--include-deps;; 46esac 47 48echo "Running libtoolize" 49libtoolize --copy --force 50 51aclocal $ACLOCAL_FLAGS 52autoheader 53automake --copy --add-missing $am_opt 54autoconf 55 56./configure --enable-maintainer-mode "$@" 57 58echo 59echo "Now type '(g)make' to compile $PROJECT." 60