diff m4/libxml.m4 @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/m4/libxml.m4	Sat Feb 20 21:18:28 2010 -0800
     1.3 @@ -0,0 +1,31 @@
     1.4 +###############################################################################
     1.5 +## $Id: libxml.m4,v 1.1 2003/09/17 23:25:51 hipnod Exp $
     1.6 +###############################################################################
     1.7 +
     1.8 +AC_DEFUN([GIFT_GNUTELLA_CHECK_LIBXML],[
     1.9 +   #
    1.10 +   # Check on the user's PATH if no path was specified in OPT_LIBXML,
    1.11 +   # when the user has passed --with-libxml without a directory,
    1.12 +   # or check the directory if one was supplied.
    1.13 +   #
    1.14 +   if test x"$OPT_LIBXML" = xyes; then 
    1.15 +      AC_PATH_PROG(XML2_CONFIG, xml2-config, [no])
    1.16 +   else
    1.17 +      XMLPATH="$OPT_LIBXML/bin"
    1.18 +      AC_PATH_PROG(XML2_CONFIG, xml2-config, [no], [$XMLPATH])
    1.19 +   fi
    1.20 +
    1.21 +   if test x"$XML2_CONFIG" != xno; then
    1.22 +      LIBXML2_CFLAGS=`$XML2_CONFIG --cflags`
    1.23 +      LIBXML2_LIBS=`$XML2_CONFIG --libs`
    1.24 +
    1.25 +      AC_SUBST(LIBXML2_CFLAGS) 
    1.26 +      AC_SUBST(LIBXML2_LIBS) 
    1.27 +      AC_DEFINE(USE_LIBXML2) 
    1.28 +   else
    1.29 +      AC_MSG_ERROR([
    1.30 +Couldn't run ${OPT_LIBXML}/bin/xml2-config
    1.31 +
    1.32 +])
    1.33 +   fi
    1.34 +])