Changeset 1746


Ignore:
Timestamp:
08/11/11 14:50:29 (7 months ago)
Author:
Freddie Akeroyd
Message:

Fix libxml2 reference on RHEL5. Refs #300

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1743 r1746  
    366366AC_SUBST(SHARED_EXT) 
    367367 
    368 AC_CHECK_LIB(xml2, [xml_parse_file, xmlParseFile]) 
    369 if test "x$ac_cv_lib_xml2_xml_parse_file__xmlParseFile" = xyes; then 
     368AC_CHECK_LIB(xml2, [xmlParseFile]) 
     369if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then 
    370370    LIBXML2_CFLAGS='`xml2-config --cflags`' 
    371     HAVE_LIBXML2="yes" 
     371    LIBXML2_MESSAGE="yes" 
    372372else 
    373373    LIBXML2_CFLAGS='' 
    374     HAVE_LIBXML2="no (will not build NXsummary or NXtranslate)" 
     374    LIBXML2_MESSAGE="no (will not build NXsummary or NXtranslate)" 
    375375fi 
    376376AC_SUBST(LIBXML2_CFLAGS) 
     
    555555        done 
    556556    done 
     557    for i in $HDF5SEARCH; do 
     558        for j in lib lib64; do 
     559            if test -z "$H5ROOT" -a -r ${i}/$j/libhdf5.a; then H5ROOT=$i; fi 
     560        done 
     561    done 
    557562    if test -z "$H5ROOT"; then  
    558563        AC_MSG_RESULT(unknown) 
     
    652657AC_CHECK_LIB(mfhdf, SDcreate) 
    653658AC_CHECK_LIB(hdf5, H5open) 
    654 AC_CHECK_LIB(xml2, xmlParseDocument) 
    655659AC_CHECK_LIB(termcap, tputs) 
    656660AC_CHECK_LIB(readline, readline) 
     
    718722AM_CONDITIONAL(HAVE_HDF5, [test ! -z "$H5ROOT"]) 
    719723AM_CONDITIONAL(HAVE_XML, [test ! -z "$MXMLROOT"]) 
    720 AM_CONDITIONAL(HAVE_LIBXML2, [ test "$ac_cv_lib_xml2_xmlParseDocument" = "yes" ]) 
     724AM_CONDITIONAL(HAVE_LIBXML2, [ test "$ac_cv_lib_xml2_xmlParseFile" = "yes" ]) 
    721725dnl AM_CONDITIONAL(HAVE_LIBMXMLPLUS, [ test "$ac_cv_lib_mxmlplus__ZN4MXML4NodeD2Ev" = "yes" ]) 
    722726AM_CONDITIONAL(HAVE_DOCBOOK, [test ! -z "$DOCBOOK2TXT" -a ! -z "$DOCBOOK2PDF"]) 
     
    903907        application tools: 
    904908             ant:              ${ANT_PROG} 
    905              libxml2:          ${HAVE_LIBXML2} 
     909             libxml2:          ${LIBXML2_MESSAGE} 
    906910             readline:         ${HAVE_READLINE} 
    907911 
Note: See TracChangeset for help on using the changeset viewer.