summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2012-03-23 13:04:07 +0000
committerMatthew Booth <mbooth@redhat.com>2012-03-28 20:04:20 +0100
commitb0ebf37a9498320b8876aa0c3d3a432af5639165 (patch)
tree1e3234e28c38e14e319d3cd0e78b7fddefdb1b24 /configure.ac
parent4d0aa08b000743cb523792d0824f2514e2e45ffa (diff)
downloadlibguestfs-b0ebf37a9498320b8876aa0c3d3a432af5639165.tar.gz
libguestfs-b0ebf37a9498320b8876aa0c3d3a432af5639165.tar.xz
libguestfs-b0ebf37a9498320b8876aa0c3d3a432af5639165.zip
gobject: Add infrastructure to build gtk-doc
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index eefa75cd..a16e9a6b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1086,9 +1086,20 @@ AS_IF(
],
[AC_MSG_WARN([gobject library not found, gobject binding will be disabled])]
)
+
+ PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.26.0],
+ [
+ AC_SUBST([GIO_CFLAGS])
+ AC_SUBST([GIO_LIBS])
+ AC_DEFINE([HAVE_GIO],[1],
+ [gio library found at compile time.])
+ ],
+ [AC_MSG_WARN([gio library not found, gobject binding will be disabled])]
+ )
]
)
-AM_CONDITIONAL([HAVE_GOBJECT],[test "x$GOBJECT_LIBS" != "x"])
+AM_CONDITIONAL([HAVE_GOBJECT],
+ [test "x$GOBJECT_LIBS" != "x" -a "x$GIO_LIBS" != "x"])
AC_CHECK_PROG([GJS],[gjs],[gjs])
AS_IF(
@@ -1112,6 +1123,13 @@ m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
])
+# check for gtk-doc
+m4_ifdef([GTK_DOC_CHECK], [
+GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
+],[
+AM_CONDITIONAL([ENABLE_GTK_DOC], false)
+])
+
dnl Library versioning.
MAX_PROC_NR=`cat $srcdir/src/MAX_PROC_NR`
AC_SUBST(MAX_PROC_NR)
@@ -1151,6 +1169,8 @@ AC_CONFIG_FILES([Makefile
gnulib/lib/Makefile
gnulib/tests/Makefile
gobject/Makefile
+ gobject/docs/Makefile
+ gobject/docs/guestfs-docs.sgml
haskell/Makefile
inspector/Makefile
java/Makefile