Add bag inferences for operators: intersection, duplicate_removal, and empty bags...
[cvc5.git] / contrib / get-glpk-cut-log
1 #!/usr/bin/env bash
2 #
3 source "$(dirname "$0")/get-script-header.sh"
4
5 # get the full path to the contrib dir; needs to be the full path so we can
6 # refer the patch from within the 'glpk-cut-log' build directory
7 contrib_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd -P)"
8
9 # Get the full path the patch we wish to apply
10 patch_file=${contrib_dir}/glpk-cut-log.patch
11
12 GLPK_DIR="$DEPS_DIR/glpk-cut-log"
13 version="4.52"
14
15 setup_dep \
16 "https://ftp.gnu.org/gnu/glpk/glpk-${version}.tar.gz" \
17 "$GLPK_DIR"
18 cd "$GLPK_DIR"
19
20 patch -p1 < ${patch_file}
21
22 if [[ "$OSTYPE" == "darwin"* ]]; then
23 glibtoolize
24 else
25 libtoolize
26 fi
27 aclocal
28 autoheader
29 autoconf
30 automake --add-missing
31
32 ./configure --without-pic --prefix="$INSTALL_DIR" --disable-shared --enable-static --disable-dependency-tracking
33 make install -j$(nproc)
34 make distclean
35 mv "$INSTALL_LIB_DIR/libglpk.a" "$INSTALL_LIB_DIR/libglpk-static.a"
36
37 ./configure --with-pic --prefix="$INSTALL_DIR" --disable-shared --enable-static --disable-dependency-tracking
38 make install -j$(nproc)
39
40 echo
41 echo ===================== Now configure CVC4 with =====================
42 echo ./configure.sh --gpl --glpk