aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorglondu2008-10-28 18:43:16 +0000
committerglondu2008-10-28 18:43:16 +0000
commitaa77afa9d828d0bbb5d6fd5faf2e971b515a19fd (patch)
tree3d7c44f018987d0048b1bcc4e87f88ac806e110b /configure
parent578f31889234edba078e14f4152421123c1bc466 (diff)
Native "Declare ML Module" when possible
Dynlink.add_{interfaces,available_units} are deprecated and not implemented natively. Currently, native "Declare ML Module" doesn't work because of this. Dynlink-related should be switched to the API introduced in OCaml 3.07. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11518 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index d4483fd9db..624f6cf1bc 100755
--- a/configure
+++ b/configure
@@ -455,6 +455,13 @@ if [ "$coq_debug_flag" = "-g" ]; then
esac
fi
+# Native dynlink
+if test -f `"$CAMLC" -where`/dynlink.cmxa; then
+ HASNATDYNLINK=true
+else
+ HASNATDYNLINK=false
+fi
+
# Camlp4 / Camlp5 configuration
if [ "$camlp5dir" != "" ]; then
@@ -900,6 +907,7 @@ let camlp4 = "$CAMLP4"
let camlp4lib = "$ESCCAMLP4LIB"
let best = "$best_compiler"
let arch = "$ARCH"
+let has_natdynlink = $HASNATDYNLINK
let osdeplibs = "$OSDEPLIBS"
let version = "$VERSION"
let date = "$DATE"
@@ -985,6 +993,7 @@ sed -e "s|LOCALINSTALLATION|$local|" \
-e "s|COQIDEOPT|$COQIDE|" \
-e "s|CHECKEDOUTSOURCETREE|$checkedout|" \
-e "s|WITHDOCOPT|$with_doc|" \
+ -e "s|HASNATIVEDYNLINK|$HASNATDYNLINK|" \
"$COQSRC/config/Makefile.template" > "$COQSRC/config/Makefile"
chmod a-w "$COQSRC/config/Makefile"