27
27
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
28
28
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
29
29
dnl for overriding the documentation installation directory
31
AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
30
AC_ARG_WITH([html-dir],
31
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
32
32
[with_html_dir='${datadir}/gtk-doc/html'])
33
33
HTML_DIR="$with_html_dir"
36
36
dnl enable/disable documentation building
37
AC_ARG_ENABLE(gtk-doc,
38
AC_HELP_STRING([--enable-gtk-doc],
39
[use gtk-doc to build documentation [default=no]]),,
37
AC_ARG_ENABLE([gtk-doc],
38
AS_HELP_STRING([--enable-gtk-doc],
39
[use gtk-doc to build documentation [[default=no]]]),,
43
42
if test x$enable_gtk_doc = xyes; then
44
if test -z "$PKG_CONFIG"; then
45
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
47
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
51
dnl do we want to do a version check?
53
[gtk_doc_min_version=$1
54
if test "$have_gtk_doc" = yes; then
55
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
56
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
64
if test "$have_gtk_doc" != yes; then
44
[PKG_CHECK_EXISTS([gtk-doc],,
45
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
46
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
47
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
69
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
70
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
50
AC_MSG_CHECKING([whether to build gtk-doc documentation])
51
AC_MSG_RESULT($enable_gtk_doc)
53
AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
55
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
56
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
73
59
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-