199ca880aSopenharmony_ci# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
299ca880aSopenharmony_ci
399ca880aSopenharmony_ci# Copyright (C) 1996-2018 Free Software Foundation, Inc.
499ca880aSopenharmony_ci
599ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
699ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
799ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
899ca880aSopenharmony_ci
999ca880aSopenharmony_ci# This program is distributed in the hope that it will be useful,
1099ca880aSopenharmony_ci# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1199ca880aSopenharmony_ci# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1299ca880aSopenharmony_ci# PARTICULAR PURPOSE.
1399ca880aSopenharmony_ci
1499ca880aSopenharmony_cim4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1599ca880aSopenharmony_cim4_ifndef([AC_AUTOCONF_VERSION],
1699ca880aSopenharmony_ci  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1799ca880aSopenharmony_cim4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
1899ca880aSopenharmony_ci[m4_warning([this file was generated for autoconf 2.69.
1999ca880aSopenharmony_ciYou have another version of autoconf.  It may work, but is not guaranteed to.
2099ca880aSopenharmony_ciIf you have problems, you may need to regenerate the build system entirely.
2199ca880aSopenharmony_ciTo do so, use the procedure documented by the package, typically 'autoreconf'.])])
2299ca880aSopenharmony_ci
2399ca880aSopenharmony_ci# pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
2499ca880aSopenharmony_ci# serial 12 (pkg-config-0.29.2)
2599ca880aSopenharmony_ci
2699ca880aSopenharmony_cidnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2799ca880aSopenharmony_cidnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
2899ca880aSopenharmony_cidnl
2999ca880aSopenharmony_cidnl This program is free software; you can redistribute it and/or modify
3099ca880aSopenharmony_cidnl it under the terms of the GNU General Public License as published by
3199ca880aSopenharmony_cidnl the Free Software Foundation; either version 2 of the License, or
3299ca880aSopenharmony_cidnl (at your option) any later version.
3399ca880aSopenharmony_cidnl
3499ca880aSopenharmony_cidnl This program is distributed in the hope that it will be useful, but
3599ca880aSopenharmony_cidnl WITHOUT ANY WARRANTY; without even the implied warranty of
3699ca880aSopenharmony_cidnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3799ca880aSopenharmony_cidnl General Public License for more details.
3899ca880aSopenharmony_cidnl
3999ca880aSopenharmony_cidnl You should have received a copy of the GNU General Public License
4099ca880aSopenharmony_cidnl along with this program; if not, write to the Free Software
4199ca880aSopenharmony_cidnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4299ca880aSopenharmony_cidnl 02111-1307, USA.
4399ca880aSopenharmony_cidnl
4499ca880aSopenharmony_cidnl As a special exception to the GNU General Public License, if you
4599ca880aSopenharmony_cidnl distribute this file as part of a program that contains a
4699ca880aSopenharmony_cidnl configuration script generated by Autoconf, you may include it under
4799ca880aSopenharmony_cidnl the same distribution terms that you use for the rest of that
4899ca880aSopenharmony_cidnl program.
4999ca880aSopenharmony_ci
5099ca880aSopenharmony_cidnl PKG_PREREQ(MIN-VERSION)
5199ca880aSopenharmony_cidnl -----------------------
5299ca880aSopenharmony_cidnl Since: 0.29
5399ca880aSopenharmony_cidnl
5499ca880aSopenharmony_cidnl Verify that the version of the pkg-config macros are at least
5599ca880aSopenharmony_cidnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
5699ca880aSopenharmony_cidnl installed version of pkg-config, this checks the developer's version
5799ca880aSopenharmony_cidnl of pkg.m4 when generating configure.
5899ca880aSopenharmony_cidnl
5999ca880aSopenharmony_cidnl To ensure that this macro is defined, also add:
6099ca880aSopenharmony_cidnl m4_ifndef([PKG_PREREQ],
6199ca880aSopenharmony_cidnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
6299ca880aSopenharmony_cidnl
6399ca880aSopenharmony_cidnl See the "Since" comment for each macro you use to see what version
6499ca880aSopenharmony_cidnl of the macros you require.
6599ca880aSopenharmony_cim4_defun([PKG_PREREQ],
6699ca880aSopenharmony_ci[m4_define([PKG_MACROS_VERSION], [0.29.2])
6799ca880aSopenharmony_cim4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
6899ca880aSopenharmony_ci    [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
6999ca880aSopenharmony_ci])dnl PKG_PREREQ
7099ca880aSopenharmony_ci
7199ca880aSopenharmony_cidnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
7299ca880aSopenharmony_cidnl ----------------------------------
7399ca880aSopenharmony_cidnl Since: 0.16
7499ca880aSopenharmony_cidnl
7599ca880aSopenharmony_cidnl Search for the pkg-config tool and set the PKG_CONFIG variable to
7699ca880aSopenharmony_cidnl first found in the path. Checks that the version of pkg-config found
7799ca880aSopenharmony_cidnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
7899ca880aSopenharmony_cidnl used since that's the first version where most current features of
7999ca880aSopenharmony_cidnl pkg-config existed.
8099ca880aSopenharmony_ciAC_DEFUN([PKG_PROG_PKG_CONFIG],
8199ca880aSopenharmony_ci[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8299ca880aSopenharmony_cim4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
8399ca880aSopenharmony_cim4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8499ca880aSopenharmony_ciAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8599ca880aSopenharmony_ciAC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8699ca880aSopenharmony_ciAC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8799ca880aSopenharmony_ci
8899ca880aSopenharmony_ciif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8999ca880aSopenharmony_ci	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9099ca880aSopenharmony_cifi
9199ca880aSopenharmony_ciif test -n "$PKG_CONFIG"; then
9299ca880aSopenharmony_ci	_pkg_min_version=m4_default([$1], [0.9.0])
9399ca880aSopenharmony_ci	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9499ca880aSopenharmony_ci	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9599ca880aSopenharmony_ci		AC_MSG_RESULT([yes])
9699ca880aSopenharmony_ci	else
9799ca880aSopenharmony_ci		AC_MSG_RESULT([no])
9899ca880aSopenharmony_ci		PKG_CONFIG=""
9999ca880aSopenharmony_ci	fi
10099ca880aSopenharmony_cifi[]dnl
10199ca880aSopenharmony_ci])dnl PKG_PROG_PKG_CONFIG
10299ca880aSopenharmony_ci
10399ca880aSopenharmony_cidnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
10499ca880aSopenharmony_cidnl -------------------------------------------------------------------
10599ca880aSopenharmony_cidnl Since: 0.18
10699ca880aSopenharmony_cidnl
10799ca880aSopenharmony_cidnl Check to see whether a particular set of modules exists. Similar to
10899ca880aSopenharmony_cidnl PKG_CHECK_MODULES(), but does not set variables or print errors.
10999ca880aSopenharmony_cidnl
11099ca880aSopenharmony_cidnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
11199ca880aSopenharmony_cidnl only at the first occurence in configure.ac, so if the first place
11299ca880aSopenharmony_cidnl it's called might be skipped (such as if it is within an "if", you
11399ca880aSopenharmony_cidnl have to call PKG_CHECK_EXISTS manually
11499ca880aSopenharmony_ciAC_DEFUN([PKG_CHECK_EXISTS],
11599ca880aSopenharmony_ci[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
11699ca880aSopenharmony_ciif test -n "$PKG_CONFIG" && \
11799ca880aSopenharmony_ci    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
11899ca880aSopenharmony_ci  m4_default([$2], [:])
11999ca880aSopenharmony_cim4_ifvaln([$3], [else
12099ca880aSopenharmony_ci  $3])dnl
12199ca880aSopenharmony_cifi])
12299ca880aSopenharmony_ci
12399ca880aSopenharmony_cidnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
12499ca880aSopenharmony_cidnl ---------------------------------------------
12599ca880aSopenharmony_cidnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
12699ca880aSopenharmony_cidnl pkg_failed based on the result.
12799ca880aSopenharmony_cim4_define([_PKG_CONFIG],
12899ca880aSopenharmony_ci[if test -n "$$1"; then
12999ca880aSopenharmony_ci    pkg_cv_[]$1="$$1"
13099ca880aSopenharmony_ci elif test -n "$PKG_CONFIG"; then
13199ca880aSopenharmony_ci    PKG_CHECK_EXISTS([$3],
13299ca880aSopenharmony_ci                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
13399ca880aSopenharmony_ci		      test "x$?" != "x0" && pkg_failed=yes ],
13499ca880aSopenharmony_ci		     [pkg_failed=yes])
13599ca880aSopenharmony_ci else
13699ca880aSopenharmony_ci    pkg_failed=untried
13799ca880aSopenharmony_cifi[]dnl
13899ca880aSopenharmony_ci])dnl _PKG_CONFIG
13999ca880aSopenharmony_ci
14099ca880aSopenharmony_cidnl _PKG_SHORT_ERRORS_SUPPORTED
14199ca880aSopenharmony_cidnl ---------------------------
14299ca880aSopenharmony_cidnl Internal check to see if pkg-config supports short errors.
14399ca880aSopenharmony_ciAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
14499ca880aSopenharmony_ci[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
14599ca880aSopenharmony_ciif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14699ca880aSopenharmony_ci        _pkg_short_errors_supported=yes
14799ca880aSopenharmony_cielse
14899ca880aSopenharmony_ci        _pkg_short_errors_supported=no
14999ca880aSopenharmony_cifi[]dnl
15099ca880aSopenharmony_ci])dnl _PKG_SHORT_ERRORS_SUPPORTED
15199ca880aSopenharmony_ci
15299ca880aSopenharmony_ci
15399ca880aSopenharmony_cidnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
15499ca880aSopenharmony_cidnl   [ACTION-IF-NOT-FOUND])
15599ca880aSopenharmony_cidnl --------------------------------------------------------------
15699ca880aSopenharmony_cidnl Since: 0.4.0
15799ca880aSopenharmony_cidnl
15899ca880aSopenharmony_cidnl Note that if there is a possibility the first call to
15999ca880aSopenharmony_cidnl PKG_CHECK_MODULES might not happen, you should be sure to include an
16099ca880aSopenharmony_cidnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
16199ca880aSopenharmony_ciAC_DEFUN([PKG_CHECK_MODULES],
16299ca880aSopenharmony_ci[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
16399ca880aSopenharmony_ciAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
16499ca880aSopenharmony_ciAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
16599ca880aSopenharmony_ci
16699ca880aSopenharmony_cipkg_failed=no
16799ca880aSopenharmony_ciAC_MSG_CHECKING([for $2])
16899ca880aSopenharmony_ci
16999ca880aSopenharmony_ci_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
17099ca880aSopenharmony_ci_PKG_CONFIG([$1][_LIBS], [libs], [$2])
17199ca880aSopenharmony_ci
17299ca880aSopenharmony_cim4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
17399ca880aSopenharmony_ciand $1[]_LIBS to avoid the need to call pkg-config.
17499ca880aSopenharmony_ciSee the pkg-config man page for more details.])
17599ca880aSopenharmony_ci
17699ca880aSopenharmony_ciif test $pkg_failed = yes; then
17799ca880aSopenharmony_ci        AC_MSG_RESULT([no])
17899ca880aSopenharmony_ci        _PKG_SHORT_ERRORS_SUPPORTED
17999ca880aSopenharmony_ci        if test $_pkg_short_errors_supported = yes; then
18099ca880aSopenharmony_ci	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
18199ca880aSopenharmony_ci        else
18299ca880aSopenharmony_ci	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
18399ca880aSopenharmony_ci        fi
18499ca880aSopenharmony_ci	# Put the nasty error message in config.log where it belongs
18599ca880aSopenharmony_ci	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
18699ca880aSopenharmony_ci
18799ca880aSopenharmony_ci	m4_default([$4], [AC_MSG_ERROR(
18899ca880aSopenharmony_ci[Package requirements ($2) were not met:
18999ca880aSopenharmony_ci
19099ca880aSopenharmony_ci$$1_PKG_ERRORS
19199ca880aSopenharmony_ci
19299ca880aSopenharmony_ciConsider adjusting the PKG_CONFIG_PATH environment variable if you
19399ca880aSopenharmony_ciinstalled software in a non-standard prefix.
19499ca880aSopenharmony_ci
19599ca880aSopenharmony_ci_PKG_TEXT])[]dnl
19699ca880aSopenharmony_ci        ])
19799ca880aSopenharmony_cielif test $pkg_failed = untried; then
19899ca880aSopenharmony_ci        AC_MSG_RESULT([no])
19999ca880aSopenharmony_ci	m4_default([$4], [AC_MSG_FAILURE(
20099ca880aSopenharmony_ci[The pkg-config script could not be found or is too old.  Make sure it
20199ca880aSopenharmony_ciis in your PATH or set the PKG_CONFIG environment variable to the full
20299ca880aSopenharmony_cipath to pkg-config.
20399ca880aSopenharmony_ci
20499ca880aSopenharmony_ci_PKG_TEXT
20599ca880aSopenharmony_ci
20699ca880aSopenharmony_ciTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
20799ca880aSopenharmony_ci        ])
20899ca880aSopenharmony_cielse
20999ca880aSopenharmony_ci	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
21099ca880aSopenharmony_ci	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
21199ca880aSopenharmony_ci        AC_MSG_RESULT([yes])
21299ca880aSopenharmony_ci	$3
21399ca880aSopenharmony_cifi[]dnl
21499ca880aSopenharmony_ci])dnl PKG_CHECK_MODULES
21599ca880aSopenharmony_ci
21699ca880aSopenharmony_ci
21799ca880aSopenharmony_cidnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
21899ca880aSopenharmony_cidnl   [ACTION-IF-NOT-FOUND])
21999ca880aSopenharmony_cidnl ---------------------------------------------------------------------
22099ca880aSopenharmony_cidnl Since: 0.29
22199ca880aSopenharmony_cidnl
22299ca880aSopenharmony_cidnl Checks for existence of MODULES and gathers its build flags with
22399ca880aSopenharmony_cidnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
22499ca880aSopenharmony_cidnl and VARIABLE-PREFIX_LIBS from --libs.
22599ca880aSopenharmony_cidnl
22699ca880aSopenharmony_cidnl Note that if there is a possibility the first call to
22799ca880aSopenharmony_cidnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
22899ca880aSopenharmony_cidnl include an explicit call to PKG_PROG_PKG_CONFIG in your
22999ca880aSopenharmony_cidnl configure.ac.
23099ca880aSopenharmony_ciAC_DEFUN([PKG_CHECK_MODULES_STATIC],
23199ca880aSopenharmony_ci[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
23299ca880aSopenharmony_ci_save_PKG_CONFIG=$PKG_CONFIG
23399ca880aSopenharmony_ciPKG_CONFIG="$PKG_CONFIG --static"
23499ca880aSopenharmony_ciPKG_CHECK_MODULES($@)
23599ca880aSopenharmony_ciPKG_CONFIG=$_save_PKG_CONFIG[]dnl
23699ca880aSopenharmony_ci])dnl PKG_CHECK_MODULES_STATIC
23799ca880aSopenharmony_ci
23899ca880aSopenharmony_ci
23999ca880aSopenharmony_cidnl PKG_INSTALLDIR([DIRECTORY])
24099ca880aSopenharmony_cidnl -------------------------
24199ca880aSopenharmony_cidnl Since: 0.27
24299ca880aSopenharmony_cidnl
24399ca880aSopenharmony_cidnl Substitutes the variable pkgconfigdir as the location where a module
24499ca880aSopenharmony_cidnl should install pkg-config .pc files. By default the directory is
24599ca880aSopenharmony_cidnl $libdir/pkgconfig, but the default can be changed by passing
24699ca880aSopenharmony_cidnl DIRECTORY. The user can override through the --with-pkgconfigdir
24799ca880aSopenharmony_cidnl parameter.
24899ca880aSopenharmony_ciAC_DEFUN([PKG_INSTALLDIR],
24999ca880aSopenharmony_ci[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
25099ca880aSopenharmony_cim4_pushdef([pkg_description],
25199ca880aSopenharmony_ci    [pkg-config installation directory @<:@]pkg_default[@:>@])
25299ca880aSopenharmony_ciAC_ARG_WITH([pkgconfigdir],
25399ca880aSopenharmony_ci    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
25499ca880aSopenharmony_ci    [with_pkgconfigdir=]pkg_default)
25599ca880aSopenharmony_ciAC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
25699ca880aSopenharmony_cim4_popdef([pkg_default])
25799ca880aSopenharmony_cim4_popdef([pkg_description])
25899ca880aSopenharmony_ci])dnl PKG_INSTALLDIR
25999ca880aSopenharmony_ci
26099ca880aSopenharmony_ci
26199ca880aSopenharmony_cidnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
26299ca880aSopenharmony_cidnl --------------------------------
26399ca880aSopenharmony_cidnl Since: 0.27
26499ca880aSopenharmony_cidnl
26599ca880aSopenharmony_cidnl Substitutes the variable noarch_pkgconfigdir as the location where a
26699ca880aSopenharmony_cidnl module should install arch-independent pkg-config .pc files. By
26799ca880aSopenharmony_cidnl default the directory is $datadir/pkgconfig, but the default can be
26899ca880aSopenharmony_cidnl changed by passing DIRECTORY. The user can override through the
26999ca880aSopenharmony_cidnl --with-noarch-pkgconfigdir parameter.
27099ca880aSopenharmony_ciAC_DEFUN([PKG_NOARCH_INSTALLDIR],
27199ca880aSopenharmony_ci[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
27299ca880aSopenharmony_cim4_pushdef([pkg_description],
27399ca880aSopenharmony_ci    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
27499ca880aSopenharmony_ciAC_ARG_WITH([noarch-pkgconfigdir],
27599ca880aSopenharmony_ci    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
27699ca880aSopenharmony_ci    [with_noarch_pkgconfigdir=]pkg_default)
27799ca880aSopenharmony_ciAC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
27899ca880aSopenharmony_cim4_popdef([pkg_default])
27999ca880aSopenharmony_cim4_popdef([pkg_description])
28099ca880aSopenharmony_ci])dnl PKG_NOARCH_INSTALLDIR
28199ca880aSopenharmony_ci
28299ca880aSopenharmony_ci
28399ca880aSopenharmony_cidnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
28499ca880aSopenharmony_cidnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
28599ca880aSopenharmony_cidnl -------------------------------------------
28699ca880aSopenharmony_cidnl Since: 0.28
28799ca880aSopenharmony_cidnl
28899ca880aSopenharmony_cidnl Retrieves the value of the pkg-config variable for the given module.
28999ca880aSopenharmony_ciAC_DEFUN([PKG_CHECK_VAR],
29099ca880aSopenharmony_ci[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
29199ca880aSopenharmony_ciAC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
29299ca880aSopenharmony_ci
29399ca880aSopenharmony_ci_PKG_CONFIG([$1], [variable="][$3]["], [$2])
29499ca880aSopenharmony_ciAS_VAR_COPY([$1], [pkg_cv_][$1])
29599ca880aSopenharmony_ci
29699ca880aSopenharmony_ciAS_VAR_IF([$1], [""], [$5], [$4])dnl
29799ca880aSopenharmony_ci])dnl PKG_CHECK_VAR
29899ca880aSopenharmony_ci
29999ca880aSopenharmony_ci# Copyright (C) 2002-2018 Free Software Foundation, Inc.
30099ca880aSopenharmony_ci#
30199ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
30299ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
30399ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
30499ca880aSopenharmony_ci
30599ca880aSopenharmony_ci# AM_AUTOMAKE_VERSION(VERSION)
30699ca880aSopenharmony_ci# ----------------------------
30799ca880aSopenharmony_ci# Automake X.Y traces this macro to ensure aclocal.m4 has been
30899ca880aSopenharmony_ci# generated from the m4 files accompanying Automake X.Y.
30999ca880aSopenharmony_ci# (This private macro should not be called outside this file.)
31099ca880aSopenharmony_ciAC_DEFUN([AM_AUTOMAKE_VERSION],
31199ca880aSopenharmony_ci[am__api_version='1.16'
31299ca880aSopenharmony_cidnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
31399ca880aSopenharmony_cidnl require some minimum version.  Point them to the right macro.
31499ca880aSopenharmony_cim4_if([$1], [1.16.1], [],
31599ca880aSopenharmony_ci      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
31699ca880aSopenharmony_ci])
31799ca880aSopenharmony_ci
31899ca880aSopenharmony_ci# _AM_AUTOCONF_VERSION(VERSION)
31999ca880aSopenharmony_ci# -----------------------------
32099ca880aSopenharmony_ci# aclocal traces this macro to find the Autoconf version.
32199ca880aSopenharmony_ci# This is a private macro too.  Using m4_define simplifies
32299ca880aSopenharmony_ci# the logic in aclocal, which can simply ignore this definition.
32399ca880aSopenharmony_cim4_define([_AM_AUTOCONF_VERSION], [])
32499ca880aSopenharmony_ci
32599ca880aSopenharmony_ci# AM_SET_CURRENT_AUTOMAKE_VERSION
32699ca880aSopenharmony_ci# -------------------------------
32799ca880aSopenharmony_ci# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
32899ca880aSopenharmony_ci# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
32999ca880aSopenharmony_ciAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
33099ca880aSopenharmony_ci[AM_AUTOMAKE_VERSION([1.16.1])dnl
33199ca880aSopenharmony_cim4_ifndef([AC_AUTOCONF_VERSION],
33299ca880aSopenharmony_ci  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
33399ca880aSopenharmony_ci_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
33499ca880aSopenharmony_ci
33599ca880aSopenharmony_ci# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
33699ca880aSopenharmony_ci
33799ca880aSopenharmony_ci# Copyright (C) 2001-2018 Free Software Foundation, Inc.
33899ca880aSopenharmony_ci#
33999ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
34099ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
34199ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
34299ca880aSopenharmony_ci
34399ca880aSopenharmony_ci# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
34499ca880aSopenharmony_ci# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
34599ca880aSopenharmony_ci# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
34699ca880aSopenharmony_ci#
34799ca880aSopenharmony_ci# Of course, Automake must honor this variable whenever it calls a
34899ca880aSopenharmony_ci# tool from the auxiliary directory.  The problem is that $srcdir (and
34999ca880aSopenharmony_ci# therefore $ac_aux_dir as well) can be either absolute or relative,
35099ca880aSopenharmony_ci# depending on how configure is run.  This is pretty annoying, since
35199ca880aSopenharmony_ci# it makes $ac_aux_dir quite unusable in subdirectories: in the top
35299ca880aSopenharmony_ci# source directory, any form will work fine, but in subdirectories a
35399ca880aSopenharmony_ci# relative path needs to be adjusted first.
35499ca880aSopenharmony_ci#
35599ca880aSopenharmony_ci# $ac_aux_dir/missing
35699ca880aSopenharmony_ci#    fails when called from a subdirectory if $ac_aux_dir is relative
35799ca880aSopenharmony_ci# $top_srcdir/$ac_aux_dir/missing
35899ca880aSopenharmony_ci#    fails if $ac_aux_dir is absolute,
35999ca880aSopenharmony_ci#    fails when called from a subdirectory in a VPATH build with
36099ca880aSopenharmony_ci#          a relative $ac_aux_dir
36199ca880aSopenharmony_ci#
36299ca880aSopenharmony_ci# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
36399ca880aSopenharmony_ci# are both prefixed by $srcdir.  In an in-source build this is usually
36499ca880aSopenharmony_ci# harmless because $srcdir is '.', but things will broke when you
36599ca880aSopenharmony_ci# start a VPATH build or use an absolute $srcdir.
36699ca880aSopenharmony_ci#
36799ca880aSopenharmony_ci# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
36899ca880aSopenharmony_ci# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
36999ca880aSopenharmony_ci#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
37099ca880aSopenharmony_ci# and then we would define $MISSING as
37199ca880aSopenharmony_ci#   MISSING="\${SHELL} $am_aux_dir/missing"
37299ca880aSopenharmony_ci# This will work as long as MISSING is not called from configure, because
37399ca880aSopenharmony_ci# unfortunately $(top_srcdir) has no meaning in configure.
37499ca880aSopenharmony_ci# However there are other variables, like CC, which are often used in
37599ca880aSopenharmony_ci# configure, and could therefore not use this "fixed" $ac_aux_dir.
37699ca880aSopenharmony_ci#
37799ca880aSopenharmony_ci# Another solution, used here, is to always expand $ac_aux_dir to an
37899ca880aSopenharmony_ci# absolute PATH.  The drawback is that using absolute paths prevent a
37999ca880aSopenharmony_ci# configured tree to be moved without reconfiguration.
38099ca880aSopenharmony_ci
38199ca880aSopenharmony_ciAC_DEFUN([AM_AUX_DIR_EXPAND],
38299ca880aSopenharmony_ci[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
38399ca880aSopenharmony_ci# Expand $ac_aux_dir to an absolute path.
38499ca880aSopenharmony_ciam_aux_dir=`cd "$ac_aux_dir" && pwd`
38599ca880aSopenharmony_ci])
38699ca880aSopenharmony_ci
38799ca880aSopenharmony_ci# AM_CONDITIONAL                                            -*- Autoconf -*-
38899ca880aSopenharmony_ci
38999ca880aSopenharmony_ci# Copyright (C) 1997-2018 Free Software Foundation, Inc.
39099ca880aSopenharmony_ci#
39199ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
39299ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
39399ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
39499ca880aSopenharmony_ci
39599ca880aSopenharmony_ci# AM_CONDITIONAL(NAME, SHELL-CONDITION)
39699ca880aSopenharmony_ci# -------------------------------------
39799ca880aSopenharmony_ci# Define a conditional.
39899ca880aSopenharmony_ciAC_DEFUN([AM_CONDITIONAL],
39999ca880aSopenharmony_ci[AC_PREREQ([2.52])dnl
40099ca880aSopenharmony_ci m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
40199ca880aSopenharmony_ci       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
40299ca880aSopenharmony_ciAC_SUBST([$1_TRUE])dnl
40399ca880aSopenharmony_ciAC_SUBST([$1_FALSE])dnl
40499ca880aSopenharmony_ci_AM_SUBST_NOTMAKE([$1_TRUE])dnl
40599ca880aSopenharmony_ci_AM_SUBST_NOTMAKE([$1_FALSE])dnl
40699ca880aSopenharmony_cim4_define([_AM_COND_VALUE_$1], [$2])dnl
40799ca880aSopenharmony_ciif $2; then
40899ca880aSopenharmony_ci  $1_TRUE=
40999ca880aSopenharmony_ci  $1_FALSE='#'
41099ca880aSopenharmony_cielse
41199ca880aSopenharmony_ci  $1_TRUE='#'
41299ca880aSopenharmony_ci  $1_FALSE=
41399ca880aSopenharmony_cifi
41499ca880aSopenharmony_ciAC_CONFIG_COMMANDS_PRE(
41599ca880aSopenharmony_ci[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
41699ca880aSopenharmony_ci  AC_MSG_ERROR([[conditional "$1" was never defined.
41799ca880aSopenharmony_ciUsually this means the macro was only invoked conditionally.]])
41899ca880aSopenharmony_cifi])])
41999ca880aSopenharmony_ci
42099ca880aSopenharmony_ci# Copyright (C) 1999-2018 Free Software Foundation, Inc.
42199ca880aSopenharmony_ci#
42299ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
42399ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
42499ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
42599ca880aSopenharmony_ci
42699ca880aSopenharmony_ci
42799ca880aSopenharmony_ci# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
42899ca880aSopenharmony_ci# written in clear, in which case automake, when reading aclocal.m4,
42999ca880aSopenharmony_ci# will think it sees a *use*, and therefore will trigger all it's
43099ca880aSopenharmony_ci# C support machinery.  Also note that it means that autoscan, seeing
43199ca880aSopenharmony_ci# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
43299ca880aSopenharmony_ci
43399ca880aSopenharmony_ci
43499ca880aSopenharmony_ci# _AM_DEPENDENCIES(NAME)
43599ca880aSopenharmony_ci# ----------------------
43699ca880aSopenharmony_ci# See how the compiler implements dependency checking.
43799ca880aSopenharmony_ci# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
43899ca880aSopenharmony_ci# We try a few techniques and use that to set a single cache variable.
43999ca880aSopenharmony_ci#
44099ca880aSopenharmony_ci# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
44199ca880aSopenharmony_ci# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
44299ca880aSopenharmony_ci# dependency, and given that the user is not expected to run this macro,
44399ca880aSopenharmony_ci# just rely on AC_PROG_CC.
44499ca880aSopenharmony_ciAC_DEFUN([_AM_DEPENDENCIES],
44599ca880aSopenharmony_ci[AC_REQUIRE([AM_SET_DEPDIR])dnl
44699ca880aSopenharmony_ciAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
44799ca880aSopenharmony_ciAC_REQUIRE([AM_MAKE_INCLUDE])dnl
44899ca880aSopenharmony_ciAC_REQUIRE([AM_DEP_TRACK])dnl
44999ca880aSopenharmony_ci
45099ca880aSopenharmony_cim4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
45199ca880aSopenharmony_ci      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
45299ca880aSopenharmony_ci      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
45399ca880aSopenharmony_ci      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
45499ca880aSopenharmony_ci      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
45599ca880aSopenharmony_ci      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
45699ca880aSopenharmony_ci                    [depcc="$$1"   am_compiler_list=])
45799ca880aSopenharmony_ci
45899ca880aSopenharmony_ciAC_CACHE_CHECK([dependency style of $depcc],
45999ca880aSopenharmony_ci               [am_cv_$1_dependencies_compiler_type],
46099ca880aSopenharmony_ci[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
46199ca880aSopenharmony_ci  # We make a subdir and do the tests there.  Otherwise we can end up
46299ca880aSopenharmony_ci  # making bogus files that we don't know about and never remove.  For
46399ca880aSopenharmony_ci  # instance it was reported that on HP-UX the gcc test will end up
46499ca880aSopenharmony_ci  # making a dummy file named 'D' -- because '-MD' means "put the output
46599ca880aSopenharmony_ci  # in D".
46699ca880aSopenharmony_ci  rm -rf conftest.dir
46799ca880aSopenharmony_ci  mkdir conftest.dir
46899ca880aSopenharmony_ci  # Copy depcomp to subdir because otherwise we won't find it if we're
46999ca880aSopenharmony_ci  # using a relative directory.
47099ca880aSopenharmony_ci  cp "$am_depcomp" conftest.dir
47199ca880aSopenharmony_ci  cd conftest.dir
47299ca880aSopenharmony_ci  # We will build objects and dependencies in a subdirectory because
47399ca880aSopenharmony_ci  # it helps to detect inapplicable dependency modes.  For instance
47499ca880aSopenharmony_ci  # both Tru64's cc and ICC support -MD to output dependencies as a
47599ca880aSopenharmony_ci  # side effect of compilation, but ICC will put the dependencies in
47699ca880aSopenharmony_ci  # the current directory while Tru64 will put them in the object
47799ca880aSopenharmony_ci  # directory.
47899ca880aSopenharmony_ci  mkdir sub
47999ca880aSopenharmony_ci
48099ca880aSopenharmony_ci  am_cv_$1_dependencies_compiler_type=none
48199ca880aSopenharmony_ci  if test "$am_compiler_list" = ""; then
48299ca880aSopenharmony_ci     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
48399ca880aSopenharmony_ci  fi
48499ca880aSopenharmony_ci  am__universal=false
48599ca880aSopenharmony_ci  m4_case([$1], [CC],
48699ca880aSopenharmony_ci    [case " $depcc " in #(
48799ca880aSopenharmony_ci     *\ -arch\ *\ -arch\ *) am__universal=true ;;
48899ca880aSopenharmony_ci     esac],
48999ca880aSopenharmony_ci    [CXX],
49099ca880aSopenharmony_ci    [case " $depcc " in #(
49199ca880aSopenharmony_ci     *\ -arch\ *\ -arch\ *) am__universal=true ;;
49299ca880aSopenharmony_ci     esac])
49399ca880aSopenharmony_ci
49499ca880aSopenharmony_ci  for depmode in $am_compiler_list; do
49599ca880aSopenharmony_ci    # Setup a source with many dependencies, because some compilers
49699ca880aSopenharmony_ci    # like to wrap large dependency lists on column 80 (with \), and
49799ca880aSopenharmony_ci    # we should not choose a depcomp mode which is confused by this.
49899ca880aSopenharmony_ci    #
49999ca880aSopenharmony_ci    # We need to recreate these files for each test, as the compiler may
50099ca880aSopenharmony_ci    # overwrite some of them when testing with obscure command lines.
50199ca880aSopenharmony_ci    # This happens at least with the AIX C compiler.
50299ca880aSopenharmony_ci    : > sub/conftest.c
50399ca880aSopenharmony_ci    for i in 1 2 3 4 5 6; do
50499ca880aSopenharmony_ci      echo '#include "conftst'$i'.h"' >> sub/conftest.c
50599ca880aSopenharmony_ci      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
50699ca880aSopenharmony_ci      # Solaris 10 /bin/sh.
50799ca880aSopenharmony_ci      echo '/* dummy */' > sub/conftst$i.h
50899ca880aSopenharmony_ci    done
50999ca880aSopenharmony_ci    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
51099ca880aSopenharmony_ci
51199ca880aSopenharmony_ci    # We check with '-c' and '-o' for the sake of the "dashmstdout"
51299ca880aSopenharmony_ci    # mode.  It turns out that the SunPro C++ compiler does not properly
51399ca880aSopenharmony_ci    # handle '-M -o', and we need to detect this.  Also, some Intel
51499ca880aSopenharmony_ci    # versions had trouble with output in subdirs.
51599ca880aSopenharmony_ci    am__obj=sub/conftest.${OBJEXT-o}
51699ca880aSopenharmony_ci    am__minus_obj="-o $am__obj"
51799ca880aSopenharmony_ci    case $depmode in
51899ca880aSopenharmony_ci    gcc)
51999ca880aSopenharmony_ci      # This depmode causes a compiler race in universal mode.
52099ca880aSopenharmony_ci      test "$am__universal" = false || continue
52199ca880aSopenharmony_ci      ;;
52299ca880aSopenharmony_ci    nosideeffect)
52399ca880aSopenharmony_ci      # After this tag, mechanisms are not by side-effect, so they'll
52499ca880aSopenharmony_ci      # only be used when explicitly requested.
52599ca880aSopenharmony_ci      if test "x$enable_dependency_tracking" = xyes; then
52699ca880aSopenharmony_ci	continue
52799ca880aSopenharmony_ci      else
52899ca880aSopenharmony_ci	break
52999ca880aSopenharmony_ci      fi
53099ca880aSopenharmony_ci      ;;
53199ca880aSopenharmony_ci    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
53299ca880aSopenharmony_ci      # This compiler won't grok '-c -o', but also, the minuso test has
53399ca880aSopenharmony_ci      # not run yet.  These depmodes are late enough in the game, and
53499ca880aSopenharmony_ci      # so weak that their functioning should not be impacted.
53599ca880aSopenharmony_ci      am__obj=conftest.${OBJEXT-o}
53699ca880aSopenharmony_ci      am__minus_obj=
53799ca880aSopenharmony_ci      ;;
53899ca880aSopenharmony_ci    none) break ;;
53999ca880aSopenharmony_ci    esac
54099ca880aSopenharmony_ci    if depmode=$depmode \
54199ca880aSopenharmony_ci       source=sub/conftest.c object=$am__obj \
54299ca880aSopenharmony_ci       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
54399ca880aSopenharmony_ci       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
54499ca880aSopenharmony_ci         >/dev/null 2>conftest.err &&
54599ca880aSopenharmony_ci       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
54699ca880aSopenharmony_ci       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
54799ca880aSopenharmony_ci       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
54899ca880aSopenharmony_ci       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
54999ca880aSopenharmony_ci      # icc doesn't choke on unknown options, it will just issue warnings
55099ca880aSopenharmony_ci      # or remarks (even with -Werror).  So we grep stderr for any message
55199ca880aSopenharmony_ci      # that says an option was ignored or not supported.
55299ca880aSopenharmony_ci      # When given -MP, icc 7.0 and 7.1 complain thusly:
55399ca880aSopenharmony_ci      #   icc: Command line warning: ignoring option '-M'; no argument required
55499ca880aSopenharmony_ci      # The diagnosis changed in icc 8.0:
55599ca880aSopenharmony_ci      #   icc: Command line remark: option '-MP' not supported
55699ca880aSopenharmony_ci      if (grep 'ignoring option' conftest.err ||
55799ca880aSopenharmony_ci          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
55899ca880aSopenharmony_ci        am_cv_$1_dependencies_compiler_type=$depmode
55999ca880aSopenharmony_ci        break
56099ca880aSopenharmony_ci      fi
56199ca880aSopenharmony_ci    fi
56299ca880aSopenharmony_ci  done
56399ca880aSopenharmony_ci
56499ca880aSopenharmony_ci  cd ..
56599ca880aSopenharmony_ci  rm -rf conftest.dir
56699ca880aSopenharmony_cielse
56799ca880aSopenharmony_ci  am_cv_$1_dependencies_compiler_type=none
56899ca880aSopenharmony_cifi
56999ca880aSopenharmony_ci])
57099ca880aSopenharmony_ciAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
57199ca880aSopenharmony_ciAM_CONDITIONAL([am__fastdep$1], [
57299ca880aSopenharmony_ci  test "x$enable_dependency_tracking" != xno \
57399ca880aSopenharmony_ci  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
57499ca880aSopenharmony_ci])
57599ca880aSopenharmony_ci
57699ca880aSopenharmony_ci
57799ca880aSopenharmony_ci# AM_SET_DEPDIR
57899ca880aSopenharmony_ci# -------------
57999ca880aSopenharmony_ci# Choose a directory name for dependency files.
58099ca880aSopenharmony_ci# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
58199ca880aSopenharmony_ciAC_DEFUN([AM_SET_DEPDIR],
58299ca880aSopenharmony_ci[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
58399ca880aSopenharmony_ciAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
58499ca880aSopenharmony_ci])
58599ca880aSopenharmony_ci
58699ca880aSopenharmony_ci
58799ca880aSopenharmony_ci# AM_DEP_TRACK
58899ca880aSopenharmony_ci# ------------
58999ca880aSopenharmony_ciAC_DEFUN([AM_DEP_TRACK],
59099ca880aSopenharmony_ci[AC_ARG_ENABLE([dependency-tracking], [dnl
59199ca880aSopenharmony_ciAS_HELP_STRING(
59299ca880aSopenharmony_ci  [--enable-dependency-tracking],
59399ca880aSopenharmony_ci  [do not reject slow dependency extractors])
59499ca880aSopenharmony_ciAS_HELP_STRING(
59599ca880aSopenharmony_ci  [--disable-dependency-tracking],
59699ca880aSopenharmony_ci  [speeds up one-time build])])
59799ca880aSopenharmony_ciif test "x$enable_dependency_tracking" != xno; then
59899ca880aSopenharmony_ci  am_depcomp="$ac_aux_dir/depcomp"
59999ca880aSopenharmony_ci  AMDEPBACKSLASH='\'
60099ca880aSopenharmony_ci  am__nodep='_no'
60199ca880aSopenharmony_cifi
60299ca880aSopenharmony_ciAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
60399ca880aSopenharmony_ciAC_SUBST([AMDEPBACKSLASH])dnl
60499ca880aSopenharmony_ci_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
60599ca880aSopenharmony_ciAC_SUBST([am__nodep])dnl
60699ca880aSopenharmony_ci_AM_SUBST_NOTMAKE([am__nodep])dnl
60799ca880aSopenharmony_ci])
60899ca880aSopenharmony_ci
60999ca880aSopenharmony_ci# Generate code to set up dependency tracking.              -*- Autoconf -*-
61099ca880aSopenharmony_ci
61199ca880aSopenharmony_ci# Copyright (C) 1999-2018 Free Software Foundation, Inc.
61299ca880aSopenharmony_ci#
61399ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
61499ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
61599ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
61699ca880aSopenharmony_ci
61799ca880aSopenharmony_ci# _AM_OUTPUT_DEPENDENCY_COMMANDS
61899ca880aSopenharmony_ci# ------------------------------
61999ca880aSopenharmony_ciAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
62099ca880aSopenharmony_ci[{
62199ca880aSopenharmony_ci  # Older Autoconf quotes --file arguments for eval, but not when files
62299ca880aSopenharmony_ci  # are listed without --file.  Let's play safe and only enable the eval
62399ca880aSopenharmony_ci  # if we detect the quoting.
62499ca880aSopenharmony_ci  # TODO: see whether this extra hack can be removed once we start
62599ca880aSopenharmony_ci  # requiring Autoconf 2.70 or later.
62699ca880aSopenharmony_ci  AS_CASE([$CONFIG_FILES],
62799ca880aSopenharmony_ci          [*\'*], [eval set x "$CONFIG_FILES"],
62899ca880aSopenharmony_ci          [*], [set x $CONFIG_FILES])
62999ca880aSopenharmony_ci  shift
63099ca880aSopenharmony_ci  # Used to flag and report bootstrapping failures.
63199ca880aSopenharmony_ci  am_rc=0
63299ca880aSopenharmony_ci  for am_mf
63399ca880aSopenharmony_ci  do
63499ca880aSopenharmony_ci    # Strip MF so we end up with the name of the file.
63599ca880aSopenharmony_ci    am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
63699ca880aSopenharmony_ci    # Check whether this is an Automake generated Makefile which includes
63799ca880aSopenharmony_ci    # dependency-tracking related rules and includes.
63899ca880aSopenharmony_ci    # Grep'ing the whole file directly is not great: AIX grep has a line
63999ca880aSopenharmony_ci    # limit of 2048, but all sed's we know have understand at least 4000.
64099ca880aSopenharmony_ci    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
64199ca880aSopenharmony_ci      || continue
64299ca880aSopenharmony_ci    am_dirpart=`AS_DIRNAME(["$am_mf"])`
64399ca880aSopenharmony_ci    am_filepart=`AS_BASENAME(["$am_mf"])`
64499ca880aSopenharmony_ci    AM_RUN_LOG([cd "$am_dirpart" \
64599ca880aSopenharmony_ci      && sed -e '/# am--include-marker/d' "$am_filepart" \
64699ca880aSopenharmony_ci        | $MAKE -f - am--depfiles]) || am_rc=$?
64799ca880aSopenharmony_ci  done
64899ca880aSopenharmony_ci  if test $am_rc -ne 0; then
64999ca880aSopenharmony_ci    AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
65099ca880aSopenharmony_ci    for automatic dependency tracking.  Try re-running configure with the
65199ca880aSopenharmony_ci    '--disable-dependency-tracking' option to at least be able to build
65299ca880aSopenharmony_ci    the package (albeit without support for automatic dependency tracking).])
65399ca880aSopenharmony_ci  fi
65499ca880aSopenharmony_ci  AS_UNSET([am_dirpart])
65599ca880aSopenharmony_ci  AS_UNSET([am_filepart])
65699ca880aSopenharmony_ci  AS_UNSET([am_mf])
65799ca880aSopenharmony_ci  AS_UNSET([am_rc])
65899ca880aSopenharmony_ci  rm -f conftest-deps.mk
65999ca880aSopenharmony_ci}
66099ca880aSopenharmony_ci])# _AM_OUTPUT_DEPENDENCY_COMMANDS
66199ca880aSopenharmony_ci
66299ca880aSopenharmony_ci
66399ca880aSopenharmony_ci# AM_OUTPUT_DEPENDENCY_COMMANDS
66499ca880aSopenharmony_ci# -----------------------------
66599ca880aSopenharmony_ci# This macro should only be invoked once -- use via AC_REQUIRE.
66699ca880aSopenharmony_ci#
66799ca880aSopenharmony_ci# This code is only required when automatic dependency tracking is enabled.
66899ca880aSopenharmony_ci# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
66999ca880aSopenharmony_ci# order to bootstrap the dependency handling code.
67099ca880aSopenharmony_ciAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
67199ca880aSopenharmony_ci[AC_CONFIG_COMMANDS([depfiles],
67299ca880aSopenharmony_ci     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
67399ca880aSopenharmony_ci     [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
67499ca880aSopenharmony_ci
67599ca880aSopenharmony_ci# Do all the work for Automake.                             -*- Autoconf -*-
67699ca880aSopenharmony_ci
67799ca880aSopenharmony_ci# Copyright (C) 1996-2018 Free Software Foundation, Inc.
67899ca880aSopenharmony_ci#
67999ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
68099ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
68199ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
68299ca880aSopenharmony_ci
68399ca880aSopenharmony_ci# This macro actually does too much.  Some checks are only needed if
68499ca880aSopenharmony_ci# your package does certain things.  But this isn't really a big deal.
68599ca880aSopenharmony_ci
68699ca880aSopenharmony_cidnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
68799ca880aSopenharmony_cim4_define([AC_PROG_CC],
68899ca880aSopenharmony_cim4_defn([AC_PROG_CC])
68999ca880aSopenharmony_ci[_AM_PROG_CC_C_O
69099ca880aSopenharmony_ci])
69199ca880aSopenharmony_ci
69299ca880aSopenharmony_ci# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
69399ca880aSopenharmony_ci# AM_INIT_AUTOMAKE([OPTIONS])
69499ca880aSopenharmony_ci# -----------------------------------------------
69599ca880aSopenharmony_ci# The call with PACKAGE and VERSION arguments is the old style
69699ca880aSopenharmony_ci# call (pre autoconf-2.50), which is being phased out.  PACKAGE
69799ca880aSopenharmony_ci# and VERSION should now be passed to AC_INIT and removed from
69899ca880aSopenharmony_ci# the call to AM_INIT_AUTOMAKE.
69999ca880aSopenharmony_ci# We support both call styles for the transition.  After
70099ca880aSopenharmony_ci# the next Automake release, Autoconf can make the AC_INIT
70199ca880aSopenharmony_ci# arguments mandatory, and then we can depend on a new Autoconf
70299ca880aSopenharmony_ci# release and drop the old call support.
70399ca880aSopenharmony_ciAC_DEFUN([AM_INIT_AUTOMAKE],
70499ca880aSopenharmony_ci[AC_PREREQ([2.65])dnl
70599ca880aSopenharmony_cidnl Autoconf wants to disallow AM_ names.  We explicitly allow
70699ca880aSopenharmony_cidnl the ones we care about.
70799ca880aSopenharmony_cim4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
70899ca880aSopenharmony_ciAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
70999ca880aSopenharmony_ciAC_REQUIRE([AC_PROG_INSTALL])dnl
71099ca880aSopenharmony_ciif test "`cd $srcdir && pwd`" != "`pwd`"; then
71199ca880aSopenharmony_ci  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
71299ca880aSopenharmony_ci  # is not polluted with repeated "-I."
71399ca880aSopenharmony_ci  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
71499ca880aSopenharmony_ci  # test to see if srcdir already configured
71599ca880aSopenharmony_ci  if test -f $srcdir/config.status; then
71699ca880aSopenharmony_ci    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
71799ca880aSopenharmony_ci  fi
71899ca880aSopenharmony_cifi
71999ca880aSopenharmony_ci
72099ca880aSopenharmony_ci# test whether we have cygpath
72199ca880aSopenharmony_ciif test -z "$CYGPATH_W"; then
72299ca880aSopenharmony_ci  if (cygpath --version) >/dev/null 2>/dev/null; then
72399ca880aSopenharmony_ci    CYGPATH_W='cygpath -w'
72499ca880aSopenharmony_ci  else
72599ca880aSopenharmony_ci    CYGPATH_W=echo
72699ca880aSopenharmony_ci  fi
72799ca880aSopenharmony_cifi
72899ca880aSopenharmony_ciAC_SUBST([CYGPATH_W])
72999ca880aSopenharmony_ci
73099ca880aSopenharmony_ci# Define the identity of the package.
73199ca880aSopenharmony_cidnl Distinguish between old-style and new-style calls.
73299ca880aSopenharmony_cim4_ifval([$2],
73399ca880aSopenharmony_ci[AC_DIAGNOSE([obsolete],
73499ca880aSopenharmony_ci             [$0: two- and three-arguments forms are deprecated.])
73599ca880aSopenharmony_cim4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
73699ca880aSopenharmony_ci AC_SUBST([PACKAGE], [$1])dnl
73799ca880aSopenharmony_ci AC_SUBST([VERSION], [$2])],
73899ca880aSopenharmony_ci[_AM_SET_OPTIONS([$1])dnl
73999ca880aSopenharmony_cidnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
74099ca880aSopenharmony_cim4_if(
74199ca880aSopenharmony_ci  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
74299ca880aSopenharmony_ci  [ok:ok],,
74399ca880aSopenharmony_ci  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
74499ca880aSopenharmony_ci AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
74599ca880aSopenharmony_ci AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
74699ca880aSopenharmony_ci
74799ca880aSopenharmony_ci_AM_IF_OPTION([no-define],,
74899ca880aSopenharmony_ci[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
74999ca880aSopenharmony_ci AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
75099ca880aSopenharmony_ci
75199ca880aSopenharmony_ci# Some tools Automake needs.
75299ca880aSopenharmony_ciAC_REQUIRE([AM_SANITY_CHECK])dnl
75399ca880aSopenharmony_ciAC_REQUIRE([AC_ARG_PROGRAM])dnl
75499ca880aSopenharmony_ciAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
75599ca880aSopenharmony_ciAM_MISSING_PROG([AUTOCONF], [autoconf])
75699ca880aSopenharmony_ciAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
75799ca880aSopenharmony_ciAM_MISSING_PROG([AUTOHEADER], [autoheader])
75899ca880aSopenharmony_ciAM_MISSING_PROG([MAKEINFO], [makeinfo])
75999ca880aSopenharmony_ciAC_REQUIRE([AM_PROG_INSTALL_SH])dnl
76099ca880aSopenharmony_ciAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
76199ca880aSopenharmony_ciAC_REQUIRE([AC_PROG_MKDIR_P])dnl
76299ca880aSopenharmony_ci# For better backward compatibility.  To be removed once Automake 1.9.x
76399ca880aSopenharmony_ci# dies out for good.  For more background, see:
76499ca880aSopenharmony_ci# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
76599ca880aSopenharmony_ci# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
76699ca880aSopenharmony_ciAC_SUBST([mkdir_p], ['$(MKDIR_P)'])
76799ca880aSopenharmony_ci# We need awk for the "check" target (and possibly the TAP driver).  The
76899ca880aSopenharmony_ci# system "awk" is bad on some platforms.
76999ca880aSopenharmony_ciAC_REQUIRE([AC_PROG_AWK])dnl
77099ca880aSopenharmony_ciAC_REQUIRE([AC_PROG_MAKE_SET])dnl
77199ca880aSopenharmony_ciAC_REQUIRE([AM_SET_LEADING_DOT])dnl
77299ca880aSopenharmony_ci_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
77399ca880aSopenharmony_ci	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
77499ca880aSopenharmony_ci			     [_AM_PROG_TAR([v7])])])
77599ca880aSopenharmony_ci_AM_IF_OPTION([no-dependencies],,
77699ca880aSopenharmony_ci[AC_PROVIDE_IFELSE([AC_PROG_CC],
77799ca880aSopenharmony_ci		  [_AM_DEPENDENCIES([CC])],
77899ca880aSopenharmony_ci		  [m4_define([AC_PROG_CC],
77999ca880aSopenharmony_ci			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
78099ca880aSopenharmony_ciAC_PROVIDE_IFELSE([AC_PROG_CXX],
78199ca880aSopenharmony_ci		  [_AM_DEPENDENCIES([CXX])],
78299ca880aSopenharmony_ci		  [m4_define([AC_PROG_CXX],
78399ca880aSopenharmony_ci			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
78499ca880aSopenharmony_ciAC_PROVIDE_IFELSE([AC_PROG_OBJC],
78599ca880aSopenharmony_ci		  [_AM_DEPENDENCIES([OBJC])],
78699ca880aSopenharmony_ci		  [m4_define([AC_PROG_OBJC],
78799ca880aSopenharmony_ci			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
78899ca880aSopenharmony_ciAC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
78999ca880aSopenharmony_ci		  [_AM_DEPENDENCIES([OBJCXX])],
79099ca880aSopenharmony_ci		  [m4_define([AC_PROG_OBJCXX],
79199ca880aSopenharmony_ci			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
79299ca880aSopenharmony_ci])
79399ca880aSopenharmony_ciAC_REQUIRE([AM_SILENT_RULES])dnl
79499ca880aSopenharmony_cidnl The testsuite driver may need to know about EXEEXT, so add the
79599ca880aSopenharmony_cidnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
79699ca880aSopenharmony_cidnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
79799ca880aSopenharmony_ciAC_CONFIG_COMMANDS_PRE(dnl
79899ca880aSopenharmony_ci[m4_provide_if([_AM_COMPILER_EXEEXT],
79999ca880aSopenharmony_ci  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
80099ca880aSopenharmony_ci
80199ca880aSopenharmony_ci# POSIX will say in a future version that running "rm -f" with no argument
80299ca880aSopenharmony_ci# is OK; and we want to be able to make that assumption in our Makefile
80399ca880aSopenharmony_ci# recipes.  So use an aggressive probe to check that the usage we want is
80499ca880aSopenharmony_ci# actually supported "in the wild" to an acceptable degree.
80599ca880aSopenharmony_ci# See automake bug#10828.
80699ca880aSopenharmony_ci# To make any issue more visible, cause the running configure to be aborted
80799ca880aSopenharmony_ci# by default if the 'rm' program in use doesn't match our expectations; the
80899ca880aSopenharmony_ci# user can still override this though.
80999ca880aSopenharmony_ciif rm -f && rm -fr && rm -rf; then : OK; else
81099ca880aSopenharmony_ci  cat >&2 <<'END'
81199ca880aSopenharmony_ciOops!
81299ca880aSopenharmony_ci
81399ca880aSopenharmony_ciYour 'rm' program seems unable to run without file operands specified
81499ca880aSopenharmony_cion the command line, even when the '-f' option is present.  This is contrary
81599ca880aSopenharmony_cito the behaviour of most rm programs out there, and not conforming with
81699ca880aSopenharmony_cithe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
81799ca880aSopenharmony_ci
81899ca880aSopenharmony_ciPlease tell bug-automake@gnu.org about your system, including the value
81999ca880aSopenharmony_ciof your $PATH and any error possibly output before this message.  This
82099ca880aSopenharmony_cican help us improve future automake versions.
82199ca880aSopenharmony_ci
82299ca880aSopenharmony_ciEND
82399ca880aSopenharmony_ci  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
82499ca880aSopenharmony_ci    echo 'Configuration will proceed anyway, since you have set the' >&2
82599ca880aSopenharmony_ci    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
82699ca880aSopenharmony_ci    echo >&2
82799ca880aSopenharmony_ci  else
82899ca880aSopenharmony_ci    cat >&2 <<'END'
82999ca880aSopenharmony_ciAborting the configuration process, to ensure you take notice of the issue.
83099ca880aSopenharmony_ci
83199ca880aSopenharmony_ciYou can download and install GNU coreutils to get an 'rm' implementation
83299ca880aSopenharmony_cithat behaves properly: <https://www.gnu.org/software/coreutils/>.
83399ca880aSopenharmony_ci
83499ca880aSopenharmony_ciIf you want to complete the configuration process using your problematic
83599ca880aSopenharmony_ci'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
83699ca880aSopenharmony_cito "yes", and re-run configure.
83799ca880aSopenharmony_ci
83899ca880aSopenharmony_ciEND
83999ca880aSopenharmony_ci    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
84099ca880aSopenharmony_ci  fi
84199ca880aSopenharmony_cifi
84299ca880aSopenharmony_cidnl The trailing newline in this macro's definition is deliberate, for
84399ca880aSopenharmony_cidnl backward compatibility and to allow trailing 'dnl'-style comments
84499ca880aSopenharmony_cidnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
84599ca880aSopenharmony_ci])
84699ca880aSopenharmony_ci
84799ca880aSopenharmony_cidnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
84899ca880aSopenharmony_cidnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
84999ca880aSopenharmony_cidnl mangled by Autoconf and run in a shell conditional statement.
85099ca880aSopenharmony_cim4_define([_AC_COMPILER_EXEEXT],
85199ca880aSopenharmony_cim4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
85299ca880aSopenharmony_ci
85399ca880aSopenharmony_ci# When config.status generates a header, we must update the stamp-h file.
85499ca880aSopenharmony_ci# This file resides in the same directory as the config header
85599ca880aSopenharmony_ci# that is generated.  The stamp files are numbered to have different names.
85699ca880aSopenharmony_ci
85799ca880aSopenharmony_ci# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
85899ca880aSopenharmony_ci# loop where config.status creates the headers, so we can generate
85999ca880aSopenharmony_ci# our stamp files there.
86099ca880aSopenharmony_ciAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
86199ca880aSopenharmony_ci[# Compute $1's index in $config_headers.
86299ca880aSopenharmony_ci_am_arg=$1
86399ca880aSopenharmony_ci_am_stamp_count=1
86499ca880aSopenharmony_cifor _am_header in $config_headers :; do
86599ca880aSopenharmony_ci  case $_am_header in
86699ca880aSopenharmony_ci    $_am_arg | $_am_arg:* )
86799ca880aSopenharmony_ci      break ;;
86899ca880aSopenharmony_ci    * )
86999ca880aSopenharmony_ci      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
87099ca880aSopenharmony_ci  esac
87199ca880aSopenharmony_cidone
87299ca880aSopenharmony_ciecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
87399ca880aSopenharmony_ci
87499ca880aSopenharmony_ci# Copyright (C) 2001-2018 Free Software Foundation, Inc.
87599ca880aSopenharmony_ci#
87699ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
87799ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
87899ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
87999ca880aSopenharmony_ci
88099ca880aSopenharmony_ci# AM_PROG_INSTALL_SH
88199ca880aSopenharmony_ci# ------------------
88299ca880aSopenharmony_ci# Define $install_sh.
88399ca880aSopenharmony_ciAC_DEFUN([AM_PROG_INSTALL_SH],
88499ca880aSopenharmony_ci[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
88599ca880aSopenharmony_ciif test x"${install_sh+set}" != xset; then
88699ca880aSopenharmony_ci  case $am_aux_dir in
88799ca880aSopenharmony_ci  *\ * | *\	*)
88899ca880aSopenharmony_ci    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
88999ca880aSopenharmony_ci  *)
89099ca880aSopenharmony_ci    install_sh="\${SHELL} $am_aux_dir/install-sh"
89199ca880aSopenharmony_ci  esac
89299ca880aSopenharmony_cifi
89399ca880aSopenharmony_ciAC_SUBST([install_sh])])
89499ca880aSopenharmony_ci
89599ca880aSopenharmony_ci# Copyright (C) 2003-2018 Free Software Foundation, Inc.
89699ca880aSopenharmony_ci#
89799ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
89899ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
89999ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
90099ca880aSopenharmony_ci
90199ca880aSopenharmony_ci# Check whether the underlying file-system supports filenames
90299ca880aSopenharmony_ci# with a leading dot.  For instance MS-DOS doesn't.
90399ca880aSopenharmony_ciAC_DEFUN([AM_SET_LEADING_DOT],
90499ca880aSopenharmony_ci[rm -rf .tst 2>/dev/null
90599ca880aSopenharmony_cimkdir .tst 2>/dev/null
90699ca880aSopenharmony_ciif test -d .tst; then
90799ca880aSopenharmony_ci  am__leading_dot=.
90899ca880aSopenharmony_cielse
90999ca880aSopenharmony_ci  am__leading_dot=_
91099ca880aSopenharmony_cifi
91199ca880aSopenharmony_cirmdir .tst 2>/dev/null
91299ca880aSopenharmony_ciAC_SUBST([am__leading_dot])])
91399ca880aSopenharmony_ci
91499ca880aSopenharmony_ci# Check to see how 'make' treats includes.	            -*- Autoconf -*-
91599ca880aSopenharmony_ci
91699ca880aSopenharmony_ci# Copyright (C) 2001-2018 Free Software Foundation, Inc.
91799ca880aSopenharmony_ci#
91899ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
91999ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
92099ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
92199ca880aSopenharmony_ci
92299ca880aSopenharmony_ci# AM_MAKE_INCLUDE()
92399ca880aSopenharmony_ci# -----------------
92499ca880aSopenharmony_ci# Check whether make has an 'include' directive that can support all
92599ca880aSopenharmony_ci# the idioms we need for our automatic dependency tracking code.
92699ca880aSopenharmony_ciAC_DEFUN([AM_MAKE_INCLUDE],
92799ca880aSopenharmony_ci[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
92899ca880aSopenharmony_cicat > confinc.mk << 'END'
92999ca880aSopenharmony_ciam__doit:
93099ca880aSopenharmony_ci	@echo this is the am__doit target >confinc.out
93199ca880aSopenharmony_ci.PHONY: am__doit
93299ca880aSopenharmony_ciEND
93399ca880aSopenharmony_ciam__include="#"
93499ca880aSopenharmony_ciam__quote=
93599ca880aSopenharmony_ci# BSD make does it like this.
93699ca880aSopenharmony_ciecho '.include "confinc.mk" # ignored' > confmf.BSD
93799ca880aSopenharmony_ci# Other make implementations (GNU, Solaris 10, AIX) do it like this.
93899ca880aSopenharmony_ciecho 'include confinc.mk # ignored' > confmf.GNU
93999ca880aSopenharmony_ci_am_result=no
94099ca880aSopenharmony_cifor s in GNU BSD; do
94199ca880aSopenharmony_ci  AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
94299ca880aSopenharmony_ci  AS_CASE([$?:`cat confinc.out 2>/dev/null`],
94399ca880aSopenharmony_ci      ['0:this is the am__doit target'],
94499ca880aSopenharmony_ci      [AS_CASE([$s],
94599ca880aSopenharmony_ci          [BSD], [am__include='.include' am__quote='"'],
94699ca880aSopenharmony_ci          [am__include='include' am__quote=''])])
94799ca880aSopenharmony_ci  if test "$am__include" != "#"; then
94899ca880aSopenharmony_ci    _am_result="yes ($s style)"
94999ca880aSopenharmony_ci    break
95099ca880aSopenharmony_ci  fi
95199ca880aSopenharmony_cidone
95299ca880aSopenharmony_cirm -f confinc.* confmf.*
95399ca880aSopenharmony_ciAC_MSG_RESULT([${_am_result}])
95499ca880aSopenharmony_ciAC_SUBST([am__include])])
95599ca880aSopenharmony_ciAC_SUBST([am__quote])])
95699ca880aSopenharmony_ci
95799ca880aSopenharmony_ci# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
95899ca880aSopenharmony_ci
95999ca880aSopenharmony_ci# Copyright (C) 1997-2018 Free Software Foundation, Inc.
96099ca880aSopenharmony_ci#
96199ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
96299ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
96399ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
96499ca880aSopenharmony_ci
96599ca880aSopenharmony_ci# AM_MISSING_PROG(NAME, PROGRAM)
96699ca880aSopenharmony_ci# ------------------------------
96799ca880aSopenharmony_ciAC_DEFUN([AM_MISSING_PROG],
96899ca880aSopenharmony_ci[AC_REQUIRE([AM_MISSING_HAS_RUN])
96999ca880aSopenharmony_ci$1=${$1-"${am_missing_run}$2"}
97099ca880aSopenharmony_ciAC_SUBST($1)])
97199ca880aSopenharmony_ci
97299ca880aSopenharmony_ci# AM_MISSING_HAS_RUN
97399ca880aSopenharmony_ci# ------------------
97499ca880aSopenharmony_ci# Define MISSING if not defined so far and test if it is modern enough.
97599ca880aSopenharmony_ci# If it is, set am_missing_run to use it, otherwise, to nothing.
97699ca880aSopenharmony_ciAC_DEFUN([AM_MISSING_HAS_RUN],
97799ca880aSopenharmony_ci[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
97899ca880aSopenharmony_ciAC_REQUIRE_AUX_FILE([missing])dnl
97999ca880aSopenharmony_ciif test x"${MISSING+set}" != xset; then
98099ca880aSopenharmony_ci  case $am_aux_dir in
98199ca880aSopenharmony_ci  *\ * | *\	*)
98299ca880aSopenharmony_ci    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
98399ca880aSopenharmony_ci  *)
98499ca880aSopenharmony_ci    MISSING="\${SHELL} $am_aux_dir/missing" ;;
98599ca880aSopenharmony_ci  esac
98699ca880aSopenharmony_cifi
98799ca880aSopenharmony_ci# Use eval to expand $SHELL
98899ca880aSopenharmony_ciif eval "$MISSING --is-lightweight"; then
98999ca880aSopenharmony_ci  am_missing_run="$MISSING "
99099ca880aSopenharmony_cielse
99199ca880aSopenharmony_ci  am_missing_run=
99299ca880aSopenharmony_ci  AC_MSG_WARN(['missing' script is too old or missing])
99399ca880aSopenharmony_cifi
99499ca880aSopenharmony_ci])
99599ca880aSopenharmony_ci
99699ca880aSopenharmony_ci# Helper functions for option handling.                     -*- Autoconf -*-
99799ca880aSopenharmony_ci
99899ca880aSopenharmony_ci# Copyright (C) 2001-2018 Free Software Foundation, Inc.
99999ca880aSopenharmony_ci#
100099ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
100199ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
100299ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
100399ca880aSopenharmony_ci
100499ca880aSopenharmony_ci# _AM_MANGLE_OPTION(NAME)
100599ca880aSopenharmony_ci# -----------------------
100699ca880aSopenharmony_ciAC_DEFUN([_AM_MANGLE_OPTION],
100799ca880aSopenharmony_ci[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
100899ca880aSopenharmony_ci
100999ca880aSopenharmony_ci# _AM_SET_OPTION(NAME)
101099ca880aSopenharmony_ci# --------------------
101199ca880aSopenharmony_ci# Set option NAME.  Presently that only means defining a flag for this option.
101299ca880aSopenharmony_ciAC_DEFUN([_AM_SET_OPTION],
101399ca880aSopenharmony_ci[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
101499ca880aSopenharmony_ci
101599ca880aSopenharmony_ci# _AM_SET_OPTIONS(OPTIONS)
101699ca880aSopenharmony_ci# ------------------------
101799ca880aSopenharmony_ci# OPTIONS is a space-separated list of Automake options.
101899ca880aSopenharmony_ciAC_DEFUN([_AM_SET_OPTIONS],
101999ca880aSopenharmony_ci[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
102099ca880aSopenharmony_ci
102199ca880aSopenharmony_ci# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
102299ca880aSopenharmony_ci# -------------------------------------------
102399ca880aSopenharmony_ci# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
102499ca880aSopenharmony_ciAC_DEFUN([_AM_IF_OPTION],
102599ca880aSopenharmony_ci[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
102699ca880aSopenharmony_ci
102799ca880aSopenharmony_ci# Copyright (C) 1999-2018 Free Software Foundation, Inc.
102899ca880aSopenharmony_ci#
102999ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
103099ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
103199ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
103299ca880aSopenharmony_ci
103399ca880aSopenharmony_ci# _AM_PROG_CC_C_O
103499ca880aSopenharmony_ci# ---------------
103599ca880aSopenharmony_ci# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
103699ca880aSopenharmony_ci# to automatically call this.
103799ca880aSopenharmony_ciAC_DEFUN([_AM_PROG_CC_C_O],
103899ca880aSopenharmony_ci[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
103999ca880aSopenharmony_ciAC_REQUIRE_AUX_FILE([compile])dnl
104099ca880aSopenharmony_ciAC_LANG_PUSH([C])dnl
104199ca880aSopenharmony_ciAC_CACHE_CHECK(
104299ca880aSopenharmony_ci  [whether $CC understands -c and -o together],
104399ca880aSopenharmony_ci  [am_cv_prog_cc_c_o],
104499ca880aSopenharmony_ci  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
104599ca880aSopenharmony_ci  # Make sure it works both with $CC and with simple cc.
104699ca880aSopenharmony_ci  # Following AC_PROG_CC_C_O, we do the test twice because some
104799ca880aSopenharmony_ci  # compilers refuse to overwrite an existing .o file with -o,
104899ca880aSopenharmony_ci  # though they will create one.
104999ca880aSopenharmony_ci  am_cv_prog_cc_c_o=yes
105099ca880aSopenharmony_ci  for am_i in 1 2; do
105199ca880aSopenharmony_ci    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
105299ca880aSopenharmony_ci         && test -f conftest2.$ac_objext; then
105399ca880aSopenharmony_ci      : OK
105499ca880aSopenharmony_ci    else
105599ca880aSopenharmony_ci      am_cv_prog_cc_c_o=no
105699ca880aSopenharmony_ci      break
105799ca880aSopenharmony_ci    fi
105899ca880aSopenharmony_ci  done
105999ca880aSopenharmony_ci  rm -f core conftest*
106099ca880aSopenharmony_ci  unset am_i])
106199ca880aSopenharmony_ciif test "$am_cv_prog_cc_c_o" != yes; then
106299ca880aSopenharmony_ci   # Losing compiler, so override with the script.
106399ca880aSopenharmony_ci   # FIXME: It is wrong to rewrite CC.
106499ca880aSopenharmony_ci   # But if we don't then we get into trouble of one sort or another.
106599ca880aSopenharmony_ci   # A longer-term fix would be to have automake use am__CC in this case,
106699ca880aSopenharmony_ci   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
106799ca880aSopenharmony_ci   CC="$am_aux_dir/compile $CC"
106899ca880aSopenharmony_cifi
106999ca880aSopenharmony_ciAC_LANG_POP([C])])
107099ca880aSopenharmony_ci
107199ca880aSopenharmony_ci# For backward compatibility.
107299ca880aSopenharmony_ciAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
107399ca880aSopenharmony_ci
107499ca880aSopenharmony_ci# Copyright (C) 2001-2018 Free Software Foundation, Inc.
107599ca880aSopenharmony_ci#
107699ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
107799ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
107899ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
107999ca880aSopenharmony_ci
108099ca880aSopenharmony_ci# AM_RUN_LOG(COMMAND)
108199ca880aSopenharmony_ci# -------------------
108299ca880aSopenharmony_ci# Run COMMAND, save the exit status in ac_status, and log it.
108399ca880aSopenharmony_ci# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
108499ca880aSopenharmony_ciAC_DEFUN([AM_RUN_LOG],
108599ca880aSopenharmony_ci[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
108699ca880aSopenharmony_ci   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
108799ca880aSopenharmony_ci   ac_status=$?
108899ca880aSopenharmony_ci   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
108999ca880aSopenharmony_ci   (exit $ac_status); }])
109099ca880aSopenharmony_ci
109199ca880aSopenharmony_ci# Check to make sure that the build environment is sane.    -*- Autoconf -*-
109299ca880aSopenharmony_ci
109399ca880aSopenharmony_ci# Copyright (C) 1996-2018 Free Software Foundation, Inc.
109499ca880aSopenharmony_ci#
109599ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
109699ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
109799ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
109899ca880aSopenharmony_ci
109999ca880aSopenharmony_ci# AM_SANITY_CHECK
110099ca880aSopenharmony_ci# ---------------
110199ca880aSopenharmony_ciAC_DEFUN([AM_SANITY_CHECK],
110299ca880aSopenharmony_ci[AC_MSG_CHECKING([whether build environment is sane])
110399ca880aSopenharmony_ci# Reject unsafe characters in $srcdir or the absolute working directory
110499ca880aSopenharmony_ci# name.  Accept space and tab only in the latter.
110599ca880aSopenharmony_ciam_lf='
110699ca880aSopenharmony_ci'
110799ca880aSopenharmony_cicase `pwd` in
110899ca880aSopenharmony_ci  *[[\\\"\#\$\&\'\`$am_lf]]*)
110999ca880aSopenharmony_ci    AC_MSG_ERROR([unsafe absolute working directory name]);;
111099ca880aSopenharmony_ciesac
111199ca880aSopenharmony_cicase $srcdir in
111299ca880aSopenharmony_ci  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
111399ca880aSopenharmony_ci    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
111499ca880aSopenharmony_ciesac
111599ca880aSopenharmony_ci
111699ca880aSopenharmony_ci# Do 'set' in a subshell so we don't clobber the current shell's
111799ca880aSopenharmony_ci# arguments.  Must try -L first in case configure is actually a
111899ca880aSopenharmony_ci# symlink; some systems play weird games with the mod time of symlinks
111999ca880aSopenharmony_ci# (eg FreeBSD returns the mod time of the symlink's containing
112099ca880aSopenharmony_ci# directory).
112199ca880aSopenharmony_ciif (
112299ca880aSopenharmony_ci   am_has_slept=no
112399ca880aSopenharmony_ci   for am_try in 1 2; do
112499ca880aSopenharmony_ci     echo "timestamp, slept: $am_has_slept" > conftest.file
112599ca880aSopenharmony_ci     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
112699ca880aSopenharmony_ci     if test "$[*]" = "X"; then
112799ca880aSopenharmony_ci	# -L didn't work.
112899ca880aSopenharmony_ci	set X `ls -t "$srcdir/configure" conftest.file`
112999ca880aSopenharmony_ci     fi
113099ca880aSopenharmony_ci     if test "$[*]" != "X $srcdir/configure conftest.file" \
113199ca880aSopenharmony_ci	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
113299ca880aSopenharmony_ci
113399ca880aSopenharmony_ci	# If neither matched, then we have a broken ls.  This can happen
113499ca880aSopenharmony_ci	# if, for instance, CONFIG_SHELL is bash and it inherits a
113599ca880aSopenharmony_ci	# broken ls alias from the environment.  This has actually
113699ca880aSopenharmony_ci	# happened.  Such a system could not be considered "sane".
113799ca880aSopenharmony_ci	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
113899ca880aSopenharmony_ci  alias in your environment])
113999ca880aSopenharmony_ci     fi
114099ca880aSopenharmony_ci     if test "$[2]" = conftest.file || test $am_try -eq 2; then
114199ca880aSopenharmony_ci       break
114299ca880aSopenharmony_ci     fi
114399ca880aSopenharmony_ci     # Just in case.
114499ca880aSopenharmony_ci     sleep 1
114599ca880aSopenharmony_ci     am_has_slept=yes
114699ca880aSopenharmony_ci   done
114799ca880aSopenharmony_ci   test "$[2]" = conftest.file
114899ca880aSopenharmony_ci   )
114999ca880aSopenharmony_cithen
115099ca880aSopenharmony_ci   # Ok.
115199ca880aSopenharmony_ci   :
115299ca880aSopenharmony_cielse
115399ca880aSopenharmony_ci   AC_MSG_ERROR([newly created file is older than distributed files!
115499ca880aSopenharmony_ciCheck your system clock])
115599ca880aSopenharmony_cifi
115699ca880aSopenharmony_ciAC_MSG_RESULT([yes])
115799ca880aSopenharmony_ci# If we didn't sleep, we still need to ensure time stamps of config.status and
115899ca880aSopenharmony_ci# generated files are strictly newer.
115999ca880aSopenharmony_ciam_sleep_pid=
116099ca880aSopenharmony_ciif grep 'slept: no' conftest.file >/dev/null 2>&1; then
116199ca880aSopenharmony_ci  ( sleep 1 ) &
116299ca880aSopenharmony_ci  am_sleep_pid=$!
116399ca880aSopenharmony_cifi
116499ca880aSopenharmony_ciAC_CONFIG_COMMANDS_PRE(
116599ca880aSopenharmony_ci  [AC_MSG_CHECKING([that generated files are newer than configure])
116699ca880aSopenharmony_ci   if test -n "$am_sleep_pid"; then
116799ca880aSopenharmony_ci     # Hide warnings about reused PIDs.
116899ca880aSopenharmony_ci     wait $am_sleep_pid 2>/dev/null
116999ca880aSopenharmony_ci   fi
117099ca880aSopenharmony_ci   AC_MSG_RESULT([done])])
117199ca880aSopenharmony_cirm -f conftest.file
117299ca880aSopenharmony_ci])
117399ca880aSopenharmony_ci
117499ca880aSopenharmony_ci# Copyright (C) 2009-2018 Free Software Foundation, Inc.
117599ca880aSopenharmony_ci#
117699ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
117799ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
117899ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
117999ca880aSopenharmony_ci
118099ca880aSopenharmony_ci# AM_SILENT_RULES([DEFAULT])
118199ca880aSopenharmony_ci# --------------------------
118299ca880aSopenharmony_ci# Enable less verbose build rules; with the default set to DEFAULT
118399ca880aSopenharmony_ci# ("yes" being less verbose, "no" or empty being verbose).
118499ca880aSopenharmony_ciAC_DEFUN([AM_SILENT_RULES],
118599ca880aSopenharmony_ci[AC_ARG_ENABLE([silent-rules], [dnl
118699ca880aSopenharmony_ciAS_HELP_STRING(
118799ca880aSopenharmony_ci  [--enable-silent-rules],
118899ca880aSopenharmony_ci  [less verbose build output (undo: "make V=1")])
118999ca880aSopenharmony_ciAS_HELP_STRING(
119099ca880aSopenharmony_ci  [--disable-silent-rules],
119199ca880aSopenharmony_ci  [verbose build output (undo: "make V=0")])dnl
119299ca880aSopenharmony_ci])
119399ca880aSopenharmony_cicase $enable_silent_rules in @%:@ (((
119499ca880aSopenharmony_ci  yes) AM_DEFAULT_VERBOSITY=0;;
119599ca880aSopenharmony_ci   no) AM_DEFAULT_VERBOSITY=1;;
119699ca880aSopenharmony_ci    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
119799ca880aSopenharmony_ciesac
119899ca880aSopenharmony_cidnl
119999ca880aSopenharmony_cidnl A few 'make' implementations (e.g., NonStop OS and NextStep)
120099ca880aSopenharmony_cidnl do not support nested variable expansions.
120199ca880aSopenharmony_cidnl See automake bug#9928 and bug#10237.
120299ca880aSopenharmony_ciam_make=${MAKE-make}
120399ca880aSopenharmony_ciAC_CACHE_CHECK([whether $am_make supports nested variables],
120499ca880aSopenharmony_ci   [am_cv_make_support_nested_variables],
120599ca880aSopenharmony_ci   [if AS_ECHO([['TRUE=$(BAR$(V))
120699ca880aSopenharmony_ciBAR0=false
120799ca880aSopenharmony_ciBAR1=true
120899ca880aSopenharmony_ciV=1
120999ca880aSopenharmony_ciam__doit:
121099ca880aSopenharmony_ci	@$(TRUE)
121199ca880aSopenharmony_ci.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
121299ca880aSopenharmony_ci  am_cv_make_support_nested_variables=yes
121399ca880aSopenharmony_cielse
121499ca880aSopenharmony_ci  am_cv_make_support_nested_variables=no
121599ca880aSopenharmony_cifi])
121699ca880aSopenharmony_ciif test $am_cv_make_support_nested_variables = yes; then
121799ca880aSopenharmony_ci  dnl Using '$V' instead of '$(V)' breaks IRIX make.
121899ca880aSopenharmony_ci  AM_V='$(V)'
121999ca880aSopenharmony_ci  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
122099ca880aSopenharmony_cielse
122199ca880aSopenharmony_ci  AM_V=$AM_DEFAULT_VERBOSITY
122299ca880aSopenharmony_ci  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
122399ca880aSopenharmony_cifi
122499ca880aSopenharmony_ciAC_SUBST([AM_V])dnl
122599ca880aSopenharmony_ciAM_SUBST_NOTMAKE([AM_V])dnl
122699ca880aSopenharmony_ciAC_SUBST([AM_DEFAULT_V])dnl
122799ca880aSopenharmony_ciAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
122899ca880aSopenharmony_ciAC_SUBST([AM_DEFAULT_VERBOSITY])dnl
122999ca880aSopenharmony_ciAM_BACKSLASH='\'
123099ca880aSopenharmony_ciAC_SUBST([AM_BACKSLASH])dnl
123199ca880aSopenharmony_ci_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
123299ca880aSopenharmony_ci])
123399ca880aSopenharmony_ci
123499ca880aSopenharmony_ci# Copyright (C) 2001-2018 Free Software Foundation, Inc.
123599ca880aSopenharmony_ci#
123699ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
123799ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
123899ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
123999ca880aSopenharmony_ci
124099ca880aSopenharmony_ci# AM_PROG_INSTALL_STRIP
124199ca880aSopenharmony_ci# ---------------------
124299ca880aSopenharmony_ci# One issue with vendor 'install' (even GNU) is that you can't
124399ca880aSopenharmony_ci# specify the program used to strip binaries.  This is especially
124499ca880aSopenharmony_ci# annoying in cross-compiling environments, where the build's strip
124599ca880aSopenharmony_ci# is unlikely to handle the host's binaries.
124699ca880aSopenharmony_ci# Fortunately install-sh will honor a STRIPPROG variable, so we
124799ca880aSopenharmony_ci# always use install-sh in "make install-strip", and initialize
124899ca880aSopenharmony_ci# STRIPPROG with the value of the STRIP variable (set by the user).
124999ca880aSopenharmony_ciAC_DEFUN([AM_PROG_INSTALL_STRIP],
125099ca880aSopenharmony_ci[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
125199ca880aSopenharmony_ci# Installed binaries are usually stripped using 'strip' when the user
125299ca880aSopenharmony_ci# run "make install-strip".  However 'strip' might not be the right
125399ca880aSopenharmony_ci# tool to use in cross-compilation environments, therefore Automake
125499ca880aSopenharmony_ci# will honor the 'STRIP' environment variable to overrule this program.
125599ca880aSopenharmony_cidnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
125699ca880aSopenharmony_ciif test "$cross_compiling" != no; then
125799ca880aSopenharmony_ci  AC_CHECK_TOOL([STRIP], [strip], :)
125899ca880aSopenharmony_cifi
125999ca880aSopenharmony_ciINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
126099ca880aSopenharmony_ciAC_SUBST([INSTALL_STRIP_PROGRAM])])
126199ca880aSopenharmony_ci
126299ca880aSopenharmony_ci# Copyright (C) 2006-2018 Free Software Foundation, Inc.
126399ca880aSopenharmony_ci#
126499ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
126599ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
126699ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
126799ca880aSopenharmony_ci
126899ca880aSopenharmony_ci# _AM_SUBST_NOTMAKE(VARIABLE)
126999ca880aSopenharmony_ci# ---------------------------
127099ca880aSopenharmony_ci# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
127199ca880aSopenharmony_ci# This macro is traced by Automake.
127299ca880aSopenharmony_ciAC_DEFUN([_AM_SUBST_NOTMAKE])
127399ca880aSopenharmony_ci
127499ca880aSopenharmony_ci# AM_SUBST_NOTMAKE(VARIABLE)
127599ca880aSopenharmony_ci# --------------------------
127699ca880aSopenharmony_ci# Public sister of _AM_SUBST_NOTMAKE.
127799ca880aSopenharmony_ciAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
127899ca880aSopenharmony_ci
127999ca880aSopenharmony_ci# Check how to create a tarball.                            -*- Autoconf -*-
128099ca880aSopenharmony_ci
128199ca880aSopenharmony_ci# Copyright (C) 2004-2018 Free Software Foundation, Inc.
128299ca880aSopenharmony_ci#
128399ca880aSopenharmony_ci# This file is free software; the Free Software Foundation
128499ca880aSopenharmony_ci# gives unlimited permission to copy and/or distribute it,
128599ca880aSopenharmony_ci# with or without modifications, as long as this notice is preserved.
128699ca880aSopenharmony_ci
128799ca880aSopenharmony_ci# _AM_PROG_TAR(FORMAT)
128899ca880aSopenharmony_ci# --------------------
128999ca880aSopenharmony_ci# Check how to create a tarball in format FORMAT.
129099ca880aSopenharmony_ci# FORMAT should be one of 'v7', 'ustar', or 'pax'.
129199ca880aSopenharmony_ci#
129299ca880aSopenharmony_ci# Substitute a variable $(am__tar) that is a command
129399ca880aSopenharmony_ci# writing to stdout a FORMAT-tarball containing the directory
129499ca880aSopenharmony_ci# $tardir.
129599ca880aSopenharmony_ci#     tardir=directory && $(am__tar) > result.tar
129699ca880aSopenharmony_ci#
129799ca880aSopenharmony_ci# Substitute a variable $(am__untar) that extract such
129899ca880aSopenharmony_ci# a tarball read from stdin.
129999ca880aSopenharmony_ci#     $(am__untar) < result.tar
130099ca880aSopenharmony_ci#
130199ca880aSopenharmony_ciAC_DEFUN([_AM_PROG_TAR],
130299ca880aSopenharmony_ci[# Always define AMTAR for backward compatibility.  Yes, it's still used
130399ca880aSopenharmony_ci# in the wild :-(  We should find a proper way to deprecate it ...
130499ca880aSopenharmony_ciAC_SUBST([AMTAR], ['$${TAR-tar}'])
130599ca880aSopenharmony_ci
130699ca880aSopenharmony_ci# We'll loop over all known methods to create a tar archive until one works.
130799ca880aSopenharmony_ci_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
130899ca880aSopenharmony_ci
130999ca880aSopenharmony_cim4_if([$1], [v7],
131099ca880aSopenharmony_ci  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
131199ca880aSopenharmony_ci
131299ca880aSopenharmony_ci  [m4_case([$1],
131399ca880aSopenharmony_ci    [ustar],
131499ca880aSopenharmony_ci     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
131599ca880aSopenharmony_ci      # There is notably a 21 bits limit for the UID and the GID.  In fact,
131699ca880aSopenharmony_ci      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
131799ca880aSopenharmony_ci      # and bug#13588).
131899ca880aSopenharmony_ci      am_max_uid=2097151 # 2^21 - 1
131999ca880aSopenharmony_ci      am_max_gid=$am_max_uid
132099ca880aSopenharmony_ci      # The $UID and $GID variables are not portable, so we need to resort
132199ca880aSopenharmony_ci      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
132299ca880aSopenharmony_ci      # below are definitely unexpected, so allow the users to see them
132399ca880aSopenharmony_ci      # (that is, avoid stderr redirection).
132499ca880aSopenharmony_ci      am_uid=`id -u || echo unknown`
132599ca880aSopenharmony_ci      am_gid=`id -g || echo unknown`
132699ca880aSopenharmony_ci      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
132799ca880aSopenharmony_ci      if test $am_uid -le $am_max_uid; then
132899ca880aSopenharmony_ci         AC_MSG_RESULT([yes])
132999ca880aSopenharmony_ci      else
133099ca880aSopenharmony_ci         AC_MSG_RESULT([no])
133199ca880aSopenharmony_ci         _am_tools=none
133299ca880aSopenharmony_ci      fi
133399ca880aSopenharmony_ci      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
133499ca880aSopenharmony_ci      if test $am_gid -le $am_max_gid; then
133599ca880aSopenharmony_ci         AC_MSG_RESULT([yes])
133699ca880aSopenharmony_ci      else
133799ca880aSopenharmony_ci        AC_MSG_RESULT([no])
133899ca880aSopenharmony_ci        _am_tools=none
133999ca880aSopenharmony_ci      fi],
134099ca880aSopenharmony_ci
134199ca880aSopenharmony_ci  [pax],
134299ca880aSopenharmony_ci    [],
134399ca880aSopenharmony_ci
134499ca880aSopenharmony_ci  [m4_fatal([Unknown tar format])])
134599ca880aSopenharmony_ci
134699ca880aSopenharmony_ci  AC_MSG_CHECKING([how to create a $1 tar archive])
134799ca880aSopenharmony_ci
134899ca880aSopenharmony_ci  # Go ahead even if we have the value already cached.  We do so because we
134999ca880aSopenharmony_ci  # need to set the values for the 'am__tar' and 'am__untar' variables.
135099ca880aSopenharmony_ci  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
135199ca880aSopenharmony_ci
135299ca880aSopenharmony_ci  for _am_tool in $_am_tools; do
135399ca880aSopenharmony_ci    case $_am_tool in
135499ca880aSopenharmony_ci    gnutar)
135599ca880aSopenharmony_ci      for _am_tar in tar gnutar gtar; do
135699ca880aSopenharmony_ci        AM_RUN_LOG([$_am_tar --version]) && break
135799ca880aSopenharmony_ci      done
135899ca880aSopenharmony_ci      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
135999ca880aSopenharmony_ci      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
136099ca880aSopenharmony_ci      am__untar="$_am_tar -xf -"
136199ca880aSopenharmony_ci      ;;
136299ca880aSopenharmony_ci    plaintar)
136399ca880aSopenharmony_ci      # Must skip GNU tar: if it does not support --format= it doesn't create
136499ca880aSopenharmony_ci      # ustar tarball either.
136599ca880aSopenharmony_ci      (tar --version) >/dev/null 2>&1 && continue
136699ca880aSopenharmony_ci      am__tar='tar chf - "$$tardir"'
136799ca880aSopenharmony_ci      am__tar_='tar chf - "$tardir"'
136899ca880aSopenharmony_ci      am__untar='tar xf -'
136999ca880aSopenharmony_ci      ;;
137099ca880aSopenharmony_ci    pax)
137199ca880aSopenharmony_ci      am__tar='pax -L -x $1 -w "$$tardir"'
137299ca880aSopenharmony_ci      am__tar_='pax -L -x $1 -w "$tardir"'
137399ca880aSopenharmony_ci      am__untar='pax -r'
137499ca880aSopenharmony_ci      ;;
137599ca880aSopenharmony_ci    cpio)
137699ca880aSopenharmony_ci      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
137799ca880aSopenharmony_ci      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
137899ca880aSopenharmony_ci      am__untar='cpio -i -H $1 -d'
137999ca880aSopenharmony_ci      ;;
138099ca880aSopenharmony_ci    none)
138199ca880aSopenharmony_ci      am__tar=false
138299ca880aSopenharmony_ci      am__tar_=false
138399ca880aSopenharmony_ci      am__untar=false
138499ca880aSopenharmony_ci      ;;
138599ca880aSopenharmony_ci    esac
138699ca880aSopenharmony_ci
138799ca880aSopenharmony_ci    # If the value was cached, stop now.  We just wanted to have am__tar
138899ca880aSopenharmony_ci    # and am__untar set.
138999ca880aSopenharmony_ci    test -n "${am_cv_prog_tar_$1}" && break
139099ca880aSopenharmony_ci
139199ca880aSopenharmony_ci    # tar/untar a dummy directory, and stop if the command works.
139299ca880aSopenharmony_ci    rm -rf conftest.dir
139399ca880aSopenharmony_ci    mkdir conftest.dir
139499ca880aSopenharmony_ci    echo GrepMe > conftest.dir/file
139599ca880aSopenharmony_ci    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
139699ca880aSopenharmony_ci    rm -rf conftest.dir
139799ca880aSopenharmony_ci    if test -s conftest.tar; then
139899ca880aSopenharmony_ci      AM_RUN_LOG([$am__untar <conftest.tar])
139999ca880aSopenharmony_ci      AM_RUN_LOG([cat conftest.dir/file])
140099ca880aSopenharmony_ci      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
140199ca880aSopenharmony_ci    fi
140299ca880aSopenharmony_ci  done
140399ca880aSopenharmony_ci  rm -rf conftest.dir
140499ca880aSopenharmony_ci
140599ca880aSopenharmony_ci  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
140699ca880aSopenharmony_ci  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
140799ca880aSopenharmony_ci
140899ca880aSopenharmony_ciAC_SUBST([am__tar])
140999ca880aSopenharmony_ciAC_SUBST([am__untar])
141099ca880aSopenharmony_ci]) # _AM_PROG_TAR
141199ca880aSopenharmony_ci
141299ca880aSopenharmony_cim4_include([m4/introspection.m4])
141399ca880aSopenharmony_cim4_include([m4/libtool.m4])
141499ca880aSopenharmony_cim4_include([m4/ltoptions.m4])
141599ca880aSopenharmony_cim4_include([m4/ltsugar.m4])
141699ca880aSopenharmony_cim4_include([m4/ltversion.m4])
141799ca880aSopenharmony_cim4_include([m4/lt~obsolete.m4])
1418