[dev] Re: [cvs] commit: framework/Text_Diff Diff.php package.xml

Jon Parise jon at horde.org
Mon Mar 15 23:27:12 PST 2004


On Mon, Mar 15, 2004 at 11:24:47PM -0800, Jon Parise wrote:

> jon         2004/03/15 23:24:47 PST
> 
>   Modified files:
>     Text_Diff            Diff.php package.xml 
>   Log:
>   Adding xdiff support and releasing version 0.0.2 (alpha) of this package.

If you want to build the xdiff package under FreeBSD (and possible
some other platforms), you'll need to attached patch (already sent to
the xdiff maintainer).

-- 
Jon Parise (jon at horde.org) :: The Horde Project (http://horde.org/)
-------------- next part --------------
Index: config.m4
===================================================================
RCS file: /repository/pecl/xdiff/config.m4,v
retrieving revision 1.2
diff -u -r1.2 config.m4
--- config.m4	8 Feb 2004 10:49:25 -0000	1.2
+++ config.m4	16 Mar 2004 06:23:02 -0000
@@ -28,6 +28,11 @@
 
   PHP_ADD_INCLUDE($XDIFF_DIR/include)
 
+  EXTRA_LIBS="-lm"
+  AC_CHECK_LIB(dl, dlopen, [
+    EXTRA_LIBS="$EXTRA_LIBS -ldl"
+  ])
+
   LIBNAME=xdiff 
   LIBSYMBOL=xdl_diff
 
@@ -38,7 +43,7 @@
   ],[
     AC_MSG_ERROR([wrong xdiff lib version or lib not found])
   ],[
-    -L$XDIFF_DIR/lib -lm -ldl
+    -L$XDIFF_DIR/lib $EXTRA_LIBS
   ])
   PHP_SUBST(XDIFF_SHARED_LIBADD)
 


More information about the dev mailing list