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