more hints on Z3 configuration;
authorwenzelm
Wed, 21 Sep 2011 16:04:29 +0200
changeset 45025 33a1af99b3a2
parent 45024 77c3e74bd954
child 45026 5c0b0d67f9b1
more hints on Z3 configuration;
src/HOL/Tools/SMT/smt_setup_solvers.ML
--- a/src/HOL/Tools/SMT/smt_setup_solvers.ML	Wed Sep 21 15:08:15 2011 +0200
+++ b/src/HOL/Tools/SMT/smt_setup_solvers.ML	Wed Sep 21 16:04:29 2011 +0200
@@ -125,9 +125,10 @@
       error ("The SMT solver Z3 may only be used for non-commercial " ^
         "applications.")
   | Z3_Non_Commercial_Unknown =>
-      error ("The SMT solver Z3 is not activated. To activate it, set " ^
-        "the environment variable " ^ quote flagN ^ " to " ^ quote ("yes") ^
-        "."))
+      error ("The SMT solver Z3 is not activated. To activate it, set\n" ^
+        "the environment variable " ^ quote flagN ^ " to " ^ quote "yes" ^ "." ^
+        (if getenv "Z3_COMPONENT" = "" then ""
+         else "\nSee also " ^ Path.print (Path.expand (Path.explode "$Z3_COMPONENT/etc/settings")))))
 
 end