aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auto.def14
1 files changed, 8 insertions, 6 deletions
diff --git a/auto.def b/auto.def
index b52d047..cf4ba69 100644
--- a/auto.def
+++ b/auto.def
@@ -254,12 +254,14 @@ dict set extdb info {
proc check-metakit {} {
set found 0
msg-checking "Checking for Metakit..."
- if {[cctest -lang c++ -includes mk4.h -libs -lmk4 -code {c4_Storage dummy();}]} {
- msg-result ok
- define lib_mk -lmk4
- incr found
- } else {
- msg-result "not found"
+ cc-with {-lang c++} {
+ if {[cctest -includes mk4.h -libs -lmk4 -code {c4_Storage dummy();}]} {
+ msg-result ok
+ define lib_mk -lmk4
+ incr found
+ } else {
+ msg-result "not found"
+ }
}
return $found
}