+AC_SUBST(LIBUNGIF_LIBS,"")
+AC_CHECK_HEADERS(gif_lib.h,
+ AC_CHECK_LIB(ungif,DGifOpen,
+ [AC_DEFINE(HAVE_LIBUNGIF,1,[Define if you have libgif/libungif including devel headers])
+ LIBUNGIF_LIBS="-lungif"],
+ [AC_CHECK_LIB(gif,DGifOpen,
+ [AC_DEFINE(HAVE_LIUNBGIF,1)
+ LIBUNGIF_LIBS="-lgif"])]))
+
+TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
+
+# ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
+# and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
+AC_LANG_RESTORE
+