2008-03-05 15:38:33 +03:00
|
|
|
#!/bin/bash
|
2006-07-14 20:14:48 +04:00
|
|
|
|
2007-05-23 11:34:50 +04:00
|
|
|
# NOTE:
|
|
|
|
# Versions 1.9 (or higher) of aclocal and automake are required.
|
|
|
|
|
|
|
|
# For Mac OSX users:
|
|
|
|
# Standard distribution usually includes versions 1.6.
|
|
|
|
# Get versions 1.9 or higher
|
|
|
|
# Set the following variable to the correct paths
|
|
|
|
#ACLOCAL="/path/to/aclocal-1.9"
|
|
|
|
#AUTOMAKE="/path/to/automake-1.9"
|
|
|
|
|
2007-02-15 04:50:26 +03:00
|
|
|
function die () {
|
|
|
|
echo "$@" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2007-03-31 19:18:01 +04:00
|
|
|
if [ -z "$ACLOCAL" ]
|
|
|
|
then
|
|
|
|
ACLOCAL=`which aclocal`
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$AUTOMAKE" ]
|
|
|
|
then
|
|
|
|
AUTOMAKE=`which automake`
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$AUTOCONF" ]
|
|
|
|
then
|
|
|
|
AUTOCONF=`which autoconf`
|
|
|
|
fi
|
|
|
|
|
2010-02-24 12:27:18 +03:00
|
|
|
if [ -z "$LIBTOOLIZE" ]
|
|
|
|
then
|
|
|
|
LIBTOOLIZE=`which libtoolize`
|
2010-05-22 05:04:44 +04:00
|
|
|
|
|
|
|
if [ -z "$LIBTOOLIZE" ]
|
|
|
|
then
|
|
|
|
LIBTOOLIZE=`which glibtoolize`
|
|
|
|
fi
|
2010-02-24 12:27:18 +03:00
|
|
|
fi
|
|
|
|
|
2007-03-31 19:18:01 +04:00
|
|
|
|
|
|
|
echo "Calling $ACLOCAL..."
|
2009-08-07 20:47:54 +04:00
|
|
|
$ACLOCAL -I m4 || die "aclocal failed"
|
2007-03-31 19:18:01 +04:00
|
|
|
echo "Calling $AUTOCONF..."
|
2009-08-07 20:47:54 +04:00
|
|
|
$AUTOCONF || die "autoconf failed"
|
2007-03-31 19:18:01 +04:00
|
|
|
echo "Calling $AUTOMAKE..."
|
|
|
|
$AUTOMAKE || die "automake failed"
|
2010-02-24 12:27:18 +03:00
|
|
|
echo "Calling $LIBTOOLIZE"
|
|
|
|
$LIBTOOLIZE || die "libtoolize failed"
|
|
|
|
|
2006-07-14 20:14:48 +04:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "You should now be able to configure and build:"
|
2009-08-07 20:47:54 +04:00
|
|
|
echo " ./configure [--with-srilm=/path/to/srilm] [--with-irstlm=/path/to/irstlm] [--with-randlm=/path/to/randlm] [--with-xmlrpc-c=/path/to/xmlrpc-c-config"
|
2006-07-14 20:14:48 +04:00
|
|
|
echo " make -j 4"
|
|
|
|
echo
|
2006-08-23 19:18:53 +04:00
|
|
|
|