annotate m4/libxml.m4 @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
rev   line source
paulo@0 1 ###############################################################################
paulo@0 2 ## $Id: libxml.m4,v 1.1 2003/09/17 23:25:51 hipnod Exp $
paulo@0 3 ###############################################################################
paulo@0 4
paulo@0 5 AC_DEFUN([GIFT_GNUTELLA_CHECK_LIBXML],[
paulo@0 6 #
paulo@0 7 # Check on the user's PATH if no path was specified in OPT_LIBXML,
paulo@0 8 # when the user has passed --with-libxml without a directory,
paulo@0 9 # or check the directory if one was supplied.
paulo@0 10 #
paulo@0 11 if test x"$OPT_LIBXML" = xyes; then
paulo@0 12 AC_PATH_PROG(XML2_CONFIG, xml2-config, [no])
paulo@0 13 else
paulo@0 14 XMLPATH="$OPT_LIBXML/bin"
paulo@0 15 AC_PATH_PROG(XML2_CONFIG, xml2-config, [no], [$XMLPATH])
paulo@0 16 fi
paulo@0 17
paulo@0 18 if test x"$XML2_CONFIG" != xno; then
paulo@0 19 LIBXML2_CFLAGS=`$XML2_CONFIG --cflags`
paulo@0 20 LIBXML2_LIBS=`$XML2_CONFIG --libs`
paulo@0 21
paulo@0 22 AC_SUBST(LIBXML2_CFLAGS)
paulo@0 23 AC_SUBST(LIBXML2_LIBS)
paulo@0 24 AC_DEFINE(USE_LIBXML2)
paulo@0 25 else
paulo@0 26 AC_MSG_ERROR([
paulo@0 27 Couldn't run ${OPT_LIBXML}/bin/xml2-config
paulo@0 28
paulo@0 29 ])
paulo@0 30 fi
paulo@0 31 ])