~bcurtiswx/ubuntu/precise/empathy/3.4.2.1-0ubuntu1

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-03-05 15:14:36 UTC
  • mfrom: (1.1.87)
  • Revision ID: package-import@ubuntu.com-20120305151436-utnrdabb2ppp3kw1
Tags: 3.3.90.2-0ubuntu1
* New upstream release
* debian/control
  - added yelp-tools and libfarstream-0.1-dev build depends
  - bump build depends on libtelepathy-farstream-dev, and 
    libtelepathy-glib-dev
  - bumpded depends for telepathy-mission-control-5
  - removed telepathy-butterfly recommends, mission-control-5 ensures 
    telepathy-haze handles MSN now.
* debian/rules
  - enable empathy-av 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1571
1571
  rm -f conf.glibtest
1572
1572
])
1573
1573
 
 
1574
AC_DEFUN([YELP_HELP_INIT],
 
1575
[
 
1576
AC_REQUIRE([AC_PROG_LN_S])
 
1577
m4_pattern_allow([AM_V_at])
 
1578
m4_pattern_allow([AM_V_GEN])
 
1579
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
 
1580
AC_ARG_WITH([help-dir],
 
1581
            AC_HELP_STRING([--with-help-dir=DIR],
 
1582
                           [path where help files are installed]),,
 
1583
            [with_help_dir='${datadir}/help'])
 
1584
HELP_DIR="$with_help_dir"
 
1585
AC_SUBST(HELP_DIR)
 
1586
 
 
1587
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
 
1588
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
 
1589
if test x"$ITSTOOL" = x; then
 
1590
  AC_MSG_ERROR([itstool not found])
 
1591
fi
 
1592
 
 
1593
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
 
1594
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
 
1595
if test x"$XMLLINT" = x; then
 
1596
  AC_MSG_ERROR([xmllint not found])
 
1597
fi
 
1598
 
 
1599
YELP_HELP_RULES='
 
1600
HELP_ID ?=
 
1601
HELP_POT ?=
 
1602
HELP_FILES ?=
 
1603
HELP_EXTRA ?=
 
1604
HELP_MEDIA ?=
 
1605
HELP_LINGUAS ?=
 
1606
 
 
1607
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
 
1608
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
 
1609
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
 
1610
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
 
1611
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
 
1612
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
 
1613
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
 
1614
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
 
1615
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
 
1616
 
 
1617
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
 
1618
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
 
1619
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
 
1620
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
 
1621
_HELP_LC_VERBOSE_0 = @echo "  GEN    "$(dir [$]@);
 
1622
 
 
1623
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
 
1624
 
 
1625
.PHONY: pot
 
1626
pot: $(_HELP_POTFILE)
 
1627
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
 
1628
        $(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
 
1629
 
 
1630
.PHONY: repo
 
1631
repo: $(_HELP_POTFILE)
 
1632
        $(AM_V_at)for po in $(_HELP_POFILES); do \
 
1633
          if test "x[$](_HELP_V)" = "x0"; then echo "  GEN    $${po}"; fi; \
 
1634
          msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
 
1635
        done
 
1636
 
 
1637
$(_HELP_POFILES):
 
1638
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1639
        $(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi
 
1640
        $(AM_V_GEN)if ! test -f "[$]@"; then \
 
1641
          (cd "$(dir [$]@)" && \
 
1642
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
1643
            mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \
 
1644
        else \
 
1645
          (cd "$(dir [$]@)" && \
 
1646
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
1647
            msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \
 
1648
            rm "$(notdir [$]@).tmp"); \
 
1649
        fi
 
1650
 
 
1651
$(_HELP_MOFILES): %.mo: %.po
 
1652
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1653
        $(AM_V_GEN)msgfmt -o "[$]@" "$<"
 
1654
 
 
1655
$(_HELP_LC_FILES): $(_HELP_LINGUAS)
 
1656
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
 
1657
$(_HELP_LC_STAMPS): %.stamp: %.mo
 
1658
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
 
1659
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1660
        $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
 
1661
        mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \
 
1662
        if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
 
1663
        (cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
 
1664
        touch "[$]@"
 
1665
 
 
1666
.PHONY: clean-help
 
1667
mostlyclean-am: $(if $(HELP_ID),clean-help)
 
1668
clean-help:
 
1669
        rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
 
1670
 
 
1671
EXTRA_DIST ?=
 
1672
EXTRA_DIST += $(_HELP_LC_STAMPS) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_POFILES)
 
1673
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(_HELP_LINGUAS),$(wildcard $(lc)/$(f))))
 
1674
 
 
1675
distdir: distdir-help-files
 
1676
distdir-help-files:
 
1677
        @for lc in C $(HELP_LINGUAS); do \
 
1678
          $(MKDIR_P) "$(distdir)/$$lc"; \
 
1679
          for file in $(HELP_FILES); do \
 
1680
            if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
 
1681
            cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \
 
1682
          done; \
 
1683
        done; \
 
1684
 
 
1685
.PHONY: check-help
 
1686
check: check-help
 
1687
check-help:
 
1688
        for lc in C $(_HELP_LINGUAS); do \
 
1689
          if test -d "$$lc"; \
 
1690
            then d=; \
 
1691
            xmlpath="$$lc"; \
 
1692
          else \
 
1693
            d="$(srcdir)/"; \
 
1694
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
1695
          fi; \
 
1696
          for page in $(HELP_FILES); do \
 
1697
            echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
 
1698
            $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
 
1699
          done; \
 
1700
        done
 
1701
 
 
1702
 
 
1703
.PHONY: install-help
 
1704
install-data-am: $(if $(HELP_ID),install-help)
 
1705
install-help:
 
1706
        @for lc in C $(_HELP_LINGUAS); do \
 
1707
          $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
 
1708
        done
 
1709
        @for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
 
1710
          if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1711
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1712
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
 
1713
          echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \
 
1714
          $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \
 
1715
        done; done
 
1716
        @for f in $(_HELP_C_EXTRA); do \
 
1717
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
1718
          if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1719
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1720
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
 
1721
          echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
 
1722
          $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
 
1723
        done
 
1724
        @for f in $(HELP_MEDIA); do \
 
1725
          for lc in C $(_HELP_LINGUAS); do \
 
1726
            if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1727
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1728
            mdir=`dirname "$$f"`; \
 
1729
            if test "x$mdir" = "x."; then mdir=""; fi; \
 
1730
            if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
 
1731
            if test -f "$$d$$lc/$$f"; then \
 
1732
              echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
 
1733
              $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
 
1734
            elif test "x$$lc" != "xC"; then \
 
1735
              echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
 
1736
              $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
 
1737
            fi; \
 
1738
          done; \
 
1739
        done
 
1740
 
 
1741
.PHONY: uninstall-help
 
1742
uninstall-am: $(if $(HELP_ID),uninstall-help)
 
1743
uninstall-help:
 
1744
        for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
 
1745
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1746
          echo "rm -f $$helpdir`basename $$f`"; \
 
1747
          rm -f "$$helpdir`basename $$f`"; \
 
1748
        done; done
 
1749
        @for f in $(_HELP_C_EXTRA); do \
 
1750
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
1751
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1752
          echo "rm -f $$helpdir`basename $$f`"; \
 
1753
          rm -f "$$helpdir`basename $$f`"; \
 
1754
        done
 
1755
        @for f in $(HELP_MEDIA); do \
 
1756
          for lc in C $(_HELP_LINGUAS); do \
 
1757
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1758
            echo "rm -f $$helpdir$$f"; \
 
1759
            rm -f "$$helpdir$$f"; \
 
1760
          done; \
 
1761
        done;
 
1762
'
 
1763
AC_SUBST([YELP_HELP_RULES])
 
1764
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
 
1765
])
 
1766
 
1574
1767
m4_include([m4/as-compiler-flag.m4])
1575
 
m4_include([m4/ax_config_dir.m4])
1576
1768
m4_include([m4/empathy-args.m4])
1577
1769
m4_include([m4/empathy-valgrind.m4])
1578
1770
m4_include([m4/gettext.m4])
1579
 
m4_include([m4/gnome-doc-utils.m4])
1580
1771
m4_include([m4/gsettings.m4])
1581
1772
m4_include([m4/iconv.m4])
1582
1773
m4_include([m4/intlmacosx.m4])