--- xmlsec.orig/config.m4 2006-10-17 16:40:34.000000000 +0400 +++ xmlsec/config.m4 2007-12-03 14:53:17.000000000 +0300 @@ -2,21 +2,25 @@ dnl $Id: config.m4,v 1.7 2005/12/04 00:20:52 tony2001 Exp $ dnl -PHP_ARG_ENABLE(xmlsec, whether to enable XMLSec support, -[ --enable-xmlsec Enable XMLSec support], no) +PHP_ARG_WITH(xmlsec, whether to enable XMLSec support, +[ --with-xmlsec Enable XMLSec support], no) if test "$PHP_XMLSEC" != "no"; then if test "$PHP_LIBXML" = "no"; then AC_MSG_ERROR([XMLSec extension requires LIBXML extension, add --enable-libxml]) fi - for i in $PHP_XMLSEC /usr/local /usr; do + for i in "$PHP_XMLSEC" /usr/local /usr; do if test -x "$i/bin/xmlsec1-config"; then - XMLSEC_CONFIG=$i/bin/xmlsec1-config + XMLSEC_CONFIG="$i/bin/xmlsec1-config" break fi done + if -z "$XMLSEC_CONFIG"; then + AC_MSG_ERROR([Can't find xmlsec1 library installation]) + fi + XMLSEC_LIBS=`$XMLSEC_CONFIG --libs` XMLSEC_INCS=`$XMLSEC_CONFIG --cflags` PHP_EVAL_LIBLINE($XMLSEC_LIBS, XMLSEC_SHARED_LIBADD)