]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/aclocal.m4
Make TOPN counter dynamically allocated.
[thirdparty/gcc.git] / libphobos / aclocal.m4
CommitLineData
22e05272
JM
1# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
2
3# Copyright (C) 1996-2017 Free Software Foundation, Inc.
b4c522fa 4
b4c522fa
IB
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
22e05272 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
b4c522fa
IB
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
22e05272
JM
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
b4c522fa
IB
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
22e05272 21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
b4c522fa 22
22e05272 23# Copyright (C) 2002-2017 Free Software Foundation, Inc.
b4c522fa
IB
24#
25# This file is free software; the Free Software Foundation
26# gives unlimited permission to copy and/or distribute it,
27# with or without modifications, as long as this notice is preserved.
28
b4c522fa
IB
29# AM_AUTOMAKE_VERSION(VERSION)
30# ----------------------------
31# Automake X.Y traces this macro to ensure aclocal.m4 has been
32# generated from the m4 files accompanying Automake X.Y.
33# (This private macro should not be called outside this file.)
34AC_DEFUN([AM_AUTOMAKE_VERSION],
22e05272 35[am__api_version='1.15'
b4c522fa
IB
36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37dnl require some minimum version. Point them to the right macro.
22e05272 38m4_if([$1], [1.15.1], [],
b4c522fa
IB
39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40])
41
42# _AM_AUTOCONF_VERSION(VERSION)
43# -----------------------------
44# aclocal traces this macro to find the Autoconf version.
45# This is a private macro too. Using m4_define simplifies
46# the logic in aclocal, which can simply ignore this definition.
47m4_define([_AM_AUTOCONF_VERSION], [])
48
49# AM_SET_CURRENT_AUTOMAKE_VERSION
50# -------------------------------
51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
22e05272 54[AM_AUTOMAKE_VERSION([1.15.1])dnl
b4c522fa
IB
55m4_ifndef([AC_AUTOCONF_VERSION],
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
59# Figure out how to run the assembler. -*- Autoconf -*-
60
22e05272 61# Copyright (C) 2001-2017 Free Software Foundation, Inc.
b4c522fa
IB
62#
63# This file is free software; the Free Software Foundation
64# gives unlimited permission to copy and/or distribute it,
65# with or without modifications, as long as this notice is preserved.
66
b4c522fa
IB
67# AM_PROG_AS
68# ----------
69AC_DEFUN([AM_PROG_AS],
70[# By default we simply use the C compiler to build assembly code.
71AC_REQUIRE([AC_PROG_CC])
72test "${CCAS+set}" = set || CCAS=$CC
73test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
74AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
75AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
76_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
77])
78
79# AM_AUX_DIR_EXPAND -*- Autoconf -*-
80
22e05272 81# Copyright (C) 2001-2017 Free Software Foundation, Inc.
b4c522fa
IB
82#
83# This file is free software; the Free Software Foundation
84# gives unlimited permission to copy and/or distribute it,
85# with or without modifications, as long as this notice is preserved.
86
b4c522fa 87# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
22e05272
JM
88# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
89# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
b4c522fa
IB
90#
91# Of course, Automake must honor this variable whenever it calls a
92# tool from the auxiliary directory. The problem is that $srcdir (and
93# therefore $ac_aux_dir as well) can be either absolute or relative,
94# depending on how configure is run. This is pretty annoying, since
95# it makes $ac_aux_dir quite unusable in subdirectories: in the top
96# source directory, any form will work fine, but in subdirectories a
97# relative path needs to be adjusted first.
98#
99# $ac_aux_dir/missing
100# fails when called from a subdirectory if $ac_aux_dir is relative
101# $top_srcdir/$ac_aux_dir/missing
102# fails if $ac_aux_dir is absolute,
103# fails when called from a subdirectory in a VPATH build with
104# a relative $ac_aux_dir
105#
106# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
107# are both prefixed by $srcdir. In an in-source build this is usually
22e05272 108# harmless because $srcdir is '.', but things will broke when you
b4c522fa
IB
109# start a VPATH build or use an absolute $srcdir.
110#
111# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
112# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
113# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
114# and then we would define $MISSING as
115# MISSING="\${SHELL} $am_aux_dir/missing"
116# This will work as long as MISSING is not called from configure, because
117# unfortunately $(top_srcdir) has no meaning in configure.
118# However there are other variables, like CC, which are often used in
119# configure, and could therefore not use this "fixed" $ac_aux_dir.
120#
121# Another solution, used here, is to always expand $ac_aux_dir to an
122# absolute PATH. The drawback is that using absolute paths prevent a
123# configured tree to be moved without reconfiguration.
124
125AC_DEFUN([AM_AUX_DIR_EXPAND],
22e05272
JM
126[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
127# Expand $ac_aux_dir to an absolute path.
128am_aux_dir=`cd "$ac_aux_dir" && pwd`
b4c522fa
IB
129])
130
131# AM_CONDITIONAL -*- Autoconf -*-
132
22e05272 133# Copyright (C) 1997-2017 Free Software Foundation, Inc.
b4c522fa
IB
134#
135# This file is free software; the Free Software Foundation
136# gives unlimited permission to copy and/or distribute it,
137# with or without modifications, as long as this notice is preserved.
138
b4c522fa
IB
139# AM_CONDITIONAL(NAME, SHELL-CONDITION)
140# -------------------------------------
141# Define a conditional.
142AC_DEFUN([AM_CONDITIONAL],
22e05272
JM
143[AC_PREREQ([2.52])dnl
144 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
145 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
b4c522fa
IB
146AC_SUBST([$1_TRUE])dnl
147AC_SUBST([$1_FALSE])dnl
148_AM_SUBST_NOTMAKE([$1_TRUE])dnl
149_AM_SUBST_NOTMAKE([$1_FALSE])dnl
150m4_define([_AM_COND_VALUE_$1], [$2])dnl
151if $2; then
152 $1_TRUE=
153 $1_FALSE='#'
154else
155 $1_TRUE='#'
156 $1_FALSE=
157fi
158AC_CONFIG_COMMANDS_PRE(
159[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
160 AC_MSG_ERROR([[conditional "$1" was never defined.
161Usually this means the macro was only invoked conditionally.]])
162fi])])
163
164# Do all the work for Automake. -*- Autoconf -*-
165
22e05272 166# Copyright (C) 1996-2017 Free Software Foundation, Inc.
b4c522fa
IB
167#
168# This file is free software; the Free Software Foundation
169# gives unlimited permission to copy and/or distribute it,
170# with or without modifications, as long as this notice is preserved.
171
b4c522fa
IB
172# This macro actually does too much. Some checks are only needed if
173# your package does certain things. But this isn't really a big deal.
174
22e05272
JM
175dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
176m4_define([AC_PROG_CC],
177m4_defn([AC_PROG_CC])
178[_AM_PROG_CC_C_O
179])
180
b4c522fa
IB
181# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
182# AM_INIT_AUTOMAKE([OPTIONS])
183# -----------------------------------------------
184# The call with PACKAGE and VERSION arguments is the old style
185# call (pre autoconf-2.50), which is being phased out. PACKAGE
186# and VERSION should now be passed to AC_INIT and removed from
187# the call to AM_INIT_AUTOMAKE.
188# We support both call styles for the transition. After
189# the next Automake release, Autoconf can make the AC_INIT
190# arguments mandatory, and then we can depend on a new Autoconf
191# release and drop the old call support.
192AC_DEFUN([AM_INIT_AUTOMAKE],
22e05272 193[AC_PREREQ([2.65])dnl
b4c522fa
IB
194dnl Autoconf wants to disallow AM_ names. We explicitly allow
195dnl the ones we care about.
196m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
197AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
198AC_REQUIRE([AC_PROG_INSTALL])dnl
199if test "`cd $srcdir && pwd`" != "`pwd`"; then
200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
201 # is not polluted with repeated "-I."
202 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
203 # test to see if srcdir already configured
204 if test -f $srcdir/config.status; then
205 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
206 fi
207fi
208
209# test whether we have cygpath
210if test -z "$CYGPATH_W"; then
211 if (cygpath --version) >/dev/null 2>/dev/null; then
212 CYGPATH_W='cygpath -w'
213 else
214 CYGPATH_W=echo
215 fi
216fi
217AC_SUBST([CYGPATH_W])
218
219# Define the identity of the package.
220dnl Distinguish between old-style and new-style calls.
221m4_ifval([$2],
22e05272
JM
222[AC_DIAGNOSE([obsolete],
223 [$0: two- and three-arguments forms are deprecated.])
224m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
b4c522fa
IB
225 AC_SUBST([PACKAGE], [$1])dnl
226 AC_SUBST([VERSION], [$2])],
227[_AM_SET_OPTIONS([$1])dnl
228dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
22e05272
JM
229m4_if(
230 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
231 [ok:ok],,
b4c522fa
IB
232 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
233 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
234 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
235
236_AM_IF_OPTION([no-define],,
22e05272
JM
237[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
238 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
b4c522fa
IB
239
240# Some tools Automake needs.
241AC_REQUIRE([AM_SANITY_CHECK])dnl
242AC_REQUIRE([AC_ARG_PROGRAM])dnl
22e05272
JM
243AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
244AM_MISSING_PROG([AUTOCONF], [autoconf])
245AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
246AM_MISSING_PROG([AUTOHEADER], [autoheader])
247AM_MISSING_PROG([MAKEINFO], [makeinfo])
b4c522fa
IB
248AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
249AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
22e05272
JM
250AC_REQUIRE([AC_PROG_MKDIR_P])dnl
251# For better backward compatibility. To be removed once Automake 1.9.x
252# dies out for good. For more background, see:
253# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
254# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
255AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
256# We need awk for the "check" target (and possibly the TAP driver). The
257# system "awk" is bad on some platforms.
b4c522fa
IB
258AC_REQUIRE([AC_PROG_AWK])dnl
259AC_REQUIRE([AC_PROG_MAKE_SET])dnl
260AC_REQUIRE([AM_SET_LEADING_DOT])dnl
261_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
262 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
263 [_AM_PROG_TAR([v7])])])
264_AM_IF_OPTION([no-dependencies],,
265[AC_PROVIDE_IFELSE([AC_PROG_CC],
22e05272
JM
266 [_AM_DEPENDENCIES([CC])],
267 [m4_define([AC_PROG_CC],
268 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
b4c522fa 269AC_PROVIDE_IFELSE([AC_PROG_CXX],
22e05272
JM
270 [_AM_DEPENDENCIES([CXX])],
271 [m4_define([AC_PROG_CXX],
272 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
b4c522fa 273AC_PROVIDE_IFELSE([AC_PROG_OBJC],
22e05272
JM
274 [_AM_DEPENDENCIES([OBJC])],
275 [m4_define([AC_PROG_OBJC],
276 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
277AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
278 [_AM_DEPENDENCIES([OBJCXX])],
279 [m4_define([AC_PROG_OBJCXX],
280 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
b4c522fa 281])
22e05272
JM
282AC_REQUIRE([AM_SILENT_RULES])dnl
283dnl The testsuite driver may need to know about EXEEXT, so add the
284dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
285dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
b4c522fa
IB
286AC_CONFIG_COMMANDS_PRE(dnl
287[m4_provide_if([_AM_COMPILER_EXEEXT],
288 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
22e05272
JM
289
290# POSIX will say in a future version that running "rm -f" with no argument
291# is OK; and we want to be able to make that assumption in our Makefile
292# recipes. So use an aggressive probe to check that the usage we want is
293# actually supported "in the wild" to an acceptable degree.
294# See automake bug#10828.
295# To make any issue more visible, cause the running configure to be aborted
296# by default if the 'rm' program in use doesn't match our expectations; the
297# user can still override this though.
298if rm -f && rm -fr && rm -rf; then : OK; else
299 cat >&2 <<'END'
300Oops!
301
302Your 'rm' program seems unable to run without file operands specified
303on the command line, even when the '-f' option is present. This is contrary
304to the behaviour of most rm programs out there, and not conforming with
305the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
306
307Please tell bug-automake@gnu.org about your system, including the value
308of your $PATH and any error possibly output before this message. This
309can help us improve future automake versions.
310
311END
312 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
313 echo 'Configuration will proceed anyway, since you have set the' >&2
314 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
315 echo >&2
316 else
317 cat >&2 <<'END'
318Aborting the configuration process, to ensure you take notice of the issue.
319
320You can download and install GNU coreutils to get an 'rm' implementation
321that behaves properly: <http://www.gnu.org/software/coreutils/>.
322
323If you want to complete the configuration process using your problematic
324'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
325to "yes", and re-run configure.
326
327END
328 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
329 fi
330fi
331dnl The trailing newline in this macro's definition is deliberate, for
332dnl backward compatibility and to allow trailing 'dnl'-style comments
333dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
b4c522fa
IB
334])
335
22e05272 336dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
b4c522fa
IB
337dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
338dnl mangled by Autoconf and run in a shell conditional statement.
339m4_define([_AC_COMPILER_EXEEXT],
340m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
341
b4c522fa
IB
342# When config.status generates a header, we must update the stamp-h file.
343# This file resides in the same directory as the config header
344# that is generated. The stamp files are numbered to have different names.
345
346# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
347# loop where config.status creates the headers, so we can generate
348# our stamp files there.
349AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
350[# Compute $1's index in $config_headers.
351_am_arg=$1
352_am_stamp_count=1
353for _am_header in $config_headers :; do
354 case $_am_header in
355 $_am_arg | $_am_arg:* )
356 break ;;
357 * )
358 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
359 esac
360done
361echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
362
22e05272 363# Copyright (C) 2001-2017 Free Software Foundation, Inc.
b4c522fa
IB
364#
365# This file is free software; the Free Software Foundation
366# gives unlimited permission to copy and/or distribute it,
367# with or without modifications, as long as this notice is preserved.
368
b4c522fa
IB
369# AM_PROG_INSTALL_SH
370# ------------------
371# Define $install_sh.
372AC_DEFUN([AM_PROG_INSTALL_SH],
373[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
22e05272 374if test x"${install_sh+set}" != xset; then
b4c522fa
IB
375 case $am_aux_dir in
376 *\ * | *\ *)
377 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
378 *)
379 install_sh="\${SHELL} $am_aux_dir/install-sh"
380 esac
381fi
22e05272 382AC_SUBST([install_sh])])
b4c522fa
IB
383
384# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
385# From Jim Meyering
386
22e05272 387# Copyright (C) 1996-2017 Free Software Foundation, Inc.
b4c522fa
IB
388#
389# This file is free software; the Free Software Foundation
390# gives unlimited permission to copy and/or distribute it,
391# with or without modifications, as long as this notice is preserved.
392
b4c522fa
IB
393# AM_MAINTAINER_MODE([DEFAULT-MODE])
394# ----------------------------------
395# Control maintainer-specific portions of Makefiles.
22e05272
JM
396# Default is to disable them, unless 'enable' is passed literally.
397# For symmetry, 'disable' may be passed as well. Anyway, the user
b4c522fa
IB
398# can override the default with the --enable/--disable switch.
399AC_DEFUN([AM_MAINTAINER_MODE],
400[m4_case(m4_default([$1], [disable]),
401 [enable], [m4_define([am_maintainer_other], [disable])],
402 [disable], [m4_define([am_maintainer_other], [enable])],
403 [m4_define([am_maintainer_other], [enable])
404 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
405AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
406 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
407 AC_ARG_ENABLE([maintainer-mode],
22e05272
JM
408 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
409 am_maintainer_other[ make rules and dependencies not useful
410 (and sometimes confusing) to the casual installer])],
411 [USE_MAINTAINER_MODE=$enableval],
412 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
b4c522fa
IB
413 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
414 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
415 MAINT=$MAINTAINER_MODE_TRUE
416 AC_SUBST([MAINT])dnl
417]
418)
419
b4c522fa
IB
420# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
421
22e05272 422# Copyright (C) 1997-2017 Free Software Foundation, Inc.
b4c522fa
IB
423#
424# This file is free software; the Free Software Foundation
425# gives unlimited permission to copy and/or distribute it,
426# with or without modifications, as long as this notice is preserved.
427
b4c522fa
IB
428# AM_MISSING_PROG(NAME, PROGRAM)
429# ------------------------------
430AC_DEFUN([AM_MISSING_PROG],
431[AC_REQUIRE([AM_MISSING_HAS_RUN])
432$1=${$1-"${am_missing_run}$2"}
433AC_SUBST($1)])
434
b4c522fa
IB
435# AM_MISSING_HAS_RUN
436# ------------------
22e05272
JM
437# Define MISSING if not defined so far and test if it is modern enough.
438# If it is, set am_missing_run to use it, otherwise, to nothing.
b4c522fa
IB
439AC_DEFUN([AM_MISSING_HAS_RUN],
440[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
441AC_REQUIRE_AUX_FILE([missing])dnl
442if test x"${MISSING+set}" != xset; then
443 case $am_aux_dir in
444 *\ * | *\ *)
445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
446 *)
447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
448 esac
449fi
450# Use eval to expand $SHELL
22e05272
JM
451if eval "$MISSING --is-lightweight"; then
452 am_missing_run="$MISSING "
b4c522fa
IB
453else
454 am_missing_run=
22e05272 455 AC_MSG_WARN(['missing' script is too old or missing])
b4c522fa
IB
456fi
457])
458
b4c522fa
IB
459# Helper functions for option handling. -*- Autoconf -*-
460
22e05272 461# Copyright (C) 2001-2017 Free Software Foundation, Inc.
b4c522fa
IB
462#
463# This file is free software; the Free Software Foundation
464# gives unlimited permission to copy and/or distribute it,
465# with or without modifications, as long as this notice is preserved.
466
b4c522fa
IB
467# _AM_MANGLE_OPTION(NAME)
468# -----------------------
469AC_DEFUN([_AM_MANGLE_OPTION],
470[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
471
472# _AM_SET_OPTION(NAME)
473# --------------------
474# Set option NAME. Presently that only means defining a flag for this option.
475AC_DEFUN([_AM_SET_OPTION],
22e05272 476[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
b4c522fa
IB
477
478# _AM_SET_OPTIONS(OPTIONS)
479# ------------------------
480# OPTIONS is a space-separated list of Automake options.
481AC_DEFUN([_AM_SET_OPTIONS],
482[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
483
484# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
485# -------------------------------------------
486# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
487AC_DEFUN([_AM_IF_OPTION],
488[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
489
22e05272
JM
490# Copyright (C) 1999-2017 Free Software Foundation, Inc.
491#
492# This file is free software; the Free Software Foundation
493# gives unlimited permission to copy and/or distribute it,
494# with or without modifications, as long as this notice is preserved.
495
496# _AM_PROG_CC_C_O
497# ---------------
498# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
499# to automatically call this.
500AC_DEFUN([_AM_PROG_CC_C_O],
501[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
502AC_REQUIRE_AUX_FILE([compile])dnl
503AC_LANG_PUSH([C])dnl
504AC_CACHE_CHECK(
505 [whether $CC understands -c and -o together],
506 [am_cv_prog_cc_c_o],
507 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
508 # Make sure it works both with $CC and with simple cc.
509 # Following AC_PROG_CC_C_O, we do the test twice because some
510 # compilers refuse to overwrite an existing .o file with -o,
511 # though they will create one.
512 am_cv_prog_cc_c_o=yes
513 for am_i in 1 2; do
514 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
515 && test -f conftest2.$ac_objext; then
516 : OK
517 else
518 am_cv_prog_cc_c_o=no
519 break
520 fi
521 done
522 rm -f core conftest*
523 unset am_i])
524if test "$am_cv_prog_cc_c_o" != yes; then
525 # Losing compiler, so override with the script.
526 # FIXME: It is wrong to rewrite CC.
527 # But if we don't then we get into trouble of one sort or another.
528 # A longer-term fix would be to have automake use am__CC in this case,
529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
530 CC="$am_aux_dir/compile $CC"
531fi
532AC_LANG_POP([C])])
533
534# For backward compatibility.
535AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
b4c522fa 536
22e05272 537# Copyright (C) 2001-2017 Free Software Foundation, Inc.
b4c522fa
IB
538#
539# This file is free software; the Free Software Foundation
540# gives unlimited permission to copy and/or distribute it,
541# with or without modifications, as long as this notice is preserved.
542
22e05272
JM
543# AM_RUN_LOG(COMMAND)
544# -------------------
545# Run COMMAND, save the exit status in ac_status, and log it.
546# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
547AC_DEFUN([AM_RUN_LOG],
548[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
549 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
550 ac_status=$?
551 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
552 (exit $ac_status); }])
553
554# Check to make sure that the build environment is sane. -*- Autoconf -*-
555
556# Copyright (C) 1996-2017 Free Software Foundation, Inc.
557#
558# This file is free software; the Free Software Foundation
559# gives unlimited permission to copy and/or distribute it,
560# with or without modifications, as long as this notice is preserved.
b4c522fa
IB
561
562# AM_SANITY_CHECK
563# ---------------
564AC_DEFUN([AM_SANITY_CHECK],
565[AC_MSG_CHECKING([whether build environment is sane])
b4c522fa
IB
566# Reject unsafe characters in $srcdir or the absolute working directory
567# name. Accept space and tab only in the latter.
568am_lf='
569'
570case `pwd` in
571 *[[\\\"\#\$\&\'\`$am_lf]]*)
572 AC_MSG_ERROR([unsafe absolute working directory name]);;
573esac
574case $srcdir in
575 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
22e05272 576 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
b4c522fa
IB
577esac
578
22e05272 579# Do 'set' in a subshell so we don't clobber the current shell's
b4c522fa
IB
580# arguments. Must try -L first in case configure is actually a
581# symlink; some systems play weird games with the mod time of symlinks
582# (eg FreeBSD returns the mod time of the symlink's containing
583# directory).
584if (
22e05272
JM
585 am_has_slept=no
586 for am_try in 1 2; do
587 echo "timestamp, slept: $am_has_slept" > conftest.file
588 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
589 if test "$[*]" = "X"; then
590 # -L didn't work.
591 set X `ls -t "$srcdir/configure" conftest.file`
592 fi
593 if test "$[*]" != "X $srcdir/configure conftest.file" \
594 && test "$[*]" != "X conftest.file $srcdir/configure"; then
595
596 # If neither matched, then we have a broken ls. This can happen
597 # if, for instance, CONFIG_SHELL is bash and it inherits a
598 # broken ls alias from the environment. This has actually
599 # happened. Such a system could not be considered "sane".
600 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
601 alias in your environment])
602 fi
603 if test "$[2]" = conftest.file || test $am_try -eq 2; then
604 break
605 fi
606 # Just in case.
607 sleep 1
608 am_has_slept=yes
609 done
b4c522fa
IB
610 test "$[2]" = conftest.file
611 )
612then
613 # Ok.
614 :
615else
616 AC_MSG_ERROR([newly created file is older than distributed files!
617Check your system clock])
618fi
22e05272
JM
619AC_MSG_RESULT([yes])
620# If we didn't sleep, we still need to ensure time stamps of config.status and
621# generated files are strictly newer.
622am_sleep_pid=
623if grep 'slept: no' conftest.file >/dev/null 2>&1; then
624 ( sleep 1 ) &
625 am_sleep_pid=$!
626fi
627AC_CONFIG_COMMANDS_PRE(
628 [AC_MSG_CHECKING([that generated files are newer than configure])
629 if test -n "$am_sleep_pid"; then
630 # Hide warnings about reused PIDs.
631 wait $am_sleep_pid 2>/dev/null
632 fi
633 AC_MSG_RESULT([done])])
634rm -f conftest.file
635])
b4c522fa 636
22e05272 637# Copyright (C) 2009-2017 Free Software Foundation, Inc.
b4c522fa
IB
638#
639# This file is free software; the Free Software Foundation
640# gives unlimited permission to copy and/or distribute it,
641# with or without modifications, as long as this notice is preserved.
642
22e05272
JM
643# AM_SILENT_RULES([DEFAULT])
644# --------------------------
645# Enable less verbose build rules; with the default set to DEFAULT
646# ("yes" being less verbose, "no" or empty being verbose).
647AC_DEFUN([AM_SILENT_RULES],
648[AC_ARG_ENABLE([silent-rules], [dnl
649AS_HELP_STRING(
650 [--enable-silent-rules],
651 [less verbose build output (undo: "make V=1")])
652AS_HELP_STRING(
653 [--disable-silent-rules],
654 [verbose build output (undo: "make V=0")])dnl
655])
656case $enable_silent_rules in @%:@ (((
657 yes) AM_DEFAULT_VERBOSITY=0;;
658 no) AM_DEFAULT_VERBOSITY=1;;
659 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
660esac
661dnl
662dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
663dnl do not support nested variable expansions.
664dnl See automake bug#9928 and bug#10237.
665am_make=${MAKE-make}
666AC_CACHE_CHECK([whether $am_make supports nested variables],
667 [am_cv_make_support_nested_variables],
668 [if AS_ECHO([['TRUE=$(BAR$(V))
669BAR0=false
670BAR1=true
671V=1
672am__doit:
673 @$(TRUE)
674.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
675 am_cv_make_support_nested_variables=yes
676else
677 am_cv_make_support_nested_variables=no
678fi])
679if test $am_cv_make_support_nested_variables = yes; then
680 dnl Using '$V' instead of '$(V)' breaks IRIX make.
681 AM_V='$(V)'
682 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
683else
684 AM_V=$AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
686fi
687AC_SUBST([AM_V])dnl
688AM_SUBST_NOTMAKE([AM_V])dnl
689AC_SUBST([AM_DEFAULT_V])dnl
690AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
691AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
692AM_BACKSLASH='\'
693AC_SUBST([AM_BACKSLASH])dnl
694_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
695])
696
697# Copyright (C) 2001-2017 Free Software Foundation, Inc.
698#
699# This file is free software; the Free Software Foundation
700# gives unlimited permission to copy and/or distribute it,
701# with or without modifications, as long as this notice is preserved.
b4c522fa
IB
702
703# AM_PROG_INSTALL_STRIP
704# ---------------------
22e05272 705# One issue with vendor 'install' (even GNU) is that you can't
b4c522fa
IB
706# specify the program used to strip binaries. This is especially
707# annoying in cross-compiling environments, where the build's strip
708# is unlikely to handle the host's binaries.
709# Fortunately install-sh will honor a STRIPPROG variable, so we
22e05272 710# always use install-sh in "make install-strip", and initialize
b4c522fa
IB
711# STRIPPROG with the value of the STRIP variable (set by the user).
712AC_DEFUN([AM_PROG_INSTALL_STRIP],
713[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
22e05272
JM
714# Installed binaries are usually stripped using 'strip' when the user
715# run "make install-strip". However 'strip' might not be the right
b4c522fa 716# tool to use in cross-compilation environments, therefore Automake
22e05272
JM
717# will honor the 'STRIP' environment variable to overrule this program.
718dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
b4c522fa
IB
719if test "$cross_compiling" != no; then
720 AC_CHECK_TOOL([STRIP], [strip], :)
721fi
722INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
723AC_SUBST([INSTALL_STRIP_PROGRAM])])
724
22e05272 725# Copyright (C) 2006-2017 Free Software Foundation, Inc.
b4c522fa
IB
726#
727# This file is free software; the Free Software Foundation
728# gives unlimited permission to copy and/or distribute it,
729# with or without modifications, as long as this notice is preserved.
730
b4c522fa
IB
731# _AM_SUBST_NOTMAKE(VARIABLE)
732# ---------------------------
733# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
734# This macro is traced by Automake.
735AC_DEFUN([_AM_SUBST_NOTMAKE])
736
737# AM_SUBST_NOTMAKE(VARIABLE)
738# --------------------------
739# Public sister of _AM_SUBST_NOTMAKE.
740AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
741
742# Check how to create a tarball. -*- Autoconf -*-
743
22e05272 744# Copyright (C) 2004-2017 Free Software Foundation, Inc.
b4c522fa
IB
745#
746# This file is free software; the Free Software Foundation
747# gives unlimited permission to copy and/or distribute it,
748# with or without modifications, as long as this notice is preserved.
749
b4c522fa
IB
750# _AM_PROG_TAR(FORMAT)
751# --------------------
752# Check how to create a tarball in format FORMAT.
22e05272 753# FORMAT should be one of 'v7', 'ustar', or 'pax'.
b4c522fa
IB
754#
755# Substitute a variable $(am__tar) that is a command
756# writing to stdout a FORMAT-tarball containing the directory
757# $tardir.
758# tardir=directory && $(am__tar) > result.tar
759#
760# Substitute a variable $(am__untar) that extract such
761# a tarball read from stdin.
762# $(am__untar) < result.tar
22e05272 763#
b4c522fa
IB
764AC_DEFUN([_AM_PROG_TAR],
765[# Always define AMTAR for backward compatibility. Yes, it's still used
766# in the wild :-( We should find a proper way to deprecate it ...
767AC_SUBST([AMTAR], ['$${TAR-tar}'])
b4c522fa 768
22e05272
JM
769# We'll loop over all known methods to create a tar archive until one works.
770_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
b4c522fa 771
22e05272
JM
772m4_if([$1], [v7],
773 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
774
775 [m4_case([$1],
776 [ustar],
777 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
778 # There is notably a 21 bits limit for the UID and the GID. In fact,
779 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
780 # and bug#13588).
781 am_max_uid=2097151 # 2^21 - 1
782 am_max_gid=$am_max_uid
783 # The $UID and $GID variables are not portable, so we need to resort
784 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
785 # below are definitely unexpected, so allow the users to see them
786 # (that is, avoid stderr redirection).
787 am_uid=`id -u || echo unknown`
788 am_gid=`id -g || echo unknown`
789 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
790 if test $am_uid -le $am_max_uid; then
791 AC_MSG_RESULT([yes])
792 else
793 AC_MSG_RESULT([no])
794 _am_tools=none
795 fi
796 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
797 if test $am_gid -le $am_max_gid; then
798 AC_MSG_RESULT([yes])
799 else
800 AC_MSG_RESULT([no])
801 _am_tools=none
802 fi],
803
804 [pax],
805 [],
806
807 [m4_fatal([Unknown tar format])])
808
809 AC_MSG_CHECKING([how to create a $1 tar archive])
810
811 # Go ahead even if we have the value already cached. We do so because we
812 # need to set the values for the 'am__tar' and 'am__untar' variables.
813 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
814
815 for _am_tool in $_am_tools; do
816 case $_am_tool in
817 gnutar)
818 for _am_tar in tar gnutar gtar; do
819 AM_RUN_LOG([$_am_tar --version]) && break
820 done
821 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
822 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
823 am__untar="$_am_tar -xf -"
824 ;;
825 plaintar)
826 # Must skip GNU tar: if it does not support --format= it doesn't create
827 # ustar tarball either.
828 (tar --version) >/dev/null 2>&1 && continue
829 am__tar='tar chf - "$$tardir"'
830 am__tar_='tar chf - "$tardir"'
831 am__untar='tar xf -'
832 ;;
833 pax)
834 am__tar='pax -L -x $1 -w "$$tardir"'
835 am__tar_='pax -L -x $1 -w "$tardir"'
836 am__untar='pax -r'
837 ;;
838 cpio)
839 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
840 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
841 am__untar='cpio -i -H $1 -d'
842 ;;
843 none)
844 am__tar=false
845 am__tar_=false
846 am__untar=false
847 ;;
848 esac
849
850 # If the value was cached, stop now. We just wanted to have am__tar
851 # and am__untar set.
852 test -n "${am_cv_prog_tar_$1}" && break
853
854 # tar/untar a dummy directory, and stop if the command works.
855 rm -rf conftest.dir
856 mkdir conftest.dir
857 echo GrepMe > conftest.dir/file
858 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
859 rm -rf conftest.dir
860 if test -s conftest.tar; then
861 AM_RUN_LOG([$am__untar <conftest.tar])
862 AM_RUN_LOG([cat conftest.dir/file])
863 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
864 fi
865 done
b4c522fa 866 rm -rf conftest.dir
b4c522fa 867
22e05272
JM
868 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
869 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
870
b4c522fa
IB
871AC_SUBST([am__tar])
872AC_SUBST([am__untar])
873]) # _AM_PROG_TAR
874
875m4_include([../config/acx.m4])
08c1d39d
L
876m4_include([../config/cet.m4])
877m4_include([../config/enable.m4])
b4c522fa
IB
878m4_include([../config/lead-dot.m4])
879m4_include([../config/multi.m4])
880m4_include([../config/override.m4])
e8e66971 881m4_include([../config/toolexeclibdir.m4])
b4c522fa
IB
882m4_include([../libtool.m4])
883m4_include([../ltoptions.m4])
884m4_include([../ltsugar.m4])
885m4_include([../ltversion.m4])
886m4_include([../lt~obsolete.m4])
887m4_include([acinclude.m4])