Commits

camlspotter committed bff6368

configure

Comments (0)

Files changed (3)

 PACKAGE_VERSION=$(VERSION)
 
 OCAMLMKLIB=ocamlmklib
-OCAMLMKLIB_EXISTS = $(CheckProg $(OCAMLMKLIB))
-if $(not $(OCAMLMKLIB_EXISTS))
-   eprintln(This project requires ocamlmklib, but is was not found.)
-   exit 1
 
 ##################################################### Auto configuration
 
   # Variables must be initialized inside .STATIC, if they should be
   # exported out.
 
+  if $(not $(OCAMLFIND_EXISTS))
+     eprintln(This project requires ocamlfind\, but is was not found.)
+     eprintln(You need to install ocamlfind and run "omake --configure".)
+     exit 1
+
+  OCAMLMKLIB_EXISTS = $(CheckProg $(OCAMLMKLIB))
+  if $(not $(OCAMLMKLIB_EXISTS))
+     eprintln(This project requires ocamlmklib, but is was not found.)
+     eprintln(You need to install ocamlmklib and run "omake --configure".)
+     exit 1
+
   CFLAGS = $(addprefix -I , $(INCLUDES))
 
   WORD_SIZE = $(Word_size)
   ConfReplaceConfigH(config.h)
 
 .SUBDIRS: src test examples
+
 
 USE_OCAMLFIND = true
 
-if $(not $(OCAMLFIND_EXISTS))
-   eprintln(This project requires ocamlfind\, but is was not found.)
-   eprintln(You need to install ocamlfind and run "omake --configure".)
-   exit 1
-
 OCAML_WHERE = $(shell ocamlc -where)
 
 ##################################################################### configure
     value 8
 
 Check_ocamlfind_package_compilation(package, module) =
-    ConfMsgChecking(Checking $(package) compilability: open $(module))
+    ConfMsgChecking($(package) compilability: open $(module))
     tmp_ml = $(file $(tmpfile omake, .ml))
     tmp = $(file $(replacesuffixes .ml, $"$(EMPTY)", $(tmp_ml)))
     command[] = $(OCamlC) -c -package $(package) $(tmp_ml)
     $(glob i, *.cmxa) \
     $(glob i, *.a) \
     $(glob i, *.so)
-