fi
done
+dnl Enable type annotation files (always, there's no penalty for doing
+dnl this). Use C-c C-t in emacs to print the type of an expression.
+OCAMLCFLAGS="-dtypes -g"
+OCAMLOPTFLAGS=""
+
+dnl Enable profiling support for native code.
+AC_ARG_ENABLE([profiling],
+ [AS_HELP_STRING([--enable-profiling],
+ [enable profiling for native code])],
+ [OCAMLOPTFLAGS="$OCAMLOPTFLAGS -p"])
+
+AC_SUBST(OCAMLCFLAGS)
+AC_SUBST(OCAMLOPTFLAGS)
+
dnl Summary.
echo "------------------------------------------------------------"
echo "Thanks for downloading" $PACKAGE_STRING
OCAMLCPACKAGES += -package gettext-stub
endif
-OBJS := diskzip_gettext.cmo diskzip.cmo
+OBJS := diskzip_gettext.cmo diskzip_bitmap.cmo diskzip.cmo
XOBJS := $(OBJS:.cmo=.cmx)
SYNTAX := -pp "camlp4o -I`ocamlc -where`/bitmatch pa_bitmatch.cmo"
-OCAMLCFLAGS := -g -w s $(SYNTAX)
+OCAMLCFLAGS := @OCAMLCFLAGS@ $(SYNTAX)
#OCAMLCLIBS := -linkpkg diskimage.cma
OCAMLCLIBS := -linkpkg bitmatch.cma diskimage.cma
OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
-OCAMLOPTFLAGS := -w s $(SYNTAX)
+OCAMLOPTFLAGS := @OCAMLOPTFLAGS@ $(SYNTAX)
#OCAMLOPTLIBS := -linkpkg diskimage.cmxa
OCAMLOPTLIBS := -linkpkg bitmatch.cmxa diskimage.cmxa
SYNTAX := -pp "camlp4o -I`ocamlc -where`/bitmatch pa_bitmatch.cmo"
-OCAMLCFLAGS := -g -w s -dtypes $(SYNTAX)
+OCAMLCFLAGS := @OCAMLCFLAGS@ $(SYNTAX)
#OCAMLCLIBS := -linkpkg
OCAMLCLIBS := -linkpkg bitmatch.cma
OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
-OCAMLOPTFLAGS := -w s $(SYNTAX)
+OCAMLOPTFLAGS := @OCAMLOPTFLAGS@ $(SYNTAX)
#OCAMLOPTLIBS := $(OCAMLCLIBS)
OCAMLOPTLIBS := -linkpkg bitmatch.cmxa
#----------------------------------------------------------------------
-OCAMLCFLAGS := -g -w s
+OCAMLCFLAGS := @OCAMLCFLAGS@
#OCAMLCLIBS := -linkpkg diskimage.cma
OCAMLCLIBS := -linkpkg bitmatch.cma diskimage.cma
OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
-OCAMLOPTFLAGS := -w s
+OCAMLOPTFLAGS := @OCAMLOPTFLAGS@
#OCAMLOPTLIBS := -linkpkg diskimage.cmxa
OCAMLOPTLIBS := -linkpkg bitmatch.cmxa diskimage.cmxa