1# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
2
3# Copyright (C) 1996-2017 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
17
18# po.m4 serial 24 (gettext-0.19)
19dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
20dnl This file is free software; the Free Software Foundation
21dnl gives unlimited permission to copy and/or distribute it,
22dnl with or without modifications, as long as this notice is preserved.
23dnl
24dnl This file can be used in projects which are not available under
25dnl the GNU General Public License or the GNU Library General Public
26dnl License but which still want to provide support for the GNU gettext
27dnl functionality.
28dnl Please note that the actual code of the GNU gettext library is covered
29dnl by the GNU Library General Public License, and the rest of the GNU
30dnl gettext package is covered by the GNU General Public License.
31dnl They are *not* in the public domain.
32
33dnl Authors:
34dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
35dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
36
37AC_PREREQ([2.60])
38
39dnl Checks for all prerequisites of the po subdirectory.
40AC_DEFUN([AM_PO_SUBDIRS],
41[
42  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
43  AC_REQUIRE([AC_PROG_INSTALL])dnl
44  AC_REQUIRE([AC_PROG_MKDIR_P])dnl
45  AC_REQUIRE([AC_PROG_SED])dnl
46  AC_REQUIRE([AM_NLS])dnl
47
48  dnl Release version of the gettext macros. This is used to ensure that
49  dnl the gettext macros and po/Makefile.in.in are in sync.
50  AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
51
52  dnl Perform the following tests also if --disable-nls has been given,
53  dnl because they are needed for "make dist" to work.
54
55  dnl Search for GNU msgfmt in the PATH.
56  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
57  dnl The second test excludes FreeBSD msgfmt.
58  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
59    [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
60     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
61    :)
62  AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
63
64  dnl Test whether it is GNU msgfmt >= 0.15.
65changequote(,)dnl
66  case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
67    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
68    *) MSGFMT_015=$MSGFMT ;;
69  esac
70changequote([,])dnl
71  AC_SUBST([MSGFMT_015])
72changequote(,)dnl
73  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
74    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
75    *) GMSGFMT_015=$GMSGFMT ;;
76  esac
77changequote([,])dnl
78  AC_SUBST([GMSGFMT_015])
79
80  dnl Search for GNU xgettext 0.12 or newer in the PATH.
81  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
82  dnl The second test excludes FreeBSD xgettext.
83  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
84    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
85     (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)],
86    :)
87  dnl Remove leftover from FreeBSD xgettext call.
88  rm -f messages.po
89
90  dnl Test whether it is GNU xgettext >= 0.15.
91changequote(,)dnl
92  case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
93    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
94    *) XGETTEXT_015=$XGETTEXT ;;
95  esac
96changequote([,])dnl
97  AC_SUBST([XGETTEXT_015])
98
99  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
100  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
101    [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
102
103  dnl Installation directories.
104  dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
105  dnl have to define it here, so that it can be used in po/Makefile.
106  test -n "$localedir" || localedir='${datadir}/locale'
107  AC_SUBST([localedir])
108
109  dnl Support for AM_XGETTEXT_OPTION.
110  test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
111  AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
112
113  AC_CONFIG_COMMANDS([po-directories], [[
114    for ac_file in $CONFIG_FILES; do
115      # Support "outfile[:infile[:infile...]]"
116      case "$ac_file" in
117        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
118      esac
119      # PO directories have a Makefile.in generated from Makefile.in.in.
120      case "$ac_file" in */Makefile.in)
121        # Adjust a relative srcdir.
122        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
123        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
124        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
125        # In autoconf-2.13 it is called $ac_given_srcdir.
126        # In autoconf-2.50 it is called $srcdir.
127        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
128        case "$ac_given_srcdir" in
129          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
130          /*) top_srcdir="$ac_given_srcdir" ;;
131          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
132        esac
133        # Treat a directory as a PO directory if and only if it has a
134        # POTFILES.in file. This allows packages to have multiple PO
135        # directories under different names or in different locations.
136        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
137          rm -f "$ac_dir/POTFILES"
138          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
139          gt_tab=`printf '\t'`
140          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"
141          POMAKEFILEDEPS="POTFILES.in"
142          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
143          # on $ac_dir but don't depend on user-specified configuration
144          # parameters.
145          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
146            # The LINGUAS file contains the set of available languages.
147            if test -n "$OBSOLETE_ALL_LINGUAS"; then
148              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
149            fi
150            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
151            # Hide the ALL_LINGUAS assignment from automake < 1.5.
152            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
153            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
154          else
155            # The set of available languages was given in configure.in.
156            # Hide the ALL_LINGUAS assignment from automake < 1.5.
157            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
158          fi
159          # Compute POFILES
160          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
161          # Compute UPDATEPOFILES
162          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
163          # Compute DUMMYPOFILES
164          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
165          # Compute GMOFILES
166          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
167          case "$ac_given_srcdir" in
168            .) srcdirpre= ;;
169            *) srcdirpre='$(srcdir)/' ;;
170          esac
171          POFILES=
172          UPDATEPOFILES=
173          DUMMYPOFILES=
174          GMOFILES=
175          for lang in $ALL_LINGUAS; do
176            POFILES="$POFILES $srcdirpre$lang.po"
177            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
178            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
179            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
180          done
181          # CATALOGS depends on both $ac_dir and the user's LINGUAS
182          # environment variable.
183          INST_LINGUAS=
184          if test -n "$ALL_LINGUAS"; then
185            for presentlang in $ALL_LINGUAS; do
186              useit=no
187              if test "%UNSET%" != "$LINGUAS"; then
188                desiredlanguages="$LINGUAS"
189              else
190                desiredlanguages="$ALL_LINGUAS"
191              fi
192              for desiredlang in $desiredlanguages; do
193                # Use the presentlang catalog if desiredlang is
194                #   a. equal to presentlang, or
195                #   b. a variant of presentlang (because in this case,
196                #      presentlang can be used as a fallback for messages
197                #      which are not translated in the desiredlang catalog).
198                case "$desiredlang" in
199                  "$presentlang"*) useit=yes;;
200                esac
201              done
202              if test $useit = yes; then
203                INST_LINGUAS="$INST_LINGUAS $presentlang"
204              fi
205            done
206          fi
207          CATALOGS=
208          if test -n "$INST_LINGUAS"; then
209            for lang in $INST_LINGUAS; do
210              CATALOGS="$CATALOGS $lang.gmo"
211            done
212          fi
213          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
214          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"
215          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
216            if test -f "$f"; then
217              case "$f" in
218                *.orig | *.bak | *~) ;;
219                *) cat "$f" >> "$ac_dir/Makefile" ;;
220              esac
221            fi
222          done
223        fi
224        ;;
225      esac
226    done]],
227   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
228    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
229    # from automake < 1.5.
230    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
231    # Capture the value of LINGUAS because we need it to compute CATALOGS.
232    LINGUAS="${LINGUAS-%UNSET%}"
233   ])
234])
235
236dnl Postprocesses a Makefile in a directory containing PO files.
237AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
238[
239  # When this code is run, in config.status, two variables have already been
240  # set:
241  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
242  # - LINGUAS is the value of the environment variable LINGUAS at configure
243  #   time.
244
245changequote(,)dnl
246  # Adjust a relative srcdir.
247  ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
248  ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
249  ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
250  # In autoconf-2.13 it is called $ac_given_srcdir.
251  # In autoconf-2.50 it is called $srcdir.
252  test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
253  case "$ac_given_srcdir" in
254    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
255    /*) top_srcdir="$ac_given_srcdir" ;;
256    *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
257  esac
258
259  # Find a way to echo strings without interpreting backslash.
260  if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
261    gt_echo='echo'
262  else
263    if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
264      gt_echo='printf %s\n'
265    else
266      echo_func () {
267        cat <<EOT
268$*
269EOT
270      }
271      gt_echo='echo_func'
272    fi
273  fi
274
275  # A sed script that extracts the value of VARIABLE from a Makefile.
276  tab=`printf '\t'`
277  sed_x_variable='
278# Test if the hold space is empty.
279x
280s/P/P/
281x
282ta
283# Yes it was empty. Look if we have the expected variable definition.
284/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
285  # Seen the first line of the variable definition.
286  s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
287  ba
288}
289bd
290:a
291# Here we are processing a line from the variable definition.
292# Remove comment, more precisely replace it with a space.
293s/#.*$/ /
294# See if the line ends in a backslash.
295tb
296:b
297s/\\$//
298# Print the line, without the trailing backslash.
299p
300tc
301# There was no trailing backslash. The end of the variable definition is
302# reached. Clear the hold space.
303s/^.*$//
304x
305bd
306:c
307# A trailing backslash means that the variable definition continues in the
308# next line. Put a nonempty string into the hold space to indicate this.
309s/^.*$/P/
310x
311:d
312'
313changequote([,])dnl
314
315  # Set POTFILES to the value of the Makefile variable POTFILES.
316  sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
317  POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
318  # Compute POTFILES_DEPS as
319  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
320  POTFILES_DEPS=
321  for file in $POTFILES; do
322    POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
323  done
324  POMAKEFILEDEPS=""
325
326  if test -n "$OBSOLETE_ALL_LINGUAS"; then
327    test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
328  fi
329  if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
330    # The LINGUAS file contains the set of available languages.
331    ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
332    POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
333  else
334    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
335    sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
336    ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
337  fi
338  # Hide the ALL_LINGUAS assignment from automake < 1.5.
339  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
340  # Compute POFILES
341  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
342  # Compute UPDATEPOFILES
343  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
344  # Compute DUMMYPOFILES
345  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
346  # Compute GMOFILES
347  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
348  # Compute PROPERTIESFILES
349  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
350  # Compute CLASSFILES
351  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
352  # Compute QMFILES
353  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
354  # Compute MSGFILES
355  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
356  # Compute RESOURCESDLLFILES
357  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
358  case "$ac_given_srcdir" in
359    .) srcdirpre= ;;
360    *) srcdirpre='$(srcdir)/' ;;
361  esac
362  POFILES=
363  UPDATEPOFILES=
364  DUMMYPOFILES=
365  GMOFILES=
366  PROPERTIESFILES=
367  CLASSFILES=
368  QMFILES=
369  MSGFILES=
370  RESOURCESDLLFILES=
371  for lang in $ALL_LINGUAS; do
372    POFILES="$POFILES $srcdirpre$lang.po"
373    UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
374    DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
375    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
376    PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
377    CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
378    QMFILES="$QMFILES $srcdirpre$lang.qm"
379    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
380    MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
381    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/'`
382    RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
383  done
384  # CATALOGS depends on both $ac_dir and the user's LINGUAS
385  # environment variable.
386  INST_LINGUAS=
387  if test -n "$ALL_LINGUAS"; then
388    for presentlang in $ALL_LINGUAS; do
389      useit=no
390      if test "%UNSET%" != "$LINGUAS"; then
391        desiredlanguages="$LINGUAS"
392      else
393        desiredlanguages="$ALL_LINGUAS"
394      fi
395      for desiredlang in $desiredlanguages; do
396        # Use the presentlang catalog if desiredlang is
397        #   a. equal to presentlang, or
398        #   b. a variant of presentlang (because in this case,
399        #      presentlang can be used as a fallback for messages
400        #      which are not translated in the desiredlang catalog).
401        case "$desiredlang" in
402          "$presentlang"*) useit=yes;;
403        esac
404      done
405      if test $useit = yes; then
406        INST_LINGUAS="$INST_LINGUAS $presentlang"
407      fi
408    done
409  fi
410  CATALOGS=
411  JAVACATALOGS=
412  QTCATALOGS=
413  TCLCATALOGS=
414  CSHARPCATALOGS=
415  if test -n "$INST_LINGUAS"; then
416    for lang in $INST_LINGUAS; do
417      CATALOGS="$CATALOGS $lang.gmo"
418      JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
419      QTCATALOGS="$QTCATALOGS $lang.qm"
420      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
421      TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
422      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/'`
423      CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
424    done
425  fi
426
427  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"
428  tab=`printf '\t'`
429  if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
430    # Add dependencies that cannot be formulated as a simple suffix rule.
431    for lang in $ALL_LINGUAS; do
432      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
433      cat >> "$ac_file.tmp" <<EOF
434$frobbedlang.msg: $lang.po
435${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
436${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
437EOF
438    done
439  fi
440  if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
441    # Add dependencies that cannot be formulated as a simple suffix rule.
442    for lang in $ALL_LINGUAS; do
443      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/'`
444      cat >> "$ac_file.tmp" <<EOF
445$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
446${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
447${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
448EOF
449    done
450  fi
451  if test -n "$POMAKEFILEDEPS"; then
452    cat >> "$ac_file.tmp" <<EOF
453Makefile: $POMAKEFILEDEPS
454EOF
455  fi
456  mv "$ac_file.tmp" "$ac_file"
457])
458
459dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
460AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
461[
462  XGETTEXT_EXTRA_OPTIONS=
463])
464
465dnl Registers an option to be passed to xgettext in the po subdirectory.
466AC_DEFUN([AM_XGETTEXT_OPTION],
467[
468  AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
469  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
470])
471
472# Copyright (C) 2002-2017 Free Software Foundation, Inc.
473#
474# This file is free software; the Free Software Foundation
475# gives unlimited permission to copy and/or distribute it,
476# with or without modifications, as long as this notice is preserved.
477
478# AM_AUTOMAKE_VERSION(VERSION)
479# ----------------------------
480# Automake X.Y traces this macro to ensure aclocal.m4 has been
481# generated from the m4 files accompanying Automake X.Y.
482# (This private macro should not be called outside this file.)
483AC_DEFUN([AM_AUTOMAKE_VERSION],
484[am__api_version='1.15'
485dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
486dnl require some minimum version.  Point them to the right macro.
487m4_if([$1], [1.15.1], [],
488      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
489])
490
491# _AM_AUTOCONF_VERSION(VERSION)
492# -----------------------------
493# aclocal traces this macro to find the Autoconf version.
494# This is a private macro too.  Using m4_define simplifies
495# the logic in aclocal, which can simply ignore this definition.
496m4_define([_AM_AUTOCONF_VERSION], [])
497
498# AM_SET_CURRENT_AUTOMAKE_VERSION
499# -------------------------------
500# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
501# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
502AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
503[AM_AUTOMAKE_VERSION([1.15.1])dnl
504m4_ifndef([AC_AUTOCONF_VERSION],
505  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
506_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
507
508# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
509
510# Copyright (C) 2001-2017 Free Software Foundation, Inc.
511#
512# This file is free software; the Free Software Foundation
513# gives unlimited permission to copy and/or distribute it,
514# with or without modifications, as long as this notice is preserved.
515
516# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
517# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
518# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
519#
520# Of course, Automake must honor this variable whenever it calls a
521# tool from the auxiliary directory.  The problem is that $srcdir (and
522# therefore $ac_aux_dir as well) can be either absolute or relative,
523# depending on how configure is run.  This is pretty annoying, since
524# it makes $ac_aux_dir quite unusable in subdirectories: in the top
525# source directory, any form will work fine, but in subdirectories a
526# relative path needs to be adjusted first.
527#
528# $ac_aux_dir/missing
529#    fails when called from a subdirectory if $ac_aux_dir is relative
530# $top_srcdir/$ac_aux_dir/missing
531#    fails if $ac_aux_dir is absolute,
532#    fails when called from a subdirectory in a VPATH build with
533#          a relative $ac_aux_dir
534#
535# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
536# are both prefixed by $srcdir.  In an in-source build this is usually
537# harmless because $srcdir is '.', but things will broke when you
538# start a VPATH build or use an absolute $srcdir.
539#
540# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
541# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
542#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
543# and then we would define $MISSING as
544#   MISSING="\${SHELL} $am_aux_dir/missing"
545# This will work as long as MISSING is not called from configure, because
546# unfortunately $(top_srcdir) has no meaning in configure.
547# However there are other variables, like CC, which are often used in
548# configure, and could therefore not use this "fixed" $ac_aux_dir.
549#
550# Another solution, used here, is to always expand $ac_aux_dir to an
551# absolute PATH.  The drawback is that using absolute paths prevent a
552# configured tree to be moved without reconfiguration.
553
554AC_DEFUN([AM_AUX_DIR_EXPAND],
555[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
556# Expand $ac_aux_dir to an absolute path.
557am_aux_dir=`cd "$ac_aux_dir" && pwd`
558])
559
560# AM_CONDITIONAL                                            -*- Autoconf -*-
561
562# Copyright (C) 1997-2017 Free Software Foundation, Inc.
563#
564# This file is free software; the Free Software Foundation
565# gives unlimited permission to copy and/or distribute it,
566# with or without modifications, as long as this notice is preserved.
567
568# AM_CONDITIONAL(NAME, SHELL-CONDITION)
569# -------------------------------------
570# Define a conditional.
571AC_DEFUN([AM_CONDITIONAL],
572[AC_PREREQ([2.52])dnl
573 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
574       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
575AC_SUBST([$1_TRUE])dnl
576AC_SUBST([$1_FALSE])dnl
577_AM_SUBST_NOTMAKE([$1_TRUE])dnl
578_AM_SUBST_NOTMAKE([$1_FALSE])dnl
579m4_define([_AM_COND_VALUE_$1], [$2])dnl
580if $2; then
581  $1_TRUE=
582  $1_FALSE='#'
583else
584  $1_TRUE='#'
585  $1_FALSE=
586fi
587AC_CONFIG_COMMANDS_PRE(
588[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
589  AC_MSG_ERROR([[conditional "$1" was never defined.
590Usually this means the macro was only invoked conditionally.]])
591fi])])
592
593# Copyright (C) 1999-2017 Free Software Foundation, Inc.
594#
595# This file is free software; the Free Software Foundation
596# gives unlimited permission to copy and/or distribute it,
597# with or without modifications, as long as this notice is preserved.
598
599
600# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
601# written in clear, in which case automake, when reading aclocal.m4,
602# will think it sees a *use*, and therefore will trigger all it's
603# C support machinery.  Also note that it means that autoscan, seeing
604# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
605
606
607# _AM_DEPENDENCIES(NAME)
608# ----------------------
609# See how the compiler implements dependency checking.
610# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
611# We try a few techniques and use that to set a single cache variable.
612#
613# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
614# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
615# dependency, and given that the user is not expected to run this macro,
616# just rely on AC_PROG_CC.
617AC_DEFUN([_AM_DEPENDENCIES],
618[AC_REQUIRE([AM_SET_DEPDIR])dnl
619AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
620AC_REQUIRE([AM_MAKE_INCLUDE])dnl
621AC_REQUIRE([AM_DEP_TRACK])dnl
622
623m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
624      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
625      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
626      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
627      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
628      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
629                    [depcc="$$1"   am_compiler_list=])
630
631AC_CACHE_CHECK([dependency style of $depcc],
632               [am_cv_$1_dependencies_compiler_type],
633[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
634  # We make a subdir and do the tests there.  Otherwise we can end up
635  # making bogus files that we don't know about and never remove.  For
636  # instance it was reported that on HP-UX the gcc test will end up
637  # making a dummy file named 'D' -- because '-MD' means "put the output
638  # in D".
639  rm -rf conftest.dir
640  mkdir conftest.dir
641  # Copy depcomp to subdir because otherwise we won't find it if we're
642  # using a relative directory.
643  cp "$am_depcomp" conftest.dir
644  cd conftest.dir
645  # We will build objects and dependencies in a subdirectory because
646  # it helps to detect inapplicable dependency modes.  For instance
647  # both Tru64's cc and ICC support -MD to output dependencies as a
648  # side effect of compilation, but ICC will put the dependencies in
649  # the current directory while Tru64 will put them in the object
650  # directory.
651  mkdir sub
652
653  am_cv_$1_dependencies_compiler_type=none
654  if test "$am_compiler_list" = ""; then
655     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
656  fi
657  am__universal=false
658  m4_case([$1], [CC],
659    [case " $depcc " in #(
660     *\ -arch\ *\ -arch\ *) am__universal=true ;;
661     esac],
662    [CXX],
663    [case " $depcc " in #(
664     *\ -arch\ *\ -arch\ *) am__universal=true ;;
665     esac])
666
667  for depmode in $am_compiler_list; do
668    # Setup a source with many dependencies, because some compilers
669    # like to wrap large dependency lists on column 80 (with \), and
670    # we should not choose a depcomp mode which is confused by this.
671    #
672    # We need to recreate these files for each test, as the compiler may
673    # overwrite some of them when testing with obscure command lines.
674    # This happens at least with the AIX C compiler.
675    : > sub/conftest.c
676    for i in 1 2 3 4 5 6; do
677      echo '#include "conftst'$i'.h"' >> sub/conftest.c
678      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
679      # Solaris 10 /bin/sh.
680      echo '/* dummy */' > sub/conftst$i.h
681    done
682    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
683
684    # We check with '-c' and '-o' for the sake of the "dashmstdout"
685    # mode.  It turns out that the SunPro C++ compiler does not properly
686    # handle '-M -o', and we need to detect this.  Also, some Intel
687    # versions had trouble with output in subdirs.
688    am__obj=sub/conftest.${OBJEXT-o}
689    am__minus_obj="-o $am__obj"
690    case $depmode in
691    gcc)
692      # This depmode causes a compiler race in universal mode.
693      test "$am__universal" = false || continue
694      ;;
695    nosideeffect)
696      # After this tag, mechanisms are not by side-effect, so they'll
697      # only be used when explicitly requested.
698      if test "x$enable_dependency_tracking" = xyes; then
699	continue
700      else
701	break
702      fi
703      ;;
704    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
705      # This compiler won't grok '-c -o', but also, the minuso test has
706      # not run yet.  These depmodes are late enough in the game, and
707      # so weak that their functioning should not be impacted.
708      am__obj=conftest.${OBJEXT-o}
709      am__minus_obj=
710      ;;
711    none) break ;;
712    esac
713    if depmode=$depmode \
714       source=sub/conftest.c object=$am__obj \
715       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
716       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
717         >/dev/null 2>conftest.err &&
718       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
719       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
720       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
721       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
722      # icc doesn't choke on unknown options, it will just issue warnings
723      # or remarks (even with -Werror).  So we grep stderr for any message
724      # that says an option was ignored or not supported.
725      # When given -MP, icc 7.0 and 7.1 complain thusly:
726      #   icc: Command line warning: ignoring option '-M'; no argument required
727      # The diagnosis changed in icc 8.0:
728      #   icc: Command line remark: option '-MP' not supported
729      if (grep 'ignoring option' conftest.err ||
730          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
731        am_cv_$1_dependencies_compiler_type=$depmode
732        break
733      fi
734    fi
735  done
736
737  cd ..
738  rm -rf conftest.dir
739else
740  am_cv_$1_dependencies_compiler_type=none
741fi
742])
743AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
744AM_CONDITIONAL([am__fastdep$1], [
745  test "x$enable_dependency_tracking" != xno \
746  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
747])
748
749
750# AM_SET_DEPDIR
751# -------------
752# Choose a directory name for dependency files.
753# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
754AC_DEFUN([AM_SET_DEPDIR],
755[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
756AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
757])
758
759
760# AM_DEP_TRACK
761# ------------
762AC_DEFUN([AM_DEP_TRACK],
763[AC_ARG_ENABLE([dependency-tracking], [dnl
764AS_HELP_STRING(
765  [--enable-dependency-tracking],
766  [do not reject slow dependency extractors])
767AS_HELP_STRING(
768  [--disable-dependency-tracking],
769  [speeds up one-time build])])
770if test "x$enable_dependency_tracking" != xno; then
771  am_depcomp="$ac_aux_dir/depcomp"
772  AMDEPBACKSLASH='\'
773  am__nodep='_no'
774fi
775AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
776AC_SUBST([AMDEPBACKSLASH])dnl
777_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
778AC_SUBST([am__nodep])dnl
779_AM_SUBST_NOTMAKE([am__nodep])dnl
780])
781
782# Generate code to set up dependency tracking.              -*- Autoconf -*-
783
784# Copyright (C) 1999-2017 Free Software Foundation, Inc.
785#
786# This file is free software; the Free Software Foundation
787# gives unlimited permission to copy and/or distribute it,
788# with or without modifications, as long as this notice is preserved.
789
790
791# _AM_OUTPUT_DEPENDENCY_COMMANDS
792# ------------------------------
793AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
794[{
795  # Older Autoconf quotes --file arguments for eval, but not when files
796  # are listed without --file.  Let's play safe and only enable the eval
797  # if we detect the quoting.
798  case $CONFIG_FILES in
799  *\'*) eval set x "$CONFIG_FILES" ;;
800  *)   set x $CONFIG_FILES ;;
801  esac
802  shift
803  for mf
804  do
805    # Strip MF so we end up with the name of the file.
806    mf=`echo "$mf" | sed -e 's/:.*$//'`
807    # Check whether this is an Automake generated Makefile or not.
808    # We used to match only the files named 'Makefile.in', but
809    # some people rename them; so instead we look at the file content.
810    # Grep'ing the first line is not enough: some people post-process
811    # each Makefile.in and add a new line on top of each file to say so.
812    # Grep'ing the whole file is not good either: AIX grep has a line
813    # limit of 2048, but all sed's we know have understand at least 4000.
814    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
815      dirpart=`AS_DIRNAME("$mf")`
816    else
817      continue
818    fi
819    # Extract the definition of DEPDIR, am__include, and am__quote
820    # from the Makefile without running 'make'.
821    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
822    test -z "$DEPDIR" && continue
823    am__include=`sed -n 's/^am__include = //p' < "$mf"`
824    test -z "$am__include" && continue
825    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
826    # Find all dependency output files, they are included files with
827    # $(DEPDIR) in their names.  We invoke sed twice because it is the
828    # simplest approach to changing $(DEPDIR) to its actual value in the
829    # expansion.
830    for file in `sed -n "
831      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
832	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
833      # Make sure the directory exists.
834      test -f "$dirpart/$file" && continue
835      fdir=`AS_DIRNAME(["$file"])`
836      AS_MKDIR_P([$dirpart/$fdir])
837      # echo "creating $dirpart/$file"
838      echo '# dummy' > "$dirpart/$file"
839    done
840  done
841}
842])# _AM_OUTPUT_DEPENDENCY_COMMANDS
843
844
845# AM_OUTPUT_DEPENDENCY_COMMANDS
846# -----------------------------
847# This macro should only be invoked once -- use via AC_REQUIRE.
848#
849# This code is only required when automatic dependency tracking
850# is enabled.  FIXME.  This creates each '.P' file that we will
851# need in order to bootstrap the dependency handling code.
852AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
853[AC_CONFIG_COMMANDS([depfiles],
854     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
855     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
856])
857
858# Do all the work for Automake.                             -*- Autoconf -*-
859
860# Copyright (C) 1996-2017 Free Software Foundation, Inc.
861#
862# This file is free software; the Free Software Foundation
863# gives unlimited permission to copy and/or distribute it,
864# with or without modifications, as long as this notice is preserved.
865
866# This macro actually does too much.  Some checks are only needed if
867# your package does certain things.  But this isn't really a big deal.
868
869dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
870m4_define([AC_PROG_CC],
871m4_defn([AC_PROG_CC])
872[_AM_PROG_CC_C_O
873])
874
875# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
876# AM_INIT_AUTOMAKE([OPTIONS])
877# -----------------------------------------------
878# The call with PACKAGE and VERSION arguments is the old style
879# call (pre autoconf-2.50), which is being phased out.  PACKAGE
880# and VERSION should now be passed to AC_INIT and removed from
881# the call to AM_INIT_AUTOMAKE.
882# We support both call styles for the transition.  After
883# the next Automake release, Autoconf can make the AC_INIT
884# arguments mandatory, and then we can depend on a new Autoconf
885# release and drop the old call support.
886AC_DEFUN([AM_INIT_AUTOMAKE],
887[AC_PREREQ([2.65])dnl
888dnl Autoconf wants to disallow AM_ names.  We explicitly allow
889dnl the ones we care about.
890m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
891AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
892AC_REQUIRE([AC_PROG_INSTALL])dnl
893if test "`cd $srcdir && pwd`" != "`pwd`"; then
894  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
895  # is not polluted with repeated "-I."
896  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
897  # test to see if srcdir already configured
898  if test -f $srcdir/config.status; then
899    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
900  fi
901fi
902
903# test whether we have cygpath
904if test -z "$CYGPATH_W"; then
905  if (cygpath --version) >/dev/null 2>/dev/null; then
906    CYGPATH_W='cygpath -w'
907  else
908    CYGPATH_W=echo
909  fi
910fi
911AC_SUBST([CYGPATH_W])
912
913# Define the identity of the package.
914dnl Distinguish between old-style and new-style calls.
915m4_ifval([$2],
916[AC_DIAGNOSE([obsolete],
917             [$0: two- and three-arguments forms are deprecated.])
918m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
919 AC_SUBST([PACKAGE], [$1])dnl
920 AC_SUBST([VERSION], [$2])],
921[_AM_SET_OPTIONS([$1])dnl
922dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
923m4_if(
924  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
925  [ok:ok],,
926  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
927 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
928 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
929
930_AM_IF_OPTION([no-define],,
931[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
932 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
933
934# Some tools Automake needs.
935AC_REQUIRE([AM_SANITY_CHECK])dnl
936AC_REQUIRE([AC_ARG_PROGRAM])dnl
937AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
938AM_MISSING_PROG([AUTOCONF], [autoconf])
939AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
940AM_MISSING_PROG([AUTOHEADER], [autoheader])
941AM_MISSING_PROG([MAKEINFO], [makeinfo])
942AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
943AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
944AC_REQUIRE([AC_PROG_MKDIR_P])dnl
945# For better backward compatibility.  To be removed once Automake 1.9.x
946# dies out for good.  For more background, see:
947# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
948# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
949AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
950# We need awk for the "check" target (and possibly the TAP driver).  The
951# system "awk" is bad on some platforms.
952AC_REQUIRE([AC_PROG_AWK])dnl
953AC_REQUIRE([AC_PROG_MAKE_SET])dnl
954AC_REQUIRE([AM_SET_LEADING_DOT])dnl
955_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
956	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
957			     [_AM_PROG_TAR([v7])])])
958_AM_IF_OPTION([no-dependencies],,
959[AC_PROVIDE_IFELSE([AC_PROG_CC],
960		  [_AM_DEPENDENCIES([CC])],
961		  [m4_define([AC_PROG_CC],
962			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
963AC_PROVIDE_IFELSE([AC_PROG_CXX],
964		  [_AM_DEPENDENCIES([CXX])],
965		  [m4_define([AC_PROG_CXX],
966			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
967AC_PROVIDE_IFELSE([AC_PROG_OBJC],
968		  [_AM_DEPENDENCIES([OBJC])],
969		  [m4_define([AC_PROG_OBJC],
970			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
971AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
972		  [_AM_DEPENDENCIES([OBJCXX])],
973		  [m4_define([AC_PROG_OBJCXX],
974			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
975])
976AC_REQUIRE([AM_SILENT_RULES])dnl
977dnl The testsuite driver may need to know about EXEEXT, so add the
978dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
979dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
980AC_CONFIG_COMMANDS_PRE(dnl
981[m4_provide_if([_AM_COMPILER_EXEEXT],
982  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
983
984# POSIX will say in a future version that running "rm -f" with no argument
985# is OK; and we want to be able to make that assumption in our Makefile
986# recipes.  So use an aggressive probe to check that the usage we want is
987# actually supported "in the wild" to an acceptable degree.
988# See automake bug#10828.
989# To make any issue more visible, cause the running configure to be aborted
990# by default if the 'rm' program in use doesn't match our expectations; the
991# user can still override this though.
992if rm -f && rm -fr && rm -rf; then : OK; else
993  cat >&2 <<'END'
994Oops!
995
996Your 'rm' program seems unable to run without file operands specified
997on the command line, even when the '-f' option is present.  This is contrary
998to the behaviour of most rm programs out there, and not conforming with
999the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1000
1001Please tell bug-automake@gnu.org about your system, including the value
1002of your $PATH and any error possibly output before this message.  This
1003can help us improve future automake versions.
1004
1005END
1006  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1007    echo 'Configuration will proceed anyway, since you have set the' >&2
1008    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1009    echo >&2
1010  else
1011    cat >&2 <<'END'
1012Aborting the configuration process, to ensure you take notice of the issue.
1013
1014You can download and install GNU coreutils to get an 'rm' implementation
1015that behaves properly: <http://www.gnu.org/software/coreutils/>.
1016
1017If you want to complete the configuration process using your problematic
1018'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1019to "yes", and re-run configure.
1020
1021END
1022    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1023  fi
1024fi
1025dnl The trailing newline in this macro's definition is deliberate, for
1026dnl backward compatibility and to allow trailing 'dnl'-style comments
1027dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1028])
1029
1030dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1031dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1032dnl mangled by Autoconf and run in a shell conditional statement.
1033m4_define([_AC_COMPILER_EXEEXT],
1034m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1035
1036# When config.status generates a header, we must update the stamp-h file.
1037# This file resides in the same directory as the config header
1038# that is generated.  The stamp files are numbered to have different names.
1039
1040# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1041# loop where config.status creates the headers, so we can generate
1042# our stamp files there.
1043AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1044[# Compute $1's index in $config_headers.
1045_am_arg=$1
1046_am_stamp_count=1
1047for _am_header in $config_headers :; do
1048  case $_am_header in
1049    $_am_arg | $_am_arg:* )
1050      break ;;
1051    * )
1052      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1053  esac
1054done
1055echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1056
1057# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1058#
1059# This file is free software; the Free Software Foundation
1060# gives unlimited permission to copy and/or distribute it,
1061# with or without modifications, as long as this notice is preserved.
1062
1063# AM_PROG_INSTALL_SH
1064# ------------------
1065# Define $install_sh.
1066AC_DEFUN([AM_PROG_INSTALL_SH],
1067[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1068if test x"${install_sh+set}" != xset; then
1069  case $am_aux_dir in
1070  *\ * | *\	*)
1071    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1072  *)
1073    install_sh="\${SHELL} $am_aux_dir/install-sh"
1074  esac
1075fi
1076AC_SUBST([install_sh])])
1077
1078# Copyright (C) 2003-2017 Free Software Foundation, Inc.
1079#
1080# This file is free software; the Free Software Foundation
1081# gives unlimited permission to copy and/or distribute it,
1082# with or without modifications, as long as this notice is preserved.
1083
1084# Check whether the underlying file-system supports filenames
1085# with a leading dot.  For instance MS-DOS doesn't.
1086AC_DEFUN([AM_SET_LEADING_DOT],
1087[rm -rf .tst 2>/dev/null
1088mkdir .tst 2>/dev/null
1089if test -d .tst; then
1090  am__leading_dot=.
1091else
1092  am__leading_dot=_
1093fi
1094rmdir .tst 2>/dev/null
1095AC_SUBST([am__leading_dot])])
1096
1097# Check to see how 'make' treats includes.	            -*- Autoconf -*-
1098
1099# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1100#
1101# This file is free software; the Free Software Foundation
1102# gives unlimited permission to copy and/or distribute it,
1103# with or without modifications, as long as this notice is preserved.
1104
1105# AM_MAKE_INCLUDE()
1106# -----------------
1107# Check to see how make treats includes.
1108AC_DEFUN([AM_MAKE_INCLUDE],
1109[am_make=${MAKE-make}
1110cat > confinc << 'END'
1111am__doit:
1112	@echo this is the am__doit target
1113.PHONY: am__doit
1114END
1115# If we don't find an include directive, just comment out the code.
1116AC_MSG_CHECKING([for style of include used by $am_make])
1117am__include="#"
1118am__quote=
1119_am_result=none
1120# First try GNU make style include.
1121echo "include confinc" > confmf
1122# Ignore all kinds of additional output from 'make'.
1123case `$am_make -s -f confmf 2> /dev/null` in #(
1124*the\ am__doit\ target*)
1125  am__include=include
1126  am__quote=
1127  _am_result=GNU
1128  ;;
1129esac
1130# Now try BSD make style include.
1131if test "$am__include" = "#"; then
1132   echo '.include "confinc"' > confmf
1133   case `$am_make -s -f confmf 2> /dev/null` in #(
1134   *the\ am__doit\ target*)
1135     am__include=.include
1136     am__quote="\""
1137     _am_result=BSD
1138     ;;
1139   esac
1140fi
1141AC_SUBST([am__include])
1142AC_SUBST([am__quote])
1143AC_MSG_RESULT([$_am_result])
1144rm -f confinc confmf
1145])
1146
1147# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1148
1149# Copyright (C) 1997-2017 Free Software Foundation, Inc.
1150#
1151# This file is free software; the Free Software Foundation
1152# gives unlimited permission to copy and/or distribute it,
1153# with or without modifications, as long as this notice is preserved.
1154
1155# AM_MISSING_PROG(NAME, PROGRAM)
1156# ------------------------------
1157AC_DEFUN([AM_MISSING_PROG],
1158[AC_REQUIRE([AM_MISSING_HAS_RUN])
1159$1=${$1-"${am_missing_run}$2"}
1160AC_SUBST($1)])
1161
1162# AM_MISSING_HAS_RUN
1163# ------------------
1164# Define MISSING if not defined so far and test if it is modern enough.
1165# If it is, set am_missing_run to use it, otherwise, to nothing.
1166AC_DEFUN([AM_MISSING_HAS_RUN],
1167[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1168AC_REQUIRE_AUX_FILE([missing])dnl
1169if test x"${MISSING+set}" != xset; then
1170  case $am_aux_dir in
1171  *\ * | *\	*)
1172    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1173  *)
1174    MISSING="\${SHELL} $am_aux_dir/missing" ;;
1175  esac
1176fi
1177# Use eval to expand $SHELL
1178if eval "$MISSING --is-lightweight"; then
1179  am_missing_run="$MISSING "
1180else
1181  am_missing_run=
1182  AC_MSG_WARN(['missing' script is too old or missing])
1183fi
1184])
1185
1186#  -*- Autoconf -*-
1187# Obsolete and "removed" macros, that must however still report explicit
1188# error messages when used, to smooth transition.
1189#
1190# Copyright (C) 1996-2017 Free Software Foundation, Inc.
1191#
1192# This file is free software; the Free Software Foundation
1193# gives unlimited permission to copy and/or distribute it,
1194# with or without modifications, as long as this notice is preserved.
1195
1196AC_DEFUN([AM_CONFIG_HEADER],
1197[AC_DIAGNOSE([obsolete],
1198['$0': this macro is obsolete.
1199You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
1200AC_CONFIG_HEADERS($@)])
1201
1202AC_DEFUN([AM_PROG_CC_STDC],
1203[AC_PROG_CC
1204am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1205AC_DIAGNOSE([obsolete],
1206['$0': this macro is obsolete.
1207You should simply use the 'AC][_PROG_CC' macro instead.
1208Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
1209but upon 'ac_cv_prog_cc_stdc'.])])
1210
1211AC_DEFUN([AM_C_PROTOTYPES],
1212         [AC_FATAL([automatic de-ANSI-fication support has been removed])])
1213AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
1214
1215# Helper functions for option handling.                     -*- Autoconf -*-
1216
1217# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1218#
1219# This file is free software; the Free Software Foundation
1220# gives unlimited permission to copy and/or distribute it,
1221# with or without modifications, as long as this notice is preserved.
1222
1223# _AM_MANGLE_OPTION(NAME)
1224# -----------------------
1225AC_DEFUN([_AM_MANGLE_OPTION],
1226[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1227
1228# _AM_SET_OPTION(NAME)
1229# --------------------
1230# Set option NAME.  Presently that only means defining a flag for this option.
1231AC_DEFUN([_AM_SET_OPTION],
1232[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1233
1234# _AM_SET_OPTIONS(OPTIONS)
1235# ------------------------
1236# OPTIONS is a space-separated list of Automake options.
1237AC_DEFUN([_AM_SET_OPTIONS],
1238[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1239
1240# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1241# -------------------------------------------
1242# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1243AC_DEFUN([_AM_IF_OPTION],
1244[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1245
1246# Copyright (C) 1999-2017 Free Software Foundation, Inc.
1247#
1248# This file is free software; the Free Software Foundation
1249# gives unlimited permission to copy and/or distribute it,
1250# with or without modifications, as long as this notice is preserved.
1251
1252# _AM_PROG_CC_C_O
1253# ---------------
1254# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
1255# to automatically call this.
1256AC_DEFUN([_AM_PROG_CC_C_O],
1257[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1258AC_REQUIRE_AUX_FILE([compile])dnl
1259AC_LANG_PUSH([C])dnl
1260AC_CACHE_CHECK(
1261  [whether $CC understands -c and -o together],
1262  [am_cv_prog_cc_c_o],
1263  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1264  # Make sure it works both with $CC and with simple cc.
1265  # Following AC_PROG_CC_C_O, we do the test twice because some
1266  # compilers refuse to overwrite an existing .o file with -o,
1267  # though they will create one.
1268  am_cv_prog_cc_c_o=yes
1269  for am_i in 1 2; do
1270    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1271         && test -f conftest2.$ac_objext; then
1272      : OK
1273    else
1274      am_cv_prog_cc_c_o=no
1275      break
1276    fi
1277  done
1278  rm -f core conftest*
1279  unset am_i])
1280if test "$am_cv_prog_cc_c_o" != yes; then
1281   # Losing compiler, so override with the script.
1282   # FIXME: It is wrong to rewrite CC.
1283   # But if we don't then we get into trouble of one sort or another.
1284   # A longer-term fix would be to have automake use am__CC in this case,
1285   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1286   CC="$am_aux_dir/compile $CC"
1287fi
1288AC_LANG_POP([C])])
1289
1290# For backward compatibility.
1291AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1292
1293# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1294#
1295# This file is free software; the Free Software Foundation
1296# gives unlimited permission to copy and/or distribute it,
1297# with or without modifications, as long as this notice is preserved.
1298
1299# AM_RUN_LOG(COMMAND)
1300# -------------------
1301# Run COMMAND, save the exit status in ac_status, and log it.
1302# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1303AC_DEFUN([AM_RUN_LOG],
1304[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1305   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1306   ac_status=$?
1307   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1308   (exit $ac_status); }])
1309
1310# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1311
1312# Copyright (C) 1996-2017 Free Software Foundation, Inc.
1313#
1314# This file is free software; the Free Software Foundation
1315# gives unlimited permission to copy and/or distribute it,
1316# with or without modifications, as long as this notice is preserved.
1317
1318# AM_SANITY_CHECK
1319# ---------------
1320AC_DEFUN([AM_SANITY_CHECK],
1321[AC_MSG_CHECKING([whether build environment is sane])
1322# Reject unsafe characters in $srcdir or the absolute working directory
1323# name.  Accept space and tab only in the latter.
1324am_lf='
1325'
1326case `pwd` in
1327  *[[\\\"\#\$\&\'\`$am_lf]]*)
1328    AC_MSG_ERROR([unsafe absolute working directory name]);;
1329esac
1330case $srcdir in
1331  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
1332    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1333esac
1334
1335# Do 'set' in a subshell so we don't clobber the current shell's
1336# arguments.  Must try -L first in case configure is actually a
1337# symlink; some systems play weird games with the mod time of symlinks
1338# (eg FreeBSD returns the mod time of the symlink's containing
1339# directory).
1340if (
1341   am_has_slept=no
1342   for am_try in 1 2; do
1343     echo "timestamp, slept: $am_has_slept" > conftest.file
1344     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1345     if test "$[*]" = "X"; then
1346	# -L didn't work.
1347	set X `ls -t "$srcdir/configure" conftest.file`
1348     fi
1349     if test "$[*]" != "X $srcdir/configure conftest.file" \
1350	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1351
1352	# If neither matched, then we have a broken ls.  This can happen
1353	# if, for instance, CONFIG_SHELL is bash and it inherits a
1354	# broken ls alias from the environment.  This has actually
1355	# happened.  Such a system could not be considered "sane".
1356	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1357  alias in your environment])
1358     fi
1359     if test "$[2]" = conftest.file || test $am_try -eq 2; then
1360       break
1361     fi
1362     # Just in case.
1363     sleep 1
1364     am_has_slept=yes
1365   done
1366   test "$[2]" = conftest.file
1367   )
1368then
1369   # Ok.
1370   :
1371else
1372   AC_MSG_ERROR([newly created file is older than distributed files!
1373Check your system clock])
1374fi
1375AC_MSG_RESULT([yes])
1376# If we didn't sleep, we still need to ensure time stamps of config.status and
1377# generated files are strictly newer.
1378am_sleep_pid=
1379if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1380  ( sleep 1 ) &
1381  am_sleep_pid=$!
1382fi
1383AC_CONFIG_COMMANDS_PRE(
1384  [AC_MSG_CHECKING([that generated files are newer than configure])
1385   if test -n "$am_sleep_pid"; then
1386     # Hide warnings about reused PIDs.
1387     wait $am_sleep_pid 2>/dev/null
1388   fi
1389   AC_MSG_RESULT([done])])
1390rm -f conftest.file
1391])
1392
1393# Copyright (C) 2009-2017 Free Software Foundation, Inc.
1394#
1395# This file is free software; the Free Software Foundation
1396# gives unlimited permission to copy and/or distribute it,
1397# with or without modifications, as long as this notice is preserved.
1398
1399# AM_SILENT_RULES([DEFAULT])
1400# --------------------------
1401# Enable less verbose build rules; with the default set to DEFAULT
1402# ("yes" being less verbose, "no" or empty being verbose).
1403AC_DEFUN([AM_SILENT_RULES],
1404[AC_ARG_ENABLE([silent-rules], [dnl
1405AS_HELP_STRING(
1406  [--enable-silent-rules],
1407  [less verbose build output (undo: "make V=1")])
1408AS_HELP_STRING(
1409  [--disable-silent-rules],
1410  [verbose build output (undo: "make V=0")])dnl
1411])
1412case $enable_silent_rules in @%:@ (((
1413  yes) AM_DEFAULT_VERBOSITY=0;;
1414   no) AM_DEFAULT_VERBOSITY=1;;
1415    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1416esac
1417dnl
1418dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1419dnl do not support nested variable expansions.
1420dnl See automake bug#9928 and bug#10237.
1421am_make=${MAKE-make}
1422AC_CACHE_CHECK([whether $am_make supports nested variables],
1423   [am_cv_make_support_nested_variables],
1424   [if AS_ECHO([['TRUE=$(BAR$(V))
1425BAR0=false
1426BAR1=true
1427V=1
1428am__doit:
1429	@$(TRUE)
1430.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1431  am_cv_make_support_nested_variables=yes
1432else
1433  am_cv_make_support_nested_variables=no
1434fi])
1435if test $am_cv_make_support_nested_variables = yes; then
1436  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1437  AM_V='$(V)'
1438  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1439else
1440  AM_V=$AM_DEFAULT_VERBOSITY
1441  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1442fi
1443AC_SUBST([AM_V])dnl
1444AM_SUBST_NOTMAKE([AM_V])dnl
1445AC_SUBST([AM_DEFAULT_V])dnl
1446AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1447AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1448AM_BACKSLASH='\'
1449AC_SUBST([AM_BACKSLASH])dnl
1450_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1451])
1452
1453# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1454#
1455# This file is free software; the Free Software Foundation
1456# gives unlimited permission to copy and/or distribute it,
1457# with or without modifications, as long as this notice is preserved.
1458
1459# AM_PROG_INSTALL_STRIP
1460# ---------------------
1461# One issue with vendor 'install' (even GNU) is that you can't
1462# specify the program used to strip binaries.  This is especially
1463# annoying in cross-compiling environments, where the build's strip
1464# is unlikely to handle the host's binaries.
1465# Fortunately install-sh will honor a STRIPPROG variable, so we
1466# always use install-sh in "make install-strip", and initialize
1467# STRIPPROG with the value of the STRIP variable (set by the user).
1468AC_DEFUN([AM_PROG_INSTALL_STRIP],
1469[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1470# Installed binaries are usually stripped using 'strip' when the user
1471# run "make install-strip".  However 'strip' might not be the right
1472# tool to use in cross-compilation environments, therefore Automake
1473# will honor the 'STRIP' environment variable to overrule this program.
1474dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1475if test "$cross_compiling" != no; then
1476  AC_CHECK_TOOL([STRIP], [strip], :)
1477fi
1478INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1479AC_SUBST([INSTALL_STRIP_PROGRAM])])
1480
1481# Copyright (C) 2006-2017 Free Software Foundation, Inc.
1482#
1483# This file is free software; the Free Software Foundation
1484# gives unlimited permission to copy and/or distribute it,
1485# with or without modifications, as long as this notice is preserved.
1486
1487# _AM_SUBST_NOTMAKE(VARIABLE)
1488# ---------------------------
1489# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1490# This macro is traced by Automake.
1491AC_DEFUN([_AM_SUBST_NOTMAKE])
1492
1493# AM_SUBST_NOTMAKE(VARIABLE)
1494# --------------------------
1495# Public sister of _AM_SUBST_NOTMAKE.
1496AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1497
1498# Check how to create a tarball.                            -*- Autoconf -*-
1499
1500# Copyright (C) 2004-2017 Free Software Foundation, Inc.
1501#
1502# This file is free software; the Free Software Foundation
1503# gives unlimited permission to copy and/or distribute it,
1504# with or without modifications, as long as this notice is preserved.
1505
1506# _AM_PROG_TAR(FORMAT)
1507# --------------------
1508# Check how to create a tarball in format FORMAT.
1509# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1510#
1511# Substitute a variable $(am__tar) that is a command
1512# writing to stdout a FORMAT-tarball containing the directory
1513# $tardir.
1514#     tardir=directory && $(am__tar) > result.tar
1515#
1516# Substitute a variable $(am__untar) that extract such
1517# a tarball read from stdin.
1518#     $(am__untar) < result.tar
1519#
1520AC_DEFUN([_AM_PROG_TAR],
1521[# Always define AMTAR for backward compatibility.  Yes, it's still used
1522# in the wild :-(  We should find a proper way to deprecate it ...
1523AC_SUBST([AMTAR], ['$${TAR-tar}'])
1524
1525# We'll loop over all known methods to create a tar archive until one works.
1526_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1527
1528m4_if([$1], [v7],
1529  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1530
1531  [m4_case([$1],
1532    [ustar],
1533     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1534      # There is notably a 21 bits limit for the UID and the GID.  In fact,
1535      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1536      # and bug#13588).
1537      am_max_uid=2097151 # 2^21 - 1
1538      am_max_gid=$am_max_uid
1539      # The $UID and $GID variables are not portable, so we need to resort
1540      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1541      # below are definitely unexpected, so allow the users to see them
1542      # (that is, avoid stderr redirection).
1543      am_uid=`id -u || echo unknown`
1544      am_gid=`id -g || echo unknown`
1545      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1546      if test $am_uid -le $am_max_uid; then
1547         AC_MSG_RESULT([yes])
1548      else
1549         AC_MSG_RESULT([no])
1550         _am_tools=none
1551      fi
1552      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1553      if test $am_gid -le $am_max_gid; then
1554         AC_MSG_RESULT([yes])
1555      else
1556        AC_MSG_RESULT([no])
1557        _am_tools=none
1558      fi],
1559
1560  [pax],
1561    [],
1562
1563  [m4_fatal([Unknown tar format])])
1564
1565  AC_MSG_CHECKING([how to create a $1 tar archive])
1566
1567  # Go ahead even if we have the value already cached.  We do so because we
1568  # need to set the values for the 'am__tar' and 'am__untar' variables.
1569  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1570
1571  for _am_tool in $_am_tools; do
1572    case $_am_tool in
1573    gnutar)
1574      for _am_tar in tar gnutar gtar; do
1575        AM_RUN_LOG([$_am_tar --version]) && break
1576      done
1577      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1578      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1579      am__untar="$_am_tar -xf -"
1580      ;;
1581    plaintar)
1582      # Must skip GNU tar: if it does not support --format= it doesn't create
1583      # ustar tarball either.
1584      (tar --version) >/dev/null 2>&1 && continue
1585      am__tar='tar chf - "$$tardir"'
1586      am__tar_='tar chf - "$tardir"'
1587      am__untar='tar xf -'
1588      ;;
1589    pax)
1590      am__tar='pax -L -x $1 -w "$$tardir"'
1591      am__tar_='pax -L -x $1 -w "$tardir"'
1592      am__untar='pax -r'
1593      ;;
1594    cpio)
1595      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1596      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1597      am__untar='cpio -i -H $1 -d'
1598      ;;
1599    none)
1600      am__tar=false
1601      am__tar_=false
1602      am__untar=false
1603      ;;
1604    esac
1605
1606    # If the value was cached, stop now.  We just wanted to have am__tar
1607    # and am__untar set.
1608    test -n "${am_cv_prog_tar_$1}" && break
1609
1610    # tar/untar a dummy directory, and stop if the command works.
1611    rm -rf conftest.dir
1612    mkdir conftest.dir
1613    echo GrepMe > conftest.dir/file
1614    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1615    rm -rf conftest.dir
1616    if test -s conftest.tar; then
1617      AM_RUN_LOG([$am__untar <conftest.tar])
1618      AM_RUN_LOG([cat conftest.dir/file])
1619      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1620    fi
1621  done
1622  rm -rf conftest.dir
1623
1624  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1625  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1626
1627AC_SUBST([am__tar])
1628AC_SUBST([am__untar])
1629]) # _AM_PROG_TAR
1630
1631m4_include([gnulib-m4/00gnulib.m4])
1632m4_include([gnulib-m4/absolute-header.m4])
1633m4_include([gnulib-m4/alloca.m4])
1634m4_include([gnulib-m4/asm-underscore.m4])
1635m4_include([gnulib-m4/btowc.m4])
1636m4_include([gnulib-m4/builtin-expect.m4])
1637m4_include([gnulib-m4/codeset.m4])
1638m4_include([gnulib-m4/configmake.m4])
1639m4_include([gnulib-m4/ctype.m4])
1640m4_include([gnulib-m4/dirname.m4])
1641m4_include([gnulib-m4/double-slash-root.m4])
1642m4_include([gnulib-m4/eealloc.m4])
1643m4_include([gnulib-m4/environ.m4])
1644m4_include([gnulib-m4/errno_h.m4])
1645m4_include([gnulib-m4/error.m4])
1646m4_include([gnulib-m4/exponentd.m4])
1647m4_include([gnulib-m4/exponentf.m4])
1648m4_include([gnulib-m4/exponentl.m4])
1649m4_include([gnulib-m4/extensions.m4])
1650m4_include([gnulib-m4/extern-inline.m4])
1651m4_include([gnulib-m4/fcntl-o.m4])
1652m4_include([gnulib-m4/fdopen.m4])
1653m4_include([gnulib-m4/flexmember.m4])
1654m4_include([gnulib-m4/float_h.m4])
1655m4_include([gnulib-m4/fpieee.m4])
1656m4_include([gnulib-m4/frexp.m4])
1657m4_include([gnulib-m4/frexpl.m4])
1658m4_include([gnulib-m4/fseterr.m4])
1659m4_include([gnulib-m4/getpagesize.m4])
1660m4_include([gnulib-m4/getprogname.m4])
1661m4_include([gnulib-m4/glibc21.m4])
1662m4_include([gnulib-m4/gnulib-common.m4])
1663m4_include([gnulib-m4/gnulib-comp.m4])
1664m4_include([gnulib-m4/hard-locale.m4])
1665m4_include([gnulib-m4/host-cpu-c-abi.m4])
1666m4_include([gnulib-m4/iconv.m4])
1667m4_include([gnulib-m4/iconv_h.m4])
1668m4_include([gnulib-m4/iconv_open.m4])
1669m4_include([gnulib-m4/include_next.m4])
1670m4_include([gnulib-m4/inline.m4])
1671m4_include([gnulib-m4/intlmacosx.m4])
1672m4_include([gnulib-m4/intmax_t.m4])
1673m4_include([gnulib-m4/inttypes-pri.m4])
1674m4_include([gnulib-m4/inttypes.m4])
1675m4_include([gnulib-m4/inttypes_h.m4])
1676m4_include([gnulib-m4/isblank.m4])
1677m4_include([gnulib-m4/isnand.m4])
1678m4_include([gnulib-m4/isnanf.m4])
1679m4_include([gnulib-m4/isnanl.m4])
1680m4_include([gnulib-m4/iswblank.m4])
1681m4_include([gnulib-m4/langinfo_h.m4])
1682m4_include([gnulib-m4/lcmessage.m4])
1683m4_include([gnulib-m4/ldexpl.m4])
1684m4_include([gnulib-m4/lib-ld.m4])
1685m4_include([gnulib-m4/lib-link.m4])
1686m4_include([gnulib-m4/lib-prefix.m4])
1687m4_include([gnulib-m4/libunistring-base.m4])
1688m4_include([gnulib-m4/limits-h.m4])
1689m4_include([gnulib-m4/localcharset.m4])
1690m4_include([gnulib-m4/locale-ar.m4])
1691m4_include([gnulib-m4/locale-fr.m4])
1692m4_include([gnulib-m4/locale-ja.m4])
1693m4_include([gnulib-m4/locale-tr.m4])
1694m4_include([gnulib-m4/locale-zh.m4])
1695m4_include([gnulib-m4/locale_h.m4])
1696m4_include([gnulib-m4/localename.m4])
1697m4_include([gnulib-m4/lock.m4])
1698m4_include([gnulib-m4/longlong.m4])
1699m4_include([gnulib-m4/malloc.m4])
1700m4_include([gnulib-m4/malloca.m4])
1701m4_include([gnulib-m4/math_h.m4])
1702m4_include([gnulib-m4/mbchar.m4])
1703m4_include([gnulib-m4/mbiter.m4])
1704m4_include([gnulib-m4/mbrtowc.m4])
1705m4_include([gnulib-m4/mbsinit.m4])
1706m4_include([gnulib-m4/mbstate_t.m4])
1707m4_include([gnulib-m4/mbtowc.m4])
1708m4_include([gnulib-m4/memchr.m4])
1709m4_include([gnulib-m4/minmax.m4])
1710m4_include([gnulib-m4/mmap-anon.m4])
1711m4_include([gnulib-m4/msvc-inval.m4])
1712m4_include([gnulib-m4/msvc-nothrow.m4])
1713m4_include([gnulib-m4/multiarch.m4])
1714m4_include([gnulib-m4/nocrash.m4])
1715m4_include([gnulib-m4/off_t.m4])
1716m4_include([gnulib-m4/printf-frexp.m4])
1717m4_include([gnulib-m4/printf-frexpl.m4])
1718m4_include([gnulib-m4/printf.m4])
1719m4_include([gnulib-m4/pthread_rwlock_rdlock.m4])
1720m4_include([gnulib-m4/pthread_sigmask.m4])
1721m4_include([gnulib-m4/putenv.m4])
1722m4_include([gnulib-m4/raise.m4])
1723m4_include([gnulib-m4/relocatable-lib.m4])
1724m4_include([gnulib-m4/setenv.m4])
1725m4_include([gnulib-m4/setlocale.m4])
1726m4_include([gnulib-m4/signal_h.m4])
1727m4_include([gnulib-m4/signalblocking.m4])
1728m4_include([gnulib-m4/signbit.m4])
1729m4_include([gnulib-m4/size_max.m4])
1730m4_include([gnulib-m4/sleep.m4])
1731m4_include([gnulib-m4/ssize_t.m4])
1732m4_include([gnulib-m4/stdalign.m4])
1733m4_include([gnulib-m4/stdbool.m4])
1734m4_include([gnulib-m4/stddef_h.m4])
1735m4_include([gnulib-m4/stdint.m4])
1736m4_include([gnulib-m4/stdint_h.m4])
1737m4_include([gnulib-m4/stdio_h.m4])
1738m4_include([gnulib-m4/stdlib_h.m4])
1739m4_include([gnulib-m4/strerror.m4])
1740m4_include([gnulib-m4/string_h.m4])
1741m4_include([gnulib-m4/strncat.m4])
1742m4_include([gnulib-m4/strstr.m4])
1743m4_include([gnulib-m4/sys_socket_h.m4])
1744m4_include([gnulib-m4/sys_types_h.m4])
1745m4_include([gnulib-m4/thread.m4])
1746m4_include([gnulib-m4/threadlib.m4])
1747m4_include([gnulib-m4/time_h.m4])
1748m4_include([gnulib-m4/unistd_h.m4])
1749m4_include([gnulib-m4/usleep.m4])
1750m4_include([gnulib-m4/vasnprintf.m4])
1751m4_include([gnulib-m4/warn-on-use.m4])
1752m4_include([gnulib-m4/wchar_h.m4])
1753m4_include([gnulib-m4/wchar_t.m4])
1754m4_include([gnulib-m4/wcrtomb.m4])
1755m4_include([gnulib-m4/wctob.m4])
1756m4_include([gnulib-m4/wctomb.m4])
1757m4_include([gnulib-m4/wctype_h.m4])
1758m4_include([gnulib-m4/wcwidth.m4])
1759m4_include([gnulib-m4/wint_t.m4])
1760m4_include([gnulib-m4/xalloc.m4])
1761m4_include([gnulib-m4/xsize.m4])
1762m4_include([gnulib-m4/yield.m4])
1763m4_include([m4/exported.m4])
1764m4_include([m4/init-package-version.m4])
1765m4_include([m4/libtool.m4])
1766m4_include([m4/ltoptions.m4])
1767m4_include([m4/ltsugar.m4])
1768m4_include([m4/ltversion.m4])
1769m4_include([m4/lt~obsolete.m4])
1770m4_include([m4/woe32-dll.m4])
1771