summaryrefslogtreecommitdiff
path: root/common/m4/gst-plugin-docs.m4
blob: 0ccc64b197d1aa97e7d798f8bdc5c8152b74848a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl AG_GST_PLUGIN_DOCS([MINIMUM-GTK-DOC-VERSION],[MINIMUM-PYTHON-VERSION])
dnl 
dnl checks for prerequisites for the common/mangle-tmpl.py script
dnl used when building the plugin documentation

AC_DEFUN([AG_GST_PLUGIN_DOCS],
[
  AC_BEFORE([GTK_DOC_CHECK],[$0])dnl check for gtk-doc first
  AC_BEFORE([AS_PATH_PYTHON],[$1])dnl find python first

  build_plugin_docs=no
  have_pygst=no
  PKG_CHECK_MODULES(PYDOCSTUFF, [ gst-python-0.10 ], [have_pygst=yes],
  				 [have_pygst=no])
  AC_MSG_CHECKING([whether to build plugin documentation])
  if test x$enable_gtk_doc = xyes -a x$have_pygst = xyes; then
    build_plugin_docs=yes
    AC_MSG_RESULT([yes])
  else
    AC_MSG_RESULT([no (gtk-doc/pygst disabled or not available)])
  fi

  AM_CONDITIONAL(ENABLE_PLUGIN_DOCS, test x$build_plugin_docs = xyes)
])