~bruce.ma/ubuntu/precise/cheese/fix-992163-version1

« back to all changes in this revision

Viewing changes to m4/gtkdoc_jh_check_xml_catalog.m4

  • Committer: Andrew Starr-Bochicchio
  • Date: 2012-03-28 16:07:00 UTC
  • mfrom: (1.2.33)
  • Revision ID: a.starr.b@gmail.com-20120328160700-xkq9h3us4y68d1ao
Tags: 3.4.0-0ubuntu1
releasing version 3.4.0-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Checks if a particular URI appears in the XML catalog
 
2
dnl Usage:
 
3
dnl     JH_CHECK_XML_CATALOG(URI, [FRIENDLY-NAME], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
4
AC_DEFUN([JH_CHECK_XML_CATALOG],
 
5
[
 
6
        AC_REQUIRE([JH_PATH_XML_CATALOG],[JH_PATH_XML_CATALOG(,[:])])dnl
 
7
        AC_MSG_CHECKING([for ifelse([$2],,[$1],[$2]) in XML catalog])
 
8
        if $jh_found_xmlcatalog && \
 
9
                AC_RUN_LOG([$XMLCATALOG --noout "$XML_CATALOG_FILE" "$1" >&2]); then
 
10
                AC_MSG_RESULT([found])
 
11
                ifelse([$3],,,[$3])
 
12
        else
 
13
                AC_MSG_RESULT([not found])
 
14
                ifelse([$4],,[AC_MSG_ERROR([could not find ifelse([$2],,[$1],[$2]) in XML catalog])],[$4])
 
15
        fi
 
16
])