aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ml
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2017-09-29 12:25:11 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2017-11-23 19:22:06 +0100
commit6b88c2d18e6aba570c73aa22299abe1fa3f19039 (patch)
tree6211b8c0cd422c62e86be8c362ba158b2a5d3bf5 /configure.ml
parent92c15a9b660b874ce3fa125b1f9bdf2e85c40f47 (diff)
Surrounding a few places printing file names with quotes when a space occurs.
Diffstat (limited to 'configure.ml')
-rw-r--r--configure.ml14
1 files changed, 8 insertions, 6 deletions
diff --git a/configure.ml b/configure.ml
index 86f6b7fe3..1ccb69106 100644
--- a/configure.ml
+++ b/configure.ml
@@ -973,6 +973,8 @@ let config_runtime () =
let vmbyteflags = config_runtime ()
+let esc s = if String.contains s ' ' then "\"" ^ s ^ "\"" else s
+
(** * Summary of the configuration *)
let print_summary () =
@@ -985,16 +987,16 @@ let print_summary () =
pr " Other bytecode link flags : %s\n" custom_flag;
pr " OS dependent libraries : %s\n" osdeplibs;
pr " OCaml version : %s\n" caml_version;
- pr " OCaml binaries in : %s\n" camlbin;
- pr " OCaml library in : %s\n" camllib;
+ pr " OCaml binaries in : %s\n" (esc camlbin);
+ pr " OCaml library in : %s\n" (esc camllib);
pr " OCaml flambda flags : %s\n" (String.concat " " !Prefs.flambda_flags);
pr " %s version : %s\n" capitalized_camlpX camlpX_version;
- pr " %s binaries in : %s\n" capitalized_camlpX camlpXbindir;
- pr " %s library in : %s\n" capitalized_camlpX camlpXlibdir;
+ pr " %s binaries in : %s\n" capitalized_camlpX (esc camlpXbindir);
+ pr " %s library in : %s\n" capitalized_camlpX (esc camlpXlibdir);
if best_compiler = "opt" then
pr " Native dynamic link support : %B\n" hasnatdynlink;
if coqide <> "no" then
- pr " Lablgtk2 library in : %s\n" !lablgtkdir;
+ pr " Lablgtk2 library in : %s\n" (esc !lablgtkdir);
if !idearchdef = "QUARTZ" then
pr " Mac OS integration is on\n";
pr " CoqIde : %s\n" coqide;
@@ -1009,7 +1011,7 @@ let print_summary () =
else
(pr " Paths for true installation:\n";
List.iter
- (fun (_,msg,dir,_) -> pr " - %s will be copied in %s\n" msg dir)
+ (fun (_,msg,dir,_) -> pr " - %s will be copied in %s\n" msg (esc dir))
install_dirs);
pr "\n";
pr "If anything is wrong above, please restart './configure'.\n\n";