author | Hermitifier <quantifier666@gmail.com> |
Mon, 03 Oct 2011 17:06:18 +0200 | |
changeset 622 | 2fd864a27f9b |
parent 537 | bdc5234550d2 |
child 629 | 5ed754060736 |
permissions | -rw-r--r-- |
537
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
1 |
# Included so you can build without gtk-doc if it's not installed. |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
2 |
dnl Usage: |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
3 |
dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
4 |
AC_DEFUN([GTK_DOC_CHECK], |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
5 |
[ |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
6 |
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
7 |
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
8 |
dnl for overriding the documentation installation directory |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
9 |
AC_ARG_WITH([html-dir], |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
10 |
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
11 |
[with_html_dir='${datadir}/gtk-doc/html']) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
12 |
HTML_DIR="$with_html_dir" |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
13 |
AC_SUBST([HTML_DIR]) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
14 |
|
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
15 |
dnl enable/disable documentation building |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
16 |
AC_ARG_ENABLE([gtk-doc], |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
17 |
AS_HELP_STRING([--enable-gtk-doc], |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
18 |
[use gtk-doc to build documentation [[default=no]]]),, |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
19 |
[enable_gtk_doc=no]) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
20 |
|
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
21 |
if test x$enable_gtk_doc = xyes; then |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
22 |
ifelse([$1],[], |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
23 |
[PKG_CHECK_EXISTS([gtk-doc],, |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
24 |
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
25 |
[PKG_CHECK_EXISTS([gtk-doc >= $1],, |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
26 |
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))]) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
27 |
fi |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
28 |
|
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
29 |
AC_MSG_CHECKING([whether to build gtk-doc documentation]) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
30 |
AC_MSG_RESULT($enable_gtk_doc) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
31 |
|
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
32 |
AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
33 |
|
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
34 |
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
35 |
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) |
bdc5234550d2
Added support for Dolt in the build process.
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
36 |
]) |