Don't explicitely use camlp4lib.cmxa but rely on ocamlfind to include it.
authorkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 3 Dec 2011 21:52:24 +0000 (21:52 +0000)
committerkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 3 Dec 2011 21:52:24 +0000 (21:52 +0000)
git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/xpathcomp@1183 3cdefd35-fc62-479d-8e8d-bae585ffb9ca

build
configure
myocamlbuild_config.ml.in

diff --git a/build b/build
index 1354637..ce2a599 100755 (executable)
--- a/build
+++ b/build
@@ -56,7 +56,7 @@ let tests_targets = []
 let () = Cmdline.parse ()
 let cmd_list =
   let ocamlbuild =
-    Printf.sprintf "ocamlbuild  %s %s -j %i "
+    Printf.sprintf "ocamlbuild  -byte-plugin %s %s -j %i "
       !Cmdline.verbose (String.concat " " !Cmdline.tags) !Cmdline.jobs
   in
   List.map begin function
index 6d86ab3..fafe839 100755 (executable)
--- a/configure
+++ b/configure
@@ -14,7 +14,7 @@ Conf.check_prog "ocamlbuild" "ocamlbuild -version";;
 Conf.check_prog "ocamlfind" "ocamlfind printconf";;
 Conf.check_prog "pkg-config" "pkg-config --version";;
 
-(*Conf.check_prog "libxml++-2.6" "pkg-config --exists libxml++-2.6" ;;*)
+Conf.check_prog "camlp4" "ocamlfind query camlp4";;
 Conf.check_prog "ulex" "ocamlfind query ulex";;
 Conf.check_prog "expat" "ocamlfind query expat";;
 
index d8e98c9..d0e86f6 100644 (file)
@@ -1,8 +1,8 @@
 let ocaml_inline = "1000";;
 let include_path = "include";;
 let src_path = "src";;
-let ocaml_link = [ "dynlink"; "camlp4lib" ];;
-let ocamlfind_packages = "unix,ulex,expat,camlp4";;
+let ocaml_link = [ ];;
+let ocamlfind_packages = "unix,ulex,expat,camlp4,camlp4.lib";;
 let cxx_flags = [ "-fno-PIC"; "-std=c++0x"; "-static" ];;
 let main_targets = [ "native","src/main.native";
                     "byte", "src/main.byte" ];;