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