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