diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-01-08 15:32:59 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-01-08 15:32:59 -0500 |
commit | e6fb65b8a960db1e4a21d7414f3270f03a474384 (patch) | |
tree | 78c4c7ead119c05fe8f03a808679bac560b47ee0 /config/cvc4.m4 | |
parent | 9e376ab6c826c951a0c9e1bf3d07a902249b34fd (diff) | |
parent | 312918e68d4410359b55258dc2b9e9cdfb21f211 (diff) |
Merge branch '1.3.x'
Conflicts:
COPYING
NEWS
config/cvc4.m4
Diffstat (limited to 'config/cvc4.m4')
-rw-r--r-- | config/cvc4.m4 | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/config/cvc4.m4 b/config/cvc4.m4 index 87d984ab4..40e2054e6 100644 --- a/config/cvc4.m4 +++ b/config/cvc4.m4 @@ -13,12 +13,40 @@ dnl _AS_ME_PREPARE AC_DEFUN([CVC4_REWRITE_ARGS_FOR_BUILD_PROFILE], [m4_divert_push([PARSE_ARGS])dnl +CVC4_BSD_LICENSED_CODE_ONLY=1 + +m4_divert_once([HELP_ENABLE], [[ +Licensing and performance options: + --bsd disable all GPL dependences (default) + --enable-gpl permit GPL dependences, if available + --best turn on dependences known to give best performance]])dnl + handle_option() { ac_option="$[]1" case $ac_option in - --bsd) ac_option='CVC4_BSD_LICENSED_CODE_ONLY=1' ;; - -enable-proofs | --enable-proofs) ac_option='--enable-proof' ;; - -*|*=*) ;; + --bsd|--disable-gpl|CVC4_BSD_LICENSED_CODE_ONLY=1) + if test "$CVC4_LICENSE_OPTION" = gpl; then AC_ERROR([cannot give both --bsd and --enable-gpl]); fi + CVC4_LICENSE_OPTION=bsd + ac_option="CVC4_BSD_LICENSED_CODE_ONLY=1" + eval $ac_option + ;; + --enable-gpl|--gpl|CVC4_BSD_LICENSED_CODE_ONLY=0) + if test "$CVC4_LICENSE_OPTION" = bsd; then AC_ERROR([cannot give both --bsd and --enable-gpl]); fi + CVC4_LICENSE_OPTION=gpl + ac_option="CVC4_BSD_LICENSED_CODE_ONLY=0" + eval $ac_option + ;; + --best) + # set the best configuration + handle_option --with-readline + handle_option --with-cln + return + ;; + -enable-proofs|--enable-proofs) + ac_option='--enable-proof' + ;; + -*|*=*) + ;; production|production-*|debug|debug-*|competition|competition-*) # regexp `\?' not supported on Mac OS X ac_option_build=`expr "$ac_option" : '\([[^-]]*\)-\{0,1\}'` |