1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
wpg_pkgs="libwpg-0.3 $gsf_req"
wpg_deps="no"
if test "$enable_wpg" != ""; then
PKG_CHECK_EXISTS([ $wpg_pkgs ],
[
wpg_deps="yes"
], [
test "$enable_wpg" = "auto" && AC_MSG_WARN([wpg plugin: dependencies not satisfied - $wpg_pkgs])
])
fi
if test "$enable_wpg" = "yes" || \
test "$wpg_deps" = "yes"; then
if test "$enable_wpg_builtin" = "yes"; then
AC_MSG_ERROR([wpg plugin: static linking not supported])
fi
PKG_CHECK_MODULES(WPG, [ $wpg_pkgs ])
test "$enable_wpg" = "auto" && PLUGINS="$PLUGINS wpg"
WPG_CFLAGS="$WPG_CFLAGS "'${PLUGIN_CFLAGS}'
WPG_LIBS="$WPG_LIBS "'${PLUGIN_LIBS}'
fi
AC_SUBST([WPG_CFLAGS])
AC_SUBST([WPG_LIBS])
|