aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormarche2004-01-20 15:16:45 +0000
committermarche2004-01-20 15:16:45 +0000
commitbcf576bfce86b1ef53e465caa3a4be83f00814bd (patch)
tree2bf9ef3dc12f1b6d1097d0ea468c5305144242c4 /configure
parentf53e44b54f4bcebe64f99a51bc22266530e4ef0c (diff)
coqide utf8
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5222 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure50
1 files changed, 29 insertions, 21 deletions
diff --git a/configure b/configure
index a0c0a4d232..74cfbb05d1 100755
--- a/configure
+++ b/configure
@@ -302,32 +302,39 @@ fi
# For coqmktop
-CAMLLIB=`"$CAMLC" -v | sed -n -e 's|.*directory:* *\(.*\)$|\1|p' `
+#CAMLLIB=`"$CAMLC" -v | sed -n -e 's|.*directory:* *\(.*\)$|\1|p' `
+CAMLLIB=`"$CAMLC" -where`
# Camlp4 (greatly simplified since merged with ocaml)
CAMLP4BIN=${CAMLBIN}
-case $OS in
- Win32)
- CAMLP4LIB=+camlp4;;
- *)
- CAMLP4LIB=${CAMLLIB}/camlp4
-esac
+#case $OS in
+# Win32)
+ CAMLP4LIB=+camlp4
+# ;;
+# *)
+# CAMLP4LIB=${CAMLLIB}/camlp4
+#esac
# lablgtk2 and CoqIDE
if [ "$coqide_spec" = "no" ] ; then
-if test -x ${CAMLLIB}/lablgtk2; then
- if grep -q -w convert_with_fallback ${CAMLLIB}/lablgtk2/glib.mli; then
- COQIDE=byte
- # native threads
- if test -f ${CAMLLIB}/threads/threads.cmxa; then
+if test -x "${CAMLLIB}/lablgtk2" ; then
+ if grep -q -w convert_with_fallback "${CAMLLIB}/lablgtk2/glib.mli" ; then
+ if test -f "${CAMLLIB}/threads/threads.cmxa" ; then
+ echo "LablGtk2 found, native threads: native CoqIde will be available"
COQIDE=opt;
+ else
+ echo "LablGtk2 found, no native threads: bytecode CoqIde will be available"
+ COQIDE=byte
fi;
- else COQIDE=no;
+ else
+ echo "LablGtk2 found but too old: CoqIde will not be available"
+ COQIDE=no;
fi
else
+ echo "LablGtk2 not found: CoqIde will not be available"
COQIDE=no
fi
fi
@@ -340,7 +347,8 @@ rm config/giveostype
case $ARCH in
win32)
- STRIPCOMMAND="true";;
+ # true -> strip : it exists under cygwin !
+ STRIPCOMMAND="strip";;
*)
if [ "$coq_profile_flag" = "-p" ] ; then
STRIPCOMMAND="true"
@@ -381,12 +389,12 @@ echo ""
rm -f $COQTOP/config/Makefile
-case $ARCH in
- win32)
- BINDIR=`echo $BINDIR |sed -e 's|\\\|/|g'`
- LIBDIR=`echo $LIBDIR |sed -e 's|\\\|/|g'`
- MANDIR=`echo $MANDIR |sed -e 's|\\\|/|g'`;;
-esac
+#case $ARCH in
+# win32)
+# BINDIR=`echo $BINDIR |sed -e 's|\\\|/|g'`
+# LIBDIR=`echo $LIBDIR |sed -e 's|\\\|/|g'`
+# MANDIR=`echo $MANDIR |sed -e 's|\\\|/|g'`;;
+#esac
sed -e "s|LOCALINSTALLATION|$local|" \
-e "s|COQTOPDIRECTORY|$COQTOP|" \
@@ -462,7 +470,7 @@ PRINTF=`which printf`
# Subdirectories of theories/ added in coq_config.ml
subdirs () {
- (cd $1; find * -type d ! -name CVS -exec $PRINTF "\"%s\";\n" {} \; | grep -v extraction/test >> $mlconfig_file)
+ (cd $1; find * -type d ! -name CVS -exec $PRINTF "\"%s\";\n" {} \; | grep -v extraction/test | grep -v correctness >> $mlconfig_file)
}
echo "let theories_dirs = [" >> $mlconfig_file