From 87b9f636f602e6067314ac994777e54307a72a65 Mon Sep 17 00:00:00 2001 From: letouzey Date: Fri, 5 Oct 2012 13:35:43 +0000 Subject: Repair the configure after Hugo's last "repair" ;-) Ok, I wasn't aware of the funny behavior of cd in presence of $CDPATH. But the last "repair" was worse, trying to write into non-existing file theories/config/coq_config.ml Things should be better now: * no more Coq_config.theories_dirs at all, since it was completely unused :-) * concerning Coq_config.plugins_dirs, we list them without any "cd" into plugins, hence keeping the "plugins/" part in their paths, and adapt accordingly the only use (!) of plugins_dirs, in coq_makefile Please run ./configure again after upgrading to this commit git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15860 85f007b7-540e-0410-9357-904b9bb8a0f7 --- config/coq_config.mli | 1 - configure | 12 +----------- tools/coq_makefile.ml | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/config/coq_config.mli b/config/coq_config.mli index 2f8ea5a41..f2861f12a 100644 --- a/config/coq_config.mli +++ b/config/coq_config.mli @@ -49,7 +49,6 @@ val compile_date : string (* compile date *) val vo_magic_number : int val state_magic_number : int -val theories_dirs : string list val plugins_dirs : string list val exec_extension : string (* "" under Unix, ".exe" under MS-windows *) diff --git a/configure b/configure index 25acccb8a..9a002198d 100755 --- a/configure +++ b/configure @@ -1030,18 +1030,8 @@ let localwwwrefman = "file:/" ^ docdir ^ "html/refman" END_OF_COQ_CONFIG -# Subdirectories of theories/ added in coq_config.ml -# Note: don't propagate output of cd if any: it's verbose when CDPATH is defined -subdirs () { - (cd $1; find * \( -name .svn -prune \) -o \( -type d -exec printf "\"%s\";\n" {} \; \) >> "$mlconfig_file") -} - -echo "let theories_dirs = [" >> "$mlconfig_file" -subdirs theories -echo "]" >> "$mlconfig_file" - echo "let plugins_dirs = [" >> "$mlconfig_file" -subdirs plugins +find plugins/* \( -name .svn -prune \) -o \( -type d -exec printf "\"%s\";\n" {} \; \) >> "$mlconfig_file" echo "]" >> "$mlconfig_file" chmod a-w "$mlconfig_file" diff --git a/tools/coq_makefile.ml b/tools/coq_makefile.ml index 5329352c2..3b2c63b0f 100644 --- a/tools/coq_makefile.ml +++ b/tools/coq_makefile.ml @@ -408,7 +408,7 @@ let variables is_install opt (args,defs) = -I $(COQLIB)proofs -I $(COQLIB)tactics -I $(COQLIB)tools \\ -I $(COQLIB)toplevel -I $(COQLIB)grammar"; List.iter (fun c -> print " \\ - -I $(COQLIB)plugins/"; print c) Coq_config.plugins_dirs; print "\n"; + -I $(COQLIB)/"; print c) Coq_config.plugins_dirs; print "\n"; print "ZFLAGS=$(OCAMLLIBS) $(COQSRCLIBS) -I $(CAMLP4LIB)\n\n"; print "CAMLC?=$(OCAMLC) -c -rectypes\n"; print "CAMLOPTC?=$(OCAMLOPT) -c -rectypes\n"; -- cgit v1.2.3