summaryrefslogtreecommitdiff
path: root/gphoto-m4/gp-internal-docs.m4
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2015-08-01 13:04:09 +0200
committerMarcus Meissner <marcus@jet.franken.de>2015-08-01 13:04:09 +0200
commit12db94ab3c8feb7ad3c9eef9818e689a2edcfd0c (patch)
tree7ce7caa33a060e50825d8f246f565fe70ec21afe /gphoto-m4/gp-internal-docs.m4
parent5f0ec7086a3bfaf5641cdb007736e939f07f0b70 (diff)
downloadlibgphoto2-12db94ab3c8feb7ad3c9eef9818e689a2edcfd0c.tar.gz
imported the libgphoto m4 tree
Diffstat (limited to 'gphoto-m4/gp-internal-docs.m4')
-rw-r--r--gphoto-m4/gp-internal-docs.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/gphoto-m4/gp-internal-docs.m4 b/gphoto-m4/gp-internal-docs.m4
new file mode 100644
index 000000000..8593620aa
--- /dev/null
+++ b/gphoto-m4/gp-internal-docs.m4
@@ -0,0 +1,29 @@
+dnl
+dnl
+dnl
+AC_DEFUN([GP_INTERNAL_DOCS],[dnl
+# Whether to enable the internal docs build.
+#
+# This takes quite some time due to the generation of lots of call
+# graphs, so it is disabled by default.
+set_enable_internal_docs=no
+AC_ARG_ENABLE([internal-docs], [dnl
+AS_HELP_STRING([--enable-internal-docs],
+[Build internal code docs if doxygen available])], [dnl
+dnl If either --enable-foo nor --disable-foo were given, execute this.
+ if test "x$enableval" = xno \
+ || test "x$enableval" = xoff \
+ || test "x$enableval" = xfalse;
+ then
+ set_enable_internal_docs=no
+ elif test "x$enableval" = xyes \
+ || test "x$enableval" = xon \
+ || test "x$enableval" = xtrue
+ then
+ set_enable_internal_docs=yes
+ fi
+])
+AC_MSG_CHECKING([whether to create internal code docs])
+AC_MSG_RESULT([${set_enable_internal_docs}])
+AM_CONDITIONAL([ENABLE_INTERNAL_DOCS], [test "x${set_enable_internal_docs}" = "xyes"])
+])dnl