Check build parameters of at runtime

I am writing a simple application that links to libxml2 on the system. It works for almost all users, but one user reported this error when reading a particular xml file from the web:

Unsupported encoding ISO8859-1

This error typically indicates that libxml2 was built --without-iconv. Is there any way I can explicitly test if the libxml2 dynamic library on the system has iconv support?

Source: gcc

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.