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
31 echo 'error: file or directory "abc" exists; please move it out of the way.' >&2
37 webget https
://bitbucket.org
/alanmi
/abc
/get
/$commit.
tar.gz abc-
$commit.
tar.gz
38 gunzip
-f abc-
$commit.
tar.gz
39 tar xfv abc-
$commit.
tar
42 cp src
/base
/main
/main.c src
/base
/main
/main.c.orig
43 sed 's,^// *#define ABC_LIB *$,#define ABC_LIB,' src
/base
/main
/main.c.orig
> src
/base
/main
/main.c
45 # Build optimized, without readline, without pthreads.
46 # These aren't necessary for our usage and we don't want the dependencies.
47 make libabc.a OPTFLAGS
=-O READLINE
=0 PTHREADS
=0
48 mv libabc.a libabc-static.a
50 make libabc.a OPTFLAGS
='-O -fPIC' READLINE
=0 PTHREADS
=0
53 echo ===================== Now configure CVC4 with
=====================
54 echo .
/configure
--with-abc --with-abc-dir=`pwd`