]> granicus.if.org Git - php/commitdiff
Update for Sablotron .8
authorSterling Hughes <sterling@php.net>
Thu, 17 Jan 2002 17:21:38 +0000 (17:21 +0000)
committerSterling Hughes <sterling@php.net>
Thu, 17 Jan 2002 17:21:38 +0000 (17:21 +0000)
ext/xslt/config.m4

index 00fe9fd73819bcc3e9bfa840b8cdf49f2d29ecd2..7a1db17800b40a72423cec172dfd493afa3c1e64 100644 (file)
@@ -15,6 +15,9 @@ PHP_ARG_WITH(xslt-sablot, for XSLT Sablotron backend,
 PHP_ARG_WITH(expat-dir, libexpat dir for Sablotron XSL support,
 [  --with-expat-dir=DIR      XSLT: libexpat dir for Sablotron 0.50])
 
+PHP_ARG_WITH(sablot-js, enable JavaScript for Sablotron,
+[  --with-sablot-js=DIR    Sablotron: enable JavaScript support for Sablotron])
+
 if test "$PHP_XSLT" != "no"; then
 
   PHP_EXTENSION(xslt, $ext_shared)
@@ -81,6 +84,14 @@ if test "$PHP_XSLT" != "no"; then
       AC_MSG_ERROR([iconv not found, in order to build sablotron you need the iconv library])
     fi
  
+    if test "$PHP_SABLOT_JS" != "no"; then
+      found_js=no
+      AC_CHECK_LIB(js, JS_GetRuntime, found_js=yes)
+      if test "$found_js" = "yes"; then
+        PHP_ADD_LIBRARY(js)
+      fi
+    fi
+
     AC_DEFINE(HAVE_SABLOT_BACKEND, 1, [ ])
     if test "$found_expat" = "yes"; then
      old_LIBS=$LIBS