]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/pango/files/gtk-doc.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / pango / files / gtk-doc.patch
1 --- pango/acinclude.m4.old      2004-05-08 11:31:48.000000000 +0100
2 +++ pango/acinclude.m4  2004-05-08 11:31:58.000000000 +0100
3 @@ -55,3 +55,56 @@
4  ])
5  
6  
7 +dnl -*- mode: autoconf -*-
8 +
9 +# serial 1
10 +
11 +dnl Usage:
12 +dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
13 +AC_DEFUN([GTK_DOC_CHECK],
14 +[
15 +  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
16 +  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
17 +  dnl for overriding the documentation installation directory
18 +  AC_ARG_WITH(html-dir,
19 +    AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
20 +    [with_html_dir='${datadir}/gtk-doc/html'])
21 +  HTML_DIR="$with_html_dir"
22 +  AC_SUBST(HTML_DIR)
23 +
24 +  dnl enable/disable documentation building
25 +  AC_ARG_ENABLE(gtk-doc,
26 +    AC_HELP_STRING([--enable-gtk-doc],
27 +                   [use gtk-doc to build documentation [default=no]]),,
28 +    enable_gtk_doc=no)
29 +
30 +  have_gtk_doc=no
31 +  if test -z "$PKG_CONFIG"; then
32 +    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
33 +  fi
34 +  if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
35 +    have_gtk_doc=yes
36 +  fi
37 +
38 +  dnl do we want to do a version check?
39 +ifelse([$1],[],,
40 +  [gtk_doc_min_version=$1
41 +  if test "$have_gtk_doc" = yes; then
42 +    AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
43 +    if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
44 +      AC_MSG_RESULT(yes)
45 +    else
46 +      AC_MSG_RESULT(no)
47 +      have_gtk_doc=no
48 +    fi
49 +  fi
50 +])
51 +  if test x$enable_gtk_doc = xyes; then
52 +    if test "$have_gtk_doc" != yes; then
53 +      enable_gtk_doc=no
54 +    fi
55 +  fi
56 +
57 +  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
58 +  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
59 +])