2013/5/3 Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>: > Please, you have to change this to some --enable-xml-parser option via > hen ./configure, so it's not a hard dependency on libmxml. I need some help. I have conditional package checking, something like this in configure.ac: [...] dnl Dependencies PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.0]) AC_ARG_WITH([xml], AS_HELP_STRING([--with-xml-parsing], [Build with XML parsing])) AS_IF([test "x$with_xml_parsing" = "xyes"], [ PKG_CHECK_MODULES([LIBXML], [mxml >= 2.6]) ]) [...] This way, mxml is only checked if configure was run like this: $ ./configure --with-xml-parsing Then, I think I need some way to get makefiles updated, so I could do: [...] #ifdef XML_PARSING #include <mxml.h> #endif [...] I think this could be achieve with $ gcc: -DXML_PARSING [...] Running './configure --with-xml-parsing' needs to generate some variable or modify Makefile.am or Make_global.am so I can pass to gcc the -DXML_PARSING option. Please, consider this a bad explanation or even that my approach is actually wrong. Any idea? Regards -- Arturo Borrero González -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html