3 # This script should only be used if your distribution does not ship with the
4 # GMP configuration you need. For example, contrib/get-win-dependencies
5 # cross-compiles GMP for Windows. You can also use the script if your
6 # distribution does not ship with static GMP libraries (e.g., Arch Linux) and
7 # you want to build CVC4 statically.
8 # In most of the cases the GMP version installed on your system is the one you
12 source "$(dirname "$0")/get-script-header.sh"
14 [ -z "${BUILD_TYPE}" ] && BUILD_TYPE
="--disable-shared --enable-static"
15 [ -n "$HOST" ] && HOST
="--host=$HOST"
16 [ -z "$GMPVERSION" ] && GMPVERSION
=6.1.2
18 echo =============================================================================
20 echo "Setting up GMP $GMPVERSION..."
28 webget https
://gmplib.org
/download
/gmp
/gmp-
$GMPVERSION.
tar.bz2 gmp-
$GMPVERSION.
tar.bz2
&&
29 tar xfj gmp-
$GMPVERSION.
tar.bz2
&&
31 .
/configure
${HOST} --prefix="$gmpprefix" --enable-cxx ${BUILD_TYPE} &&
32 make CFLAGS
="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" LDFLAGS="${MAKE_LDFLAGS}" &&