~ubuntu-branches/ubuntu/saucy/file-roller/saucy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-08-26 10:16:27 UTC
  • mfrom: (1.7.6) (2.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20130826101627-b8uh1n4pnvpfkhww
Tags: 3.9.90-0ubuntu1
* Sync with Debian. Remaining changes:
  - Depend on zip and unzip instead of p7zip which is in universe
  - Suggest p7zip-full (LP: #918107)
  - Recommend sessioninstaller
* Dropped change:
  - Use the Ubuntu epoch for the Nautilus depends (Ubuntu 11.10
    and newer include Nautilus 3.0 or higher)
* New upstream release
  - Restore directory modification time when extracting (LP: #1076716)
  - Allow viewing the password when creating an encrypted archive
    (LP: #772556)
  - Avoid unnecessary word break when wrapping text to new lines
    (LP: #1193921)
* debian/patches/revert_gtk_3-9.patch:
  - Revert commit that requires GTK 3.9 since GTK 3.9 won't be in Saucy
* debian/control.in, debian/rules:
  - Run dh-autoreconf for above patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.12.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.14 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2013 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,
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22
 
22
 
dnl GLIB_GSETTINGS
23
 
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
24
 
dnl the schema should be compiled
25
 
dnl
26
 
 
27
 
AC_DEFUN([GLIB_GSETTINGS],
28
 
[
29
 
  m4_pattern_allow([AM_V_GEN])
30
 
  AC_ARG_ENABLE(schemas-compile,
31
 
                AS_HELP_STRING([--disable-schemas-compile],
32
 
                               [Disable regeneration of gschemas.compiled on install]),
33
 
                [case ${enableval} in
34
 
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
35
 
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
36
 
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
37
 
                 esac])
38
 
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
39
 
  PKG_PROG_PKG_CONFIG([0.16])
40
 
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
41
 
  if test x$cross_compiling != xyes; then
42
 
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
43
 
  else
44
 
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
45
 
  fi
46
 
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
47
 
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
48
 
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
49
 
  else
50
 
    ifelse([$1],,[:],[$1])
51
 
  fi
52
 
 
53
 
  GSETTINGS_RULES='
54
 
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
55
 
 
56
 
mostlyclean-am: clean-gsettings-schemas
57
 
 
58
 
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
59
 
 
60
 
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
61
 
        $(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 [$]@
62
 
 
63
 
all-am: $(gsettings_SCHEMAS:.xml=.valid)
64
 
uninstall-am: uninstall-gsettings-schemas
65
 
install-data-am: install-gsettings-schemas
66
 
 
67
 
.SECONDARY: $(gsettings_SCHEMAS)
68
 
 
69
 
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
70
 
        @$(NORMAL_INSTALL)
71
 
        if test -n "$^"; then \
72
 
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
73
 
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
74
 
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
75
 
        fi
76
 
 
77
 
uninstall-gsettings-schemas:
78
 
        @$(NORMAL_UNINSTALL)
79
 
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
80
 
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
81
 
        test -n "$$files" || exit 0; \
82
 
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
83
 
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
84
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
85
 
 
86
 
clean-gsettings-schemas:
87
 
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
88
 
 
89
 
ifdef gsettings_ENUM_NAMESPACE
90
 
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
91
 
        $(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 [$]@
92
 
endif
93
 
'
94
 
  _GSETTINGS_SUBST(GSETTINGS_RULES)
95
 
])
96
 
 
97
 
dnl _GSETTINGS_SUBST(VARIABLE)
98
 
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
99
 
AC_DEFUN([_GSETTINGS_SUBST],
100
 
[
101
 
AC_SUBST([$1])
102
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
103
 
]
104
 
)
105
 
 
106
 
# nls.m4 serial 5 (gettext-0.18)
107
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
108
 
dnl Inc.
109
 
dnl This file is free software; the Free Software Foundation
110
 
dnl gives unlimited permission to copy and/or distribute it,
111
 
dnl with or without modifications, as long as this notice is preserved.
112
 
dnl
113
 
dnl This file can can be used in projects which are not available under
114
 
dnl the GNU General Public License or the GNU Library General Public
115
 
dnl License but which still want to provide support for the GNU gettext
116
 
dnl functionality.
117
 
dnl Please note that the actual code of the GNU gettext library is covered
118
 
dnl by the GNU Library General Public License, and the rest of the GNU
119
 
dnl gettext package package is covered by the GNU General Public License.
120
 
dnl They are *not* in the public domain.
121
 
 
122
 
dnl Authors:
123
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
124
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
125
 
 
126
 
AC_PREREQ([2.50])
127
 
 
128
 
AC_DEFUN([AM_NLS],
129
 
[
130
 
  AC_MSG_CHECKING([whether NLS is requested])
131
 
  dnl Default is enabled NLS
132
 
  AC_ARG_ENABLE([nls],
133
 
    [  --disable-nls           do not use Native Language Support],
134
 
    USE_NLS=$enableval, USE_NLS=yes)
135
 
  AC_MSG_RESULT([$USE_NLS])
136
 
  AC_SUBST([USE_NLS])
137
 
])
138
 
 
139
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
140
 
# serial 1 (pkg-config-0.24)
141
 
142
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
143
 
#
144
 
# This program is free software; you can redistribute it and/or modify
145
 
# it under the terms of the GNU General Public License as published by
146
 
# the Free Software Foundation; either version 2 of the License, or
147
 
# (at your option) any later version.
148
 
#
149
 
# This program is distributed in the hope that it will be useful, but
150
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
151
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
152
 
# General Public License for more details.
153
 
#
154
 
# You should have received a copy of the GNU General Public License
155
 
# along with this program; if not, write to the Free Software
156
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
157
 
#
158
 
# As a special exception to the GNU General Public License, if you
159
 
# distribute this file as part of a program that contains a
160
 
# configuration script generated by Autoconf, you may include it under
161
 
# the same distribution terms that you use for the rest of that program.
162
 
 
163
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
164
 
# ----------------------------------
165
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
166
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
167
 
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
168
 
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
169
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
170
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
171
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
172
 
 
173
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
174
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
175
 
fi
176
 
if test -n "$PKG_CONFIG"; then
177
 
        _pkg_min_version=m4_default([$1], [0.9.0])
178
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
179
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
180
 
                AC_MSG_RESULT([yes])
181
 
        else
182
 
                AC_MSG_RESULT([no])
183
 
                PKG_CONFIG=""
184
 
        fi
185
 
fi[]dnl
186
 
])# PKG_PROG_PKG_CONFIG
187
 
 
188
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
189
 
#
190
 
# Check to see whether a particular set of modules exists.  Similar
191
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
192
 
#
193
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
194
 
# only at the first occurence in configure.ac, so if the first place
195
 
# it's called might be skipped (such as if it is within an "if", you
196
 
# have to call PKG_CHECK_EXISTS manually
197
 
# --------------------------------------------------------------
198
 
AC_DEFUN([PKG_CHECK_EXISTS],
199
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
200
 
if test -n "$PKG_CONFIG" && \
201
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
202
 
  m4_default([$2], [:])
203
 
m4_ifvaln([$3], [else
204
 
  $3])dnl
205
 
fi])
206
 
 
207
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
208
 
# ---------------------------------------------
209
 
m4_define([_PKG_CONFIG],
210
 
[if test -n "$$1"; then
211
 
    pkg_cv_[]$1="$$1"
212
 
 elif test -n "$PKG_CONFIG"; then
213
 
    PKG_CHECK_EXISTS([$3],
214
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
215
 
                      test "x$?" != "x0" && pkg_failed=yes ],
216
 
                     [pkg_failed=yes])
217
 
 else
218
 
    pkg_failed=untried
219
 
fi[]dnl
220
 
])# _PKG_CONFIG
221
 
 
222
 
# _PKG_SHORT_ERRORS_SUPPORTED
223
 
# -----------------------------
224
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
225
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
226
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
227
 
        _pkg_short_errors_supported=yes
228
 
else
229
 
        _pkg_short_errors_supported=no
230
 
fi[]dnl
231
 
])# _PKG_SHORT_ERRORS_SUPPORTED
232
 
 
233
 
 
234
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
235
 
# [ACTION-IF-NOT-FOUND])
236
 
#
237
 
#
238
 
# Note that if there is a possibility the first call to
239
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
240
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
241
 
#
242
 
#
243
 
# --------------------------------------------------------------
244
 
AC_DEFUN([PKG_CHECK_MODULES],
245
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
246
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
247
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
248
 
 
249
 
pkg_failed=no
250
 
AC_MSG_CHECKING([for $1])
251
 
 
252
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
253
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
254
 
 
255
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
256
 
and $1[]_LIBS to avoid the need to call pkg-config.
257
 
See the pkg-config man page for more details.])
258
 
 
259
 
if test $pkg_failed = yes; then
260
 
        AC_MSG_RESULT([no])
261
 
        _PKG_SHORT_ERRORS_SUPPORTED
262
 
        if test $_pkg_short_errors_supported = yes; then
263
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
264
 
        else 
265
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
266
 
        fi
267
 
        # Put the nasty error message in config.log where it belongs
268
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
269
 
 
270
 
        m4_default([$4], [AC_MSG_ERROR(
271
 
[Package requirements ($2) were not met:
272
 
 
273
 
$$1_PKG_ERRORS
274
 
 
275
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
276
 
installed software in a non-standard prefix.
277
 
 
278
 
_PKG_TEXT])[]dnl
279
 
        ])
280
 
elif test $pkg_failed = untried; then
281
 
        AC_MSG_RESULT([no])
282
 
        m4_default([$4], [AC_MSG_FAILURE(
283
 
[The pkg-config script could not be found or is too old.  Make sure it
284
 
is in your PATH or set the PKG_CONFIG environment variable to the full
285
 
path to pkg-config.
286
 
 
287
 
_PKG_TEXT
288
 
 
289
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
290
 
        ])
291
 
else
292
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
293
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
294
 
        AC_MSG_RESULT([yes])
295
 
        $3
296
 
fi[]dnl
297
 
])# PKG_CHECK_MODULES
298
 
 
299
 
 
300
 
# PKG_INSTALLDIR(DIRECTORY)
301
 
# -------------------------
302
 
# Substitutes the variable pkgconfigdir as the location where a module
303
 
# should install pkg-config .pc files. By default the directory is
304
 
# $libdir/pkgconfig, but the default can be changed by passing
305
 
# DIRECTORY. The user can override through the --with-pkgconfigdir
306
 
# parameter.
307
 
AC_DEFUN([PKG_INSTALLDIR],
308
 
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
309
 
m4_pushdef([pkg_description],
310
 
    [pkg-config installation directory @<:@]pkg_default[@:>@])
311
 
AC_ARG_WITH([pkgconfigdir],
312
 
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
313
 
    [with_pkgconfigdir=]pkg_default)
314
 
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
315
 
m4_popdef([pkg_default])
316
 
m4_popdef([pkg_description])
317
 
]) dnl PKG_INSTALLDIR
318
 
 
319
 
 
320
 
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
321
 
# -------------------------
322
 
# Substitutes the variable noarch_pkgconfigdir as the location where a
323
 
# module should install arch-independent pkg-config .pc files. By
324
 
# default the directory is $datadir/pkgconfig, but the default can be
325
 
# changed by passing DIRECTORY. The user can override through the
326
 
# --with-noarch-pkgconfigdir parameter.
327
 
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
328
 
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
329
 
m4_pushdef([pkg_description],
330
 
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
331
 
AC_ARG_WITH([noarch-pkgconfigdir],
332
 
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
333
 
    [with_noarch_pkgconfigdir=]pkg_default)
334
 
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
335
 
m4_popdef([pkg_default])
336
 
m4_popdef([pkg_description])
337
 
]) dnl PKG_NOARCH_INSTALLDIR
338
 
 
339
 
 
340
 
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
341
 
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
342
 
# -------------------------------------------
343
 
# Retrieves the value of the pkg-config variable for the given module.
344
 
AC_DEFUN([PKG_CHECK_VAR],
345
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
346
 
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
347
 
 
348
 
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
349
 
AS_VAR_COPY([$1], [pkg_cv_][$1])
350
 
 
351
 
AS_VAR_IF([$1], [""], [$5], [$4])dnl
352
 
])# PKG_CHECK_VAR
353
 
 
354
 
AC_DEFUN([YELP_HELP_INIT],
355
 
[
356
 
AC_REQUIRE([AC_PROG_LN_S])
357
 
m4_pattern_allow([AM_V_at])
358
 
m4_pattern_allow([AM_V_GEN])
359
 
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
360
 
AC_ARG_WITH([help-dir],
361
 
            AC_HELP_STRING([--with-help-dir=DIR],
362
 
                           [path where help files are installed]),,
363
 
            [with_help_dir='${datadir}/help'])
364
 
HELP_DIR="$with_help_dir"
365
 
AC_SUBST(HELP_DIR)
366
 
 
367
 
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
368
 
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
369
 
if test x"$ITSTOOL" = x; then
370
 
  AC_MSG_ERROR([itstool not found])
371
 
fi
372
 
 
373
 
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
374
 
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
375
 
if test x"$XMLLINT" = x; then
376
 
  AC_MSG_ERROR([xmllint not found])
377
 
fi
378
 
 
379
 
YELP_HELP_RULES='
380
 
HELP_ID ?=
381
 
HELP_POT ?=
382
 
HELP_FILES ?=
383
 
HELP_EXTRA ?=
384
 
HELP_MEDIA ?=
385
 
HELP_LINGUAS ?=
386
 
 
387
 
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
388
 
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
389
 
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
390
 
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
391
 
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
392
 
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
393
 
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
394
 
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
395
 
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
396
 
 
397
 
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
398
 
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
399
 
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
400
 
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
401
 
_HELP_LC_VERBOSE_0 = @echo "  GEN    "$(dir [$]@);
402
 
 
403
 
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
404
 
 
405
 
.PHONY: pot
406
 
pot: $(_HELP_POTFILE)
407
 
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
408
 
        $(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
409
 
 
410
 
.PHONY: repo
411
 
repo: $(_HELP_POTFILE)
412
 
        $(AM_V_at)for po in $(_HELP_POFILES); do \
413
 
          if test "x[$](_HELP_V)" = "x0"; then echo "  GEN    $${po}"; fi; \
414
 
          msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
415
 
        done
416
 
 
417
 
$(_HELP_POFILES):
418
 
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
419
 
        $(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi
420
 
        $(AM_V_GEN)if ! test -f "[$]@"; then \
421
 
          (cd "$(dir [$]@)" && \
422
 
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
423
 
            mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \
424
 
        else \
425
 
          (cd "$(dir [$]@)" && \
426
 
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
427
 
            msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \
428
 
            rm "$(notdir [$]@).tmp"); \
429
 
        fi
430
 
 
431
 
$(_HELP_MOFILES): %.mo: %.po
432
 
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
433
 
        $(AM_V_GEN)msgfmt -o "[$]@" "$<"
434
 
 
435
 
$(_HELP_LC_FILES): $(_HELP_LINGUAS)
436
 
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
437
 
$(_HELP_LC_STAMPS): %.stamp: %.mo
438
 
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
439
 
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
440
 
        $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
441
 
        mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \
442
 
        if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
443
 
        (cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
444
 
        touch "[$]@"
445
 
 
446
 
.PHONY: clean-help
447
 
mostlyclean-am: $(if $(HELP_ID),clean-help)
448
 
clean-help:
449
 
        rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
450
 
 
451
 
EXTRA_DIST ?=
452
 
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
453
 
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)
454
 
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
455
 
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
456
 
 
457
 
distdir: distdir-help-files
458
 
distdir-help-files:
459
 
        @for lc in C $(HELP_LINGUAS); do \
460
 
          $(MKDIR_P) "$(distdir)/$$lc"; \
461
 
          for file in $(HELP_FILES); do \
462
 
            if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
463
 
            cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \
464
 
          done; \
465
 
        done; \
466
 
 
467
 
.PHONY: check-help
468
 
check: check-help
469
 
check-help:
470
 
        for lc in C $(_HELP_LINGUAS); do \
471
 
          if test -d "$$lc"; \
472
 
            then d=; \
473
 
            xmlpath="$$lc"; \
474
 
          else \
475
 
            d="$(srcdir)/"; \
476
 
            xmlpath="$$lc:$(srcdir)/$$lc"; \
477
 
          fi; \
478
 
          for page in $(HELP_FILES); do \
479
 
            echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
480
 
            $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
481
 
          done; \
482
 
        done
483
 
 
484
 
 
485
 
.PHONY: install-help
486
 
install-data-am: $(if $(HELP_ID),install-help)
487
 
install-help:
488
 
        @for lc in C $(_HELP_LINGUAS); do \
489
 
          $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
490
 
        done
491
 
        @for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
492
 
          if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \
493
 
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
494
 
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
495
 
          echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \
496
 
          $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \
497
 
        done; done
498
 
        @for f in $(_HELP_C_EXTRA); do \
499
 
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
500
 
          if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
501
 
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
502
 
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
503
 
          echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
504
 
          $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
505
 
        done
506
 
        @for f in $(HELP_MEDIA); do \
507
 
          for lc in C $(_HELP_LINGUAS); do \
508
 
            if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
509
 
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
510
 
            mdir=`dirname "$$f"`; \
511
 
            if test "x$mdir" = "x."; then mdir=""; fi; \
512
 
            if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
513
 
            if test -f "$$d$$lc/$$f"; then \
514
 
              echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
515
 
              $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
516
 
            elif test "x$$lc" != "xC"; then \
517
 
              echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
518
 
              $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
519
 
            fi; \
520
 
          done; \
521
 
        done
522
 
 
523
 
.PHONY: uninstall-help
524
 
uninstall-am: $(if $(HELP_ID),uninstall-help)
525
 
uninstall-help:
526
 
        for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
527
 
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
528
 
          echo "rm -f $$helpdir`basename $$f`"; \
529
 
          rm -f "$$helpdir`basename $$f`"; \
530
 
        done; done
531
 
        @for f in $(_HELP_C_EXTRA); do \
532
 
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
533
 
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
534
 
          echo "rm -f $$helpdir`basename $$f`"; \
535
 
          rm -f "$$helpdir`basename $$f`"; \
536
 
        done
537
 
        @for f in $(HELP_MEDIA); do \
538
 
          for lc in C $(_HELP_LINGUAS); do \
539
 
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
540
 
            echo "rm -f $$helpdir$$f"; \
541
 
            rm -f "$$helpdir$$f"; \
542
 
          done; \
543
 
        done;
544
 
'
545
 
AC_SUBST([YELP_HELP_RULES])
546
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
547
 
])
548
 
 
549
 
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 
23
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
550
24
#
551
25
# This file is free software; the Free Software Foundation
552
26
# gives unlimited permission to copy and/or distribute it,
558
32
# generated from the m4 files accompanying Automake X.Y.
559
33
# (This private macro should not be called outside this file.)
560
34
AC_DEFUN([AM_AUTOMAKE_VERSION],
561
 
[am__api_version='1.12'
 
35
[am__api_version='1.14'
562
36
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
563
37
dnl require some minimum version.  Point them to the right macro.
564
 
m4_if([$1], [1.12.6], [],
 
38
m4_if([$1], [1.14], [],
565
39
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
566
40
])
567
41
 
577
51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
578
52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
579
53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
580
 
[AM_AUTOMAKE_VERSION([1.12.6])dnl
 
54
[AM_AUTOMAKE_VERSION([1.14])dnl
581
55
m4_ifndef([AC_AUTOCONF_VERSION],
582
56
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
583
57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
584
58
 
585
59
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
586
60
 
587
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
61
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
588
62
#
589
63
# This file is free software; the Free Software Foundation
590
64
# gives unlimited permission to copy and/or distribute it,
637
111
 
638
112
# AM_CONDITIONAL                                            -*- Autoconf -*-
639
113
 
640
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
114
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
641
115
#
642
116
# This file is free software; the Free Software Foundation
643
117
# gives unlimited permission to copy and/or distribute it,
668
142
Usually this means the macro was only invoked conditionally.]])
669
143
fi])])
670
144
 
671
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
145
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
672
146
#
673
147
# This file is free software; the Free Software Foundation
674
148
# gives unlimited permission to copy and/or distribute it,
859
333
 
860
334
# Generate code to set up dependency tracking.              -*- Autoconf -*-
861
335
 
862
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
336
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
863
337
#
864
338
# This file is free software; the Free Software Foundation
865
339
# gives unlimited permission to copy and/or distribute it,
870
344
# ------------------------------
871
345
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
872
346
[{
873
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
347
  # Older Autoconf quotes --file arguments for eval, but not when files
874
348
  # are listed without --file.  Let's play safe and only enable the eval
875
349
  # if we detect the quoting.
876
350
  case $CONFIG_FILES in
899
373
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
900
374
    test -z "$DEPDIR" && continue
901
375
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
902
 
    test -z "am__include" && continue
 
376
    test -z "$am__include" && continue
903
377
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
904
378
    # Find all dependency output files, they are included files with
905
379
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
935
409
 
936
410
# Do all the work for Automake.                             -*- Autoconf -*-
937
411
 
938
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
412
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
939
413
#
940
414
# This file is free software; the Free Software Foundation
941
415
# gives unlimited permission to copy and/or distribute it,
944
418
# This macro actually does too much.  Some checks are only needed if
945
419
# your package does certain things.  But this isn't really a big deal.
946
420
 
 
421
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
422
m4_define([AC_PROG_CC],
 
423
m4_defn([AC_PROG_CC])
 
424
[_AM_PROG_CC_C_O
 
425
])
 
426
 
947
427
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
948
428
# AM_INIT_AUTOMAKE([OPTIONS])
949
429
# -----------------------------------------------
956
436
# arguments mandatory, and then we can depend on a new Autoconf
957
437
# release and drop the old call support.
958
438
AC_DEFUN([AM_INIT_AUTOMAKE],
959
 
[AC_PREREQ([2.62])dnl
 
439
[AC_PREREQ([2.65])dnl
960
440
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
961
441
dnl the ones we care about.
962
442
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
986
466
dnl Distinguish between old-style and new-style calls.
987
467
m4_ifval([$2],
988
468
[AC_DIAGNOSE([obsolete],
989
 
[$0: two- and three-arguments forms are deprecated.  For more info, see:
990
 
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
469
             [$0: two- and three-arguments forms are deprecated.])
991
470
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
992
471
 AC_SUBST([PACKAGE], [$1])dnl
993
472
 AC_SUBST([VERSION], [$2])],
1041
520
                  [_AM_DEPENDENCIES([OBJC])],
1042
521
                  [m4_define([AC_PROG_OBJC],
1043
522
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1044
 
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
1045
 
dnl but we still cater to Autoconf 2.62.
1046
 
m4_ifdef([AC_PROG_OBJCXX],
1047
 
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
523
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1048
524
                  [_AM_DEPENDENCIES([OBJCXX])],
1049
525
                  [m4_define([AC_PROG_OBJCXX],
1050
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
526
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1051
527
])
1052
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1053
 
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
1054
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
1055
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
528
AC_REQUIRE([AM_SILENT_RULES])dnl
 
529
dnl The testsuite driver may need to know about EXEEXT, so add the
 
530
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
531
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1056
532
AC_CONFIG_COMMANDS_PRE(dnl
1057
533
[m4_provide_if([_AM_COMPILER_EXEEXT],
1058
534
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1059
 
])
 
535
 
 
536
# POSIX will say in a future version that running "rm -f" with no argument
 
537
# is OK; and we want to be able to make that assumption in our Makefile
 
538
# recipes.  So use an aggressive probe to check that the usage we want is
 
539
# actually supported "in the wild" to an acceptable degree.
 
540
# See automake bug#10828.
 
541
# To make any issue more visible, cause the running configure to be aborted
 
542
# by default if the 'rm' program in use doesn't match our expectations; the
 
543
# user can still override this though.
 
544
if rm -f && rm -fr && rm -rf; then : OK; else
 
545
  cat >&2 <<'END'
 
546
Oops!
 
547
 
 
548
Your 'rm' program seems unable to run without file operands specified
 
549
on the command line, even when the '-f' option is present.  This is contrary
 
550
to the behaviour of most rm programs out there, and not conforming with
 
551
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
552
 
 
553
Please tell bug-automake@gnu.org about your system, including the value
 
554
of your $PATH and any error possibly output before this message.  This
 
555
can help us improve future automake versions.
 
556
 
 
557
END
 
558
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
559
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
560
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
561
    echo >&2
 
562
  else
 
563
    cat >&2 <<'END'
 
564
Aborting the configuration process, to ensure you take notice of the issue.
 
565
 
 
566
You can download and install GNU coreutils to get an 'rm' implementation
 
567
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
568
 
 
569
If you want to complete the configuration process using your problematic
 
570
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
571
to "yes", and re-run configure.
 
572
 
 
573
END
 
574
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
575
  fi
 
576
fi])
1060
577
 
1061
578
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1062
579
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1064
581
m4_define([_AC_COMPILER_EXEEXT],
1065
582
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1066
583
 
1067
 
 
1068
584
# When config.status generates a header, we must update the stamp-h file.
1069
585
# This file resides in the same directory as the config header
1070
586
# that is generated.  The stamp files are numbered to have different names.
1086
602
done
1087
603
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1088
604
 
1089
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
605
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1090
606
#
1091
607
# This file is free software; the Free Software Foundation
1092
608
# gives unlimited permission to copy and/or distribute it,
1107
623
fi
1108
624
AC_SUBST([install_sh])])
1109
625
 
1110
 
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
626
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1111
627
#
1112
628
# This file is free software; the Free Software Foundation
1113
629
# gives unlimited permission to copy and/or distribute it,
1128
644
 
1129
645
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1130
646
 
1131
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
647
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1132
648
#
1133
649
# This file is free software; the Free Software Foundation
1134
650
# gives unlimited permission to copy and/or distribute it,
1178
694
 
1179
695
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1180
696
 
1181
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
697
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1182
698
#
1183
699
# This file is free software; the Free Software Foundation
1184
700
# gives unlimited permission to copy and/or distribute it,
1193
709
 
1194
710
# AM_MISSING_HAS_RUN
1195
711
# ------------------
1196
 
# Define MISSING if not defined so far and test if it supports --run.
1197
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
712
# Define MISSING if not defined so far and test if it is modern enough.
 
713
# If it is, set am_missing_run to use it, otherwise, to nothing.
1198
714
AC_DEFUN([AM_MISSING_HAS_RUN],
1199
715
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1200
716
AC_REQUIRE_AUX_FILE([missing])dnl
1207
723
  esac
1208
724
fi
1209
725
# Use eval to expand $SHELL
1210
 
if eval "$MISSING --run true"; then
1211
 
  am_missing_run="$MISSING --run "
 
726
if eval "$MISSING --is-lightweight"; then
 
727
  am_missing_run="$MISSING "
1212
728
else
1213
729
  am_missing_run=
1214
730
  AC_MSG_WARN(['missing' script is too old or missing])
1217
733
 
1218
734
# Helper functions for option handling.                     -*- Autoconf -*-
1219
735
 
1220
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
736
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1221
737
#
1222
738
# This file is free software; the Free Software Foundation
1223
739
# gives unlimited permission to copy and/or distribute it,
1246
762
AC_DEFUN([_AM_IF_OPTION],
1247
763
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1248
764
 
1249
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
765
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
766
#
 
767
# This file is free software; the Free Software Foundation
 
768
# gives unlimited permission to copy and/or distribute it,
 
769
# with or without modifications, as long as this notice is preserved.
 
770
 
 
771
# _AM_PROG_CC_C_O
 
772
# ---------------
 
773
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
774
# to automatically call this.
 
775
AC_DEFUN([_AM_PROG_CC_C_O],
 
776
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
777
AC_REQUIRE_AUX_FILE([compile])dnl
 
778
AC_LANG_PUSH([C])dnl
 
779
AC_CACHE_CHECK(
 
780
  [whether $CC understands -c and -o together],
 
781
  [am_cv_prog_cc_c_o],
 
782
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
783
  # Make sure it works both with $CC and with simple cc.
 
784
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
785
  # compilers refuse to overwrite an existing .o file with -o,
 
786
  # though they will create one.
 
787
  am_cv_prog_cc_c_o=yes
 
788
  for am_i in 1 2; do
 
789
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
790
         && test -f conftest2.$ac_objext; then
 
791
      : OK
 
792
    else
 
793
      am_cv_prog_cc_c_o=no
 
794
      break
 
795
    fi
 
796
  done
 
797
  rm -f core conftest*
 
798
  unset am_i])
 
799
if test "$am_cv_prog_cc_c_o" != yes; then
 
800
   # Losing compiler, so override with the script.
 
801
   # FIXME: It is wrong to rewrite CC.
 
802
   # But if we don't then we get into trouble of one sort or another.
 
803
   # A longer-term fix would be to have automake use am__CC in this case,
 
804
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
805
   CC="$am_aux_dir/compile $CC"
 
806
fi
 
807
AC_LANG_POP([C])])
 
808
 
 
809
# For backward compatibility.
 
810
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
811
 
 
812
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1250
813
#
1251
814
# This file is free software; the Free Software Foundation
1252
815
# gives unlimited permission to copy and/or distribute it,
1265
828
 
1266
829
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1267
830
 
1268
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
831
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1269
832
#
1270
833
# This file is free software; the Free Software Foundation
1271
834
# gives unlimited permission to copy and/or distribute it,
1346
909
rm -f conftest.file
1347
910
])
1348
911
 
1349
 
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
912
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1350
913
#
1351
914
# This file is free software; the Free Software Foundation
1352
915
# gives unlimited permission to copy and/or distribute it,
1406
969
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1407
970
])
1408
971
 
1409
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
972
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1410
973
#
1411
974
# This file is free software; the Free Software Foundation
1412
975
# gives unlimited permission to copy and/or distribute it,
1434
997
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1435
998
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1436
999
 
1437
 
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
1000
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1438
1001
#
1439
1002
# This file is free software; the Free Software Foundation
1440
1003
# gives unlimited permission to copy and/or distribute it,
1453
1016
 
1454
1017
# Check how to create a tarball.                            -*- Autoconf -*-
1455
1018
 
1456
 
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
1019
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1457
1020
#
1458
1021
# This file is free software; the Free Software Foundation
1459
1022
# gives unlimited permission to copy and/or distribute it,
1472
1035
# Substitute a variable $(am__untar) that extract such
1473
1036
# a tarball read from stdin.
1474
1037
#     $(am__untar) < result.tar
 
1038
#
1475
1039
AC_DEFUN([_AM_PROG_TAR],
1476
1040
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1477
1041
# in the wild :-(  We should find a proper way to deprecate it ...
1478
1042
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1043
 
 
1044
# We'll loop over all known methods to create a tar archive until one works.
 
1045
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1046
 
1479
1047
m4_if([$1], [v7],
1480
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1481
 
     [m4_case([$1], [ustar],, [pax],,
1482
 
              [m4_fatal([Unknown tar format])])
1483
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1484
 
# Loop over all known methods to create a tar archive until one works.
1485
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1486
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1487
 
# Do not fold the above two line into one, because Tru64 sh and
1488
 
# Solaris sh will not grok spaces in the rhs of '-'.
1489
 
for _am_tool in $_am_tools
1490
 
do
1491
 
  case $_am_tool in
1492
 
  gnutar)
1493
 
    for _am_tar in tar gnutar gtar;
1494
 
    do
1495
 
      AM_RUN_LOG([$_am_tar --version]) && break
1496
 
    done
1497
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1498
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1499
 
    am__untar="$_am_tar -xf -"
1500
 
    ;;
1501
 
  plaintar)
1502
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1503
 
    # ustar tarball either.
1504
 
    (tar --version) >/dev/null 2>&1 && continue
1505
 
    am__tar='tar chf - "$$tardir"'
1506
 
    am__tar_='tar chf - "$tardir"'
1507
 
    am__untar='tar xf -'
1508
 
    ;;
1509
 
  pax)
1510
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1511
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1512
 
    am__untar='pax -r'
1513
 
    ;;
1514
 
  cpio)
1515
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1516
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1517
 
    am__untar='cpio -i -H $1 -d'
1518
 
    ;;
1519
 
  none)
1520
 
    am__tar=false
1521
 
    am__tar_=false
1522
 
    am__untar=false
1523
 
    ;;
1524
 
  esac
1525
 
 
1526
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1527
 
  # and am__untar set.
1528
 
  test -n "${am_cv_prog_tar_$1}" && break
1529
 
 
1530
 
  # tar/untar a dummy directory, and stop if the command works
1531
 
  rm -rf conftest.dir
1532
 
  mkdir conftest.dir
1533
 
  echo GrepMe > conftest.dir/file
1534
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1535
 
  rm -rf conftest.dir
1536
 
  if test -s conftest.tar; then
1537
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1538
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1539
 
  fi
1540
 
done
1541
 
rm -rf conftest.dir
1542
 
 
1543
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1544
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1048
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1049
 
 
1050
  [m4_case([$1],
 
1051
    [ustar],
 
1052
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1053
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1054
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1055
      # and bug#13588).
 
1056
      am_max_uid=2097151 # 2^21 - 1
 
1057
      am_max_gid=$am_max_uid
 
1058
      # The $UID and $GID variables are not portable, so we need to resort
 
1059
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1060
      # below are definitely unexpected, so allow the users to see them
 
1061
      # (that is, avoid stderr redirection).
 
1062
      am_uid=`id -u || echo unknown`
 
1063
      am_gid=`id -g || echo unknown`
 
1064
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1065
      if test $am_uid -le $am_max_uid; then
 
1066
         AC_MSG_RESULT([yes])
 
1067
      else
 
1068
         AC_MSG_RESULT([no])
 
1069
         _am_tools=none
 
1070
      fi
 
1071
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1072
      if test $am_gid -le $am_max_gid; then
 
1073
         AC_MSG_RESULT([yes])
 
1074
      else
 
1075
        AC_MSG_RESULT([no])
 
1076
        _am_tools=none
 
1077
      fi],
 
1078
 
 
1079
  [pax],
 
1080
    [],
 
1081
 
 
1082
  [m4_fatal([Unknown tar format])])
 
1083
 
 
1084
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1085
 
 
1086
  # Go ahead even if we have the value already cached.  We do so because we
 
1087
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1088
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1089
 
 
1090
  for _am_tool in $_am_tools; do
 
1091
    case $_am_tool in
 
1092
    gnutar)
 
1093
      for _am_tar in tar gnutar gtar; do
 
1094
        AM_RUN_LOG([$_am_tar --version]) && break
 
1095
      done
 
1096
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1097
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1098
      am__untar="$_am_tar -xf -"
 
1099
      ;;
 
1100
    plaintar)
 
1101
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1102
      # ustar tarball either.
 
1103
      (tar --version) >/dev/null 2>&1 && continue
 
1104
      am__tar='tar chf - "$$tardir"'
 
1105
      am__tar_='tar chf - "$tardir"'
 
1106
      am__untar='tar xf -'
 
1107
      ;;
 
1108
    pax)
 
1109
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1110
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1111
      am__untar='pax -r'
 
1112
      ;;
 
1113
    cpio)
 
1114
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1115
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1116
      am__untar='cpio -i -H $1 -d'
 
1117
      ;;
 
1118
    none)
 
1119
      am__tar=false
 
1120
      am__tar_=false
 
1121
      am__untar=false
 
1122
      ;;
 
1123
    esac
 
1124
 
 
1125
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1126
    # and am__untar set.
 
1127
    test -n "${am_cv_prog_tar_$1}" && break
 
1128
 
 
1129
    # tar/untar a dummy directory, and stop if the command works.
 
1130
    rm -rf conftest.dir
 
1131
    mkdir conftest.dir
 
1132
    echo GrepMe > conftest.dir/file
 
1133
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1134
    rm -rf conftest.dir
 
1135
    if test -s conftest.tar; then
 
1136
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1137
      AM_RUN_LOG([cat conftest.dir/file])
 
1138
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1139
    fi
 
1140
  done
 
1141
  rm -rf conftest.dir
 
1142
 
 
1143
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1144
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1145
 
1545
1146
AC_SUBST([am__tar])
1546
1147
AC_SUBST([am__untar])
1547
1148
]) # _AM_PROG_TAR
1548
1149
 
 
1150
# nls.m4 serial 5 (gettext-0.18)
 
1151
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
 
1152
dnl Inc.
 
1153
dnl This file is free software; the Free Software Foundation
 
1154
dnl gives unlimited permission to copy and/or distribute it,
 
1155
dnl with or without modifications, as long as this notice is preserved.
 
1156
dnl
 
1157
dnl This file can can be used in projects which are not available under
 
1158
dnl the GNU General Public License or the GNU Library General Public
 
1159
dnl License but which still want to provide support for the GNU gettext
 
1160
dnl functionality.
 
1161
dnl Please note that the actual code of the GNU gettext library is covered
 
1162
dnl by the GNU Library General Public License, and the rest of the GNU
 
1163
dnl gettext package package is covered by the GNU General Public License.
 
1164
dnl They are *not* in the public domain.
 
1165
 
 
1166
dnl Authors:
 
1167
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
1168
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
1169
 
 
1170
AC_PREREQ([2.50])
 
1171
 
 
1172
AC_DEFUN([AM_NLS],
 
1173
[
 
1174
  AC_MSG_CHECKING([whether NLS is requested])
 
1175
  dnl Default is enabled NLS
 
1176
  AC_ARG_ENABLE([nls],
 
1177
    [  --disable-nls           do not use Native Language Support],
 
1178
    USE_NLS=$enableval, USE_NLS=yes)
 
1179
  AC_MSG_RESULT([$USE_NLS])
 
1180
  AC_SUBST([USE_NLS])
 
1181
])
 
1182
 
 
1183
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1184
# serial 1 (pkg-config-0.24)
 
1185
 
1186
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
1187
#
 
1188
# This program is free software; you can redistribute it and/or modify
 
1189
# it under the terms of the GNU General Public License as published by
 
1190
# the Free Software Foundation; either version 2 of the License, or
 
1191
# (at your option) any later version.
 
1192
#
 
1193
# This program is distributed in the hope that it will be useful, but
 
1194
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1195
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1196
# General Public License for more details.
 
1197
#
 
1198
# You should have received a copy of the GNU General Public License
 
1199
# along with this program; if not, write to the Free Software
 
1200
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1201
#
 
1202
# As a special exception to the GNU General Public License, if you
 
1203
# distribute this file as part of a program that contains a
 
1204
# configuration script generated by Autoconf, you may include it under
 
1205
# the same distribution terms that you use for the rest of that program.
 
1206
 
 
1207
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
1208
# ----------------------------------
 
1209
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
1210
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
1211
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
1212
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
1213
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
1214
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
1215
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
1216
 
 
1217
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
1218
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
1219
fi
 
1220
if test -n "$PKG_CONFIG"; then
 
1221
        _pkg_min_version=m4_default([$1], [0.9.0])
 
1222
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
1223
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
1224
                AC_MSG_RESULT([yes])
 
1225
        else
 
1226
                AC_MSG_RESULT([no])
 
1227
                PKG_CONFIG=""
 
1228
        fi
 
1229
fi[]dnl
 
1230
])# PKG_PROG_PKG_CONFIG
 
1231
 
 
1232
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1233
#
 
1234
# Check to see whether a particular set of modules exists.  Similar
 
1235
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
1236
#
 
1237
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1238
# only at the first occurence in configure.ac, so if the first place
 
1239
# it's called might be skipped (such as if it is within an "if", you
 
1240
# have to call PKG_CHECK_EXISTS manually
 
1241
# --------------------------------------------------------------
 
1242
AC_DEFUN([PKG_CHECK_EXISTS],
 
1243
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1244
if test -n "$PKG_CONFIG" && \
 
1245
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
1246
  m4_default([$2], [:])
 
1247
m4_ifvaln([$3], [else
 
1248
  $3])dnl
 
1249
fi])
 
1250
 
 
1251
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
1252
# ---------------------------------------------
 
1253
m4_define([_PKG_CONFIG],
 
1254
[if test -n "$$1"; then
 
1255
    pkg_cv_[]$1="$$1"
 
1256
 elif test -n "$PKG_CONFIG"; then
 
1257
    PKG_CHECK_EXISTS([$3],
 
1258
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
1259
                      test "x$?" != "x0" && pkg_failed=yes ],
 
1260
                     [pkg_failed=yes])
 
1261
 else
 
1262
    pkg_failed=untried
 
1263
fi[]dnl
 
1264
])# _PKG_CONFIG
 
1265
 
 
1266
# _PKG_SHORT_ERRORS_SUPPORTED
 
1267
# -----------------------------
 
1268
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
1269
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1270
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
1271
        _pkg_short_errors_supported=yes
 
1272
else
 
1273
        _pkg_short_errors_supported=no
 
1274
fi[]dnl
 
1275
])# _PKG_SHORT_ERRORS_SUPPORTED
 
1276
 
 
1277
 
 
1278
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1279
# [ACTION-IF-NOT-FOUND])
 
1280
#
 
1281
#
 
1282
# Note that if there is a possibility the first call to
 
1283
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
1284
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
1285
#
 
1286
#
 
1287
# --------------------------------------------------------------
 
1288
AC_DEFUN([PKG_CHECK_MODULES],
 
1289
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1290
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
1291
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
1292
 
 
1293
pkg_failed=no
 
1294
AC_MSG_CHECKING([for $1])
 
1295
 
 
1296
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
1297
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
1298
 
 
1299
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
1300
and $1[]_LIBS to avoid the need to call pkg-config.
 
1301
See the pkg-config man page for more details.])
 
1302
 
 
1303
if test $pkg_failed = yes; then
 
1304
        AC_MSG_RESULT([no])
 
1305
        _PKG_SHORT_ERRORS_SUPPORTED
 
1306
        if test $_pkg_short_errors_supported = yes; then
 
1307
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
1308
        else 
 
1309
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
1310
        fi
 
1311
        # Put the nasty error message in config.log where it belongs
 
1312
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
1313
 
 
1314
        m4_default([$4], [AC_MSG_ERROR(
 
1315
[Package requirements ($2) were not met:
 
1316
 
 
1317
$$1_PKG_ERRORS
 
1318
 
 
1319
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
1320
installed software in a non-standard prefix.
 
1321
 
 
1322
_PKG_TEXT])[]dnl
 
1323
        ])
 
1324
elif test $pkg_failed = untried; then
 
1325
        AC_MSG_RESULT([no])
 
1326
        m4_default([$4], [AC_MSG_FAILURE(
 
1327
[The pkg-config script could not be found or is too old.  Make sure it
 
1328
is in your PATH or set the PKG_CONFIG environment variable to the full
 
1329
path to pkg-config.
 
1330
 
 
1331
_PKG_TEXT
 
1332
 
 
1333
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
1334
        ])
 
1335
else
 
1336
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
1337
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
1338
        AC_MSG_RESULT([yes])
 
1339
        $3
 
1340
fi[]dnl
 
1341
])# PKG_CHECK_MODULES
 
1342
 
 
1343
 
 
1344
# PKG_INSTALLDIR(DIRECTORY)
 
1345
# -------------------------
 
1346
# Substitutes the variable pkgconfigdir as the location where a module
 
1347
# should install pkg-config .pc files. By default the directory is
 
1348
# $libdir/pkgconfig, but the default can be changed by passing
 
1349
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
1350
# parameter.
 
1351
AC_DEFUN([PKG_INSTALLDIR],
 
1352
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
1353
m4_pushdef([pkg_description],
 
1354
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
1355
AC_ARG_WITH([pkgconfigdir],
 
1356
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
1357
    [with_pkgconfigdir=]pkg_default)
 
1358
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
1359
m4_popdef([pkg_default])
 
1360
m4_popdef([pkg_description])
 
1361
]) dnl PKG_INSTALLDIR
 
1362
 
 
1363
 
 
1364
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
1365
# -------------------------
 
1366
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
1367
# module should install arch-independent pkg-config .pc files. By
 
1368
# default the directory is $datadir/pkgconfig, but the default can be
 
1369
# changed by passing DIRECTORY. The user can override through the
 
1370
# --with-noarch-pkgconfigdir parameter.
 
1371
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
1372
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
1373
m4_pushdef([pkg_description],
 
1374
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
1375
AC_ARG_WITH([noarch-pkgconfigdir],
 
1376
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
1377
    [with_noarch_pkgconfigdir=]pkg_default)
 
1378
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
1379
m4_popdef([pkg_default])
 
1380
m4_popdef([pkg_description])
 
1381
]) dnl PKG_NOARCH_INSTALLDIR
 
1382
 
 
1383
 
 
1384
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
1385
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1386
# -------------------------------------------
 
1387
# Retrieves the value of the pkg-config variable for the given module.
 
1388
AC_DEFUN([PKG_CHECK_VAR],
 
1389
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1390
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
1391
 
 
1392
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
1393
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
1394
 
 
1395
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
1396
])# PKG_CHECK_VAR
 
1397
 
 
1398
dnl GLIB_GSETTINGS
 
1399
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
1400
dnl the schema should be compiled
 
1401
dnl
 
1402
 
 
1403
AC_DEFUN([GLIB_GSETTINGS],
 
1404
[
 
1405
  m4_pattern_allow([AM_V_GEN])
 
1406
  AC_ARG_ENABLE(schemas-compile,
 
1407
                AS_HELP_STRING([--disable-schemas-compile],
 
1408
                               [Disable regeneration of gschemas.compiled on install]),
 
1409
                [case ${enableval} in
 
1410
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
1411
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
1412
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
1413
                 esac])
 
1414
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
1415
  PKG_PROG_PKG_CONFIG([0.16])
 
1416
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
1417
  if test x$cross_compiling != xyes; then
 
1418
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
1419
  else
 
1420
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
1421
  fi
 
1422
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
1423
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
1424
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
1425
  else
 
1426
    ifelse([$1],,[:],[$1])
 
1427
  fi
 
1428
 
 
1429
  GSETTINGS_RULES='
 
1430
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
1431
 
 
1432
mostlyclean-am: clean-gsettings-schemas
 
1433
 
 
1434
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
1435
 
 
1436
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
1437
        $(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 [$]@
 
1438
 
 
1439
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
1440
uninstall-am: uninstall-gsettings-schemas
 
1441
install-data-am: install-gsettings-schemas
 
1442
 
 
1443
.SECONDARY: $(gsettings_SCHEMAS)
 
1444
 
 
1445
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
1446
        @$(NORMAL_INSTALL)
 
1447
        if test -n "$^"; then \
 
1448
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
1449
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
1450
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
1451
        fi
 
1452
 
 
1453
uninstall-gsettings-schemas:
 
1454
        @$(NORMAL_UNINSTALL)
 
1455
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
1456
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
1457
        test -n "$$files" || exit 0; \
 
1458
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
1459
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
1460
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
1461
 
 
1462
clean-gsettings-schemas:
 
1463
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
1464
 
 
1465
ifdef gsettings_ENUM_NAMESPACE
 
1466
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
1467
        $(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 [$]@
 
1468
endif
 
1469
'
 
1470
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
1471
])
 
1472
 
 
1473
dnl _GSETTINGS_SUBST(VARIABLE)
 
1474
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
1475
AC_DEFUN([_GSETTINGS_SUBST],
 
1476
[
 
1477
AC_SUBST([$1])
 
1478
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
1479
]
 
1480
)
 
1481
 
 
1482
AC_DEFUN([YELP_HELP_INIT],
 
1483
[
 
1484
AC_REQUIRE([AC_PROG_LN_S])
 
1485
m4_pattern_allow([AM_V_at])
 
1486
m4_pattern_allow([AM_V_GEN])
 
1487
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
 
1488
AC_ARG_WITH([help-dir],
 
1489
            AC_HELP_STRING([--with-help-dir=DIR],
 
1490
                           [path where help files are installed]),,
 
1491
            [with_help_dir='${datadir}/help'])
 
1492
HELP_DIR="$with_help_dir"
 
1493
AC_SUBST(HELP_DIR)
 
1494
 
 
1495
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
 
1496
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
 
1497
if test x"$ITSTOOL" = x; then
 
1498
  AC_MSG_ERROR([itstool not found])
 
1499
fi
 
1500
 
 
1501
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
 
1502
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
 
1503
if test x"$XMLLINT" = x; then
 
1504
  AC_MSG_ERROR([xmllint not found])
 
1505
fi
 
1506
 
 
1507
YELP_HELP_RULES='
 
1508
HELP_ID ?=
 
1509
HELP_POT ?=
 
1510
HELP_FILES ?=
 
1511
HELP_EXTRA ?=
 
1512
HELP_MEDIA ?=
 
1513
HELP_LINGUAS ?=
 
1514
 
 
1515
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
 
1516
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
 
1517
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
 
1518
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
 
1519
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
 
1520
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
 
1521
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
 
1522
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
 
1523
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
 
1524
 
 
1525
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
 
1526
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
 
1527
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
 
1528
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
 
1529
_HELP_LC_VERBOSE_0 = @echo "  GEN    "$(dir [$]@);
 
1530
 
 
1531
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
 
1532
 
 
1533
.PHONY: pot
 
1534
pot: $(_HELP_POTFILE)
 
1535
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
 
1536
        $(AM_V_GEN)if test -d "C"; then d=; else d="$(srcdir)/"; fi; \
 
1537
        $(ITSTOOL) -o "[$]@" $(foreach f,$(_HELP_C_FILES),"$${d}$(f)")
 
1538
 
 
1539
.PHONY: repo
 
1540
repo: $(_HELP_POTFILE)
 
1541
        $(AM_V_at)for po in $(_HELP_POFILES); do \
 
1542
          if test "x[$](_HELP_V)" = "x0"; then echo "  GEN    $${po}"; fi; \
 
1543
          msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
 
1544
        done
 
1545
 
 
1546
$(_HELP_POFILES):
 
1547
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1548
        $(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi
 
1549
        $(AM_V_GEN)if ! test -f "[$]@"; then \
 
1550
          (cd "$(dir [$]@)" && \
 
1551
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
1552
            mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \
 
1553
        else \
 
1554
          (cd "$(dir [$]@)" && \
 
1555
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
1556
            msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \
 
1557
            rm "$(notdir [$]@).tmp"); \
 
1558
        fi
 
1559
 
 
1560
$(_HELP_MOFILES): %.mo: %.po
 
1561
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1562
        $(AM_V_GEN)msgfmt -o "[$]@" "$<"
 
1563
 
 
1564
$(_HELP_LC_FILES): $(_HELP_LINGUAS)
 
1565
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
 
1566
$(_HELP_LC_STAMPS): %.stamp: %.mo
 
1567
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
 
1568
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
1569
        $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
 
1570
        mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \
 
1571
        if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
 
1572
        (cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
 
1573
        touch "[$]@"
 
1574
 
 
1575
.PHONY: clean-help
 
1576
mostlyclean-am: $(if $(HELP_ID),clean-help)
 
1577
clean-help:
 
1578
        rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
 
1579
 
 
1580
EXTRA_DIST ?=
 
1581
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
 
1582
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)
 
1583
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
 
1584
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
 
1585
 
 
1586
distdir: distdir-help-files
 
1587
distdir-help-files:
 
1588
        @for lc in C $(HELP_LINGUAS); do \
 
1589
          $(MKDIR_P) "$(distdir)/$$lc"; \
 
1590
          for file in $(HELP_FILES); do \
 
1591
            if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
 
1592
            cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \
 
1593
          done; \
 
1594
        done; \
 
1595
 
 
1596
.PHONY: check-help
 
1597
check: check-help
 
1598
check-help:
 
1599
        for lc in C $(_HELP_LINGUAS); do \
 
1600
          if test -d "$$lc"; \
 
1601
            then d=; \
 
1602
            xmlpath="$$lc"; \
 
1603
          else \
 
1604
            d="$(srcdir)/"; \
 
1605
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
1606
          fi; \
 
1607
          for page in $(HELP_FILES); do \
 
1608
            echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
 
1609
            $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
 
1610
          done; \
 
1611
        done
 
1612
 
 
1613
 
 
1614
.PHONY: install-help
 
1615
install-data-am: $(if $(HELP_ID),install-help)
 
1616
install-help:
 
1617
        @for lc in C $(_HELP_LINGUAS); do \
 
1618
          $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
 
1619
        done
 
1620
        @for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
 
1621
          if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1622
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1623
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
 
1624
          echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \
 
1625
          $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \
 
1626
        done; done
 
1627
        @for f in $(_HELP_C_EXTRA); do \
 
1628
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
1629
          if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1630
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1631
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
 
1632
          echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
 
1633
          $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
 
1634
        done
 
1635
        @for f in $(HELP_MEDIA); do \
 
1636
          for lc in C $(_HELP_LINGUAS); do \
 
1637
            if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
 
1638
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1639
            mdir=`dirname "$$f"`; \
 
1640
            if test "x$mdir" = "x."; then mdir=""; fi; \
 
1641
            if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
 
1642
            if test -f "$$d$$lc/$$f"; then \
 
1643
              echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
 
1644
              $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
 
1645
            elif test "x$$lc" != "xC"; then \
 
1646
              echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
 
1647
              $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
 
1648
            fi; \
 
1649
          done; \
 
1650
        done
 
1651
 
 
1652
.PHONY: uninstall-help
 
1653
uninstall-am: $(if $(HELP_ID),uninstall-help)
 
1654
uninstall-help:
 
1655
        for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
 
1656
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1657
          echo "rm -f $$helpdir`basename $$f`"; \
 
1658
          rm -f "$$helpdir`basename $$f`"; \
 
1659
        done; done
 
1660
        @for f in $(_HELP_C_EXTRA); do \
 
1661
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
1662
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1663
          echo "rm -f $$helpdir`basename $$f`"; \
 
1664
          rm -f "$$helpdir`basename $$f`"; \
 
1665
        done
 
1666
        @for f in $(HELP_MEDIA); do \
 
1667
          for lc in C $(_HELP_LINGUAS); do \
 
1668
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
1669
            echo "rm -f $$helpdir$$f"; \
 
1670
            rm -f "$$helpdir$$f"; \
 
1671
          done; \
 
1672
        done;
 
1673
'
 
1674
AC_SUBST([YELP_HELP_RULES])
 
1675
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
 
1676
])
 
1677
 
1549
1678
m4_include([m4/intltool.m4])
1550
1679
m4_include([m4/libtool.m4])
1551
1680
m4_include([m4/ltoptions.m4])