aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotin2006-09-14 16:10:47 +0000
committernotin2006-09-14 16:10:47 +0000
commita782a2cea6803087ecf7e6a5bdf4696fb8a1c2f1 (patch)
tree8f315370a9e289c2b1bdebee9ea919a1c2ce7dd2
parent6a06eabc8a035c94a42baf0b6cc27efb0f4b8ade (diff)
Bug dans configure (test best_compiler)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9139 85f007b7-540e-0410-9357-904b9bb8a0f7
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index df503badf7..de9e4405c2 100755
--- a/configure
+++ b/configure
@@ -330,7 +330,7 @@ CAMLTAG=OCAML`echo $CAMLVERSION | sed -e "s/\([1-9]\)\.\([0-9]*\).*/\1\2/g"`
# do we have a native compiler: test of ocamlopt and its version
if [ "$best_compiler" = "opt" ] ; then
- if test -e "$nativecamlc" ; then
+ if test -e `which "$nativecamlc"` ; then
CAMLOPTVERSION=`"$nativecamlc" -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
if [ "$CAMLOPTVERSION" != "$CAMLVERSION" ] ; then
echo "native and bytecode compilers do not have the same version!"; fi