New version 0.9.3. Added dump_hv, dump_av functions to Data::Dumper.
[perl4caml.git] / Makefile.config
index 69129b9..09b89f6 100644 (file)
@@ -1,5 +1,5 @@
 # perl4caml configuration -*- Makefile -*-
-# $Id: Makefile.config,v 1.5 2003-10-14 16:46:13 rich Exp $
+# $Id: Makefile.config,v 1.25 2005-03-31 13:46:31 rich Exp $
 
 # PERLINCDIR
 # Directory containing the Perl include files, eg. <EXTERN.h>.
@@ -7,11 +7,39 @@
 PERLINCDIR := $(shell perl -MConfig -e 'print "$$Config{archlib}/CORE"')
 
 # OCAMLLIBDIR
-# This is where we will install perl4caml.
+# This is where we will install perl4caml (actually in the /perl subdirectory
+# of this, so you will need to add '-I +perl' when compiling programs).
 
 OCAMLLIBDIR := $(shell ocamlc -where)
 
+# EXTRA_CFLAGS
+# You can specify extra flags to be passed to gcc here.
+#
+# One flag you might want to pass here is
+#
+#   -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
+#
+# which will turn on experimental support for reference counting.
+# Without this none of the Perl structures that you allocate will get
+# freed.  With this we try to map Perl's reference counting onto
+# OCaml's garbage collection by using finalizers.  Although the
+# feature is marked "EXPERIMENTAL", I have fixed most of the bugs
+# and it's now turned on by default.
+
+#EXTRA_CFLAGS :=
+EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
+#EXTRA_CFLAGS := -I/Users/rich/OCaml/lib/ocaml/std-lib
+#EXTRA_CFLAGS := -g
+
+# DYNALOADER_HACK
+# XXX Hack required by ocamlopt, and sometimes ocamlc.
+# To work out what this should be, try:
+# `perl -MExtUtils::Embed -e ldopts'
+
+DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
+#DYNALOADER_HACK := /System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
+
 # PACKAGE and VERSION
 
 PACKAGE := perl4caml
-VERSION := 0.3.1
+VERSION := 0.9.3