source: proiecte/PPPP/gdm/m4/gnome-doc-utils.m4 @ 134

Last change on this file since 134 was 134, checked in by (none), 14 years ago

gdm sources with the modifications for webcam

File size: 1.8 KB
Line 
1dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
2dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
3AC_DEFUN([GNOME_DOC_DEFINES],
4[
5AC_ARG_WITH([help-dir],
6  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
7  [with_help_dir='${datadir}/gnome/help'])
8HELP_DIR="$with_help_dir"
9AC_SUBST(HELP_DIR)
10
11AC_ARG_WITH([omf-dir],
12  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
13  [with_omf_dir='${datadir}/omf'])
14OMF_DIR="$with_omf_dir"
15AC_SUBST(OMF_DIR)
16
17AC_ARG_WITH([help-formats],
18  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
19  [with_help_formats=''])
20DOC_USER_FORMATS="$with_help_formats"
21AC_SUBST(DOC_USER_FORMATS)
22
23AC_ARG_ENABLE([scrollkeeper],
24        [AC_HELP_STRING([--disable-scrollkeeper],
25                        [do not make updates to the scrollkeeper database])],,
26        enable_scrollkeeper=yes)
27AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
28
29dnl disable scrollkeeper automatically for distcheck
30DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
31AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
32
33AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
34])
35
36# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
37#
38AC_DEFUN([GNOME_DOC_INIT],
39[AC_REQUIRE([AC_PROG_LN_S])dnl
40
41ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
42
43AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
44PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
45        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
46
47if test "$gdu_cv_have_gdu" = "yes"; then
48        AC_MSG_RESULT([yes])
49        ifelse([$2],,[:],[$2])
50else
51        AC_MSG_RESULT([no])
52        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
53fi
54
55GNOME_DOC_DEFINES
56])
Note: See TracBrowser for help on using the repository browser.