Browse Source

fixed zlib, no bytecode by default.

Nicolas Cannasse 20 years ago
parent
commit
b871547560
1 changed files with 7 additions and 3 deletions
  1. 7 3
      doc/install.ml

+ 7 - 3
doc/install.ml

@@ -19,11 +19,9 @@
 
 #load "unix.cma"
 
-
 (* ----- BEGIN CONFIGURATION ---- *)
 
-let zlib = "zlib.lib"
-let bytecode = true
+let bytecode = false
 let native = true
 
 (* ------ END CONFIGURATION ----- *)
@@ -31,6 +29,12 @@ let native = true
 let obj_ext = match Sys.os_type with "Win32" -> ".obj" | _ -> ".o"
 let exe_ext = match Sys.os_type with "Win32" | "Cygwin" -> ".exe" | _ -> ""
 
+let zlib = match Sys.os_type with 
+	| "Win32" -> "zlib.lib" 
+	| _ -> 
+		let osx = "/usr/lib/libz.dylib" in
+		if Sys.file_exists osx then osx else "/usr/lib/libz.so.1"
+
 let msg m =
 	prerr_endline m;
 	flush stdout