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.

So, does anyone want to put together a patch? If pkg-config is universal across Linux/Solaris/BSD and OS X then great. If not, then do we have to something like the code above?

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to