5 commit
=b420454e732f4b3d229c552ef7cd46fec75fe65c
7 cd "$(dirname "$0")/.."
9 if ! [ -e src
/parser
/cvc
/Cvc.g
]; then
10 echo "$(basename $0): I expect to be in the contrib/ of a CVC4 source tree," >&2
11 echo "but apparently:" >&2
15 echo "is not a CVC4 source tree ?!" >&2
20 if which wget
&>/dev
/null
; then
22 elif which curl
&>/dev
/null
; then
25 echo "Can't figure out how to download from web. Please install wget or curl." >&2
30 if [ -e glpk-cut-log
]; then
31 echo 'error: file or directory "glpk-cut-log" exists; please move it out of the way.' >&2
37 webget https
://github.com
/timothy-king
/glpk-cut-log
/archive
/$commit.
zip glpk-cut-log-
$commit.
zip
38 unzip glpk-cut-log-
$commit.
zip
39 cd glpk-cut-log-
$commit
45 automake
--add-missing
46 .
/configure
--without-pic --prefix=`pwd`/..
--disable-shared --enable-static --disable-dependency-tracking
48 mv `pwd`/..
/lib
/libglpk.a
`pwd`/..
/lib
/libglpk-static.a
50 .
/configure
--with-pic --prefix=`pwd`/..
--disable-shared --enable-static --disable-dependency-tracking
56 echo ===================== Now configure CVC4 with
=====================
57 echo .
/configure
--enable-gpl --with-glpk --with-glpk-dir=`pwd`