*** pgsql/configure.in 2006/12/14 21:49:54 1.492 --- pgsql/configure.in 2006/12/21 16:05:12 1.493 *************** *** 1,5 **** dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.491 2006/12/02 16:43:12 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl --- 1,5 ---- dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.492 2006/12/14 21:49:54 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl *************** PGAC_ARG_BOOL(with, libedit-preferred, n *** 532,537 **** --- 532,544 ---- # + # XML + # + PGAC_ARG_BOOL(with, libxml, no, [ --with-libxml build with XML support], + [AC_DEFINE([USE_LIBXML], 1, [Define to 1 to build with XML support. (--with-libxml)])]) + + + # # Zlib # PGAC_ARG_BOOL(with, zlib, yes, *************** if test "$with_pam" = yes ; then *** 716,721 **** --- 723,732 ---- AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])]) fi + if test "$with_libxml" = yes ; then + AC_CHECK_LIB(xml2, xmlInitParser, [], [AC_MSG_ERROR([library 'xml2' is required for XML support])]) + fi + ## ## Header files *************** if test "$with_pam" = yes ; then *** 791,796 **** --- 802,811 ---- [AC_MSG_ERROR([header file or is required for PAM.])])]) fi + if test "$with_libxml" = yes ; then + AC_CHECK_HEADER(libxml/parser.h, [], [AC_MSG_ERROR([header file is required for XML support])]) + fi + if test "$with_ldap" = yes ; then if test "$PORTNAME" != "win32"; then AC_CHECK_HEADERS(ldap.h, [],