diff options
author | Damon Chaplin <damon@src.gnome.org> | 2001-05-20 00:24:07 +0000 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-05-20 00:24:07 +0000 |
commit | 75350bb0046fb8fb60731bcdd252bcc590711476 (patch) | |
tree | f2f88202db9cced61d1a3c4c2f89236f657fa2f0 /examples | |
parent | 76fc6f9376120f9635384166c79738f6a62477d5 (diff) | |
download | gtk-doc-75350bb0046fb8fb60731bcdd252bcc590711476.tar.gz |
added configure.in back
Diffstat (limited to 'examples')
-rw-r--r-- | examples/configure.in | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/configure.in b/examples/configure.in new file mode 100644 index 0000000..70d0219 --- /dev/null +++ b/examples/configure.in @@ -0,0 +1,50 @@ + +# This is a check for gtk-doc which you can insert into your configure.in. +# You shouldn't need to change it at all. + + +################################################## +# Check for gtk-doc. +################################################## + +AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ]) + +if test "x$with_html_dir" = "x" ; then + HTML_DIR='${datadir}/gtk-doc/html' +else + HTML_DIR=$with_html_dir +fi + +AC_SUBST(HTML_DIR) + +AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false) + +gtk_doc_min_version=0.6 +if $GTKDOC ; then + gtk_doc_version=`gtkdoc-mkdb --version` + AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version]) + if perl <<EOF ; then + exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) && + ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1); +EOF + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + GTKDOC=false + fi +fi + +dnl Let people disable the gtk-doc stuff. +AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto) + +if test x$enable_gtk_doc = xauto ; then + if test x$GTKDOC = xtrue ; then + enable_gtk_doc=yes + else + enable_gtk_doc=no + fi +fi + +AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) + + |