1a466cc55SCy Schubert# generated automatically by aclocal 1.16.5 -*- Autoconf -*- 29c2daa00SOllivier Robert 3a466cc55SCy Schubert# Copyright (C) 1996-2021 Free Software Foundation, Inc. 4276da39aSCy Schubert 59c2daa00SOllivier Robert# This file is free software; the Free Software Foundation 69c2daa00SOllivier Robert# gives unlimited permission to copy and/or distribute it, 79c2daa00SOllivier Robert# with or without modifications, as long as this notice is preserved. 89c2daa00SOllivier Robert 99c2daa00SOllivier Robert# This program is distributed in the hope that it will be useful, 109c2daa00SOllivier Robert# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 119c2daa00SOllivier Robert# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 129c2daa00SOllivier Robert# PARTICULAR PURPOSE. 139c2daa00SOllivier Robert 14276da39aSCy Schubertm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15eb6d21b4SOllivier Robertm4_ifndef([AC_AUTOCONF_VERSION], 16eb6d21b4SOllivier Robert [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17a466cc55SCy Schubertm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, 18a466cc55SCy Schubert[m4_warning([this file was generated for autoconf 2.71. 19eb6d21b4SOllivier RobertYou have another version of autoconf. It may work, but is not guaranteed to. 20eb6d21b4SOllivier RobertIf you have problems, you may need to regenerate the build system entirely. 21276da39aSCy SchubertTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22eb6d21b4SOllivier Robert 23a466cc55SCy Schubert# Copyright (C) 2002-2021 Free Software Foundation, Inc. 24ea906c41SOllivier Robert# 25ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 26ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 27ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 289c2daa00SOllivier Robert 299c2daa00SOllivier Robert# AM_AUTOMAKE_VERSION(VERSION) 309c2daa00SOllivier Robert# ---------------------------- 319c2daa00SOllivier Robert# Automake X.Y traces this macro to ensure aclocal.m4 has been 329c2daa00SOllivier Robert# generated from the m4 files accompanying Automake X.Y. 33eb6d21b4SOllivier Robert# (This private macro should not be called outside this file.) 34eb6d21b4SOllivier RobertAC_DEFUN([AM_AUTOMAKE_VERSION], 35a466cc55SCy Schubert[am__api_version='1.16' 36eb6d21b4SOllivier Robertdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37eb6d21b4SOllivier Robertdnl require some minimum version. Point them to the right macro. 38a466cc55SCy Schubertm4_if([$1], [1.16.5], [], 39eb6d21b4SOllivier Robert [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40eb6d21b4SOllivier Robert]) 41eb6d21b4SOllivier Robert 42eb6d21b4SOllivier Robert# _AM_AUTOCONF_VERSION(VERSION) 43eb6d21b4SOllivier Robert# ----------------------------- 44eb6d21b4SOllivier Robert# aclocal traces this macro to find the Autoconf version. 45eb6d21b4SOllivier Robert# This is a private macro too. Using m4_define simplifies 46eb6d21b4SOllivier Robert# the logic in aclocal, which can simply ignore this definition. 47eb6d21b4SOllivier Robertm4_define([_AM_AUTOCONF_VERSION], []) 489c2daa00SOllivier Robert 499c2daa00SOllivier Robert# AM_SET_CURRENT_AUTOMAKE_VERSION 509c2daa00SOllivier Robert# ------------------------------- 51eb6d21b4SOllivier Robert# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 52eb6d21b4SOllivier Robert# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 539c2daa00SOllivier RobertAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54a466cc55SCy Schubert[AM_AUTOMAKE_VERSION([1.16.5])dnl 55eb6d21b4SOllivier Robertm4_ifndef([AC_AUTOCONF_VERSION], 56eb6d21b4SOllivier Robert [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 57eb6d21b4SOllivier Robert_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 589c2daa00SOllivier Robert 59a466cc55SCy Schubert# Copyright (C) 2011-2021 Free Software Foundation, Inc. 60276da39aSCy Schubert# 61276da39aSCy Schubert# This file is free software; the Free Software Foundation 62276da39aSCy Schubert# gives unlimited permission to copy and/or distribute it, 63276da39aSCy Schubert# with or without modifications, as long as this notice is preserved. 64276da39aSCy Schubert 65276da39aSCy Schubert# AM_PROG_AR([ACT-IF-FAIL]) 66276da39aSCy Schubert# ------------------------- 67276da39aSCy Schubert# Try to determine the archiver interface, and trigger the ar-lib wrapper 68276da39aSCy Schubert# if it is needed. If the detection of archiver interface fails, run 69276da39aSCy Schubert# ACT-IF-FAIL (default is to abort configure with a proper error message). 70276da39aSCy SchubertAC_DEFUN([AM_PROG_AR], 71276da39aSCy Schubert[AC_BEFORE([$0], [LT_INIT])dnl 72276da39aSCy SchubertAC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl 73276da39aSCy SchubertAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 74276da39aSCy SchubertAC_REQUIRE_AUX_FILE([ar-lib])dnl 75276da39aSCy SchubertAC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) 76276da39aSCy Schubert: ${AR=ar} 77276da39aSCy Schubert 78276da39aSCy SchubertAC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], 79276da39aSCy Schubert [AC_LANG_PUSH([C]) 80276da39aSCy Schubert am_cv_ar_interface=ar 81276da39aSCy Schubert AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], 82276da39aSCy Schubert [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 83276da39aSCy Schubert AC_TRY_EVAL([am_ar_try]) 84276da39aSCy Schubert if test "$ac_status" -eq 0; then 85276da39aSCy Schubert am_cv_ar_interface=ar 86276da39aSCy Schubert else 87276da39aSCy Schubert am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 88276da39aSCy Schubert AC_TRY_EVAL([am_ar_try]) 89276da39aSCy Schubert if test "$ac_status" -eq 0; then 90276da39aSCy Schubert am_cv_ar_interface=lib 91276da39aSCy Schubert else 92276da39aSCy Schubert am_cv_ar_interface=unknown 93276da39aSCy Schubert fi 94276da39aSCy Schubert fi 95276da39aSCy Schubert rm -f conftest.lib libconftest.a 96276da39aSCy Schubert ]) 97276da39aSCy Schubert AC_LANG_POP([C])]) 98276da39aSCy Schubert 99276da39aSCy Schubertcase $am_cv_ar_interface in 100276da39aSCy Schubertar) 101276da39aSCy Schubert ;; 102276da39aSCy Schubertlib) 103276da39aSCy Schubert # Microsoft lib, so override with the ar-lib wrapper script. 104276da39aSCy Schubert # FIXME: It is wrong to rewrite AR. 105276da39aSCy Schubert # But if we don't then we get into trouble of one sort or another. 106276da39aSCy Schubert # A longer-term fix would be to have automake use am__AR in this case, 107276da39aSCy Schubert # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 108276da39aSCy Schubert # similar. 109276da39aSCy Schubert AR="$am_aux_dir/ar-lib $AR" 110276da39aSCy Schubert ;; 111276da39aSCy Schubertunknown) 112276da39aSCy Schubert m4_default([$1], 113276da39aSCy Schubert [AC_MSG_ERROR([could not determine $AR interface])]) 114276da39aSCy Schubert ;; 115276da39aSCy Schubertesac 116276da39aSCy SchubertAC_SUBST([AR])dnl 117276da39aSCy Schubert]) 118276da39aSCy Schubert 119ea906c41SOllivier Robert# AM_AUX_DIR_EXPAND -*- Autoconf -*- 1209c2daa00SOllivier Robert 121a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc. 1229c2daa00SOllivier Robert# 123ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 124ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 125ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 1269c2daa00SOllivier Robert 1279c2daa00SOllivier Robert# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 128276da39aSCy Schubert# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 129276da39aSCy Schubert# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 1309c2daa00SOllivier Robert# 1319c2daa00SOllivier Robert# Of course, Automake must honor this variable whenever it calls a 1329c2daa00SOllivier Robert# tool from the auxiliary directory. The problem is that $srcdir (and 1339c2daa00SOllivier Robert# therefore $ac_aux_dir as well) can be either absolute or relative, 1349c2daa00SOllivier Robert# depending on how configure is run. This is pretty annoying, since 1359c2daa00SOllivier Robert# it makes $ac_aux_dir quite unusable in subdirectories: in the top 1369c2daa00SOllivier Robert# source directory, any form will work fine, but in subdirectories a 1379c2daa00SOllivier Robert# relative path needs to be adjusted first. 1389c2daa00SOllivier Robert# 1399c2daa00SOllivier Robert# $ac_aux_dir/missing 1409c2daa00SOllivier Robert# fails when called from a subdirectory if $ac_aux_dir is relative 1419c2daa00SOllivier Robert# $top_srcdir/$ac_aux_dir/missing 1429c2daa00SOllivier Robert# fails if $ac_aux_dir is absolute, 1439c2daa00SOllivier Robert# fails when called from a subdirectory in a VPATH build with 1449c2daa00SOllivier Robert# a relative $ac_aux_dir 1459c2daa00SOllivier Robert# 1469c2daa00SOllivier Robert# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 1479c2daa00SOllivier Robert# are both prefixed by $srcdir. In an in-source build this is usually 148276da39aSCy Schubert# harmless because $srcdir is '.', but things will broke when you 1499c2daa00SOllivier Robert# start a VPATH build or use an absolute $srcdir. 1509c2daa00SOllivier Robert# 1519c2daa00SOllivier Robert# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 1529c2daa00SOllivier Robert# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 1539c2daa00SOllivier Robert# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 1549c2daa00SOllivier Robert# and then we would define $MISSING as 1559c2daa00SOllivier Robert# MISSING="\${SHELL} $am_aux_dir/missing" 1569c2daa00SOllivier Robert# This will work as long as MISSING is not called from configure, because 1579c2daa00SOllivier Robert# unfortunately $(top_srcdir) has no meaning in configure. 1589c2daa00SOllivier Robert# However there are other variables, like CC, which are often used in 1599c2daa00SOllivier Robert# configure, and could therefore not use this "fixed" $ac_aux_dir. 1609c2daa00SOllivier Robert# 1619c2daa00SOllivier Robert# Another solution, used here, is to always expand $ac_aux_dir to an 1629c2daa00SOllivier Robert# absolute PATH. The drawback is that using absolute paths prevent a 1639c2daa00SOllivier Robert# configured tree to be moved without reconfiguration. 1649c2daa00SOllivier Robert 165ea906c41SOllivier RobertAC_DEFUN([AM_AUX_DIR_EXPAND], 166276da39aSCy Schubert[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 167276da39aSCy Schubert# Expand $ac_aux_dir to an absolute path. 168276da39aSCy Schubertam_aux_dir=`cd "$ac_aux_dir" && pwd` 1699c2daa00SOllivier Robert]) 1709c2daa00SOllivier Robert 171ea906c41SOllivier Robert# AM_CONDITIONAL -*- Autoconf -*- 1729c2daa00SOllivier Robert 173a466cc55SCy Schubert# Copyright (C) 1997-2021 Free Software Foundation, Inc. 174ea906c41SOllivier Robert# 175ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 176ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 177ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 1789c2daa00SOllivier Robert 179ea906c41SOllivier Robert# AM_CONDITIONAL(NAME, SHELL-CONDITION) 180ea906c41SOllivier Robert# ------------------------------------- 181ea906c41SOllivier Robert# Define a conditional. 182ea906c41SOllivier RobertAC_DEFUN([AM_CONDITIONAL], 183276da39aSCy Schubert[AC_PREREQ([2.52])dnl 184276da39aSCy Schubert m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 185ea906c41SOllivier Robert [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 186eb6d21b4SOllivier RobertAC_SUBST([$1_TRUE])dnl 187eb6d21b4SOllivier RobertAC_SUBST([$1_FALSE])dnl 188eb6d21b4SOllivier Robert_AM_SUBST_NOTMAKE([$1_TRUE])dnl 189eb6d21b4SOllivier Robert_AM_SUBST_NOTMAKE([$1_FALSE])dnl 190eb6d21b4SOllivier Robertm4_define([_AM_COND_VALUE_$1], [$2])dnl 191ea906c41SOllivier Robertif $2; then 192ea906c41SOllivier Robert $1_TRUE= 193ea906c41SOllivier Robert $1_FALSE='#' 1949c2daa00SOllivier Robertelse 195ea906c41SOllivier Robert $1_TRUE='#' 196ea906c41SOllivier Robert $1_FALSE= 1979c2daa00SOllivier Robertfi 198ea906c41SOllivier RobertAC_CONFIG_COMMANDS_PRE( 199ea906c41SOllivier Robert[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 200ea906c41SOllivier Robert AC_MSG_ERROR([[conditional "$1" was never defined. 201ea906c41SOllivier RobertUsually this means the macro was only invoked conditionally.]]) 202ea906c41SOllivier Robertfi])]) 2039c2daa00SOllivier Robert 204a466cc55SCy Schubert# Copyright (C) 1999-2021 Free Software Foundation, Inc. 205ea906c41SOllivier Robert# 206ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 207ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 208ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 2099c2daa00SOllivier Robert 2109c2daa00SOllivier Robert 211276da39aSCy Schubert# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 2129c2daa00SOllivier Robert# written in clear, in which case automake, when reading aclocal.m4, 2139c2daa00SOllivier Robert# will think it sees a *use*, and therefore will trigger all it's 2149c2daa00SOllivier Robert# C support machinery. Also note that it means that autoscan, seeing 2159c2daa00SOllivier Robert# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 2169c2daa00SOllivier Robert 2179c2daa00SOllivier Robert 2189c2daa00SOllivier Robert# _AM_DEPENDENCIES(NAME) 2199c2daa00SOllivier Robert# ---------------------- 2209c2daa00SOllivier Robert# See how the compiler implements dependency checking. 221276da39aSCy Schubert# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 2229c2daa00SOllivier Robert# We try a few techniques and use that to set a single cache variable. 2239c2daa00SOllivier Robert# 2249c2daa00SOllivier Robert# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 2259c2daa00SOllivier Robert# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 2269c2daa00SOllivier Robert# dependency, and given that the user is not expected to run this macro, 2279c2daa00SOllivier Robert# just rely on AC_PROG_CC. 2289c2daa00SOllivier RobertAC_DEFUN([_AM_DEPENDENCIES], 2299c2daa00SOllivier Robert[AC_REQUIRE([AM_SET_DEPDIR])dnl 2309c2daa00SOllivier RobertAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 2319c2daa00SOllivier RobertAC_REQUIRE([AM_MAKE_INCLUDE])dnl 2329c2daa00SOllivier RobertAC_REQUIRE([AM_DEP_TRACK])dnl 2339c2daa00SOllivier Robert 234276da39aSCy Schubertm4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 235276da39aSCy Schubert [$1], [CXX], [depcc="$CXX" am_compiler_list=], 236276da39aSCy Schubert [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 237276da39aSCy Schubert [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 238276da39aSCy Schubert [$1], [UPC], [depcc="$UPC" am_compiler_list=], 239276da39aSCy Schubert [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 2409c2daa00SOllivier Robert [depcc="$$1" am_compiler_list=]) 2419c2daa00SOllivier Robert 2429c2daa00SOllivier RobertAC_CACHE_CHECK([dependency style of $depcc], 2439c2daa00SOllivier Robert [am_cv_$1_dependencies_compiler_type], 2449c2daa00SOllivier Robert[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2459c2daa00SOllivier Robert # We make a subdir and do the tests there. Otherwise we can end up 2469c2daa00SOllivier Robert # making bogus files that we don't know about and never remove. For 2479c2daa00SOllivier Robert # instance it was reported that on HP-UX the gcc test will end up 248276da39aSCy Schubert # making a dummy file named 'D' -- because '-MD' means "put the output 249276da39aSCy Schubert # in D". 250276da39aSCy Schubert rm -rf conftest.dir 2519c2daa00SOllivier Robert mkdir conftest.dir 2529c2daa00SOllivier Robert # Copy depcomp to subdir because otherwise we won't find it if we're 2539c2daa00SOllivier Robert # using a relative directory. 2549c2daa00SOllivier Robert cp "$am_depcomp" conftest.dir 2559c2daa00SOllivier Robert cd conftest.dir 2569c2daa00SOllivier Robert # We will build objects and dependencies in a subdirectory because 2579c2daa00SOllivier Robert # it helps to detect inapplicable dependency modes. For instance 2589c2daa00SOllivier Robert # both Tru64's cc and ICC support -MD to output dependencies as a 2599c2daa00SOllivier Robert # side effect of compilation, but ICC will put the dependencies in 2609c2daa00SOllivier Robert # the current directory while Tru64 will put them in the object 2619c2daa00SOllivier Robert # directory. 2629c2daa00SOllivier Robert mkdir sub 2639c2daa00SOllivier Robert 2649c2daa00SOllivier Robert am_cv_$1_dependencies_compiler_type=none 2659c2daa00SOllivier Robert if test "$am_compiler_list" = ""; then 2669c2daa00SOllivier Robert am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 2679c2daa00SOllivier Robert fi 268eb6d21b4SOllivier Robert am__universal=false 269eb6d21b4SOllivier Robert m4_case([$1], [CC], 270eb6d21b4SOllivier Robert [case " $depcc " in #( 271eb6d21b4SOllivier Robert *\ -arch\ *\ -arch\ *) am__universal=true ;; 272eb6d21b4SOllivier Robert esac], 273eb6d21b4SOllivier Robert [CXX], 274eb6d21b4SOllivier Robert [case " $depcc " in #( 275eb6d21b4SOllivier Robert *\ -arch\ *\ -arch\ *) am__universal=true ;; 276eb6d21b4SOllivier Robert esac]) 277eb6d21b4SOllivier Robert 2789c2daa00SOllivier Robert for depmode in $am_compiler_list; do 2799c2daa00SOllivier Robert # Setup a source with many dependencies, because some compilers 2809c2daa00SOllivier Robert # like to wrap large dependency lists on column 80 (with \), and 2819c2daa00SOllivier Robert # we should not choose a depcomp mode which is confused by this. 2829c2daa00SOllivier Robert # 2839c2daa00SOllivier Robert # We need to recreate these files for each test, as the compiler may 2849c2daa00SOllivier Robert # overwrite some of them when testing with obscure command lines. 2859c2daa00SOllivier Robert # This happens at least with the AIX C compiler. 2869c2daa00SOllivier Robert : > sub/conftest.c 2879c2daa00SOllivier Robert for i in 1 2 3 4 5 6; do 2889c2daa00SOllivier Robert echo '#include "conftst'$i'.h"' >> sub/conftest.c 289276da39aSCy Schubert # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 290276da39aSCy Schubert # Solaris 10 /bin/sh. 291276da39aSCy Schubert echo '/* dummy */' > sub/conftst$i.h 2929c2daa00SOllivier Robert done 2939c2daa00SOllivier Robert echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2949c2daa00SOllivier Robert 295276da39aSCy Schubert # We check with '-c' and '-o' for the sake of the "dashmstdout" 296eb6d21b4SOllivier Robert # mode. It turns out that the SunPro C++ compiler does not properly 297276da39aSCy Schubert # handle '-M -o', and we need to detect this. Also, some Intel 298276da39aSCy Schubert # versions had trouble with output in subdirs. 299eb6d21b4SOllivier Robert am__obj=sub/conftest.${OBJEXT-o} 300eb6d21b4SOllivier Robert am__minus_obj="-o $am__obj" 3019c2daa00SOllivier Robert case $depmode in 302eb6d21b4SOllivier Robert gcc) 303eb6d21b4SOllivier Robert # This depmode causes a compiler race in universal mode. 304eb6d21b4SOllivier Robert test "$am__universal" = false || continue 305eb6d21b4SOllivier Robert ;; 3069c2daa00SOllivier Robert nosideeffect) 307276da39aSCy Schubert # After this tag, mechanisms are not by side-effect, so they'll 308276da39aSCy Schubert # only be used when explicitly requested. 3099c2daa00SOllivier Robert if test "x$enable_dependency_tracking" = xyes; then 3109c2daa00SOllivier Robert continue 3119c2daa00SOllivier Robert else 3129c2daa00SOllivier Robert break 3139c2daa00SOllivier Robert fi 3149c2daa00SOllivier Robert ;; 315276da39aSCy Schubert msvc7 | msvc7msys | msvisualcpp | msvcmsys) 316276da39aSCy Schubert # This compiler won't grok '-c -o', but also, the minuso test has 317eb6d21b4SOllivier Robert # not run yet. These depmodes are late enough in the game, and 318eb6d21b4SOllivier Robert # so weak that their functioning should not be impacted. 319eb6d21b4SOllivier Robert am__obj=conftest.${OBJEXT-o} 320eb6d21b4SOllivier Robert am__minus_obj= 321eb6d21b4SOllivier Robert ;; 3229c2daa00SOllivier Robert none) break ;; 3239c2daa00SOllivier Robert esac 3249c2daa00SOllivier Robert if depmode=$depmode \ 325eb6d21b4SOllivier Robert source=sub/conftest.c object=$am__obj \ 3269c2daa00SOllivier Robert depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 327eb6d21b4SOllivier Robert $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3289c2daa00SOllivier Robert >/dev/null 2>conftest.err && 329eb6d21b4SOllivier Robert grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3309c2daa00SOllivier Robert grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 331eb6d21b4SOllivier Robert grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3329c2daa00SOllivier Robert ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3339c2daa00SOllivier Robert # icc doesn't choke on unknown options, it will just issue warnings 334ea906c41SOllivier Robert # or remarks (even with -Werror). So we grep stderr for any message 335ea906c41SOllivier Robert # that says an option was ignored or not supported. 336ea906c41SOllivier Robert # When given -MP, icc 7.0 and 7.1 complain thusly: 337ea906c41SOllivier Robert # icc: Command line warning: ignoring option '-M'; no argument required 338ea906c41SOllivier Robert # The diagnosis changed in icc 8.0: 339ea906c41SOllivier Robert # icc: Command line remark: option '-MP' not supported 340ea906c41SOllivier Robert if (grep 'ignoring option' conftest.err || 341ea906c41SOllivier Robert grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3429c2daa00SOllivier Robert am_cv_$1_dependencies_compiler_type=$depmode 3439c2daa00SOllivier Robert break 3449c2daa00SOllivier Robert fi 3459c2daa00SOllivier Robert fi 3469c2daa00SOllivier Robert done 3479c2daa00SOllivier Robert 3489c2daa00SOllivier Robert cd .. 3499c2daa00SOllivier Robert rm -rf conftest.dir 3509c2daa00SOllivier Robertelse 3519c2daa00SOllivier Robert am_cv_$1_dependencies_compiler_type=none 3529c2daa00SOllivier Robertfi 3539c2daa00SOllivier Robert]) 3549c2daa00SOllivier RobertAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 3559c2daa00SOllivier RobertAM_CONDITIONAL([am__fastdep$1], [ 3569c2daa00SOllivier Robert test "x$enable_dependency_tracking" != xno \ 3579c2daa00SOllivier Robert && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 3589c2daa00SOllivier Robert]) 3599c2daa00SOllivier Robert 3609c2daa00SOllivier Robert 3619c2daa00SOllivier Robert# AM_SET_DEPDIR 3629c2daa00SOllivier Robert# ------------- 3639c2daa00SOllivier Robert# Choose a directory name for dependency files. 364276da39aSCy Schubert# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 3659c2daa00SOllivier RobertAC_DEFUN([AM_SET_DEPDIR], 3669c2daa00SOllivier Robert[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 3679c2daa00SOllivier RobertAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 3689c2daa00SOllivier Robert]) 3699c2daa00SOllivier Robert 3709c2daa00SOllivier Robert 3719c2daa00SOllivier Robert# AM_DEP_TRACK 3729c2daa00SOllivier Robert# ------------ 3739c2daa00SOllivier RobertAC_DEFUN([AM_DEP_TRACK], 374276da39aSCy Schubert[AC_ARG_ENABLE([dependency-tracking], [dnl 375276da39aSCy SchubertAS_HELP_STRING( 376276da39aSCy Schubert [--enable-dependency-tracking], 377276da39aSCy Schubert [do not reject slow dependency extractors]) 378276da39aSCy SchubertAS_HELP_STRING( 379276da39aSCy Schubert [--disable-dependency-tracking], 380276da39aSCy Schubert [speeds up one-time build])]) 3819c2daa00SOllivier Robertif test "x$enable_dependency_tracking" != xno; then 3829c2daa00SOllivier Robert am_depcomp="$ac_aux_dir/depcomp" 3839c2daa00SOllivier Robert AMDEPBACKSLASH='\' 384276da39aSCy Schubert am__nodep='_no' 3859c2daa00SOllivier Robertfi 3869c2daa00SOllivier RobertAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 387eb6d21b4SOllivier RobertAC_SUBST([AMDEPBACKSLASH])dnl 388eb6d21b4SOllivier Robert_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 389276da39aSCy SchubertAC_SUBST([am__nodep])dnl 390276da39aSCy Schubert_AM_SUBST_NOTMAKE([am__nodep])dnl 3919c2daa00SOllivier Robert]) 3929c2daa00SOllivier Robert 3939c2daa00SOllivier Robert# Generate code to set up dependency tracking. -*- Autoconf -*- 3949c2daa00SOllivier Robert 395a466cc55SCy Schubert# Copyright (C) 1999-2021 Free Software Foundation, Inc. 396ea906c41SOllivier Robert# 397ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 398ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 399ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 4009c2daa00SOllivier Robert 4019c2daa00SOllivier Robert# _AM_OUTPUT_DEPENDENCY_COMMANDS 4029c2daa00SOllivier Robert# ------------------------------ 4039c2daa00SOllivier RobertAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 404eb6d21b4SOllivier Robert[{ 405276da39aSCy Schubert # Older Autoconf quotes --file arguments for eval, but not when files 406eb6d21b4SOllivier Robert # are listed without --file. Let's play safe and only enable the eval 407eb6d21b4SOllivier Robert # if we detect the quoting. 408a466cc55SCy Schubert # TODO: see whether this extra hack can be removed once we start 409a466cc55SCy Schubert # requiring Autoconf 2.70 or later. 410a466cc55SCy Schubert AS_CASE([$CONFIG_FILES], 411a466cc55SCy Schubert [*\'*], [eval set x "$CONFIG_FILES"], 412a466cc55SCy Schubert [*], [set x $CONFIG_FILES]) 413eb6d21b4SOllivier Robert shift 414a466cc55SCy Schubert # Used to flag and report bootstrapping failures. 415a466cc55SCy Schubert am_rc=0 416a466cc55SCy Schubert for am_mf 417eb6d21b4SOllivier Robert do 4189c2daa00SOllivier Robert # Strip MF so we end up with the name of the file. 419a466cc55SCy Schubert am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 420a466cc55SCy Schubert # Check whether this is an Automake generated Makefile which includes 421a466cc55SCy Schubert # dependency-tracking related rules and includes. 422a466cc55SCy Schubert # Grep'ing the whole file directly is not great: AIX grep has a line 423eb6d21b4SOllivier Robert # limit of 2048, but all sed's we know have understand at least 4000. 424a466cc55SCy Schubert sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 425a466cc55SCy Schubert || continue 426a466cc55SCy Schubert am_dirpart=`AS_DIRNAME(["$am_mf"])` 427a466cc55SCy Schubert am_filepart=`AS_BASENAME(["$am_mf"])` 428a466cc55SCy Schubert AM_RUN_LOG([cd "$am_dirpart" \ 429a466cc55SCy Schubert && sed -e '/# am--include-marker/d' "$am_filepart" \ 430a466cc55SCy Schubert | $MAKE -f - am--depfiles]) || am_rc=$? 431a466cc55SCy Schubert done 432a466cc55SCy Schubert if test $am_rc -ne 0; then 433a466cc55SCy Schubert AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 434a466cc55SCy Schubert for automatic dependency tracking. If GNU make was not used, consider 435a466cc55SCy Schubert re-running the configure script with MAKE="gmake" (or whatever is 436a466cc55SCy Schubert necessary). You can also try re-running configure with the 437a466cc55SCy Schubert '--disable-dependency-tracking' option to at least be able to build 438a466cc55SCy Schubert the package (albeit without support for automatic dependency tracking).]) 4399c2daa00SOllivier Robert fi 440a466cc55SCy Schubert AS_UNSET([am_dirpart]) 441a466cc55SCy Schubert AS_UNSET([am_filepart]) 442a466cc55SCy Schubert AS_UNSET([am_mf]) 443a466cc55SCy Schubert AS_UNSET([am_rc]) 444a466cc55SCy Schubert rm -f conftest-deps.mk 445eb6d21b4SOllivier Robert} 4469c2daa00SOllivier Robert])# _AM_OUTPUT_DEPENDENCY_COMMANDS 4479c2daa00SOllivier Robert 4489c2daa00SOllivier Robert 4499c2daa00SOllivier Robert# AM_OUTPUT_DEPENDENCY_COMMANDS 4509c2daa00SOllivier Robert# ----------------------------- 4519c2daa00SOllivier Robert# This macro should only be invoked once -- use via AC_REQUIRE. 4529c2daa00SOllivier Robert# 453a466cc55SCy Schubert# This code is only required when automatic dependency tracking is enabled. 454a466cc55SCy Schubert# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 455a466cc55SCy Schubert# order to bootstrap the dependency handling code. 4569c2daa00SOllivier RobertAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 4579c2daa00SOllivier Robert[AC_CONFIG_COMMANDS([depfiles], 4589c2daa00SOllivier Robert [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 459a466cc55SCy Schubert [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 4609c2daa00SOllivier Robert 461ea906c41SOllivier Robert# Do all the work for Automake. -*- Autoconf -*- 4629c2daa00SOllivier Robert 463a466cc55SCy Schubert# Copyright (C) 1996-2021 Free Software Foundation, Inc. 464ea906c41SOllivier Robert# 465ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 466ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 467ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 468ea906c41SOllivier Robert 469ea906c41SOllivier Robert# This macro actually does too much. Some checks are only needed if 470ea906c41SOllivier Robert# your package does certain things. But this isn't really a big deal. 471ea906c41SOllivier Robert 472276da39aSCy Schubertdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 473276da39aSCy Schubertm4_define([AC_PROG_CC], 474276da39aSCy Schubertm4_defn([AC_PROG_CC]) 475276da39aSCy Schubert[_AM_PROG_CC_C_O 476276da39aSCy Schubert]) 477276da39aSCy Schubert 478ea906c41SOllivier Robert# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 479ea906c41SOllivier Robert# AM_INIT_AUTOMAKE([OPTIONS]) 480ea906c41SOllivier Robert# ----------------------------------------------- 481ea906c41SOllivier Robert# The call with PACKAGE and VERSION arguments is the old style 482ea906c41SOllivier Robert# call (pre autoconf-2.50), which is being phased out. PACKAGE 483ea906c41SOllivier Robert# and VERSION should now be passed to AC_INIT and removed from 484ea906c41SOllivier Robert# the call to AM_INIT_AUTOMAKE. 485ea906c41SOllivier Robert# We support both call styles for the transition. After 486ea906c41SOllivier Robert# the next Automake release, Autoconf can make the AC_INIT 487ea906c41SOllivier Robert# arguments mandatory, and then we can depend on a new Autoconf 488ea906c41SOllivier Robert# release and drop the old call support. 489ea906c41SOllivier RobertAC_DEFUN([AM_INIT_AUTOMAKE], 490276da39aSCy Schubert[AC_PREREQ([2.65])dnl 491a466cc55SCy Schubertm4_ifdef([_$0_ALREADY_INIT], 492a466cc55SCy Schubert [m4_fatal([$0 expanded multiple times 493a466cc55SCy Schubert]m4_defn([_$0_ALREADY_INIT]))], 494a466cc55SCy Schubert [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl 495ea906c41SOllivier Robertdnl Autoconf wants to disallow AM_ names. We explicitly allow 496ea906c41SOllivier Robertdnl the ones we care about. 497ea906c41SOllivier Robertm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 498ea906c41SOllivier RobertAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 499ea906c41SOllivier RobertAC_REQUIRE([AC_PROG_INSTALL])dnl 500eb6d21b4SOllivier Robertif test "`cd $srcdir && pwd`" != "`pwd`"; then 501eb6d21b4SOllivier Robert # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 502eb6d21b4SOllivier Robert # is not polluted with repeated "-I." 503eb6d21b4SOllivier Robert AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 504ea906c41SOllivier Robert # test to see if srcdir already configured 505eb6d21b4SOllivier Robert if test -f $srcdir/config.status; then 506ea906c41SOllivier Robert AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 507ea906c41SOllivier Robert fi 508eb6d21b4SOllivier Robertfi 509ea906c41SOllivier Robert 510ea906c41SOllivier Robert# test whether we have cygpath 511ea906c41SOllivier Robertif test -z "$CYGPATH_W"; then 512ea906c41SOllivier Robert if (cygpath --version) >/dev/null 2>/dev/null; then 513ea906c41SOllivier Robert CYGPATH_W='cygpath -w' 514ea906c41SOllivier Robert else 515ea906c41SOllivier Robert CYGPATH_W=echo 516ea906c41SOllivier Robert fi 517ea906c41SOllivier Robertfi 518ea906c41SOllivier RobertAC_SUBST([CYGPATH_W]) 519ea906c41SOllivier Robert 520ea906c41SOllivier Robert# Define the identity of the package. 521ea906c41SOllivier Robertdnl Distinguish between old-style and new-style calls. 522ea906c41SOllivier Robertm4_ifval([$2], 523276da39aSCy Schubert[AC_DIAGNOSE([obsolete], 524276da39aSCy Schubert [$0: two- and three-arguments forms are deprecated.]) 525276da39aSCy Schubertm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 526ea906c41SOllivier Robert AC_SUBST([PACKAGE], [$1])dnl 527ea906c41SOllivier Robert AC_SUBST([VERSION], [$2])], 528ea906c41SOllivier Robert[_AM_SET_OPTIONS([$1])dnl 529eb6d21b4SOllivier Robertdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 530276da39aSCy Schubertm4_if( 531a466cc55SCy Schubert m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), 532276da39aSCy Schubert [ok:ok],, 533eb6d21b4SOllivier Robert [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 534ea906c41SOllivier Robert AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 535ea906c41SOllivier Robert AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 536ea906c41SOllivier Robert 537ea906c41SOllivier Robert_AM_IF_OPTION([no-define],, 538276da39aSCy Schubert[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 539276da39aSCy Schubert AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 540ea906c41SOllivier Robert 541ea906c41SOllivier Robert# Some tools Automake needs. 542ea906c41SOllivier RobertAC_REQUIRE([AM_SANITY_CHECK])dnl 543ea906c41SOllivier RobertAC_REQUIRE([AC_ARG_PROGRAM])dnl 544276da39aSCy SchubertAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 545276da39aSCy SchubertAM_MISSING_PROG([AUTOCONF], [autoconf]) 546276da39aSCy SchubertAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 547276da39aSCy SchubertAM_MISSING_PROG([AUTOHEADER], [autoheader]) 548276da39aSCy SchubertAM_MISSING_PROG([MAKEINFO], [makeinfo]) 549eb6d21b4SOllivier RobertAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 550eb6d21b4SOllivier RobertAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 551276da39aSCy SchubertAC_REQUIRE([AC_PROG_MKDIR_P])dnl 552276da39aSCy Schubert# For better backward compatibility. To be removed once Automake 1.9.x 553276da39aSCy Schubert# dies out for good. For more background, see: 554a466cc55SCy Schubert# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 555a466cc55SCy Schubert# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 556276da39aSCy SchubertAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 557276da39aSCy Schubert# We need awk for the "check" target (and possibly the TAP driver). The 558276da39aSCy Schubert# system "awk" is bad on some platforms. 559ea906c41SOllivier RobertAC_REQUIRE([AC_PROG_AWK])dnl 560ea906c41SOllivier RobertAC_REQUIRE([AC_PROG_MAKE_SET])dnl 561ea906c41SOllivier RobertAC_REQUIRE([AM_SET_LEADING_DOT])dnl 562ea906c41SOllivier Robert_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 563ea906c41SOllivier Robert [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 564ea906c41SOllivier Robert [_AM_PROG_TAR([v7])])]) 565ea906c41SOllivier Robert_AM_IF_OPTION([no-dependencies],, 566ea906c41SOllivier Robert[AC_PROVIDE_IFELSE([AC_PROG_CC], 567276da39aSCy Schubert [_AM_DEPENDENCIES([CC])], 568276da39aSCy Schubert [m4_define([AC_PROG_CC], 569276da39aSCy Schubert m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 570ea906c41SOllivier RobertAC_PROVIDE_IFELSE([AC_PROG_CXX], 571276da39aSCy Schubert [_AM_DEPENDENCIES([CXX])], 572276da39aSCy Schubert [m4_define([AC_PROG_CXX], 573276da39aSCy Schubert m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 574eb6d21b4SOllivier RobertAC_PROVIDE_IFELSE([AC_PROG_OBJC], 575276da39aSCy Schubert [_AM_DEPENDENCIES([OBJC])], 576276da39aSCy Schubert [m4_define([AC_PROG_OBJC], 577276da39aSCy Schubert m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 578276da39aSCy SchubertAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 579276da39aSCy Schubert [_AM_DEPENDENCIES([OBJCXX])], 580276da39aSCy Schubert [m4_define([AC_PROG_OBJCXX], 581276da39aSCy Schubert m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 582ea906c41SOllivier Robert]) 583a466cc55SCy Schubert# Variables for tags utilities; see am/tags.am 584a466cc55SCy Schubertif test -z "$CTAGS"; then 585a466cc55SCy Schubert CTAGS=ctags 586a466cc55SCy Schubertfi 587a466cc55SCy SchubertAC_SUBST([CTAGS]) 588a466cc55SCy Schubertif test -z "$ETAGS"; then 589a466cc55SCy Schubert ETAGS=etags 590a466cc55SCy Schubertfi 591a466cc55SCy SchubertAC_SUBST([ETAGS]) 592a466cc55SCy Schubertif test -z "$CSCOPE"; then 593a466cc55SCy Schubert CSCOPE=cscope 594a466cc55SCy Schubertfi 595a466cc55SCy SchubertAC_SUBST([CSCOPE]) 596a466cc55SCy Schubert 597276da39aSCy SchubertAC_REQUIRE([AM_SILENT_RULES])dnl 598276da39aSCy Schubertdnl The testsuite driver may need to know about EXEEXT, so add the 599276da39aSCy Schubertdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 600276da39aSCy Schubertdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 601eb6d21b4SOllivier RobertAC_CONFIG_COMMANDS_PRE(dnl 602eb6d21b4SOllivier Robert[m4_provide_if([_AM_COMPILER_EXEEXT], 603eb6d21b4SOllivier Robert [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 604276da39aSCy Schubert 605276da39aSCy Schubert# POSIX will say in a future version that running "rm -f" with no argument 606276da39aSCy Schubert# is OK; and we want to be able to make that assumption in our Makefile 607276da39aSCy Schubert# recipes. So use an aggressive probe to check that the usage we want is 608276da39aSCy Schubert# actually supported "in the wild" to an acceptable degree. 609276da39aSCy Schubert# See automake bug#10828. 610276da39aSCy Schubert# To make any issue more visible, cause the running configure to be aborted 611276da39aSCy Schubert# by default if the 'rm' program in use doesn't match our expectations; the 612276da39aSCy Schubert# user can still override this though. 613276da39aSCy Schubertif rm -f && rm -fr && rm -rf; then : OK; else 614276da39aSCy Schubert cat >&2 <<'END' 615276da39aSCy SchubertOops! 616276da39aSCy Schubert 617276da39aSCy SchubertYour 'rm' program seems unable to run without file operands specified 618276da39aSCy Schuberton the command line, even when the '-f' option is present. This is contrary 619276da39aSCy Schubertto the behaviour of most rm programs out there, and not conforming with 620276da39aSCy Schubertthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 621276da39aSCy Schubert 622276da39aSCy SchubertPlease tell bug-automake@gnu.org about your system, including the value 623276da39aSCy Schubertof your $PATH and any error possibly output before this message. This 624276da39aSCy Schubertcan help us improve future automake versions. 625276da39aSCy Schubert 626276da39aSCy SchubertEND 627276da39aSCy Schubert if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 628276da39aSCy Schubert echo 'Configuration will proceed anyway, since you have set the' >&2 629276da39aSCy Schubert echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 630276da39aSCy Schubert echo >&2 631276da39aSCy Schubert else 632276da39aSCy Schubert cat >&2 <<'END' 633276da39aSCy SchubertAborting the configuration process, to ensure you take notice of the issue. 634276da39aSCy Schubert 635276da39aSCy SchubertYou can download and install GNU coreutils to get an 'rm' implementation 636a466cc55SCy Schubertthat behaves properly: <https://www.gnu.org/software/coreutils/>. 637276da39aSCy Schubert 638276da39aSCy SchubertIf you want to complete the configuration process using your problematic 639276da39aSCy Schubert'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 640276da39aSCy Schubertto "yes", and re-run configure. 641276da39aSCy Schubert 642276da39aSCy SchubertEND 643276da39aSCy Schubert AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 644276da39aSCy Schubert fi 645276da39aSCy Schubertfi 646276da39aSCy Schubertdnl The trailing newline in this macro's definition is deliberate, for 647276da39aSCy Schubertdnl backward compatibility and to allow trailing 'dnl'-style comments 648276da39aSCy Schubertdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 649ea906c41SOllivier Robert]) 650ea906c41SOllivier Robert 651276da39aSCy Schubertdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 652eb6d21b4SOllivier Robertdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 653eb6d21b4SOllivier Robertdnl mangled by Autoconf and run in a shell conditional statement. 654eb6d21b4SOllivier Robertm4_define([_AC_COMPILER_EXEEXT], 655eb6d21b4SOllivier Robertm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 656eb6d21b4SOllivier Robert 657ea906c41SOllivier Robert# When config.status generates a header, we must update the stamp-h file. 658ea906c41SOllivier Robert# This file resides in the same directory as the config header 659ea906c41SOllivier Robert# that is generated. The stamp files are numbered to have different names. 660ea906c41SOllivier Robert 661ea906c41SOllivier Robert# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 662ea906c41SOllivier Robert# loop where config.status creates the headers, so we can generate 663ea906c41SOllivier Robert# our stamp files there. 664ea906c41SOllivier RobertAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 665ea906c41SOllivier Robert[# Compute $1's index in $config_headers. 666eb6d21b4SOllivier Robert_am_arg=$1 667ea906c41SOllivier Robert_am_stamp_count=1 668ea906c41SOllivier Robertfor _am_header in $config_headers :; do 669ea906c41SOllivier Robert case $_am_header in 670eb6d21b4SOllivier Robert $_am_arg | $_am_arg:* ) 671ea906c41SOllivier Robert break ;; 672ea906c41SOllivier Robert * ) 673ea906c41SOllivier Robert _am_stamp_count=`expr $_am_stamp_count + 1` ;; 674ea906c41SOllivier Robert esac 675ea906c41SOllivier Robertdone 676eb6d21b4SOllivier Robertecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 677ea906c41SOllivier Robert 678a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc. 679ea906c41SOllivier Robert# 680ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 681ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 682ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 683ea906c41SOllivier Robert 684ea906c41SOllivier Robert# AM_PROG_INSTALL_SH 685ea906c41SOllivier Robert# ------------------ 686ea906c41SOllivier Robert# Define $install_sh. 687ea906c41SOllivier RobertAC_DEFUN([AM_PROG_INSTALL_SH], 688ea906c41SOllivier Robert[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 689276da39aSCy Schubertif test x"${install_sh+set}" != xset; then 690eb6d21b4SOllivier Robert case $am_aux_dir in 691eb6d21b4SOllivier Robert *\ * | *\ *) 692eb6d21b4SOllivier Robert install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 693eb6d21b4SOllivier Robert *) 694eb6d21b4SOllivier Robert install_sh="\${SHELL} $am_aux_dir/install-sh" 695eb6d21b4SOllivier Robert esac 696eb6d21b4SOllivier Robertfi 697276da39aSCy SchubertAC_SUBST([install_sh])]) 698ea906c41SOllivier Robert 699a466cc55SCy Schubert# Copyright (C) 2003-2021 Free Software Foundation, Inc. 700ea906c41SOllivier Robert# 701ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 702ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 703ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 7049c2daa00SOllivier Robert 705ea906c41SOllivier Robert# Check whether the underlying file-system supports filenames 706ea906c41SOllivier Robert# with a leading dot. For instance MS-DOS doesn't. 707ea906c41SOllivier RobertAC_DEFUN([AM_SET_LEADING_DOT], 708ea906c41SOllivier Robert[rm -rf .tst 2>/dev/null 709ea906c41SOllivier Robertmkdir .tst 2>/dev/null 710ea906c41SOllivier Robertif test -d .tst; then 711ea906c41SOllivier Robert am__leading_dot=. 712ea906c41SOllivier Robertelse 713ea906c41SOllivier Robert am__leading_dot=_ 714ea906c41SOllivier Robertfi 715ea906c41SOllivier Robertrmdir .tst 2>/dev/null 716ea906c41SOllivier RobertAC_SUBST([am__leading_dot])]) 717ea906c41SOllivier Robert 718ea906c41SOllivier Robert# Check to see how 'make' treats includes. -*- Autoconf -*- 719ea906c41SOllivier Robert 720a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc. 721ea906c41SOllivier Robert# 722ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 723ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 724ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 725ea906c41SOllivier Robert 7269c2daa00SOllivier Robert# AM_MAKE_INCLUDE() 7279c2daa00SOllivier Robert# ----------------- 728a466cc55SCy Schubert# Check whether make has an 'include' directive that can support all 729a466cc55SCy Schubert# the idioms we need for our automatic dependency tracking code. 7309c2daa00SOllivier RobertAC_DEFUN([AM_MAKE_INCLUDE], 731a466cc55SCy Schubert[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 732a466cc55SCy Schubertcat > confinc.mk << 'END' 7339c2daa00SOllivier Robertam__doit: 734a466cc55SCy Schubert @echo this is the am__doit target >confinc.out 7359c2daa00SOllivier Robert.PHONY: am__doit 7369c2daa00SOllivier RobertEND 7379c2daa00SOllivier Robertam__include="#" 7389c2daa00SOllivier Robertam__quote= 739a466cc55SCy Schubert# BSD make does it like this. 740a466cc55SCy Schubertecho '.include "confinc.mk" # ignored' > confmf.BSD 741a466cc55SCy Schubert# Other make implementations (GNU, Solaris 10, AIX) do it like this. 742a466cc55SCy Schubertecho 'include confinc.mk # ignored' > confmf.GNU 743a466cc55SCy Schubert_am_result=no 744a466cc55SCy Schubertfor s in GNU BSD; do 745a466cc55SCy Schubert AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 746a466cc55SCy Schubert AS_CASE([$?:`cat confinc.out 2>/dev/null`], 747a466cc55SCy Schubert ['0:this is the am__doit target'], 748a466cc55SCy Schubert [AS_CASE([$s], 749a466cc55SCy Schubert [BSD], [am__include='.include' am__quote='"'], 750a466cc55SCy Schubert [am__include='include' am__quote=''])]) 751a466cc55SCy Schubert if test "$am__include" != "#"; then 752a466cc55SCy Schubert _am_result="yes ($s style)" 753a466cc55SCy Schubert break 7549c2daa00SOllivier Robert fi 755a466cc55SCy Schubertdone 756a466cc55SCy Schubertrm -f confinc.* confmf.* 757a466cc55SCy SchubertAC_MSG_RESULT([${_am_result}]) 758a466cc55SCy SchubertAC_SUBST([am__include])]) 759a466cc55SCy SchubertAC_SUBST([am__quote])]) 7609c2daa00SOllivier Robert 761ea906c41SOllivier Robert# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 7629c2daa00SOllivier Robert 763a466cc55SCy Schubert# Copyright (C) 1997-2021 Free Software Foundation, Inc. 764ea906c41SOllivier Robert# 765ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 766ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 767ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 7689c2daa00SOllivier Robert 769ea906c41SOllivier Robert# AM_MISSING_PROG(NAME, PROGRAM) 770ea906c41SOllivier Robert# ------------------------------ 771ea906c41SOllivier RobertAC_DEFUN([AM_MISSING_PROG], 772ea906c41SOllivier Robert[AC_REQUIRE([AM_MISSING_HAS_RUN]) 773ea906c41SOllivier Robert$1=${$1-"${am_missing_run}$2"} 774ea906c41SOllivier RobertAC_SUBST($1)]) 7759c2daa00SOllivier Robert 776ea906c41SOllivier Robert# AM_MISSING_HAS_RUN 777ea906c41SOllivier Robert# ------------------ 778276da39aSCy Schubert# Define MISSING if not defined so far and test if it is modern enough. 779276da39aSCy Schubert# If it is, set am_missing_run to use it, otherwise, to nothing. 780ea906c41SOllivier RobertAC_DEFUN([AM_MISSING_HAS_RUN], 781ea906c41SOllivier Robert[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 782eb6d21b4SOllivier RobertAC_REQUIRE_AUX_FILE([missing])dnl 783eb6d21b4SOllivier Robertif test x"${MISSING+set}" != xset; then 784a466cc55SCy Schubert MISSING="\${SHELL} '$am_aux_dir/missing'" 785eb6d21b4SOllivier Robertfi 786ea906c41SOllivier Robert# Use eval to expand $SHELL 787276da39aSCy Schubertif eval "$MISSING --is-lightweight"; then 788276da39aSCy Schubert am_missing_run="$MISSING " 7899c2daa00SOllivier Robertelse 790ea906c41SOllivier Robert am_missing_run= 791276da39aSCy Schubert AC_MSG_WARN(['missing' script is too old or missing]) 7929c2daa00SOllivier Robertfi 793ea906c41SOllivier Robert]) 7949c2daa00SOllivier Robert 795ea906c41SOllivier Robert# Helper functions for option handling. -*- Autoconf -*- 796ea906c41SOllivier Robert 797a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc. 798ea906c41SOllivier Robert# 799ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 800ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 801ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 802ea906c41SOllivier Robert 803ea906c41SOllivier Robert# _AM_MANGLE_OPTION(NAME) 804ea906c41SOllivier Robert# ----------------------- 805ea906c41SOllivier RobertAC_DEFUN([_AM_MANGLE_OPTION], 806ea906c41SOllivier Robert[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 807ea906c41SOllivier Robert 808ea906c41SOllivier Robert# _AM_SET_OPTION(NAME) 809276da39aSCy Schubert# -------------------- 810ea906c41SOllivier Robert# Set option NAME. Presently that only means defining a flag for this option. 811ea906c41SOllivier RobertAC_DEFUN([_AM_SET_OPTION], 812276da39aSCy Schubert[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 813ea906c41SOllivier Robert 814ea906c41SOllivier Robert# _AM_SET_OPTIONS(OPTIONS) 815276da39aSCy Schubert# ------------------------ 816ea906c41SOllivier Robert# OPTIONS is a space-separated list of Automake options. 817ea906c41SOllivier RobertAC_DEFUN([_AM_SET_OPTIONS], 818eb6d21b4SOllivier Robert[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 819ea906c41SOllivier Robert 820ea906c41SOllivier Robert# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 821ea906c41SOllivier Robert# ------------------------------------------- 822ea906c41SOllivier Robert# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 823ea906c41SOllivier RobertAC_DEFUN([_AM_IF_OPTION], 824ea906c41SOllivier Robert[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 825ea906c41SOllivier Robert 826a466cc55SCy Schubert# Copyright (C) 1999-2021 Free Software Foundation, Inc. 827ea906c41SOllivier Robert# 828ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 829ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 830ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 831ea906c41SOllivier Robert 832276da39aSCy Schubert# _AM_PROG_CC_C_O 833276da39aSCy Schubert# --------------- 834276da39aSCy Schubert# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 835276da39aSCy Schubert# to automatically call this. 836276da39aSCy SchubertAC_DEFUN([_AM_PROG_CC_C_O], 837276da39aSCy Schubert[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 838276da39aSCy SchubertAC_REQUIRE_AUX_FILE([compile])dnl 839276da39aSCy SchubertAC_LANG_PUSH([C])dnl 840276da39aSCy SchubertAC_CACHE_CHECK( 841276da39aSCy Schubert [whether $CC understands -c and -o together], 842276da39aSCy Schubert [am_cv_prog_cc_c_o], 843276da39aSCy Schubert [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 844276da39aSCy Schubert # Make sure it works both with $CC and with simple cc. 845276da39aSCy Schubert # Following AC_PROG_CC_C_O, we do the test twice because some 846276da39aSCy Schubert # compilers refuse to overwrite an existing .o file with -o, 847276da39aSCy Schubert # though they will create one. 848276da39aSCy Schubert am_cv_prog_cc_c_o=yes 849276da39aSCy Schubert for am_i in 1 2; do 850276da39aSCy Schubert if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 851276da39aSCy Schubert && test -f conftest2.$ac_objext; then 852276da39aSCy Schubert : OK 853276da39aSCy Schubert else 854276da39aSCy Schubert am_cv_prog_cc_c_o=no 855276da39aSCy Schubert break 856276da39aSCy Schubert fi 857276da39aSCy Schubert done 858276da39aSCy Schubert rm -f core conftest* 859276da39aSCy Schubert unset am_i]) 860276da39aSCy Schubertif test "$am_cv_prog_cc_c_o" != yes; then 861276da39aSCy Schubert # Losing compiler, so override with the script. 862276da39aSCy Schubert # FIXME: It is wrong to rewrite CC. 863276da39aSCy Schubert # But if we don't then we get into trouble of one sort or another. 864276da39aSCy Schubert # A longer-term fix would be to have automake use am__CC in this case, 865276da39aSCy Schubert # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 866276da39aSCy Schubert CC="$am_aux_dir/compile $CC" 867276da39aSCy Schubertfi 868276da39aSCy SchubertAC_LANG_POP([C])]) 869276da39aSCy Schubert 870276da39aSCy Schubert# For backward compatibility. 871276da39aSCy SchubertAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 872276da39aSCy Schubert 873a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc. 874276da39aSCy Schubert# 875276da39aSCy Schubert# This file is free software; the Free Software Foundation 876276da39aSCy Schubert# gives unlimited permission to copy and/or distribute it, 877276da39aSCy Schubert# with or without modifications, as long as this notice is preserved. 878276da39aSCy Schubert 879276da39aSCy Schubert# AM_RUN_LOG(COMMAND) 880276da39aSCy Schubert# ------------------- 881276da39aSCy Schubert# Run COMMAND, save the exit status in ac_status, and log it. 882276da39aSCy Schubert# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 883276da39aSCy SchubertAC_DEFUN([AM_RUN_LOG], 884276da39aSCy Schubert[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 885276da39aSCy Schubert ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 886276da39aSCy Schubert ac_status=$? 887276da39aSCy Schubert echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 888276da39aSCy Schubert (exit $ac_status); }]) 889276da39aSCy Schubert 890276da39aSCy Schubert# Check to make sure that the build environment is sane. -*- Autoconf -*- 891276da39aSCy Schubert 892a466cc55SCy Schubert# Copyright (C) 1996-2021 Free Software Foundation, Inc. 893276da39aSCy Schubert# 894276da39aSCy Schubert# This file is free software; the Free Software Foundation 895276da39aSCy Schubert# gives unlimited permission to copy and/or distribute it, 896276da39aSCy Schubert# with or without modifications, as long as this notice is preserved. 897ea906c41SOllivier Robert 898ea906c41SOllivier Robert# AM_SANITY_CHECK 899ea906c41SOllivier Robert# --------------- 900ea906c41SOllivier RobertAC_DEFUN([AM_SANITY_CHECK], 901ea906c41SOllivier Robert[AC_MSG_CHECKING([whether build environment is sane]) 902eb6d21b4SOllivier Robert# Reject unsafe characters in $srcdir or the absolute working directory 903eb6d21b4SOllivier Robert# name. Accept space and tab only in the latter. 904eb6d21b4SOllivier Robertam_lf=' 905eb6d21b4SOllivier Robert' 906eb6d21b4SOllivier Robertcase `pwd` in 907eb6d21b4SOllivier Robert *[[\\\"\#\$\&\'\`$am_lf]]*) 908eb6d21b4SOllivier Robert AC_MSG_ERROR([unsafe absolute working directory name]);; 909eb6d21b4SOllivier Robertesac 910eb6d21b4SOllivier Robertcase $srcdir in 911eb6d21b4SOllivier Robert *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 912276da39aSCy Schubert AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 913eb6d21b4SOllivier Robertesac 914eb6d21b4SOllivier Robert 915276da39aSCy Schubert# Do 'set' in a subshell so we don't clobber the current shell's 916ea906c41SOllivier Robert# arguments. Must try -L first in case configure is actually a 917ea906c41SOllivier Robert# symlink; some systems play weird games with the mod time of symlinks 918ea906c41SOllivier Robert# (eg FreeBSD returns the mod time of the symlink's containing 919ea906c41SOllivier Robert# directory). 920ea906c41SOllivier Robertif ( 921276da39aSCy Schubert am_has_slept=no 922276da39aSCy Schubert for am_try in 1 2; do 923276da39aSCy Schubert echo "timestamp, slept: $am_has_slept" > conftest.file 924eb6d21b4SOllivier Robert set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 925ea906c41SOllivier Robert if test "$[*]" = "X"; then 926ea906c41SOllivier Robert # -L didn't work. 927eb6d21b4SOllivier Robert set X `ls -t "$srcdir/configure" conftest.file` 928ea906c41SOllivier Robert fi 929ea906c41SOllivier Robert if test "$[*]" != "X $srcdir/configure conftest.file" \ 930ea906c41SOllivier Robert && test "$[*]" != "X conftest.file $srcdir/configure"; then 931ea906c41SOllivier Robert 932ea906c41SOllivier Robert # If neither matched, then we have a broken ls. This can happen 933ea906c41SOllivier Robert # if, for instance, CONFIG_SHELL is bash and it inherits a 934ea906c41SOllivier Robert # broken ls alias from the environment. This has actually 935ea906c41SOllivier Robert # happened. Such a system could not be considered "sane". 936ea906c41SOllivier Robert AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 937ea906c41SOllivier Robert alias in your environment]) 938ea906c41SOllivier Robert fi 939276da39aSCy Schubert if test "$[2]" = conftest.file || test $am_try -eq 2; then 940276da39aSCy Schubert break 941276da39aSCy Schubert fi 942276da39aSCy Schubert # Just in case. 943276da39aSCy Schubert sleep 1 944276da39aSCy Schubert am_has_slept=yes 945276da39aSCy Schubert done 946ea906c41SOllivier Robert test "$[2]" = conftest.file 947ea906c41SOllivier Robert ) 948ea906c41SOllivier Robertthen 949ea906c41SOllivier Robert # Ok. 950ea906c41SOllivier Robert : 951ea906c41SOllivier Robertelse 952ea906c41SOllivier Robert AC_MSG_ERROR([newly created file is older than distributed files! 953ea906c41SOllivier RobertCheck your system clock]) 954ea906c41SOllivier Robertfi 955276da39aSCy SchubertAC_MSG_RESULT([yes]) 956276da39aSCy Schubert# If we didn't sleep, we still need to ensure time stamps of config.status and 957276da39aSCy Schubert# generated files are strictly newer. 958276da39aSCy Schubertam_sleep_pid= 959276da39aSCy Schubertif grep 'slept: no' conftest.file >/dev/null 2>&1; then 960276da39aSCy Schubert ( sleep 1 ) & 961276da39aSCy Schubert am_sleep_pid=$! 962276da39aSCy Schubertfi 963276da39aSCy SchubertAC_CONFIG_COMMANDS_PRE( 964276da39aSCy Schubert [AC_MSG_CHECKING([that generated files are newer than configure]) 965276da39aSCy Schubert if test -n "$am_sleep_pid"; then 966276da39aSCy Schubert # Hide warnings about reused PIDs. 967276da39aSCy Schubert wait $am_sleep_pid 2>/dev/null 968276da39aSCy Schubert fi 969276da39aSCy Schubert AC_MSG_RESULT([done])]) 970276da39aSCy Schubertrm -f conftest.file 971276da39aSCy Schubert]) 972ea906c41SOllivier Robert 973a466cc55SCy Schubert# Copyright (C) 2009-2021 Free Software Foundation, Inc. 9742b15cb3dSCy Schubert# 9752b15cb3dSCy Schubert# This file is free software; the Free Software Foundation 9762b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it, 9772b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved. 9782b15cb3dSCy Schubert 9792b15cb3dSCy Schubert# AM_SILENT_RULES([DEFAULT]) 9802b15cb3dSCy Schubert# -------------------------- 9812b15cb3dSCy Schubert# Enable less verbose build rules; with the default set to DEFAULT 982276da39aSCy Schubert# ("yes" being less verbose, "no" or empty being verbose). 9832b15cb3dSCy SchubertAC_DEFUN([AM_SILENT_RULES], 984276da39aSCy Schubert[AC_ARG_ENABLE([silent-rules], [dnl 985276da39aSCy SchubertAS_HELP_STRING( 986276da39aSCy Schubert [--enable-silent-rules], 987276da39aSCy Schubert [less verbose build output (undo: "make V=1")]) 988276da39aSCy SchubertAS_HELP_STRING( 989276da39aSCy Schubert [--disable-silent-rules], 990276da39aSCy Schubert [verbose build output (undo: "make V=0")])dnl 991276da39aSCy Schubert]) 992276da39aSCy Schubertcase $enable_silent_rules in @%:@ ((( 9932b15cb3dSCy Schubert yes) AM_DEFAULT_VERBOSITY=0;; 9942b15cb3dSCy Schubert no) AM_DEFAULT_VERBOSITY=1;; 9952b15cb3dSCy Schubert *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 9962b15cb3dSCy Schubertesac 997276da39aSCy Schubertdnl 998276da39aSCy Schubertdnl A few 'make' implementations (e.g., NonStop OS and NextStep) 999276da39aSCy Schubertdnl do not support nested variable expansions. 1000276da39aSCy Schubertdnl See automake bug#9928 and bug#10237. 1001276da39aSCy Schubertam_make=${MAKE-make} 1002276da39aSCy SchubertAC_CACHE_CHECK([whether $am_make supports nested variables], 1003276da39aSCy Schubert [am_cv_make_support_nested_variables], 1004276da39aSCy Schubert [if AS_ECHO([['TRUE=$(BAR$(V)) 1005276da39aSCy SchubertBAR0=false 1006276da39aSCy SchubertBAR1=true 1007276da39aSCy SchubertV=1 1008276da39aSCy Schubertam__doit: 1009276da39aSCy Schubert @$(TRUE) 1010276da39aSCy Schubert.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1011276da39aSCy Schubert am_cv_make_support_nested_variables=yes 1012276da39aSCy Schubertelse 1013276da39aSCy Schubert am_cv_make_support_nested_variables=no 1014276da39aSCy Schubertfi]) 1015276da39aSCy Schubertif test $am_cv_make_support_nested_variables = yes; then 1016276da39aSCy Schubert dnl Using '$V' instead of '$(V)' breaks IRIX make. 1017276da39aSCy Schubert AM_V='$(V)' 1018276da39aSCy Schubert AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1019276da39aSCy Schubertelse 1020276da39aSCy Schubert AM_V=$AM_DEFAULT_VERBOSITY 1021276da39aSCy Schubert AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1022276da39aSCy Schubertfi 1023276da39aSCy SchubertAC_SUBST([AM_V])dnl 1024276da39aSCy SchubertAM_SUBST_NOTMAKE([AM_V])dnl 1025276da39aSCy SchubertAC_SUBST([AM_DEFAULT_V])dnl 1026276da39aSCy SchubertAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 10272b15cb3dSCy SchubertAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 10282b15cb3dSCy SchubertAM_BACKSLASH='\' 10292b15cb3dSCy SchubertAC_SUBST([AM_BACKSLASH])dnl 10302b15cb3dSCy Schubert_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 10312b15cb3dSCy Schubert]) 10322b15cb3dSCy Schubert 1033a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc. 1034ea906c41SOllivier Robert# 1035ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 1036ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 1037ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 1038ea906c41SOllivier Robert 1039ea906c41SOllivier Robert# AM_PROG_INSTALL_STRIP 1040ea906c41SOllivier Robert# --------------------- 1041276da39aSCy Schubert# One issue with vendor 'install' (even GNU) is that you can't 1042ea906c41SOllivier Robert# specify the program used to strip binaries. This is especially 1043ea906c41SOllivier Robert# annoying in cross-compiling environments, where the build's strip 1044ea906c41SOllivier Robert# is unlikely to handle the host's binaries. 1045ea906c41SOllivier Robert# Fortunately install-sh will honor a STRIPPROG variable, so we 1046276da39aSCy Schubert# always use install-sh in "make install-strip", and initialize 1047ea906c41SOllivier Robert# STRIPPROG with the value of the STRIP variable (set by the user). 1048ea906c41SOllivier RobertAC_DEFUN([AM_PROG_INSTALL_STRIP], 1049ea906c41SOllivier Robert[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1050276da39aSCy Schubert# Installed binaries are usually stripped using 'strip' when the user 1051276da39aSCy Schubert# run "make install-strip". However 'strip' might not be the right 1052ea906c41SOllivier Robert# tool to use in cross-compilation environments, therefore Automake 1053276da39aSCy Schubert# will honor the 'STRIP' environment variable to overrule this program. 1054276da39aSCy Schubertdnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1055ea906c41SOllivier Robertif test "$cross_compiling" != no; then 1056ea906c41SOllivier Robert AC_CHECK_TOOL([STRIP], [strip], :) 1057ea906c41SOllivier Robertfi 1058eb6d21b4SOllivier RobertINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1059ea906c41SOllivier RobertAC_SUBST([INSTALL_STRIP_PROGRAM])]) 1060ea906c41SOllivier Robert 1061a466cc55SCy Schubert# Copyright (C) 2006-2021 Free Software Foundation, Inc. 1062eb6d21b4SOllivier Robert# 1063eb6d21b4SOllivier Robert# This file is free software; the Free Software Foundation 1064eb6d21b4SOllivier Robert# gives unlimited permission to copy and/or distribute it, 1065eb6d21b4SOllivier Robert# with or without modifications, as long as this notice is preserved. 1066eb6d21b4SOllivier Robert 1067eb6d21b4SOllivier Robert# _AM_SUBST_NOTMAKE(VARIABLE) 1068eb6d21b4SOllivier Robert# --------------------------- 1069eb6d21b4SOllivier Robert# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1070eb6d21b4SOllivier Robert# This macro is traced by Automake. 1071eb6d21b4SOllivier RobertAC_DEFUN([_AM_SUBST_NOTMAKE]) 1072eb6d21b4SOllivier Robert 1073eb6d21b4SOllivier Robert# AM_SUBST_NOTMAKE(VARIABLE) 1074276da39aSCy Schubert# -------------------------- 1075eb6d21b4SOllivier Robert# Public sister of _AM_SUBST_NOTMAKE. 1076eb6d21b4SOllivier RobertAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1077eb6d21b4SOllivier Robert 1078ea906c41SOllivier Robert# Check how to create a tarball. -*- Autoconf -*- 1079ea906c41SOllivier Robert 1080a466cc55SCy Schubert# Copyright (C) 2004-2021 Free Software Foundation, Inc. 1081ea906c41SOllivier Robert# 1082ea906c41SOllivier Robert# This file is free software; the Free Software Foundation 1083ea906c41SOllivier Robert# gives unlimited permission to copy and/or distribute it, 1084ea906c41SOllivier Robert# with or without modifications, as long as this notice is preserved. 1085ea906c41SOllivier Robert 1086ea906c41SOllivier Robert# _AM_PROG_TAR(FORMAT) 1087ea906c41SOllivier Robert# -------------------- 1088ea906c41SOllivier Robert# Check how to create a tarball in format FORMAT. 1089276da39aSCy Schubert# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1090ea906c41SOllivier Robert# 1091ea906c41SOllivier Robert# Substitute a variable $(am__tar) that is a command 1092ea906c41SOllivier Robert# writing to stdout a FORMAT-tarball containing the directory 1093ea906c41SOllivier Robert# $tardir. 1094ea906c41SOllivier Robert# tardir=directory && $(am__tar) > result.tar 1095ea906c41SOllivier Robert# 1096ea906c41SOllivier Robert# Substitute a variable $(am__untar) that extract such 1097ea906c41SOllivier Robert# a tarball read from stdin. 1098ea906c41SOllivier Robert# $(am__untar) < result.tar 1099276da39aSCy Schubert# 1100ea906c41SOllivier RobertAC_DEFUN([_AM_PROG_TAR], 1101276da39aSCy Schubert[# Always define AMTAR for backward compatibility. Yes, it's still used 1102276da39aSCy Schubert# in the wild :-( We should find a proper way to deprecate it ... 1103276da39aSCy SchubertAC_SUBST([AMTAR], ['$${TAR-tar}']) 1104276da39aSCy Schubert 1105276da39aSCy Schubert# We'll loop over all known methods to create a tar archive until one works. 1106ea906c41SOllivier Robert_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1107276da39aSCy Schubert 1108276da39aSCy Schubertm4_if([$1], [v7], 1109276da39aSCy Schubert [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1110276da39aSCy Schubert 1111276da39aSCy Schubert [m4_case([$1], 1112276da39aSCy Schubert [ustar], 1113276da39aSCy Schubert [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1114276da39aSCy Schubert # There is notably a 21 bits limit for the UID and the GID. In fact, 1115276da39aSCy Schubert # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1116276da39aSCy Schubert # and bug#13588). 1117276da39aSCy Schubert am_max_uid=2097151 # 2^21 - 1 1118276da39aSCy Schubert am_max_gid=$am_max_uid 1119276da39aSCy Schubert # The $UID and $GID variables are not portable, so we need to resort 1120276da39aSCy Schubert # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1121276da39aSCy Schubert # below are definitely unexpected, so allow the users to see them 1122276da39aSCy Schubert # (that is, avoid stderr redirection). 1123276da39aSCy Schubert am_uid=`id -u || echo unknown` 1124276da39aSCy Schubert am_gid=`id -g || echo unknown` 1125276da39aSCy Schubert AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1126276da39aSCy Schubert if test $am_uid -le $am_max_uid; then 1127276da39aSCy Schubert AC_MSG_RESULT([yes]) 1128276da39aSCy Schubert else 1129276da39aSCy Schubert AC_MSG_RESULT([no]) 1130276da39aSCy Schubert _am_tools=none 1131276da39aSCy Schubert fi 1132276da39aSCy Schubert AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1133276da39aSCy Schubert if test $am_gid -le $am_max_gid; then 1134276da39aSCy Schubert AC_MSG_RESULT([yes]) 1135276da39aSCy Schubert else 1136276da39aSCy Schubert AC_MSG_RESULT([no]) 1137276da39aSCy Schubert _am_tools=none 1138276da39aSCy Schubert fi], 1139276da39aSCy Schubert 1140276da39aSCy Schubert [pax], 1141276da39aSCy Schubert [], 1142276da39aSCy Schubert 1143276da39aSCy Schubert [m4_fatal([Unknown tar format])]) 1144276da39aSCy Schubert 1145276da39aSCy Schubert AC_MSG_CHECKING([how to create a $1 tar archive]) 1146276da39aSCy Schubert 1147276da39aSCy Schubert # Go ahead even if we have the value already cached. We do so because we 1148276da39aSCy Schubert # need to set the values for the 'am__tar' and 'am__untar' variables. 1149ea906c41SOllivier Robert _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1150276da39aSCy Schubert 1151276da39aSCy Schubert for _am_tool in $_am_tools; do 1152ea906c41SOllivier Robert case $_am_tool in 1153ea906c41SOllivier Robert gnutar) 1154276da39aSCy Schubert for _am_tar in tar gnutar gtar; do 1155ea906c41SOllivier Robert AM_RUN_LOG([$_am_tar --version]) && break 1156ea906c41SOllivier Robert done 1157ea906c41SOllivier Robert am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1158ea906c41SOllivier Robert am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1159ea906c41SOllivier Robert am__untar="$_am_tar -xf -" 1160ea906c41SOllivier Robert ;; 1161ea906c41SOllivier Robert plaintar) 1162ea906c41SOllivier Robert # Must skip GNU tar: if it does not support --format= it doesn't create 1163ea906c41SOllivier Robert # ustar tarball either. 1164ea906c41SOllivier Robert (tar --version) >/dev/null 2>&1 && continue 1165ea906c41SOllivier Robert am__tar='tar chf - "$$tardir"' 1166ea906c41SOllivier Robert am__tar_='tar chf - "$tardir"' 1167ea906c41SOllivier Robert am__untar='tar xf -' 1168ea906c41SOllivier Robert ;; 1169ea906c41SOllivier Robert pax) 1170ea906c41SOllivier Robert am__tar='pax -L -x $1 -w "$$tardir"' 1171ea906c41SOllivier Robert am__tar_='pax -L -x $1 -w "$tardir"' 1172ea906c41SOllivier Robert am__untar='pax -r' 1173ea906c41SOllivier Robert ;; 1174ea906c41SOllivier Robert cpio) 1175ea906c41SOllivier Robert am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1176ea906c41SOllivier Robert am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1177ea906c41SOllivier Robert am__untar='cpio -i -H $1 -d' 1178ea906c41SOllivier Robert ;; 1179ea906c41SOllivier Robert none) 1180ea906c41SOllivier Robert am__tar=false 1181ea906c41SOllivier Robert am__tar_=false 1182ea906c41SOllivier Robert am__untar=false 1183ea906c41SOllivier Robert ;; 1184ea906c41SOllivier Robert esac 1185ea906c41SOllivier Robert 1186ea906c41SOllivier Robert # If the value was cached, stop now. We just wanted to have am__tar 1187ea906c41SOllivier Robert # and am__untar set. 1188ea906c41SOllivier Robert test -n "${am_cv_prog_tar_$1}" && break 1189ea906c41SOllivier Robert 1190276da39aSCy Schubert # tar/untar a dummy directory, and stop if the command works. 1191ea906c41SOllivier Robert rm -rf conftest.dir 1192ea906c41SOllivier Robert mkdir conftest.dir 1193ea906c41SOllivier Robert echo GrepMe > conftest.dir/file 1194ea906c41SOllivier Robert AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1195ea906c41SOllivier Robert rm -rf conftest.dir 1196ea906c41SOllivier Robert if test -s conftest.tar; then 1197ea906c41SOllivier Robert AM_RUN_LOG([$am__untar <conftest.tar]) 1198276da39aSCy Schubert AM_RUN_LOG([cat conftest.dir/file]) 1199ea906c41SOllivier Robert grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1200ea906c41SOllivier Robert fi 1201ea906c41SOllivier Robert done 1202ea906c41SOllivier Robert rm -rf conftest.dir 1203ea906c41SOllivier Robert 1204ea906c41SOllivier Robert AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1205ea906c41SOllivier Robert AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1206276da39aSCy Schubert 1207ea906c41SOllivier RobertAC_SUBST([am__tar]) 1208ea906c41SOllivier RobertAC_SUBST([am__untar]) 1209ea906c41SOllivier Robert]) # _AM_PROG_TAR 1210ea906c41SOllivier Robert 1211ea906c41SOllivier Robertm4_include([libopts/m4/libopts.m4]) 12122b15cb3dSCy Schubertm4_include([libopts/m4/stdnoreturn.m4]) 12132b15cb3dSCy Schubertm4_include([m4/hms_search_lib.m4]) 12142b15cb3dSCy Schubertm4_include([m4/libtool.m4]) 12152b15cb3dSCy Schubertm4_include([m4/ltoptions.m4]) 12162b15cb3dSCy Schubertm4_include([m4/ltsugar.m4]) 12172b15cb3dSCy Schubertm4_include([m4/ltversion.m4]) 12182b15cb3dSCy Schubertm4_include([m4/lt~obsolete.m4]) 12192b15cb3dSCy Schubertm4_include([m4/ntp_cacheversion.m4]) 12202b15cb3dSCy Schubertm4_include([m4/ntp_compiler.m4]) 12212b15cb3dSCy Schubertm4_include([m4/ntp_crosscompile.m4]) 1222*f5f40dd6SCy Schubertm4_include([m4/ntp_crypto_rand.m4]) 12232b15cb3dSCy Schubertm4_include([m4/ntp_debug.m4]) 12242b15cb3dSCy Schubertm4_include([m4/ntp_dir_sep.m4]) 12252b15cb3dSCy Schubertm4_include([m4/ntp_facilitynames.m4]) 1226f0574f5cSXin LIm4_include([m4/ntp_harden.m4]) 12272b15cb3dSCy Schubertm4_include([m4/ntp_ipv6.m4]) 12282b15cb3dSCy Schubertm4_include([m4/ntp_lib_m.m4]) 12292b15cb3dSCy Schubertm4_include([m4/ntp_libevent.m4]) 12302b15cb3dSCy Schubertm4_include([m4/ntp_libntp.m4]) 12312b15cb3dSCy Schubertm4_include([m4/ntp_lineeditlibs.m4]) 12322b15cb3dSCy Schubertm4_include([m4/ntp_locinfo.m4]) 12332b15cb3dSCy Schubertm4_include([m4/ntp_openssl.m4]) 12342b15cb3dSCy Schubertm4_include([m4/ntp_pkg_config.m4]) 12352b15cb3dSCy Schubertm4_include([m4/ntp_prog_cc.m4]) 12362b15cb3dSCy Schubertm4_include([m4/ntp_sntp.m4]) 12372b15cb3dSCy Schubertm4_include([m4/ntp_sysexits.m4]) 1238276da39aSCy Schubertm4_include([m4/ntp_unitytest.m4]) 12392b15cb3dSCy Schubertm4_include([m4/ntp_ver_suffix.m4]) 1240a25439b6SCy Schubertm4_include([m4/openldap-thread-check.m4]) 1241a25439b6SCy Schubertm4_include([m4/openldap.m4]) 12422b15cb3dSCy Schubertm4_include([m4/os_cflags.m4]) 12432b15cb3dSCy Schubertm4_include([m4/snprintf.m4]) 1244e27abb66SXin LIm4_include([m4/sntp_problemtests.m4]) 1245