You're right - using pkg-config, not xml2-config, is the BCP. Any Unix system with a libxml from the last few years should have this.

David

On Dec 13, 2008, at 5:46 AM, Felipe Contreras wrote:

2008/12/13 Todd Fisher <todd.fis...@gmail.com>:
I think it's best to check for both... something like this would be ideal
if pkg_config('libxml-2.0')
elsif find_executable('xml2-config')
  $CFLAGS << " #{`xml2-config --cflags`.strip}"
  $LIBS << " #{`xml2-config --libs`.strip}"
elsif !have_library('xml2') or !have_header('libxml/parser.h')
   fail "missing dependencies"
end

I don't see why libraries still insist on legacy config scripts since
pretty much everyone uses pkg-config and it makes things so much
easier.
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to