Adding 42-fix-user-list.patch to fix empty greeter (Closes: #810631).
[debian/lxdm.git] / aclocal.m4
CommitLineData
37f5420c 1# generated automatically by aclocal 1.15 -*- Autoconf -*-
d6ba7c28 2
37f5420c 3# Copyright (C) 1996-2014 Free Software Foundation, Inc.
9931e273 4
9931e273
DB
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
d6ba7c28 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
9931e273
DB
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
d6ba7c28
AG
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
9931e273
DB
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
d6ba7c28 21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
9931e273
DB
22
23
24dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
d6ba7c28 25# serial 42 IT_PROG_INTLTOOL
9931e273
DB
26AC_DEFUN([IT_PROG_INTLTOOL], [
27AC_PREREQ([2.50])dnl
28AC_REQUIRE([AM_NLS])dnl
29
30case "$am__api_version" in
31 1.[01234])
32 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
33 ;;
34 *)
35 ;;
36esac
37
d6ba7c28
AG
38INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
39INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
40INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
9931e273
DB
41if test -n "$1"; then
42 AC_MSG_CHECKING([for intltool >= $1])
9931e273
DB
43 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
44 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
45 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
46fi
47
48AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
49AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
50AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
51if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
52 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
53fi
54
d6ba7c28
AG
55if test -z "$AM_DEFAULT_VERBOSITY"; then
56 AM_DEFAULT_VERBOSITY=1
57fi
58AC_SUBST([AM_DEFAULT_VERBOSITY])
59
60INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
61INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
62INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
63AC_SUBST(INTLTOOL_V_MERGE)
64AC_SUBST(INTLTOOL__v_MERGE_)
65AC_SUBST(INTLTOOL__v_MERGE_0)
66
67INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
68intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
69intltool__v_merge_options_0='-q'
70AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
71AC_SUBST(intltool__v_merge_options_)
72AC_SUBST(intltool__v_merge_options_0)
73
74 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
75INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
76 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
77 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
78 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
79 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
80 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
81 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
82INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
83 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
84 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
85if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
86 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
87else
88 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
89fi
90 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
91 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
92 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
93 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
94 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
95 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
96 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9931e273
DB
97
98_IT_SUBST(INTLTOOL_DESKTOP_RULE)
99_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
100_IT_SUBST(INTLTOOL_KEYS_RULE)
101_IT_SUBST(INTLTOOL_PROP_RULE)
102_IT_SUBST(INTLTOOL_OAF_RULE)
103_IT_SUBST(INTLTOOL_PONG_RULE)
104_IT_SUBST(INTLTOOL_SERVER_RULE)
105_IT_SUBST(INTLTOOL_SHEET_RULE)
106_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
107_IT_SUBST(INTLTOOL_UI_RULE)
108_IT_SUBST(INTLTOOL_XAM_RULE)
109_IT_SUBST(INTLTOOL_KBD_RULE)
110_IT_SUBST(INTLTOOL_XML_RULE)
111_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
112_IT_SUBST(INTLTOOL_CAVES_RULE)
113_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
114_IT_SUBST(INTLTOOL_THEME_RULE)
115_IT_SUBST(INTLTOOL_SERVICE_RULE)
116_IT_SUBST(INTLTOOL_POLICY_RULE)
117
118# Check the gettext tools to make sure they are GNU
119AC_PATH_PROG(XGETTEXT, xgettext)
120AC_PATH_PROG(MSGMERGE, msgmerge)
121AC_PATH_PROG(MSGFMT, msgfmt)
122AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
123if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
124 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
125fi
126xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
127mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
128mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
129if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
130 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
131fi
132
133AC_PATH_PROG(INTLTOOL_PERL, perl)
134if test -z "$INTLTOOL_PERL"; then
135 AC_MSG_ERROR([perl not found])
136fi
137AC_MSG_CHECKING([for perl >= 5.8.1])
138$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
139if test $? -ne 0; then
140 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
141else
d6ba7c28 142 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
9931e273
DB
143 AC_MSG_RESULT([$IT_PERL_VERSION])
144fi
145if test "x$2" != "xno-xml"; then
146 AC_MSG_CHECKING([for XML::Parser])
147 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
148 AC_MSG_RESULT([ok])
149 else
150 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
151 fi
152fi
153
154# Substitute ALL_LINGUAS so we can use it in po/Makefile
155AC_SUBST(ALL_LINGUAS)
156
9931e273
DB
157IT_PO_SUBDIR([po])
158
159])
160
161
162# IT_PO_SUBDIR(DIRNAME)
163# ---------------------
164# All po subdirs have to be declared with this macro; the subdir "po" is
165# declared by IT_PROG_INTLTOOL.
166#
167AC_DEFUN([IT_PO_SUBDIR],
168[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
169dnl
170dnl The following CONFIG_COMMANDS should be executed at the very end
171dnl of config.status.
172AC_CONFIG_COMMANDS_PRE([
173 AC_CONFIG_COMMANDS([$1/stamp-it], [
174 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
175 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
176 fi
177 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
178 >"$1/stamp-it.tmp"
179 [sed '/^#/d
180 s/^[[].*] *//
181 /^[ ]*$/d
182 '"s|^| $ac_top_srcdir/|" \
183 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
184 ]
185 [sed '/^POTFILES =/,/[^\\]$/ {
186 /^POTFILES =/!d
187 r $1/POTFILES
188 }
189 ' "$1/Makefile.in" >"$1/Makefile"]
190 rm -f "$1/Makefile.tmp"
191 mv "$1/stamp-it.tmp" "$1/stamp-it"
192 ])
193])dnl
194])
195
196# _IT_SUBST(VARIABLE)
197# -------------------
198# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
199#
200AC_DEFUN([_IT_SUBST],
201[
202AC_SUBST([$1])
203m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
204]
205)
206
207# deprecated macros
208AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
209# A hint is needed for aclocal from Automake <= 1.9.4:
210# AC_DEFUN([AC_PROG_INTLTOOL], ...)
211
212
213# nls.m4 serial 5 (gettext-0.18)
c8e553a1 214dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
9931e273
DB
215dnl Inc.
216dnl This file is free software; the Free Software Foundation
217dnl gives unlimited permission to copy and/or distribute it,
218dnl with or without modifications, as long as this notice is preserved.
219dnl
220dnl This file can can be used in projects which are not available under
221dnl the GNU General Public License or the GNU Library General Public
222dnl License but which still want to provide support for the GNU gettext
223dnl functionality.
224dnl Please note that the actual code of the GNU gettext library is covered
225dnl by the GNU Library General Public License, and the rest of the GNU
226dnl gettext package package is covered by the GNU General Public License.
227dnl They are *not* in the public domain.
228
229dnl Authors:
230dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
231dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
232
233AC_PREREQ([2.50])
234
235AC_DEFUN([AM_NLS],
236[
237 AC_MSG_CHECKING([whether NLS is requested])
238 dnl Default is enabled NLS
239 AC_ARG_ENABLE([nls],
240 [ --disable-nls do not use Native Language Support],
241 USE_NLS=$enableval, USE_NLS=yes)
242 AC_MSG_RESULT([$USE_NLS])
243 AC_SUBST([USE_NLS])
244])
245
246# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
247# serial 1 (pkg-config-0.24)
248#
249# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
250#
251# This program is free software; you can redistribute it and/or modify
252# it under the terms of the GNU General Public License as published by
253# the Free Software Foundation; either version 2 of the License, or
254# (at your option) any later version.
255#
256# This program is distributed in the hope that it will be useful, but
257# WITHOUT ANY WARRANTY; without even the implied warranty of
258# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
259# General Public License for more details.
260#
261# You should have received a copy of the GNU General Public License
262# along with this program; if not, write to the Free Software
263# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
264#
265# As a special exception to the GNU General Public License, if you
266# distribute this file as part of a program that contains a
267# configuration script generated by Autoconf, you may include it under
268# the same distribution terms that you use for the rest of that program.
269
270# PKG_PROG_PKG_CONFIG([MIN-VERSION])
271# ----------------------------------
272AC_DEFUN([PKG_PROG_PKG_CONFIG],
273[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
d6ba7c28
AG
274m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
275m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
9931e273
DB
276AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
277AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
278AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
279
280if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
281 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
282fi
283if test -n "$PKG_CONFIG"; then
284 _pkg_min_version=m4_default([$1], [0.9.0])
285 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
286 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
287 AC_MSG_RESULT([yes])
288 else
289 AC_MSG_RESULT([no])
290 PKG_CONFIG=""
291 fi
292fi[]dnl
293])# PKG_PROG_PKG_CONFIG
294
295# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
296#
297# Check to see whether a particular set of modules exists. Similar
298# to PKG_CHECK_MODULES(), but does not set variables or print errors.
299#
300# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
301# only at the first occurence in configure.ac, so if the first place
302# it's called might be skipped (such as if it is within an "if", you
303# have to call PKG_CHECK_EXISTS manually
304# --------------------------------------------------------------
305AC_DEFUN([PKG_CHECK_EXISTS],
306[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
307if test -n "$PKG_CONFIG" && \
308 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
309 m4_default([$2], [:])
310m4_ifvaln([$3], [else
311 $3])dnl
312fi])
313
314# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
315# ---------------------------------------------
316m4_define([_PKG_CONFIG],
317[if test -n "$$1"; then
318 pkg_cv_[]$1="$$1"
319 elif test -n "$PKG_CONFIG"; then
320 PKG_CHECK_EXISTS([$3],
d6ba7c28
AG
321 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
322 test "x$?" != "x0" && pkg_failed=yes ],
9931e273
DB
323 [pkg_failed=yes])
324 else
325 pkg_failed=untried
326fi[]dnl
327])# _PKG_CONFIG
328
329# _PKG_SHORT_ERRORS_SUPPORTED
330# -----------------------------
331AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
332[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
334 _pkg_short_errors_supported=yes
335else
336 _pkg_short_errors_supported=no
337fi[]dnl
338])# _PKG_SHORT_ERRORS_SUPPORTED
339
340
341# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
342# [ACTION-IF-NOT-FOUND])
343#
344#
345# Note that if there is a possibility the first call to
346# PKG_CHECK_MODULES might not happen, you should be sure to include an
347# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
348#
349#
350# --------------------------------------------------------------
351AC_DEFUN([PKG_CHECK_MODULES],
352[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
353AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
354AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
355
356pkg_failed=no
357AC_MSG_CHECKING([for $1])
358
359_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
360_PKG_CONFIG([$1][_LIBS], [libs], [$2])
361
362m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
363and $1[]_LIBS to avoid the need to call pkg-config.
364See the pkg-config man page for more details.])
365
366if test $pkg_failed = yes; then
367 AC_MSG_RESULT([no])
368 _PKG_SHORT_ERRORS_SUPPORTED
369 if test $_pkg_short_errors_supported = yes; then
d6ba7c28 370 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9931e273 371 else
d6ba7c28 372 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9931e273
DB
373 fi
374 # Put the nasty error message in config.log where it belongs
375 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
376
377 m4_default([$4], [AC_MSG_ERROR(
378[Package requirements ($2) were not met:
379
380$$1_PKG_ERRORS
381
382Consider adjusting the PKG_CONFIG_PATH environment variable if you
383installed software in a non-standard prefix.
384
385_PKG_TEXT])[]dnl
386 ])
387elif test $pkg_failed = untried; then
388 AC_MSG_RESULT([no])
389 m4_default([$4], [AC_MSG_FAILURE(
390[The pkg-config script could not be found or is too old. Make sure it
391is in your PATH or set the PKG_CONFIG environment variable to the full
392path to pkg-config.
393
394_PKG_TEXT
395
396To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
397 ])
398else
399 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
400 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
401 AC_MSG_RESULT([yes])
402 $3
403fi[]dnl
404])# PKG_CHECK_MODULES
405
d6ba7c28
AG
406
407# PKG_INSTALLDIR(DIRECTORY)
408# -------------------------
409# Substitutes the variable pkgconfigdir as the location where a module
410# should install pkg-config .pc files. By default the directory is
411# $libdir/pkgconfig, but the default can be changed by passing
412# DIRECTORY. The user can override through the --with-pkgconfigdir
413# parameter.
414AC_DEFUN([PKG_INSTALLDIR],
415[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
416m4_pushdef([pkg_description],
417 [pkg-config installation directory @<:@]pkg_default[@:>@])
418AC_ARG_WITH([pkgconfigdir],
419 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
420 [with_pkgconfigdir=]pkg_default)
421AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
422m4_popdef([pkg_default])
423m4_popdef([pkg_description])
424]) dnl PKG_INSTALLDIR
425
426
427# PKG_NOARCH_INSTALLDIR(DIRECTORY)
428# -------------------------
429# Substitutes the variable noarch_pkgconfigdir as the location where a
430# module should install arch-independent pkg-config .pc files. By
431# default the directory is $datadir/pkgconfig, but the default can be
432# changed by passing DIRECTORY. The user can override through the
433# --with-noarch-pkgconfigdir parameter.
434AC_DEFUN([PKG_NOARCH_INSTALLDIR],
435[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
436m4_pushdef([pkg_description],
437 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
438AC_ARG_WITH([noarch-pkgconfigdir],
439 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
440 [with_noarch_pkgconfigdir=]pkg_default)
441AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
442m4_popdef([pkg_default])
443m4_popdef([pkg_description])
444]) dnl PKG_NOARCH_INSTALLDIR
445
446
447# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
448# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
449# -------------------------------------------
450# Retrieves the value of the pkg-config variable for the given module.
451AC_DEFUN([PKG_CHECK_VAR],
452[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
453AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
454
455_PKG_CONFIG([$1], [variable="][$3]["], [$2])
456AS_VAR_COPY([$1], [pkg_cv_][$1])
457
458AS_VAR_IF([$1], [""], [$5], [$4])dnl
459])# PKG_CHECK_VAR
460
37f5420c 461# Copyright (C) 2002-2014 Free Software Foundation, Inc.
9931e273
DB
462#
463# This file is free software; the Free Software Foundation
464# gives unlimited permission to copy and/or distribute it,
465# with or without modifications, as long as this notice is preserved.
466
467# AM_AUTOMAKE_VERSION(VERSION)
468# ----------------------------
469# Automake X.Y traces this macro to ensure aclocal.m4 has been
470# generated from the m4 files accompanying Automake X.Y.
471# (This private macro should not be called outside this file.)
472AC_DEFUN([AM_AUTOMAKE_VERSION],
37f5420c 473[am__api_version='1.15'
9931e273
DB
474dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
475dnl require some minimum version. Point them to the right macro.
37f5420c 476m4_if([$1], [1.15], [],
9931e273
DB
477 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
478])
479
480# _AM_AUTOCONF_VERSION(VERSION)
481# -----------------------------
482# aclocal traces this macro to find the Autoconf version.
483# This is a private macro too. Using m4_define simplifies
484# the logic in aclocal, which can simply ignore this definition.
485m4_define([_AM_AUTOCONF_VERSION], [])
486
487# AM_SET_CURRENT_AUTOMAKE_VERSION
488# -------------------------------
489# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
490# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
491AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
37f5420c 492[AM_AUTOMAKE_VERSION([1.15])dnl
9931e273
DB
493m4_ifndef([AC_AUTOCONF_VERSION],
494 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
495_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
496
497# AM_AUX_DIR_EXPAND -*- Autoconf -*-
498
37f5420c 499# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9931e273
DB
500#
501# This file is free software; the Free Software Foundation
502# gives unlimited permission to copy and/or distribute it,
503# with or without modifications, as long as this notice is preserved.
504
505# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
d6ba7c28
AG
506# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
507# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9931e273
DB
508#
509# Of course, Automake must honor this variable whenever it calls a
510# tool from the auxiliary directory. The problem is that $srcdir (and
511# therefore $ac_aux_dir as well) can be either absolute or relative,
512# depending on how configure is run. This is pretty annoying, since
513# it makes $ac_aux_dir quite unusable in subdirectories: in the top
514# source directory, any form will work fine, but in subdirectories a
515# relative path needs to be adjusted first.
516#
517# $ac_aux_dir/missing
518# fails when called from a subdirectory if $ac_aux_dir is relative
519# $top_srcdir/$ac_aux_dir/missing
520# fails if $ac_aux_dir is absolute,
521# fails when called from a subdirectory in a VPATH build with
522# a relative $ac_aux_dir
523#
524# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
525# are both prefixed by $srcdir. In an in-source build this is usually
d6ba7c28 526# harmless because $srcdir is '.', but things will broke when you
9931e273
DB
527# start a VPATH build or use an absolute $srcdir.
528#
529# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
530# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
531# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
532# and then we would define $MISSING as
533# MISSING="\${SHELL} $am_aux_dir/missing"
534# This will work as long as MISSING is not called from configure, because
535# unfortunately $(top_srcdir) has no meaning in configure.
536# However there are other variables, like CC, which are often used in
537# configure, and could therefore not use this "fixed" $ac_aux_dir.
538#
539# Another solution, used here, is to always expand $ac_aux_dir to an
540# absolute PATH. The drawback is that using absolute paths prevent a
541# configured tree to be moved without reconfiguration.
542
543AC_DEFUN([AM_AUX_DIR_EXPAND],
37f5420c
AG
544[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
545# Expand $ac_aux_dir to an absolute path.
546am_aux_dir=`cd "$ac_aux_dir" && pwd`
9931e273
DB
547])
548
549# AM_CONDITIONAL -*- Autoconf -*-
550
37f5420c 551# Copyright (C) 1997-2014 Free Software Foundation, Inc.
9931e273
DB
552#
553# This file is free software; the Free Software Foundation
554# gives unlimited permission to copy and/or distribute it,
555# with or without modifications, as long as this notice is preserved.
556
9931e273
DB
557# AM_CONDITIONAL(NAME, SHELL-CONDITION)
558# -------------------------------------
559# Define a conditional.
560AC_DEFUN([AM_CONDITIONAL],
d6ba7c28
AG
561[AC_PREREQ([2.52])dnl
562 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
563 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9931e273
DB
564AC_SUBST([$1_TRUE])dnl
565AC_SUBST([$1_FALSE])dnl
566_AM_SUBST_NOTMAKE([$1_TRUE])dnl
567_AM_SUBST_NOTMAKE([$1_FALSE])dnl
568m4_define([_AM_COND_VALUE_$1], [$2])dnl
569if $2; then
570 $1_TRUE=
571 $1_FALSE='#'
572else
573 $1_TRUE='#'
574 $1_FALSE=
575fi
576AC_CONFIG_COMMANDS_PRE(
577[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
578 AC_MSG_ERROR([[conditional "$1" was never defined.
579Usually this means the macro was only invoked conditionally.]])
580fi])])
581
37f5420c 582# Copyright (C) 1999-2014 Free Software Foundation, Inc.
9931e273
DB
583#
584# This file is free software; the Free Software Foundation
585# gives unlimited permission to copy and/or distribute it,
586# with or without modifications, as long as this notice is preserved.
587
9931e273 588
d6ba7c28 589# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9931e273
DB
590# written in clear, in which case automake, when reading aclocal.m4,
591# will think it sees a *use*, and therefore will trigger all it's
592# C support machinery. Also note that it means that autoscan, seeing
593# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
594
595
596# _AM_DEPENDENCIES(NAME)
597# ----------------------
598# See how the compiler implements dependency checking.
d6ba7c28 599# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
9931e273
DB
600# We try a few techniques and use that to set a single cache variable.
601#
602# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
603# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
604# dependency, and given that the user is not expected to run this macro,
605# just rely on AC_PROG_CC.
606AC_DEFUN([_AM_DEPENDENCIES],
607[AC_REQUIRE([AM_SET_DEPDIR])dnl
608AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
609AC_REQUIRE([AM_MAKE_INCLUDE])dnl
610AC_REQUIRE([AM_DEP_TRACK])dnl
611
d6ba7c28
AG
612m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
613 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
614 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
615 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
616 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
617 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
618 [depcc="$$1" am_compiler_list=])
9931e273
DB
619
620AC_CACHE_CHECK([dependency style of $depcc],
621 [am_cv_$1_dependencies_compiler_type],
622[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
623 # We make a subdir and do the tests there. Otherwise we can end up
624 # making bogus files that we don't know about and never remove. For
625 # instance it was reported that on HP-UX the gcc test will end up
d6ba7c28
AG
626 # making a dummy file named 'D' -- because '-MD' means "put the output
627 # in D".
628 rm -rf conftest.dir
9931e273
DB
629 mkdir conftest.dir
630 # Copy depcomp to subdir because otherwise we won't find it if we're
631 # using a relative directory.
632 cp "$am_depcomp" conftest.dir
633 cd conftest.dir
634 # We will build objects and dependencies in a subdirectory because
635 # it helps to detect inapplicable dependency modes. For instance
636 # both Tru64's cc and ICC support -MD to output dependencies as a
637 # side effect of compilation, but ICC will put the dependencies in
638 # the current directory while Tru64 will put them in the object
639 # directory.
640 mkdir sub
641
642 am_cv_$1_dependencies_compiler_type=none
643 if test "$am_compiler_list" = ""; then
644 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
645 fi
646 am__universal=false
647 m4_case([$1], [CC],
648 [case " $depcc " in #(
649 *\ -arch\ *\ -arch\ *) am__universal=true ;;
650 esac],
651 [CXX],
652 [case " $depcc " in #(
653 *\ -arch\ *\ -arch\ *) am__universal=true ;;
654 esac])
655
656 for depmode in $am_compiler_list; do
657 # Setup a source with many dependencies, because some compilers
658 # like to wrap large dependency lists on column 80 (with \), and
659 # we should not choose a depcomp mode which is confused by this.
660 #
661 # We need to recreate these files for each test, as the compiler may
662 # overwrite some of them when testing with obscure command lines.
663 # This happens at least with the AIX C compiler.
664 : > sub/conftest.c
665 for i in 1 2 3 4 5 6; do
666 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d6ba7c28
AG
667 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
668 # Solaris 10 /bin/sh.
669 echo '/* dummy */' > sub/conftst$i.h
9931e273
DB
670 done
671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
672
d6ba7c28 673 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9931e273 674 # mode. It turns out that the SunPro C++ compiler does not properly
d6ba7c28
AG
675 # handle '-M -o', and we need to detect this. Also, some Intel
676 # versions had trouble with output in subdirs.
9931e273
DB
677 am__obj=sub/conftest.${OBJEXT-o}
678 am__minus_obj="-o $am__obj"
679 case $depmode in
680 gcc)
681 # This depmode causes a compiler race in universal mode.
682 test "$am__universal" = false || continue
683 ;;
684 nosideeffect)
d6ba7c28
AG
685 # After this tag, mechanisms are not by side-effect, so they'll
686 # only be used when explicitly requested.
9931e273
DB
687 if test "x$enable_dependency_tracking" = xyes; then
688 continue
689 else
690 break
691 fi
692 ;;
d6ba7c28
AG
693 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
694 # This compiler won't grok '-c -o', but also, the minuso test has
9931e273
DB
695 # not run yet. These depmodes are late enough in the game, and
696 # so weak that their functioning should not be impacted.
697 am__obj=conftest.${OBJEXT-o}
698 am__minus_obj=
699 ;;
700 none) break ;;
701 esac
702 if depmode=$depmode \
703 source=sub/conftest.c object=$am__obj \
704 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
705 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
706 >/dev/null 2>conftest.err &&
707 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
709 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
711 # icc doesn't choke on unknown options, it will just issue warnings
712 # or remarks (even with -Werror). So we grep stderr for any message
713 # that says an option was ignored or not supported.
714 # When given -MP, icc 7.0 and 7.1 complain thusly:
715 # icc: Command line warning: ignoring option '-M'; no argument required
716 # The diagnosis changed in icc 8.0:
717 # icc: Command line remark: option '-MP' not supported
718 if (grep 'ignoring option' conftest.err ||
719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
720 am_cv_$1_dependencies_compiler_type=$depmode
721 break
722 fi
723 fi
724 done
725
726 cd ..
727 rm -rf conftest.dir
728else
729 am_cv_$1_dependencies_compiler_type=none
730fi
731])
732AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
733AM_CONDITIONAL([am__fastdep$1], [
734 test "x$enable_dependency_tracking" != xno \
735 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
736])
737
738
739# AM_SET_DEPDIR
740# -------------
741# Choose a directory name for dependency files.
d6ba7c28 742# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
9931e273
DB
743AC_DEFUN([AM_SET_DEPDIR],
744[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
745AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
746])
747
748
749# AM_DEP_TRACK
750# ------------
751AC_DEFUN([AM_DEP_TRACK],
d6ba7c28
AG
752[AC_ARG_ENABLE([dependency-tracking], [dnl
753AS_HELP_STRING(
754 [--enable-dependency-tracking],
755 [do not reject slow dependency extractors])
756AS_HELP_STRING(
757 [--disable-dependency-tracking],
758 [speeds up one-time build])])
9931e273
DB
759if test "x$enable_dependency_tracking" != xno; then
760 am_depcomp="$ac_aux_dir/depcomp"
761 AMDEPBACKSLASH='\'
d6ba7c28 762 am__nodep='_no'
9931e273
DB
763fi
764AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
765AC_SUBST([AMDEPBACKSLASH])dnl
766_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
d6ba7c28
AG
767AC_SUBST([am__nodep])dnl
768_AM_SUBST_NOTMAKE([am__nodep])dnl
9931e273
DB
769])
770
771# Generate code to set up dependency tracking. -*- Autoconf -*-
772
37f5420c 773# Copyright (C) 1999-2014 Free Software Foundation, Inc.
9931e273
DB
774#
775# This file is free software; the Free Software Foundation
776# gives unlimited permission to copy and/or distribute it,
777# with or without modifications, as long as this notice is preserved.
778
9931e273
DB
779
780# _AM_OUTPUT_DEPENDENCY_COMMANDS
781# ------------------------------
782AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
783[{
d6ba7c28 784 # Older Autoconf quotes --file arguments for eval, but not when files
9931e273
DB
785 # are listed without --file. Let's play safe and only enable the eval
786 # if we detect the quoting.
787 case $CONFIG_FILES in
788 *\'*) eval set x "$CONFIG_FILES" ;;
789 *) set x $CONFIG_FILES ;;
790 esac
791 shift
792 for mf
793 do
794 # Strip MF so we end up with the name of the file.
795 mf=`echo "$mf" | sed -e 's/:.*$//'`
796 # Check whether this is an Automake generated Makefile or not.
d6ba7c28 797 # We used to match only the files named 'Makefile.in', but
9931e273
DB
798 # some people rename them; so instead we look at the file content.
799 # Grep'ing the first line is not enough: some people post-process
800 # each Makefile.in and add a new line on top of each file to say so.
801 # Grep'ing the whole file is not good either: AIX grep has a line
802 # limit of 2048, but all sed's we know have understand at least 4000.
803 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
804 dirpart=`AS_DIRNAME("$mf")`
805 else
806 continue
807 fi
808 # Extract the definition of DEPDIR, am__include, and am__quote
d6ba7c28 809 # from the Makefile without running 'make'.
9931e273
DB
810 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
811 test -z "$DEPDIR" && continue
812 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d6ba7c28 813 test -z "$am__include" && continue
9931e273 814 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9931e273
DB
815 # Find all dependency output files, they are included files with
816 # $(DEPDIR) in their names. We invoke sed twice because it is the
817 # simplest approach to changing $(DEPDIR) to its actual value in the
818 # expansion.
819 for file in `sed -n "
820 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d6ba7c28 821 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9931e273
DB
822 # Make sure the directory exists.
823 test -f "$dirpart/$file" && continue
824 fdir=`AS_DIRNAME(["$file"])`
825 AS_MKDIR_P([$dirpart/$fdir])
826 # echo "creating $dirpart/$file"
827 echo '# dummy' > "$dirpart/$file"
828 done
829 done
830}
831])# _AM_OUTPUT_DEPENDENCY_COMMANDS
832
833
834# AM_OUTPUT_DEPENDENCY_COMMANDS
835# -----------------------------
836# This macro should only be invoked once -- use via AC_REQUIRE.
837#
838# This code is only required when automatic dependency tracking
d6ba7c28 839# is enabled. FIXME. This creates each '.P' file that we will
9931e273
DB
840# need in order to bootstrap the dependency handling code.
841AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
842[AC_CONFIG_COMMANDS([depfiles],
843 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
844 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
845])
846
847# Do all the work for Automake. -*- Autoconf -*-
848
37f5420c 849# Copyright (C) 1996-2014 Free Software Foundation, Inc.
9931e273
DB
850#
851# This file is free software; the Free Software Foundation
852# gives unlimited permission to copy and/or distribute it,
853# with or without modifications, as long as this notice is preserved.
854
9931e273
DB
855# This macro actually does too much. Some checks are only needed if
856# your package does certain things. But this isn't really a big deal.
857
c8e553a1
AG
858dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
859m4_define([AC_PROG_CC],
860m4_defn([AC_PROG_CC])
861[_AM_PROG_CC_C_O
862])
863
9931e273
DB
864# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
865# AM_INIT_AUTOMAKE([OPTIONS])
866# -----------------------------------------------
867# The call with PACKAGE and VERSION arguments is the old style
868# call (pre autoconf-2.50), which is being phased out. PACKAGE
869# and VERSION should now be passed to AC_INIT and removed from
870# the call to AM_INIT_AUTOMAKE.
871# We support both call styles for the transition. After
872# the next Automake release, Autoconf can make the AC_INIT
873# arguments mandatory, and then we can depend on a new Autoconf
874# release and drop the old call support.
875AC_DEFUN([AM_INIT_AUTOMAKE],
d6ba7c28 876[AC_PREREQ([2.65])dnl
9931e273
DB
877dnl Autoconf wants to disallow AM_ names. We explicitly allow
878dnl the ones we care about.
879m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
880AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
881AC_REQUIRE([AC_PROG_INSTALL])dnl
882if test "`cd $srcdir && pwd`" != "`pwd`"; then
883 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
884 # is not polluted with repeated "-I."
885 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
886 # test to see if srcdir already configured
887 if test -f $srcdir/config.status; then
888 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
889 fi
890fi
891
892# test whether we have cygpath
893if test -z "$CYGPATH_W"; then
894 if (cygpath --version) >/dev/null 2>/dev/null; then
895 CYGPATH_W='cygpath -w'
896 else
897 CYGPATH_W=echo
898 fi
899fi
900AC_SUBST([CYGPATH_W])
901
902# Define the identity of the package.
903dnl Distinguish between old-style and new-style calls.
904m4_ifval([$2],
d6ba7c28
AG
905[AC_DIAGNOSE([obsolete],
906 [$0: two- and three-arguments forms are deprecated.])
907m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9931e273
DB
908 AC_SUBST([PACKAGE], [$1])dnl
909 AC_SUBST([VERSION], [$2])],
910[_AM_SET_OPTIONS([$1])dnl
911dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
d6ba7c28
AG
912m4_if(
913 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
914 [ok:ok],,
9931e273
DB
915 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
916 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
917 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
918
919_AM_IF_OPTION([no-define],,
d6ba7c28
AG
920[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
921 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
9931e273
DB
922
923# Some tools Automake needs.
924AC_REQUIRE([AM_SANITY_CHECK])dnl
925AC_REQUIRE([AC_ARG_PROGRAM])dnl
d6ba7c28
AG
926AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
927AM_MISSING_PROG([AUTOCONF], [autoconf])
928AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
929AM_MISSING_PROG([AUTOHEADER], [autoheader])
930AM_MISSING_PROG([MAKEINFO], [makeinfo])
9931e273
DB
931AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
932AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
d6ba7c28
AG
933AC_REQUIRE([AC_PROG_MKDIR_P])dnl
934# For better backward compatibility. To be removed once Automake 1.9.x
935# dies out for good. For more background, see:
936# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
937# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
938AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
37f5420c
AG
939# We need awk for the "check" target (and possibly the TAP driver). The
940# system "awk" is bad on some platforms.
9931e273
DB
941AC_REQUIRE([AC_PROG_AWK])dnl
942AC_REQUIRE([AC_PROG_MAKE_SET])dnl
943AC_REQUIRE([AM_SET_LEADING_DOT])dnl
944_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
945 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
946 [_AM_PROG_TAR([v7])])])
947_AM_IF_OPTION([no-dependencies],,
948[AC_PROVIDE_IFELSE([AC_PROG_CC],
d6ba7c28
AG
949 [_AM_DEPENDENCIES([CC])],
950 [m4_define([AC_PROG_CC],
951 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
9931e273 952AC_PROVIDE_IFELSE([AC_PROG_CXX],
d6ba7c28
AG
953 [_AM_DEPENDENCIES([CXX])],
954 [m4_define([AC_PROG_CXX],
955 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
9931e273 956AC_PROVIDE_IFELSE([AC_PROG_OBJC],
d6ba7c28
AG
957 [_AM_DEPENDENCIES([OBJC])],
958 [m4_define([AC_PROG_OBJC],
959 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
960AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
961 [_AM_DEPENDENCIES([OBJCXX])],
962 [m4_define([AC_PROG_OBJCXX],
963 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9931e273 964])
d6ba7c28
AG
965AC_REQUIRE([AM_SILENT_RULES])dnl
966dnl The testsuite driver may need to know about EXEEXT, so add the
967dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
968dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9931e273
DB
969AC_CONFIG_COMMANDS_PRE(dnl
970[m4_provide_if([_AM_COMPILER_EXEEXT],
971 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
c8e553a1
AG
972
973# POSIX will say in a future version that running "rm -f" with no argument
974# is OK; and we want to be able to make that assumption in our Makefile
975# recipes. So use an aggressive probe to check that the usage we want is
976# actually supported "in the wild" to an acceptable degree.
977# See automake bug#10828.
978# To make any issue more visible, cause the running configure to be aborted
979# by default if the 'rm' program in use doesn't match our expectations; the
980# user can still override this though.
981if rm -f && rm -fr && rm -rf; then : OK; else
982 cat >&2 <<'END'
983Oops!
984
985Your 'rm' program seems unable to run without file operands specified
986on the command line, even when the '-f' option is present. This is contrary
987to the behaviour of most rm programs out there, and not conforming with
988the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
989
990Please tell bug-automake@gnu.org about your system, including the value
991of your $PATH and any error possibly output before this message. This
992can help us improve future automake versions.
993
994END
995 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
996 echo 'Configuration will proceed anyway, since you have set the' >&2
997 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
998 echo >&2
999 else
1000 cat >&2 <<'END'
1001Aborting the configuration process, to ensure you take notice of the issue.
1002
1003You can download and install GNU coreutils to get an 'rm' implementation
1004that behaves properly: <http://www.gnu.org/software/coreutils/>.
1005
1006If you want to complete the configuration process using your problematic
1007'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1008to "yes", and re-run configure.
1009
1010END
1011 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1012 fi
37f5420c
AG
1013fi
1014dnl The trailing newline in this macro's definition is deliberate, for
1015dnl backward compatibility and to allow trailing 'dnl'-style comments
1016dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1017])
9931e273 1018
d6ba7c28 1019dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9931e273
DB
1020dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1021dnl mangled by Autoconf and run in a shell conditional statement.
1022m4_define([_AC_COMPILER_EXEEXT],
1023m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1024
9931e273
DB
1025# When config.status generates a header, we must update the stamp-h file.
1026# This file resides in the same directory as the config header
1027# that is generated. The stamp files are numbered to have different names.
1028
1029# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1030# loop where config.status creates the headers, so we can generate
1031# our stamp files there.
1032AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1033[# Compute $1's index in $config_headers.
1034_am_arg=$1
1035_am_stamp_count=1
1036for _am_header in $config_headers :; do
1037 case $_am_header in
1038 $_am_arg | $_am_arg:* )
1039 break ;;
1040 * )
1041 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1042 esac
1043done
1044echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1045
37f5420c 1046# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9931e273
DB
1047#
1048# This file is free software; the Free Software Foundation
1049# gives unlimited permission to copy and/or distribute it,
1050# with or without modifications, as long as this notice is preserved.
1051
1052# AM_PROG_INSTALL_SH
1053# ------------------
1054# Define $install_sh.
1055AC_DEFUN([AM_PROG_INSTALL_SH],
1056[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
37f5420c 1057if test x"${install_sh+set}" != xset; then
9931e273
DB
1058 case $am_aux_dir in
1059 *\ * | *\ *)
1060 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1061 *)
1062 install_sh="\${SHELL} $am_aux_dir/install-sh"
1063 esac
1064fi
d6ba7c28 1065AC_SUBST([install_sh])])
9931e273 1066
37f5420c 1067# Copyright (C) 2003-2014 Free Software Foundation, Inc.
9931e273
DB
1068#
1069# This file is free software; the Free Software Foundation
1070# gives unlimited permission to copy and/or distribute it,
1071# with or without modifications, as long as this notice is preserved.
1072
9931e273
DB
1073# Check whether the underlying file-system supports filenames
1074# with a leading dot. For instance MS-DOS doesn't.
1075AC_DEFUN([AM_SET_LEADING_DOT],
1076[rm -rf .tst 2>/dev/null
1077mkdir .tst 2>/dev/null
1078if test -d .tst; then
1079 am__leading_dot=.
1080else
1081 am__leading_dot=_
1082fi
1083rmdir .tst 2>/dev/null
1084AC_SUBST([am__leading_dot])])
1085
1086# Check to see how 'make' treats includes. -*- Autoconf -*-
1087
37f5420c 1088# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9931e273
DB
1089#
1090# This file is free software; the Free Software Foundation
1091# gives unlimited permission to copy and/or distribute it,
1092# with or without modifications, as long as this notice is preserved.
1093
9931e273
DB
1094# AM_MAKE_INCLUDE()
1095# -----------------
1096# Check to see how make treats includes.
1097AC_DEFUN([AM_MAKE_INCLUDE],
1098[am_make=${MAKE-make}
1099cat > confinc << 'END'
1100am__doit:
1101 @echo this is the am__doit target
1102.PHONY: am__doit
1103END
1104# If we don't find an include directive, just comment out the code.
1105AC_MSG_CHECKING([for style of include used by $am_make])
1106am__include="#"
1107am__quote=
1108_am_result=none
1109# First try GNU make style include.
1110echo "include confinc" > confmf
d6ba7c28 1111# Ignore all kinds of additional output from 'make'.
9931e273
DB
1112case `$am_make -s -f confmf 2> /dev/null` in #(
1113*the\ am__doit\ target*)
1114 am__include=include
1115 am__quote=
1116 _am_result=GNU
1117 ;;
1118esac
1119# Now try BSD make style include.
1120if test "$am__include" = "#"; then
1121 echo '.include "confinc"' > confmf
1122 case `$am_make -s -f confmf 2> /dev/null` in #(
1123 *the\ am__doit\ target*)
1124 am__include=.include
1125 am__quote="\""
1126 _am_result=BSD
1127 ;;
1128 esac
1129fi
1130AC_SUBST([am__include])
1131AC_SUBST([am__quote])
1132AC_MSG_RESULT([$_am_result])
1133rm -f confinc confmf
1134])
1135
9931e273
DB
1136# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1137
37f5420c 1138# Copyright (C) 1997-2014 Free Software Foundation, Inc.
9931e273
DB
1139#
1140# This file is free software; the Free Software Foundation
1141# gives unlimited permission to copy and/or distribute it,
1142# with or without modifications, as long as this notice is preserved.
1143
9931e273
DB
1144# AM_MISSING_PROG(NAME, PROGRAM)
1145# ------------------------------
1146AC_DEFUN([AM_MISSING_PROG],
1147[AC_REQUIRE([AM_MISSING_HAS_RUN])
1148$1=${$1-"${am_missing_run}$2"}
1149AC_SUBST($1)])
1150
9931e273
DB
1151# AM_MISSING_HAS_RUN
1152# ------------------
d6ba7c28
AG
1153# Define MISSING if not defined so far and test if it is modern enough.
1154# If it is, set am_missing_run to use it, otherwise, to nothing.
9931e273
DB
1155AC_DEFUN([AM_MISSING_HAS_RUN],
1156[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1157AC_REQUIRE_AUX_FILE([missing])dnl
1158if test x"${MISSING+set}" != xset; then
1159 case $am_aux_dir in
1160 *\ * | *\ *)
1161 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1162 *)
1163 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1164 esac
1165fi
1166# Use eval to expand $SHELL
d6ba7c28
AG
1167if eval "$MISSING --is-lightweight"; then
1168 am_missing_run="$MISSING "
9931e273
DB
1169else
1170 am_missing_run=
d6ba7c28 1171 AC_MSG_WARN(['missing' script is too old or missing])
9931e273
DB
1172fi
1173])
1174
9931e273
DB
1175# Helper functions for option handling. -*- Autoconf -*-
1176
37f5420c 1177# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9931e273
DB
1178#
1179# This file is free software; the Free Software Foundation
1180# gives unlimited permission to copy and/or distribute it,
1181# with or without modifications, as long as this notice is preserved.
1182
9931e273
DB
1183# _AM_MANGLE_OPTION(NAME)
1184# -----------------------
1185AC_DEFUN([_AM_MANGLE_OPTION],
1186[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1187
1188# _AM_SET_OPTION(NAME)
d6ba7c28 1189# --------------------
9931e273
DB
1190# Set option NAME. Presently that only means defining a flag for this option.
1191AC_DEFUN([_AM_SET_OPTION],
d6ba7c28 1192[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
9931e273
DB
1193
1194# _AM_SET_OPTIONS(OPTIONS)
d6ba7c28 1195# ------------------------
9931e273
DB
1196# OPTIONS is a space-separated list of Automake options.
1197AC_DEFUN([_AM_SET_OPTIONS],
1198[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1199
1200# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1201# -------------------------------------------
1202# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1203AC_DEFUN([_AM_IF_OPTION],
1204[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1205
37f5420c 1206# Copyright (C) 1999-2014 Free Software Foundation, Inc.
c8e553a1
AG
1207#
1208# This file is free software; the Free Software Foundation
1209# gives unlimited permission to copy and/or distribute it,
1210# with or without modifications, as long as this notice is preserved.
1211
1212# _AM_PROG_CC_C_O
1213# ---------------
1214# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1215# to automatically call this.
1216AC_DEFUN([_AM_PROG_CC_C_O],
1217[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1218AC_REQUIRE_AUX_FILE([compile])dnl
1219AC_LANG_PUSH([C])dnl
1220AC_CACHE_CHECK(
1221 [whether $CC understands -c and -o together],
1222 [am_cv_prog_cc_c_o],
1223 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1224 # Make sure it works both with $CC and with simple cc.
1225 # Following AC_PROG_CC_C_O, we do the test twice because some
1226 # compilers refuse to overwrite an existing .o file with -o,
1227 # though they will create one.
1228 am_cv_prog_cc_c_o=yes
1229 for am_i in 1 2; do
1230 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1231 && test -f conftest2.$ac_objext; then
1232 : OK
1233 else
1234 am_cv_prog_cc_c_o=no
1235 break
1236 fi
1237 done
1238 rm -f core conftest*
1239 unset am_i])
1240if test "$am_cv_prog_cc_c_o" != yes; then
1241 # Losing compiler, so override with the script.
1242 # FIXME: It is wrong to rewrite CC.
1243 # But if we don't then we get into trouble of one sort or another.
1244 # A longer-term fix would be to have automake use am__CC in this case,
1245 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1246 CC="$am_aux_dir/compile $CC"
1247fi
1248AC_LANG_POP([C])])
1249
1250# For backward compatibility.
1251AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1252
37f5420c 1253# Copyright (C) 2001-2014 Free Software Foundation, Inc.
c8e553a1
AG
1254#
1255# This file is free software; the Free Software Foundation
1256# gives unlimited permission to copy and/or distribute it,
1257# with or without modifications, as long as this notice is preserved.
1258
1259# AM_RUN_LOG(COMMAND)
1260# -------------------
1261# Run COMMAND, save the exit status in ac_status, and log it.
1262# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1263AC_DEFUN([AM_RUN_LOG],
1264[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1265 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1266 ac_status=$?
1267 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1268 (exit $ac_status); }])
1269
9931e273
DB
1270# Check to make sure that the build environment is sane. -*- Autoconf -*-
1271
37f5420c 1272# Copyright (C) 1996-2014 Free Software Foundation, Inc.
9931e273
DB
1273#
1274# This file is free software; the Free Software Foundation
1275# gives unlimited permission to copy and/or distribute it,
1276# with or without modifications, as long as this notice is preserved.
1277
9931e273
DB
1278# AM_SANITY_CHECK
1279# ---------------
1280AC_DEFUN([AM_SANITY_CHECK],
1281[AC_MSG_CHECKING([whether build environment is sane])
9931e273
DB
1282# Reject unsafe characters in $srcdir or the absolute working directory
1283# name. Accept space and tab only in the latter.
1284am_lf='
1285'
1286case `pwd` in
1287 *[[\\\"\#\$\&\'\`$am_lf]]*)
1288 AC_MSG_ERROR([unsafe absolute working directory name]);;
1289esac
1290case $srcdir in
1291 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
d6ba7c28 1292 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
9931e273
DB
1293esac
1294
d6ba7c28 1295# Do 'set' in a subshell so we don't clobber the current shell's
9931e273
DB
1296# arguments. Must try -L first in case configure is actually a
1297# symlink; some systems play weird games with the mod time of symlinks
1298# (eg FreeBSD returns the mod time of the symlink's containing
1299# directory).
1300if (
d6ba7c28
AG
1301 am_has_slept=no
1302 for am_try in 1 2; do
1303 echo "timestamp, slept: $am_has_slept" > conftest.file
1304 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1305 if test "$[*]" = "X"; then
1306 # -L didn't work.
1307 set X `ls -t "$srcdir/configure" conftest.file`
1308 fi
1309 if test "$[*]" != "X $srcdir/configure conftest.file" \
1310 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1311
1312 # If neither matched, then we have a broken ls. This can happen
1313 # if, for instance, CONFIG_SHELL is bash and it inherits a
1314 # broken ls alias from the environment. This has actually
1315 # happened. Such a system could not be considered "sane".
1316 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1317 alias in your environment])
1318 fi
1319 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1320 break
1321 fi
1322 # Just in case.
1323 sleep 1
1324 am_has_slept=yes
1325 done
9931e273
DB
1326 test "$[2]" = conftest.file
1327 )
1328then
1329 # Ok.
1330 :
1331else
1332 AC_MSG_ERROR([newly created file is older than distributed files!
1333Check your system clock])
1334fi
d6ba7c28
AG
1335AC_MSG_RESULT([yes])
1336# If we didn't sleep, we still need to ensure time stamps of config.status and
1337# generated files are strictly newer.
1338am_sleep_pid=
1339if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1340 ( sleep 1 ) &
1341 am_sleep_pid=$!
1342fi
1343AC_CONFIG_COMMANDS_PRE(
1344 [AC_MSG_CHECKING([that generated files are newer than configure])
1345 if test -n "$am_sleep_pid"; then
1346 # Hide warnings about reused PIDs.
1347 wait $am_sleep_pid 2>/dev/null
1348 fi
1349 AC_MSG_RESULT([done])])
1350rm -f conftest.file
1351])
1352
37f5420c 1353# Copyright (C) 2009-2014 Free Software Foundation, Inc.
d6ba7c28
AG
1354#
1355# This file is free software; the Free Software Foundation
1356# gives unlimited permission to copy and/or distribute it,
1357# with or without modifications, as long as this notice is preserved.
1358
1359# AM_SILENT_RULES([DEFAULT])
1360# --------------------------
1361# Enable less verbose build rules; with the default set to DEFAULT
1362# ("yes" being less verbose, "no" or empty being verbose).
1363AC_DEFUN([AM_SILENT_RULES],
1364[AC_ARG_ENABLE([silent-rules], [dnl
1365AS_HELP_STRING(
1366 [--enable-silent-rules],
1367 [less verbose build output (undo: "make V=1")])
1368AS_HELP_STRING(
1369 [--disable-silent-rules],
1370 [verbose build output (undo: "make V=0")])dnl
1371])
1372case $enable_silent_rules in @%:@ (((
1373 yes) AM_DEFAULT_VERBOSITY=0;;
1374 no) AM_DEFAULT_VERBOSITY=1;;
1375 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1376esac
1377dnl
1378dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1379dnl do not support nested variable expansions.
1380dnl See automake bug#9928 and bug#10237.
1381am_make=${MAKE-make}
1382AC_CACHE_CHECK([whether $am_make supports nested variables],
1383 [am_cv_make_support_nested_variables],
1384 [if AS_ECHO([['TRUE=$(BAR$(V))
1385BAR0=false
1386BAR1=true
1387V=1
1388am__doit:
1389 @$(TRUE)
1390.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1391 am_cv_make_support_nested_variables=yes
1392else
1393 am_cv_make_support_nested_variables=no
1394fi])
1395if test $am_cv_make_support_nested_variables = yes; then
1396 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1397 AM_V='$(V)'
1398 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1399else
1400 AM_V=$AM_DEFAULT_VERBOSITY
1401 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1402fi
1403AC_SUBST([AM_V])dnl
1404AM_SUBST_NOTMAKE([AM_V])dnl
1405AC_SUBST([AM_DEFAULT_V])dnl
1406AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1407AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1408AM_BACKSLASH='\'
1409AC_SUBST([AM_BACKSLASH])dnl
1410_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1411])
9931e273 1412
37f5420c 1413# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9931e273
DB
1414#
1415# This file is free software; the Free Software Foundation
1416# gives unlimited permission to copy and/or distribute it,
1417# with or without modifications, as long as this notice is preserved.
1418
1419# AM_PROG_INSTALL_STRIP
1420# ---------------------
d6ba7c28 1421# One issue with vendor 'install' (even GNU) is that you can't
9931e273
DB
1422# specify the program used to strip binaries. This is especially
1423# annoying in cross-compiling environments, where the build's strip
1424# is unlikely to handle the host's binaries.
1425# Fortunately install-sh will honor a STRIPPROG variable, so we
d6ba7c28 1426# always use install-sh in "make install-strip", and initialize
9931e273
DB
1427# STRIPPROG with the value of the STRIP variable (set by the user).
1428AC_DEFUN([AM_PROG_INSTALL_STRIP],
1429[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
d6ba7c28
AG
1430# Installed binaries are usually stripped using 'strip' when the user
1431# run "make install-strip". However 'strip' might not be the right
9931e273 1432# tool to use in cross-compilation environments, therefore Automake
d6ba7c28
AG
1433# will honor the 'STRIP' environment variable to overrule this program.
1434dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
9931e273
DB
1435if test "$cross_compiling" != no; then
1436 AC_CHECK_TOOL([STRIP], [strip], :)
1437fi
1438INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1439AC_SUBST([INSTALL_STRIP_PROGRAM])])
1440
37f5420c 1441# Copyright (C) 2006-2014 Free Software Foundation, Inc.
9931e273
DB
1442#
1443# This file is free software; the Free Software Foundation
1444# gives unlimited permission to copy and/or distribute it,
1445# with or without modifications, as long as this notice is preserved.
1446
9931e273
DB
1447# _AM_SUBST_NOTMAKE(VARIABLE)
1448# ---------------------------
1449# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1450# This macro is traced by Automake.
1451AC_DEFUN([_AM_SUBST_NOTMAKE])
1452
1453# AM_SUBST_NOTMAKE(VARIABLE)
d6ba7c28 1454# --------------------------
9931e273
DB
1455# Public sister of _AM_SUBST_NOTMAKE.
1456AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1457
1458# Check how to create a tarball. -*- Autoconf -*-
1459
37f5420c 1460# Copyright (C) 2004-2014 Free Software Foundation, Inc.
9931e273
DB
1461#
1462# This file is free software; the Free Software Foundation
1463# gives unlimited permission to copy and/or distribute it,
1464# with or without modifications, as long as this notice is preserved.
1465
9931e273
DB
1466# _AM_PROG_TAR(FORMAT)
1467# --------------------
1468# Check how to create a tarball in format FORMAT.
d6ba7c28 1469# FORMAT should be one of 'v7', 'ustar', or 'pax'.
9931e273
DB
1470#
1471# Substitute a variable $(am__tar) that is a command
1472# writing to stdout a FORMAT-tarball containing the directory
1473# $tardir.
1474# tardir=directory && $(am__tar) > result.tar
1475#
1476# Substitute a variable $(am__untar) that extract such
1477# a tarball read from stdin.
1478# $(am__untar) < result.tar
d6ba7c28 1479#
9931e273 1480AC_DEFUN([_AM_PROG_TAR],
d6ba7c28
AG
1481[# Always define AMTAR for backward compatibility. Yes, it's still used
1482# in the wild :-( We should find a proper way to deprecate it ...
1483AC_SUBST([AMTAR], ['$${TAR-tar}'])
1484
1485# We'll loop over all known methods to create a tar archive until one works.
9931e273 1486_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9931e273 1487
d6ba7c28
AG
1488m4_if([$1], [v7],
1489 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1490
1491 [m4_case([$1],
1492 [ustar],
1493 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1494 # There is notably a 21 bits limit for the UID and the GID. In fact,
1495 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1496 # and bug#13588).
1497 am_max_uid=2097151 # 2^21 - 1
1498 am_max_gid=$am_max_uid
1499 # The $UID and $GID variables are not portable, so we need to resort
1500 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1501 # below are definitely unexpected, so allow the users to see them
1502 # (that is, avoid stderr redirection).
1503 am_uid=`id -u || echo unknown`
1504 am_gid=`id -g || echo unknown`
1505 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1506 if test $am_uid -le $am_max_uid; then
1507 AC_MSG_RESULT([yes])
1508 else
1509 AC_MSG_RESULT([no])
1510 _am_tools=none
1511 fi
1512 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1513 if test $am_gid -le $am_max_gid; then
1514 AC_MSG_RESULT([yes])
1515 else
1516 AC_MSG_RESULT([no])
1517 _am_tools=none
1518 fi],
1519
1520 [pax],
1521 [],
1522
1523 [m4_fatal([Unknown tar format])])
1524
1525 AC_MSG_CHECKING([how to create a $1 tar archive])
1526
1527 # Go ahead even if we have the value already cached. We do so because we
1528 # need to set the values for the 'am__tar' and 'am__untar' variables.
1529 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1530
1531 for _am_tool in $_am_tools; do
1532 case $_am_tool in
1533 gnutar)
1534 for _am_tar in tar gnutar gtar; do
1535 AM_RUN_LOG([$_am_tar --version]) && break
1536 done
1537 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1538 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1539 am__untar="$_am_tar -xf -"
1540 ;;
1541 plaintar)
1542 # Must skip GNU tar: if it does not support --format= it doesn't create
1543 # ustar tarball either.
1544 (tar --version) >/dev/null 2>&1 && continue
1545 am__tar='tar chf - "$$tardir"'
1546 am__tar_='tar chf - "$tardir"'
1547 am__untar='tar xf -'
1548 ;;
1549 pax)
1550 am__tar='pax -L -x $1 -w "$$tardir"'
1551 am__tar_='pax -L -x $1 -w "$tardir"'
1552 am__untar='pax -r'
1553 ;;
1554 cpio)
1555 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1556 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1557 am__untar='cpio -i -H $1 -d'
1558 ;;
1559 none)
1560 am__tar=false
1561 am__tar_=false
1562 am__untar=false
1563 ;;
1564 esac
9931e273 1565
d6ba7c28
AG
1566 # If the value was cached, stop now. We just wanted to have am__tar
1567 # and am__untar set.
1568 test -n "${am_cv_prog_tar_$1}" && break
1569
1570 # tar/untar a dummy directory, and stop if the command works.
1571 rm -rf conftest.dir
1572 mkdir conftest.dir
1573 echo GrepMe > conftest.dir/file
1574 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1575 rm -rf conftest.dir
1576 if test -s conftest.tar; then
1577 AM_RUN_LOG([$am__untar <conftest.tar])
1578 AM_RUN_LOG([cat conftest.dir/file])
1579 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1580 fi
1581 done
9931e273 1582 rm -rf conftest.dir
9931e273 1583
d6ba7c28
AG
1584 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1585 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1586
9931e273
DB
1587AC_SUBST([am__tar])
1588AC_SUBST([am__untar])
1589]) # _AM_PROG_TAR
1590