]> granicus.if.org Git - php/commitdiff
Added linking files to make build compatible with RH 7.2's updated libxslt
authorJoseph Tate <jtate@php.net>
Fri, 8 Mar 2002 18:56:00 +0000 (18:56 +0000)
committerJoseph Tate <jtate@php.net>
Fri, 8 Mar 2002 18:56:00 +0000 (18:56 +0000)
packages.  Should not break when compiling with older versions.  This may
fix bug #15942 as well.
Configure was giving a Warning message without these lines when --with-xslt was
specified.

ext/domxml/config.m4

index bcd959645f10523a30e3a36898d68e684639488d..938591055762a427364777c8c065877c5dae6d94 100644 (file)
@@ -132,6 +132,19 @@ if test "$PHP_DOM_XSLT" != "no"; then
     AC_MSG_ERROR(DOMXSLT requires DOMXML. Use --with-dom=<DIR>)
   fi
   
+  if test -f $DOMXML_DIR/lib/libxml2.a -o -f $DOMXML_DIR/lib/libxml2.$SHLIB_SUFFIX_NAME ; then
+    DOM_LIBNAME=xml2
+  else
+    DOM_LIBNAME=xml
+  fi
+
+  PHP_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD)
+  PHP_ADD_INCLUDE($DOMXML_DIR/include$DOMXML_DIR_ADD)
+
+  if test -f $DOMXML_DIR/lib/libxsltbreakpoint.a -o -f $DOMXML_DIR/lib/libxsltbreakpoint.$SHLIB_SUFFIX_NAME ; then
+    PHP_ADD_LIBRARY_WITH_PATH(xsltbreakpoint, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD)
+  fi
+
   AC_DEFINE(HAVE_DOMXSLT,1,[ ])
   
   PHP_SUBST(DOMXML_SHARED_LIBADD)