IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6831


Ignore:
Timestamp:
Apr 11, 2006, 1:57:52 PM (20 years ago)
Author:
desonia
Message:

added check for libxml2 version to be 2.6.0 or greater.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r6800 r6831  
    251251    [AC_MSG_ERROR([GNOME XML C parser is required.  Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])])
    252252
     253AC_MSG_CHECKING([xml2 version])
     254XML_VERSION=`xml2-config --version`
     255XML_VERSION_major=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+).*|\1|'`
     256XML_VERSION_minor=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+)\.(\d+).*|\2|'`
     257dnl First test the minimum version of 2.6
     258if test $XML_VERSION_major -lt 2 || ( test $XML_VERSION_major -eq 2 && test $XML_VERSION_minor -lt 6 )
     259then
     260        AC_MSG_ERROR([requires libxml2 2.6.0 or greater, found $XML_VERSION.  Install newer version or use --with-xml2-config to specify another location.])
     261else
     262    AC_MSG_RESULT([$XML_VERSION... yes])
     263fi
     264
    253265AC_MSG_CHECKING([xml2 cflags])
    254266XML_CFLAGS="`${XML_CONFIG} --cflags`"
     
    309321dnl ------- restore CFLAGS / LDFLAGS (tests done) --------
    310322CFLAGS="${CFLAGS} -Wall -Werror"
    311 AC_MSG_RESULT([CFLAGS is ${CFLAGS}])
    312 AC_MSG_RESULT([LDFLAGS is ${LDFLAGS}])
    313323
    314324dnl ---------------- export variables --------------------
Note: See TracChangeset for help on using the changeset viewer.