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 35 36 37 38 39 40
|
#opendocument_pkgs="$gsf_req redland >= 1.0.10 rasqal >= 0.9.17"
opendocument_pkgs="$gsf_req"
opendocument_optional_pkgs="redland >= 1.0.10 rasqal >= 0.9.17"
opendocument_deps="no"
if test "$enable_opendocument" != ""; then
PKG_CHECK_EXISTS([ $opendocument_pkgs ],
[
opendocument_deps="yes"
], [
test "$enable_opendocument" = "auto" && AC_MSG_WARN([opendocument plugin: dependencies not satisfied - $opendocument_pkgs])
])
PKG_CHECK_EXISTS([ $opendocument_optional_pkgs ],
[ opendocument_pkgs="$opendocument_pkgs $opendocument_optional_pkgs" ])
fi
if test "$enable_opendocument" = "yes" || \
test "$opendocument_deps" = "yes"; then
PKG_CHECK_MODULES(OPENDOCUMENT,[ $opendocument_pkgs ])
test "$enable_opendocument" = "auto" && PLUGINS="$PLUGINS opendocument"
OPENDOCUMENT_CFLAGS="$OPENDOCUMENT_CFLAGS "'${PLUGIN_CFLAGS}'
OPENDOCUMENT_LIBS="$OPENDOCUMENT_LIBS "'${PLUGIN_LIBS} -lz'
if test "$enable_opendocument_builtin" = "yes"; then
OPENDOCUMENT_CFLAGS="$OPENDOCUMENT_CFLAGS -DABI_PLUGIN_BUILTIN"
fi
fi
AC_SUBST([OPENDOCUMENT_CFLAGS])
AC_SUBST([OPENDOCUMENT_LIBS])
|