~ubuntu-branches/ubuntu/wily/swell-foop/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2015-05-19 14:54:40 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20150519145440-5gvlqn2aijuq2xzw
Tags: 1:3.16.1-1
* New upstream release.
* Switch build-dependency from appdata-tools to appstream-util

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.15 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
4
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
20
20
If you have problems, you may need to regenerate the build system entirely.
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
 
23
# appstream-xml.m4
 
24
#
 
25
# serial 6
 
26
 
 
27
dnl APPSTREAM_XML
 
28
dnl Installs and validates AppData XML files.
 
29
dnl
 
30
dnl Call APPSTREAM_XML in configure.ac to check for the appstream-util tool.
 
31
dnl Add @APPSTREAM_XML_RULES@ to a Makefile.am to substitute the make rules. Add
 
32
dnl .appdata.xml files to appstream_XML in Makefile.am and they will be validated
 
33
dnl at make check time, if appstream-util is installed, as well as installed
 
34
dnl to the correct location automatically. Add --enable-appstream-util to
 
35
dnl DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when
 
36
dnl doing a distcheck.
 
37
dnl
 
38
dnl Adding files to appstream_XML does not distribute them automatically.
 
39
 
 
40
AC_DEFUN([APPSTREAM_XML],
 
41
[
 
42
  m4_pattern_allow([AM_V_GEN])
 
43
  AC_ARG_ENABLE([appstream-util],
 
44
                [AS_HELP_STRING([--disable-appstream-util],
 
45
                                [Disable validating AppData XML files during check phase])])
 
46
 
 
47
  AS_IF([test "x$enable_appstream_validate" != "xno"],
 
48
        [AC_PATH_PROG([APPSTREAM_UTIL], [appstream-util])
 
49
         AS_IF([test "x$APPSTREAM_UTIL" = "x"],
 
50
               [have_appstream_validate=no],
 
51
               [have_appstream_validate=yes
 
52
                AC_SUBST([APPSTREAM_UTIL])])],
 
53
        [have_appstream_validate=no])
 
54
 
 
55
  AS_IF([test "x$have_appstream_validate" != "xno"],
 
56
        [appstream_validate=yes],
 
57
        [appstream_validate=no
 
58
         AS_IF([test "x$enable_appstream_validate" = "xyes"],
 
59
               [AC_MSG_ERROR([AppData validation was requested but appstream-util was not found])])])
 
60
 
 
61
  AC_SUBST([appstreamxmldir], [${datadir}/appdata])
 
62
 
 
63
  APPSTREAM_XML_RULES='
 
64
.PHONY : uninstall-appstream-xml install-appstream-xml clean-appstream-xml
 
65
 
 
66
mostlyclean-am: clean-appstream-xml
 
67
 
 
68
%.appdata.valid: %.appdata.xml
 
69
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \
 
70
                if test -n "$(APPSTREAM_UTIL)"; \
 
71
                        then $(APPSTREAM_UTIL) --nonet validate $${d}$<; fi \
 
72
                && touch [$]@
 
73
 
 
74
check-am: $(appstream_XML:.appdata.xml=.appdata.valid)
 
75
uninstall-am: uninstall-appstream-xml
 
76
install-data-am: install-appstream-xml
 
77
 
 
78
.SECONDARY: $(appstream_XML)
 
79
 
 
80
install-appstream-xml: $(appstream_XML)
 
81
        @$(NORMAL_INSTALL)
 
82
        if test -n "$^"; then \
 
83
                test -z "$(appstreamxmldir)" || $(MKDIR_P) "$(DESTDIR)$(appstreamxmldir)"; \
 
84
                $(INSTALL_DATA) $^ "$(DESTDIR)$(appstreamxmldir)"; \
 
85
        fi
 
86
 
 
87
uninstall-appstream-xml:
 
88
        @$(NORMAL_UNINSTALL)
 
89
        @list='\''$(appstream_XML)'\''; test -n "$(appstreamxmldir)" || list=; \
 
90
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
91
        test -n "$$files" || exit 0; \
 
92
        echo " ( cd '\''$(DESTDIR)$(appstreamxmldir)'\'' && rm -f" $$files ")"; \
 
93
        cd "$(DESTDIR)$(appstreamxmldir)" && rm -f $$files
 
94
 
 
95
clean-appstream-xml:
 
96
        rm -f $(appstream_XML:.appdata.xml=.appdata.valid)
 
97
'
 
98
  _APPSTREAM_XML_SUBST(APPSTREAM_XML_RULES)
 
99
])
 
100
 
 
101
dnl _APPSTREAM_XML_SUBST(VARIABLE)
 
102
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
103
AC_DEFUN([_APPSTREAM_XML_SUBST],
 
104
[
 
105
AC_SUBST([$1])
 
106
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
107
]
 
108
)
 
109
 
 
110
# gnome-common.m4
 
111
#
 
112
# serial 3
 
113
 
114
 
 
115
dnl GNOME_COMMON_INIT
 
116
 
 
117
AU_DEFUN([GNOME_COMMON_INIT],
 
118
[
 
119
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
120
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
121
 
 
122
  dnl ensure that when the Automake generated makefile calls aclocal,
 
123
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
124
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
125
  if test -n "$ac_macro_dir"; then
 
126
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
 
127
  fi
 
128
 
 
129
  AC_SUBST([ACLOCAL_AMFLAGS])
 
130
],
 
131
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
132
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
133
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
134
 
 
135
AU_DEFUN([GNOME_DEBUG_CHECK],
 
136
[
 
137
        AX_CHECK_ENABLE_DEBUG([no],[GNOME_ENABLE_DEBUG])
 
138
],
 
139
[[$0: This macro is deprecated. You should use AX_CHECK_ENABLE_DEBUG instead and
 
140
replace uses of GNOME_ENABLE_DEBUG with ENABLE_DEBUG.
 
141
See: http://www.gnu.org/software/autoconf-archive/ax_check_enable_debug.html#ax_check_enable_debug]])
 
142
 
 
143
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
144
dnl define DISABLE_DEPRECATED
 
145
dnl
 
146
AU_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
147
[
 
148
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
149
 
 
150
        DISABLE_DEPRECATED=""
 
151
        if test $USE_MAINTAINER_MODE = yes; then
 
152
                DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
 
153
                for DOMAIN in $DOMAINS; do
 
154
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
155
                done
 
156
        fi
 
157
 
 
158
        AC_SUBST(DISABLE_DEPRECATED)
 
159
],
 
160
[[$0: This macro is deprecated. All of the modules it disables deprecations for
 
161
are obsolete. Remove it and all uses of DISABLE_DEPRECATED.]])
 
162
 
 
163
dnl GLIB_GSETTINGS
 
164
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
165
dnl the schema should be compiled
 
166
dnl
 
167
 
 
168
AC_DEFUN([GLIB_GSETTINGS],
 
169
[
 
170
  m4_pattern_allow([AM_V_GEN])
 
171
  AC_ARG_ENABLE(schemas-compile,
 
172
                AS_HELP_STRING([--disable-schemas-compile],
 
173
                               [Disable regeneration of gschemas.compiled on install]),
 
174
                [case ${enableval} in
 
175
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
176
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
177
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
178
                 esac])
 
179
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
180
  PKG_PROG_PKG_CONFIG([0.16])
 
181
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
182
  if test x$cross_compiling != xyes; then
 
183
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
184
  else
 
185
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
186
  fi
 
187
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
188
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
189
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
190
  else
 
191
    ifelse([$1],,[:],[$1])
 
192
  fi
 
193
 
 
194
  GSETTINGS_RULES='
 
195
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
196
 
 
197
mostlyclean-am: clean-gsettings-schemas
 
198
 
 
199
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
200
 
 
201
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
202
        $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
 
203
 
 
204
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
205
uninstall-am: uninstall-gsettings-schemas
 
206
install-data-am: install-gsettings-schemas
 
207
 
 
208
.SECONDARY: $(gsettings_SCHEMAS)
 
209
 
 
210
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
211
        @$(NORMAL_INSTALL)
 
212
        if test -n "$^"; then \
 
213
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
214
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
215
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
216
        fi
 
217
 
 
218
uninstall-gsettings-schemas:
 
219
        @$(NORMAL_UNINSTALL)
 
220
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
221
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
222
        test -n "$$files" || exit 0; \
 
223
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
224
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
225
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
226
 
 
227
clean-gsettings-schemas:
 
228
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
229
 
 
230
ifdef gsettings_ENUM_NAMESPACE
 
231
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
232
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
 
233
endif
 
234
'
 
235
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
236
])
 
237
 
 
238
dnl _GSETTINGS_SUBST(VARIABLE)
 
239
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
240
AC_DEFUN([_GSETTINGS_SUBST],
 
241
[
 
242
AC_SUBST([$1])
 
243
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
244
]
 
245
)
 
246
 
23
247
 
24
248
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
25
249
# serial 42 IT_PROG_INTLTOOL
154
378
# Substitute ALL_LINGUAS so we can use it in po/Makefile
155
379
AC_SUBST(ALL_LINGUAS)
156
380
 
157
 
# Set DATADIRNAME correctly if it is not set yet
158
 
# (copied from glib-gettext.m4)
159
 
if test -z "$DATADIRNAME"; then
160
 
  AC_LINK_IFELSE(
161
 
    [AC_LANG_PROGRAM([[]],
162
 
                     [[extern int _nl_msg_cat_cntr;
163
 
                       return _nl_msg_cat_cntr]])],
164
 
    [DATADIRNAME=share],
165
 
    [case $host in
166
 
    *-*-solaris*)
167
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
168
 
    dnl GNU format message catalog is always supported,
169
 
    dnl since both are added to the libc all together.
170
 
    dnl Hence, we'd like to go with DATADIRNAME=share
171
 
    dnl in this case.
172
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
173
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
174
 
    ;;
175
 
    *)
176
 
    [DATADIRNAME=lib]
177
 
    ;;
178
 
    esac])
179
 
fi
180
 
AC_SUBST(DATADIRNAME)
181
 
 
182
381
IT_PO_SUBDIR([po])
183
382
 
184
383
])
236
435
 
237
436
 
238
437
# nls.m4 serial 5 (gettext-0.18)
239
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
 
438
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
240
439
dnl Inc.
241
440
dnl This file is free software; the Free Software Foundation
242
441
dnl gives unlimited permission to copy and/or distribute it,
483
682
AS_VAR_IF([$1], [""], [$5], [$4])dnl
484
683
])# PKG_CHECK_VAR
485
684
 
486
 
# gnome-common.m4
487
 
#
488
 
# serial 3
489
 
490
 
 
491
 
dnl GNOME_COMMON_INIT
492
 
 
493
 
AU_DEFUN([GNOME_COMMON_INIT],
494
 
[
495
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
496
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
497
 
 
498
 
  dnl ensure that when the Automake generated makefile calls aclocal,
499
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
500
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
501
 
  if test -n "$ac_macro_dir"; then
502
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
503
 
  fi
504
 
 
505
 
  AC_SUBST([ACLOCAL_AMFLAGS])
506
 
],
507
 
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
508
 
in your top-level Makefile.am, instead, where "m4" is the macro directory set
509
 
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
510
 
 
511
 
AU_DEFUN([GNOME_DEBUG_CHECK],
512
 
[
513
 
        AX_CHECK_ENABLE_DEBUG([no],[GNOME_ENABLE_DEBUG])
514
 
],
515
 
[[$0: This macro is deprecated. You should use AX_CHECK_ENABLE_DEBUG instead and
516
 
replace uses of GNOME_ENABLE_DEBUG with ENABLE_DEBUG.
517
 
See: http://www.gnu.org/software/autoconf-archive/ax_check_enable_debug.html#ax_check_enable_debug]])
518
 
 
519
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
520
 
dnl define DISABLE_DEPRECATED
521
 
dnl
522
 
AU_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
523
 
[
524
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
525
 
 
526
 
        DISABLE_DEPRECATED=""
527
 
        if test $USE_MAINTAINER_MODE = yes; then
528
 
                DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
529
 
                for DOMAIN in $DOMAINS; do
530
 
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
531
 
                done
532
 
        fi
533
 
 
534
 
        AC_SUBST(DISABLE_DEPRECATED)
535
 
],
536
 
[[$0: This macro is deprecated. All of the modules it disables deprecations for
537
 
are obsolete. Remove it and all uses of DISABLE_DEPRECATED.]])
538
 
 
539
 
dnl GLIB_GSETTINGS
540
 
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
541
 
dnl the schema should be compiled
542
 
dnl
543
 
 
544
 
AC_DEFUN([GLIB_GSETTINGS],
545
 
[
546
 
  m4_pattern_allow([AM_V_GEN])
547
 
  AC_ARG_ENABLE(schemas-compile,
548
 
                AS_HELP_STRING([--disable-schemas-compile],
549
 
                               [Disable regeneration of gschemas.compiled on install]),
550
 
                [case ${enableval} in
551
 
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
552
 
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
553
 
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
554
 
                 esac])
555
 
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
556
 
  PKG_PROG_PKG_CONFIG([0.16])
557
 
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
558
 
  if test x$cross_compiling != xyes; then
559
 
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
560
 
  else
561
 
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
562
 
  fi
563
 
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
564
 
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
565
 
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
566
 
  else
567
 
    ifelse([$1],,[:],[$1])
568
 
  fi
569
 
 
570
 
  GSETTINGS_RULES='
571
 
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
572
 
 
573
 
mostlyclean-am: clean-gsettings-schemas
574
 
 
575
 
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
576
 
 
577
 
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
578
 
        $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
579
 
 
580
 
all-am: $(gsettings_SCHEMAS:.xml=.valid)
581
 
uninstall-am: uninstall-gsettings-schemas
582
 
install-data-am: install-gsettings-schemas
583
 
 
584
 
.SECONDARY: $(gsettings_SCHEMAS)
585
 
 
586
 
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
587
 
        @$(NORMAL_INSTALL)
588
 
        if test -n "$^"; then \
589
 
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
590
 
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
591
 
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
592
 
        fi
593
 
 
594
 
uninstall-gsettings-schemas:
595
 
        @$(NORMAL_UNINSTALL)
596
 
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
597
 
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
598
 
        test -n "$$files" || exit 0; \
599
 
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
600
 
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
601
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
602
 
 
603
 
clean-gsettings-schemas:
604
 
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
605
 
 
606
 
ifdef gsettings_ENUM_NAMESPACE
607
 
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
608
 
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
609
 
endif
610
 
'
611
 
  _GSETTINGS_SUBST(GSETTINGS_RULES)
612
 
])
613
 
 
614
 
dnl _GSETTINGS_SUBST(VARIABLE)
615
 
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
616
 
AC_DEFUN([_GSETTINGS_SUBST],
617
 
[
618
 
AC_SUBST([$1])
619
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
620
 
]
621
 
)
622
 
 
623
685
AC_DEFUN([YELP_HELP_INIT],
624
686
[
625
687
AC_REQUIRE([AC_PROG_LN_S])
741
803
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
742
804
 
743
805
distdir: distdir-help-files
744
 
distdir-help-files:
 
806
distdir-help-files: $(_HELP_LC_FILES)
745
807
        @for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \
746
808
          $(MKDIR_P) "$(distdir)/$$lc"; \
747
809
          for file in $(HELP_FILES); do \
770
832
 
771
833
.PHONY: install-help
772
834
install-data-am: $(if $(HELP_ID),install-help)
773
 
install-help:
 
835
install-help: $(_HELP_LC_FILES)
774
836
        @for lc in C $(_HELP_LINGUAS); do \
775
837
          $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
776
838
        done
834
896
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
835
897
])
836
898
 
837
 
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
 
899
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
838
900
#
839
901
# This file is free software; the Free Software Foundation
840
902
# gives unlimited permission to copy and/or distribute it,
846
908
# generated from the m4 files accompanying Automake X.Y.
847
909
# (This private macro should not be called outside this file.)
848
910
AC_DEFUN([AM_AUTOMAKE_VERSION],
849
 
[am__api_version='1.13'
 
911
[am__api_version='1.15'
850
912
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
851
913
dnl require some minimum version.  Point them to the right macro.
852
 
m4_if([$1], [1.13.4], [],
 
914
m4_if([$1], [1.15], [],
853
915
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
854
916
])
855
917
 
865
927
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
866
928
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
867
929
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
868
 
[AM_AUTOMAKE_VERSION([1.13.4])dnl
 
930
[AM_AUTOMAKE_VERSION([1.15])dnl
869
931
m4_ifndef([AC_AUTOCONF_VERSION],
870
932
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
871
933
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
872
934
 
873
935
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
874
936
 
875
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
937
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
876
938
#
877
939
# This file is free software; the Free Software Foundation
878
940
# gives unlimited permission to copy and/or distribute it,
917
979
# configured tree to be moved without reconfiguration.
918
980
 
919
981
AC_DEFUN([AM_AUX_DIR_EXPAND],
920
 
[dnl Rely on autoconf to set up CDPATH properly.
921
 
AC_PREREQ([2.50])dnl
922
 
# expand $ac_aux_dir to an absolute path
923
 
am_aux_dir=`cd $ac_aux_dir && pwd`
 
982
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 
983
# Expand $ac_aux_dir to an absolute path.
 
984
am_aux_dir=`cd "$ac_aux_dir" && pwd`
924
985
])
925
986
 
926
987
# AM_CONDITIONAL                                            -*- Autoconf -*-
927
988
 
928
 
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
 
989
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
929
990
#
930
991
# This file is free software; the Free Software Foundation
931
992
# gives unlimited permission to copy and/or distribute it,
956
1017
Usually this means the macro was only invoked conditionally.]])
957
1018
fi])])
958
1019
 
959
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
1020
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
960
1021
#
961
1022
# This file is free software; the Free Software Foundation
962
1023
# gives unlimited permission to copy and/or distribute it,
1147
1208
 
1148
1209
# Generate code to set up dependency tracking.              -*- Autoconf -*-
1149
1210
 
1150
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
1211
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
1151
1212
#
1152
1213
# This file is free software; the Free Software Foundation
1153
1214
# gives unlimited permission to copy and/or distribute it,
1223
1284
 
1224
1285
# Do all the work for Automake.                             -*- Autoconf -*-
1225
1286
 
1226
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
1287
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
1227
1288
#
1228
1289
# This file is free software; the Free Software Foundation
1229
1290
# gives unlimited permission to copy and/or distribute it,
1232
1293
# This macro actually does too much.  Some checks are only needed if
1233
1294
# your package does certain things.  But this isn't really a big deal.
1234
1295
 
 
1296
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
1297
m4_define([AC_PROG_CC],
 
1298
m4_defn([AC_PROG_CC])
 
1299
[_AM_PROG_CC_C_O
 
1300
])
 
1301
 
1235
1302
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1236
1303
# AM_INIT_AUTOMAKE([OPTIONS])
1237
1304
# -----------------------------------------------
1307
1374
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1308
1375
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1309
1376
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1310
 
# We need awk for the "check" target.  The system "awk" is bad on
1311
 
# some platforms.
 
1377
# We need awk for the "check" target (and possibly the TAP driver).  The
 
1378
# system "awk" is bad on some platforms.
1312
1379
AC_REQUIRE([AC_PROG_AWK])dnl
1313
1380
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1314
1381
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1340
1407
AC_CONFIG_COMMANDS_PRE(dnl
1341
1408
[m4_provide_if([_AM_COMPILER_EXEEXT],
1342
1409
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1410
 
 
1411
# POSIX will say in a future version that running "rm -f" with no argument
 
1412
# is OK; and we want to be able to make that assumption in our Makefile
 
1413
# recipes.  So use an aggressive probe to check that the usage we want is
 
1414
# actually supported "in the wild" to an acceptable degree.
 
1415
# See automake bug#10828.
 
1416
# To make any issue more visible, cause the running configure to be aborted
 
1417
# by default if the 'rm' program in use doesn't match our expectations; the
 
1418
# user can still override this though.
 
1419
if rm -f && rm -fr && rm -rf; then : OK; else
 
1420
  cat >&2 <<'END'
 
1421
Oops!
 
1422
 
 
1423
Your 'rm' program seems unable to run without file operands specified
 
1424
on the command line, even when the '-f' option is present.  This is contrary
 
1425
to the behaviour of most rm programs out there, and not conforming with
 
1426
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
1427
 
 
1428
Please tell bug-automake@gnu.org about your system, including the value
 
1429
of your $PATH and any error possibly output before this message.  This
 
1430
can help us improve future automake versions.
 
1431
 
 
1432
END
 
1433
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
1434
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
1435
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
1436
    echo >&2
 
1437
  else
 
1438
    cat >&2 <<'END'
 
1439
Aborting the configuration process, to ensure you take notice of the issue.
 
1440
 
 
1441
You can download and install GNU coreutils to get an 'rm' implementation
 
1442
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
1443
 
 
1444
If you want to complete the configuration process using your problematic
 
1445
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
1446
to "yes", and re-run configure.
 
1447
 
 
1448
END
 
1449
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
1450
  fi
 
1451
fi
 
1452
dnl The trailing newline in this macro's definition is deliberate, for
 
1453
dnl backward compatibility and to allow trailing 'dnl'-style comments
 
1454
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1343
1455
])
1344
1456
 
1345
1457
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1348
1460
m4_define([_AC_COMPILER_EXEEXT],
1349
1461
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1350
1462
 
1351
 
 
1352
1463
# When config.status generates a header, we must update the stamp-h file.
1353
1464
# This file resides in the same directory as the config header
1354
1465
# that is generated.  The stamp files are numbered to have different names.
1370
1481
done
1371
1482
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1372
1483
 
1373
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1484
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1374
1485
#
1375
1486
# This file is free software; the Free Software Foundation
1376
1487
# gives unlimited permission to copy and/or distribute it,
1381
1492
# Define $install_sh.
1382
1493
AC_DEFUN([AM_PROG_INSTALL_SH],
1383
1494
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1384
 
if test x"${install_sh}" != xset; then
 
1495
if test x"${install_sh+set}" != xset; then
1385
1496
  case $am_aux_dir in
1386
1497
  *\ * | *\     *)
1387
1498
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1391
1502
fi
1392
1503
AC_SUBST([install_sh])])
1393
1504
 
1394
 
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
 
1505
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
1395
1506
#
1396
1507
# This file is free software; the Free Software Foundation
1397
1508
# gives unlimited permission to copy and/or distribute it,
1413
1524
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
1414
1525
# From Jim Meyering
1415
1526
 
1416
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
1527
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
1417
1528
#
1418
1529
# This file is free software; the Free Software Foundation
1419
1530
# gives unlimited permission to copy and/or distribute it,
1448
1559
 
1449
1560
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1450
1561
 
1451
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1562
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1452
1563
#
1453
1564
# This file is free software; the Free Software Foundation
1454
1565
# gives unlimited permission to copy and/or distribute it,
1496
1607
rm -f confinc confmf
1497
1608
])
1498
1609
 
1499
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1500
 
#
1501
 
# This file is free software; the Free Software Foundation
1502
 
# gives unlimited permission to copy and/or distribute it,
1503
 
# with or without modifications, as long as this notice is preserved.
1504
 
 
1505
 
# AM_PROG_CC_C_O
1506
 
# --------------
1507
 
# Like AC_PROG_CC_C_O, but changed for automake.
1508
 
AC_DEFUN([AM_PROG_CC_C_O],
1509
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1510
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1511
 
AC_REQUIRE_AUX_FILE([compile])dnl
1512
 
# FIXME: we rely on the cache variable name because
1513
 
# there is no other way.
1514
 
set dummy $CC
1515
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1516
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1517
 
if test "$am_t" != yes; then
1518
 
   # Losing compiler, so override with the script.
1519
 
   # FIXME: It is wrong to rewrite CC.
1520
 
   # But if we don't then we get into trouble of one sort or another.
1521
 
   # A longer-term fix would be to have automake use am__CC in this case,
1522
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1523
 
   CC="$am_aux_dir/compile $CC"
1524
 
fi
1525
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
1526
 
dnl setting of CC.
1527
 
m4_define([AC_PROG_CC],
1528
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1529
 
])
1530
 
 
1531
1610
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1532
1611
 
1533
 
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
 
1612
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
1534
1613
#
1535
1614
# This file is free software; the Free Software Foundation
1536
1615
# gives unlimited permission to copy and/or distribute it,
1569
1648
 
1570
1649
# Helper functions for option handling.                     -*- Autoconf -*-
1571
1650
 
1572
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1651
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1573
1652
#
1574
1653
# This file is free software; the Free Software Foundation
1575
1654
# gives unlimited permission to copy and/or distribute it,
1598
1677
AC_DEFUN([_AM_IF_OPTION],
1599
1678
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1600
1679
 
 
1680
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
 
1681
#
 
1682
# This file is free software; the Free Software Foundation
 
1683
# gives unlimited permission to copy and/or distribute it,
 
1684
# with or without modifications, as long as this notice is preserved.
 
1685
 
 
1686
# _AM_PROG_CC_C_O
 
1687
# ---------------
 
1688
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
1689
# to automatically call this.
 
1690
AC_DEFUN([_AM_PROG_CC_C_O],
 
1691
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1692
AC_REQUIRE_AUX_FILE([compile])dnl
 
1693
AC_LANG_PUSH([C])dnl
 
1694
AC_CACHE_CHECK(
 
1695
  [whether $CC understands -c and -o together],
 
1696
  [am_cv_prog_cc_c_o],
 
1697
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
1698
  # Make sure it works both with $CC and with simple cc.
 
1699
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
1700
  # compilers refuse to overwrite an existing .o file with -o,
 
1701
  # though they will create one.
 
1702
  am_cv_prog_cc_c_o=yes
 
1703
  for am_i in 1 2; do
 
1704
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
1705
         && test -f conftest2.$ac_objext; then
 
1706
      : OK
 
1707
    else
 
1708
      am_cv_prog_cc_c_o=no
 
1709
      break
 
1710
    fi
 
1711
  done
 
1712
  rm -f core conftest*
 
1713
  unset am_i])
 
1714
if test "$am_cv_prog_cc_c_o" != yes; then
 
1715
   # Losing compiler, so override with the script.
 
1716
   # FIXME: It is wrong to rewrite CC.
 
1717
   # But if we don't then we get into trouble of one sort or another.
 
1718
   # A longer-term fix would be to have automake use am__CC in this case,
 
1719
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1720
   CC="$am_aux_dir/compile $CC"
 
1721
fi
 
1722
AC_LANG_POP([C])])
 
1723
 
 
1724
# For backward compatibility.
 
1725
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
1726
 
 
1727
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
 
1728
#
 
1729
# This file is free software; the Free Software Foundation
 
1730
# gives unlimited permission to copy and/or distribute it,
 
1731
# with or without modifications, as long as this notice is preserved.
 
1732
 
 
1733
# AM_RUN_LOG(COMMAND)
 
1734
# -------------------
 
1735
# Run COMMAND, save the exit status in ac_status, and log it.
 
1736
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
1737
AC_DEFUN([AM_RUN_LOG],
 
1738
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
1739
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
1740
   ac_status=$?
 
1741
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1742
   (exit $ac_status); }])
 
1743
 
1601
1744
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1602
1745
 
1603
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
1746
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
1604
1747
#
1605
1748
# This file is free software; the Free Software Foundation
1606
1749
# gives unlimited permission to copy and/or distribute it,
1681
1824
rm -f conftest.file
1682
1825
])
1683
1826
 
1684
 
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
 
1827
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
1685
1828
#
1686
1829
# This file is free software; the Free Software Foundation
1687
1830
# gives unlimited permission to copy and/or distribute it,
1741
1884
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1742
1885
])
1743
1886
 
1744
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1887
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1745
1888
#
1746
1889
# This file is free software; the Free Software Foundation
1747
1890
# gives unlimited permission to copy and/or distribute it,
1769
1912
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1770
1913
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1771
1914
 
1772
 
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
 
1915
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
1773
1916
#
1774
1917
# This file is free software; the Free Software Foundation
1775
1918
# gives unlimited permission to copy and/or distribute it,
1788
1931
 
1789
1932
# Check how to create a tarball.                            -*- Autoconf -*-
1790
1933
 
1791
 
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
 
1934
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
1792
1935
#
1793
1936
# This file is free software; the Free Software Foundation
1794
1937
# gives unlimited permission to copy and/or distribute it,
1921
2064
 
1922
2065
# Autoconf support for the Vala compiler
1923
2066
 
1924
 
# Copyright (C) 2008-2013 Free Software Foundation, Inc.
 
2067
# Copyright (C) 2008-2014 Free Software Foundation, Inc.
1925
2068
#
1926
2069
# This file is free software; the Free Software Foundation
1927
2070
# gives unlimited permission to copy and/or distribute it,