~ubuntu-branches/debian/sid/cheese/sid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-04-02 21:39:33 UTC
  • mfrom: (1.5.1) (15.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20140402213933-r0w3gna0pv7q7085
Tags: 3.12.0-1
* New upstream release.
* Revert changes done in 3.10.1-3
  - i.e. lower gnome-desktop build-dependency again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1391
1391
AS_VAR_IF([$1], [""], [$5], [$4])dnl
1392
1392
])# PKG_CHECK_VAR
1393
1393
 
 
1394
# appdata-xml.m4
 
1395
#
 
1396
# serial 4
 
1397
 
 
1398
dnl APPDATA_XML
 
1399
dnl Installs and validates AppData XML files.
 
1400
dnl
 
1401
dnl Call APPDATA_XML in configure.ac to check for the appdata-validate tool.
 
1402
dnl Add @APPDATA_XML_RULES@ to a Makefile.am to substitute the make rules. Add
 
1403
dnl .appdata.xml files to appdata_XML in Makefile.am and they will be validated
 
1404
dnl at make check time, if appdata-validate is installed, as well as installed
 
1405
dnl to the correct location automatically. Add --enable-appdata-validate to
 
1406
dnl DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when
 
1407
dnl doing a distcheck.
 
1408
dnl
 
1409
dnl Adding files to appdata_XML does not distribute them automatically.
 
1410
 
 
1411
AC_DEFUN([APPDATA_XML],
 
1412
[
 
1413
  m4_pattern_allow([AM_V_GEN])
 
1414
  AC_ARG_ENABLE([appdata-validate],
 
1415
                [AS_HELP_STRING([--disable-appdata-validate],
 
1416
                                [Disable validating AppData XML files during check phase])])
 
1417
 
 
1418
  AS_IF([test "x$enable_appdata_validate" != "xno"],
 
1419
        [AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate])
 
1420
         AS_IF([test "x$APPDATA_VALIDATE" = "x"],
 
1421
               [have_appdata_validate=no],
 
1422
               [have_appdata_validate=yes
 
1423
                AC_SUBST([APPDATA_VALIDATE])])],
 
1424
        [have_appdata_validate=no])
 
1425
 
 
1426
  AS_IF([test "x$have_appdata_validate" != "xno"],
 
1427
        [appdata_validate=yes],
 
1428
        [appdata_validate=no
 
1429
         AS_IF([test "x$enable_appdata_validate" = "xyes"],
 
1430
               [AC_MSG_ERROR([AppData validation was requested but appdata-validate was not found])])])
 
1431
 
 
1432
  AC_SUBST([appdataxmldir], [${datadir}/appdata])
 
1433
 
 
1434
  APPDATA_XML_RULES='
 
1435
.PHONY : uninstall-appdata-xml install-appdata-xml clean-appdata-xml
 
1436
 
 
1437
mostlyclean-am: clean-appdata-xml
 
1438
 
 
1439
%.appdata.valid: %.appdata.xml
 
1440
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \
 
1441
                if test -n "$(APPDATA_VALIDATE)"; \
 
1442
                        then $(APPDATA_VALIDATE) --nonet $${d}$<; fi \
 
1443
                && touch [$]@
 
1444
 
 
1445
check-am: $(appdata_XML:.appdata.xml=.appdata.valid)
 
1446
uninstall-am: uninstall-appdata-xml
 
1447
install-data-am: install-appdata-xml
 
1448
 
 
1449
.SECONDARY: $(appdata_XML)
 
1450
 
 
1451
install-appdata-xml: $(appdata_XML)
 
1452
        @$(NORMAL_INSTALL)
 
1453
        if test -n "$^"; then \
 
1454
                test -z "$(appdataxmldir)" || $(MKDIR_P) "$(DESTDIR)$(appdataxmldir)"; \
 
1455
                $(INSTALL_DATA) $^ "$(DESTDIR)$(appdataxmldir)"; \
 
1456
        fi
 
1457
 
 
1458
uninstall-appdata-xml:
 
1459
        @$(NORMAL_UNINSTALL)
 
1460
        @list='\''$(appdata_XML)'\''; test -n "$(appdataxmldir)" || list=; \
 
1461
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
1462
        test -n "$$files" || exit 0; \
 
1463
        echo " ( cd '\''$(DESTDIR)$(appdataxmldir)'\'' && rm -f" $$files ")"; \
 
1464
        cd "$(DESTDIR)$(appdataxmldir)" && rm -f $$files
 
1465
 
 
1466
clean-appdata-xml:
 
1467
        rm -f $(appdata_XML:.appdata.xml=.appdata.valid)
 
1468
'
 
1469
  _APPDATA_XML_SUBST(APPDATA_XML_RULES)
 
1470
])
 
1471
 
 
1472
dnl _APPDATA_XML_SUBST(VARIABLE)
 
1473
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
1474
AC_DEFUN([_APPDATA_XML_SUBST],
 
1475
[
 
1476
AC_SUBST([$1])
 
1477
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
1478
]
 
1479
)
 
1480
 
1394
1481
# gnome-common.m4
1395
1482
#
1396
1483
# serial 3
1467
1554
    dnl ******************************
1468
1555
 
1469
1556
    AC_ARG_ENABLE(compile-warnings, 
1470
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
1557
                  AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
1471
1558
                                 [Turn on compiler warnings]),,
1472
1559
                  [enable_compile_warnings="m4_default([$1],[yes])"])
1473
1560
 
1512
1599
    minimum)
1513
1600
        warning_flags="-Wall"
1514
1601
        ;;
1515
 
    yes)
1516
 
        warning_flags="$base_warn_flags $base_error_flags $additional_flags"
1517
 
        ;;
1518
 
    maximum|error)
 
1602
    yes|maximum|error)
1519
1603
        warning_flags="$base_warn_flags $base_error_flags $additional_flags"
1520
1604
        ;;
1521
1605
    *)
1549
1633
    AC_MSG_RESULT($tested_warning_flags)
1550
1634
 
1551
1635
    AC_ARG_ENABLE(iso-c,
1552
 
                  AC_HELP_STRING([--enable-iso-c],
 
1636
                  AS_HELP_STRING([--enable-iso-c],
1553
1637
                                 [Try to warn if code is not ISO C ]),,
1554
1638
                  [enable_iso_c=no])
1555
1639
 
1577
1661
 
1578
1662
AC_DEFUN([GNOME_CXX_WARNINGS],[
1579
1663
  AC_ARG_ENABLE(cxx-warnings,
1580
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
1664
                AS_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
1581
1665
                               [Turn on compiler warnings.]),,
1582
1666
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
1583
1667
 
1603
1687
  AC_MSG_RESULT($warnCXXFLAGS)
1604
1688
 
1605
1689
   AC_ARG_ENABLE(iso-cxx,
1606
 
                 AC_HELP_STRING([--enable-iso-cxx],
 
1690
                 AS_HELP_STRING([--enable-iso-cxx],
1607
1691
                                [Try to warn if code is not ISO C++ ]),,
1608
1692
                 [enable_iso_cxx=no])
1609
1693
 
1667
1751
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
1668
1752
 
1669
1753
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
1670
 
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
 
1754
        $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
1671
1755
 
1672
1756
all-am: $(gsettings_SCHEMAS:.xml=.valid)
1673
1757
uninstall-am: uninstall-gsettings-schemas
1718
1802
m4_pattern_allow([AM_V_at])
1719
1803
m4_pattern_allow([AM_V_GEN])
1720
1804
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
 
1805
 
 
1806
YELP_LC_MEDIA_LINKS=true
 
1807
YELP_LC_DIST=true
 
1808
 
 
1809
for yelpopt in [$1]; do
 
1810
  case $yelpopt in
 
1811
    lc-media-links)    YELP_LC_MEDIA_LINKS=true ;;
 
1812
    no-lc-media-links) YELP_LC_MEDIA_LINKS= ;;
 
1813
    lc-dist)           YELP_LC_DIST=true ;;
 
1814
    no-lc-dist)        YELP_LC_DIST= ;;
 
1815
    *) AC_MSG_ERROR([Unrecognized [YELP_HELP_INIT] option $yelpopt"]) ;;
 
1816
  esac
 
1817
done;
 
1818
AC_SUBST([YELP_LC_MEDIA_LINKS])
 
1819
AC_SUBST([YELP_LC_DIST])
 
1820
 
1721
1821
AC_ARG_WITH([help-dir],
1722
 
            AC_HELP_STRING([--with-help-dir=DIR],
 
1822
            AS_HELP_STRING([--with-help-dir=DIR],
1723
1823
                           [path where help files are installed]),,
1724
1824
            [with_help_dir='${datadir}/help'])
1725
1825
HELP_DIR="$with_help_dir"
1812
1912
 
1813
1913
EXTRA_DIST ?=
1814
1914
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
1815
 
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)
 
1915
EXTRA_DIST += $(if $(YELP_LC_DIST),$(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp))
1816
1916
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
1817
1917
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
1818
1918
 
1819
1919
distdir: distdir-help-files
1820
1920
distdir-help-files:
1821
 
        @for lc in C $(HELP_LINGUAS); do \
 
1921
        @for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \
1822
1922
          $(MKDIR_P) "$(distdir)/$$lc"; \
1823
1923
          for file in $(HELP_FILES); do \
1824
1924
            if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
1876
1976
              echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
1877
1977
              $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
1878
1978
            elif test "x$$lc" != "xC"; then \
1879
 
              echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
1880
 
              $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
 
1979
              if test "x$(YELP_LC_MEDIA_LINKS)" != "x"; then \
 
1980
                echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
 
1981
                $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
 
1982
              fi; \
1881
1983
            fi; \
1882
1984
          done; \
1883
1985
        done