diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-01-08 15:27:26 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-01-08 15:27:26 -0500 |
commit | 312918e68d4410359b55258dc2b9e9cdfb21f211 (patch) | |
tree | a2c733aec7957b5b9d0a0b3bd448c5b47c5d5c3f /config | |
parent | 6991f30f87149638d05f621d72edb6483d5d83ac (diff) |
Switch license default back to BSD, and add --best and --enable-gpl options.
Diffstat (limited to 'config')
-rw-r--r-- | config/cvc4.m4 | 30 | ||||
-rw-r--r-- | config/readline.m4 | 4 |
2 files changed, 30 insertions, 4 deletions
diff --git a/config/cvc4.m4 b/config/cvc4.m4 index 4b8b2e342..7c2f6c82d 100644 --- a/config/cvc4.m4 +++ b/config/cvc4.m4 @@ -13,11 +13,37 @@ 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' ;; - -*|*=*) ;; + --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 + ;; + -*|*=*) + ;; production|production-*|debug|debug-*|competition|competition-*) # regexp `\?' not supported on Mac OS X ac_option_build=`expr "$ac_option" : '\([[^-]]*\)-\{0,1\}'` diff --git a/config/readline.m4 b/config/readline.m4 index c298f3db4..e9ce921fb 100644 --- a/config/readline.m4 +++ b/config/readline.m4 @@ -9,8 +9,8 @@ readline_compentry_func_returns_charp=0 READLINE_LIBS= if test "$with_readline" = no; then AC_MSG_RESULT([no, readline disabled by user]) -elif test "$with_readline" = check -a -n "$CVC4_BSD_LICENSED_CODE_ONLY"; then - AC_MSG_RESULT([no, user requested BSD-compatible dependences only]) +elif test "$with_readline" = check -a "$CVC4_BSD_LICENSED_CODE_ONLY" = 1; then + AC_MSG_RESULT([no, using BSD-compatible dependences only]) with_readline=no else if test "$with_readline" = check; then |