"Fossies" - the Fresh Open Source Software Archive

Member "msmtp-1.8.4/aclocal.m4" (24 Apr 2019, 148301 Bytes) of package /linux/privat/msmtp-1.8.4.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "aclocal.m4": 1.6.8_vs_1.8.0.

    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 
   14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
   15 m4_ifndef([AC_AUTOCONF_VERSION],
   16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
   18 [m4_warning([this file was generated for autoconf 2.69.
   19 You have another version of autoconf.  It may work, but is not guaranteed to.
   20 If you have problems, you may need to regenerate the build system entirely.
   21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
   22 
   23 # gettext.m4 serial 68 (gettext-0.19.8)
   24 dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
   25 dnl This file is free software; the Free Software Foundation
   26 dnl gives unlimited permission to copy and/or distribute it,
   27 dnl with or without modifications, as long as this notice is preserved.
   28 dnl
   29 dnl This file can be used in projects which are not available under
   30 dnl the GNU General Public License or the GNU Library General Public
   31 dnl License but which still want to provide support for the GNU gettext
   32 dnl functionality.
   33 dnl Please note that the actual code of the GNU gettext library is covered
   34 dnl by the GNU Library General Public License, and the rest of the GNU
   35 dnl gettext package is covered by the GNU General Public License.
   36 dnl They are *not* in the public domain.
   37 
   38 dnl Authors:
   39 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
   40 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
   41 
   42 dnl Macro to add for using GNU gettext.
   43 
   44 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
   45 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
   46 dnl    default (if it is not specified or empty) is 'no-libtool'.
   47 dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
   48 dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
   49 dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
   50 dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
   51 dnl    depending on --{enable,disable}-{shared,static} and on the presence of
   52 dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
   53 dnl    $(top_builddir)/intl/libintl.a will be created.
   54 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
   55 dnl    implementations (in libc or libintl) without the ngettext() function
   56 dnl    will be ignored.  If NEEDSYMBOL is specified and is
   57 dnl    'need-formatstring-macros', then GNU gettext implementations that don't
   58 dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
   59 dnl INTLDIR is used to find the intl libraries.  If empty,
   60 dnl    the value '$(top_builddir)/intl/' is used.
   61 dnl
   62 dnl The result of the configuration is one of three cases:
   63 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
   64 dnl    and used.
   65 dnl    Catalog format: GNU --> install in $(datadir)
   66 dnl    Catalog extension: .mo after installation, .gmo in source tree
   67 dnl 2) GNU gettext has been found in the system's C library.
   68 dnl    Catalog format: GNU --> install in $(datadir)
   69 dnl    Catalog extension: .mo after installation, .gmo in source tree
   70 dnl 3) No internationalization, always use English msgid.
   71 dnl    Catalog format: none
   72 dnl    Catalog extension: none
   73 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
   74 dnl The use of .gmo is historical (it was needed to avoid overwriting the
   75 dnl GNU format catalogs when building on a platform with an X/Open gettext),
   76 dnl but we keep it in order not to force irrelevant filename changes on the
   77 dnl maintainers.
   78 dnl
   79 AC_DEFUN([AM_GNU_GETTEXT],
   80 [
   81   dnl Argument checking.
   82   ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
   83     [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
   84 ])])])])])
   85   ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
   86     [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
   87   ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
   88     [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
   89 ])])])])
   90   define([gt_included_intl],
   91     ifelse([$1], [external],
   92       ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
   93       [yes]))
   94   define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
   95   gt_NEEDS_INIT
   96   AM_GNU_GETTEXT_NEED([$2])
   97 
   98   AC_REQUIRE([AM_PO_SUBDIRS])dnl
   99   ifelse(gt_included_intl, yes, [
  100     AC_REQUIRE([AM_INTL_SUBDIR])dnl
  101   ])
  102 
  103   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  104   AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  105   AC_REQUIRE([AC_LIB_RPATH])
  106 
  107   dnl Sometimes libintl requires libiconv, so first search for libiconv.
  108   dnl Ideally we would do this search only after the
  109   dnl      if test "$USE_NLS" = "yes"; then
  110   dnl        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  111   dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
  112   dnl the configure script would need to contain the same shell code
  113   dnl again, outside any 'if'. There are two solutions:
  114   dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
  115   dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
  116   dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
  117   dnl documented, we avoid it.
  118   ifelse(gt_included_intl, yes, , [
  119     AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  120   ])
  121 
  122   dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
  123   gt_INTL_MACOSX
  124 
  125   dnl Set USE_NLS.
  126   AC_REQUIRE([AM_NLS])
  127 
  128   ifelse(gt_included_intl, yes, [
  129     BUILD_INCLUDED_LIBINTL=no
  130     USE_INCLUDED_LIBINTL=no
  131   ])
  132   LIBINTL=
  133   LTLIBINTL=
  134   POSUB=
  135 
  136   dnl Add a version number to the cache macros.
  137   case " $gt_needs " in
  138     *" need-formatstring-macros "*) gt_api_version=3 ;;
  139     *" need-ngettext "*) gt_api_version=2 ;;
  140     *) gt_api_version=1 ;;
  141   esac
  142   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  143   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  144 
  145   dnl If we use NLS figure out what method
  146   if test "$USE_NLS" = "yes"; then
  147     gt_use_preinstalled_gnugettext=no
  148     ifelse(gt_included_intl, yes, [
  149       AC_MSG_CHECKING([whether included gettext is requested])
  150       AC_ARG_WITH([included-gettext],
  151         [  --with-included-gettext use the GNU gettext library included here],
  152         nls_cv_force_use_gnu_gettext=$withval,
  153         nls_cv_force_use_gnu_gettext=no)
  154       AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
  155 
  156       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  157       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  158     ])
  159         dnl User does not insist on using GNU NLS library.  Figure out what
  160         dnl to use.  If GNU gettext is available we use this.  Else we have
  161         dnl to fall back to GNU NLS library.
  162 
  163         if test $gt_api_version -ge 3; then
  164           gt_revision_test_code='
  165 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  166 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  167 #endif
  168 changequote(,)dnl
  169 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  170 changequote([,])dnl
  171 '
  172         else
  173           gt_revision_test_code=
  174         fi
  175         if test $gt_api_version -ge 2; then
  176           gt_expression_test_code=' + * ngettext ("", "", 0)'
  177         else
  178           gt_expression_test_code=
  179         fi
  180 
  181         AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
  182          [AC_LINK_IFELSE(
  183             [AC_LANG_PROGRAM(
  184                [[
  185 #include <libintl.h>
  186 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  187 extern int _nl_msg_cat_cntr;
  188 extern int *_nl_domain_bindings;
  189 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
  190 #else
  191 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  192 #endif
  193 $gt_revision_test_code
  194                ]],
  195                [[
  196 bindtextdomain ("", "");
  197 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  198                ]])],
  199             [eval "$gt_func_gnugettext_libc=yes"],
  200             [eval "$gt_func_gnugettext_libc=no"])])
  201 
  202         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  203           dnl Sometimes libintl requires libiconv, so first search for libiconv.
  204           ifelse(gt_included_intl, yes, , [
  205             AM_ICONV_LINK
  206           ])
  207           dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
  208           dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
  209           dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
  210           dnl even if libiconv doesn't exist.
  211           AC_LIB_LINKFLAGS_BODY([intl])
  212           AC_CACHE_CHECK([for GNU gettext in libintl],
  213             [$gt_func_gnugettext_libintl],
  214            [gt_save_CPPFLAGS="$CPPFLAGS"
  215             CPPFLAGS="$CPPFLAGS $INCINTL"
  216             gt_save_LIBS="$LIBS"
  217             LIBS="$LIBS $LIBINTL"
  218             dnl Now see whether libintl exists and does not depend on libiconv.
  219             AC_LINK_IFELSE(
  220               [AC_LANG_PROGRAM(
  221                  [[
  222 #include <libintl.h>
  223 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  224 extern int _nl_msg_cat_cntr;
  225 extern
  226 #ifdef __cplusplus
  227 "C"
  228 #endif
  229 const char *_nl_expand_alias (const char *);
  230 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  231 #else
  232 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  233 #endif
  234 $gt_revision_test_code
  235                  ]],
  236                  [[
  237 bindtextdomain ("", "");
  238 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  239                  ]])],
  240               [eval "$gt_func_gnugettext_libintl=yes"],
  241               [eval "$gt_func_gnugettext_libintl=no"])
  242             dnl Now see whether libintl exists and depends on libiconv.
  243             if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  244               LIBS="$LIBS $LIBICONV"
  245               AC_LINK_IFELSE(
  246                 [AC_LANG_PROGRAM(
  247                    [[
  248 #include <libintl.h>
  249 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  250 extern int _nl_msg_cat_cntr;
  251 extern
  252 #ifdef __cplusplus
  253 "C"
  254 #endif
  255 const char *_nl_expand_alias (const char *);
  256 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  257 #else
  258 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  259 #endif
  260 $gt_revision_test_code
  261                    ]],
  262                    [[
  263 bindtextdomain ("", "");
  264 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  265                    ]])],
  266                 [LIBINTL="$LIBINTL $LIBICONV"
  267                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  268                  eval "$gt_func_gnugettext_libintl=yes"
  269                 ])
  270             fi
  271             CPPFLAGS="$gt_save_CPPFLAGS"
  272             LIBS="$gt_save_LIBS"])
  273         fi
  274 
  275         dnl If an already present or preinstalled GNU gettext() is found,
  276         dnl use it.  But if this macro is used in GNU gettext, and GNU
  277         dnl gettext is already preinstalled in libintl, we update this
  278         dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
  279         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  280            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  281                 && test "$PACKAGE" != gettext-runtime \
  282                 && test "$PACKAGE" != gettext-tools; }; then
  283           gt_use_preinstalled_gnugettext=yes
  284         else
  285           dnl Reset the values set by searching for libintl.
  286           LIBINTL=
  287           LTLIBINTL=
  288           INCINTL=
  289         fi
  290 
  291     ifelse(gt_included_intl, yes, [
  292         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  293           dnl GNU gettext is not found in the C library.
  294           dnl Fall back on included GNU gettext library.
  295           nls_cv_use_gnu_gettext=yes
  296         fi
  297       fi
  298 
  299       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  300         dnl Mark actions used to generate GNU NLS library.
  301         BUILD_INCLUDED_LIBINTL=yes
  302         USE_INCLUDED_LIBINTL=yes
  303         LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
  304         LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
  305         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  306       fi
  307 
  308       CATOBJEXT=
  309       if test "$gt_use_preinstalled_gnugettext" = "yes" \
  310          || test "$nls_cv_use_gnu_gettext" = "yes"; then
  311         dnl Mark actions to use GNU gettext tools.
  312         CATOBJEXT=.gmo
  313       fi
  314     ])
  315 
  316     if test -n "$INTL_MACOSX_LIBS"; then
  317       if test "$gt_use_preinstalled_gnugettext" = "yes" \
  318          || test "$nls_cv_use_gnu_gettext" = "yes"; then
  319         dnl Some extra flags are needed during linking.
  320         LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  321         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  322       fi
  323     fi
  324 
  325     if test "$gt_use_preinstalled_gnugettext" = "yes" \
  326        || test "$nls_cv_use_gnu_gettext" = "yes"; then
  327       AC_DEFINE([ENABLE_NLS], [1],
  328         [Define to 1 if translation of program messages to the user's native language
  329    is requested.])
  330     else
  331       USE_NLS=no
  332     fi
  333   fi
  334 
  335   AC_MSG_CHECKING([whether to use NLS])
  336   AC_MSG_RESULT([$USE_NLS])
  337   if test "$USE_NLS" = "yes"; then
  338     AC_MSG_CHECKING([where the gettext function comes from])
  339     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  340       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  341         gt_source="external libintl"
  342       else
  343         gt_source="libc"
  344       fi
  345     else
  346       gt_source="included intl directory"
  347     fi
  348     AC_MSG_RESULT([$gt_source])
  349   fi
  350 
  351   if test "$USE_NLS" = "yes"; then
  352 
  353     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  354       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  355         AC_MSG_CHECKING([how to link with libintl])
  356         AC_MSG_RESULT([$LIBINTL])
  357         AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
  358       fi
  359 
  360       dnl For backward compatibility. Some packages may be using this.
  361       AC_DEFINE([HAVE_GETTEXT], [1],
  362        [Define if the GNU gettext() function is already present or preinstalled.])
  363       AC_DEFINE([HAVE_DCGETTEXT], [1],
  364        [Define if the GNU dcgettext() function is already present or preinstalled.])
  365     fi
  366 
  367     dnl We need to process the po/ directory.
  368     POSUB=po
  369   fi
  370 
  371   ifelse(gt_included_intl, yes, [
  372     dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
  373     dnl to 'yes' because some of the testsuite requires it.
  374     if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  375       BUILD_INCLUDED_LIBINTL=yes
  376     fi
  377 
  378     dnl Make all variables we use known to autoconf.
  379     AC_SUBST([BUILD_INCLUDED_LIBINTL])
  380     AC_SUBST([USE_INCLUDED_LIBINTL])
  381     AC_SUBST([CATOBJEXT])
  382 
  383     dnl For backward compatibility. Some configure.ins may be using this.
  384     nls_cv_header_intl=
  385     nls_cv_header_libgt=
  386 
  387     dnl For backward compatibility. Some Makefiles may be using this.
  388     DATADIRNAME=share
  389     AC_SUBST([DATADIRNAME])
  390 
  391     dnl For backward compatibility. Some Makefiles may be using this.
  392     INSTOBJEXT=.mo
  393     AC_SUBST([INSTOBJEXT])
  394 
  395     dnl For backward compatibility. Some Makefiles may be using this.
  396     GENCAT=gencat
  397     AC_SUBST([GENCAT])
  398 
  399     dnl For backward compatibility. Some Makefiles may be using this.
  400     INTLOBJS=
  401     if test "$USE_INCLUDED_LIBINTL" = yes; then
  402       INTLOBJS="\$(GETTOBJS)"
  403     fi
  404     AC_SUBST([INTLOBJS])
  405 
  406     dnl Enable libtool support if the surrounding package wishes it.
  407     INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
  408     AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
  409   ])
  410 
  411   dnl For backward compatibility. Some Makefiles may be using this.
  412   INTLLIBS="$LIBINTL"
  413   AC_SUBST([INTLLIBS])
  414 
  415   dnl Make all documented variables known to autoconf.
  416   AC_SUBST([LIBINTL])
  417   AC_SUBST([LTLIBINTL])
  418   AC_SUBST([POSUB])
  419 ])
  420 
  421 
  422 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
  423 m4_define([gt_NEEDS_INIT],
  424 [
  425   m4_divert_text([DEFAULTS], [gt_needs=])
  426   m4_define([gt_NEEDS_INIT], [])
  427 ])
  428 
  429 
  430 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
  431 AC_DEFUN([AM_GNU_GETTEXT_NEED],
  432 [
  433   m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
  434 ])
  435 
  436 
  437 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
  438 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
  439 
  440 
  441 dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version])
  442 AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], [])
  443 
  444 # iconv.m4 serial 19 (gettext-0.18.2)
  445 dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc.
  446 dnl This file is free software; the Free Software Foundation
  447 dnl gives unlimited permission to copy and/or distribute it,
  448 dnl with or without modifications, as long as this notice is preserved.
  449 
  450 dnl From Bruno Haible.
  451 
  452 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
  453 [
  454   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  455   AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  456   AC_REQUIRE([AC_LIB_RPATH])
  457 
  458   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  459   dnl accordingly.
  460   AC_LIB_LINKFLAGS_BODY([iconv])
  461 ])
  462 
  463 AC_DEFUN([AM_ICONV_LINK],
  464 [
  465   dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
  466   dnl those with the standalone portable GNU libiconv installed).
  467   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
  468 
  469   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  470   dnl accordingly.
  471   AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  472 
  473   dnl Add $INCICONV to CPPFLAGS before performing the following checks,
  474   dnl because if the user has installed libiconv and not disabled its use
  475   dnl via --without-libiconv-prefix, he wants to use it. The first
  476   dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
  477   am_save_CPPFLAGS="$CPPFLAGS"
  478   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
  479 
  480   AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
  481     am_cv_func_iconv="no, consider installing GNU libiconv"
  482     am_cv_lib_iconv=no
  483     AC_LINK_IFELSE(
  484       [AC_LANG_PROGRAM(
  485          [[
  486 #include <stdlib.h>
  487 #include <iconv.h>
  488          ]],
  489          [[iconv_t cd = iconv_open("","");
  490            iconv(cd,NULL,NULL,NULL,NULL);
  491            iconv_close(cd);]])],
  492       [am_cv_func_iconv=yes])
  493     if test "$am_cv_func_iconv" != yes; then
  494       am_save_LIBS="$LIBS"
  495       LIBS="$LIBS $LIBICONV"
  496       AC_LINK_IFELSE(
  497         [AC_LANG_PROGRAM(
  498            [[
  499 #include <stdlib.h>
  500 #include <iconv.h>
  501            ]],
  502            [[iconv_t cd = iconv_open("","");
  503              iconv(cd,NULL,NULL,NULL,NULL);
  504              iconv_close(cd);]])],
  505         [am_cv_lib_iconv=yes]
  506         [am_cv_func_iconv=yes])
  507       LIBS="$am_save_LIBS"
  508     fi
  509   ])
  510   if test "$am_cv_func_iconv" = yes; then
  511     AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
  512       dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
  513       dnl Solaris 10.
  514       am_save_LIBS="$LIBS"
  515       if test $am_cv_lib_iconv = yes; then
  516         LIBS="$LIBS $LIBICONV"
  517       fi
  518       am_cv_func_iconv_works=no
  519       for ac_iconv_const in '' 'const'; do
  520         AC_RUN_IFELSE(
  521           [AC_LANG_PROGRAM(
  522              [[
  523 #include <iconv.h>
  524 #include <string.h>
  525 
  526 #ifndef ICONV_CONST
  527 # define ICONV_CONST $ac_iconv_const
  528 #endif
  529              ]],
  530              [[int result = 0;
  531   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  532      returns.  */
  533   {
  534     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  535     if (cd_utf8_to_88591 != (iconv_t)(-1))
  536       {
  537         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
  538         char buf[10];
  539         ICONV_CONST char *inptr = input;
  540         size_t inbytesleft = strlen (input);
  541         char *outptr = buf;
  542         size_t outbytesleft = sizeof (buf);
  543         size_t res = iconv (cd_utf8_to_88591,
  544                             &inptr, &inbytesleft,
  545                             &outptr, &outbytesleft);
  546         if (res == 0)
  547           result |= 1;
  548         iconv_close (cd_utf8_to_88591);
  549       }
  550   }
  551   /* Test against Solaris 10 bug: Failures are not distinguishable from
  552      successful returns.  */
  553   {
  554     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  555     if (cd_ascii_to_88591 != (iconv_t)(-1))
  556       {
  557         static ICONV_CONST char input[] = "\263";
  558         char buf[10];
  559         ICONV_CONST char *inptr = input;
  560         size_t inbytesleft = strlen (input);
  561         char *outptr = buf;
  562         size_t outbytesleft = sizeof (buf);
  563         size_t res = iconv (cd_ascii_to_88591,
  564                             &inptr, &inbytesleft,
  565                             &outptr, &outbytesleft);
  566         if (res == 0)
  567           result |= 2;
  568         iconv_close (cd_ascii_to_88591);
  569       }
  570   }
  571   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
  572   {
  573     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  574     if (cd_88591_to_utf8 != (iconv_t)(-1))
  575       {
  576         static ICONV_CONST char input[] = "\304";
  577         static char buf[2] = { (char)0xDE, (char)0xAD };
  578         ICONV_CONST char *inptr = input;
  579         size_t inbytesleft = 1;
  580         char *outptr = buf;
  581         size_t outbytesleft = 1;
  582         size_t res = iconv (cd_88591_to_utf8,
  583                             &inptr, &inbytesleft,
  584                             &outptr, &outbytesleft);
  585         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  586           result |= 4;
  587         iconv_close (cd_88591_to_utf8);
  588       }
  589   }
  590 #if 0 /* This bug could be worked around by the caller.  */
  591   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
  592   {
  593     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  594     if (cd_88591_to_utf8 != (iconv_t)(-1))
  595       {
  596         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  597         char buf[50];
  598         ICONV_CONST char *inptr = input;
  599         size_t inbytesleft = strlen (input);
  600         char *outptr = buf;
  601         size_t outbytesleft = sizeof (buf);
  602         size_t res = iconv (cd_88591_to_utf8,
  603                             &inptr, &inbytesleft,
  604                             &outptr, &outbytesleft);
  605         if ((int)res > 0)
  606           result |= 8;
  607         iconv_close (cd_88591_to_utf8);
  608       }
  609   }
  610 #endif
  611   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  612      provided.  */
  613   if (/* Try standardized names.  */
  614       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  615       /* Try IRIX, OSF/1 names.  */
  616       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  617       /* Try AIX names.  */
  618       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  619       /* Try HP-UX names.  */
  620       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  621     result |= 16;
  622   return result;
  623 ]])],
  624           [am_cv_func_iconv_works=yes], ,
  625           [case "$host_os" in
  626              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  627              *)            am_cv_func_iconv_works="guessing yes" ;;
  628            esac])
  629         test "$am_cv_func_iconv_works" = no || break
  630       done
  631       LIBS="$am_save_LIBS"
  632     ])
  633     case "$am_cv_func_iconv_works" in
  634       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  635       *)   am_func_iconv=yes ;;
  636     esac
  637   else
  638     am_func_iconv=no am_cv_lib_iconv=no
  639   fi
  640   if test "$am_func_iconv" = yes; then
  641     AC_DEFINE([HAVE_ICONV], [1],
  642       [Define if you have the iconv() function and it works.])
  643   fi
  644   if test "$am_cv_lib_iconv" = yes; then
  645     AC_MSG_CHECKING([how to link with libiconv])
  646     AC_MSG_RESULT([$LIBICONV])
  647   else
  648     dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
  649     dnl either.
  650     CPPFLAGS="$am_save_CPPFLAGS"
  651     LIBICONV=
  652     LTLIBICONV=
  653   fi
  654   AC_SUBST([LIBICONV])
  655   AC_SUBST([LTLIBICONV])
  656 ])
  657 
  658 dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
  659 dnl avoid warnings like
  660 dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
  661 dnl This is tricky because of the way 'aclocal' is implemented:
  662 dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
  663 dnl   Otherwise aclocal's initial scan pass would miss the macro definition.
  664 dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
  665 dnl   Otherwise aclocal would emit many "Use of uninitialized value $1"
  666 dnl   warnings.
  667 m4_define([gl_iconv_AC_DEFUN],
  668   m4_version_prereq([2.64],
  669     [[AC_DEFUN_ONCE(
  670         [$1], [$2])]],
  671     [m4_ifdef([gl_00GNULIB],
  672        [[AC_DEFUN_ONCE(
  673            [$1], [$2])]],
  674        [[AC_DEFUN(
  675            [$1], [$2])]])]))
  676 gl_iconv_AC_DEFUN([AM_ICONV],
  677 [
  678   AM_ICONV_LINK
  679   if test "$am_cv_func_iconv" = yes; then
  680     AC_MSG_CHECKING([for iconv declaration])
  681     AC_CACHE_VAL([am_cv_proto_iconv], [
  682       AC_COMPILE_IFELSE(
  683         [AC_LANG_PROGRAM(
  684            [[
  685 #include <stdlib.h>
  686 #include <iconv.h>
  687 extern
  688 #ifdef __cplusplus
  689 "C"
  690 #endif
  691 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
  692 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  693 #else
  694 size_t iconv();
  695 #endif
  696            ]],
  697            [[]])],
  698         [am_cv_proto_iconv_arg1=""],
  699         [am_cv_proto_iconv_arg1="const"])
  700       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
  701     am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  702     AC_MSG_RESULT([
  703          $am_cv_proto_iconv])
  704     AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
  705       [Define as const if the declaration of iconv() needs const.])
  706     dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
  707     m4_ifdef([gl_ICONV_H_DEFAULTS],
  708       [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
  709        if test -n "$am_cv_proto_iconv_arg1"; then
  710          ICONV_CONST="const"
  711        fi
  712       ])
  713   fi
  714 ])
  715 
  716 # intlmacosx.m4 serial 5 (gettext-0.18.2)
  717 dnl Copyright (C) 2004-2014, 2016 Free Software Foundation, Inc.
  718 dnl This file is free software; the Free Software Foundation
  719 dnl gives unlimited permission to copy and/or distribute it,
  720 dnl with or without modifications, as long as this notice is preserved.
  721 dnl
  722 dnl This file can be used in projects which are not available under
  723 dnl the GNU General Public License or the GNU Library General Public
  724 dnl License but which still want to provide support for the GNU gettext
  725 dnl functionality.
  726 dnl Please note that the actual code of the GNU gettext library is covered
  727 dnl by the GNU Library General Public License, and the rest of the GNU
  728 dnl gettext package is covered by the GNU General Public License.
  729 dnl They are *not* in the public domain.
  730 
  731 dnl Checks for special options needed on Mac OS X.
  732 dnl Defines INTL_MACOSX_LIBS.
  733 AC_DEFUN([gt_INTL_MACOSX],
  734 [
  735   dnl Check for API introduced in Mac OS X 10.2.
  736   AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
  737     [gt_cv_func_CFPreferencesCopyAppValue],
  738     [gt_save_LIBS="$LIBS"
  739      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  740      AC_LINK_IFELSE(
  741        [AC_LANG_PROGRAM(
  742           [[#include <CoreFoundation/CFPreferences.h>]],
  743           [[CFPreferencesCopyAppValue(NULL, NULL)]])],
  744        [gt_cv_func_CFPreferencesCopyAppValue=yes],
  745        [gt_cv_func_CFPreferencesCopyAppValue=no])
  746      LIBS="$gt_save_LIBS"])
  747   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  748     AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
  749       [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
  750   fi
  751   dnl Check for API introduced in Mac OS X 10.3.
  752   AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
  753     [gt_save_LIBS="$LIBS"
  754      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  755      AC_LINK_IFELSE(
  756        [AC_LANG_PROGRAM(
  757           [[#include <CoreFoundation/CFLocale.h>]],
  758           [[CFLocaleCopyCurrent();]])],
  759        [gt_cv_func_CFLocaleCopyCurrent=yes],
  760        [gt_cv_func_CFLocaleCopyCurrent=no])
  761      LIBS="$gt_save_LIBS"])
  762   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  763     AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
  764       [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
  765   fi
  766   INTL_MACOSX_LIBS=
  767   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  768     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  769   fi
  770   AC_SUBST([INTL_MACOSX_LIBS])
  771 ])
  772 
  773 # lib-ld.m4 serial 6
  774 dnl Copyright (C) 1996-2003, 2009-2016 Free Software Foundation, Inc.
  775 dnl This file is free software; the Free Software Foundation
  776 dnl gives unlimited permission to copy and/or distribute it,
  777 dnl with or without modifications, as long as this notice is preserved.
  778 
  779 dnl Subroutines of libtool.m4,
  780 dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid
  781 dnl collision with libtool.m4.
  782 
  783 dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no.
  784 AC_DEFUN([AC_LIB_PROG_LD_GNU],
  785 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
  786 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  787 case `$LD -v 2>&1 </dev/null` in
  788 *GNU* | *'with BFD'*)
  789   acl_cv_prog_gnu_ld=yes
  790   ;;
  791 *)
  792   acl_cv_prog_gnu_ld=no
  793   ;;
  794 esac])
  795 with_gnu_ld=$acl_cv_prog_gnu_ld
  796 ])
  797 
  798 dnl From libtool-2.4. Sets the variable LD.
  799 AC_DEFUN([AC_LIB_PROG_LD],
  800 [AC_REQUIRE([AC_PROG_CC])dnl
  801 AC_REQUIRE([AC_CANONICAL_HOST])dnl
  802 
  803 AC_ARG_WITH([gnu-ld],
  804     [AS_HELP_STRING([--with-gnu-ld],
  805         [assume the C compiler uses GNU ld [default=no]])],
  806     [test "$withval" = no || with_gnu_ld=yes],
  807     [with_gnu_ld=no])dnl
  808 
  809 # Prepare PATH_SEPARATOR.
  810 # The user is always right.
  811 if test "${PATH_SEPARATOR+set}" != set; then
  812   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  813   # contains only /bin. Note that ksh looks also at the FPATH variable,
  814   # so we have to set that as well for the test.
  815   PATH_SEPARATOR=:
  816   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  817     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  818            || PATH_SEPARATOR=';'
  819        }
  820 fi
  821 
  822 ac_prog=ld
  823 if test "$GCC" = yes; then
  824   # Check if gcc -print-prog-name=ld gives a path.
  825   AC_MSG_CHECKING([for ld used by $CC])
  826   case $host in
  827   *-*-mingw*)
  828     # gcc leaves a trailing carriage return which upsets mingw
  829     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  830   *)
  831     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  832   esac
  833   case $ac_prog in
  834     # Accept absolute paths.
  835     [[\\/]]* | ?:[[\\/]]*)
  836       re_direlt='/[[^/]][[^/]]*/\.\./'
  837       # Canonicalize the pathname of ld
  838       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
  839       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
  840         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  841       done
  842       test -z "$LD" && LD="$ac_prog"
  843       ;;
  844   "")
  845     # If it fails, then pretend we aren't using GCC.
  846     ac_prog=ld
  847     ;;
  848   *)
  849     # If it is relative, then search for the first ld in PATH.
  850     with_gnu_ld=unknown
  851     ;;
  852   esac
  853 elif test "$with_gnu_ld" = yes; then
  854   AC_MSG_CHECKING([for GNU ld])
  855 else
  856   AC_MSG_CHECKING([for non-GNU ld])
  857 fi
  858 AC_CACHE_VAL([acl_cv_path_LD],
  859 [if test -z "$LD"; then
  860   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  861   for ac_dir in $PATH; do
  862     IFS="$acl_save_ifs"
  863     test -z "$ac_dir" && ac_dir=.
  864     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  865       acl_cv_path_LD="$ac_dir/$ac_prog"
  866       # Check to see if the program is GNU ld.  I'd rather use --version,
  867       # but apparently some variants of GNU ld only accept -v.
  868       # Break only if it was the GNU/non-GNU ld that we prefer.
  869       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
  870       *GNU* | *'with BFD'*)
  871         test "$with_gnu_ld" != no && break
  872         ;;
  873       *)
  874         test "$with_gnu_ld" != yes && break
  875         ;;
  876       esac
  877     fi
  878   done
  879   IFS="$acl_save_ifs"
  880 else
  881   acl_cv_path_LD="$LD" # Let the user override the test with a path.
  882 fi])
  883 LD="$acl_cv_path_LD"
  884 if test -n "$LD"; then
  885   AC_MSG_RESULT([$LD])
  886 else
  887   AC_MSG_RESULT([no])
  888 fi
  889 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  890 AC_LIB_PROG_LD_GNU
  891 ])
  892 
  893 # lib-link.m4 serial 26 (gettext-0.18.2)
  894 dnl Copyright (C) 2001-2016 Free Software Foundation, Inc.
  895 dnl This file is free software; the Free Software Foundation
  896 dnl gives unlimited permission to copy and/or distribute it,
  897 dnl with or without modifications, as long as this notice is preserved.
  898 
  899 dnl From Bruno Haible.
  900 
  901 AC_PREREQ([2.54])
  902 
  903 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  904 dnl the libraries corresponding to explicit and implicit dependencies.
  905 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  906 dnl augments the CPPFLAGS variable.
  907 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  908 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  909 AC_DEFUN([AC_LIB_LINKFLAGS],
  910 [
  911   AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  912   AC_REQUIRE([AC_LIB_RPATH])
  913   pushdef([Name],[m4_translit([$1],[./+-], [____])])
  914   pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
  915                                    [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  916   AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  917     AC_LIB_LINKFLAGS_BODY([$1], [$2])
  918     ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  919     ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  920     ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  921     ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
  922   ])
  923   LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  924   LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  925   INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  926   LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
  927   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  928   AC_SUBST([LIB]NAME)
  929   AC_SUBST([LTLIB]NAME)
  930   AC_SUBST([LIB]NAME[_PREFIX])
  931   dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  932   dnl results of this search when this library appears as a dependency.
  933   HAVE_LIB[]NAME=yes
  934   popdef([NAME])
  935   popdef([Name])
  936 ])
  937 
  938 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
  939 dnl searches for libname and the libraries corresponding to explicit and
  940 dnl implicit dependencies, together with the specified include files and
  941 dnl the ability to compile and link the specified testcode. The missing-message
  942 dnl defaults to 'no' and may contain additional hints for the user.
  943 dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
  944 dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  945 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  946 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  947 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  948 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  949 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  950 [
  951   AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  952   AC_REQUIRE([AC_LIB_RPATH])
  953   pushdef([Name],[m4_translit([$1],[./+-], [____])])
  954   pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
  955                                    [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  956 
  957   dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  958   dnl accordingly.
  959   AC_LIB_LINKFLAGS_BODY([$1], [$2])
  960 
  961   dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  962   dnl because if the user has installed lib[]Name and not disabled its use
  963   dnl via --without-lib[]Name-prefix, he wants to use it.
  964   ac_save_CPPFLAGS="$CPPFLAGS"
  965   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  966 
  967   AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  968     ac_save_LIBS="$LIBS"
  969     dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
  970     dnl because these -l options might require -L options that are present in
  971     dnl LIBS. -l options benefit only from the -L options listed before it.
  972     dnl Otherwise, add it to the front of LIBS, because it may be a static
  973     dnl library that depends on another static library that is present in LIBS.
  974     dnl Static libraries benefit only from the static libraries listed after
  975     dnl it.
  976     case " $LIB[]NAME" in
  977       *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
  978       *)       LIBS="$LIB[]NAME $LIBS" ;;
  979     esac
  980     AC_LINK_IFELSE(
  981       [AC_LANG_PROGRAM([[$3]], [[$4]])],
  982       [ac_cv_lib[]Name=yes],
  983       [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
  984     LIBS="$ac_save_LIBS"
  985   ])
  986   if test "$ac_cv_lib[]Name" = yes; then
  987     HAVE_LIB[]NAME=yes
  988     AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
  989     AC_MSG_CHECKING([how to link with lib[]$1])
  990     AC_MSG_RESULT([$LIB[]NAME])
  991   else
  992     HAVE_LIB[]NAME=no
  993     dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  994     dnl $INC[]NAME either.
  995     CPPFLAGS="$ac_save_CPPFLAGS"
  996     LIB[]NAME=
  997     LTLIB[]NAME=
  998     LIB[]NAME[]_PREFIX=
  999   fi
 1000   AC_SUBST([HAVE_LIB]NAME)
 1001   AC_SUBST([LIB]NAME)
 1002   AC_SUBST([LTLIB]NAME)
 1003   AC_SUBST([LIB]NAME[_PREFIX])
 1004   popdef([NAME])
 1005   popdef([Name])
 1006 ])
 1007 
 1008 dnl Determine the platform dependent parameters needed to use rpath:
 1009 dnl   acl_libext,
 1010 dnl   acl_shlibext,
 1011 dnl   acl_libname_spec,
 1012 dnl   acl_library_names_spec,
 1013 dnl   acl_hardcode_libdir_flag_spec,
 1014 dnl   acl_hardcode_libdir_separator,
 1015 dnl   acl_hardcode_direct,
 1016 dnl   acl_hardcode_minus_L.
 1017 AC_DEFUN([AC_LIB_RPATH],
 1018 [
 1019   dnl Tell automake >= 1.10 to complain if config.rpath is missing.
 1020   m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
 1021   AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
 1022   AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
 1023   AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
 1024   AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
 1025   AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
 1026     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 1027     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 1028     . ./conftest.sh
 1029     rm -f ./conftest.sh
 1030     acl_cv_rpath=done
 1031   ])
 1032   wl="$acl_cv_wl"
 1033   acl_libext="$acl_cv_libext"
 1034   acl_shlibext="$acl_cv_shlibext"
 1035   acl_libname_spec="$acl_cv_libname_spec"
 1036   acl_library_names_spec="$acl_cv_library_names_spec"
 1037   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 1038   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 1039   acl_hardcode_direct="$acl_cv_hardcode_direct"
 1040   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 1041   dnl Determine whether the user wants rpath handling at all.
 1042   AC_ARG_ENABLE([rpath],
 1043     [  --disable-rpath         do not hardcode runtime library paths],
 1044     :, enable_rpath=yes)
 1045 ])
 1046 
 1047 dnl AC_LIB_FROMPACKAGE(name, package)
 1048 dnl declares that libname comes from the given package. The configure file
 1049 dnl will then not have a --with-libname-prefix option but a
 1050 dnl --with-package-prefix option. Several libraries can come from the same
 1051 dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
 1052 dnl macro call that searches for libname.
 1053 AC_DEFUN([AC_LIB_FROMPACKAGE],
 1054 [
 1055   pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
 1056                                    [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
 1057   define([acl_frompackage_]NAME, [$2])
 1058   popdef([NAME])
 1059   pushdef([PACK],[$2])
 1060   pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
 1061                                      [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
 1062   define([acl_libsinpackage_]PACKUP,
 1063     m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
 1064   popdef([PACKUP])
 1065   popdef([PACK])
 1066 ])
 1067 
 1068 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
 1069 dnl the libraries corresponding to explicit and implicit dependencies.
 1070 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
 1071 dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
 1072 dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
 1073 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
 1074 [
 1075   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 1076   pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
 1077                                    [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
 1078   pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
 1079   pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
 1080                                      [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
 1081   pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
 1082   dnl Autoconf >= 2.61 supports dots in --with options.
 1083   pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
 1084   dnl By default, look in $includedir and $libdir.
 1085   use_additional=yes
 1086   AC_LIB_WITH_FINAL_PREFIX([
 1087     eval additional_includedir=\"$includedir\"
 1088     eval additional_libdir=\"$libdir\"
 1089   ])
 1090   AC_ARG_WITH(P_A_C_K[-prefix],
 1091 [[  --with-]]P_A_C_K[[-prefix[=DIR]  search for ]PACKLIBS[ in DIR/include and DIR/lib
 1092   --without-]]P_A_C_K[[-prefix     don't search for ]PACKLIBS[ in includedir and libdir]],
 1093 [
 1094     if test "X$withval" = "Xno"; then
 1095       use_additional=no
 1096     else
 1097       if test "X$withval" = "X"; then
 1098         AC_LIB_WITH_FINAL_PREFIX([
 1099           eval additional_includedir=\"$includedir\"
 1100           eval additional_libdir=\"$libdir\"
 1101         ])
 1102       else
 1103         additional_includedir="$withval/include"
 1104         additional_libdir="$withval/$acl_libdirstem"
 1105         if test "$acl_libdirstem2" != "$acl_libdirstem" \
 1106            && ! test -d "$withval/$acl_libdirstem"; then
 1107           additional_libdir="$withval/$acl_libdirstem2"
 1108         fi
 1109       fi
 1110     fi
 1111 ])
 1112   dnl Search the library and its dependencies in $additional_libdir and
 1113   dnl $LDFLAGS. Using breadth-first-seach.
 1114   LIB[]NAME=
 1115   LTLIB[]NAME=
 1116   INC[]NAME=
 1117   LIB[]NAME[]_PREFIX=
 1118   dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
 1119   dnl computed. So it has to be reset here.
 1120   HAVE_LIB[]NAME=
 1121   rpathdirs=
 1122   ltrpathdirs=
 1123   names_already_handled=
 1124   names_next_round='$1 $2'
 1125   while test -n "$names_next_round"; do
 1126     names_this_round="$names_next_round"
 1127     names_next_round=
 1128     for name in $names_this_round; do
 1129       already_handled=
 1130       for n in $names_already_handled; do
 1131         if test "$n" = "$name"; then
 1132           already_handled=yes
 1133           break
 1134         fi
 1135       done
 1136       if test -z "$already_handled"; then
 1137         names_already_handled="$names_already_handled $name"
 1138         dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
 1139         dnl or AC_LIB_HAVE_LINKFLAGS call.
 1140         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
 1141         eval value=\"\$HAVE_LIB$uppername\"
 1142         if test -n "$value"; then
 1143           if test "$value" = yes; then
 1144             eval value=\"\$LIB$uppername\"
 1145             test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
 1146             eval value=\"\$LTLIB$uppername\"
 1147             test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
 1148           else
 1149             dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
 1150             dnl that this library doesn't exist. So just drop it.
 1151             :
 1152           fi
 1153         else
 1154           dnl Search the library lib$name in $additional_libdir and $LDFLAGS
 1155           dnl and the already constructed $LIBNAME/$LTLIBNAME.
 1156           found_dir=
 1157           found_la=
 1158           found_so=
 1159           found_a=
 1160           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 1161           if test -n "$acl_shlibext"; then
 1162             shrext=".$acl_shlibext"             # typically: shrext=.so
 1163           else
 1164             shrext=
 1165           fi
 1166           if test $use_additional = yes; then
 1167             dir="$additional_libdir"
 1168             dnl The same code as in the loop below:
 1169             dnl First look for a shared library.
 1170             if test -n "$acl_shlibext"; then
 1171               if test -f "$dir/$libname$shrext"; then
 1172                 found_dir="$dir"
 1173                 found_so="$dir/$libname$shrext"
 1174               else
 1175                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 1176                   ver=`(cd "$dir" && \
 1177                         for f in "$libname$shrext".*; do echo "$f"; done \
 1178                         | sed -e "s,^$libname$shrext\\\\.,," \
 1179                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 1180                         | sed 1q ) 2>/dev/null`
 1181                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 1182                     found_dir="$dir"
 1183                     found_so="$dir/$libname$shrext.$ver"
 1184                   fi
 1185                 else
 1186                   eval library_names=\"$acl_library_names_spec\"
 1187                   for f in $library_names; do
 1188                     if test -f "$dir/$f"; then
 1189                       found_dir="$dir"
 1190                       found_so="$dir/$f"
 1191                       break
 1192                     fi
 1193                   done
 1194                 fi
 1195               fi
 1196             fi
 1197             dnl Then look for a static library.
 1198             if test "X$found_dir" = "X"; then
 1199               if test -f "$dir/$libname.$acl_libext"; then
 1200                 found_dir="$dir"
 1201                 found_a="$dir/$libname.$acl_libext"
 1202               fi
 1203             fi
 1204             if test "X$found_dir" != "X"; then
 1205               if test -f "$dir/$libname.la"; then
 1206                 found_la="$dir/$libname.la"
 1207               fi
 1208             fi
 1209           fi
 1210           if test "X$found_dir" = "X"; then
 1211             for x in $LDFLAGS $LTLIB[]NAME; do
 1212               AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1213               case "$x" in
 1214                 -L*)
 1215                   dir=`echo "X$x" | sed -e 's/^X-L//'`
 1216                   dnl First look for a shared library.
 1217                   if test -n "$acl_shlibext"; then
 1218                     if test -f "$dir/$libname$shrext"; then
 1219                       found_dir="$dir"
 1220                       found_so="$dir/$libname$shrext"
 1221                     else
 1222                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 1223                         ver=`(cd "$dir" && \
 1224                               for f in "$libname$shrext".*; do echo "$f"; done \
 1225                               | sed -e "s,^$libname$shrext\\\\.,," \
 1226                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 1227                               | sed 1q ) 2>/dev/null`
 1228                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 1229                           found_dir="$dir"
 1230                           found_so="$dir/$libname$shrext.$ver"
 1231                         fi
 1232                       else
 1233                         eval library_names=\"$acl_library_names_spec\"
 1234                         for f in $library_names; do
 1235                           if test -f "$dir/$f"; then
 1236                             found_dir="$dir"
 1237                             found_so="$dir/$f"
 1238                             break
 1239                           fi
 1240                         done
 1241                       fi
 1242                     fi
 1243                   fi
 1244                   dnl Then look for a static library.
 1245                   if test "X$found_dir" = "X"; then
 1246                     if test -f "$dir/$libname.$acl_libext"; then
 1247                       found_dir="$dir"
 1248                       found_a="$dir/$libname.$acl_libext"
 1249                     fi
 1250                   fi
 1251                   if test "X$found_dir" != "X"; then
 1252                     if test -f "$dir/$libname.la"; then
 1253                       found_la="$dir/$libname.la"
 1254                     fi
 1255                   fi
 1256                   ;;
 1257               esac
 1258               if test "X$found_dir" != "X"; then
 1259                 break
 1260               fi
 1261             done
 1262           fi
 1263           if test "X$found_dir" != "X"; then
 1264             dnl Found the library.
 1265             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
 1266             if test "X$found_so" != "X"; then
 1267               dnl Linking with a shared library. We attempt to hardcode its
 1268               dnl directory into the executable's runpath, unless it's the
 1269               dnl standard /usr/lib.
 1270               if test "$enable_rpath" = no \
 1271                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 1272                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 1273                 dnl No hardcoding is needed.
 1274                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 1275               else
 1276                 dnl Use an explicit option to hardcode DIR into the resulting
 1277                 dnl binary.
 1278                 dnl Potentially add DIR to ltrpathdirs.
 1279                 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
 1280                 haveit=
 1281                 for x in $ltrpathdirs; do
 1282                   if test "X$x" = "X$found_dir"; then
 1283                     haveit=yes
 1284                     break
 1285                   fi
 1286                 done
 1287                 if test -z "$haveit"; then
 1288                   ltrpathdirs="$ltrpathdirs $found_dir"
 1289                 fi
 1290                 dnl The hardcoding into $LIBNAME is system dependent.
 1291                 if test "$acl_hardcode_direct" = yes; then
 1292                   dnl Using DIR/libNAME.so during linking hardcodes DIR into the
 1293                   dnl resulting binary.
 1294                   LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 1295                 else
 1296                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 1297                     dnl Use an explicit option to hardcode DIR into the resulting
 1298                     dnl binary.
 1299                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 1300                     dnl Potentially add DIR to rpathdirs.
 1301                     dnl The rpathdirs will be appended to $LIBNAME at the end.
 1302                     haveit=
 1303                     for x in $rpathdirs; do
 1304                       if test "X$x" = "X$found_dir"; then
 1305                         haveit=yes
 1306                         break
 1307                       fi
 1308                     done
 1309                     if test -z "$haveit"; then
 1310                       rpathdirs="$rpathdirs $found_dir"
 1311                     fi
 1312                   else
 1313                     dnl Rely on "-L$found_dir".
 1314                     dnl But don't add it if it's already contained in the LDFLAGS
 1315                     dnl or the already constructed $LIBNAME
 1316                     haveit=
 1317                     for x in $LDFLAGS $LIB[]NAME; do
 1318                       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1319                       if test "X$x" = "X-L$found_dir"; then
 1320                         haveit=yes
 1321                         break
 1322                       fi
 1323                     done
 1324                     if test -z "$haveit"; then
 1325                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
 1326                     fi
 1327                     if test "$acl_hardcode_minus_L" != no; then
 1328                       dnl FIXME: Not sure whether we should use
 1329                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
 1330                       dnl here.
 1331                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
 1332                     else
 1333                       dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
 1334                       dnl here, because this doesn't fit in flags passed to the
 1335                       dnl compiler. So give up. No hardcoding. This affects only
 1336                       dnl very old systems.
 1337                       dnl FIXME: Not sure whether we should use
 1338                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
 1339                       dnl here.
 1340                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
 1341                     fi
 1342                   fi
 1343                 fi
 1344               fi
 1345             else
 1346               if test "X$found_a" != "X"; then
 1347                 dnl Linking with a static library.
 1348                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
 1349               else
 1350                 dnl We shouldn't come here, but anyway it's good to have a
 1351                 dnl fallback.
 1352                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
 1353               fi
 1354             fi
 1355             dnl Assume the include files are nearby.
 1356             additional_includedir=
 1357             case "$found_dir" in
 1358               */$acl_libdirstem | */$acl_libdirstem/)
 1359                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 1360                 if test "$name" = '$1'; then
 1361                   LIB[]NAME[]_PREFIX="$basedir"
 1362                 fi
 1363                 additional_includedir="$basedir/include"
 1364                 ;;
 1365               */$acl_libdirstem2 | */$acl_libdirstem2/)
 1366                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 1367                 if test "$name" = '$1'; then
 1368                   LIB[]NAME[]_PREFIX="$basedir"
 1369                 fi
 1370                 additional_includedir="$basedir/include"
 1371                 ;;
 1372             esac
 1373             if test "X$additional_includedir" != "X"; then
 1374               dnl Potentially add $additional_includedir to $INCNAME.
 1375               dnl But don't add it
 1376               dnl   1. if it's the standard /usr/include,
 1377               dnl   2. if it's /usr/local/include and we are using GCC on Linux,
 1378               dnl   3. if it's already present in $CPPFLAGS or the already
 1379               dnl      constructed $INCNAME,
 1380               dnl   4. if it doesn't exist as a directory.
 1381               if test "X$additional_includedir" != "X/usr/include"; then
 1382                 haveit=
 1383                 if test "X$additional_includedir" = "X/usr/local/include"; then
 1384                   if test -n "$GCC"; then
 1385                     case $host_os in
 1386                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 1387                     esac
 1388                   fi
 1389                 fi
 1390                 if test -z "$haveit"; then
 1391                   for x in $CPPFLAGS $INC[]NAME; do
 1392                     AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1393                     if test "X$x" = "X-I$additional_includedir"; then
 1394                       haveit=yes
 1395                       break
 1396                     fi
 1397                   done
 1398                   if test -z "$haveit"; then
 1399                     if test -d "$additional_includedir"; then
 1400                       dnl Really add $additional_includedir to $INCNAME.
 1401                       INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
 1402                     fi
 1403                   fi
 1404                 fi
 1405               fi
 1406             fi
 1407             dnl Look for dependencies.
 1408             if test -n "$found_la"; then
 1409               dnl Read the .la file. It defines the variables
 1410               dnl dlname, library_names, old_library, dependency_libs, current,
 1411               dnl age, revision, installed, dlopen, dlpreopen, libdir.
 1412               save_libdir="$libdir"
 1413               case "$found_la" in
 1414                 */* | *\\*) . "$found_la" ;;
 1415                 *) . "./$found_la" ;;
 1416               esac
 1417               libdir="$save_libdir"
 1418               dnl We use only dependency_libs.
 1419               for dep in $dependency_libs; do
 1420                 case "$dep" in
 1421                   -L*)
 1422                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 1423                     dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
 1424                     dnl But don't add it
 1425                     dnl   1. if it's the standard /usr/lib,
 1426                     dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
 1427                     dnl   3. if it's already present in $LDFLAGS or the already
 1428                     dnl      constructed $LIBNAME,
 1429                     dnl   4. if it doesn't exist as a directory.
 1430                     if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 1431                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 1432                       haveit=
 1433                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 1434                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 1435                         if test -n "$GCC"; then
 1436                           case $host_os in
 1437                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 1438                           esac
 1439                         fi
 1440                       fi
 1441                       if test -z "$haveit"; then
 1442                         haveit=
 1443                         for x in $LDFLAGS $LIB[]NAME; do
 1444                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1445                           if test "X$x" = "X-L$additional_libdir"; then
 1446                             haveit=yes
 1447                             break
 1448                           fi
 1449                         done
 1450                         if test -z "$haveit"; then
 1451                           if test -d "$additional_libdir"; then
 1452                             dnl Really add $additional_libdir to $LIBNAME.
 1453                             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
 1454                           fi
 1455                         fi
 1456                         haveit=
 1457                         for x in $LDFLAGS $LTLIB[]NAME; do
 1458                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1459                           if test "X$x" = "X-L$additional_libdir"; then
 1460                             haveit=yes
 1461                             break
 1462                           fi
 1463                         done
 1464                         if test -z "$haveit"; then
 1465                           if test -d "$additional_libdir"; then
 1466                             dnl Really add $additional_libdir to $LTLIBNAME.
 1467                             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
 1468                           fi
 1469                         fi
 1470                       fi
 1471                     fi
 1472                     ;;
 1473                   -R*)
 1474                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
 1475                     if test "$enable_rpath" != no; then
 1476                       dnl Potentially add DIR to rpathdirs.
 1477                       dnl The rpathdirs will be appended to $LIBNAME at the end.
 1478                       haveit=
 1479                       for x in $rpathdirs; do
 1480                         if test "X$x" = "X$dir"; then
 1481                           haveit=yes
 1482                           break
 1483                         fi
 1484                       done
 1485                       if test -z "$haveit"; then
 1486                         rpathdirs="$rpathdirs $dir"
 1487                       fi
 1488                       dnl Potentially add DIR to ltrpathdirs.
 1489                       dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
 1490                       haveit=
 1491                       for x in $ltrpathdirs; do
 1492                         if test "X$x" = "X$dir"; then
 1493                           haveit=yes
 1494                           break
 1495                         fi
 1496                       done
 1497                       if test -z "$haveit"; then
 1498                         ltrpathdirs="$ltrpathdirs $dir"
 1499                       fi
 1500                     fi
 1501                     ;;
 1502                   -l*)
 1503                     dnl Handle this in the next round.
 1504                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 1505                     ;;
 1506                   *.la)
 1507                     dnl Handle this in the next round. Throw away the .la's
 1508                     dnl directory; it is already contained in a preceding -L
 1509                     dnl option.
 1510                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 1511                     ;;
 1512                   *)
 1513                     dnl Most likely an immediate library name.
 1514                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
 1515                     LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
 1516                     ;;
 1517                 esac
 1518               done
 1519             fi
 1520           else
 1521             dnl Didn't find the library; assume it is in the system directories
 1522             dnl known to the linker and runtime loader. (All the system
 1523             dnl directories known to the linker should also be known to the
 1524             dnl runtime loader, otherwise the system is severely misconfigured.)
 1525             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
 1526             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
 1527           fi
 1528         fi
 1529       fi
 1530     done
 1531   done
 1532   if test "X$rpathdirs" != "X"; then
 1533     if test -n "$acl_hardcode_libdir_separator"; then
 1534       dnl Weird platform: only the last -rpath option counts, the user must
 1535       dnl pass all path elements in one option. We can arrange that for a
 1536       dnl single library, but not when more than one $LIBNAMEs are used.
 1537       alldirs=
 1538       for found_dir in $rpathdirs; do
 1539         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 1540       done
 1541       dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
 1542       acl_save_libdir="$libdir"
 1543       libdir="$alldirs"
 1544       eval flag=\"$acl_hardcode_libdir_flag_spec\"
 1545       libdir="$acl_save_libdir"
 1546       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
 1547     else
 1548       dnl The -rpath options are cumulative.
 1549       for found_dir in $rpathdirs; do
 1550         acl_save_libdir="$libdir"
 1551         libdir="$found_dir"
 1552         eval flag=\"$acl_hardcode_libdir_flag_spec\"
 1553         libdir="$acl_save_libdir"
 1554         LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
 1555       done
 1556     fi
 1557   fi
 1558   if test "X$ltrpathdirs" != "X"; then
 1559     dnl When using libtool, the option that works for both libraries and
 1560     dnl executables is -R. The -R options are cumulative.
 1561     for found_dir in $ltrpathdirs; do
 1562       LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
 1563     done
 1564   fi
 1565   popdef([P_A_C_K])
 1566   popdef([PACKLIBS])
 1567   popdef([PACKUP])
 1568   popdef([PACK])
 1569   popdef([NAME])
 1570 ])
 1571 
 1572 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
 1573 dnl unless already present in VAR.
 1574 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
 1575 dnl contains two or three consecutive elements that belong together.
 1576 AC_DEFUN([AC_LIB_APPENDTOVAR],
 1577 [
 1578   for element in [$2]; do
 1579     haveit=
 1580     for x in $[$1]; do
 1581       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1582       if test "X$x" = "X$element"; then
 1583         haveit=yes
 1584         break
 1585       fi
 1586     done
 1587     if test -z "$haveit"; then
 1588       [$1]="${[$1]}${[$1]:+ }$element"
 1589     fi
 1590   done
 1591 ])
 1592 
 1593 dnl For those cases where a variable contains several -L and -l options
 1594 dnl referring to unknown libraries and directories, this macro determines the
 1595 dnl necessary additional linker options for the runtime path.
 1596 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
 1597 dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
 1598 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
 1599 dnl otherwise linking without libtool is assumed.
 1600 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
 1601 [
 1602   AC_REQUIRE([AC_LIB_RPATH])
 1603   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 1604   $1=
 1605   if test "$enable_rpath" != no; then
 1606     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 1607       dnl Use an explicit option to hardcode directories into the resulting
 1608       dnl binary.
 1609       rpathdirs=
 1610       next=
 1611       for opt in $2; do
 1612         if test -n "$next"; then
 1613           dir="$next"
 1614           dnl No need to hardcode the standard /usr/lib.
 1615           if test "X$dir" != "X/usr/$acl_libdirstem" \
 1616              && test "X$dir" != "X/usr/$acl_libdirstem2"; then
 1617             rpathdirs="$rpathdirs $dir"
 1618           fi
 1619           next=
 1620         else
 1621           case $opt in
 1622             -L) next=yes ;;
 1623             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
 1624                  dnl No need to hardcode the standard /usr/lib.
 1625                  if test "X$dir" != "X/usr/$acl_libdirstem" \
 1626                     && test "X$dir" != "X/usr/$acl_libdirstem2"; then
 1627                    rpathdirs="$rpathdirs $dir"
 1628                  fi
 1629                  next= ;;
 1630             *) next= ;;
 1631           esac
 1632         fi
 1633       done
 1634       if test "X$rpathdirs" != "X"; then
 1635         if test -n ""$3""; then
 1636           dnl libtool is used for linking. Use -R options.
 1637           for dir in $rpathdirs; do
 1638             $1="${$1}${$1:+ }-R$dir"
 1639           done
 1640         else
 1641           dnl The linker is used for linking directly.
 1642           if test -n "$acl_hardcode_libdir_separator"; then
 1643             dnl Weird platform: only the last -rpath option counts, the user
 1644             dnl must pass all path elements in one option.
 1645             alldirs=
 1646             for dir in $rpathdirs; do
 1647               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
 1648             done
 1649             acl_save_libdir="$libdir"
 1650             libdir="$alldirs"
 1651             eval flag=\"$acl_hardcode_libdir_flag_spec\"
 1652             libdir="$acl_save_libdir"
 1653             $1="$flag"
 1654           else
 1655             dnl The -rpath options are cumulative.
 1656             for dir in $rpathdirs; do
 1657               acl_save_libdir="$libdir"
 1658               libdir="$dir"
 1659               eval flag=\"$acl_hardcode_libdir_flag_spec\"
 1660               libdir="$acl_save_libdir"
 1661               $1="${$1}${$1:+ }$flag"
 1662             done
 1663           fi
 1664         fi
 1665       fi
 1666     fi
 1667   fi
 1668   AC_SUBST([$1])
 1669 ])
 1670 
 1671 # lib-prefix.m4 serial 7 (gettext-0.18)
 1672 dnl Copyright (C) 2001-2005, 2008-2016 Free Software Foundation, Inc.
 1673 dnl This file is free software; the Free Software Foundation
 1674 dnl gives unlimited permission to copy and/or distribute it,
 1675 dnl with or without modifications, as long as this notice is preserved.
 1676 
 1677 dnl From Bruno Haible.
 1678 
 1679 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
 1680 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
 1681 dnl require excessive bracketing.
 1682 ifdef([AC_HELP_STRING],
 1683 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
 1684 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
 1685 
 1686 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
 1687 dnl to access previously installed libraries. The basic assumption is that
 1688 dnl a user will want packages to use other packages he previously installed
 1689 dnl with the same --prefix option.
 1690 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
 1691 dnl libraries, but is otherwise very convenient.
 1692 AC_DEFUN([AC_LIB_PREFIX],
 1693 [
 1694   AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
 1695   AC_REQUIRE([AC_PROG_CC])
 1696   AC_REQUIRE([AC_CANONICAL_HOST])
 1697   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 1698   AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 1699   dnl By default, look in $includedir and $libdir.
 1700   use_additional=yes
 1701   AC_LIB_WITH_FINAL_PREFIX([
 1702     eval additional_includedir=\"$includedir\"
 1703     eval additional_libdir=\"$libdir\"
 1704   ])
 1705   AC_LIB_ARG_WITH([lib-prefix],
 1706 [  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
 1707   --without-lib-prefix    don't search for libraries in includedir and libdir],
 1708 [
 1709     if test "X$withval" = "Xno"; then
 1710       use_additional=no
 1711     else
 1712       if test "X$withval" = "X"; then
 1713         AC_LIB_WITH_FINAL_PREFIX([
 1714           eval additional_includedir=\"$includedir\"
 1715           eval additional_libdir=\"$libdir\"
 1716         ])
 1717       else
 1718         additional_includedir="$withval/include"
 1719         additional_libdir="$withval/$acl_libdirstem"
 1720       fi
 1721     fi
 1722 ])
 1723   if test $use_additional = yes; then
 1724     dnl Potentially add $additional_includedir to $CPPFLAGS.
 1725     dnl But don't add it
 1726     dnl   1. if it's the standard /usr/include,
 1727     dnl   2. if it's already present in $CPPFLAGS,
 1728     dnl   3. if it's /usr/local/include and we are using GCC on Linux,
 1729     dnl   4. if it doesn't exist as a directory.
 1730     if test "X$additional_includedir" != "X/usr/include"; then
 1731       haveit=
 1732       for x in $CPPFLAGS; do
 1733         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1734         if test "X$x" = "X-I$additional_includedir"; then
 1735           haveit=yes
 1736           break
 1737         fi
 1738       done
 1739       if test -z "$haveit"; then
 1740         if test "X$additional_includedir" = "X/usr/local/include"; then
 1741           if test -n "$GCC"; then
 1742             case $host_os in
 1743               linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 1744             esac
 1745           fi
 1746         fi
 1747         if test -z "$haveit"; then
 1748           if test -d "$additional_includedir"; then
 1749             dnl Really add $additional_includedir to $CPPFLAGS.
 1750             CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
 1751           fi
 1752         fi
 1753       fi
 1754     fi
 1755     dnl Potentially add $additional_libdir to $LDFLAGS.
 1756     dnl But don't add it
 1757     dnl   1. if it's the standard /usr/lib,
 1758     dnl   2. if it's already present in $LDFLAGS,
 1759     dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
 1760     dnl   4. if it doesn't exist as a directory.
 1761     if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 1762       haveit=
 1763       for x in $LDFLAGS; do
 1764         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 1765         if test "X$x" = "X-L$additional_libdir"; then
 1766           haveit=yes
 1767           break
 1768         fi
 1769       done
 1770       if test -z "$haveit"; then
 1771         if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 1772           if test -n "$GCC"; then
 1773             case $host_os in
 1774               linux*) haveit=yes;;
 1775             esac
 1776           fi
 1777         fi
 1778         if test -z "$haveit"; then
 1779           if test -d "$additional_libdir"; then
 1780             dnl Really add $additional_libdir to $LDFLAGS.
 1781             LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
 1782           fi
 1783         fi
 1784       fi
 1785     fi
 1786   fi
 1787 ])
 1788 
 1789 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
 1790 dnl acl_final_exec_prefix, containing the values to which $prefix and
 1791 dnl $exec_prefix will expand at the end of the configure script.
 1792 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
 1793 [
 1794   dnl Unfortunately, prefix and exec_prefix get only finally determined
 1795   dnl at the end of configure.
 1796   if test "X$prefix" = "XNONE"; then
 1797     acl_final_prefix="$ac_default_prefix"
 1798   else
 1799     acl_final_prefix="$prefix"
 1800   fi
 1801   if test "X$exec_prefix" = "XNONE"; then
 1802     acl_final_exec_prefix='${prefix}'
 1803   else
 1804     acl_final_exec_prefix="$exec_prefix"
 1805   fi
 1806   acl_save_prefix="$prefix"
 1807   prefix="$acl_final_prefix"
 1808   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 1809   prefix="$acl_save_prefix"
 1810 ])
 1811 
 1812 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
 1813 dnl variables prefix and exec_prefix bound to the values they will have
 1814 dnl at the end of the configure script.
 1815 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
 1816 [
 1817   acl_save_prefix="$prefix"
 1818   prefix="$acl_final_prefix"
 1819   acl_save_exec_prefix="$exec_prefix"
 1820   exec_prefix="$acl_final_exec_prefix"
 1821   $1
 1822   exec_prefix="$acl_save_exec_prefix"
 1823   prefix="$acl_save_prefix"
 1824 ])
 1825 
 1826 dnl AC_LIB_PREPARE_MULTILIB creates
 1827 dnl - a variable acl_libdirstem, containing the basename of the libdir, either
 1828 dnl   "lib" or "lib64" or "lib/64",
 1829 dnl - a variable acl_libdirstem2, as a secondary possible value for
 1830 dnl   acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
 1831 dnl   "lib/amd64".
 1832 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
 1833 [
 1834   dnl There is no formal standard regarding lib and lib64.
 1835   dnl On glibc systems, the current practice is that on a system supporting
 1836   dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
 1837   dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
 1838   dnl the compiler's default mode by looking at the compiler's library search
 1839   dnl path. If at least one of its elements ends in /lib64 or points to a
 1840   dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
 1841   dnl Otherwise we use the default, namely "lib".
 1842   dnl On Solaris systems, the current practice is that on a system supporting
 1843   dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
 1844   dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
 1845   dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
 1846   AC_REQUIRE([AC_CANONICAL_HOST])
 1847   acl_libdirstem=lib
 1848   acl_libdirstem2=
 1849   case "$host_os" in
 1850     solaris*)
 1851       dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
 1852       dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
 1853       dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
 1854       dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
 1855       dnl symlink is missing, so we set acl_libdirstem2 too.
 1856       AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
 1857         [AC_EGREP_CPP([sixtyfour bits], [
 1858 #ifdef _LP64
 1859 sixtyfour bits
 1860 #endif
 1861            ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
 1862         ])
 1863       if test $gl_cv_solaris_64bit = yes; then
 1864         acl_libdirstem=lib/64
 1865         case "$host_cpu" in
 1866           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 1867           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 1868         esac
 1869       fi
 1870       ;;
 1871     *)
 1872       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 1873       if test -n "$searchpath"; then
 1874         acl_save_IFS="${IFS= 	}"; IFS=":"
 1875         for searchdir in $searchpath; do
 1876           if test -d "$searchdir"; then
 1877             case "$searchdir" in
 1878               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 1879               */../ | */.. )
 1880                 # Better ignore directories of this form. They are misleading.
 1881                 ;;
 1882               *) searchdir=`cd "$searchdir" && pwd`
 1883                  case "$searchdir" in
 1884                    */lib64 ) acl_libdirstem=lib64 ;;
 1885                  esac ;;
 1886             esac
 1887           fi
 1888         done
 1889         IFS="$acl_save_IFS"
 1890       fi
 1891       ;;
 1892   esac
 1893   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 1894 ])
 1895 
 1896 # nls.m4 serial 5 (gettext-0.18)
 1897 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
 1898 dnl Foundation, Inc.
 1899 dnl This file is free software; the Free Software Foundation
 1900 dnl gives unlimited permission to copy and/or distribute it,
 1901 dnl with or without modifications, as long as this notice is preserved.
 1902 dnl
 1903 dnl This file can be used in projects which are not available under
 1904 dnl the GNU General Public License or the GNU Library General Public
 1905 dnl License but which still want to provide support for the GNU gettext
 1906 dnl functionality.
 1907 dnl Please note that the actual code of the GNU gettext library is covered
 1908 dnl by the GNU Library General Public License, and the rest of the GNU
 1909 dnl gettext package is covered by the GNU General Public License.
 1910 dnl They are *not* in the public domain.
 1911 
 1912 dnl Authors:
 1913 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 1914 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 1915 
 1916 AC_PREREQ([2.50])
 1917 
 1918 AC_DEFUN([AM_NLS],
 1919 [
 1920   AC_MSG_CHECKING([whether NLS is requested])
 1921   dnl Default is enabled NLS
 1922   AC_ARG_ENABLE([nls],
 1923     [  --disable-nls           do not use Native Language Support],
 1924     USE_NLS=$enableval, USE_NLS=yes)
 1925   AC_MSG_RESULT([$USE_NLS])
 1926   AC_SUBST([USE_NLS])
 1927 ])
 1928 
 1929 dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
 1930 dnl serial 11 (pkg-config-0.29)
 1931 dnl
 1932 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 1933 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
 1934 dnl
 1935 dnl This program is free software; you can redistribute it and/or modify
 1936 dnl it under the terms of the GNU General Public License as published by
 1937 dnl the Free Software Foundation; either version 2 of the License, or
 1938 dnl (at your option) any later version.
 1939 dnl
 1940 dnl This program is distributed in the hope that it will be useful, but
 1941 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
 1942 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 1943 dnl General Public License for more details.
 1944 dnl
 1945 dnl You should have received a copy of the GNU General Public License
 1946 dnl along with this program; if not, write to the Free Software
 1947 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 1948 dnl 02111-1307, USA.
 1949 dnl
 1950 dnl As a special exception to the GNU General Public License, if you
 1951 dnl distribute this file as part of a program that contains a
 1952 dnl configuration script generated by Autoconf, you may include it under
 1953 dnl the same distribution terms that you use for the rest of that
 1954 dnl program.
 1955 
 1956 dnl PKG_PREREQ(MIN-VERSION)
 1957 dnl -----------------------
 1958 dnl Since: 0.29
 1959 dnl
 1960 dnl Verify that the version of the pkg-config macros are at least
 1961 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
 1962 dnl installed version of pkg-config, this checks the developer's version
 1963 dnl of pkg.m4 when generating configure.
 1964 dnl
 1965 dnl To ensure that this macro is defined, also add:
 1966 dnl m4_ifndef([PKG_PREREQ],
 1967 dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
 1968 dnl
 1969 dnl See the "Since" comment for each macro you use to see what version
 1970 dnl of the macros you require.
 1971 m4_defun([PKG_PREREQ],
 1972 [m4_define([PKG_MACROS_VERSION], [0.29])
 1973 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
 1974     [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
 1975 ])dnl PKG_PREREQ
 1976 
 1977 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
 1978 dnl ----------------------------------
 1979 dnl Since: 0.16
 1980 dnl
 1981 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
 1982 dnl first found in the path. Checks that the version of pkg-config found
 1983 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
 1984 dnl used since that's the first version where most current features of
 1985 dnl pkg-config existed.
 1986 AC_DEFUN([PKG_PROG_PKG_CONFIG],
 1987 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 1988 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 1989 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 1990 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 1991 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 1992 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 1993 
 1994 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 1995 	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 1996 fi
 1997 if test -n "$PKG_CONFIG"; then
 1998 	_pkg_min_version=m4_default([$1], [0.9.0])
 1999 	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 2000 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 2001 		AC_MSG_RESULT([yes])
 2002 	else
 2003 		AC_MSG_RESULT([no])
 2004 		PKG_CONFIG=""
 2005 	fi
 2006 fi[]dnl
 2007 ])dnl PKG_PROG_PKG_CONFIG
 2008 
 2009 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 2010 dnl -------------------------------------------------------------------
 2011 dnl Since: 0.18
 2012 dnl
 2013 dnl Check to see whether a particular set of modules exists. Similar to
 2014 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
 2015 dnl
 2016 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 2017 dnl only at the first occurence in configure.ac, so if the first place
 2018 dnl it's called might be skipped (such as if it is within an "if", you
 2019 dnl have to call PKG_CHECK_EXISTS manually
 2020 AC_DEFUN([PKG_CHECK_EXISTS],
 2021 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 2022 if test -n "$PKG_CONFIG" && \
 2023     AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 2024   m4_default([$2], [:])
 2025 m4_ifvaln([$3], [else
 2026   $3])dnl
 2027 fi])
 2028 
 2029 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 2030 dnl ---------------------------------------------
 2031 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
 2032 dnl pkg_failed based on the result.
 2033 m4_define([_PKG_CONFIG],
 2034 [if test -n "$$1"; then
 2035     pkg_cv_[]$1="$$1"
 2036  elif test -n "$PKG_CONFIG"; then
 2037     PKG_CHECK_EXISTS([$3],
 2038                      [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 2039 		      test "x$?" != "x0" && pkg_failed=yes ],
 2040 		     [pkg_failed=yes])
 2041  else
 2042     pkg_failed=untried
 2043 fi[]dnl
 2044 ])dnl _PKG_CONFIG
 2045 
 2046 dnl _PKG_SHORT_ERRORS_SUPPORTED
 2047 dnl ---------------------------
 2048 dnl Internal check to see if pkg-config supports short errors.
 2049 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 2050 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 2051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 2052         _pkg_short_errors_supported=yes
 2053 else
 2054         _pkg_short_errors_supported=no
 2055 fi[]dnl
 2056 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
 2057 
 2058 
 2059 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 2060 dnl   [ACTION-IF-NOT-FOUND])
 2061 dnl --------------------------------------------------------------
 2062 dnl Since: 0.4.0
 2063 dnl
 2064 dnl Note that if there is a possibility the first call to
 2065 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
 2066 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 2067 AC_DEFUN([PKG_CHECK_MODULES],
 2068 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 2069 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 2070 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 2071 
 2072 pkg_failed=no
 2073 AC_MSG_CHECKING([for $1])
 2074 
 2075 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 2076 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
 2077 
 2078 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 2079 and $1[]_LIBS to avoid the need to call pkg-config.
 2080 See the pkg-config man page for more details.])
 2081 
 2082 if test $pkg_failed = yes; then
 2083    	AC_MSG_RESULT([no])
 2084         _PKG_SHORT_ERRORS_SUPPORTED
 2085         if test $_pkg_short_errors_supported = yes; then
 2086 	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 2087         else 
 2088 	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 2089         fi
 2090 	# Put the nasty error message in config.log where it belongs
 2091 	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 2092 
 2093 	m4_default([$4], [AC_MSG_ERROR(
 2094 [Package requirements ($2) were not met:
 2095 
 2096 $$1_PKG_ERRORS
 2097 
 2098 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 2099 installed software in a non-standard prefix.
 2100 
 2101 _PKG_TEXT])[]dnl
 2102         ])
 2103 elif test $pkg_failed = untried; then
 2104      	AC_MSG_RESULT([no])
 2105 	m4_default([$4], [AC_MSG_FAILURE(
 2106 [The pkg-config script could not be found or is too old.  Make sure it
 2107 is in your PATH or set the PKG_CONFIG environment variable to the full
 2108 path to pkg-config.
 2109 
 2110 _PKG_TEXT
 2111 
 2112 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 2113         ])
 2114 else
 2115 	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 2116 	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 2117         AC_MSG_RESULT([yes])
 2118 	$3
 2119 fi[]dnl
 2120 ])dnl PKG_CHECK_MODULES
 2121 
 2122 
 2123 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 2124 dnl   [ACTION-IF-NOT-FOUND])
 2125 dnl ---------------------------------------------------------------------
 2126 dnl Since: 0.29
 2127 dnl
 2128 dnl Checks for existence of MODULES and gathers its build flags with
 2129 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
 2130 dnl and VARIABLE-PREFIX_LIBS from --libs.
 2131 dnl
 2132 dnl Note that if there is a possibility the first call to
 2133 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
 2134 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
 2135 dnl configure.ac.
 2136 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
 2137 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 2138 _save_PKG_CONFIG=$PKG_CONFIG
 2139 PKG_CONFIG="$PKG_CONFIG --static"
 2140 PKG_CHECK_MODULES($@)
 2141 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
 2142 ])dnl PKG_CHECK_MODULES_STATIC
 2143 
 2144 
 2145 dnl PKG_INSTALLDIR([DIRECTORY])
 2146 dnl -------------------------
 2147 dnl Since: 0.27
 2148 dnl
 2149 dnl Substitutes the variable pkgconfigdir as the location where a module
 2150 dnl should install pkg-config .pc files. By default the directory is
 2151 dnl $libdir/pkgconfig, but the default can be changed by passing
 2152 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
 2153 dnl parameter.
 2154 AC_DEFUN([PKG_INSTALLDIR],
 2155 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 2156 m4_pushdef([pkg_description],
 2157     [pkg-config installation directory @<:@]pkg_default[@:>@])
 2158 AC_ARG_WITH([pkgconfigdir],
 2159     [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 2160     [with_pkgconfigdir=]pkg_default)
 2161 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 2162 m4_popdef([pkg_default])
 2163 m4_popdef([pkg_description])
 2164 ])dnl PKG_INSTALLDIR
 2165 
 2166 
 2167 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
 2168 dnl --------------------------------
 2169 dnl Since: 0.27
 2170 dnl
 2171 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
 2172 dnl module should install arch-independent pkg-config .pc files. By
 2173 dnl default the directory is $datadir/pkgconfig, but the default can be
 2174 dnl changed by passing DIRECTORY. The user can override through the
 2175 dnl --with-noarch-pkgconfigdir parameter.
 2176 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 2177 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 2178 m4_pushdef([pkg_description],
 2179     [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 2180 AC_ARG_WITH([noarch-pkgconfigdir],
 2181     [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 2182     [with_noarch_pkgconfigdir=]pkg_default)
 2183 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 2184 m4_popdef([pkg_default])
 2185 m4_popdef([pkg_description])
 2186 ])dnl PKG_NOARCH_INSTALLDIR
 2187 
 2188 
 2189 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 2190 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 2191 dnl -------------------------------------------
 2192 dnl Since: 0.28
 2193 dnl
 2194 dnl Retrieves the value of the pkg-config variable for the given module.
 2195 AC_DEFUN([PKG_CHECK_VAR],
 2196 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 2197 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 2198 
 2199 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
 2200 AS_VAR_COPY([$1], [pkg_cv_][$1])
 2201 
 2202 AS_VAR_IF([$1], [""], [$5], [$4])dnl
 2203 ])dnl PKG_CHECK_VAR
 2204 
 2205 # po.m4 serial 24 (gettext-0.19)
 2206 dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
 2207 dnl This file is free software; the Free Software Foundation
 2208 dnl gives unlimited permission to copy and/or distribute it,
 2209 dnl with or without modifications, as long as this notice is preserved.
 2210 dnl
 2211 dnl This file can be used in projects which are not available under
 2212 dnl the GNU General Public License or the GNU Library General Public
 2213 dnl License but which still want to provide support for the GNU gettext
 2214 dnl functionality.
 2215 dnl Please note that the actual code of the GNU gettext library is covered
 2216 dnl by the GNU Library General Public License, and the rest of the GNU
 2217 dnl gettext package is covered by the GNU General Public License.
 2218 dnl They are *not* in the public domain.
 2219 
 2220 dnl Authors:
 2221 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 2222 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 2223 
 2224 AC_PREREQ([2.60])
 2225 
 2226 dnl Checks for all prerequisites of the po subdirectory.
 2227 AC_DEFUN([AM_PO_SUBDIRS],
 2228 [
 2229   AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 2230   AC_REQUIRE([AC_PROG_INSTALL])dnl
 2231   AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 2232   AC_REQUIRE([AC_PROG_SED])dnl
 2233   AC_REQUIRE([AM_NLS])dnl
 2234 
 2235   dnl Release version of the gettext macros. This is used to ensure that
 2236   dnl the gettext macros and po/Makefile.in.in are in sync.
 2237   AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
 2238 
 2239   dnl Perform the following tests also if --disable-nls has been given,
 2240   dnl because they are needed for "make dist" to work.
 2241 
 2242   dnl Search for GNU msgfmt in the PATH.
 2243   dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
 2244   dnl The second test excludes FreeBSD msgfmt.
 2245   AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 2246     [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
 2247      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
 2248     :)
 2249   AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
 2250 
 2251   dnl Test whether it is GNU msgfmt >= 0.15.
 2252 changequote(,)dnl
 2253   case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 2254     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 2255     *) MSGFMT_015=$MSGFMT ;;
 2256   esac
 2257 changequote([,])dnl
 2258   AC_SUBST([MSGFMT_015])
 2259 changequote(,)dnl
 2260   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 2261     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 2262     *) GMSGFMT_015=$GMSGFMT ;;
 2263   esac
 2264 changequote([,])dnl
 2265   AC_SUBST([GMSGFMT_015])
 2266 
 2267   dnl Search for GNU xgettext 0.12 or newer in the PATH.
 2268   dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
 2269   dnl The second test excludes FreeBSD xgettext.
 2270   AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 2271     [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
 2272      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
 2273     :)
 2274   dnl Remove leftover from FreeBSD xgettext call.
 2275   rm -f messages.po
 2276 
 2277   dnl Test whether it is GNU xgettext >= 0.15.
 2278 changequote(,)dnl
 2279   case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 2280     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 2281     *) XGETTEXT_015=$XGETTEXT ;;
 2282   esac
 2283 changequote([,])dnl
 2284   AC_SUBST([XGETTEXT_015])
 2285 
 2286   dnl Search for GNU msgmerge 0.11 or newer in the PATH.
 2287   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
 2288     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
 2289 
 2290   dnl Installation directories.
 2291   dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
 2292   dnl have to define it here, so that it can be used in po/Makefile.
 2293   test -n "$localedir" || localedir='${datadir}/locale'
 2294   AC_SUBST([localedir])
 2295 
 2296   dnl Support for AM_XGETTEXT_OPTION.
 2297   test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 2298   AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
 2299 
 2300   AC_CONFIG_COMMANDS([po-directories], [[
 2301     for ac_file in $CONFIG_FILES; do
 2302       # Support "outfile[:infile[:infile...]]"
 2303       case "$ac_file" in
 2304         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 2305       esac
 2306       # PO directories have a Makefile.in generated from Makefile.in.in.
 2307       case "$ac_file" in */Makefile.in)
 2308         # Adjust a relative srcdir.
 2309         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 2310         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
 2311         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 2312         # In autoconf-2.13 it is called $ac_given_srcdir.
 2313         # In autoconf-2.50 it is called $srcdir.
 2314         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 2315         case "$ac_given_srcdir" in
 2316           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 2317           /*) top_srcdir="$ac_given_srcdir" ;;
 2318           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 2319         esac
 2320         # Treat a directory as a PO directory if and only if it has a
 2321         # POTFILES.in file. This allows packages to have multiple PO
 2322         # directories under different names or in different locations.
 2323         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 2324           rm -f "$ac_dir/POTFILES"
 2325           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 2326           gt_tab=`printf '\t'`
 2327           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 2328           POMAKEFILEDEPS="POTFILES.in"
 2329           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 2330           # on $ac_dir but don't depend on user-specified configuration
 2331           # parameters.
 2332           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 2333             # The LINGUAS file contains the set of available languages.
 2334             if test -n "$OBSOLETE_ALL_LINGUAS"; then
 2335               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 2336             fi
 2337             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 2338             # Hide the ALL_LINGUAS assignment from automake < 1.5.
 2339             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 2340             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 2341           else
 2342             # The set of available languages was given in configure.in.
 2343             # Hide the ALL_LINGUAS assignment from automake < 1.5.
 2344             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 2345           fi
 2346           # Compute POFILES
 2347           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 2348           # Compute UPDATEPOFILES
 2349           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 2350           # Compute DUMMYPOFILES
 2351           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 2352           # Compute GMOFILES
 2353           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 2354           case "$ac_given_srcdir" in
 2355             .) srcdirpre= ;;
 2356             *) srcdirpre='$(srcdir)/' ;;
 2357           esac
 2358           POFILES=
 2359           UPDATEPOFILES=
 2360           DUMMYPOFILES=
 2361           GMOFILES=
 2362           for lang in $ALL_LINGUAS; do
 2363             POFILES="$POFILES $srcdirpre$lang.po"
 2364             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 2365             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 2366             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 2367           done
 2368           # CATALOGS depends on both $ac_dir and the user's LINGUAS
 2369           # environment variable.
 2370           INST_LINGUAS=
 2371           if test -n "$ALL_LINGUAS"; then
 2372             for presentlang in $ALL_LINGUAS; do
 2373               useit=no
 2374               if test "%UNSET%" != "$LINGUAS"; then
 2375                 desiredlanguages="$LINGUAS"
 2376               else
 2377                 desiredlanguages="$ALL_LINGUAS"
 2378               fi
 2379               for desiredlang in $desiredlanguages; do
 2380                 # Use the presentlang catalog if desiredlang is
 2381                 #   a. equal to presentlang, or
 2382                 #   b. a variant of presentlang (because in this case,
 2383                 #      presentlang can be used as a fallback for messages
 2384                 #      which are not translated in the desiredlang catalog).
 2385                 case "$desiredlang" in
 2386                   "$presentlang"*) useit=yes;;
 2387                 esac
 2388               done
 2389               if test $useit = yes; then
 2390                 INST_LINGUAS="$INST_LINGUAS $presentlang"
 2391               fi
 2392             done
 2393           fi
 2394           CATALOGS=
 2395           if test -n "$INST_LINGUAS"; then
 2396             for lang in $INST_LINGUAS; do
 2397               CATALOGS="$CATALOGS $lang.gmo"
 2398             done
 2399           fi
 2400           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 2401           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 2402           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 2403             if test -f "$f"; then
 2404               case "$f" in
 2405                 *.orig | *.bak | *~) ;;
 2406                 *) cat "$f" >> "$ac_dir/Makefile" ;;
 2407               esac
 2408             fi
 2409           done
 2410         fi
 2411         ;;
 2412       esac
 2413     done]],
 2414    [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 2415     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 2416     # from automake < 1.5.
 2417     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 2418     # Capture the value of LINGUAS because we need it to compute CATALOGS.
 2419     LINGUAS="${LINGUAS-%UNSET%}"
 2420    ])
 2421 ])
 2422 
 2423 dnl Postprocesses a Makefile in a directory containing PO files.
 2424 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
 2425 [
 2426   # When this code is run, in config.status, two variables have already been
 2427   # set:
 2428   # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
 2429   # - LINGUAS is the value of the environment variable LINGUAS at configure
 2430   #   time.
 2431 
 2432 changequote(,)dnl
 2433   # Adjust a relative srcdir.
 2434   ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 2435   ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
 2436   ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 2437   # In autoconf-2.13 it is called $ac_given_srcdir.
 2438   # In autoconf-2.50 it is called $srcdir.
 2439   test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 2440   case "$ac_given_srcdir" in
 2441     .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 2442     /*) top_srcdir="$ac_given_srcdir" ;;
 2443     *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 2444   esac
 2445 
 2446   # Find a way to echo strings without interpreting backslash.
 2447   if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
 2448     gt_echo='echo'
 2449   else
 2450     if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
 2451       gt_echo='printf %s\n'
 2452     else
 2453       echo_func () {
 2454         cat <<EOT
 2455 $*
 2456 EOT
 2457       }
 2458       gt_echo='echo_func'
 2459     fi
 2460   fi
 2461 
 2462   # A sed script that extracts the value of VARIABLE from a Makefile.
 2463   tab=`printf '\t'`
 2464   sed_x_variable='
 2465 # Test if the hold space is empty.
 2466 x
 2467 s/P/P/
 2468 x
 2469 ta
 2470 # Yes it was empty. Look if we have the expected variable definition.
 2471 /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
 2472   # Seen the first line of the variable definition.
 2473   s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
 2474   ba
 2475 }
 2476 bd
 2477 :a
 2478 # Here we are processing a line from the variable definition.
 2479 # Remove comment, more precisely replace it with a space.
 2480 s/#.*$/ /
 2481 # See if the line ends in a backslash.
 2482 tb
 2483 :b
 2484 s/\\$//
 2485 # Print the line, without the trailing backslash.
 2486 p
 2487 tc
 2488 # There was no trailing backslash. The end of the variable definition is
 2489 # reached. Clear the hold space.
 2490 s/^.*$//
 2491 x
 2492 bd
 2493 :c
 2494 # A trailing backslash means that the variable definition continues in the
 2495 # next line. Put a nonempty string into the hold space to indicate this.
 2496 s/^.*$/P/
 2497 x
 2498 :d
 2499 '
 2500 changequote([,])dnl
 2501 
 2502   # Set POTFILES to the value of the Makefile variable POTFILES.
 2503   sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
 2504   POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
 2505   # Compute POTFILES_DEPS as
 2506   #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
 2507   POTFILES_DEPS=
 2508   for file in $POTFILES; do
 2509     POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
 2510   done
 2511   POMAKEFILEDEPS=""
 2512 
 2513   if test -n "$OBSOLETE_ALL_LINGUAS"; then
 2514     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 2515   fi
 2516   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 2517     # The LINGUAS file contains the set of available languages.
 2518     ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 2519     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 2520   else
 2521     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
 2522     sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
 2523     ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
 2524   fi
 2525   # Hide the ALL_LINGUAS assignment from automake < 1.5.
 2526   eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 2527   # Compute POFILES
 2528   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 2529   # Compute UPDATEPOFILES
 2530   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 2531   # Compute DUMMYPOFILES
 2532   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 2533   # Compute GMOFILES
 2534   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 2535   # Compute PROPERTIESFILES
 2536   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
 2537   # Compute CLASSFILES
 2538   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
 2539   # Compute QMFILES
 2540   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
 2541   # Compute MSGFILES
 2542   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
 2543   # Compute RESOURCESDLLFILES
 2544   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
 2545   case "$ac_given_srcdir" in
 2546     .) srcdirpre= ;;
 2547     *) srcdirpre='$(srcdir)/' ;;
 2548   esac
 2549   POFILES=
 2550   UPDATEPOFILES=
 2551   DUMMYPOFILES=
 2552   GMOFILES=
 2553   PROPERTIESFILES=
 2554   CLASSFILES=
 2555   QMFILES=
 2556   MSGFILES=
 2557   RESOURCESDLLFILES=
 2558   for lang in $ALL_LINGUAS; do
 2559     POFILES="$POFILES $srcdirpre$lang.po"
 2560     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 2561     DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 2562     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 2563     PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
 2564     CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
 2565     QMFILES="$QMFILES $srcdirpre$lang.qm"
 2566     frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 2567     MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
 2568     frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 2569     RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
 2570   done
 2571   # CATALOGS depends on both $ac_dir and the user's LINGUAS
 2572   # environment variable.
 2573   INST_LINGUAS=
 2574   if test -n "$ALL_LINGUAS"; then
 2575     for presentlang in $ALL_LINGUAS; do
 2576       useit=no
 2577       if test "%UNSET%" != "$LINGUAS"; then
 2578         desiredlanguages="$LINGUAS"
 2579       else
 2580         desiredlanguages="$ALL_LINGUAS"
 2581       fi
 2582       for desiredlang in $desiredlanguages; do
 2583         # Use the presentlang catalog if desiredlang is
 2584         #   a. equal to presentlang, or
 2585         #   b. a variant of presentlang (because in this case,
 2586         #      presentlang can be used as a fallback for messages
 2587         #      which are not translated in the desiredlang catalog).
 2588         case "$desiredlang" in
 2589           "$presentlang"*) useit=yes;;
 2590         esac
 2591       done
 2592       if test $useit = yes; then
 2593         INST_LINGUAS="$INST_LINGUAS $presentlang"
 2594       fi
 2595     done
 2596   fi
 2597   CATALOGS=
 2598   JAVACATALOGS=
 2599   QTCATALOGS=
 2600   TCLCATALOGS=
 2601   CSHARPCATALOGS=
 2602   if test -n "$INST_LINGUAS"; then
 2603     for lang in $INST_LINGUAS; do
 2604       CATALOGS="$CATALOGS $lang.gmo"
 2605       JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
 2606       QTCATALOGS="$QTCATALOGS $lang.qm"
 2607       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 2608       TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
 2609       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 2610       CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
 2611     done
 2612   fi
 2613 
 2614   sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
 2615   tab=`printf '\t'`
 2616   if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
 2617     # Add dependencies that cannot be formulated as a simple suffix rule.
 2618     for lang in $ALL_LINGUAS; do
 2619       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 2620       cat >> "$ac_file.tmp" <<EOF
 2621 $frobbedlang.msg: $lang.po
 2622 ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
 2623 ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 2624 EOF
 2625     done
 2626   fi
 2627   if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
 2628     # Add dependencies that cannot be formulated as a simple suffix rule.
 2629     for lang in $ALL_LINGUAS; do
 2630       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 2631       cat >> "$ac_file.tmp" <<EOF
 2632 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
 2633 ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
 2634 ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 2635 EOF
 2636     done
 2637   fi
 2638   if test -n "$POMAKEFILEDEPS"; then
 2639     cat >> "$ac_file.tmp" <<EOF
 2640 Makefile: $POMAKEFILEDEPS
 2641 EOF
 2642   fi
 2643   mv "$ac_file.tmp" "$ac_file"
 2644 ])
 2645 
 2646 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
 2647 AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
 2648 [
 2649   XGETTEXT_EXTRA_OPTIONS=
 2650 ])
 2651 
 2652 dnl Registers an option to be passed to xgettext in the po subdirectory.
 2653 AC_DEFUN([AM_XGETTEXT_OPTION],
 2654 [
 2655   AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
 2656   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
 2657 ])
 2658 
 2659 # progtest.m4 serial 7 (gettext-0.18.2)
 2660 dnl Copyright (C) 1996-2003, 2005, 2008-2016 Free Software Foundation, Inc.
 2661 dnl This file is free software; the Free Software Foundation
 2662 dnl gives unlimited permission to copy and/or distribute it,
 2663 dnl with or without modifications, as long as this notice is preserved.
 2664 dnl
 2665 dnl This file can be used in projects which are not available under
 2666 dnl the GNU General Public License or the GNU Library General Public
 2667 dnl License but which still want to provide support for the GNU gettext
 2668 dnl functionality.
 2669 dnl Please note that the actual code of the GNU gettext library is covered
 2670 dnl by the GNU Library General Public License, and the rest of the GNU
 2671 dnl gettext package is covered by the GNU General Public License.
 2672 dnl They are *not* in the public domain.
 2673 
 2674 dnl Authors:
 2675 dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
 2676 
 2677 AC_PREREQ([2.50])
 2678 
 2679 # Search path for a program which passes the given test.
 2680 
 2681 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 2682 dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 2683 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
 2684 [
 2685 # Prepare PATH_SEPARATOR.
 2686 # The user is always right.
 2687 if test "${PATH_SEPARATOR+set}" != set; then
 2688   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 2689   # contains only /bin. Note that ksh looks also at the FPATH variable,
 2690   # so we have to set that as well for the test.
 2691   PATH_SEPARATOR=:
 2692   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 2693     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 2694            || PATH_SEPARATOR=';'
 2695        }
 2696 fi
 2697 
 2698 # Find out how to test for executable files. Don't use a zero-byte file,
 2699 # as systems may use methods other than mode bits to determine executability.
 2700 cat >conf$$.file <<_ASEOF
 2701 #! /bin/sh
 2702 exit 0
 2703 _ASEOF
 2704 chmod +x conf$$.file
 2705 if test -x conf$$.file >/dev/null 2>&1; then
 2706   ac_executable_p="test -x"
 2707 else
 2708   ac_executable_p="test -f"
 2709 fi
 2710 rm -f conf$$.file
 2711 
 2712 # Extract the first word of "$2", so it can be a program name with args.
 2713 set dummy $2; ac_word=[$]2
 2714 AC_MSG_CHECKING([for $ac_word])
 2715 AC_CACHE_VAL([ac_cv_path_$1],
 2716 [case "[$]$1" in
 2717   [[\\/]]* | ?:[[\\/]]*)
 2718     ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 2719     ;;
 2720   *)
 2721     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 2722     for ac_dir in ifelse([$5], , $PATH, [$5]); do
 2723       IFS="$ac_save_IFS"
 2724       test -z "$ac_dir" && ac_dir=.
 2725       for ac_exec_ext in '' $ac_executable_extensions; do
 2726         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 2727           echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
 2728           if [$3]; then
 2729             ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
 2730             break 2
 2731           fi
 2732         fi
 2733       done
 2734     done
 2735     IFS="$ac_save_IFS"
 2736 dnl If no 4th arg is given, leave the cache variable unset,
 2737 dnl so AC_PATH_PROGS will keep looking.
 2738 ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 2739 ])dnl
 2740     ;;
 2741 esac])dnl
 2742 $1="$ac_cv_path_$1"
 2743 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 2744   AC_MSG_RESULT([$][$1])
 2745 else
 2746   AC_MSG_RESULT([no])
 2747 fi
 2748 AC_SUBST([$1])dnl
 2749 ])
 2750 
 2751 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
 2752 #
 2753 # This file is free software; the Free Software Foundation
 2754 # gives unlimited permission to copy and/or distribute it,
 2755 # with or without modifications, as long as this notice is preserved.
 2756 
 2757 # AM_AUTOMAKE_VERSION(VERSION)
 2758 # ----------------------------
 2759 # Automake X.Y traces this macro to ensure aclocal.m4 has been
 2760 # generated from the m4 files accompanying Automake X.Y.
 2761 # (This private macro should not be called outside this file.)
 2762 AC_DEFUN([AM_AUTOMAKE_VERSION],
 2763 [am__api_version='1.16'
 2764 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 2765 dnl require some minimum version.  Point them to the right macro.
 2766 m4_if([$1], [1.16.1], [],
 2767       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 2768 ])
 2769 
 2770 # _AM_AUTOCONF_VERSION(VERSION)
 2771 # -----------------------------
 2772 # aclocal traces this macro to find the Autoconf version.
 2773 # This is a private macro too.  Using m4_define simplifies
 2774 # the logic in aclocal, which can simply ignore this definition.
 2775 m4_define([_AM_AUTOCONF_VERSION], [])
 2776 
 2777 # AM_SET_CURRENT_AUTOMAKE_VERSION
 2778 # -------------------------------
 2779 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 2780 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 2781 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 2782 [AM_AUTOMAKE_VERSION([1.16.1])dnl
 2783 m4_ifndef([AC_AUTOCONF_VERSION],
 2784   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 2785 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 2786 
 2787 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 2788 
 2789 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 2790 #
 2791 # This file is free software; the Free Software Foundation
 2792 # gives unlimited permission to copy and/or distribute it,
 2793 # with or without modifications, as long as this notice is preserved.
 2794 
 2795 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 2796 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 2797 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
 2798 #
 2799 # Of course, Automake must honor this variable whenever it calls a
 2800 # tool from the auxiliary directory.  The problem is that $srcdir (and
 2801 # therefore $ac_aux_dir as well) can be either absolute or relative,
 2802 # depending on how configure is run.  This is pretty annoying, since
 2803 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
 2804 # source directory, any form will work fine, but in subdirectories a
 2805 # relative path needs to be adjusted first.
 2806 #
 2807 # $ac_aux_dir/missing
 2808 #    fails when called from a subdirectory if $ac_aux_dir is relative
 2809 # $top_srcdir/$ac_aux_dir/missing
 2810 #    fails if $ac_aux_dir is absolute,
 2811 #    fails when called from a subdirectory in a VPATH build with
 2812 #          a relative $ac_aux_dir
 2813 #
 2814 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 2815 # are both prefixed by $srcdir.  In an in-source build this is usually
 2816 # harmless because $srcdir is '.', but things will broke when you
 2817 # start a VPATH build or use an absolute $srcdir.
 2818 #
 2819 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 2820 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 2821 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 2822 # and then we would define $MISSING as
 2823 #   MISSING="\${SHELL} $am_aux_dir/missing"
 2824 # This will work as long as MISSING is not called from configure, because
 2825 # unfortunately $(top_srcdir) has no meaning in configure.
 2826 # However there are other variables, like CC, which are often used in
 2827 # configure, and could therefore not use this "fixed" $ac_aux_dir.
 2828 #
 2829 # Another solution, used here, is to always expand $ac_aux_dir to an
 2830 # absolute PATH.  The drawback is that using absolute paths prevent a
 2831 # configured tree to be moved without reconfiguration.
 2832 
 2833 AC_DEFUN([AM_AUX_DIR_EXPAND],
 2834 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 2835 # Expand $ac_aux_dir to an absolute path.
 2836 am_aux_dir=`cd "$ac_aux_dir" && pwd`
 2837 ])
 2838 
 2839 # AM_CONDITIONAL                                            -*- Autoconf -*-
 2840 
 2841 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
 2842 #
 2843 # This file is free software; the Free Software Foundation
 2844 # gives unlimited permission to copy and/or distribute it,
 2845 # with or without modifications, as long as this notice is preserved.
 2846 
 2847 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
 2848 # -------------------------------------
 2849 # Define a conditional.
 2850 AC_DEFUN([AM_CONDITIONAL],
 2851 [AC_PREREQ([2.52])dnl
 2852  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 2853        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 2854 AC_SUBST([$1_TRUE])dnl
 2855 AC_SUBST([$1_FALSE])dnl
 2856 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
 2857 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
 2858 m4_define([_AM_COND_VALUE_$1], [$2])dnl
 2859 if $2; then
 2860   $1_TRUE=
 2861   $1_FALSE='#'
 2862 else
 2863   $1_TRUE='#'
 2864   $1_FALSE=
 2865 fi
 2866 AC_CONFIG_COMMANDS_PRE(
 2867 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 2868   AC_MSG_ERROR([[conditional "$1" was never defined.
 2869 Usually this means the macro was only invoked conditionally.]])
 2870 fi])])
 2871 
 2872 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
 2873 #
 2874 # This file is free software; the Free Software Foundation
 2875 # gives unlimited permission to copy and/or distribute it,
 2876 # with or without modifications, as long as this notice is preserved.
 2877 
 2878 
 2879 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
 2880 # written in clear, in which case automake, when reading aclocal.m4,
 2881 # will think it sees a *use*, and therefore will trigger all it's
 2882 # C support machinery.  Also note that it means that autoscan, seeing
 2883 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 2884 
 2885 
 2886 # _AM_DEPENDENCIES(NAME)
 2887 # ----------------------
 2888 # See how the compiler implements dependency checking.
 2889 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
 2890 # We try a few techniques and use that to set a single cache variable.
 2891 #
 2892 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 2893 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 2894 # dependency, and given that the user is not expected to run this macro,
 2895 # just rely on AC_PROG_CC.
 2896 AC_DEFUN([_AM_DEPENDENCIES],
 2897 [AC_REQUIRE([AM_SET_DEPDIR])dnl
 2898 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 2899 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 2900 AC_REQUIRE([AM_DEP_TRACK])dnl
 2901 
 2902 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 2903       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 2904       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 2905       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 2906       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 2907       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 2908                     [depcc="$$1"   am_compiler_list=])
 2909 
 2910 AC_CACHE_CHECK([dependency style of $depcc],
 2911                [am_cv_$1_dependencies_compiler_type],
 2912 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 2913   # We make a subdir and do the tests there.  Otherwise we can end up
 2914   # making bogus files that we don't know about and never remove.  For
 2915   # instance it was reported that on HP-UX the gcc test will end up
 2916   # making a dummy file named 'D' -- because '-MD' means "put the output
 2917   # in D".
 2918   rm -rf conftest.dir
 2919   mkdir conftest.dir
 2920   # Copy depcomp to subdir because otherwise we won't find it if we're
 2921   # using a relative directory.
 2922   cp "$am_depcomp" conftest.dir
 2923   cd conftest.dir
 2924   # We will build objects and dependencies in a subdirectory because
 2925   # it helps to detect inapplicable dependency modes.  For instance
 2926   # both Tru64's cc and ICC support -MD to output dependencies as a
 2927   # side effect of compilation, but ICC will put the dependencies in
 2928   # the current directory while Tru64 will put them in the object
 2929   # directory.
 2930   mkdir sub
 2931 
 2932   am_cv_$1_dependencies_compiler_type=none
 2933   if test "$am_compiler_list" = ""; then
 2934      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 2935   fi
 2936   am__universal=false
 2937   m4_case([$1], [CC],
 2938     [case " $depcc " in #(
 2939      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 2940      esac],
 2941     [CXX],
 2942     [case " $depcc " in #(
 2943      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 2944      esac])
 2945 
 2946   for depmode in $am_compiler_list; do
 2947     # Setup a source with many dependencies, because some compilers
 2948     # like to wrap large dependency lists on column 80 (with \), and
 2949     # we should not choose a depcomp mode which is confused by this.
 2950     #
 2951     # We need to recreate these files for each test, as the compiler may
 2952     # overwrite some of them when testing with obscure command lines.
 2953     # This happens at least with the AIX C compiler.
 2954     : > sub/conftest.c
 2955     for i in 1 2 3 4 5 6; do
 2956       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 2957       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 2958       # Solaris 10 /bin/sh.
 2959       echo '/* dummy */' > sub/conftst$i.h
 2960     done
 2961     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 2962 
 2963     # We check with '-c' and '-o' for the sake of the "dashmstdout"
 2964     # mode.  It turns out that the SunPro C++ compiler does not properly
 2965     # handle '-M -o', and we need to detect this.  Also, some Intel
 2966     # versions had trouble with output in subdirs.
 2967     am__obj=sub/conftest.${OBJEXT-o}
 2968     am__minus_obj="-o $am__obj"
 2969     case $depmode in
 2970     gcc)
 2971       # This depmode causes a compiler race in universal mode.
 2972       test "$am__universal" = false || continue
 2973       ;;
 2974     nosideeffect)
 2975       # After this tag, mechanisms are not by side-effect, so they'll
 2976       # only be used when explicitly requested.
 2977       if test "x$enable_dependency_tracking" = xyes; then
 2978 	continue
 2979       else
 2980 	break
 2981       fi
 2982       ;;
 2983     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 2984       # This compiler won't grok '-c -o', but also, the minuso test has
 2985       # not run yet.  These depmodes are late enough in the game, and
 2986       # so weak that their functioning should not be impacted.
 2987       am__obj=conftest.${OBJEXT-o}
 2988       am__minus_obj=
 2989       ;;
 2990     none) break ;;
 2991     esac
 2992     if depmode=$depmode \
 2993        source=sub/conftest.c object=$am__obj \
 2994        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 2995        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 2996          >/dev/null 2>conftest.err &&
 2997        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 2998        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 2999        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 3000        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 3001       # icc doesn't choke on unknown options, it will just issue warnings
 3002       # or remarks (even with -Werror).  So we grep stderr for any message
 3003       # that says an option was ignored or not supported.
 3004       # When given -MP, icc 7.0 and 7.1 complain thusly:
 3005       #   icc: Command line warning: ignoring option '-M'; no argument required
 3006       # The diagnosis changed in icc 8.0:
 3007       #   icc: Command line remark: option '-MP' not supported
 3008       if (grep 'ignoring option' conftest.err ||
 3009           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 3010         am_cv_$1_dependencies_compiler_type=$depmode
 3011         break
 3012       fi
 3013     fi
 3014   done
 3015 
 3016   cd ..
 3017   rm -rf conftest.dir
 3018 else
 3019   am_cv_$1_dependencies_compiler_type=none
 3020 fi
 3021 ])
 3022 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 3023 AM_CONDITIONAL([am__fastdep$1], [
 3024   test "x$enable_dependency_tracking" != xno \
 3025   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 3026 ])
 3027 
 3028 
 3029 # AM_SET_DEPDIR
 3030 # -------------
 3031 # Choose a directory name for dependency files.
 3032 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
 3033 AC_DEFUN([AM_SET_DEPDIR],
 3034 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 3035 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 3036 ])
 3037 
 3038 
 3039 # AM_DEP_TRACK
 3040 # ------------
 3041 AC_DEFUN([AM_DEP_TRACK],
 3042 [AC_ARG_ENABLE([dependency-tracking], [dnl
 3043 AS_HELP_STRING(
 3044   [--enable-dependency-tracking],
 3045   [do not reject slow dependency extractors])
 3046 AS_HELP_STRING(
 3047   [--disable-dependency-tracking],
 3048   [speeds up one-time build])])
 3049 if test "x$enable_dependency_tracking" != xno; then
 3050   am_depcomp="$ac_aux_dir/depcomp"
 3051   AMDEPBACKSLASH='\'
 3052   am__nodep='_no'
 3053 fi
 3054 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 3055 AC_SUBST([AMDEPBACKSLASH])dnl
 3056 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 3057 AC_SUBST([am__nodep])dnl
 3058 _AM_SUBST_NOTMAKE([am__nodep])dnl
 3059 ])
 3060 
 3061 # Generate code to set up dependency tracking.              -*- Autoconf -*-
 3062 
 3063 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
 3064 #
 3065 # This file is free software; the Free Software Foundation
 3066 # gives unlimited permission to copy and/or distribute it,
 3067 # with or without modifications, as long as this notice is preserved.
 3068 
 3069 # _AM_OUTPUT_DEPENDENCY_COMMANDS
 3070 # ------------------------------
 3071 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 3072 [{
 3073   # Older Autoconf quotes --file arguments for eval, but not when files
 3074   # are listed without --file.  Let's play safe and only enable the eval
 3075   # if we detect the quoting.
 3076   # TODO: see whether this extra hack can be removed once we start
 3077   # requiring Autoconf 2.70 or later.
 3078   AS_CASE([$CONFIG_FILES],
 3079           [*\'*], [eval set x "$CONFIG_FILES"],
 3080           [*], [set x $CONFIG_FILES])
 3081   shift
 3082   # Used to flag and report bootstrapping failures.
 3083   am_rc=0
 3084   for am_mf
 3085   do
 3086     # Strip MF so we end up with the name of the file.
 3087     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
 3088     # Check whether this is an Automake generated Makefile which includes
 3089     # dependency-tracking related rules and includes.
 3090     # Grep'ing the whole file directly is not great: AIX grep has a line
 3091     # limit of 2048, but all sed's we know have understand at least 4000.
 3092     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
 3093       || continue
 3094     am_dirpart=`AS_DIRNAME(["$am_mf"])`
 3095     am_filepart=`AS_BASENAME(["$am_mf"])`
 3096     AM_RUN_LOG([cd "$am_dirpart" \
 3097       && sed -e '/# am--include-marker/d' "$am_filepart" \
 3098         | $MAKE -f - am--depfiles]) || am_rc=$?
 3099   done
 3100   if test $am_rc -ne 0; then
 3101     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
 3102     for automatic dependency tracking.  Try re-running configure with the
 3103     '--disable-dependency-tracking' option to at least be able to build
 3104     the package (albeit without support for automatic dependency tracking).])
 3105   fi
 3106   AS_UNSET([am_dirpart])
 3107   AS_UNSET([am_filepart])
 3108   AS_UNSET([am_mf])
 3109   AS_UNSET([am_rc])
 3110   rm -f conftest-deps.mk
 3111 }
 3112 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 3113 
 3114 
 3115 # AM_OUTPUT_DEPENDENCY_COMMANDS
 3116 # -----------------------------
 3117 # This macro should only be invoked once -- use via AC_REQUIRE.
 3118 #
 3119 # This code is only required when automatic dependency tracking is enabled.
 3120 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
 3121 # order to bootstrap the dependency handling code.
 3122 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 3123 [AC_CONFIG_COMMANDS([depfiles],
 3124      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 3125      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
 3126 
 3127 # Do all the work for Automake.                             -*- Autoconf -*-
 3128 
 3129 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
 3130 #
 3131 # This file is free software; the Free Software Foundation
 3132 # gives unlimited permission to copy and/or distribute it,
 3133 # with or without modifications, as long as this notice is preserved.
 3134 
 3135 # This macro actually does too much.  Some checks are only needed if
 3136 # your package does certain things.  But this isn't really a big deal.
 3137 
 3138 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 3139 m4_define([AC_PROG_CC],
 3140 m4_defn([AC_PROG_CC])
 3141 [_AM_PROG_CC_C_O
 3142 ])
 3143 
 3144 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 3145 # AM_INIT_AUTOMAKE([OPTIONS])
 3146 # -----------------------------------------------
 3147 # The call with PACKAGE and VERSION arguments is the old style
 3148 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
 3149 # and VERSION should now be passed to AC_INIT and removed from
 3150 # the call to AM_INIT_AUTOMAKE.
 3151 # We support both call styles for the transition.  After
 3152 # the next Automake release, Autoconf can make the AC_INIT
 3153 # arguments mandatory, and then we can depend on a new Autoconf
 3154 # release and drop the old call support.
 3155 AC_DEFUN([AM_INIT_AUTOMAKE],
 3156 [AC_PREREQ([2.65])dnl
 3157 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 3158 dnl the ones we care about.
 3159 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 3160 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 3161 AC_REQUIRE([AC_PROG_INSTALL])dnl
 3162 if test "`cd $srcdir && pwd`" != "`pwd`"; then
 3163   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 3164   # is not polluted with repeated "-I."
 3165   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 3166   # test to see if srcdir already configured
 3167   if test -f $srcdir/config.status; then
 3168     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 3169   fi
 3170 fi
 3171 
 3172 # test whether we have cygpath
 3173 if test -z "$CYGPATH_W"; then
 3174   if (cygpath --version) >/dev/null 2>/dev/null; then
 3175     CYGPATH_W='cygpath -w'
 3176   else
 3177     CYGPATH_W=echo
 3178   fi
 3179 fi
 3180 AC_SUBST([CYGPATH_W])
 3181 
 3182 # Define the identity of the package.
 3183 dnl Distinguish between old-style and new-style calls.
 3184 m4_ifval([$2],
 3185 [AC_DIAGNOSE([obsolete],
 3186              [$0: two- and three-arguments forms are deprecated.])
 3187 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 3188  AC_SUBST([PACKAGE], [$1])dnl
 3189  AC_SUBST([VERSION], [$2])],
 3190 [_AM_SET_OPTIONS([$1])dnl
 3191 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 3192 m4_if(
 3193   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 3194   [ok:ok],,
 3195   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 3196  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 3197  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 3198 
 3199 _AM_IF_OPTION([no-define],,
 3200 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 3201  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 3202 
 3203 # Some tools Automake needs.
 3204 AC_REQUIRE([AM_SANITY_CHECK])dnl
 3205 AC_REQUIRE([AC_ARG_PROGRAM])dnl
 3206 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 3207 AM_MISSING_PROG([AUTOCONF], [autoconf])
 3208 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 3209 AM_MISSING_PROG([AUTOHEADER], [autoheader])
 3210 AM_MISSING_PROG([MAKEINFO], [makeinfo])
 3211 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 3212 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 3213 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 3214 # For better backward compatibility.  To be removed once Automake 1.9.x
 3215 # dies out for good.  For more background, see:
 3216 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 3217 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 3218 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 3219 # We need awk for the "check" target (and possibly the TAP driver).  The
 3220 # system "awk" is bad on some platforms.
 3221 AC_REQUIRE([AC_PROG_AWK])dnl
 3222 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 3223 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 3224 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 3225 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 3226 			     [_AM_PROG_TAR([v7])])])
 3227 _AM_IF_OPTION([no-dependencies],,
 3228 [AC_PROVIDE_IFELSE([AC_PROG_CC],
 3229 		  [_AM_DEPENDENCIES([CC])],
 3230 		  [m4_define([AC_PROG_CC],
 3231 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 3232 AC_PROVIDE_IFELSE([AC_PROG_CXX],
 3233 		  [_AM_DEPENDENCIES([CXX])],
 3234 		  [m4_define([AC_PROG_CXX],
 3235 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 3236 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 3237 		  [_AM_DEPENDENCIES([OBJC])],
 3238 		  [m4_define([AC_PROG_OBJC],
 3239 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 3240 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 3241 		  [_AM_DEPENDENCIES([OBJCXX])],
 3242 		  [m4_define([AC_PROG_OBJCXX],
 3243 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
 3244 ])
 3245 AC_REQUIRE([AM_SILENT_RULES])dnl
 3246 dnl The testsuite driver may need to know about EXEEXT, so add the
 3247 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 3248 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
 3249 AC_CONFIG_COMMANDS_PRE(dnl
 3250 [m4_provide_if([_AM_COMPILER_EXEEXT],
 3251   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 3252 
 3253 # POSIX will say in a future version that running "rm -f" with no argument
 3254 # is OK; and we want to be able to make that assumption in our Makefile
 3255 # recipes.  So use an aggressive probe to check that the usage we want is
 3256 # actually supported "in the wild" to an acceptable degree.
 3257 # See automake bug#10828.
 3258 # To make any issue more visible, cause the running configure to be aborted
 3259 # by default if the 'rm' program in use doesn't match our expectations; the
 3260 # user can still override this though.
 3261 if rm -f && rm -fr && rm -rf; then : OK; else
 3262   cat >&2 <<'END'
 3263 Oops!
 3264 
 3265 Your 'rm' program seems unable to run without file operands specified
 3266 on the command line, even when the '-f' option is present.  This is contrary
 3267 to the behaviour of most rm programs out there, and not conforming with
 3268 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 3269 
 3270 Please tell bug-automake@gnu.org about your system, including the value
 3271 of your $PATH and any error possibly output before this message.  This
 3272 can help us improve future automake versions.
 3273 
 3274 END
 3275   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 3276     echo 'Configuration will proceed anyway, since you have set the' >&2
 3277     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 3278     echo >&2
 3279   else
 3280     cat >&2 <<'END'
 3281 Aborting the configuration process, to ensure you take notice of the issue.
 3282 
 3283 You can download and install GNU coreutils to get an 'rm' implementation
 3284 that behaves properly: <https://www.gnu.org/software/coreutils/>.
 3285 
 3286 If you want to complete the configuration process using your problematic
 3287 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 3288 to "yes", and re-run configure.
 3289 
 3290 END
 3291     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 3292   fi
 3293 fi
 3294 dnl The trailing newline in this macro's definition is deliberate, for
 3295 dnl backward compatibility and to allow trailing 'dnl'-style comments
 3296 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
 3297 ])
 3298 
 3299 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 3300 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 3301 dnl mangled by Autoconf and run in a shell conditional statement.
 3302 m4_define([_AC_COMPILER_EXEEXT],
 3303 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 3304 
 3305 # When config.status generates a header, we must update the stamp-h file.
 3306 # This file resides in the same directory as the config header
 3307 # that is generated.  The stamp files are numbered to have different names.
 3308 
 3309 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 3310 # loop where config.status creates the headers, so we can generate
 3311 # our stamp files there.
 3312 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 3313 [# Compute $1's index in $config_headers.
 3314 _am_arg=$1
 3315 _am_stamp_count=1
 3316 for _am_header in $config_headers :; do
 3317   case $_am_header in
 3318     $_am_arg | $_am_arg:* )
 3319       break ;;
 3320     * )
 3321       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 3322   esac
 3323 done
 3324 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 3325 
 3326 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 3327 #
 3328 # This file is free software; the Free Software Foundation
 3329 # gives unlimited permission to copy and/or distribute it,
 3330 # with or without modifications, as long as this notice is preserved.
 3331 
 3332 # AM_PROG_INSTALL_SH
 3333 # ------------------
 3334 # Define $install_sh.
 3335 AC_DEFUN([AM_PROG_INSTALL_SH],
 3336 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 3337 if test x"${install_sh+set}" != xset; then
 3338   case $am_aux_dir in
 3339   *\ * | *\	*)
 3340     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 3341   *)
 3342     install_sh="\${SHELL} $am_aux_dir/install-sh"
 3343   esac
 3344 fi
 3345 AC_SUBST([install_sh])])
 3346 
 3347 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
 3348 #
 3349 # This file is free software; the Free Software Foundation
 3350 # gives unlimited permission to copy and/or distribute it,
 3351 # with or without modifications, as long as this notice is preserved.
 3352 
 3353 # Check whether the underlying file-system supports filenames
 3354 # with a leading dot.  For instance MS-DOS doesn't.
 3355 AC_DEFUN([AM_SET_LEADING_DOT],
 3356 [rm -rf .tst 2>/dev/null
 3357 mkdir .tst 2>/dev/null
 3358 if test -d .tst; then
 3359   am__leading_dot=.
 3360 else
 3361   am__leading_dot=_
 3362 fi
 3363 rmdir .tst 2>/dev/null
 3364 AC_SUBST([am__leading_dot])])
 3365 
 3366 # Check to see how 'make' treats includes.	            -*- Autoconf -*-
 3367 
 3368 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 3369 #
 3370 # This file is free software; the Free Software Foundation
 3371 # gives unlimited permission to copy and/or distribute it,
 3372 # with or without modifications, as long as this notice is preserved.
 3373 
 3374 # AM_MAKE_INCLUDE()
 3375 # -----------------
 3376 # Check whether make has an 'include' directive that can support all
 3377 # the idioms we need for our automatic dependency tracking code.
 3378 AC_DEFUN([AM_MAKE_INCLUDE],
 3379 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
 3380 cat > confinc.mk << 'END'
 3381 am__doit:
 3382 	@echo this is the am__doit target >confinc.out
 3383 .PHONY: am__doit
 3384 END
 3385 am__include="#"
 3386 am__quote=
 3387 # BSD make does it like this.
 3388 echo '.include "confinc.mk" # ignored' > confmf.BSD
 3389 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
 3390 echo 'include confinc.mk # ignored' > confmf.GNU
 3391 _am_result=no
 3392 for s in GNU BSD; do
 3393   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
 3394   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
 3395       ['0:this is the am__doit target'],
 3396       [AS_CASE([$s],
 3397           [BSD], [am__include='.include' am__quote='"'],
 3398           [am__include='include' am__quote=''])])
 3399   if test "$am__include" != "#"; then
 3400     _am_result="yes ($s style)"
 3401     break
 3402   fi
 3403 done
 3404 rm -f confinc.* confmf.*
 3405 AC_MSG_RESULT([${_am_result}])
 3406 AC_SUBST([am__include])])
 3407 AC_SUBST([am__quote])])
 3408 
 3409 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 3410 
 3411 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
 3412 #
 3413 # This file is free software; the Free Software Foundation
 3414 # gives unlimited permission to copy and/or distribute it,
 3415 # with or without modifications, as long as this notice is preserved.
 3416 
 3417 # AM_MISSING_PROG(NAME, PROGRAM)
 3418 # ------------------------------
 3419 AC_DEFUN([AM_MISSING_PROG],
 3420 [AC_REQUIRE([AM_MISSING_HAS_RUN])
 3421 $1=${$1-"${am_missing_run}$2"}
 3422 AC_SUBST($1)])
 3423 
 3424 # AM_MISSING_HAS_RUN
 3425 # ------------------
 3426 # Define MISSING if not defined so far and test if it is modern enough.
 3427 # If it is, set am_missing_run to use it, otherwise, to nothing.
 3428 AC_DEFUN([AM_MISSING_HAS_RUN],
 3429 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 3430 AC_REQUIRE_AUX_FILE([missing])dnl
 3431 if test x"${MISSING+set}" != xset; then
 3432   case $am_aux_dir in
 3433   *\ * | *\	*)
 3434     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 3435   *)
 3436     MISSING="\${SHELL} $am_aux_dir/missing" ;;
 3437   esac
 3438 fi
 3439 # Use eval to expand $SHELL
 3440 if eval "$MISSING --is-lightweight"; then
 3441   am_missing_run="$MISSING "
 3442 else
 3443   am_missing_run=
 3444   AC_MSG_WARN(['missing' script is too old or missing])
 3445 fi
 3446 ])
 3447 
 3448 # Helper functions for option handling.                     -*- Autoconf -*-
 3449 
 3450 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 3451 #
 3452 # This file is free software; the Free Software Foundation
 3453 # gives unlimited permission to copy and/or distribute it,
 3454 # with or without modifications, as long as this notice is preserved.
 3455 
 3456 # _AM_MANGLE_OPTION(NAME)
 3457 # -----------------------
 3458 AC_DEFUN([_AM_MANGLE_OPTION],
 3459 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 3460 
 3461 # _AM_SET_OPTION(NAME)
 3462 # --------------------
 3463 # Set option NAME.  Presently that only means defining a flag for this option.
 3464 AC_DEFUN([_AM_SET_OPTION],
 3465 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 3466 
 3467 # _AM_SET_OPTIONS(OPTIONS)
 3468 # ------------------------
 3469 # OPTIONS is a space-separated list of Automake options.
 3470 AC_DEFUN([_AM_SET_OPTIONS],
 3471 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 3472 
 3473 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 3474 # -------------------------------------------
 3475 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 3476 AC_DEFUN([_AM_IF_OPTION],
 3477 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 3478 
 3479 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
 3480 #
 3481 # This file is free software; the Free Software Foundation
 3482 # gives unlimited permission to copy and/or distribute it,
 3483 # with or without modifications, as long as this notice is preserved.
 3484 
 3485 # _AM_PROG_CC_C_O
 3486 # ---------------
 3487 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 3488 # to automatically call this.
 3489 AC_DEFUN([_AM_PROG_CC_C_O],
 3490 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 3491 AC_REQUIRE_AUX_FILE([compile])dnl
 3492 AC_LANG_PUSH([C])dnl
 3493 AC_CACHE_CHECK(
 3494   [whether $CC understands -c and -o together],
 3495   [am_cv_prog_cc_c_o],
 3496   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 3497   # Make sure it works both with $CC and with simple cc.
 3498   # Following AC_PROG_CC_C_O, we do the test twice because some
 3499   # compilers refuse to overwrite an existing .o file with -o,
 3500   # though they will create one.
 3501   am_cv_prog_cc_c_o=yes
 3502   for am_i in 1 2; do
 3503     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 3504          && test -f conftest2.$ac_objext; then
 3505       : OK
 3506     else
 3507       am_cv_prog_cc_c_o=no
 3508       break
 3509     fi
 3510   done
 3511   rm -f core conftest*
 3512   unset am_i])
 3513 if test "$am_cv_prog_cc_c_o" != yes; then
 3514    # Losing compiler, so override with the script.
 3515    # FIXME: It is wrong to rewrite CC.
 3516    # But if we don't then we get into trouble of one sort or another.
 3517    # A longer-term fix would be to have automake use am__CC in this case,
 3518    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 3519    CC="$am_aux_dir/compile $CC"
 3520 fi
 3521 AC_LANG_POP([C])])
 3522 
 3523 # For backward compatibility.
 3524 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 3525 
 3526 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 3527 #
 3528 # This file is free software; the Free Software Foundation
 3529 # gives unlimited permission to copy and/or distribute it,
 3530 # with or without modifications, as long as this notice is preserved.
 3531 
 3532 # AM_RUN_LOG(COMMAND)
 3533 # -------------------
 3534 # Run COMMAND, save the exit status in ac_status, and log it.
 3535 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 3536 AC_DEFUN([AM_RUN_LOG],
 3537 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 3538    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 3539    ac_status=$?
 3540    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 3541    (exit $ac_status); }])
 3542 
 3543 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 3544 
 3545 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
 3546 #
 3547 # This file is free software; the Free Software Foundation
 3548 # gives unlimited permission to copy and/or distribute it,
 3549 # with or without modifications, as long as this notice is preserved.
 3550 
 3551 # AM_SANITY_CHECK
 3552 # ---------------
 3553 AC_DEFUN([AM_SANITY_CHECK],
 3554 [AC_MSG_CHECKING([whether build environment is sane])
 3555 # Reject unsafe characters in $srcdir or the absolute working directory
 3556 # name.  Accept space and tab only in the latter.
 3557 am_lf='
 3558 '
 3559 case `pwd` in
 3560   *[[\\\"\#\$\&\'\`$am_lf]]*)
 3561     AC_MSG_ERROR([unsafe absolute working directory name]);;
 3562 esac
 3563 case $srcdir in
 3564   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
 3565     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 3566 esac
 3567 
 3568 # Do 'set' in a subshell so we don't clobber the current shell's
 3569 # arguments.  Must try -L first in case configure is actually a
 3570 # symlink; some systems play weird games with the mod time of symlinks
 3571 # (eg FreeBSD returns the mod time of the symlink's containing
 3572 # directory).
 3573 if (
 3574    am_has_slept=no
 3575    for am_try in 1 2; do
 3576      echo "timestamp, slept: $am_has_slept" > conftest.file
 3577      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 3578      if test "$[*]" = "X"; then
 3579 	# -L didn't work.
 3580 	set X `ls -t "$srcdir/configure" conftest.file`
 3581      fi
 3582      if test "$[*]" != "X $srcdir/configure conftest.file" \
 3583 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
 3584 
 3585 	# If neither matched, then we have a broken ls.  This can happen
 3586 	# if, for instance, CONFIG_SHELL is bash and it inherits a
 3587 	# broken ls alias from the environment.  This has actually
 3588 	# happened.  Such a system could not be considered "sane".
 3589 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 3590   alias in your environment])
 3591      fi
 3592      if test "$[2]" = conftest.file || test $am_try -eq 2; then
 3593        break
 3594      fi
 3595      # Just in case.
 3596      sleep 1
 3597      am_has_slept=yes
 3598    done
 3599    test "$[2]" = conftest.file
 3600    )
 3601 then
 3602    # Ok.
 3603    :
 3604 else
 3605    AC_MSG_ERROR([newly created file is older than distributed files!
 3606 Check your system clock])
 3607 fi
 3608 AC_MSG_RESULT([yes])
 3609 # If we didn't sleep, we still need to ensure time stamps of config.status and
 3610 # generated files are strictly newer.
 3611 am_sleep_pid=
 3612 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 3613   ( sleep 1 ) &
 3614   am_sleep_pid=$!
 3615 fi
 3616 AC_CONFIG_COMMANDS_PRE(
 3617   [AC_MSG_CHECKING([that generated files are newer than configure])
 3618    if test -n "$am_sleep_pid"; then
 3619      # Hide warnings about reused PIDs.
 3620      wait $am_sleep_pid 2>/dev/null
 3621    fi
 3622    AC_MSG_RESULT([done])])
 3623 rm -f conftest.file
 3624 ])
 3625 
 3626 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
 3627 #
 3628 # This file is free software; the Free Software Foundation
 3629 # gives unlimited permission to copy and/or distribute it,
 3630 # with or without modifications, as long as this notice is preserved.
 3631 
 3632 # AM_SILENT_RULES([DEFAULT])
 3633 # --------------------------
 3634 # Enable less verbose build rules; with the default set to DEFAULT
 3635 # ("yes" being less verbose, "no" or empty being verbose).
 3636 AC_DEFUN([AM_SILENT_RULES],
 3637 [AC_ARG_ENABLE([silent-rules], [dnl
 3638 AS_HELP_STRING(
 3639   [--enable-silent-rules],
 3640   [less verbose build output (undo: "make V=1")])
 3641 AS_HELP_STRING(
 3642   [--disable-silent-rules],
 3643   [verbose build output (undo: "make V=0")])dnl
 3644 ])
 3645 case $enable_silent_rules in @%:@ (((
 3646   yes) AM_DEFAULT_VERBOSITY=0;;
 3647    no) AM_DEFAULT_VERBOSITY=1;;
 3648     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 3649 esac
 3650 dnl
 3651 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 3652 dnl do not support nested variable expansions.
 3653 dnl See automake bug#9928 and bug#10237.
 3654 am_make=${MAKE-make}
 3655 AC_CACHE_CHECK([whether $am_make supports nested variables],
 3656    [am_cv_make_support_nested_variables],
 3657    [if AS_ECHO([['TRUE=$(BAR$(V))
 3658 BAR0=false
 3659 BAR1=true
 3660 V=1
 3661 am__doit:
 3662 	@$(TRUE)
 3663 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 3664   am_cv_make_support_nested_variables=yes
 3665 else
 3666   am_cv_make_support_nested_variables=no
 3667 fi])
 3668 if test $am_cv_make_support_nested_variables = yes; then
 3669   dnl Using '$V' instead of '$(V)' breaks IRIX make.
 3670   AM_V='$(V)'
 3671   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 3672 else
 3673   AM_V=$AM_DEFAULT_VERBOSITY
 3674   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 3675 fi
 3676 AC_SUBST([AM_V])dnl
 3677 AM_SUBST_NOTMAKE([AM_V])dnl
 3678 AC_SUBST([AM_DEFAULT_V])dnl
 3679 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 3680 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 3681 AM_BACKSLASH='\'
 3682 AC_SUBST([AM_BACKSLASH])dnl
 3683 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 3684 ])
 3685 
 3686 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 3687 #
 3688 # This file is free software; the Free Software Foundation
 3689 # gives unlimited permission to copy and/or distribute it,
 3690 # with or without modifications, as long as this notice is preserved.
 3691 
 3692 # AM_PROG_INSTALL_STRIP
 3693 # ---------------------
 3694 # One issue with vendor 'install' (even GNU) is that you can't
 3695 # specify the program used to strip binaries.  This is especially
 3696 # annoying in cross-compiling environments, where the build's strip
 3697 # is unlikely to handle the host's binaries.
 3698 # Fortunately install-sh will honor a STRIPPROG variable, so we
 3699 # always use install-sh in "make install-strip", and initialize
 3700 # STRIPPROG with the value of the STRIP variable (set by the user).
 3701 AC_DEFUN([AM_PROG_INSTALL_STRIP],
 3702 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 3703 # Installed binaries are usually stripped using 'strip' when the user
 3704 # run "make install-strip".  However 'strip' might not be the right
 3705 # tool to use in cross-compilation environments, therefore Automake
 3706 # will honor the 'STRIP' environment variable to overrule this program.
 3707 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
 3708 if test "$cross_compiling" != no; then
 3709   AC_CHECK_TOOL([STRIP], [strip], :)
 3710 fi
 3711 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 3712 AC_SUBST([INSTALL_STRIP_PROGRAM])])
 3713 
 3714 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
 3715 #
 3716 # This file is free software; the Free Software Foundation
 3717 # gives unlimited permission to copy and/or distribute it,
 3718 # with or without modifications, as long as this notice is preserved.
 3719 
 3720 # _AM_SUBST_NOTMAKE(VARIABLE)
 3721 # ---------------------------
 3722 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 3723 # This macro is traced by Automake.
 3724 AC_DEFUN([_AM_SUBST_NOTMAKE])
 3725 
 3726 # AM_SUBST_NOTMAKE(VARIABLE)
 3727 # --------------------------
 3728 # Public sister of _AM_SUBST_NOTMAKE.
 3729 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 3730 
 3731 # Check how to create a tarball.                            -*- Autoconf -*-
 3732 
 3733 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
 3734 #
 3735 # This file is free software; the Free Software Foundation
 3736 # gives unlimited permission to copy and/or distribute it,
 3737 # with or without modifications, as long as this notice is preserved.
 3738 
 3739 # _AM_PROG_TAR(FORMAT)
 3740 # --------------------
 3741 # Check how to create a tarball in format FORMAT.
 3742 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
 3743 #
 3744 # Substitute a variable $(am__tar) that is a command
 3745 # writing to stdout a FORMAT-tarball containing the directory
 3746 # $tardir.
 3747 #     tardir=directory && $(am__tar) > result.tar
 3748 #
 3749 # Substitute a variable $(am__untar) that extract such
 3750 # a tarball read from stdin.
 3751 #     $(am__untar) < result.tar
 3752 #
 3753 AC_DEFUN([_AM_PROG_TAR],
 3754 [# Always define AMTAR for backward compatibility.  Yes, it's still used
 3755 # in the wild :-(  We should find a proper way to deprecate it ...
 3756 AC_SUBST([AMTAR], ['$${TAR-tar}'])
 3757 
 3758 # We'll loop over all known methods to create a tar archive until one works.
 3759 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 3760 
 3761 m4_if([$1], [v7],
 3762   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 3763 
 3764   [m4_case([$1],
 3765     [ustar],
 3766      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 3767       # There is notably a 21 bits limit for the UID and the GID.  In fact,
 3768       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 3769       # and bug#13588).
 3770       am_max_uid=2097151 # 2^21 - 1
 3771       am_max_gid=$am_max_uid
 3772       # The $UID and $GID variables are not portable, so we need to resort
 3773       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 3774       # below are definitely unexpected, so allow the users to see them
 3775       # (that is, avoid stderr redirection).
 3776       am_uid=`id -u || echo unknown`
 3777       am_gid=`id -g || echo unknown`
 3778       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 3779       if test $am_uid -le $am_max_uid; then
 3780          AC_MSG_RESULT([yes])
 3781       else
 3782          AC_MSG_RESULT([no])
 3783          _am_tools=none
 3784       fi
 3785       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 3786       if test $am_gid -le $am_max_gid; then
 3787          AC_MSG_RESULT([yes])
 3788       else
 3789         AC_MSG_RESULT([no])
 3790         _am_tools=none
 3791       fi],
 3792 
 3793   [pax],
 3794     [],
 3795 
 3796   [m4_fatal([Unknown tar format])])
 3797 
 3798   AC_MSG_CHECKING([how to create a $1 tar archive])
 3799 
 3800   # Go ahead even if we have the value already cached.  We do so because we
 3801   # need to set the values for the 'am__tar' and 'am__untar' variables.
 3802   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 3803 
 3804   for _am_tool in $_am_tools; do
 3805     case $_am_tool in
 3806     gnutar)
 3807       for _am_tar in tar gnutar gtar; do
 3808         AM_RUN_LOG([$_am_tar --version]) && break
 3809       done
 3810       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 3811       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 3812       am__untar="$_am_tar -xf -"
 3813       ;;
 3814     plaintar)
 3815       # Must skip GNU tar: if it does not support --format= it doesn't create
 3816       # ustar tarball either.
 3817       (tar --version) >/dev/null 2>&1 && continue
 3818       am__tar='tar chf - "$$tardir"'
 3819       am__tar_='tar chf - "$tardir"'
 3820       am__untar='tar xf -'
 3821       ;;
 3822     pax)
 3823       am__tar='pax -L -x $1 -w "$$tardir"'
 3824       am__tar_='pax -L -x $1 -w "$tardir"'
 3825       am__untar='pax -r'
 3826       ;;
 3827     cpio)
 3828       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 3829       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 3830       am__untar='cpio -i -H $1 -d'
 3831       ;;
 3832     none)
 3833       am__tar=false
 3834       am__tar_=false
 3835       am__untar=false
 3836       ;;
 3837     esac
 3838 
 3839     # If the value was cached, stop now.  We just wanted to have am__tar
 3840     # and am__untar set.
 3841     test -n "${am_cv_prog_tar_$1}" && break
 3842 
 3843     # tar/untar a dummy directory, and stop if the command works.
 3844     rm -rf conftest.dir
 3845     mkdir conftest.dir
 3846     echo GrepMe > conftest.dir/file
 3847     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 3848     rm -rf conftest.dir
 3849     if test -s conftest.tar; then
 3850       AM_RUN_LOG([$am__untar <conftest.tar])
 3851       AM_RUN_LOG([cat conftest.dir/file])
 3852       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 3853     fi
 3854   done
 3855   rm -rf conftest.dir
 3856 
 3857   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 3858   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 3859 
 3860 AC_SUBST([am__tar])
 3861 AC_SUBST([am__untar])
 3862 ]) # _AM_PROG_TAR
 3863