1*28e138c6SAndroid Build Coastguard Worker# generated automatically by aclocal 1.16.5 -*- Autoconf -*- 2*28e138c6SAndroid Build Coastguard Worker 3*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1996-2021 Free Software Foundation, Inc. 4*28e138c6SAndroid Build Coastguard Worker 5*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 6*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 7*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 8*28e138c6SAndroid Build Coastguard Worker 9*28e138c6SAndroid Build Coastguard Worker# This program is distributed in the hope that it will be useful, 10*28e138c6SAndroid Build Coastguard Worker# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11*28e138c6SAndroid Build Coastguard Worker# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12*28e138c6SAndroid Build Coastguard Worker# PARTICULAR PURPOSE. 13*28e138c6SAndroid Build Coastguard Worker 14*28e138c6SAndroid Build Coastguard Workerm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15*28e138c6SAndroid Build Coastguard Workerm4_ifndef([AC_AUTOCONF_VERSION], 16*28e138c6SAndroid Build Coastguard Worker [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17*28e138c6SAndroid Build Coastguard Workerm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, 18*28e138c6SAndroid Build Coastguard Worker[m4_warning([this file was generated for autoconf 2.71. 19*28e138c6SAndroid Build Coastguard WorkerYou have another version of autoconf. It may work, but is not guaranteed to. 20*28e138c6SAndroid Build Coastguard WorkerIf you have problems, you may need to regenerate the build system entirely. 21*28e138c6SAndroid Build Coastguard WorkerTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22*28e138c6SAndroid Build Coastguard Worker 23*28e138c6SAndroid Build Coastguard Worker# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 24*28e138c6SAndroid Build Coastguard Worker# serial 12 (pkg-config-0.29.2) 25*28e138c6SAndroid Build Coastguard Worker 26*28e138c6SAndroid Build Coastguard Workerdnl Copyright © 2004 Scott James Remnant <[email protected]>. 27*28e138c6SAndroid Build Coastguard Workerdnl Copyright © 2012-2015 Dan Nicholson <[email protected]> 28*28e138c6SAndroid Build Coastguard Workerdnl 29*28e138c6SAndroid Build Coastguard Workerdnl This program is free software; you can redistribute it and/or modify 30*28e138c6SAndroid Build Coastguard Workerdnl it under the terms of the GNU General Public License as published by 31*28e138c6SAndroid Build Coastguard Workerdnl the Free Software Foundation; either version 2 of the License, or 32*28e138c6SAndroid Build Coastguard Workerdnl (at your option) any later version. 33*28e138c6SAndroid Build Coastguard Workerdnl 34*28e138c6SAndroid Build Coastguard Workerdnl This program is distributed in the hope that it will be useful, but 35*28e138c6SAndroid Build Coastguard Workerdnl WITHOUT ANY WARRANTY; without even the implied warranty of 36*28e138c6SAndroid Build Coastguard Workerdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 37*28e138c6SAndroid Build Coastguard Workerdnl General Public License for more details. 38*28e138c6SAndroid Build Coastguard Workerdnl 39*28e138c6SAndroid Build Coastguard Workerdnl You should have received a copy of the GNU General Public License 40*28e138c6SAndroid Build Coastguard Workerdnl along with this program; if not, write to the Free Software 41*28e138c6SAndroid Build Coastguard Workerdnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 42*28e138c6SAndroid Build Coastguard Workerdnl 02111-1307, USA. 43*28e138c6SAndroid Build Coastguard Workerdnl 44*28e138c6SAndroid Build Coastguard Workerdnl As a special exception to the GNU General Public License, if you 45*28e138c6SAndroid Build Coastguard Workerdnl distribute this file as part of a program that contains a 46*28e138c6SAndroid Build Coastguard Workerdnl configuration script generated by Autoconf, you may include it under 47*28e138c6SAndroid Build Coastguard Workerdnl the same distribution terms that you use for the rest of that 48*28e138c6SAndroid Build Coastguard Workerdnl program. 49*28e138c6SAndroid Build Coastguard Worker 50*28e138c6SAndroid Build Coastguard Workerdnl PKG_PREREQ(MIN-VERSION) 51*28e138c6SAndroid Build Coastguard Workerdnl ----------------------- 52*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.29 53*28e138c6SAndroid Build Coastguard Workerdnl 54*28e138c6SAndroid Build Coastguard Workerdnl Verify that the version of the pkg-config macros are at least 55*28e138c6SAndroid Build Coastguard Workerdnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 56*28e138c6SAndroid Build Coastguard Workerdnl installed version of pkg-config, this checks the developer's version 57*28e138c6SAndroid Build Coastguard Workerdnl of pkg.m4 when generating configure. 58*28e138c6SAndroid Build Coastguard Workerdnl 59*28e138c6SAndroid Build Coastguard Workerdnl To ensure that this macro is defined, also add: 60*28e138c6SAndroid Build Coastguard Workerdnl m4_ifndef([PKG_PREREQ], 61*28e138c6SAndroid Build Coastguard Workerdnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 62*28e138c6SAndroid Build Coastguard Workerdnl 63*28e138c6SAndroid Build Coastguard Workerdnl See the "Since" comment for each macro you use to see what version 64*28e138c6SAndroid Build Coastguard Workerdnl of the macros you require. 65*28e138c6SAndroid Build Coastguard Workerm4_defun([PKG_PREREQ], 66*28e138c6SAndroid Build Coastguard Worker[m4_define([PKG_MACROS_VERSION], [0.29.2]) 67*28e138c6SAndroid Build Coastguard Workerm4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 68*28e138c6SAndroid Build Coastguard Worker [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 69*28e138c6SAndroid Build Coastguard Worker])dnl PKG_PREREQ 70*28e138c6SAndroid Build Coastguard Worker 71*28e138c6SAndroid Build Coastguard Workerdnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 72*28e138c6SAndroid Build Coastguard Workerdnl ---------------------------------- 73*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.16 74*28e138c6SAndroid Build Coastguard Workerdnl 75*28e138c6SAndroid Build Coastguard Workerdnl Search for the pkg-config tool and set the PKG_CONFIG variable to 76*28e138c6SAndroid Build Coastguard Workerdnl first found in the path. Checks that the version of pkg-config found 77*28e138c6SAndroid Build Coastguard Workerdnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 78*28e138c6SAndroid Build Coastguard Workerdnl used since that's the first version where most current features of 79*28e138c6SAndroid Build Coastguard Workerdnl pkg-config existed. 80*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([PKG_PROG_PKG_CONFIG], 81*28e138c6SAndroid Build Coastguard Worker[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 82*28e138c6SAndroid Build Coastguard Workerm4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 83*28e138c6SAndroid Build Coastguard Workerm4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 84*28e138c6SAndroid Build Coastguard WorkerAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 85*28e138c6SAndroid Build Coastguard WorkerAC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 86*28e138c6SAndroid Build Coastguard WorkerAC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 87*28e138c6SAndroid Build Coastguard Worker 88*28e138c6SAndroid Build Coastguard Workerif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 89*28e138c6SAndroid Build Coastguard Worker AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 90*28e138c6SAndroid Build Coastguard Workerfi 91*28e138c6SAndroid Build Coastguard Workerif test -n "$PKG_CONFIG"; then 92*28e138c6SAndroid Build Coastguard Worker _pkg_min_version=m4_default([$1], [0.9.0]) 93*28e138c6SAndroid Build Coastguard Worker AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 94*28e138c6SAndroid Build Coastguard Worker if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 95*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([yes]) 96*28e138c6SAndroid Build Coastguard Worker else 97*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([no]) 98*28e138c6SAndroid Build Coastguard Worker PKG_CONFIG="" 99*28e138c6SAndroid Build Coastguard Worker fi 100*28e138c6SAndroid Build Coastguard Workerfi[]dnl 101*28e138c6SAndroid Build Coastguard Worker])dnl PKG_PROG_PKG_CONFIG 102*28e138c6SAndroid Build Coastguard Worker 103*28e138c6SAndroid Build Coastguard Workerdnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 104*28e138c6SAndroid Build Coastguard Workerdnl ------------------------------------------------------------------- 105*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.18 106*28e138c6SAndroid Build Coastguard Workerdnl 107*28e138c6SAndroid Build Coastguard Workerdnl Check to see whether a particular set of modules exists. Similar to 108*28e138c6SAndroid Build Coastguard Workerdnl PKG_CHECK_MODULES(), but does not set variables or print errors. 109*28e138c6SAndroid Build Coastguard Workerdnl 110*28e138c6SAndroid Build Coastguard Workerdnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 111*28e138c6SAndroid Build Coastguard Workerdnl only at the first occurence in configure.ac, so if the first place 112*28e138c6SAndroid Build Coastguard Workerdnl it's called might be skipped (such as if it is within an "if", you 113*28e138c6SAndroid Build Coastguard Workerdnl have to call PKG_CHECK_EXISTS manually 114*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([PKG_CHECK_EXISTS], 115*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 116*28e138c6SAndroid Build Coastguard Workerif test -n "$PKG_CONFIG" && \ 117*28e138c6SAndroid Build Coastguard Worker AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 118*28e138c6SAndroid Build Coastguard Worker m4_default([$2], [:]) 119*28e138c6SAndroid Build Coastguard Workerm4_ifvaln([$3], [else 120*28e138c6SAndroid Build Coastguard Worker $3])dnl 121*28e138c6SAndroid Build Coastguard Workerfi]) 122*28e138c6SAndroid Build Coastguard Worker 123*28e138c6SAndroid Build Coastguard Workerdnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 124*28e138c6SAndroid Build Coastguard Workerdnl --------------------------------------------- 125*28e138c6SAndroid Build Coastguard Workerdnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 126*28e138c6SAndroid Build Coastguard Workerdnl pkg_failed based on the result. 127*28e138c6SAndroid Build Coastguard Workerm4_define([_PKG_CONFIG], 128*28e138c6SAndroid Build Coastguard Worker[if test -n "$$1"; then 129*28e138c6SAndroid Build Coastguard Worker pkg_cv_[]$1="$$1" 130*28e138c6SAndroid Build Coastguard Worker elif test -n "$PKG_CONFIG"; then 131*28e138c6SAndroid Build Coastguard Worker PKG_CHECK_EXISTS([$3], 132*28e138c6SAndroid Build Coastguard Worker [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 133*28e138c6SAndroid Build Coastguard Worker test "x$?" != "x0" && pkg_failed=yes ], 134*28e138c6SAndroid Build Coastguard Worker [pkg_failed=yes]) 135*28e138c6SAndroid Build Coastguard Worker else 136*28e138c6SAndroid Build Coastguard Worker pkg_failed=untried 137*28e138c6SAndroid Build Coastguard Workerfi[]dnl 138*28e138c6SAndroid Build Coastguard Worker])dnl _PKG_CONFIG 139*28e138c6SAndroid Build Coastguard Worker 140*28e138c6SAndroid Build Coastguard Workerdnl _PKG_SHORT_ERRORS_SUPPORTED 141*28e138c6SAndroid Build Coastguard Workerdnl --------------------------- 142*28e138c6SAndroid Build Coastguard Workerdnl Internal check to see if pkg-config supports short errors. 143*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 144*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 145*28e138c6SAndroid Build Coastguard Workerif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 146*28e138c6SAndroid Build Coastguard Worker _pkg_short_errors_supported=yes 147*28e138c6SAndroid Build Coastguard Workerelse 148*28e138c6SAndroid Build Coastguard Worker _pkg_short_errors_supported=no 149*28e138c6SAndroid Build Coastguard Workerfi[]dnl 150*28e138c6SAndroid Build Coastguard Worker])dnl _PKG_SHORT_ERRORS_SUPPORTED 151*28e138c6SAndroid Build Coastguard Worker 152*28e138c6SAndroid Build Coastguard Worker 153*28e138c6SAndroid Build Coastguard Workerdnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 154*28e138c6SAndroid Build Coastguard Workerdnl [ACTION-IF-NOT-FOUND]) 155*28e138c6SAndroid Build Coastguard Workerdnl -------------------------------------------------------------- 156*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.4.0 157*28e138c6SAndroid Build Coastguard Workerdnl 158*28e138c6SAndroid Build Coastguard Workerdnl Note that if there is a possibility the first call to 159*28e138c6SAndroid Build Coastguard Workerdnl PKG_CHECK_MODULES might not happen, you should be sure to include an 160*28e138c6SAndroid Build Coastguard Workerdnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 161*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([PKG_CHECK_MODULES], 162*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 163*28e138c6SAndroid Build Coastguard WorkerAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 164*28e138c6SAndroid Build Coastguard WorkerAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 165*28e138c6SAndroid Build Coastguard Worker 166*28e138c6SAndroid Build Coastguard Workerpkg_failed=no 167*28e138c6SAndroid Build Coastguard WorkerAC_MSG_CHECKING([for $2]) 168*28e138c6SAndroid Build Coastguard Worker 169*28e138c6SAndroid Build Coastguard Worker_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 170*28e138c6SAndroid Build Coastguard Worker_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 171*28e138c6SAndroid Build Coastguard Worker 172*28e138c6SAndroid Build Coastguard Workerm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 173*28e138c6SAndroid Build Coastguard Workerand $1[]_LIBS to avoid the need to call pkg-config. 174*28e138c6SAndroid Build Coastguard WorkerSee the pkg-config man page for more details.]) 175*28e138c6SAndroid Build Coastguard Worker 176*28e138c6SAndroid Build Coastguard Workerif test $pkg_failed = yes; then 177*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([no]) 178*28e138c6SAndroid Build Coastguard Worker _PKG_SHORT_ERRORS_SUPPORTED 179*28e138c6SAndroid Build Coastguard Worker if test $_pkg_short_errors_supported = yes; then 180*28e138c6SAndroid Build Coastguard Worker $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 181*28e138c6SAndroid Build Coastguard Worker else 182*28e138c6SAndroid Build Coastguard Worker $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 183*28e138c6SAndroid Build Coastguard Worker fi 184*28e138c6SAndroid Build Coastguard Worker # Put the nasty error message in config.log where it belongs 185*28e138c6SAndroid Build Coastguard Worker echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 186*28e138c6SAndroid Build Coastguard Worker 187*28e138c6SAndroid Build Coastguard Worker m4_default([$4], [AC_MSG_ERROR( 188*28e138c6SAndroid Build Coastguard Worker[Package requirements ($2) were not met: 189*28e138c6SAndroid Build Coastguard Worker 190*28e138c6SAndroid Build Coastguard Worker$$1_PKG_ERRORS 191*28e138c6SAndroid Build Coastguard Worker 192*28e138c6SAndroid Build Coastguard WorkerConsider adjusting the PKG_CONFIG_PATH environment variable if you 193*28e138c6SAndroid Build Coastguard Workerinstalled software in a non-standard prefix. 194*28e138c6SAndroid Build Coastguard Worker 195*28e138c6SAndroid Build Coastguard Worker_PKG_TEXT])[]dnl 196*28e138c6SAndroid Build Coastguard Worker ]) 197*28e138c6SAndroid Build Coastguard Workerelif test $pkg_failed = untried; then 198*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([no]) 199*28e138c6SAndroid Build Coastguard Worker m4_default([$4], [AC_MSG_FAILURE( 200*28e138c6SAndroid Build Coastguard Worker[The pkg-config script could not be found or is too old. Make sure it 201*28e138c6SAndroid Build Coastguard Workeris in your PATH or set the PKG_CONFIG environment variable to the full 202*28e138c6SAndroid Build Coastguard Workerpath to pkg-config. 203*28e138c6SAndroid Build Coastguard Worker 204*28e138c6SAndroid Build Coastguard Worker_PKG_TEXT 205*28e138c6SAndroid Build Coastguard Worker 206*28e138c6SAndroid Build Coastguard WorkerTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 207*28e138c6SAndroid Build Coastguard Worker ]) 208*28e138c6SAndroid Build Coastguard Workerelse 209*28e138c6SAndroid Build Coastguard Worker $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 210*28e138c6SAndroid Build Coastguard Worker $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 211*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([yes]) 212*28e138c6SAndroid Build Coastguard Worker $3 213*28e138c6SAndroid Build Coastguard Workerfi[]dnl 214*28e138c6SAndroid Build Coastguard Worker])dnl PKG_CHECK_MODULES 215*28e138c6SAndroid Build Coastguard Worker 216*28e138c6SAndroid Build Coastguard Worker 217*28e138c6SAndroid Build Coastguard Workerdnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 218*28e138c6SAndroid Build Coastguard Workerdnl [ACTION-IF-NOT-FOUND]) 219*28e138c6SAndroid Build Coastguard Workerdnl --------------------------------------------------------------------- 220*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.29 221*28e138c6SAndroid Build Coastguard Workerdnl 222*28e138c6SAndroid Build Coastguard Workerdnl Checks for existence of MODULES and gathers its build flags with 223*28e138c6SAndroid Build Coastguard Workerdnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 224*28e138c6SAndroid Build Coastguard Workerdnl and VARIABLE-PREFIX_LIBS from --libs. 225*28e138c6SAndroid Build Coastguard Workerdnl 226*28e138c6SAndroid Build Coastguard Workerdnl Note that if there is a possibility the first call to 227*28e138c6SAndroid Build Coastguard Workerdnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 228*28e138c6SAndroid Build Coastguard Workerdnl include an explicit call to PKG_PROG_PKG_CONFIG in your 229*28e138c6SAndroid Build Coastguard Workerdnl configure.ac. 230*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([PKG_CHECK_MODULES_STATIC], 231*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 232*28e138c6SAndroid Build Coastguard Worker_save_PKG_CONFIG=$PKG_CONFIG 233*28e138c6SAndroid Build Coastguard WorkerPKG_CONFIG="$PKG_CONFIG --static" 234*28e138c6SAndroid Build Coastguard WorkerPKG_CHECK_MODULES($@) 235*28e138c6SAndroid Build Coastguard WorkerPKG_CONFIG=$_save_PKG_CONFIG[]dnl 236*28e138c6SAndroid Build Coastguard Worker])dnl PKG_CHECK_MODULES_STATIC 237*28e138c6SAndroid Build Coastguard Worker 238*28e138c6SAndroid Build Coastguard Worker 239*28e138c6SAndroid Build Coastguard Workerdnl PKG_INSTALLDIR([DIRECTORY]) 240*28e138c6SAndroid Build Coastguard Workerdnl ------------------------- 241*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.27 242*28e138c6SAndroid Build Coastguard Workerdnl 243*28e138c6SAndroid Build Coastguard Workerdnl Substitutes the variable pkgconfigdir as the location where a module 244*28e138c6SAndroid Build Coastguard Workerdnl should install pkg-config .pc files. By default the directory is 245*28e138c6SAndroid Build Coastguard Workerdnl $libdir/pkgconfig, but the default can be changed by passing 246*28e138c6SAndroid Build Coastguard Workerdnl DIRECTORY. The user can override through the --with-pkgconfigdir 247*28e138c6SAndroid Build Coastguard Workerdnl parameter. 248*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([PKG_INSTALLDIR], 249*28e138c6SAndroid Build Coastguard Worker[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 250*28e138c6SAndroid Build Coastguard Workerm4_pushdef([pkg_description], 251*28e138c6SAndroid Build Coastguard Worker [pkg-config installation directory @<:@]pkg_default[@:>@]) 252*28e138c6SAndroid Build Coastguard WorkerAC_ARG_WITH([pkgconfigdir], 253*28e138c6SAndroid Build Coastguard Worker [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 254*28e138c6SAndroid Build Coastguard Worker [with_pkgconfigdir=]pkg_default) 255*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 256*28e138c6SAndroid Build Coastguard Workerm4_popdef([pkg_default]) 257*28e138c6SAndroid Build Coastguard Workerm4_popdef([pkg_description]) 258*28e138c6SAndroid Build Coastguard Worker])dnl PKG_INSTALLDIR 259*28e138c6SAndroid Build Coastguard Worker 260*28e138c6SAndroid Build Coastguard Worker 261*28e138c6SAndroid Build Coastguard Workerdnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 262*28e138c6SAndroid Build Coastguard Workerdnl -------------------------------- 263*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.27 264*28e138c6SAndroid Build Coastguard Workerdnl 265*28e138c6SAndroid Build Coastguard Workerdnl Substitutes the variable noarch_pkgconfigdir as the location where a 266*28e138c6SAndroid Build Coastguard Workerdnl module should install arch-independent pkg-config .pc files. By 267*28e138c6SAndroid Build Coastguard Workerdnl default the directory is $datadir/pkgconfig, but the default can be 268*28e138c6SAndroid Build Coastguard Workerdnl changed by passing DIRECTORY. The user can override through the 269*28e138c6SAndroid Build Coastguard Workerdnl --with-noarch-pkgconfigdir parameter. 270*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([PKG_NOARCH_INSTALLDIR], 271*28e138c6SAndroid Build Coastguard Worker[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 272*28e138c6SAndroid Build Coastguard Workerm4_pushdef([pkg_description], 273*28e138c6SAndroid Build Coastguard Worker [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 274*28e138c6SAndroid Build Coastguard WorkerAC_ARG_WITH([noarch-pkgconfigdir], 275*28e138c6SAndroid Build Coastguard Worker [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 276*28e138c6SAndroid Build Coastguard Worker [with_noarch_pkgconfigdir=]pkg_default) 277*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 278*28e138c6SAndroid Build Coastguard Workerm4_popdef([pkg_default]) 279*28e138c6SAndroid Build Coastguard Workerm4_popdef([pkg_description]) 280*28e138c6SAndroid Build Coastguard Worker])dnl PKG_NOARCH_INSTALLDIR 281*28e138c6SAndroid Build Coastguard Worker 282*28e138c6SAndroid Build Coastguard Worker 283*28e138c6SAndroid Build Coastguard Workerdnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 284*28e138c6SAndroid Build Coastguard Workerdnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 285*28e138c6SAndroid Build Coastguard Workerdnl ------------------------------------------- 286*28e138c6SAndroid Build Coastguard Workerdnl Since: 0.28 287*28e138c6SAndroid Build Coastguard Workerdnl 288*28e138c6SAndroid Build Coastguard Workerdnl Retrieves the value of the pkg-config variable for the given module. 289*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([PKG_CHECK_VAR], 290*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 291*28e138c6SAndroid Build Coastguard WorkerAC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 292*28e138c6SAndroid Build Coastguard Worker 293*28e138c6SAndroid Build Coastguard Worker_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 294*28e138c6SAndroid Build Coastguard WorkerAS_VAR_COPY([$1], [pkg_cv_][$1]) 295*28e138c6SAndroid Build Coastguard Worker 296*28e138c6SAndroid Build Coastguard WorkerAS_VAR_IF([$1], [""], [$5], [$4])dnl 297*28e138c6SAndroid Build Coastguard Worker])dnl PKG_CHECK_VAR 298*28e138c6SAndroid Build Coastguard Worker 299*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2002-2021 Free Software Foundation, Inc. 300*28e138c6SAndroid Build Coastguard Worker# 301*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 302*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 303*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 304*28e138c6SAndroid Build Coastguard Worker 305*28e138c6SAndroid Build Coastguard Worker# AM_AUTOMAKE_VERSION(VERSION) 306*28e138c6SAndroid Build Coastguard Worker# ---------------------------- 307*28e138c6SAndroid Build Coastguard Worker# Automake X.Y traces this macro to ensure aclocal.m4 has been 308*28e138c6SAndroid Build Coastguard Worker# generated from the m4 files accompanying Automake X.Y. 309*28e138c6SAndroid Build Coastguard Worker# (This private macro should not be called outside this file.) 310*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_AUTOMAKE_VERSION], 311*28e138c6SAndroid Build Coastguard Worker[am__api_version='1.16' 312*28e138c6SAndroid Build Coastguard Workerdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 313*28e138c6SAndroid Build Coastguard Workerdnl require some minimum version. Point them to the right macro. 314*28e138c6SAndroid Build Coastguard Workerm4_if([$1], [1.16.5], [], 315*28e138c6SAndroid Build Coastguard Worker [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 316*28e138c6SAndroid Build Coastguard Worker]) 317*28e138c6SAndroid Build Coastguard Worker 318*28e138c6SAndroid Build Coastguard Worker# _AM_AUTOCONF_VERSION(VERSION) 319*28e138c6SAndroid Build Coastguard Worker# ----------------------------- 320*28e138c6SAndroid Build Coastguard Worker# aclocal traces this macro to find the Autoconf version. 321*28e138c6SAndroid Build Coastguard Worker# This is a private macro too. Using m4_define simplifies 322*28e138c6SAndroid Build Coastguard Worker# the logic in aclocal, which can simply ignore this definition. 323*28e138c6SAndroid Build Coastguard Workerm4_define([_AM_AUTOCONF_VERSION], []) 324*28e138c6SAndroid Build Coastguard Worker 325*28e138c6SAndroid Build Coastguard Worker# AM_SET_CURRENT_AUTOMAKE_VERSION 326*28e138c6SAndroid Build Coastguard Worker# ------------------------------- 327*28e138c6SAndroid Build Coastguard Worker# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 328*28e138c6SAndroid Build Coastguard Worker# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 329*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 330*28e138c6SAndroid Build Coastguard Worker[AM_AUTOMAKE_VERSION([1.16.5])dnl 331*28e138c6SAndroid Build Coastguard Workerm4_ifndef([AC_AUTOCONF_VERSION], 332*28e138c6SAndroid Build Coastguard Worker [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 333*28e138c6SAndroid Build Coastguard Worker_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 334*28e138c6SAndroid Build Coastguard Worker 335*28e138c6SAndroid Build Coastguard Worker# AM_AUX_DIR_EXPAND -*- Autoconf -*- 336*28e138c6SAndroid Build Coastguard Worker 337*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2001-2021 Free Software Foundation, Inc. 338*28e138c6SAndroid Build Coastguard Worker# 339*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 340*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 341*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 342*28e138c6SAndroid Build Coastguard Worker 343*28e138c6SAndroid Build Coastguard Worker# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 344*28e138c6SAndroid Build Coastguard Worker# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 345*28e138c6SAndroid Build Coastguard Worker# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 346*28e138c6SAndroid Build Coastguard Worker# 347*28e138c6SAndroid Build Coastguard Worker# Of course, Automake must honor this variable whenever it calls a 348*28e138c6SAndroid Build Coastguard Worker# tool from the auxiliary directory. The problem is that $srcdir (and 349*28e138c6SAndroid Build Coastguard Worker# therefore $ac_aux_dir as well) can be either absolute or relative, 350*28e138c6SAndroid Build Coastguard Worker# depending on how configure is run. This is pretty annoying, since 351*28e138c6SAndroid Build Coastguard Worker# it makes $ac_aux_dir quite unusable in subdirectories: in the top 352*28e138c6SAndroid Build Coastguard Worker# source directory, any form will work fine, but in subdirectories a 353*28e138c6SAndroid Build Coastguard Worker# relative path needs to be adjusted first. 354*28e138c6SAndroid Build Coastguard Worker# 355*28e138c6SAndroid Build Coastguard Worker# $ac_aux_dir/missing 356*28e138c6SAndroid Build Coastguard Worker# fails when called from a subdirectory if $ac_aux_dir is relative 357*28e138c6SAndroid Build Coastguard Worker# $top_srcdir/$ac_aux_dir/missing 358*28e138c6SAndroid Build Coastguard Worker# fails if $ac_aux_dir is absolute, 359*28e138c6SAndroid Build Coastguard Worker# fails when called from a subdirectory in a VPATH build with 360*28e138c6SAndroid Build Coastguard Worker# a relative $ac_aux_dir 361*28e138c6SAndroid Build Coastguard Worker# 362*28e138c6SAndroid Build Coastguard Worker# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 363*28e138c6SAndroid Build Coastguard Worker# are both prefixed by $srcdir. In an in-source build this is usually 364*28e138c6SAndroid Build Coastguard Worker# harmless because $srcdir is '.', but things will broke when you 365*28e138c6SAndroid Build Coastguard Worker# start a VPATH build or use an absolute $srcdir. 366*28e138c6SAndroid Build Coastguard Worker# 367*28e138c6SAndroid Build Coastguard Worker# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 368*28e138c6SAndroid Build Coastguard Worker# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 369*28e138c6SAndroid Build Coastguard Worker# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 370*28e138c6SAndroid Build Coastguard Worker# and then we would define $MISSING as 371*28e138c6SAndroid Build Coastguard Worker# MISSING="\${SHELL} $am_aux_dir/missing" 372*28e138c6SAndroid Build Coastguard Worker# This will work as long as MISSING is not called from configure, because 373*28e138c6SAndroid Build Coastguard Worker# unfortunately $(top_srcdir) has no meaning in configure. 374*28e138c6SAndroid Build Coastguard Worker# However there are other variables, like CC, which are often used in 375*28e138c6SAndroid Build Coastguard Worker# configure, and could therefore not use this "fixed" $ac_aux_dir. 376*28e138c6SAndroid Build Coastguard Worker# 377*28e138c6SAndroid Build Coastguard Worker# Another solution, used here, is to always expand $ac_aux_dir to an 378*28e138c6SAndroid Build Coastguard Worker# absolute PATH. The drawback is that using absolute paths prevent a 379*28e138c6SAndroid Build Coastguard Worker# configured tree to be moved without reconfiguration. 380*28e138c6SAndroid Build Coastguard Worker 381*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_AUX_DIR_EXPAND], 382*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 383*28e138c6SAndroid Build Coastguard Worker# Expand $ac_aux_dir to an absolute path. 384*28e138c6SAndroid Build Coastguard Workeram_aux_dir=`cd "$ac_aux_dir" && pwd` 385*28e138c6SAndroid Build Coastguard Worker]) 386*28e138c6SAndroid Build Coastguard Worker 387*28e138c6SAndroid Build Coastguard Worker# AM_CONDITIONAL -*- Autoconf -*- 388*28e138c6SAndroid Build Coastguard Worker 389*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1997-2021 Free Software Foundation, Inc. 390*28e138c6SAndroid Build Coastguard Worker# 391*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 392*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 393*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 394*28e138c6SAndroid Build Coastguard Worker 395*28e138c6SAndroid Build Coastguard Worker# AM_CONDITIONAL(NAME, SHELL-CONDITION) 396*28e138c6SAndroid Build Coastguard Worker# ------------------------------------- 397*28e138c6SAndroid Build Coastguard Worker# Define a conditional. 398*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_CONDITIONAL], 399*28e138c6SAndroid Build Coastguard Worker[AC_PREREQ([2.52])dnl 400*28e138c6SAndroid Build Coastguard Worker m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 401*28e138c6SAndroid Build Coastguard Worker [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 402*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([$1_TRUE])dnl 403*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([$1_FALSE])dnl 404*28e138c6SAndroid Build Coastguard Worker_AM_SUBST_NOTMAKE([$1_TRUE])dnl 405*28e138c6SAndroid Build Coastguard Worker_AM_SUBST_NOTMAKE([$1_FALSE])dnl 406*28e138c6SAndroid Build Coastguard Workerm4_define([_AM_COND_VALUE_$1], [$2])dnl 407*28e138c6SAndroid Build Coastguard Workerif $2; then 408*28e138c6SAndroid Build Coastguard Worker $1_TRUE= 409*28e138c6SAndroid Build Coastguard Worker $1_FALSE='#' 410*28e138c6SAndroid Build Coastguard Workerelse 411*28e138c6SAndroid Build Coastguard Worker $1_TRUE='#' 412*28e138c6SAndroid Build Coastguard Worker $1_FALSE= 413*28e138c6SAndroid Build Coastguard Workerfi 414*28e138c6SAndroid Build Coastguard WorkerAC_CONFIG_COMMANDS_PRE( 415*28e138c6SAndroid Build Coastguard Worker[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 416*28e138c6SAndroid Build Coastguard Worker AC_MSG_ERROR([[conditional "$1" was never defined. 417*28e138c6SAndroid Build Coastguard WorkerUsually this means the macro was only invoked conditionally.]]) 418*28e138c6SAndroid Build Coastguard Workerfi])]) 419*28e138c6SAndroid Build Coastguard Worker 420*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1999-2021 Free Software Foundation, Inc. 421*28e138c6SAndroid Build Coastguard Worker# 422*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 423*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 424*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 425*28e138c6SAndroid Build Coastguard Worker 426*28e138c6SAndroid Build Coastguard Worker 427*28e138c6SAndroid Build Coastguard Worker# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 428*28e138c6SAndroid Build Coastguard Worker# written in clear, in which case automake, when reading aclocal.m4, 429*28e138c6SAndroid Build Coastguard Worker# will think it sees a *use*, and therefore will trigger all it's 430*28e138c6SAndroid Build Coastguard Worker# C support machinery. Also note that it means that autoscan, seeing 431*28e138c6SAndroid Build Coastguard Worker# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 432*28e138c6SAndroid Build Coastguard Worker 433*28e138c6SAndroid Build Coastguard Worker 434*28e138c6SAndroid Build Coastguard Worker# _AM_DEPENDENCIES(NAME) 435*28e138c6SAndroid Build Coastguard Worker# ---------------------- 436*28e138c6SAndroid Build Coastguard Worker# See how the compiler implements dependency checking. 437*28e138c6SAndroid Build Coastguard Worker# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 438*28e138c6SAndroid Build Coastguard Worker# We try a few techniques and use that to set a single cache variable. 439*28e138c6SAndroid Build Coastguard Worker# 440*28e138c6SAndroid Build Coastguard Worker# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 441*28e138c6SAndroid Build Coastguard Worker# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 442*28e138c6SAndroid Build Coastguard Worker# dependency, and given that the user is not expected to run this macro, 443*28e138c6SAndroid Build Coastguard Worker# just rely on AC_PROG_CC. 444*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_DEPENDENCIES], 445*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AM_SET_DEPDIR])dnl 446*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 447*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_MAKE_INCLUDE])dnl 448*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_DEP_TRACK])dnl 449*28e138c6SAndroid Build Coastguard Worker 450*28e138c6SAndroid Build Coastguard Workerm4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 451*28e138c6SAndroid Build Coastguard Worker [$1], [CXX], [depcc="$CXX" am_compiler_list=], 452*28e138c6SAndroid Build Coastguard Worker [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 453*28e138c6SAndroid Build Coastguard Worker [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 454*28e138c6SAndroid Build Coastguard Worker [$1], [UPC], [depcc="$UPC" am_compiler_list=], 455*28e138c6SAndroid Build Coastguard Worker [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 456*28e138c6SAndroid Build Coastguard Worker [depcc="$$1" am_compiler_list=]) 457*28e138c6SAndroid Build Coastguard Worker 458*28e138c6SAndroid Build Coastguard WorkerAC_CACHE_CHECK([dependency style of $depcc], 459*28e138c6SAndroid Build Coastguard Worker [am_cv_$1_dependencies_compiler_type], 460*28e138c6SAndroid Build Coastguard Worker[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 461*28e138c6SAndroid Build Coastguard Worker # We make a subdir and do the tests there. Otherwise we can end up 462*28e138c6SAndroid Build Coastguard Worker # making bogus files that we don't know about and never remove. For 463*28e138c6SAndroid Build Coastguard Worker # instance it was reported that on HP-UX the gcc test will end up 464*28e138c6SAndroid Build Coastguard Worker # making a dummy file named 'D' -- because '-MD' means "put the output 465*28e138c6SAndroid Build Coastguard Worker # in D". 466*28e138c6SAndroid Build Coastguard Worker rm -rf conftest.dir 467*28e138c6SAndroid Build Coastguard Worker mkdir conftest.dir 468*28e138c6SAndroid Build Coastguard Worker # Copy depcomp to subdir because otherwise we won't find it if we're 469*28e138c6SAndroid Build Coastguard Worker # using a relative directory. 470*28e138c6SAndroid Build Coastguard Worker cp "$am_depcomp" conftest.dir 471*28e138c6SAndroid Build Coastguard Worker cd conftest.dir 472*28e138c6SAndroid Build Coastguard Worker # We will build objects and dependencies in a subdirectory because 473*28e138c6SAndroid Build Coastguard Worker # it helps to detect inapplicable dependency modes. For instance 474*28e138c6SAndroid Build Coastguard Worker # both Tru64's cc and ICC support -MD to output dependencies as a 475*28e138c6SAndroid Build Coastguard Worker # side effect of compilation, but ICC will put the dependencies in 476*28e138c6SAndroid Build Coastguard Worker # the current directory while Tru64 will put them in the object 477*28e138c6SAndroid Build Coastguard Worker # directory. 478*28e138c6SAndroid Build Coastguard Worker mkdir sub 479*28e138c6SAndroid Build Coastguard Worker 480*28e138c6SAndroid Build Coastguard Worker am_cv_$1_dependencies_compiler_type=none 481*28e138c6SAndroid Build Coastguard Worker if test "$am_compiler_list" = ""; then 482*28e138c6SAndroid Build Coastguard Worker am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 483*28e138c6SAndroid Build Coastguard Worker fi 484*28e138c6SAndroid Build Coastguard Worker am__universal=false 485*28e138c6SAndroid Build Coastguard Worker m4_case([$1], [CC], 486*28e138c6SAndroid Build Coastguard Worker [case " $depcc " in #( 487*28e138c6SAndroid Build Coastguard Worker *\ -arch\ *\ -arch\ *) am__universal=true ;; 488*28e138c6SAndroid Build Coastguard Worker esac], 489*28e138c6SAndroid Build Coastguard Worker [CXX], 490*28e138c6SAndroid Build Coastguard Worker [case " $depcc " in #( 491*28e138c6SAndroid Build Coastguard Worker *\ -arch\ *\ -arch\ *) am__universal=true ;; 492*28e138c6SAndroid Build Coastguard Worker esac]) 493*28e138c6SAndroid Build Coastguard Worker 494*28e138c6SAndroid Build Coastguard Worker for depmode in $am_compiler_list; do 495*28e138c6SAndroid Build Coastguard Worker # Setup a source with many dependencies, because some compilers 496*28e138c6SAndroid Build Coastguard Worker # like to wrap large dependency lists on column 80 (with \), and 497*28e138c6SAndroid Build Coastguard Worker # we should not choose a depcomp mode which is confused by this. 498*28e138c6SAndroid Build Coastguard Worker # 499*28e138c6SAndroid Build Coastguard Worker # We need to recreate these files for each test, as the compiler may 500*28e138c6SAndroid Build Coastguard Worker # overwrite some of them when testing with obscure command lines. 501*28e138c6SAndroid Build Coastguard Worker # This happens at least with the AIX C compiler. 502*28e138c6SAndroid Build Coastguard Worker : > sub/conftest.c 503*28e138c6SAndroid Build Coastguard Worker for i in 1 2 3 4 5 6; do 504*28e138c6SAndroid Build Coastguard Worker echo '#include "conftst'$i'.h"' >> sub/conftest.c 505*28e138c6SAndroid Build Coastguard Worker # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 506*28e138c6SAndroid Build Coastguard Worker # Solaris 10 /bin/sh. 507*28e138c6SAndroid Build Coastguard Worker echo '/* dummy */' > sub/conftst$i.h 508*28e138c6SAndroid Build Coastguard Worker done 509*28e138c6SAndroid Build Coastguard Worker echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 510*28e138c6SAndroid Build Coastguard Worker 511*28e138c6SAndroid Build Coastguard Worker # We check with '-c' and '-o' for the sake of the "dashmstdout" 512*28e138c6SAndroid Build Coastguard Worker # mode. It turns out that the SunPro C++ compiler does not properly 513*28e138c6SAndroid Build Coastguard Worker # handle '-M -o', and we need to detect this. Also, some Intel 514*28e138c6SAndroid Build Coastguard Worker # versions had trouble with output in subdirs. 515*28e138c6SAndroid Build Coastguard Worker am__obj=sub/conftest.${OBJEXT-o} 516*28e138c6SAndroid Build Coastguard Worker am__minus_obj="-o $am__obj" 517*28e138c6SAndroid Build Coastguard Worker case $depmode in 518*28e138c6SAndroid Build Coastguard Worker gcc) 519*28e138c6SAndroid Build Coastguard Worker # This depmode causes a compiler race in universal mode. 520*28e138c6SAndroid Build Coastguard Worker test "$am__universal" = false || continue 521*28e138c6SAndroid Build Coastguard Worker ;; 522*28e138c6SAndroid Build Coastguard Worker nosideeffect) 523*28e138c6SAndroid Build Coastguard Worker # After this tag, mechanisms are not by side-effect, so they'll 524*28e138c6SAndroid Build Coastguard Worker # only be used when explicitly requested. 525*28e138c6SAndroid Build Coastguard Worker if test "x$enable_dependency_tracking" = xyes; then 526*28e138c6SAndroid Build Coastguard Worker continue 527*28e138c6SAndroid Build Coastguard Worker else 528*28e138c6SAndroid Build Coastguard Worker break 529*28e138c6SAndroid Build Coastguard Worker fi 530*28e138c6SAndroid Build Coastguard Worker ;; 531*28e138c6SAndroid Build Coastguard Worker msvc7 | msvc7msys | msvisualcpp | msvcmsys) 532*28e138c6SAndroid Build Coastguard Worker # This compiler won't grok '-c -o', but also, the minuso test has 533*28e138c6SAndroid Build Coastguard Worker # not run yet. These depmodes are late enough in the game, and 534*28e138c6SAndroid Build Coastguard Worker # so weak that their functioning should not be impacted. 535*28e138c6SAndroid Build Coastguard Worker am__obj=conftest.${OBJEXT-o} 536*28e138c6SAndroid Build Coastguard Worker am__minus_obj= 537*28e138c6SAndroid Build Coastguard Worker ;; 538*28e138c6SAndroid Build Coastguard Worker none) break ;; 539*28e138c6SAndroid Build Coastguard Worker esac 540*28e138c6SAndroid Build Coastguard Worker if depmode=$depmode \ 541*28e138c6SAndroid Build Coastguard Worker source=sub/conftest.c object=$am__obj \ 542*28e138c6SAndroid Build Coastguard Worker depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 543*28e138c6SAndroid Build Coastguard Worker $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 544*28e138c6SAndroid Build Coastguard Worker >/dev/null 2>conftest.err && 545*28e138c6SAndroid Build Coastguard Worker grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 546*28e138c6SAndroid Build Coastguard Worker grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 547*28e138c6SAndroid Build Coastguard Worker grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 548*28e138c6SAndroid Build Coastguard Worker ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 549*28e138c6SAndroid Build Coastguard Worker # icc doesn't choke on unknown options, it will just issue warnings 550*28e138c6SAndroid Build Coastguard Worker # or remarks (even with -Werror). So we grep stderr for any message 551*28e138c6SAndroid Build Coastguard Worker # that says an option was ignored or not supported. 552*28e138c6SAndroid Build Coastguard Worker # When given -MP, icc 7.0 and 7.1 complain thusly: 553*28e138c6SAndroid Build Coastguard Worker # icc: Command line warning: ignoring option '-M'; no argument required 554*28e138c6SAndroid Build Coastguard Worker # The diagnosis changed in icc 8.0: 555*28e138c6SAndroid Build Coastguard Worker # icc: Command line remark: option '-MP' not supported 556*28e138c6SAndroid Build Coastguard Worker if (grep 'ignoring option' conftest.err || 557*28e138c6SAndroid Build Coastguard Worker grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 558*28e138c6SAndroid Build Coastguard Worker am_cv_$1_dependencies_compiler_type=$depmode 559*28e138c6SAndroid Build Coastguard Worker break 560*28e138c6SAndroid Build Coastguard Worker fi 561*28e138c6SAndroid Build Coastguard Worker fi 562*28e138c6SAndroid Build Coastguard Worker done 563*28e138c6SAndroid Build Coastguard Worker 564*28e138c6SAndroid Build Coastguard Worker cd .. 565*28e138c6SAndroid Build Coastguard Worker rm -rf conftest.dir 566*28e138c6SAndroid Build Coastguard Workerelse 567*28e138c6SAndroid Build Coastguard Worker am_cv_$1_dependencies_compiler_type=none 568*28e138c6SAndroid Build Coastguard Workerfi 569*28e138c6SAndroid Build Coastguard Worker]) 570*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 571*28e138c6SAndroid Build Coastguard WorkerAM_CONDITIONAL([am__fastdep$1], [ 572*28e138c6SAndroid Build Coastguard Worker test "x$enable_dependency_tracking" != xno \ 573*28e138c6SAndroid Build Coastguard Worker && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 574*28e138c6SAndroid Build Coastguard Worker]) 575*28e138c6SAndroid Build Coastguard Worker 576*28e138c6SAndroid Build Coastguard Worker 577*28e138c6SAndroid Build Coastguard Worker# AM_SET_DEPDIR 578*28e138c6SAndroid Build Coastguard Worker# ------------- 579*28e138c6SAndroid Build Coastguard Worker# Choose a directory name for dependency files. 580*28e138c6SAndroid Build Coastguard Worker# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 581*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_SET_DEPDIR], 582*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 583*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 584*28e138c6SAndroid Build Coastguard Worker]) 585*28e138c6SAndroid Build Coastguard Worker 586*28e138c6SAndroid Build Coastguard Worker 587*28e138c6SAndroid Build Coastguard Worker# AM_DEP_TRACK 588*28e138c6SAndroid Build Coastguard Worker# ------------ 589*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_DEP_TRACK], 590*28e138c6SAndroid Build Coastguard Worker[AC_ARG_ENABLE([dependency-tracking], [dnl 591*28e138c6SAndroid Build Coastguard WorkerAS_HELP_STRING( 592*28e138c6SAndroid Build Coastguard Worker [--enable-dependency-tracking], 593*28e138c6SAndroid Build Coastguard Worker [do not reject slow dependency extractors]) 594*28e138c6SAndroid Build Coastguard WorkerAS_HELP_STRING( 595*28e138c6SAndroid Build Coastguard Worker [--disable-dependency-tracking], 596*28e138c6SAndroid Build Coastguard Worker [speeds up one-time build])]) 597*28e138c6SAndroid Build Coastguard Workerif test "x$enable_dependency_tracking" != xno; then 598*28e138c6SAndroid Build Coastguard Worker am_depcomp="$ac_aux_dir/depcomp" 599*28e138c6SAndroid Build Coastguard Worker AMDEPBACKSLASH='\' 600*28e138c6SAndroid Build Coastguard Worker am__nodep='_no' 601*28e138c6SAndroid Build Coastguard Workerfi 602*28e138c6SAndroid Build Coastguard WorkerAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 603*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([AMDEPBACKSLASH])dnl 604*28e138c6SAndroid Build Coastguard Worker_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 605*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([am__nodep])dnl 606*28e138c6SAndroid Build Coastguard Worker_AM_SUBST_NOTMAKE([am__nodep])dnl 607*28e138c6SAndroid Build Coastguard Worker]) 608*28e138c6SAndroid Build Coastguard Worker 609*28e138c6SAndroid Build Coastguard Worker# Generate code to set up dependency tracking. -*- Autoconf -*- 610*28e138c6SAndroid Build Coastguard Worker 611*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1999-2021 Free Software Foundation, Inc. 612*28e138c6SAndroid Build Coastguard Worker# 613*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 614*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 615*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 616*28e138c6SAndroid Build Coastguard Worker 617*28e138c6SAndroid Build Coastguard Worker# _AM_OUTPUT_DEPENDENCY_COMMANDS 618*28e138c6SAndroid Build Coastguard Worker# ------------------------------ 619*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 620*28e138c6SAndroid Build Coastguard Worker[{ 621*28e138c6SAndroid Build Coastguard Worker # Older Autoconf quotes --file arguments for eval, but not when files 622*28e138c6SAndroid Build Coastguard Worker # are listed without --file. Let's play safe and only enable the eval 623*28e138c6SAndroid Build Coastguard Worker # if we detect the quoting. 624*28e138c6SAndroid Build Coastguard Worker # TODO: see whether this extra hack can be removed once we start 625*28e138c6SAndroid Build Coastguard Worker # requiring Autoconf 2.70 or later. 626*28e138c6SAndroid Build Coastguard Worker AS_CASE([$CONFIG_FILES], 627*28e138c6SAndroid Build Coastguard Worker [*\'*], [eval set x "$CONFIG_FILES"], 628*28e138c6SAndroid Build Coastguard Worker [*], [set x $CONFIG_FILES]) 629*28e138c6SAndroid Build Coastguard Worker shift 630*28e138c6SAndroid Build Coastguard Worker # Used to flag and report bootstrapping failures. 631*28e138c6SAndroid Build Coastguard Worker am_rc=0 632*28e138c6SAndroid Build Coastguard Worker for am_mf 633*28e138c6SAndroid Build Coastguard Worker do 634*28e138c6SAndroid Build Coastguard Worker # Strip MF so we end up with the name of the file. 635*28e138c6SAndroid Build Coastguard Worker am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 636*28e138c6SAndroid Build Coastguard Worker # Check whether this is an Automake generated Makefile which includes 637*28e138c6SAndroid Build Coastguard Worker # dependency-tracking related rules and includes. 638*28e138c6SAndroid Build Coastguard Worker # Grep'ing the whole file directly is not great: AIX grep has a line 639*28e138c6SAndroid Build Coastguard Worker # limit of 2048, but all sed's we know have understand at least 4000. 640*28e138c6SAndroid Build Coastguard Worker sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 641*28e138c6SAndroid Build Coastguard Worker || continue 642*28e138c6SAndroid Build Coastguard Worker am_dirpart=`AS_DIRNAME(["$am_mf"])` 643*28e138c6SAndroid Build Coastguard Worker am_filepart=`AS_BASENAME(["$am_mf"])` 644*28e138c6SAndroid Build Coastguard Worker AM_RUN_LOG([cd "$am_dirpart" \ 645*28e138c6SAndroid Build Coastguard Worker && sed -e '/# am--include-marker/d' "$am_filepart" \ 646*28e138c6SAndroid Build Coastguard Worker | $MAKE -f - am--depfiles]) || am_rc=$? 647*28e138c6SAndroid Build Coastguard Worker done 648*28e138c6SAndroid Build Coastguard Worker if test $am_rc -ne 0; then 649*28e138c6SAndroid Build Coastguard Worker AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 650*28e138c6SAndroid Build Coastguard Worker for automatic dependency tracking. If GNU make was not used, consider 651*28e138c6SAndroid Build Coastguard Worker re-running the configure script with MAKE="gmake" (or whatever is 652*28e138c6SAndroid Build Coastguard Worker necessary). You can also try re-running configure with the 653*28e138c6SAndroid Build Coastguard Worker '--disable-dependency-tracking' option to at least be able to build 654*28e138c6SAndroid Build Coastguard Worker the package (albeit without support for automatic dependency tracking).]) 655*28e138c6SAndroid Build Coastguard Worker fi 656*28e138c6SAndroid Build Coastguard Worker AS_UNSET([am_dirpart]) 657*28e138c6SAndroid Build Coastguard Worker AS_UNSET([am_filepart]) 658*28e138c6SAndroid Build Coastguard Worker AS_UNSET([am_mf]) 659*28e138c6SAndroid Build Coastguard Worker AS_UNSET([am_rc]) 660*28e138c6SAndroid Build Coastguard Worker rm -f conftest-deps.mk 661*28e138c6SAndroid Build Coastguard Worker} 662*28e138c6SAndroid Build Coastguard Worker])# _AM_OUTPUT_DEPENDENCY_COMMANDS 663*28e138c6SAndroid Build Coastguard Worker 664*28e138c6SAndroid Build Coastguard Worker 665*28e138c6SAndroid Build Coastguard Worker# AM_OUTPUT_DEPENDENCY_COMMANDS 666*28e138c6SAndroid Build Coastguard Worker# ----------------------------- 667*28e138c6SAndroid Build Coastguard Worker# This macro should only be invoked once -- use via AC_REQUIRE. 668*28e138c6SAndroid Build Coastguard Worker# 669*28e138c6SAndroid Build Coastguard Worker# This code is only required when automatic dependency tracking is enabled. 670*28e138c6SAndroid Build Coastguard Worker# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 671*28e138c6SAndroid Build Coastguard Worker# order to bootstrap the dependency handling code. 672*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 673*28e138c6SAndroid Build Coastguard Worker[AC_CONFIG_COMMANDS([depfiles], 674*28e138c6SAndroid Build Coastguard Worker [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 675*28e138c6SAndroid Build Coastguard Worker [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 676*28e138c6SAndroid Build Coastguard Worker 677*28e138c6SAndroid Build Coastguard Worker# Do all the work for Automake. -*- Autoconf -*- 678*28e138c6SAndroid Build Coastguard Worker 679*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1996-2021 Free Software Foundation, Inc. 680*28e138c6SAndroid Build Coastguard Worker# 681*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 682*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 683*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 684*28e138c6SAndroid Build Coastguard Worker 685*28e138c6SAndroid Build Coastguard Worker# This macro actually does too much. Some checks are only needed if 686*28e138c6SAndroid Build Coastguard Worker# your package does certain things. But this isn't really a big deal. 687*28e138c6SAndroid Build Coastguard Worker 688*28e138c6SAndroid Build Coastguard Workerdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 689*28e138c6SAndroid Build Coastguard Workerm4_define([AC_PROG_CC], 690*28e138c6SAndroid Build Coastguard Workerm4_defn([AC_PROG_CC]) 691*28e138c6SAndroid Build Coastguard Worker[_AM_PROG_CC_C_O 692*28e138c6SAndroid Build Coastguard Worker]) 693*28e138c6SAndroid Build Coastguard Worker 694*28e138c6SAndroid Build Coastguard Worker# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 695*28e138c6SAndroid Build Coastguard Worker# AM_INIT_AUTOMAKE([OPTIONS]) 696*28e138c6SAndroid Build Coastguard Worker# ----------------------------------------------- 697*28e138c6SAndroid Build Coastguard Worker# The call with PACKAGE and VERSION arguments is the old style 698*28e138c6SAndroid Build Coastguard Worker# call (pre autoconf-2.50), which is being phased out. PACKAGE 699*28e138c6SAndroid Build Coastguard Worker# and VERSION should now be passed to AC_INIT and removed from 700*28e138c6SAndroid Build Coastguard Worker# the call to AM_INIT_AUTOMAKE. 701*28e138c6SAndroid Build Coastguard Worker# We support both call styles for the transition. After 702*28e138c6SAndroid Build Coastguard Worker# the next Automake release, Autoconf can make the AC_INIT 703*28e138c6SAndroid Build Coastguard Worker# arguments mandatory, and then we can depend on a new Autoconf 704*28e138c6SAndroid Build Coastguard Worker# release and drop the old call support. 705*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_INIT_AUTOMAKE], 706*28e138c6SAndroid Build Coastguard Worker[AC_PREREQ([2.65])dnl 707*28e138c6SAndroid Build Coastguard Workerm4_ifdef([_$0_ALREADY_INIT], 708*28e138c6SAndroid Build Coastguard Worker [m4_fatal([$0 expanded multiple times 709*28e138c6SAndroid Build Coastguard Worker]m4_defn([_$0_ALREADY_INIT]))], 710*28e138c6SAndroid Build Coastguard Worker [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl 711*28e138c6SAndroid Build Coastguard Workerdnl Autoconf wants to disallow AM_ names. We explicitly allow 712*28e138c6SAndroid Build Coastguard Workerdnl the ones we care about. 713*28e138c6SAndroid Build Coastguard Workerm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 714*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 715*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AC_PROG_INSTALL])dnl 716*28e138c6SAndroid Build Coastguard Workerif test "`cd $srcdir && pwd`" != "`pwd`"; then 717*28e138c6SAndroid Build Coastguard Worker # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 718*28e138c6SAndroid Build Coastguard Worker # is not polluted with repeated "-I." 719*28e138c6SAndroid Build Coastguard Worker AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 720*28e138c6SAndroid Build Coastguard Worker # test to see if srcdir already configured 721*28e138c6SAndroid Build Coastguard Worker if test -f $srcdir/config.status; then 722*28e138c6SAndroid Build Coastguard Worker AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 723*28e138c6SAndroid Build Coastguard Worker fi 724*28e138c6SAndroid Build Coastguard Workerfi 725*28e138c6SAndroid Build Coastguard Worker 726*28e138c6SAndroid Build Coastguard Worker# test whether we have cygpath 727*28e138c6SAndroid Build Coastguard Workerif test -z "$CYGPATH_W"; then 728*28e138c6SAndroid Build Coastguard Worker if (cygpath --version) >/dev/null 2>/dev/null; then 729*28e138c6SAndroid Build Coastguard Worker CYGPATH_W='cygpath -w' 730*28e138c6SAndroid Build Coastguard Worker else 731*28e138c6SAndroid Build Coastguard Worker CYGPATH_W=echo 732*28e138c6SAndroid Build Coastguard Worker fi 733*28e138c6SAndroid Build Coastguard Workerfi 734*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([CYGPATH_W]) 735*28e138c6SAndroid Build Coastguard Worker 736*28e138c6SAndroid Build Coastguard Worker# Define the identity of the package. 737*28e138c6SAndroid Build Coastguard Workerdnl Distinguish between old-style and new-style calls. 738*28e138c6SAndroid Build Coastguard Workerm4_ifval([$2], 739*28e138c6SAndroid Build Coastguard Worker[AC_DIAGNOSE([obsolete], 740*28e138c6SAndroid Build Coastguard Worker [$0: two- and three-arguments forms are deprecated.]) 741*28e138c6SAndroid Build Coastguard Workerm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 742*28e138c6SAndroid Build Coastguard Worker AC_SUBST([PACKAGE], [$1])dnl 743*28e138c6SAndroid Build Coastguard Worker AC_SUBST([VERSION], [$2])], 744*28e138c6SAndroid Build Coastguard Worker[_AM_SET_OPTIONS([$1])dnl 745*28e138c6SAndroid Build Coastguard Workerdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 746*28e138c6SAndroid Build Coastguard Workerm4_if( 747*28e138c6SAndroid Build Coastguard Worker m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), 748*28e138c6SAndroid Build Coastguard Worker [ok:ok],, 749*28e138c6SAndroid Build Coastguard Worker [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 750*28e138c6SAndroid Build Coastguard Worker AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 751*28e138c6SAndroid Build Coastguard Worker AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 752*28e138c6SAndroid Build Coastguard Worker 753*28e138c6SAndroid Build Coastguard Worker_AM_IF_OPTION([no-define],, 754*28e138c6SAndroid Build Coastguard Worker[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 755*28e138c6SAndroid Build Coastguard Worker AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 756*28e138c6SAndroid Build Coastguard Worker 757*28e138c6SAndroid Build Coastguard Worker# Some tools Automake needs. 758*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_SANITY_CHECK])dnl 759*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AC_ARG_PROGRAM])dnl 760*28e138c6SAndroid Build Coastguard WorkerAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 761*28e138c6SAndroid Build Coastguard WorkerAM_MISSING_PROG([AUTOCONF], [autoconf]) 762*28e138c6SAndroid Build Coastguard WorkerAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 763*28e138c6SAndroid Build Coastguard WorkerAM_MISSING_PROG([AUTOHEADER], [autoheader]) 764*28e138c6SAndroid Build Coastguard WorkerAM_MISSING_PROG([MAKEINFO], [makeinfo]) 765*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 766*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 767*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AC_PROG_MKDIR_P])dnl 768*28e138c6SAndroid Build Coastguard Worker# For better backward compatibility. To be removed once Automake 1.9.x 769*28e138c6SAndroid Build Coastguard Worker# dies out for good. For more background, see: 770*28e138c6SAndroid Build Coastguard Worker# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 771*28e138c6SAndroid Build Coastguard Worker# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 772*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 773*28e138c6SAndroid Build Coastguard Worker# We need awk for the "check" target (and possibly the TAP driver). The 774*28e138c6SAndroid Build Coastguard Worker# system "awk" is bad on some platforms. 775*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AC_PROG_AWK])dnl 776*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AC_PROG_MAKE_SET])dnl 777*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_SET_LEADING_DOT])dnl 778*28e138c6SAndroid Build Coastguard Worker_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 779*28e138c6SAndroid Build Coastguard Worker [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 780*28e138c6SAndroid Build Coastguard Worker [_AM_PROG_TAR([v7])])]) 781*28e138c6SAndroid Build Coastguard Worker_AM_IF_OPTION([no-dependencies],, 782*28e138c6SAndroid Build Coastguard Worker[AC_PROVIDE_IFELSE([AC_PROG_CC], 783*28e138c6SAndroid Build Coastguard Worker [_AM_DEPENDENCIES([CC])], 784*28e138c6SAndroid Build Coastguard Worker [m4_define([AC_PROG_CC], 785*28e138c6SAndroid Build Coastguard Worker m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 786*28e138c6SAndroid Build Coastguard WorkerAC_PROVIDE_IFELSE([AC_PROG_CXX], 787*28e138c6SAndroid Build Coastguard Worker [_AM_DEPENDENCIES([CXX])], 788*28e138c6SAndroid Build Coastguard Worker [m4_define([AC_PROG_CXX], 789*28e138c6SAndroid Build Coastguard Worker m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 790*28e138c6SAndroid Build Coastguard WorkerAC_PROVIDE_IFELSE([AC_PROG_OBJC], 791*28e138c6SAndroid Build Coastguard Worker [_AM_DEPENDENCIES([OBJC])], 792*28e138c6SAndroid Build Coastguard Worker [m4_define([AC_PROG_OBJC], 793*28e138c6SAndroid Build Coastguard Worker m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 794*28e138c6SAndroid Build Coastguard WorkerAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 795*28e138c6SAndroid Build Coastguard Worker [_AM_DEPENDENCIES([OBJCXX])], 796*28e138c6SAndroid Build Coastguard Worker [m4_define([AC_PROG_OBJCXX], 797*28e138c6SAndroid Build Coastguard Worker m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 798*28e138c6SAndroid Build Coastguard Worker]) 799*28e138c6SAndroid Build Coastguard Worker# Variables for tags utilities; see am/tags.am 800*28e138c6SAndroid Build Coastguard Workerif test -z "$CTAGS"; then 801*28e138c6SAndroid Build Coastguard Worker CTAGS=ctags 802*28e138c6SAndroid Build Coastguard Workerfi 803*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([CTAGS]) 804*28e138c6SAndroid Build Coastguard Workerif test -z "$ETAGS"; then 805*28e138c6SAndroid Build Coastguard Worker ETAGS=etags 806*28e138c6SAndroid Build Coastguard Workerfi 807*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([ETAGS]) 808*28e138c6SAndroid Build Coastguard Workerif test -z "$CSCOPE"; then 809*28e138c6SAndroid Build Coastguard Worker CSCOPE=cscope 810*28e138c6SAndroid Build Coastguard Workerfi 811*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([CSCOPE]) 812*28e138c6SAndroid Build Coastguard Worker 813*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE([AM_SILENT_RULES])dnl 814*28e138c6SAndroid Build Coastguard Workerdnl The testsuite driver may need to know about EXEEXT, so add the 815*28e138c6SAndroid Build Coastguard Workerdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 816*28e138c6SAndroid Build Coastguard Workerdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 817*28e138c6SAndroid Build Coastguard WorkerAC_CONFIG_COMMANDS_PRE(dnl 818*28e138c6SAndroid Build Coastguard Worker[m4_provide_if([_AM_COMPILER_EXEEXT], 819*28e138c6SAndroid Build Coastguard Worker [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 820*28e138c6SAndroid Build Coastguard Worker 821*28e138c6SAndroid Build Coastguard Worker# POSIX will say in a future version that running "rm -f" with no argument 822*28e138c6SAndroid Build Coastguard Worker# is OK; and we want to be able to make that assumption in our Makefile 823*28e138c6SAndroid Build Coastguard Worker# recipes. So use an aggressive probe to check that the usage we want is 824*28e138c6SAndroid Build Coastguard Worker# actually supported "in the wild" to an acceptable degree. 825*28e138c6SAndroid Build Coastguard Worker# See automake bug#10828. 826*28e138c6SAndroid Build Coastguard Worker# To make any issue more visible, cause the running configure to be aborted 827*28e138c6SAndroid Build Coastguard Worker# by default if the 'rm' program in use doesn't match our expectations; the 828*28e138c6SAndroid Build Coastguard Worker# user can still override this though. 829*28e138c6SAndroid Build Coastguard Workerif rm -f && rm -fr && rm -rf; then : OK; else 830*28e138c6SAndroid Build Coastguard Worker cat >&2 <<'END' 831*28e138c6SAndroid Build Coastguard WorkerOops! 832*28e138c6SAndroid Build Coastguard Worker 833*28e138c6SAndroid Build Coastguard WorkerYour 'rm' program seems unable to run without file operands specified 834*28e138c6SAndroid Build Coastguard Workeron the command line, even when the '-f' option is present. This is contrary 835*28e138c6SAndroid Build Coastguard Workerto the behaviour of most rm programs out there, and not conforming with 836*28e138c6SAndroid Build Coastguard Workerthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 837*28e138c6SAndroid Build Coastguard Worker 838*28e138c6SAndroid Build Coastguard WorkerPlease tell [email protected] about your system, including the value 839*28e138c6SAndroid Build Coastguard Workerof your $PATH and any error possibly output before this message. This 840*28e138c6SAndroid Build Coastguard Workercan help us improve future automake versions. 841*28e138c6SAndroid Build Coastguard Worker 842*28e138c6SAndroid Build Coastguard WorkerEND 843*28e138c6SAndroid Build Coastguard Worker if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 844*28e138c6SAndroid Build Coastguard Worker echo 'Configuration will proceed anyway, since you have set the' >&2 845*28e138c6SAndroid Build Coastguard Worker echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 846*28e138c6SAndroid Build Coastguard Worker echo >&2 847*28e138c6SAndroid Build Coastguard Worker else 848*28e138c6SAndroid Build Coastguard Worker cat >&2 <<'END' 849*28e138c6SAndroid Build Coastguard WorkerAborting the configuration process, to ensure you take notice of the issue. 850*28e138c6SAndroid Build Coastguard Worker 851*28e138c6SAndroid Build Coastguard WorkerYou can download and install GNU coreutils to get an 'rm' implementation 852*28e138c6SAndroid Build Coastguard Workerthat behaves properly: <https://www.gnu.org/software/coreutils/>. 853*28e138c6SAndroid Build Coastguard Worker 854*28e138c6SAndroid Build Coastguard WorkerIf you want to complete the configuration process using your problematic 855*28e138c6SAndroid Build Coastguard Worker'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 856*28e138c6SAndroid Build Coastguard Workerto "yes", and re-run configure. 857*28e138c6SAndroid Build Coastguard Worker 858*28e138c6SAndroid Build Coastguard WorkerEND 859*28e138c6SAndroid Build Coastguard Worker AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 860*28e138c6SAndroid Build Coastguard Worker fi 861*28e138c6SAndroid Build Coastguard Workerfi 862*28e138c6SAndroid Build Coastguard Workerdnl The trailing newline in this macro's definition is deliberate, for 863*28e138c6SAndroid Build Coastguard Workerdnl backward compatibility and to allow trailing 'dnl'-style comments 864*28e138c6SAndroid Build Coastguard Workerdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 865*28e138c6SAndroid Build Coastguard Worker]) 866*28e138c6SAndroid Build Coastguard Worker 867*28e138c6SAndroid Build Coastguard Workerdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 868*28e138c6SAndroid Build Coastguard Workerdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 869*28e138c6SAndroid Build Coastguard Workerdnl mangled by Autoconf and run in a shell conditional statement. 870*28e138c6SAndroid Build Coastguard Workerm4_define([_AC_COMPILER_EXEEXT], 871*28e138c6SAndroid Build Coastguard Workerm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 872*28e138c6SAndroid Build Coastguard Worker 873*28e138c6SAndroid Build Coastguard Worker# When config.status generates a header, we must update the stamp-h file. 874*28e138c6SAndroid Build Coastguard Worker# This file resides in the same directory as the config header 875*28e138c6SAndroid Build Coastguard Worker# that is generated. The stamp files are numbered to have different names. 876*28e138c6SAndroid Build Coastguard Worker 877*28e138c6SAndroid Build Coastguard Worker# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 878*28e138c6SAndroid Build Coastguard Worker# loop where config.status creates the headers, so we can generate 879*28e138c6SAndroid Build Coastguard Worker# our stamp files there. 880*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 881*28e138c6SAndroid Build Coastguard Worker[# Compute $1's index in $config_headers. 882*28e138c6SAndroid Build Coastguard Worker_am_arg=$1 883*28e138c6SAndroid Build Coastguard Worker_am_stamp_count=1 884*28e138c6SAndroid Build Coastguard Workerfor _am_header in $config_headers :; do 885*28e138c6SAndroid Build Coastguard Worker case $_am_header in 886*28e138c6SAndroid Build Coastguard Worker $_am_arg | $_am_arg:* ) 887*28e138c6SAndroid Build Coastguard Worker break ;; 888*28e138c6SAndroid Build Coastguard Worker * ) 889*28e138c6SAndroid Build Coastguard Worker _am_stamp_count=`expr $_am_stamp_count + 1` ;; 890*28e138c6SAndroid Build Coastguard Worker esac 891*28e138c6SAndroid Build Coastguard Workerdone 892*28e138c6SAndroid Build Coastguard Workerecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 893*28e138c6SAndroid Build Coastguard Worker 894*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2001-2021 Free Software Foundation, Inc. 895*28e138c6SAndroid Build Coastguard Worker# 896*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 897*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 898*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 899*28e138c6SAndroid Build Coastguard Worker 900*28e138c6SAndroid Build Coastguard Worker# AM_PROG_INSTALL_SH 901*28e138c6SAndroid Build Coastguard Worker# ------------------ 902*28e138c6SAndroid Build Coastguard Worker# Define $install_sh. 903*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_PROG_INSTALL_SH], 904*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 905*28e138c6SAndroid Build Coastguard Workerif test x"${install_sh+set}" != xset; then 906*28e138c6SAndroid Build Coastguard Worker case $am_aux_dir in 907*28e138c6SAndroid Build Coastguard Worker *\ * | *\ *) 908*28e138c6SAndroid Build Coastguard Worker install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 909*28e138c6SAndroid Build Coastguard Worker *) 910*28e138c6SAndroid Build Coastguard Worker install_sh="\${SHELL} $am_aux_dir/install-sh" 911*28e138c6SAndroid Build Coastguard Worker esac 912*28e138c6SAndroid Build Coastguard Workerfi 913*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([install_sh])]) 914*28e138c6SAndroid Build Coastguard Worker 915*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2003-2021 Free Software Foundation, Inc. 916*28e138c6SAndroid Build Coastguard Worker# 917*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 918*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 919*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 920*28e138c6SAndroid Build Coastguard Worker 921*28e138c6SAndroid Build Coastguard Worker# Check whether the underlying file-system supports filenames 922*28e138c6SAndroid Build Coastguard Worker# with a leading dot. For instance MS-DOS doesn't. 923*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_SET_LEADING_DOT], 924*28e138c6SAndroid Build Coastguard Worker[rm -rf .tst 2>/dev/null 925*28e138c6SAndroid Build Coastguard Workermkdir .tst 2>/dev/null 926*28e138c6SAndroid Build Coastguard Workerif test -d .tst; then 927*28e138c6SAndroid Build Coastguard Worker am__leading_dot=. 928*28e138c6SAndroid Build Coastguard Workerelse 929*28e138c6SAndroid Build Coastguard Worker am__leading_dot=_ 930*28e138c6SAndroid Build Coastguard Workerfi 931*28e138c6SAndroid Build Coastguard Workerrmdir .tst 2>/dev/null 932*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([am__leading_dot])]) 933*28e138c6SAndroid Build Coastguard Worker 934*28e138c6SAndroid Build Coastguard Worker# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 935*28e138c6SAndroid Build Coastguard Worker# From Jim Meyering 936*28e138c6SAndroid Build Coastguard Worker 937*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1996-2021 Free Software Foundation, Inc. 938*28e138c6SAndroid Build Coastguard Worker# 939*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 940*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 941*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 942*28e138c6SAndroid Build Coastguard Worker 943*28e138c6SAndroid Build Coastguard Worker# AM_MAINTAINER_MODE([DEFAULT-MODE]) 944*28e138c6SAndroid Build Coastguard Worker# ---------------------------------- 945*28e138c6SAndroid Build Coastguard Worker# Control maintainer-specific portions of Makefiles. 946*28e138c6SAndroid Build Coastguard Worker# Default is to disable them, unless 'enable' is passed literally. 947*28e138c6SAndroid Build Coastguard Worker# For symmetry, 'disable' may be passed as well. Anyway, the user 948*28e138c6SAndroid Build Coastguard Worker# can override the default with the --enable/--disable switch. 949*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_MAINTAINER_MODE], 950*28e138c6SAndroid Build Coastguard Worker[m4_case(m4_default([$1], [disable]), 951*28e138c6SAndroid Build Coastguard Worker [enable], [m4_define([am_maintainer_other], [disable])], 952*28e138c6SAndroid Build Coastguard Worker [disable], [m4_define([am_maintainer_other], [enable])], 953*28e138c6SAndroid Build Coastguard Worker [m4_define([am_maintainer_other], [enable]) 954*28e138c6SAndroid Build Coastguard Worker m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 955*28e138c6SAndroid Build Coastguard WorkerAC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 956*28e138c6SAndroid Build Coastguard Worker dnl maintainer-mode's default is 'disable' unless 'enable' is passed 957*28e138c6SAndroid Build Coastguard Worker AC_ARG_ENABLE([maintainer-mode], 958*28e138c6SAndroid Build Coastguard Worker [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 959*28e138c6SAndroid Build Coastguard Worker am_maintainer_other[ make rules and dependencies not useful 960*28e138c6SAndroid Build Coastguard Worker (and sometimes confusing) to the casual installer])], 961*28e138c6SAndroid Build Coastguard Worker [USE_MAINTAINER_MODE=$enableval], 962*28e138c6SAndroid Build Coastguard Worker [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 963*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 964*28e138c6SAndroid Build Coastguard Worker AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 965*28e138c6SAndroid Build Coastguard Worker MAINT=$MAINTAINER_MODE_TRUE 966*28e138c6SAndroid Build Coastguard Worker AC_SUBST([MAINT])dnl 967*28e138c6SAndroid Build Coastguard Worker] 968*28e138c6SAndroid Build Coastguard Worker) 969*28e138c6SAndroid Build Coastguard Worker 970*28e138c6SAndroid Build Coastguard Worker# Check to see how 'make' treats includes. -*- Autoconf -*- 971*28e138c6SAndroid Build Coastguard Worker 972*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2001-2021 Free Software Foundation, Inc. 973*28e138c6SAndroid Build Coastguard Worker# 974*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 975*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 976*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 977*28e138c6SAndroid Build Coastguard Worker 978*28e138c6SAndroid Build Coastguard Worker# AM_MAKE_INCLUDE() 979*28e138c6SAndroid Build Coastguard Worker# ----------------- 980*28e138c6SAndroid Build Coastguard Worker# Check whether make has an 'include' directive that can support all 981*28e138c6SAndroid Build Coastguard Worker# the idioms we need for our automatic dependency tracking code. 982*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_MAKE_INCLUDE], 983*28e138c6SAndroid Build Coastguard Worker[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 984*28e138c6SAndroid Build Coastguard Workercat > confinc.mk << 'END' 985*28e138c6SAndroid Build Coastguard Workeram__doit: 986*28e138c6SAndroid Build Coastguard Worker @echo this is the am__doit target >confinc.out 987*28e138c6SAndroid Build Coastguard Worker.PHONY: am__doit 988*28e138c6SAndroid Build Coastguard WorkerEND 989*28e138c6SAndroid Build Coastguard Workeram__include="#" 990*28e138c6SAndroid Build Coastguard Workeram__quote= 991*28e138c6SAndroid Build Coastguard Worker# BSD make does it like this. 992*28e138c6SAndroid Build Coastguard Workerecho '.include "confinc.mk" # ignored' > confmf.BSD 993*28e138c6SAndroid Build Coastguard Worker# Other make implementations (GNU, Solaris 10, AIX) do it like this. 994*28e138c6SAndroid Build Coastguard Workerecho 'include confinc.mk # ignored' > confmf.GNU 995*28e138c6SAndroid Build Coastguard Worker_am_result=no 996*28e138c6SAndroid Build Coastguard Workerfor s in GNU BSD; do 997*28e138c6SAndroid Build Coastguard Worker AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 998*28e138c6SAndroid Build Coastguard Worker AS_CASE([$?:`cat confinc.out 2>/dev/null`], 999*28e138c6SAndroid Build Coastguard Worker ['0:this is the am__doit target'], 1000*28e138c6SAndroid Build Coastguard Worker [AS_CASE([$s], 1001*28e138c6SAndroid Build Coastguard Worker [BSD], [am__include='.include' am__quote='"'], 1002*28e138c6SAndroid Build Coastguard Worker [am__include='include' am__quote=''])]) 1003*28e138c6SAndroid Build Coastguard Worker if test "$am__include" != "#"; then 1004*28e138c6SAndroid Build Coastguard Worker _am_result="yes ($s style)" 1005*28e138c6SAndroid Build Coastguard Worker break 1006*28e138c6SAndroid Build Coastguard Worker fi 1007*28e138c6SAndroid Build Coastguard Workerdone 1008*28e138c6SAndroid Build Coastguard Workerrm -f confinc.* confmf.* 1009*28e138c6SAndroid Build Coastguard WorkerAC_MSG_RESULT([${_am_result}]) 1010*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([am__include])]) 1011*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([am__quote])]) 1012*28e138c6SAndroid Build Coastguard Worker 1013*28e138c6SAndroid Build Coastguard Worker# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 1014*28e138c6SAndroid Build Coastguard Worker 1015*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1997-2021 Free Software Foundation, Inc. 1016*28e138c6SAndroid Build Coastguard Worker# 1017*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1018*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1019*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1020*28e138c6SAndroid Build Coastguard Worker 1021*28e138c6SAndroid Build Coastguard Worker# AM_MISSING_PROG(NAME, PROGRAM) 1022*28e138c6SAndroid Build Coastguard Worker# ------------------------------ 1023*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_MISSING_PROG], 1024*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AM_MISSING_HAS_RUN]) 1025*28e138c6SAndroid Build Coastguard Worker$1=${$1-"${am_missing_run}$2"} 1026*28e138c6SAndroid Build Coastguard WorkerAC_SUBST($1)]) 1027*28e138c6SAndroid Build Coastguard Worker 1028*28e138c6SAndroid Build Coastguard Worker# AM_MISSING_HAS_RUN 1029*28e138c6SAndroid Build Coastguard Worker# ------------------ 1030*28e138c6SAndroid Build Coastguard Worker# Define MISSING if not defined so far and test if it is modern enough. 1031*28e138c6SAndroid Build Coastguard Worker# If it is, set am_missing_run to use it, otherwise, to nothing. 1032*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_MISSING_HAS_RUN], 1033*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1034*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE_AUX_FILE([missing])dnl 1035*28e138c6SAndroid Build Coastguard Workerif test x"${MISSING+set}" != xset; then 1036*28e138c6SAndroid Build Coastguard Worker MISSING="\${SHELL} '$am_aux_dir/missing'" 1037*28e138c6SAndroid Build Coastguard Workerfi 1038*28e138c6SAndroid Build Coastguard Worker# Use eval to expand $SHELL 1039*28e138c6SAndroid Build Coastguard Workerif eval "$MISSING --is-lightweight"; then 1040*28e138c6SAndroid Build Coastguard Worker am_missing_run="$MISSING " 1041*28e138c6SAndroid Build Coastguard Workerelse 1042*28e138c6SAndroid Build Coastguard Worker am_missing_run= 1043*28e138c6SAndroid Build Coastguard Worker AC_MSG_WARN(['missing' script is too old or missing]) 1044*28e138c6SAndroid Build Coastguard Workerfi 1045*28e138c6SAndroid Build Coastguard Worker]) 1046*28e138c6SAndroid Build Coastguard Worker 1047*28e138c6SAndroid Build Coastguard Worker# Helper functions for option handling. -*- Autoconf -*- 1048*28e138c6SAndroid Build Coastguard Worker 1049*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2001-2021 Free Software Foundation, Inc. 1050*28e138c6SAndroid Build Coastguard Worker# 1051*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1052*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1053*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1054*28e138c6SAndroid Build Coastguard Worker 1055*28e138c6SAndroid Build Coastguard Worker# _AM_MANGLE_OPTION(NAME) 1056*28e138c6SAndroid Build Coastguard Worker# ----------------------- 1057*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_MANGLE_OPTION], 1058*28e138c6SAndroid Build Coastguard Worker[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 1059*28e138c6SAndroid Build Coastguard Worker 1060*28e138c6SAndroid Build Coastguard Worker# _AM_SET_OPTION(NAME) 1061*28e138c6SAndroid Build Coastguard Worker# -------------------- 1062*28e138c6SAndroid Build Coastguard Worker# Set option NAME. Presently that only means defining a flag for this option. 1063*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_SET_OPTION], 1064*28e138c6SAndroid Build Coastguard Worker[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 1065*28e138c6SAndroid Build Coastguard Worker 1066*28e138c6SAndroid Build Coastguard Worker# _AM_SET_OPTIONS(OPTIONS) 1067*28e138c6SAndroid Build Coastguard Worker# ------------------------ 1068*28e138c6SAndroid Build Coastguard Worker# OPTIONS is a space-separated list of Automake options. 1069*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_SET_OPTIONS], 1070*28e138c6SAndroid Build Coastguard Worker[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1071*28e138c6SAndroid Build Coastguard Worker 1072*28e138c6SAndroid Build Coastguard Worker# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 1073*28e138c6SAndroid Build Coastguard Worker# ------------------------------------------- 1074*28e138c6SAndroid Build Coastguard Worker# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 1075*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_IF_OPTION], 1076*28e138c6SAndroid Build Coastguard Worker[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1077*28e138c6SAndroid Build Coastguard Worker 1078*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1999-2021 Free Software Foundation, Inc. 1079*28e138c6SAndroid Build Coastguard Worker# 1080*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1081*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1082*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1083*28e138c6SAndroid Build Coastguard Worker 1084*28e138c6SAndroid Build Coastguard Worker# _AM_PROG_CC_C_O 1085*28e138c6SAndroid Build Coastguard Worker# --------------- 1086*28e138c6SAndroid Build Coastguard Worker# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 1087*28e138c6SAndroid Build Coastguard Worker# to automatically call this. 1088*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_PROG_CC_C_O], 1089*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1090*28e138c6SAndroid Build Coastguard WorkerAC_REQUIRE_AUX_FILE([compile])dnl 1091*28e138c6SAndroid Build Coastguard WorkerAC_LANG_PUSH([C])dnl 1092*28e138c6SAndroid Build Coastguard WorkerAC_CACHE_CHECK( 1093*28e138c6SAndroid Build Coastguard Worker [whether $CC understands -c and -o together], 1094*28e138c6SAndroid Build Coastguard Worker [am_cv_prog_cc_c_o], 1095*28e138c6SAndroid Build Coastguard Worker [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 1096*28e138c6SAndroid Build Coastguard Worker # Make sure it works both with $CC and with simple cc. 1097*28e138c6SAndroid Build Coastguard Worker # Following AC_PROG_CC_C_O, we do the test twice because some 1098*28e138c6SAndroid Build Coastguard Worker # compilers refuse to overwrite an existing .o file with -o, 1099*28e138c6SAndroid Build Coastguard Worker # though they will create one. 1100*28e138c6SAndroid Build Coastguard Worker am_cv_prog_cc_c_o=yes 1101*28e138c6SAndroid Build Coastguard Worker for am_i in 1 2; do 1102*28e138c6SAndroid Build Coastguard Worker if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 1103*28e138c6SAndroid Build Coastguard Worker && test -f conftest2.$ac_objext; then 1104*28e138c6SAndroid Build Coastguard Worker : OK 1105*28e138c6SAndroid Build Coastguard Worker else 1106*28e138c6SAndroid Build Coastguard Worker am_cv_prog_cc_c_o=no 1107*28e138c6SAndroid Build Coastguard Worker break 1108*28e138c6SAndroid Build Coastguard Worker fi 1109*28e138c6SAndroid Build Coastguard Worker done 1110*28e138c6SAndroid Build Coastguard Worker rm -f core conftest* 1111*28e138c6SAndroid Build Coastguard Worker unset am_i]) 1112*28e138c6SAndroid Build Coastguard Workerif test "$am_cv_prog_cc_c_o" != yes; then 1113*28e138c6SAndroid Build Coastguard Worker # Losing compiler, so override with the script. 1114*28e138c6SAndroid Build Coastguard Worker # FIXME: It is wrong to rewrite CC. 1115*28e138c6SAndroid Build Coastguard Worker # But if we don't then we get into trouble of one sort or another. 1116*28e138c6SAndroid Build Coastguard Worker # A longer-term fix would be to have automake use am__CC in this case, 1117*28e138c6SAndroid Build Coastguard Worker # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 1118*28e138c6SAndroid Build Coastguard Worker CC="$am_aux_dir/compile $CC" 1119*28e138c6SAndroid Build Coastguard Workerfi 1120*28e138c6SAndroid Build Coastguard WorkerAC_LANG_POP([C])]) 1121*28e138c6SAndroid Build Coastguard Worker 1122*28e138c6SAndroid Build Coastguard Worker# For backward compatibility. 1123*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 1124*28e138c6SAndroid Build Coastguard Worker 1125*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2001-2021 Free Software Foundation, Inc. 1126*28e138c6SAndroid Build Coastguard Worker# 1127*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1128*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1129*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1130*28e138c6SAndroid Build Coastguard Worker 1131*28e138c6SAndroid Build Coastguard Worker# AM_RUN_LOG(COMMAND) 1132*28e138c6SAndroid Build Coastguard Worker# ------------------- 1133*28e138c6SAndroid Build Coastguard Worker# Run COMMAND, save the exit status in ac_status, and log it. 1134*28e138c6SAndroid Build Coastguard Worker# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 1135*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_RUN_LOG], 1136*28e138c6SAndroid Build Coastguard Worker[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 1137*28e138c6SAndroid Build Coastguard Worker ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 1138*28e138c6SAndroid Build Coastguard Worker ac_status=$? 1139*28e138c6SAndroid Build Coastguard Worker echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1140*28e138c6SAndroid Build Coastguard Worker (exit $ac_status); }]) 1141*28e138c6SAndroid Build Coastguard Worker 1142*28e138c6SAndroid Build Coastguard Worker# Check to make sure that the build environment is sane. -*- Autoconf -*- 1143*28e138c6SAndroid Build Coastguard Worker 1144*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 1996-2021 Free Software Foundation, Inc. 1145*28e138c6SAndroid Build Coastguard Worker# 1146*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1147*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1148*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1149*28e138c6SAndroid Build Coastguard Worker 1150*28e138c6SAndroid Build Coastguard Worker# AM_SANITY_CHECK 1151*28e138c6SAndroid Build Coastguard Worker# --------------- 1152*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_SANITY_CHECK], 1153*28e138c6SAndroid Build Coastguard Worker[AC_MSG_CHECKING([whether build environment is sane]) 1154*28e138c6SAndroid Build Coastguard Worker# Reject unsafe characters in $srcdir or the absolute working directory 1155*28e138c6SAndroid Build Coastguard Worker# name. Accept space and tab only in the latter. 1156*28e138c6SAndroid Build Coastguard Workeram_lf=' 1157*28e138c6SAndroid Build Coastguard Worker' 1158*28e138c6SAndroid Build Coastguard Workercase `pwd` in 1159*28e138c6SAndroid Build Coastguard Worker *[[\\\"\#\$\&\'\`$am_lf]]*) 1160*28e138c6SAndroid Build Coastguard Worker AC_MSG_ERROR([unsafe absolute working directory name]);; 1161*28e138c6SAndroid Build Coastguard Workeresac 1162*28e138c6SAndroid Build Coastguard Workercase $srcdir in 1163*28e138c6SAndroid Build Coastguard Worker *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1164*28e138c6SAndroid Build Coastguard Worker AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 1165*28e138c6SAndroid Build Coastguard Workeresac 1166*28e138c6SAndroid Build Coastguard Worker 1167*28e138c6SAndroid Build Coastguard Worker# Do 'set' in a subshell so we don't clobber the current shell's 1168*28e138c6SAndroid Build Coastguard Worker# arguments. Must try -L first in case configure is actually a 1169*28e138c6SAndroid Build Coastguard Worker# symlink; some systems play weird games with the mod time of symlinks 1170*28e138c6SAndroid Build Coastguard Worker# (eg FreeBSD returns the mod time of the symlink's containing 1171*28e138c6SAndroid Build Coastguard Worker# directory). 1172*28e138c6SAndroid Build Coastguard Workerif ( 1173*28e138c6SAndroid Build Coastguard Worker am_has_slept=no 1174*28e138c6SAndroid Build Coastguard Worker for am_try in 1 2; do 1175*28e138c6SAndroid Build Coastguard Worker echo "timestamp, slept: $am_has_slept" > conftest.file 1176*28e138c6SAndroid Build Coastguard Worker set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1177*28e138c6SAndroid Build Coastguard Worker if test "$[*]" = "X"; then 1178*28e138c6SAndroid Build Coastguard Worker # -L didn't work. 1179*28e138c6SAndroid Build Coastguard Worker set X `ls -t "$srcdir/configure" conftest.file` 1180*28e138c6SAndroid Build Coastguard Worker fi 1181*28e138c6SAndroid Build Coastguard Worker if test "$[*]" != "X $srcdir/configure conftest.file" \ 1182*28e138c6SAndroid Build Coastguard Worker && test "$[*]" != "X conftest.file $srcdir/configure"; then 1183*28e138c6SAndroid Build Coastguard Worker 1184*28e138c6SAndroid Build Coastguard Worker # If neither matched, then we have a broken ls. This can happen 1185*28e138c6SAndroid Build Coastguard Worker # if, for instance, CONFIG_SHELL is bash and it inherits a 1186*28e138c6SAndroid Build Coastguard Worker # broken ls alias from the environment. This has actually 1187*28e138c6SAndroid Build Coastguard Worker # happened. Such a system could not be considered "sane". 1188*28e138c6SAndroid Build Coastguard Worker AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1189*28e138c6SAndroid Build Coastguard Worker alias in your environment]) 1190*28e138c6SAndroid Build Coastguard Worker fi 1191*28e138c6SAndroid Build Coastguard Worker if test "$[2]" = conftest.file || test $am_try -eq 2; then 1192*28e138c6SAndroid Build Coastguard Worker break 1193*28e138c6SAndroid Build Coastguard Worker fi 1194*28e138c6SAndroid Build Coastguard Worker # Just in case. 1195*28e138c6SAndroid Build Coastguard Worker sleep 1 1196*28e138c6SAndroid Build Coastguard Worker am_has_slept=yes 1197*28e138c6SAndroid Build Coastguard Worker done 1198*28e138c6SAndroid Build Coastguard Worker test "$[2]" = conftest.file 1199*28e138c6SAndroid Build Coastguard Worker ) 1200*28e138c6SAndroid Build Coastguard Workerthen 1201*28e138c6SAndroid Build Coastguard Worker # Ok. 1202*28e138c6SAndroid Build Coastguard Worker : 1203*28e138c6SAndroid Build Coastguard Workerelse 1204*28e138c6SAndroid Build Coastguard Worker AC_MSG_ERROR([newly created file is older than distributed files! 1205*28e138c6SAndroid Build Coastguard WorkerCheck your system clock]) 1206*28e138c6SAndroid Build Coastguard Workerfi 1207*28e138c6SAndroid Build Coastguard WorkerAC_MSG_RESULT([yes]) 1208*28e138c6SAndroid Build Coastguard Worker# If we didn't sleep, we still need to ensure time stamps of config.status and 1209*28e138c6SAndroid Build Coastguard Worker# generated files are strictly newer. 1210*28e138c6SAndroid Build Coastguard Workeram_sleep_pid= 1211*28e138c6SAndroid Build Coastguard Workerif grep 'slept: no' conftest.file >/dev/null 2>&1; then 1212*28e138c6SAndroid Build Coastguard Worker ( sleep 1 ) & 1213*28e138c6SAndroid Build Coastguard Worker am_sleep_pid=$! 1214*28e138c6SAndroid Build Coastguard Workerfi 1215*28e138c6SAndroid Build Coastguard WorkerAC_CONFIG_COMMANDS_PRE( 1216*28e138c6SAndroid Build Coastguard Worker [AC_MSG_CHECKING([that generated files are newer than configure]) 1217*28e138c6SAndroid Build Coastguard Worker if test -n "$am_sleep_pid"; then 1218*28e138c6SAndroid Build Coastguard Worker # Hide warnings about reused PIDs. 1219*28e138c6SAndroid Build Coastguard Worker wait $am_sleep_pid 2>/dev/null 1220*28e138c6SAndroid Build Coastguard Worker fi 1221*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([done])]) 1222*28e138c6SAndroid Build Coastguard Workerrm -f conftest.file 1223*28e138c6SAndroid Build Coastguard Worker]) 1224*28e138c6SAndroid Build Coastguard Worker 1225*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2009-2021 Free Software Foundation, Inc. 1226*28e138c6SAndroid Build Coastguard Worker# 1227*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1228*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1229*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1230*28e138c6SAndroid Build Coastguard Worker 1231*28e138c6SAndroid Build Coastguard Worker# AM_SILENT_RULES([DEFAULT]) 1232*28e138c6SAndroid Build Coastguard Worker# -------------------------- 1233*28e138c6SAndroid Build Coastguard Worker# Enable less verbose build rules; with the default set to DEFAULT 1234*28e138c6SAndroid Build Coastguard Worker# ("yes" being less verbose, "no" or empty being verbose). 1235*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_SILENT_RULES], 1236*28e138c6SAndroid Build Coastguard Worker[AC_ARG_ENABLE([silent-rules], [dnl 1237*28e138c6SAndroid Build Coastguard WorkerAS_HELP_STRING( 1238*28e138c6SAndroid Build Coastguard Worker [--enable-silent-rules], 1239*28e138c6SAndroid Build Coastguard Worker [less verbose build output (undo: "make V=1")]) 1240*28e138c6SAndroid Build Coastguard WorkerAS_HELP_STRING( 1241*28e138c6SAndroid Build Coastguard Worker [--disable-silent-rules], 1242*28e138c6SAndroid Build Coastguard Worker [verbose build output (undo: "make V=0")])dnl 1243*28e138c6SAndroid Build Coastguard Worker]) 1244*28e138c6SAndroid Build Coastguard Workercase $enable_silent_rules in @%:@ ((( 1245*28e138c6SAndroid Build Coastguard Worker yes) AM_DEFAULT_VERBOSITY=0;; 1246*28e138c6SAndroid Build Coastguard Worker no) AM_DEFAULT_VERBOSITY=1;; 1247*28e138c6SAndroid Build Coastguard Worker *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1248*28e138c6SAndroid Build Coastguard Workeresac 1249*28e138c6SAndroid Build Coastguard Workerdnl 1250*28e138c6SAndroid Build Coastguard Workerdnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1251*28e138c6SAndroid Build Coastguard Workerdnl do not support nested variable expansions. 1252*28e138c6SAndroid Build Coastguard Workerdnl See automake bug#9928 and bug#10237. 1253*28e138c6SAndroid Build Coastguard Workeram_make=${MAKE-make} 1254*28e138c6SAndroid Build Coastguard WorkerAC_CACHE_CHECK([whether $am_make supports nested variables], 1255*28e138c6SAndroid Build Coastguard Worker [am_cv_make_support_nested_variables], 1256*28e138c6SAndroid Build Coastguard Worker [if AS_ECHO([['TRUE=$(BAR$(V)) 1257*28e138c6SAndroid Build Coastguard WorkerBAR0=false 1258*28e138c6SAndroid Build Coastguard WorkerBAR1=true 1259*28e138c6SAndroid Build Coastguard WorkerV=1 1260*28e138c6SAndroid Build Coastguard Workeram__doit: 1261*28e138c6SAndroid Build Coastguard Worker @$(TRUE) 1262*28e138c6SAndroid Build Coastguard Worker.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1263*28e138c6SAndroid Build Coastguard Worker am_cv_make_support_nested_variables=yes 1264*28e138c6SAndroid Build Coastguard Workerelse 1265*28e138c6SAndroid Build Coastguard Worker am_cv_make_support_nested_variables=no 1266*28e138c6SAndroid Build Coastguard Workerfi]) 1267*28e138c6SAndroid Build Coastguard Workerif test $am_cv_make_support_nested_variables = yes; then 1268*28e138c6SAndroid Build Coastguard Worker dnl Using '$V' instead of '$(V)' breaks IRIX make. 1269*28e138c6SAndroid Build Coastguard Worker AM_V='$(V)' 1270*28e138c6SAndroid Build Coastguard Worker AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1271*28e138c6SAndroid Build Coastguard Workerelse 1272*28e138c6SAndroid Build Coastguard Worker AM_V=$AM_DEFAULT_VERBOSITY 1273*28e138c6SAndroid Build Coastguard Worker AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1274*28e138c6SAndroid Build Coastguard Workerfi 1275*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([AM_V])dnl 1276*28e138c6SAndroid Build Coastguard WorkerAM_SUBST_NOTMAKE([AM_V])dnl 1277*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([AM_DEFAULT_V])dnl 1278*28e138c6SAndroid Build Coastguard WorkerAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1279*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1280*28e138c6SAndroid Build Coastguard WorkerAM_BACKSLASH='\' 1281*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([AM_BACKSLASH])dnl 1282*28e138c6SAndroid Build Coastguard Worker_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1283*28e138c6SAndroid Build Coastguard Worker]) 1284*28e138c6SAndroid Build Coastguard Worker 1285*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2001-2021 Free Software Foundation, Inc. 1286*28e138c6SAndroid Build Coastguard Worker# 1287*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1288*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1289*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1290*28e138c6SAndroid Build Coastguard Worker 1291*28e138c6SAndroid Build Coastguard Worker# AM_PROG_INSTALL_STRIP 1292*28e138c6SAndroid Build Coastguard Worker# --------------------- 1293*28e138c6SAndroid Build Coastguard Worker# One issue with vendor 'install' (even GNU) is that you can't 1294*28e138c6SAndroid Build Coastguard Worker# specify the program used to strip binaries. This is especially 1295*28e138c6SAndroid Build Coastguard Worker# annoying in cross-compiling environments, where the build's strip 1296*28e138c6SAndroid Build Coastguard Worker# is unlikely to handle the host's binaries. 1297*28e138c6SAndroid Build Coastguard Worker# Fortunately install-sh will honor a STRIPPROG variable, so we 1298*28e138c6SAndroid Build Coastguard Worker# always use install-sh in "make install-strip", and initialize 1299*28e138c6SAndroid Build Coastguard Worker# STRIPPROG with the value of the STRIP variable (set by the user). 1300*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_PROG_INSTALL_STRIP], 1301*28e138c6SAndroid Build Coastguard Worker[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1302*28e138c6SAndroid Build Coastguard Worker# Installed binaries are usually stripped using 'strip' when the user 1303*28e138c6SAndroid Build Coastguard Worker# run "make install-strip". However 'strip' might not be the right 1304*28e138c6SAndroid Build Coastguard Worker# tool to use in cross-compilation environments, therefore Automake 1305*28e138c6SAndroid Build Coastguard Worker# will honor the 'STRIP' environment variable to overrule this program. 1306*28e138c6SAndroid Build Coastguard Workerdnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1307*28e138c6SAndroid Build Coastguard Workerif test "$cross_compiling" != no; then 1308*28e138c6SAndroid Build Coastguard Worker AC_CHECK_TOOL([STRIP], [strip], :) 1309*28e138c6SAndroid Build Coastguard Workerfi 1310*28e138c6SAndroid Build Coastguard WorkerINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1311*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([INSTALL_STRIP_PROGRAM])]) 1312*28e138c6SAndroid Build Coastguard Worker 1313*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2006-2021 Free Software Foundation, Inc. 1314*28e138c6SAndroid Build Coastguard Worker# 1315*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1316*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1317*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1318*28e138c6SAndroid Build Coastguard Worker 1319*28e138c6SAndroid Build Coastguard Worker# _AM_SUBST_NOTMAKE(VARIABLE) 1320*28e138c6SAndroid Build Coastguard Worker# --------------------------- 1321*28e138c6SAndroid Build Coastguard Worker# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1322*28e138c6SAndroid Build Coastguard Worker# This macro is traced by Automake. 1323*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_SUBST_NOTMAKE]) 1324*28e138c6SAndroid Build Coastguard Worker 1325*28e138c6SAndroid Build Coastguard Worker# AM_SUBST_NOTMAKE(VARIABLE) 1326*28e138c6SAndroid Build Coastguard Worker# -------------------------- 1327*28e138c6SAndroid Build Coastguard Worker# Public sister of _AM_SUBST_NOTMAKE. 1328*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1329*28e138c6SAndroid Build Coastguard Worker 1330*28e138c6SAndroid Build Coastguard Worker# Check how to create a tarball. -*- Autoconf -*- 1331*28e138c6SAndroid Build Coastguard Worker 1332*28e138c6SAndroid Build Coastguard Worker# Copyright (C) 2004-2021 Free Software Foundation, Inc. 1333*28e138c6SAndroid Build Coastguard Worker# 1334*28e138c6SAndroid Build Coastguard Worker# This file is free software; the Free Software Foundation 1335*28e138c6SAndroid Build Coastguard Worker# gives unlimited permission to copy and/or distribute it, 1336*28e138c6SAndroid Build Coastguard Worker# with or without modifications, as long as this notice is preserved. 1337*28e138c6SAndroid Build Coastguard Worker 1338*28e138c6SAndroid Build Coastguard Worker# _AM_PROG_TAR(FORMAT) 1339*28e138c6SAndroid Build Coastguard Worker# -------------------- 1340*28e138c6SAndroid Build Coastguard Worker# Check how to create a tarball in format FORMAT. 1341*28e138c6SAndroid Build Coastguard Worker# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1342*28e138c6SAndroid Build Coastguard Worker# 1343*28e138c6SAndroid Build Coastguard Worker# Substitute a variable $(am__tar) that is a command 1344*28e138c6SAndroid Build Coastguard Worker# writing to stdout a FORMAT-tarball containing the directory 1345*28e138c6SAndroid Build Coastguard Worker# $tardir. 1346*28e138c6SAndroid Build Coastguard Worker# tardir=directory && $(am__tar) > result.tar 1347*28e138c6SAndroid Build Coastguard Worker# 1348*28e138c6SAndroid Build Coastguard Worker# Substitute a variable $(am__untar) that extract such 1349*28e138c6SAndroid Build Coastguard Worker# a tarball read from stdin. 1350*28e138c6SAndroid Build Coastguard Worker# $(am__untar) < result.tar 1351*28e138c6SAndroid Build Coastguard Worker# 1352*28e138c6SAndroid Build Coastguard WorkerAC_DEFUN([_AM_PROG_TAR], 1353*28e138c6SAndroid Build Coastguard Worker[# Always define AMTAR for backward compatibility. Yes, it's still used 1354*28e138c6SAndroid Build Coastguard Worker# in the wild :-( We should find a proper way to deprecate it ... 1355*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([AMTAR], ['$${TAR-tar}']) 1356*28e138c6SAndroid Build Coastguard Worker 1357*28e138c6SAndroid Build Coastguard Worker# We'll loop over all known methods to create a tar archive until one works. 1358*28e138c6SAndroid Build Coastguard Worker_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1359*28e138c6SAndroid Build Coastguard Worker 1360*28e138c6SAndroid Build Coastguard Workerm4_if([$1], [v7], 1361*28e138c6SAndroid Build Coastguard Worker [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1362*28e138c6SAndroid Build Coastguard Worker 1363*28e138c6SAndroid Build Coastguard Worker [m4_case([$1], 1364*28e138c6SAndroid Build Coastguard Worker [ustar], 1365*28e138c6SAndroid Build Coastguard Worker [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1366*28e138c6SAndroid Build Coastguard Worker # There is notably a 21 bits limit for the UID and the GID. In fact, 1367*28e138c6SAndroid Build Coastguard Worker # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1368*28e138c6SAndroid Build Coastguard Worker # and bug#13588). 1369*28e138c6SAndroid Build Coastguard Worker am_max_uid=2097151 # 2^21 - 1 1370*28e138c6SAndroid Build Coastguard Worker am_max_gid=$am_max_uid 1371*28e138c6SAndroid Build Coastguard Worker # The $UID and $GID variables are not portable, so we need to resort 1372*28e138c6SAndroid Build Coastguard Worker # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1373*28e138c6SAndroid Build Coastguard Worker # below are definitely unexpected, so allow the users to see them 1374*28e138c6SAndroid Build Coastguard Worker # (that is, avoid stderr redirection). 1375*28e138c6SAndroid Build Coastguard Worker am_uid=`id -u || echo unknown` 1376*28e138c6SAndroid Build Coastguard Worker am_gid=`id -g || echo unknown` 1377*28e138c6SAndroid Build Coastguard Worker AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1378*28e138c6SAndroid Build Coastguard Worker if test $am_uid -le $am_max_uid; then 1379*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([yes]) 1380*28e138c6SAndroid Build Coastguard Worker else 1381*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([no]) 1382*28e138c6SAndroid Build Coastguard Worker _am_tools=none 1383*28e138c6SAndroid Build Coastguard Worker fi 1384*28e138c6SAndroid Build Coastguard Worker AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1385*28e138c6SAndroid Build Coastguard Worker if test $am_gid -le $am_max_gid; then 1386*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([yes]) 1387*28e138c6SAndroid Build Coastguard Worker else 1388*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([no]) 1389*28e138c6SAndroid Build Coastguard Worker _am_tools=none 1390*28e138c6SAndroid Build Coastguard Worker fi], 1391*28e138c6SAndroid Build Coastguard Worker 1392*28e138c6SAndroid Build Coastguard Worker [pax], 1393*28e138c6SAndroid Build Coastguard Worker [], 1394*28e138c6SAndroid Build Coastguard Worker 1395*28e138c6SAndroid Build Coastguard Worker [m4_fatal([Unknown tar format])]) 1396*28e138c6SAndroid Build Coastguard Worker 1397*28e138c6SAndroid Build Coastguard Worker AC_MSG_CHECKING([how to create a $1 tar archive]) 1398*28e138c6SAndroid Build Coastguard Worker 1399*28e138c6SAndroid Build Coastguard Worker # Go ahead even if we have the value already cached. We do so because we 1400*28e138c6SAndroid Build Coastguard Worker # need to set the values for the 'am__tar' and 'am__untar' variables. 1401*28e138c6SAndroid Build Coastguard Worker _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1402*28e138c6SAndroid Build Coastguard Worker 1403*28e138c6SAndroid Build Coastguard Worker for _am_tool in $_am_tools; do 1404*28e138c6SAndroid Build Coastguard Worker case $_am_tool in 1405*28e138c6SAndroid Build Coastguard Worker gnutar) 1406*28e138c6SAndroid Build Coastguard Worker for _am_tar in tar gnutar gtar; do 1407*28e138c6SAndroid Build Coastguard Worker AM_RUN_LOG([$_am_tar --version]) && break 1408*28e138c6SAndroid Build Coastguard Worker done 1409*28e138c6SAndroid Build Coastguard Worker am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1410*28e138c6SAndroid Build Coastguard Worker am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1411*28e138c6SAndroid Build Coastguard Worker am__untar="$_am_tar -xf -" 1412*28e138c6SAndroid Build Coastguard Worker ;; 1413*28e138c6SAndroid Build Coastguard Worker plaintar) 1414*28e138c6SAndroid Build Coastguard Worker # Must skip GNU tar: if it does not support --format= it doesn't create 1415*28e138c6SAndroid Build Coastguard Worker # ustar tarball either. 1416*28e138c6SAndroid Build Coastguard Worker (tar --version) >/dev/null 2>&1 && continue 1417*28e138c6SAndroid Build Coastguard Worker am__tar='tar chf - "$$tardir"' 1418*28e138c6SAndroid Build Coastguard Worker am__tar_='tar chf - "$tardir"' 1419*28e138c6SAndroid Build Coastguard Worker am__untar='tar xf -' 1420*28e138c6SAndroid Build Coastguard Worker ;; 1421*28e138c6SAndroid Build Coastguard Worker pax) 1422*28e138c6SAndroid Build Coastguard Worker am__tar='pax -L -x $1 -w "$$tardir"' 1423*28e138c6SAndroid Build Coastguard Worker am__tar_='pax -L -x $1 -w "$tardir"' 1424*28e138c6SAndroid Build Coastguard Worker am__untar='pax -r' 1425*28e138c6SAndroid Build Coastguard Worker ;; 1426*28e138c6SAndroid Build Coastguard Worker cpio) 1427*28e138c6SAndroid Build Coastguard Worker am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1428*28e138c6SAndroid Build Coastguard Worker am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1429*28e138c6SAndroid Build Coastguard Worker am__untar='cpio -i -H $1 -d' 1430*28e138c6SAndroid Build Coastguard Worker ;; 1431*28e138c6SAndroid Build Coastguard Worker none) 1432*28e138c6SAndroid Build Coastguard Worker am__tar=false 1433*28e138c6SAndroid Build Coastguard Worker am__tar_=false 1434*28e138c6SAndroid Build Coastguard Worker am__untar=false 1435*28e138c6SAndroid Build Coastguard Worker ;; 1436*28e138c6SAndroid Build Coastguard Worker esac 1437*28e138c6SAndroid Build Coastguard Worker 1438*28e138c6SAndroid Build Coastguard Worker # If the value was cached, stop now. We just wanted to have am__tar 1439*28e138c6SAndroid Build Coastguard Worker # and am__untar set. 1440*28e138c6SAndroid Build Coastguard Worker test -n "${am_cv_prog_tar_$1}" && break 1441*28e138c6SAndroid Build Coastguard Worker 1442*28e138c6SAndroid Build Coastguard Worker # tar/untar a dummy directory, and stop if the command works. 1443*28e138c6SAndroid Build Coastguard Worker rm -rf conftest.dir 1444*28e138c6SAndroid Build Coastguard Worker mkdir conftest.dir 1445*28e138c6SAndroid Build Coastguard Worker echo GrepMe > conftest.dir/file 1446*28e138c6SAndroid Build Coastguard Worker AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1447*28e138c6SAndroid Build Coastguard Worker rm -rf conftest.dir 1448*28e138c6SAndroid Build Coastguard Worker if test -s conftest.tar; then 1449*28e138c6SAndroid Build Coastguard Worker AM_RUN_LOG([$am__untar <conftest.tar]) 1450*28e138c6SAndroid Build Coastguard Worker AM_RUN_LOG([cat conftest.dir/file]) 1451*28e138c6SAndroid Build Coastguard Worker grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1452*28e138c6SAndroid Build Coastguard Worker fi 1453*28e138c6SAndroid Build Coastguard Worker done 1454*28e138c6SAndroid Build Coastguard Worker rm -rf conftest.dir 1455*28e138c6SAndroid Build Coastguard Worker 1456*28e138c6SAndroid Build Coastguard Worker AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1457*28e138c6SAndroid Build Coastguard Worker AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1458*28e138c6SAndroid Build Coastguard Worker 1459*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([am__tar]) 1460*28e138c6SAndroid Build Coastguard WorkerAC_SUBST([am__untar]) 1461*28e138c6SAndroid Build Coastguard Worker]) # _AM_PROG_TAR 1462*28e138c6SAndroid Build Coastguard Worker 1463*28e138c6SAndroid Build Coastguard Workerm4_include([m4/libtool.m4]) 1464*28e138c6SAndroid Build Coastguard Workerm4_include([m4/ltoptions.m4]) 1465*28e138c6SAndroid Build Coastguard Workerm4_include([m4/ltsugar.m4]) 1466*28e138c6SAndroid Build Coastguard Workerm4_include([m4/ltversion.m4]) 1467*28e138c6SAndroid Build Coastguard Workerm4_include([m4/lt~obsolete.m4]) 1468*28e138c6SAndroid Build Coastguard Workerm4_include([acinclude.m4]) 1469