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