diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2020-07-17 09:06:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 00:06:31 -0700 |
commit | 0a7e733a5cee4733ca8ca9fff1f6eab6fc22a549 (patch) | |
tree | 8df7919ddfa7e3d3b6207f61edddfac6ed204305 /configure.sh | |
parent | 2ee5a2bcf5fd7aaf72d44553ebb85edd76fd06c8 (diff) |
Integration of libpoly (#4679)
This commit integrates LibPoly into CVC4. It adds `contrib/get-poly`, adds it to the configure script, cmake and places where CVC4 inspects its own build configuration.
Furthermore, it adds `CVC4::RealAlgebraicNumber` (which wraps `poly::AlgebraicNumber`) including some basic unit tests and some utilities.
Diffstat (limited to 'configure.sh')
-rwxr-xr-x | configure.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.sh b/configure.sh index 988b7a392..f720e67c2 100755 --- a/configure.sh +++ b/configure.sh @@ -62,6 +62,7 @@ The following flags enable optional packages (disable with --no-<option name>). --drat2er use drat2er (required for eager BV proofs) --kissat use the Kissat SAT solver --lfsc use the LFSC proof checker + --poly use the LibPoly library --symfpu use SymFPU for floating point solver --readline support the readline library @@ -76,6 +77,7 @@ Optional Path to Optional Packages: --gmp-dir=PATH path to top level of GMP installation --kissat-dir=PATH path to top level of Kissat source tree --lfsc-dir=PATH path to top level of LFSC source tree + --poly-dir=PATH path to top level of LibPoly source tree --symfpu-dir=PATH path to top level of SymFPU source tree EOF @@ -124,6 +126,7 @@ glpk=default gpl=default kissat=default lfsc=default +poly=default muzzle=default ninja=default optimized=default @@ -155,6 +158,7 @@ glpk_dir=default gmp_dir=default kissat_dir=default lfsc_dir=default +poly_dir=default symfpu_dir=default #--------------------------------------------------------------------------# @@ -241,6 +245,9 @@ do --lfsc) lfsc=ON;; --no-lfsc) lfsc=OFF;; + --poly) poly=ON;; + --no-poly) poly=OFF;; + --muzzle) muzzle=ON;; --no-muzzle) muzzle=OFF;; @@ -321,6 +328,9 @@ do --lfsc-dir) die "missing argument to $1 (try -h)" ;; --lfsc-dir=*) lfsc_dir=${1##*=} ;; + --poly-dir) die "missing argument to $1 (try -h)" ;; + --poly-dir=*) poly_dir=${1##*=} ;; + --symfpu-dir) die "missing argument to $1 (try -h)" ;; --symfpu-dir=*) symfpu_dir=${1##*=} ;; @@ -417,6 +427,8 @@ cmake_opts="" && cmake_opts="$cmake_opts -DUSE_KISSAT=$kissat" [ $lfsc != default ] \ && cmake_opts="$cmake_opts -DUSE_LFSC=$lfsc" +[ $poly != default ] \ + && cmake_opts="$cmake_opts -DUSE_POLY=$poly" [ $symfpu != default ] \ && cmake_opts="$cmake_opts -DUSE_SYMFPU=$symfpu" [ "$abc_dir" != default ] \ @@ -439,6 +451,8 @@ cmake_opts="" && cmake_opts="$cmake_opts -DKISSAT=$kissat_dir" [ "$lfsc_dir" != default ] \ && cmake_opts="$cmake_opts -DLFSC_DIR=$lfsc_dir" +[ "$poly_dir" != default ] \ + && cmake_opts="$cmake_opts -DPOLY_DIR=$poly_dir" [ "$symfpu_dir" != default ] \ && cmake_opts="$cmake_opts -DSYMFPU_DIR=$symfpu_dir" [ "$install_prefix" != default ] \ |