+ [ --enable-skins2 Skins2 interface module (experimental)])
+if test "${enable_skins2}" = "yes" || (test "${SYS}" != "darwin" && test "${SYS}" != "beos" && test "${enable_skins2}" != "no"); then
+
+ dnl test for the required libraries
+ skins2_missing_lib="no"
+
+ dnl freetype
+ if test "${FREETYPE_CONFIG}" != "no"; then
+ AX_ADD_CPPFLAGS([skins2],[`${FREETYPE_CONFIG} --cflags`])
+ AX_ADD_LDFLAGS([skins2],[`${FREETYPE_CONFIG} --libs`])
+ else
+ skins2_missing_lib="yes"
+ if test "${enable_skins2}" = "yes"; then
+ AC_MSG_ERROR([Could not find freetype (required for skins2)])
+ fi
+ fi
+
+ dnl iconv
+ if test "$am_cv_func_iconv" = "yes"; then
+ AX_ADD_CPPFLAGS([skins2],[${INCICONV}])
+ AX_ADD_LDFLAGS([skins2],[${LIBICONV} -lpng])
+ else
+ skins2_missing_lib="yes"
+ if test "${enable_skins2}" = "yes"; then
+ AC_MSG_ERROR([Could not find iconv (required for skins2)])
+ fi
+ fi
+
+ dnl libxml2
+ XML2_PATH="${PATH}"
+ AC_ARG_WITH(xml2-config-path,
+ [ --with-xml2-config-path=PATH xml2-config path (default search in \$PATH)],
+ [ if test "${with_xml2_config_path}" != "no"; then
+ XML2_PATH="${with_xml2_config_path}:${PATH}"
+ fi ])
+ AC_PATH_PROG(XML2_CONFIG, xml2-config, no, ${XML2_PATH})
+ if test "${XML2_CONFIG}" != "no"; then
+ AX_ADD_CPPFLAGS([skins2],[`${XML2_CONFIG} --cflags`])
+ AX_ADD_LDFLAGS([skins2],[`${XML2_CONFIG} --libs`])
+ dnl skins2 depends on the xmlTextReader extension
+ LDFLAGS="${LDFLAGS_save} ${LDFLAGS_skins2}"
+ AC_CHECK_LIB(xml2,xmlTextReaderConstName,[],[
+ skins2_missing_lib="yes"
+ AC_MSG_WARN([libxml2 missing the xmlTextReader extension, you should update your version; maybe you are missing libpng.])
+ if test "${enable_skins2}" = "yes"; then
+ AC_MSG_ERROR([libxml2 missing the xmlTextReader extension (required for skins2)])
+ fi])
+ LDFLAGS="${LDFLAGS_save}"
+ else
+ skins2_missing_lib="yes"
+ if test "${enable_skins2}" = "yes"; then
+ AC_MSG_ERROR([Could not find libxml2 (required for skins2)])
+ fi
+ fi