root/trunk/config.m4

Revision 1, 1.1 kB (checked in by george, 13 years ago)

initial import

Line 
1 dnl $Id: config.m4,v 1.1.1.1 2004/02/17 23:31:43 sterling Exp $
2
3 PHP_ARG_WITH(fastxsl, for fastxsl support,
4 [  --with-fastxsl             Include fastxsl support])
5
6 if test "$PHP_FASTXSL" != "no"; then
7   SEARCH_PATH="/usr/local /usr"
8   SEARCH_FOR="/include/libxslt/xslt.h"
9   if test -r $PHP_FASTXSL/; then
10     FASTXSL_DIR=$PHP_FASTXSL
11   else
12     AC_MSG_CHECKING([for fastxsl files in default path])
13     for i in $SEARCH_PATH ; do
14       if test -r $i/$SEARCH_FOR; then
15         FASTXSL_DIR=$i
16         AC_MSG_RESULT(found in $i)
17       fi
18     done
19   fi
20  
21   if test -z "$FASTXSL_DIR"; then
22     AC_MSG_RESULT([not found])
23     AC_MSG_ERROR([Please reinstall the fastxsl distribution])
24   fi
25
26   PHP_ADD_INCLUDE($FASTXSL_DIR/include/libxml2)
27   PHP_ADD_INCLUDE($FASTXSL_DIR/include)
28
29   PHP_ADD_LIBRARY_WITH_PATH(mm,   $FASTXSL_DIR/lib, FASTXSL_SHARED_LIBADD)
30   PHP_ADD_LIBRARY_WITH_PATH(xslt, $FASTXSL_DIR/lib, FASTXSL_SHARED_LIBADD)
31   PHP_ADD_LIBRARY_WITH_PATH(xml2, $FASTXSL_DIR/lib, FASTXSL_SHARED_LIBADD)
32   AC_DEFINE(HAVE_FASTXSLLIB,1,[ ])
33   PHP_SUBST(FASTXSL_SHARED_LIBADD)
34
35   PHP_NEW_EXTENSION(fastxsl, fastxsl.c fl_hash.c, $ext_shared)
36 fi
Note: See TracBrowser for help on using the browser.