mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
c5d39f039f
Plain (single-thread) moses should configure and build as before. Multi-thread and server only available if appropriate options are selected at configure/compile time. git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@2477 1f5c12ca-751b-0410-a591-d2e778427230
47 lines
973 B
Bash
Executable File
47 lines
973 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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"
|
|
|
|
function die () {
|
|
echo "$@" >&2
|
|
exit 1
|
|
}
|
|
|
|
if [ -z "$ACLOCAL" ]
|
|
then
|
|
ACLOCAL=`which aclocal`
|
|
fi
|
|
|
|
if [ -z "$AUTOMAKE" ]
|
|
then
|
|
AUTOMAKE=`which automake`
|
|
fi
|
|
|
|
if [ -z "$AUTOCONF" ]
|
|
then
|
|
AUTOCONF=`which autoconf`
|
|
fi
|
|
|
|
|
|
echo "Calling $ACLOCAL..."
|
|
$ACLOCAL -I m4 || die "aclocal failed"
|
|
echo "Calling $AUTOCONF..."
|
|
$AUTOCONF || die "autoconf failed"
|
|
echo "Calling $AUTOMAKE..."
|
|
$AUTOMAKE || die "automake failed"
|
|
|
|
echo
|
|
echo "You should now be able to configure and build:"
|
|
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"
|
|
echo " make -j 4"
|
|
echo
|
|
|