1348980Sdes# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
2117610Sdes
3348980Sdes# Copyright (C) 1996-2018 Free Software Foundation, Inc.
4255376Sdes
5117610Sdes# This file is free software; the Free Software Foundation
6117610Sdes# gives unlimited permission to copy and/or distribute it,
7117610Sdes# with or without modifications, as long as this notice is preserved.
8117610Sdes
9117610Sdes# This program is distributed in the hope that it will be useful,
10117610Sdes# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11117610Sdes# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12117610Sdes# PARTICULAR PURPOSE.
13117610Sdes
14255376Sdesm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15228692Sdesm4_ifndef([AC_AUTOCONF_VERSION],
16228692Sdes  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17255376Sdesm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18255376Sdes[m4_warning([this file was generated for autoconf 2.69.
19228692SdesYou have another version of autoconf.  It may work, but is not guaranteed to.
20228692SdesIf you have problems, you may need to regenerate the build system entirely.
21255376SdesTo do so, use the procedure documented by the package, typically 'autoreconf'.])])
22228692Sdes
23348980Sdes# Copyright (C) 2002-2018 Free Software Foundation, Inc.
24271624Sdes#
25174832Sdes# This file is free software; the Free Software Foundation
26174832Sdes# gives unlimited permission to copy and/or distribute it,
27174832Sdes# with or without modifications, as long as this notice is preserved.
28141098Sdes
29141098Sdes# AM_AUTOMAKE_VERSION(VERSION)
30141098Sdes# ----------------------------
31141098Sdes# Automake X.Y traces this macro to ensure aclocal.m4 has been
32141098Sdes# generated from the m4 files accompanying Automake X.Y.
33228692Sdes# (This private macro should not be called outside this file.)
34228692SdesAC_DEFUN([AM_AUTOMAKE_VERSION],
35348980Sdes[am__api_version='1.16'
36228692Sdesdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37228692Sdesdnl require some minimum version.  Point them to the right macro.
38348980Sdesm4_if([$1], [1.16.1], [],
39228692Sdes      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40228692Sdes])
41141098Sdes
42228692Sdes# _AM_AUTOCONF_VERSION(VERSION)
43228692Sdes# -----------------------------
44228692Sdes# aclocal traces this macro to find the Autoconf version.
45228692Sdes# This is a private macro too.  Using m4_define simplifies
46228692Sdes# the logic in aclocal, which can simply ignore this definition.
47228692Sdesm4_define([_AM_AUTOCONF_VERSION], [])
48228692Sdes
49141098Sdes# AM_SET_CURRENT_AUTOMAKE_VERSION
50141098Sdes# -------------------------------
51228692Sdes# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52228692Sdes# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53141098SdesAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54348980Sdes[AM_AUTOMAKE_VERSION([1.16.1])dnl
55228692Sdesm4_ifndef([AC_AUTOCONF_VERSION],
56228692Sdes  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57228692Sdes_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58141098Sdes
59174832Sdes# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
60117610Sdes
61348980Sdes# Copyright (C) 2001-2018 Free Software Foundation, Inc.
62174832Sdes#
63174832Sdes# This file is free software; the Free Software Foundation
64174832Sdes# gives unlimited permission to copy and/or distribute it,
65174832Sdes# with or without modifications, as long as this notice is preserved.
66141098Sdes
67117610Sdes# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68255376Sdes# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
69255376Sdes# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70117610Sdes#
71117610Sdes# Of course, Automake must honor this variable whenever it calls a
72117610Sdes# tool from the auxiliary directory.  The problem is that $srcdir (and
73117610Sdes# therefore $ac_aux_dir as well) can be either absolute or relative,
74117610Sdes# depending on how configure is run.  This is pretty annoying, since
75117610Sdes# it makes $ac_aux_dir quite unusable in subdirectories: in the top
76117610Sdes# source directory, any form will work fine, but in subdirectories a
77117610Sdes# relative path needs to be adjusted first.
78117610Sdes#
79117610Sdes# $ac_aux_dir/missing
80117610Sdes#    fails when called from a subdirectory if $ac_aux_dir is relative
81117610Sdes# $top_srcdir/$ac_aux_dir/missing
82117610Sdes#    fails if $ac_aux_dir is absolute,
83117610Sdes#    fails when called from a subdirectory in a VPATH build with
84117610Sdes#          a relative $ac_aux_dir
85117610Sdes#
86117610Sdes# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87117610Sdes# are both prefixed by $srcdir.  In an in-source build this is usually
88255376Sdes# harmless because $srcdir is '.', but things will broke when you
89117610Sdes# start a VPATH build or use an absolute $srcdir.
90117610Sdes#
91117610Sdes# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92117610Sdes# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
93117610Sdes#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94117610Sdes# and then we would define $MISSING as
95117610Sdes#   MISSING="\${SHELL} $am_aux_dir/missing"
96117610Sdes# This will work as long as MISSING is not called from configure, because
97117610Sdes# unfortunately $(top_srcdir) has no meaning in configure.
98117610Sdes# However there are other variables, like CC, which are often used in
99117610Sdes# configure, and could therefore not use this "fixed" $ac_aux_dir.
100117610Sdes#
101117610Sdes# Another solution, used here, is to always expand $ac_aux_dir to an
102117610Sdes# absolute PATH.  The drawback is that using absolute paths prevent a
103117610Sdes# configured tree to be moved without reconfiguration.
104117610Sdes
105141098SdesAC_DEFUN([AM_AUX_DIR_EXPAND],
106348980Sdes[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
107348980Sdes# Expand $ac_aux_dir to an absolute path.
108348980Sdesam_aux_dir=`cd "$ac_aux_dir" && pwd`
109117610Sdes])
110117610Sdes
111174832Sdes# AM_CONDITIONAL                                            -*- Autoconf -*-
112117610Sdes
113348980Sdes# Copyright (C) 1997-2018 Free Software Foundation, Inc.
114174832Sdes#
115174832Sdes# This file is free software; the Free Software Foundation
116174832Sdes# gives unlimited permission to copy and/or distribute it,
117174832Sdes# with or without modifications, as long as this notice is preserved.
118117610Sdes
119141098Sdes# AM_CONDITIONAL(NAME, SHELL-CONDITION)
120141098Sdes# -------------------------------------
121141098Sdes# Define a conditional.
122141098SdesAC_DEFUN([AM_CONDITIONAL],
123255376Sdes[AC_PREREQ([2.52])dnl
124255376Sdes m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
125255376Sdes       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
126228692SdesAC_SUBST([$1_TRUE])dnl
127228692SdesAC_SUBST([$1_FALSE])dnl
128228692Sdes_AM_SUBST_NOTMAKE([$1_TRUE])dnl
129228692Sdes_AM_SUBST_NOTMAKE([$1_FALSE])dnl
130228692Sdesm4_define([_AM_COND_VALUE_$1], [$2])dnl
131141098Sdesif $2; then
132141098Sdes  $1_TRUE=
133141098Sdes  $1_FALSE='#'
134141098Sdeselse
135141098Sdes  $1_TRUE='#'
136141098Sdes  $1_FALSE=
137141098Sdesfi
138141098SdesAC_CONFIG_COMMANDS_PRE(
139141098Sdes[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
140174832Sdes  AC_MSG_ERROR([[conditional "$1" was never defined.
141174832SdesUsually this means the macro was only invoked conditionally.]])
142141098Sdesfi])])
143141098Sdes
144348980Sdes# Copyright (C) 1999-2018 Free Software Foundation, Inc.
145174832Sdes#
146174832Sdes# This file is free software; the Free Software Foundation
147174832Sdes# gives unlimited permission to copy and/or distribute it,
148174832Sdes# with or without modifications, as long as this notice is preserved.
149141098Sdes
150141098Sdes
151255376Sdes# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
152117610Sdes# written in clear, in which case automake, when reading aclocal.m4,
153117610Sdes# will think it sees a *use*, and therefore will trigger all it's
154117610Sdes# C support machinery.  Also note that it means that autoscan, seeing
155117610Sdes# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
156117610Sdes
157117610Sdes
158117610Sdes# _AM_DEPENDENCIES(NAME)
159141098Sdes# ----------------------
160117610Sdes# See how the compiler implements dependency checking.
161255376Sdes# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
162117610Sdes# We try a few techniques and use that to set a single cache variable.
163117610Sdes#
164117610Sdes# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
165117610Sdes# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
166117610Sdes# dependency, and given that the user is not expected to run this macro,
167117610Sdes# just rely on AC_PROG_CC.
168117610SdesAC_DEFUN([_AM_DEPENDENCIES],
169117610Sdes[AC_REQUIRE([AM_SET_DEPDIR])dnl
170117610SdesAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
171117610SdesAC_REQUIRE([AM_MAKE_INCLUDE])dnl
172117610SdesAC_REQUIRE([AM_DEP_TRACK])dnl
173117610Sdes
174255376Sdesm4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
175255376Sdes      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
176255376Sdes      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
177255376Sdes      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
178255376Sdes      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
179255376Sdes      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
180255376Sdes                    [depcc="$$1"   am_compiler_list=])
181117610Sdes
182117610SdesAC_CACHE_CHECK([dependency style of $depcc],
183117610Sdes               [am_cv_$1_dependencies_compiler_type],
184117610Sdes[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
185117610Sdes  # We make a subdir and do the tests there.  Otherwise we can end up
186117610Sdes  # making bogus files that we don't know about and never remove.  For
187117610Sdes  # instance it was reported that on HP-UX the gcc test will end up
188255376Sdes  # making a dummy file named 'D' -- because '-MD' means "put the output
189255376Sdes  # in D".
190255376Sdes  rm -rf conftest.dir
191117610Sdes  mkdir conftest.dir
192117610Sdes  # Copy depcomp to subdir because otherwise we won't find it if we're
193117610Sdes  # using a relative directory.
194117610Sdes  cp "$am_depcomp" conftest.dir
195117610Sdes  cd conftest.dir
196141098Sdes  # We will build objects and dependencies in a subdirectory because
197141098Sdes  # it helps to detect inapplicable dependency modes.  For instance
198141098Sdes  # both Tru64's cc and ICC support -MD to output dependencies as a
199141098Sdes  # side effect of compilation, but ICC will put the dependencies in
200141098Sdes  # the current directory while Tru64 will put them in the object
201141098Sdes  # directory.
202141098Sdes  mkdir sub
203117610Sdes
204117610Sdes  am_cv_$1_dependencies_compiler_type=none
205117610Sdes  if test "$am_compiler_list" = ""; then
206117610Sdes     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
207117610Sdes  fi
208228692Sdes  am__universal=false
209228692Sdes  m4_case([$1], [CC],
210228692Sdes    [case " $depcc " in #(
211228692Sdes     *\ -arch\ *\ -arch\ *) am__universal=true ;;
212228692Sdes     esac],
213228692Sdes    [CXX],
214228692Sdes    [case " $depcc " in #(
215228692Sdes     *\ -arch\ *\ -arch\ *) am__universal=true ;;
216228692Sdes     esac])
217228692Sdes
218117610Sdes  for depmode in $am_compiler_list; do
219141098Sdes    # Setup a source with many dependencies, because some compilers
220141098Sdes    # like to wrap large dependency lists on column 80 (with \), and
221141098Sdes    # we should not choose a depcomp mode which is confused by this.
222141098Sdes    #
223117610Sdes    # We need to recreate these files for each test, as the compiler may
224117610Sdes    # overwrite some of them when testing with obscure command lines.
225117610Sdes    # This happens at least with the AIX C compiler.
226141098Sdes    : > sub/conftest.c
227141098Sdes    for i in 1 2 3 4 5 6; do
228141098Sdes      echo '#include "conftst'$i'.h"' >> sub/conftest.c
229255376Sdes      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
230255376Sdes      # Solaris 10 /bin/sh.
231255376Sdes      echo '/* dummy */' > sub/conftst$i.h
232141098Sdes    done
233141098Sdes    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
234117610Sdes
235255376Sdes    # We check with '-c' and '-o' for the sake of the "dashmstdout"
236228692Sdes    # mode.  It turns out that the SunPro C++ compiler does not properly
237255376Sdes    # handle '-M -o', and we need to detect this.  Also, some Intel
238255376Sdes    # versions had trouble with output in subdirs.
239228692Sdes    am__obj=sub/conftest.${OBJEXT-o}
240228692Sdes    am__minus_obj="-o $am__obj"
241117610Sdes    case $depmode in
242228692Sdes    gcc)
243228692Sdes      # This depmode causes a compiler race in universal mode.
244228692Sdes      test "$am__universal" = false || continue
245228692Sdes      ;;
246117610Sdes    nosideeffect)
247255376Sdes      # After this tag, mechanisms are not by side-effect, so they'll
248255376Sdes      # only be used when explicitly requested.
249117610Sdes      if test "x$enable_dependency_tracking" = xyes; then
250117610Sdes	continue
251117610Sdes      else
252117610Sdes	break
253117610Sdes      fi
254117610Sdes      ;;
255255376Sdes    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
256255376Sdes      # This compiler won't grok '-c -o', but also, the minuso test has
257228692Sdes      # not run yet.  These depmodes are late enough in the game, and
258228692Sdes      # so weak that their functioning should not be impacted.
259228692Sdes      am__obj=conftest.${OBJEXT-o}
260228692Sdes      am__minus_obj=
261228692Sdes      ;;
262117610Sdes    none) break ;;
263117610Sdes    esac
264117610Sdes    if depmode=$depmode \
265228692Sdes       source=sub/conftest.c object=$am__obj \
266141098Sdes       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
267228692Sdes       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
268141098Sdes         >/dev/null 2>conftest.err &&
269228692Sdes       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
270141098Sdes       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
271228692Sdes       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
272117610Sdes       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
273141098Sdes      # icc doesn't choke on unknown options, it will just issue warnings
274141098Sdes      # or remarks (even with -Werror).  So we grep stderr for any message
275141098Sdes      # that says an option was ignored or not supported.
276141098Sdes      # When given -MP, icc 7.0 and 7.1 complain thusly:
277141098Sdes      #   icc: Command line warning: ignoring option '-M'; no argument required
278141098Sdes      # The diagnosis changed in icc 8.0:
279141098Sdes      #   icc: Command line remark: option '-MP' not supported
280141098Sdes      if (grep 'ignoring option' conftest.err ||
281141098Sdes          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
282141098Sdes        am_cv_$1_dependencies_compiler_type=$depmode
283141098Sdes        break
284141098Sdes      fi
285117610Sdes    fi
286117610Sdes  done
287117610Sdes
288117610Sdes  cd ..
289117610Sdes  rm -rf conftest.dir
290117610Sdeselse
291117610Sdes  am_cv_$1_dependencies_compiler_type=none
292117610Sdesfi
293117610Sdes])
294141098SdesAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
295141098SdesAM_CONDITIONAL([am__fastdep$1], [
296141098Sdes  test "x$enable_dependency_tracking" != xno \
297141098Sdes  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
298117610Sdes])
299117610Sdes
300117610Sdes
301117610Sdes# AM_SET_DEPDIR
302117610Sdes# -------------
303117610Sdes# Choose a directory name for dependency files.
304255376Sdes# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
305117610SdesAC_DEFUN([AM_SET_DEPDIR],
306141098Sdes[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
307141098SdesAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
308117610Sdes])
309117610Sdes
310117610Sdes
311117610Sdes# AM_DEP_TRACK
312117610Sdes# ------------
313117610SdesAC_DEFUN([AM_DEP_TRACK],
314255376Sdes[AC_ARG_ENABLE([dependency-tracking], [dnl
315255376SdesAS_HELP_STRING(
316255376Sdes  [--enable-dependency-tracking],
317255376Sdes  [do not reject slow dependency extractors])
318255376SdesAS_HELP_STRING(
319255376Sdes  [--disable-dependency-tracking],
320255376Sdes  [speeds up one-time build])])
321117610Sdesif test "x$enable_dependency_tracking" != xno; then
322117610Sdes  am_depcomp="$ac_aux_dir/depcomp"
323117610Sdes  AMDEPBACKSLASH='\'
324255376Sdes  am__nodep='_no'
325117610Sdesfi
326117610SdesAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
327228692SdesAC_SUBST([AMDEPBACKSLASH])dnl
328228692Sdes_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329255376SdesAC_SUBST([am__nodep])dnl
330255376Sdes_AM_SUBST_NOTMAKE([am__nodep])dnl
331117610Sdes])
332117610Sdes
333174832Sdes# Generate code to set up dependency tracking.              -*- Autoconf -*-
334117610Sdes
335348980Sdes# Copyright (C) 1999-2018 Free Software Foundation, Inc.
336174832Sdes#
337174832Sdes# This file is free software; the Free Software Foundation
338174832Sdes# gives unlimited permission to copy and/or distribute it,
339174832Sdes# with or without modifications, as long as this notice is preserved.
340141098Sdes
341141098Sdes# _AM_OUTPUT_DEPENDENCY_COMMANDS
342141098Sdes# ------------------------------
343141098SdesAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344228692Sdes[{
345255376Sdes  # Older Autoconf quotes --file arguments for eval, but not when files
346228692Sdes  # are listed without --file.  Let's play safe and only enable the eval
347228692Sdes  # if we detect the quoting.
348348980Sdes  # TODO: see whether this extra hack can be removed once we start
349348980Sdes  # requiring Autoconf 2.70 or later.
350348980Sdes  AS_CASE([$CONFIG_FILES],
351348980Sdes          [*\'*], [eval set x "$CONFIG_FILES"],
352348980Sdes          [*], [set x $CONFIG_FILES])
353228692Sdes  shift
354348980Sdes  # Used to flag and report bootstrapping failures.
355348980Sdes  am_rc=0
356348980Sdes  for am_mf
357228692Sdes  do
358228692Sdes    # Strip MF so we end up with the name of the file.
359348980Sdes    am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
360348980Sdes    # Check whether this is an Automake generated Makefile which includes
361348980Sdes    # dependency-tracking related rules and includes.
362348980Sdes    # Grep'ing the whole file directly is not great: AIX grep has a line
363228692Sdes    # limit of 2048, but all sed's we know have understand at least 4000.
364348980Sdes    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
365348980Sdes      || continue
366348980Sdes    am_dirpart=`AS_DIRNAME(["$am_mf"])`
367348980Sdes    am_filepart=`AS_BASENAME(["$am_mf"])`
368348980Sdes    AM_RUN_LOG([cd "$am_dirpart" \
369348980Sdes      && sed -e '/# am--include-marker/d' "$am_filepart" \
370348980Sdes        | $MAKE -f - am--depfiles]) || am_rc=$?
371117610Sdes  done
372348980Sdes  if test $am_rc -ne 0; then
373348980Sdes    AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
374348980Sdes    for automatic dependency tracking.  Try re-running configure with the
375348980Sdes    '--disable-dependency-tracking' option to at least be able to build
376348980Sdes    the package (albeit without support for automatic dependency tracking).])
377348980Sdes  fi
378348980Sdes  AS_UNSET([am_dirpart])
379348980Sdes  AS_UNSET([am_filepart])
380348980Sdes  AS_UNSET([am_mf])
381348980Sdes  AS_UNSET([am_rc])
382348980Sdes  rm -f conftest-deps.mk
383228692Sdes}
384141098Sdes])# _AM_OUTPUT_DEPENDENCY_COMMANDS
385117610Sdes
386141098Sdes
387141098Sdes# AM_OUTPUT_DEPENDENCY_COMMANDS
388141098Sdes# -----------------------------
389141098Sdes# This macro should only be invoked once -- use via AC_REQUIRE.
390141098Sdes#
391348980Sdes# This code is only required when automatic dependency tracking is enabled.
392348980Sdes# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
393348980Sdes# order to bootstrap the dependency handling code.
394141098SdesAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
395141098Sdes[AC_CONFIG_COMMANDS([depfiles],
396141098Sdes     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
397348980Sdes     [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
398141098Sdes
399174832Sdes# Do all the work for Automake.                             -*- Autoconf -*-
400141098Sdes
401348980Sdes# Copyright (C) 1996-2018 Free Software Foundation, Inc.
402174832Sdes#
403174832Sdes# This file is free software; the Free Software Foundation
404174832Sdes# gives unlimited permission to copy and/or distribute it,
405174832Sdes# with or without modifications, as long as this notice is preserved.
406141098Sdes
407174832Sdes# This macro actually does too much.  Some checks are only needed if
408174832Sdes# your package does certain things.  But this isn't really a big deal.
409141098Sdes
410255376Sdesdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
411255376Sdesm4_define([AC_PROG_CC],
412255376Sdesm4_defn([AC_PROG_CC])
413255376Sdes[_AM_PROG_CC_C_O
414255376Sdes])
415255376Sdes
416141098Sdes# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
417141098Sdes# AM_INIT_AUTOMAKE([OPTIONS])
418141098Sdes# -----------------------------------------------
419141098Sdes# The call with PACKAGE and VERSION arguments is the old style
420141098Sdes# call (pre autoconf-2.50), which is being phased out.  PACKAGE
421141098Sdes# and VERSION should now be passed to AC_INIT and removed from
422141098Sdes# the call to AM_INIT_AUTOMAKE.
423141098Sdes# We support both call styles for the transition.  After
424141098Sdes# the next Automake release, Autoconf can make the AC_INIT
425141098Sdes# arguments mandatory, and then we can depend on a new Autoconf
426141098Sdes# release and drop the old call support.
427141098SdesAC_DEFUN([AM_INIT_AUTOMAKE],
428255376Sdes[AC_PREREQ([2.65])dnl
429141098Sdesdnl Autoconf wants to disallow AM_ names.  We explicitly allow
430141098Sdesdnl the ones we care about.
431141098Sdesm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
432141098SdesAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
433141098SdesAC_REQUIRE([AC_PROG_INSTALL])dnl
434228692Sdesif test "`cd $srcdir && pwd`" != "`pwd`"; then
435228692Sdes  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
436228692Sdes  # is not polluted with repeated "-I."
437228692Sdes  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
438228692Sdes  # test to see if srcdir already configured
439228692Sdes  if test -f $srcdir/config.status; then
440228692Sdes    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
441228692Sdes  fi
442141098Sdesfi
443141098Sdes
444141098Sdes# test whether we have cygpath
445141098Sdesif test -z "$CYGPATH_W"; then
446141098Sdes  if (cygpath --version) >/dev/null 2>/dev/null; then
447141098Sdes    CYGPATH_W='cygpath -w'
448141098Sdes  else
449141098Sdes    CYGPATH_W=echo
450141098Sdes  fi
451141098Sdesfi
452141098SdesAC_SUBST([CYGPATH_W])
453141098Sdes
454141098Sdes# Define the identity of the package.
455141098Sdesdnl Distinguish between old-style and new-style calls.
456141098Sdesm4_ifval([$2],
457255376Sdes[AC_DIAGNOSE([obsolete],
458255376Sdes             [$0: two- and three-arguments forms are deprecated.])
459255376Sdesm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
460141098Sdes AC_SUBST([PACKAGE], [$1])dnl
461141098Sdes AC_SUBST([VERSION], [$2])],
462141098Sdes[_AM_SET_OPTIONS([$1])dnl
463228692Sdesdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
464255376Sdesm4_if(
465255376Sdes  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
466255376Sdes  [ok:ok],,
467228692Sdes  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
468141098Sdes AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
469141098Sdes AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
470141098Sdes
471141098Sdes_AM_IF_OPTION([no-define],,
472255376Sdes[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
473255376Sdes AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
474141098Sdes
475141098Sdes# Some tools Automake needs.
476141098SdesAC_REQUIRE([AM_SANITY_CHECK])dnl
477141098SdesAC_REQUIRE([AC_ARG_PROGRAM])dnl
478255376SdesAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
479255376SdesAM_MISSING_PROG([AUTOCONF], [autoconf])
480255376SdesAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
481255376SdesAM_MISSING_PROG([AUTOHEADER], [autoheader])
482255376SdesAM_MISSING_PROG([MAKEINFO], [makeinfo])
483228692SdesAC_REQUIRE([AM_PROG_INSTALL_SH])dnl
484228692SdesAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
485255376SdesAC_REQUIRE([AC_PROG_MKDIR_P])dnl
486255376Sdes# For better backward compatibility.  To be removed once Automake 1.9.x
487255376Sdes# dies out for good.  For more background, see:
488348980Sdes# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
489348980Sdes# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
490255376SdesAC_SUBST([mkdir_p], ['$(MKDIR_P)'])
491348980Sdes# We need awk for the "check" target (and possibly the TAP driver).  The
492348980Sdes# system "awk" is bad on some platforms.
493141098SdesAC_REQUIRE([AC_PROG_AWK])dnl
494141098SdesAC_REQUIRE([AC_PROG_MAKE_SET])dnl
495141098SdesAC_REQUIRE([AM_SET_LEADING_DOT])dnl
496174832Sdes_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
497228692Sdes	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
498228692Sdes			     [_AM_PROG_TAR([v7])])])
499141098Sdes_AM_IF_OPTION([no-dependencies],,
500141098Sdes[AC_PROVIDE_IFELSE([AC_PROG_CC],
501255376Sdes		  [_AM_DEPENDENCIES([CC])],
502255376Sdes		  [m4_define([AC_PROG_CC],
503255376Sdes			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
504141098SdesAC_PROVIDE_IFELSE([AC_PROG_CXX],
505255376Sdes		  [_AM_DEPENDENCIES([CXX])],
506255376Sdes		  [m4_define([AC_PROG_CXX],
507255376Sdes			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
508228692SdesAC_PROVIDE_IFELSE([AC_PROG_OBJC],
509255376Sdes		  [_AM_DEPENDENCIES([OBJC])],
510255376Sdes		  [m4_define([AC_PROG_OBJC],
511255376Sdes			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
512255376SdesAC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
513255376Sdes		  [_AM_DEPENDENCIES([OBJCXX])],
514255376Sdes		  [m4_define([AC_PROG_OBJCXX],
515255376Sdes			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
516141098Sdes])
517255376SdesAC_REQUIRE([AM_SILENT_RULES])dnl
518255376Sdesdnl The testsuite driver may need to know about EXEEXT, so add the
519255376Sdesdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
520255376Sdesdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
521228692SdesAC_CONFIG_COMMANDS_PRE(dnl
522228692Sdes[m4_provide_if([_AM_COMPILER_EXEEXT],
523228692Sdes  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
524141098Sdes
525255376Sdes# POSIX will say in a future version that running "rm -f" with no argument
526255376Sdes# is OK; and we want to be able to make that assumption in our Makefile
527255376Sdes# recipes.  So use an aggressive probe to check that the usage we want is
528255376Sdes# actually supported "in the wild" to an acceptable degree.
529255376Sdes# See automake bug#10828.
530255376Sdes# To make any issue more visible, cause the running configure to be aborted
531255376Sdes# by default if the 'rm' program in use doesn't match our expectations; the
532255376Sdes# user can still override this though.
533255376Sdesif rm -f && rm -fr && rm -rf; then : OK; else
534255376Sdes  cat >&2 <<'END'
535255376SdesOops!
536255376Sdes
537255376SdesYour 'rm' program seems unable to run without file operands specified
538255376Sdeson the command line, even when the '-f' option is present.  This is contrary
539255376Sdesto the behaviour of most rm programs out there, and not conforming with
540255376Sdesthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
541255376Sdes
542255376SdesPlease tell bug-automake@gnu.org about your system, including the value
543255376Sdesof your $PATH and any error possibly output before this message.  This
544255376Sdescan help us improve future automake versions.
545255376Sdes
546255376SdesEND
547255376Sdes  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
548255376Sdes    echo 'Configuration will proceed anyway, since you have set the' >&2
549255376Sdes    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
550255376Sdes    echo >&2
551255376Sdes  else
552255376Sdes    cat >&2 <<'END'
553255376SdesAborting the configuration process, to ensure you take notice of the issue.
554255376Sdes
555255376SdesYou can download and install GNU coreutils to get an 'rm' implementation
556348980Sdesthat behaves properly: <https://www.gnu.org/software/coreutils/>.
557255376Sdes
558255376SdesIf you want to complete the configuration process using your problematic
559255376Sdes'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
560255376Sdesto "yes", and re-run configure.
561255376Sdes
562255376SdesEND
563255376Sdes    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
564255376Sdes  fi
565348980Sdesfi
566348980Sdesdnl The trailing newline in this macro's definition is deliberate, for
567348980Sdesdnl backward compatibility and to allow trailing 'dnl'-style comments
568348980Sdesdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
569348980Sdes])
570255376Sdes
571255376Sdesdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
572228692Sdesdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
573228692Sdesdnl mangled by Autoconf and run in a shell conditional statement.
574228692Sdesm4_define([_AC_COMPILER_EXEEXT],
575228692Sdesm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
576141098Sdes
577141098Sdes# When config.status generates a header, we must update the stamp-h file.
578141098Sdes# This file resides in the same directory as the config header
579141098Sdes# that is generated.  The stamp files are numbered to have different names.
580141098Sdes
581141098Sdes# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
582141098Sdes# loop where config.status creates the headers, so we can generate
583141098Sdes# our stamp files there.
584141098SdesAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
585141098Sdes[# Compute $1's index in $config_headers.
586228692Sdes_am_arg=$1
587141098Sdes_am_stamp_count=1
588141098Sdesfor _am_header in $config_headers :; do
589141098Sdes  case $_am_header in
590228692Sdes    $_am_arg | $_am_arg:* )
591141098Sdes      break ;;
592141098Sdes    * )
593141098Sdes      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
594141098Sdes  esac
595141098Sdesdone
596228692Sdesecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
597141098Sdes
598348980Sdes# Copyright (C) 2001-2018 Free Software Foundation, Inc.
599174832Sdes#
600174832Sdes# This file is free software; the Free Software Foundation
601174832Sdes# gives unlimited permission to copy and/or distribute it,
602174832Sdes# with or without modifications, as long as this notice is preserved.
603174832Sdes
604141098Sdes# AM_PROG_INSTALL_SH
605141098Sdes# ------------------
606141098Sdes# Define $install_sh.
607141098SdesAC_DEFUN([AM_PROG_INSTALL_SH],
608141098Sdes[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
609348980Sdesif test x"${install_sh+set}" != xset; then
610228692Sdes  case $am_aux_dir in
611228692Sdes  *\ * | *\	*)
612228692Sdes    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
613228692Sdes  *)
614228692Sdes    install_sh="\${SHELL} $am_aux_dir/install-sh"
615228692Sdes  esac
616228692Sdesfi
617255376SdesAC_SUBST([install_sh])])
618141098Sdes
619348980Sdes# Copyright (C) 2003-2018 Free Software Foundation, Inc.
620174832Sdes#
621174832Sdes# This file is free software; the Free Software Foundation
622174832Sdes# gives unlimited permission to copy and/or distribute it,
623174832Sdes# with or without modifications, as long as this notice is preserved.
624141098Sdes
625141098Sdes# Check whether the underlying file-system supports filenames
626141098Sdes# with a leading dot.  For instance MS-DOS doesn't.
627141098SdesAC_DEFUN([AM_SET_LEADING_DOT],
628141098Sdes[rm -rf .tst 2>/dev/null
629141098Sdesmkdir .tst 2>/dev/null
630141098Sdesif test -d .tst; then
631141098Sdes  am__leading_dot=.
632141098Sdeselse
633141098Sdes  am__leading_dot=_
634141098Sdesfi
635141098Sdesrmdir .tst 2>/dev/null
636141098SdesAC_SUBST([am__leading_dot])])
637141098Sdes
638174832Sdes# Check to see how 'make' treats includes.	            -*- Autoconf -*-
639141098Sdes
640348980Sdes# Copyright (C) 2001-2018 Free Software Foundation, Inc.
641174832Sdes#
642174832Sdes# This file is free software; the Free Software Foundation
643174832Sdes# gives unlimited permission to copy and/or distribute it,
644174832Sdes# with or without modifications, as long as this notice is preserved.
645141098Sdes
646117610Sdes# AM_MAKE_INCLUDE()
647117610Sdes# -----------------
648348980Sdes# Check whether make has an 'include' directive that can support all
649348980Sdes# the idioms we need for our automatic dependency tracking code.
650117610SdesAC_DEFUN([AM_MAKE_INCLUDE],
651348980Sdes[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
652348980Sdescat > confinc.mk << 'END'
653141098Sdesam__doit:
654348980Sdes	@echo this is the am__doit target >confinc.out
655141098Sdes.PHONY: am__doit
656117610SdesEND
657141098Sdesam__include="#"
658117610Sdesam__quote=
659348980Sdes# BSD make does it like this.
660348980Sdesecho '.include "confinc.mk" # ignored' > confmf.BSD
661348980Sdes# Other make implementations (GNU, Solaris 10, AIX) do it like this.
662348980Sdesecho 'include confinc.mk # ignored' > confmf.GNU
663348980Sdes_am_result=no
664348980Sdesfor s in GNU BSD; do
665348980Sdes  AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
666348980Sdes  AS_CASE([$?:`cat confinc.out 2>/dev/null`],
667348980Sdes      ['0:this is the am__doit target'],
668348980Sdes      [AS_CASE([$s],
669348980Sdes          [BSD], [am__include='.include' am__quote='"'],
670348980Sdes          [am__include='include' am__quote=''])])
671348980Sdes  if test "$am__include" != "#"; then
672348980Sdes    _am_result="yes ($s style)"
673348980Sdes    break
674348980Sdes  fi
675348980Sdesdone
676348980Sdesrm -f confinc.* confmf.*
677348980SdesAC_MSG_RESULT([${_am_result}])
678348980SdesAC_SUBST([am__include])])
679348980SdesAC_SUBST([am__quote])])
680117610Sdes
681174832Sdes# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
682141098Sdes
683348980Sdes# Copyright (C) 1997-2018 Free Software Foundation, Inc.
684174832Sdes#
685174832Sdes# This file is free software; the Free Software Foundation
686174832Sdes# gives unlimited permission to copy and/or distribute it,
687174832Sdes# with or without modifications, as long as this notice is preserved.
688141098Sdes
689141098Sdes# AM_MISSING_PROG(NAME, PROGRAM)
690141098Sdes# ------------------------------
691141098SdesAC_DEFUN([AM_MISSING_PROG],
692141098Sdes[AC_REQUIRE([AM_MISSING_HAS_RUN])
693141098Sdes$1=${$1-"${am_missing_run}$2"}
694141098SdesAC_SUBST($1)])
695141098Sdes
696141098Sdes# AM_MISSING_HAS_RUN
697141098Sdes# ------------------
698255376Sdes# Define MISSING if not defined so far and test if it is modern enough.
699255376Sdes# If it is, set am_missing_run to use it, otherwise, to nothing.
700141098SdesAC_DEFUN([AM_MISSING_HAS_RUN],
701141098Sdes[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
702228692SdesAC_REQUIRE_AUX_FILE([missing])dnl
703228692Sdesif test x"${MISSING+set}" != xset; then
704228692Sdes  case $am_aux_dir in
705228692Sdes  *\ * | *\	*)
706228692Sdes    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
707228692Sdes  *)
708228692Sdes    MISSING="\${SHELL} $am_aux_dir/missing" ;;
709228692Sdes  esac
710228692Sdesfi
711141098Sdes# Use eval to expand $SHELL
712255376Sdesif eval "$MISSING --is-lightweight"; then
713255376Sdes  am_missing_run="$MISSING "
714141098Sdeselse
715141098Sdes  am_missing_run=
716255376Sdes  AC_MSG_WARN(['missing' script is too old or missing])
717141098Sdesfi
718141098Sdes])
719141098Sdes
720255376Sdes#  -*- Autoconf -*-
721255376Sdes# Obsolete and "removed" macros, that must however still report explicit
722255376Sdes# error messages when used, to smooth transition.
723174832Sdes#
724348980Sdes# Copyright (C) 1996-2018 Free Software Foundation, Inc.
725255376Sdes#
726174832Sdes# This file is free software; the Free Software Foundation
727174832Sdes# gives unlimited permission to copy and/or distribute it,
728174832Sdes# with or without modifications, as long as this notice is preserved.
729174832Sdes
730255376SdesAC_DEFUN([AM_CONFIG_HEADER],
731255376Sdes[AC_DIAGNOSE([obsolete],
732255376Sdes['$0': this macro is obsolete.
733255376SdesYou should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
734255376SdesAC_CONFIG_HEADERS($@)])
735117610Sdes
736255376SdesAC_DEFUN([AM_PROG_CC_STDC],
737255376Sdes[AC_PROG_CC
738255376Sdesam_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
739255376SdesAC_DIAGNOSE([obsolete],
740255376Sdes['$0': this macro is obsolete.
741255376SdesYou should simply use the 'AC][_PROG_CC' macro instead.
742255376SdesAlso, your code should no longer depend upon 'am_cv_prog_cc_stdc',
743255376Sdesbut upon 'ac_cv_prog_cc_stdc'.])])
744255376Sdes
745255376SdesAC_DEFUN([AM_C_PROTOTYPES],
746255376Sdes         [AC_FATAL([automatic de-ANSI-fication support has been removed])])
747255376SdesAU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
748255376Sdes
749174832Sdes# Helper functions for option handling.                     -*- Autoconf -*-
750141098Sdes
751348980Sdes# Copyright (C) 2001-2018 Free Software Foundation, Inc.
752174832Sdes#
753174832Sdes# This file is free software; the Free Software Foundation
754174832Sdes# gives unlimited permission to copy and/or distribute it,
755174832Sdes# with or without modifications, as long as this notice is preserved.
756141098Sdes
757141098Sdes# _AM_MANGLE_OPTION(NAME)
758141098Sdes# -----------------------
759141098SdesAC_DEFUN([_AM_MANGLE_OPTION],
760141098Sdes[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
761141098Sdes
762141098Sdes# _AM_SET_OPTION(NAME)
763255376Sdes# --------------------
764141098Sdes# Set option NAME.  Presently that only means defining a flag for this option.
765141098SdesAC_DEFUN([_AM_SET_OPTION],
766255376Sdes[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
767141098Sdes
768141098Sdes# _AM_SET_OPTIONS(OPTIONS)
769255376Sdes# ------------------------
770141098Sdes# OPTIONS is a space-separated list of Automake options.
771141098SdesAC_DEFUN([_AM_SET_OPTIONS],
772228692Sdes[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
773141098Sdes
774141098Sdes# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
775141098Sdes# -------------------------------------------
776141098Sdes# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
777141098SdesAC_DEFUN([_AM_IF_OPTION],
778141098Sdes[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
779141098Sdes
780348980Sdes# Copyright (C) 1999-2018 Free Software Foundation, Inc.
781255376Sdes#
782255376Sdes# This file is free software; the Free Software Foundation
783255376Sdes# gives unlimited permission to copy and/or distribute it,
784255376Sdes# with or without modifications, as long as this notice is preserved.
785255376Sdes
786255376Sdes# _AM_PROG_CC_C_O
787255376Sdes# ---------------
788255376Sdes# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
789255376Sdes# to automatically call this.
790255376SdesAC_DEFUN([_AM_PROG_CC_C_O],
791255376Sdes[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
792255376SdesAC_REQUIRE_AUX_FILE([compile])dnl
793255376SdesAC_LANG_PUSH([C])dnl
794255376SdesAC_CACHE_CHECK(
795255376Sdes  [whether $CC understands -c and -o together],
796255376Sdes  [am_cv_prog_cc_c_o],
797255376Sdes  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
798255376Sdes  # Make sure it works both with $CC and with simple cc.
799255376Sdes  # Following AC_PROG_CC_C_O, we do the test twice because some
800255376Sdes  # compilers refuse to overwrite an existing .o file with -o,
801255376Sdes  # though they will create one.
802255376Sdes  am_cv_prog_cc_c_o=yes
803255376Sdes  for am_i in 1 2; do
804255376Sdes    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
805255376Sdes         && test -f conftest2.$ac_objext; then
806255376Sdes      : OK
807255376Sdes    else
808255376Sdes      am_cv_prog_cc_c_o=no
809255376Sdes      break
810255376Sdes    fi
811255376Sdes  done
812255376Sdes  rm -f core conftest*
813255376Sdes  unset am_i])
814255376Sdesif test "$am_cv_prog_cc_c_o" != yes; then
815255376Sdes   # Losing compiler, so override with the script.
816255376Sdes   # FIXME: It is wrong to rewrite CC.
817255376Sdes   # But if we don't then we get into trouble of one sort or another.
818255376Sdes   # A longer-term fix would be to have automake use am__CC in this case,
819255376Sdes   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
820255376Sdes   CC="$am_aux_dir/compile $CC"
821255376Sdesfi
822255376SdesAC_LANG_POP([C])])
823255376Sdes
824255376Sdes# For backward compatibility.
825255376SdesAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
826255376Sdes
827348980Sdes# Copyright (C) 2001-2018 Free Software Foundation, Inc.
828255376Sdes#
829255376Sdes# This file is free software; the Free Software Foundation
830255376Sdes# gives unlimited permission to copy and/or distribute it,
831255376Sdes# with or without modifications, as long as this notice is preserved.
832255376Sdes
833255376Sdes# AM_RUN_LOG(COMMAND)
834255376Sdes# -------------------
835255376Sdes# Run COMMAND, save the exit status in ac_status, and log it.
836255376Sdes# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
837255376SdesAC_DEFUN([AM_RUN_LOG],
838255376Sdes[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
839255376Sdes   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
840255376Sdes   ac_status=$?
841255376Sdes   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
842255376Sdes   (exit $ac_status); }])
843255376Sdes
844174832Sdes# Check to make sure that the build environment is sane.    -*- Autoconf -*-
845174832Sdes
846348980Sdes# Copyright (C) 1996-2018 Free Software Foundation, Inc.
847141098Sdes#
848174832Sdes# This file is free software; the Free Software Foundation
849174832Sdes# gives unlimited permission to copy and/or distribute it,
850174832Sdes# with or without modifications, as long as this notice is preserved.
851141098Sdes
852141098Sdes# AM_SANITY_CHECK
853141098Sdes# ---------------
854141098SdesAC_DEFUN([AM_SANITY_CHECK],
855141098Sdes[AC_MSG_CHECKING([whether build environment is sane])
856228692Sdes# Reject unsafe characters in $srcdir or the absolute working directory
857228692Sdes# name.  Accept space and tab only in the latter.
858228692Sdesam_lf='
859228692Sdes'
860228692Sdescase `pwd` in
861228692Sdes  *[[\\\"\#\$\&\'\`$am_lf]]*)
862228692Sdes    AC_MSG_ERROR([unsafe absolute working directory name]);;
863228692Sdesesac
864228692Sdescase $srcdir in
865228692Sdes  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
866255376Sdes    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
867228692Sdesesac
868228692Sdes
869255376Sdes# Do 'set' in a subshell so we don't clobber the current shell's
870141098Sdes# arguments.  Must try -L first in case configure is actually a
871141098Sdes# symlink; some systems play weird games with the mod time of symlinks
872141098Sdes# (eg FreeBSD returns the mod time of the symlink's containing
873141098Sdes# directory).
874141098Sdesif (
875255376Sdes   am_has_slept=no
876255376Sdes   for am_try in 1 2; do
877255376Sdes     echo "timestamp, slept: $am_has_slept" > conftest.file
878255376Sdes     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
879255376Sdes     if test "$[*]" = "X"; then
880255376Sdes	# -L didn't work.
881255376Sdes	set X `ls -t "$srcdir/configure" conftest.file`
882255376Sdes     fi
883255376Sdes     if test "$[*]" != "X $srcdir/configure conftest.file" \
884255376Sdes	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
885141098Sdes
886255376Sdes	# If neither matched, then we have a broken ls.  This can happen
887255376Sdes	# if, for instance, CONFIG_SHELL is bash and it inherits a
888255376Sdes	# broken ls alias from the environment.  This has actually
889255376Sdes	# happened.  Such a system could not be considered "sane".
890255376Sdes	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
891255376Sdes  alias in your environment])
892255376Sdes     fi
893255376Sdes     if test "$[2]" = conftest.file || test $am_try -eq 2; then
894255376Sdes       break
895255376Sdes     fi
896255376Sdes     # Just in case.
897255376Sdes     sleep 1
898255376Sdes     am_has_slept=yes
899255376Sdes   done
900141098Sdes   test "$[2]" = conftest.file
901141098Sdes   )
902141098Sdesthen
903141098Sdes   # Ok.
904141098Sdes   :
905141098Sdeselse
906141098Sdes   AC_MSG_ERROR([newly created file is older than distributed files!
907141098SdesCheck your system clock])
908141098Sdesfi
909255376SdesAC_MSG_RESULT([yes])
910255376Sdes# If we didn't sleep, we still need to ensure time stamps of config.status and
911255376Sdes# generated files are strictly newer.
912255376Sdesam_sleep_pid=
913255376Sdesif grep 'slept: no' conftest.file >/dev/null 2>&1; then
914255376Sdes  ( sleep 1 ) &
915255376Sdes  am_sleep_pid=$!
916255376Sdesfi
917255376SdesAC_CONFIG_COMMANDS_PRE(
918255376Sdes  [AC_MSG_CHECKING([that generated files are newer than configure])
919255376Sdes   if test -n "$am_sleep_pid"; then
920255376Sdes     # Hide warnings about reused PIDs.
921255376Sdes     wait $am_sleep_pid 2>/dev/null
922255376Sdes   fi
923255376Sdes   AC_MSG_RESULT([done])])
924255376Sdesrm -f conftest.file
925255376Sdes])
926141098Sdes
927348980Sdes# Copyright (C) 2009-2018 Free Software Foundation, Inc.
928174832Sdes#
929174832Sdes# This file is free software; the Free Software Foundation
930174832Sdes# gives unlimited permission to copy and/or distribute it,
931174832Sdes# with or without modifications, as long as this notice is preserved.
932174832Sdes
933255376Sdes# AM_SILENT_RULES([DEFAULT])
934255376Sdes# --------------------------
935255376Sdes# Enable less verbose build rules; with the default set to DEFAULT
936255376Sdes# ("yes" being less verbose, "no" or empty being verbose).
937255376SdesAC_DEFUN([AM_SILENT_RULES],
938255376Sdes[AC_ARG_ENABLE([silent-rules], [dnl
939255376SdesAS_HELP_STRING(
940255376Sdes  [--enable-silent-rules],
941255376Sdes  [less verbose build output (undo: "make V=1")])
942255376SdesAS_HELP_STRING(
943255376Sdes  [--disable-silent-rules],
944255376Sdes  [verbose build output (undo: "make V=0")])dnl
945255376Sdes])
946255376Sdescase $enable_silent_rules in @%:@ (((
947255376Sdes  yes) AM_DEFAULT_VERBOSITY=0;;
948255376Sdes   no) AM_DEFAULT_VERBOSITY=1;;
949255376Sdes    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
950255376Sdesesac
951255376Sdesdnl
952255376Sdesdnl A few 'make' implementations (e.g., NonStop OS and NextStep)
953255376Sdesdnl do not support nested variable expansions.
954255376Sdesdnl See automake bug#9928 and bug#10237.
955255376Sdesam_make=${MAKE-make}
956255376SdesAC_CACHE_CHECK([whether $am_make supports nested variables],
957255376Sdes   [am_cv_make_support_nested_variables],
958255376Sdes   [if AS_ECHO([['TRUE=$(BAR$(V))
959255376SdesBAR0=false
960255376SdesBAR1=true
961255376SdesV=1
962255376Sdesam__doit:
963255376Sdes	@$(TRUE)
964255376Sdes.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
965255376Sdes  am_cv_make_support_nested_variables=yes
966255376Sdeselse
967255376Sdes  am_cv_make_support_nested_variables=no
968255376Sdesfi])
969255376Sdesif test $am_cv_make_support_nested_variables = yes; then
970255376Sdes  dnl Using '$V' instead of '$(V)' breaks IRIX make.
971255376Sdes  AM_V='$(V)'
972255376Sdes  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
973255376Sdeselse
974255376Sdes  AM_V=$AM_DEFAULT_VERBOSITY
975255376Sdes  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
976255376Sdesfi
977255376SdesAC_SUBST([AM_V])dnl
978255376SdesAM_SUBST_NOTMAKE([AM_V])dnl
979255376SdesAC_SUBST([AM_DEFAULT_V])dnl
980255376SdesAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
981255376SdesAC_SUBST([AM_DEFAULT_VERBOSITY])dnl
982255376SdesAM_BACKSLASH='\'
983255376SdesAC_SUBST([AM_BACKSLASH])dnl
984255376Sdes_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
985255376Sdes])
986255376Sdes
987348980Sdes# Copyright (C) 2001-2018 Free Software Foundation, Inc.
988255376Sdes#
989255376Sdes# This file is free software; the Free Software Foundation
990255376Sdes# gives unlimited permission to copy and/or distribute it,
991255376Sdes# with or without modifications, as long as this notice is preserved.
992255376Sdes
993141098Sdes# AM_PROG_INSTALL_STRIP
994174832Sdes# ---------------------
995255376Sdes# One issue with vendor 'install' (even GNU) is that you can't
996141098Sdes# specify the program used to strip binaries.  This is especially
997141098Sdes# annoying in cross-compiling environments, where the build's strip
998141098Sdes# is unlikely to handle the host's binaries.
999141098Sdes# Fortunately install-sh will honor a STRIPPROG variable, so we
1000255376Sdes# always use install-sh in "make install-strip", and initialize
1001141098Sdes# STRIPPROG with the value of the STRIP variable (set by the user).
1002141098SdesAC_DEFUN([AM_PROG_INSTALL_STRIP],
1003141098Sdes[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1004255376Sdes# Installed binaries are usually stripped using 'strip' when the user
1005255376Sdes# run "make install-strip".  However 'strip' might not be the right
1006141098Sdes# tool to use in cross-compilation environments, therefore Automake
1007255376Sdes# will honor the 'STRIP' environment variable to overrule this program.
1008255376Sdesdnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1009141098Sdesif test "$cross_compiling" != no; then
1010141098Sdes  AC_CHECK_TOOL([STRIP], [strip], :)
1011141098Sdesfi
1012228692SdesINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1013141098SdesAC_SUBST([INSTALL_STRIP_PROGRAM])])
1014141098Sdes
1015348980Sdes# Copyright (C) 2006-2018 Free Software Foundation, Inc.
1016228692Sdes#
1017228692Sdes# This file is free software; the Free Software Foundation
1018228692Sdes# gives unlimited permission to copy and/or distribute it,
1019228692Sdes# with or without modifications, as long as this notice is preserved.
1020228692Sdes
1021228692Sdes# _AM_SUBST_NOTMAKE(VARIABLE)
1022228692Sdes# ---------------------------
1023228692Sdes# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1024228692Sdes# This macro is traced by Automake.
1025228692SdesAC_DEFUN([_AM_SUBST_NOTMAKE])
1026228692Sdes
1027228692Sdes# AM_SUBST_NOTMAKE(VARIABLE)
1028255376Sdes# --------------------------
1029228692Sdes# Public sister of _AM_SUBST_NOTMAKE.
1030228692SdesAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1031228692Sdes
1032174832Sdes# Check how to create a tarball.                            -*- Autoconf -*-
1033174832Sdes
1034348980Sdes# Copyright (C) 2004-2018 Free Software Foundation, Inc.
1035174832Sdes#
1036174832Sdes# This file is free software; the Free Software Foundation
1037174832Sdes# gives unlimited permission to copy and/or distribute it,
1038174832Sdes# with or without modifications, as long as this notice is preserved.
1039174832Sdes
1040174832Sdes# _AM_PROG_TAR(FORMAT)
1041174832Sdes# --------------------
1042174832Sdes# Check how to create a tarball in format FORMAT.
1043255376Sdes# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1044174832Sdes#
1045174832Sdes# Substitute a variable $(am__tar) that is a command
1046174832Sdes# writing to stdout a FORMAT-tarball containing the directory
1047174832Sdes# $tardir.
1048174832Sdes#     tardir=directory && $(am__tar) > result.tar
1049174832Sdes#
1050174832Sdes# Substitute a variable $(am__untar) that extract such
1051174832Sdes# a tarball read from stdin.
1052174832Sdes#     $(am__untar) < result.tar
1053255376Sdes#
1054174832SdesAC_DEFUN([_AM_PROG_TAR],
1055255376Sdes[# Always define AMTAR for backward compatibility.  Yes, it's still used
1056255376Sdes# in the wild :-(  We should find a proper way to deprecate it ...
1057255376SdesAC_SUBST([AMTAR], ['$${TAR-tar}'])
1058255376Sdes
1059255376Sdes# We'll loop over all known methods to create a tar archive until one works.
1060174832Sdes_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1061174832Sdes
1062255376Sdesm4_if([$1], [v7],
1063255376Sdes  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1064174832Sdes
1065255376Sdes  [m4_case([$1],
1066255376Sdes    [ustar],
1067255376Sdes     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1068255376Sdes      # There is notably a 21 bits limit for the UID and the GID.  In fact,
1069255376Sdes      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1070255376Sdes      # and bug#13588).
1071255376Sdes      am_max_uid=2097151 # 2^21 - 1
1072255376Sdes      am_max_gid=$am_max_uid
1073255376Sdes      # The $UID and $GID variables are not portable, so we need to resort
1074255376Sdes      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1075255376Sdes      # below are definitely unexpected, so allow the users to see them
1076255376Sdes      # (that is, avoid stderr redirection).
1077255376Sdes      am_uid=`id -u || echo unknown`
1078255376Sdes      am_gid=`id -g || echo unknown`
1079255376Sdes      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1080255376Sdes      if test $am_uid -le $am_max_uid; then
1081255376Sdes         AC_MSG_RESULT([yes])
1082255376Sdes      else
1083255376Sdes         AC_MSG_RESULT([no])
1084255376Sdes         _am_tools=none
1085255376Sdes      fi
1086255376Sdes      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1087255376Sdes      if test $am_gid -le $am_max_gid; then
1088255376Sdes         AC_MSG_RESULT([yes])
1089255376Sdes      else
1090255376Sdes        AC_MSG_RESULT([no])
1091255376Sdes        _am_tools=none
1092255376Sdes      fi],
1093255376Sdes
1094255376Sdes  [pax],
1095255376Sdes    [],
1096255376Sdes
1097255376Sdes  [m4_fatal([Unknown tar format])])
1098255376Sdes
1099255376Sdes  AC_MSG_CHECKING([how to create a $1 tar archive])
1100255376Sdes
1101255376Sdes  # Go ahead even if we have the value already cached.  We do so because we
1102255376Sdes  # need to set the values for the 'am__tar' and 'am__untar' variables.
1103255376Sdes  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1104255376Sdes
1105255376Sdes  for _am_tool in $_am_tools; do
1106255376Sdes    case $_am_tool in
1107255376Sdes    gnutar)
1108255376Sdes      for _am_tar in tar gnutar gtar; do
1109255376Sdes        AM_RUN_LOG([$_am_tar --version]) && break
1110255376Sdes      done
1111255376Sdes      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1112255376Sdes      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1113255376Sdes      am__untar="$_am_tar -xf -"
1114255376Sdes      ;;
1115255376Sdes    plaintar)
1116255376Sdes      # Must skip GNU tar: if it does not support --format= it doesn't create
1117255376Sdes      # ustar tarball either.
1118255376Sdes      (tar --version) >/dev/null 2>&1 && continue
1119255376Sdes      am__tar='tar chf - "$$tardir"'
1120255376Sdes      am__tar_='tar chf - "$tardir"'
1121255376Sdes      am__untar='tar xf -'
1122255376Sdes      ;;
1123255376Sdes    pax)
1124255376Sdes      am__tar='pax -L -x $1 -w "$$tardir"'
1125255376Sdes      am__tar_='pax -L -x $1 -w "$tardir"'
1126255376Sdes      am__untar='pax -r'
1127255376Sdes      ;;
1128255376Sdes    cpio)
1129255376Sdes      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1130255376Sdes      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1131255376Sdes      am__untar='cpio -i -H $1 -d'
1132255376Sdes      ;;
1133255376Sdes    none)
1134255376Sdes      am__tar=false
1135255376Sdes      am__tar_=false
1136255376Sdes      am__untar=false
1137255376Sdes      ;;
1138255376Sdes    esac
1139255376Sdes
1140255376Sdes    # If the value was cached, stop now.  We just wanted to have am__tar
1141255376Sdes    # and am__untar set.
1142255376Sdes    test -n "${am_cv_prog_tar_$1}" && break
1143255376Sdes
1144255376Sdes    # tar/untar a dummy directory, and stop if the command works.
1145255376Sdes    rm -rf conftest.dir
1146255376Sdes    mkdir conftest.dir
1147255376Sdes    echo GrepMe > conftest.dir/file
1148255376Sdes    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1149255376Sdes    rm -rf conftest.dir
1150255376Sdes    if test -s conftest.tar; then
1151255376Sdes      AM_RUN_LOG([$am__untar <conftest.tar])
1152255376Sdes      AM_RUN_LOG([cat conftest.dir/file])
1153255376Sdes      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1154255376Sdes    fi
1155255376Sdes  done
1156174832Sdes  rm -rf conftest.dir
1157174832Sdes
1158255376Sdes  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1159255376Sdes  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1160255376Sdes
1161174832SdesAC_SUBST([am__tar])
1162174832SdesAC_SUBST([am__untar])
1163174832Sdes]) # _AM_PROG_TAR
1164174832Sdes
1165348980Sdesm4_include([m4/ax_pkg_config.m4])
1166348980Sdesm4_include([m4/libtool.m4])
1167348980Sdesm4_include([m4/ltoptions.m4])
1168348980Sdesm4_include([m4/ltsugar.m4])
1169348980Sdesm4_include([m4/ltversion.m4])
1170348980Sdesm4_include([m4/lt~obsolete.m4])
1171