aclocal.m4 revision a32e9e42
1a32e9e42Smrg# generated automatically by aclocal 1.16.1 -*- Autoconf -*- 2c9710b42Smrg 3a32e9e42Smrg# Copyright (C) 1996-2018 Free Software Foundation, Inc. 42c393a42Smrg 52c393a42Smrg# This file is free software; the Free Software Foundation 62c393a42Smrg# gives unlimited permission to copy and/or distribute it, 72c393a42Smrg# with or without modifications, as long as this notice is preserved. 82c393a42Smrg 92c393a42Smrg# This program is distributed in the hope that it will be useful, 102c393a42Smrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 112c393a42Smrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 122c393a42Smrg# PARTICULAR PURPOSE. 132c393a42Smrg 146fc018e4Smrgm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15a6844aabSmrgm4_ifndef([AC_AUTOCONF_VERSION], 16a6844aabSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17c9710b42Smrgm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18c9710b42Smrg[m4_warning([this file was generated for autoconf 2.69. 19a6844aabSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 20a6844aabSmrgIf you have problems, you may need to regenerate the build system entirely. 21c9710b42SmrgTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22a6844aabSmrg 23a32e9e42Smrg# Copyright (C) 2002-2018 Free Software Foundation, Inc. 242c393a42Smrg# 252c393a42Smrg# This file is free software; the Free Software Foundation 262c393a42Smrg# gives unlimited permission to copy and/or distribute it, 272c393a42Smrg# with or without modifications, as long as this notice is preserved. 282c393a42Smrg 292c393a42Smrg# AM_AUTOMAKE_VERSION(VERSION) 302c393a42Smrg# ---------------------------- 312c393a42Smrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 322c393a42Smrg# generated from the m4 files accompanying Automake X.Y. 33a6844aabSmrg# (This private macro should not be called outside this file.) 34a6844aabSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 35a32e9e42Smrg[am__api_version='1.16' 36a6844aabSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37a6844aabSmrgdnl require some minimum version. Point them to the right macro. 38a32e9e42Smrgm4_if([$1], [1.16.1], [], 39a6844aabSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40a6844aabSmrg]) 41a6844aabSmrg 42a6844aabSmrg# _AM_AUTOCONF_VERSION(VERSION) 43a6844aabSmrg# ----------------------------- 44a6844aabSmrg# aclocal traces this macro to find the Autoconf version. 45a6844aabSmrg# This is a private macro too. Using m4_define simplifies 46a6844aabSmrg# the logic in aclocal, which can simply ignore this definition. 47a6844aabSmrgm4_define([_AM_AUTOCONF_VERSION], []) 482c393a42Smrg 492c393a42Smrg# AM_SET_CURRENT_AUTOMAKE_VERSION 502c393a42Smrg# ------------------------------- 51a6844aabSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 52a6844aabSmrg# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 532c393a42SmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54a32e9e42Smrg[AM_AUTOMAKE_VERSION([1.16.1])dnl 55a6844aabSmrgm4_ifndef([AC_AUTOCONF_VERSION], 56a6844aabSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 57a6844aabSmrg_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 582c393a42Smrg 592c393a42Smrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 602c393a42Smrg 61a32e9e42Smrg# Copyright (C) 2001-2018 Free Software Foundation, Inc. 622c393a42Smrg# 632c393a42Smrg# This file is free software; the Free Software Foundation 642c393a42Smrg# gives unlimited permission to copy and/or distribute it, 652c393a42Smrg# with or without modifications, as long as this notice is preserved. 662c393a42Smrg 672c393a42Smrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 68c9710b42Smrg# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 69c9710b42Smrg# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 702c393a42Smrg# 712c393a42Smrg# Of course, Automake must honor this variable whenever it calls a 722c393a42Smrg# tool from the auxiliary directory. The problem is that $srcdir (and 732c393a42Smrg# therefore $ac_aux_dir as well) can be either absolute or relative, 742c393a42Smrg# depending on how configure is run. This is pretty annoying, since 752c393a42Smrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 762c393a42Smrg# source directory, any form will work fine, but in subdirectories a 772c393a42Smrg# relative path needs to be adjusted first. 782c393a42Smrg# 792c393a42Smrg# $ac_aux_dir/missing 802c393a42Smrg# fails when called from a subdirectory if $ac_aux_dir is relative 812c393a42Smrg# $top_srcdir/$ac_aux_dir/missing 822c393a42Smrg# fails if $ac_aux_dir is absolute, 832c393a42Smrg# fails when called from a subdirectory in a VPATH build with 842c393a42Smrg# a relative $ac_aux_dir 852c393a42Smrg# 862c393a42Smrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 872c393a42Smrg# are both prefixed by $srcdir. In an in-source build this is usually 88c9710b42Smrg# harmless because $srcdir is '.', but things will broke when you 892c393a42Smrg# start a VPATH build or use an absolute $srcdir. 902c393a42Smrg# 912c393a42Smrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 922c393a42Smrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 932c393a42Smrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 942c393a42Smrg# and then we would define $MISSING as 952c393a42Smrg# MISSING="\${SHELL} $am_aux_dir/missing" 962c393a42Smrg# This will work as long as MISSING is not called from configure, because 972c393a42Smrg# unfortunately $(top_srcdir) has no meaning in configure. 982c393a42Smrg# However there are other variables, like CC, which are often used in 992c393a42Smrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 1002c393a42Smrg# 1012c393a42Smrg# Another solution, used here, is to always expand $ac_aux_dir to an 1022c393a42Smrg# absolute PATH. The drawback is that using absolute paths prevent a 1032c393a42Smrg# configured tree to be moved without reconfiguration. 1042c393a42Smrg 1052c393a42SmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 106953daebaSmrg[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 107953daebaSmrg# Expand $ac_aux_dir to an absolute path. 108953daebaSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 1092c393a42Smrg]) 1102c393a42Smrg 1112c393a42Smrg# AM_CONDITIONAL -*- Autoconf -*- 1122c393a42Smrg 113a32e9e42Smrg# Copyright (C) 1997-2018 Free Software Foundation, Inc. 1142c393a42Smrg# 1152c393a42Smrg# This file is free software; the Free Software Foundation 1162c393a42Smrg# gives unlimited permission to copy and/or distribute it, 1172c393a42Smrg# with or without modifications, as long as this notice is preserved. 1182c393a42Smrg 1192c393a42Smrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 1202c393a42Smrg# ------------------------------------- 1212c393a42Smrg# Define a conditional. 1222c393a42SmrgAC_DEFUN([AM_CONDITIONAL], 123c9710b42Smrg[AC_PREREQ([2.52])dnl 124c9710b42Smrg m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 125c9710b42Smrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 126a6844aabSmrgAC_SUBST([$1_TRUE])dnl 127a6844aabSmrgAC_SUBST([$1_FALSE])dnl 128a6844aabSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 129a6844aabSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 130a6844aabSmrgm4_define([_AM_COND_VALUE_$1], [$2])dnl 1312c393a42Smrgif $2; then 1322c393a42Smrg $1_TRUE= 1332c393a42Smrg $1_FALSE='#' 1342c393a42Smrgelse 1352c393a42Smrg $1_TRUE='#' 1362c393a42Smrg $1_FALSE= 1372c393a42Smrgfi 1382c393a42SmrgAC_CONFIG_COMMANDS_PRE( 1392c393a42Smrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 1402c393a42Smrg AC_MSG_ERROR([[conditional "$1" was never defined. 1412c393a42SmrgUsually this means the macro was only invoked conditionally.]]) 1422c393a42Smrgfi])]) 1432c393a42Smrg 144a32e9e42Smrg# Copyright (C) 1999-2018 Free Software Foundation, Inc. 1452c393a42Smrg# 1462c393a42Smrg# This file is free software; the Free Software Foundation 1472c393a42Smrg# gives unlimited permission to copy and/or distribute it, 1482c393a42Smrg# with or without modifications, as long as this notice is preserved. 1492c393a42Smrg 1502c393a42Smrg 151c9710b42Smrg# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 1522c393a42Smrg# written in clear, in which case automake, when reading aclocal.m4, 1532c393a42Smrg# will think it sees a *use*, and therefore will trigger all it's 1542c393a42Smrg# C support machinery. Also note that it means that autoscan, seeing 1552c393a42Smrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 1562c393a42Smrg 1572c393a42Smrg 1582c393a42Smrg# _AM_DEPENDENCIES(NAME) 1592c393a42Smrg# ---------------------- 1602c393a42Smrg# See how the compiler implements dependency checking. 161c9710b42Smrg# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 1622c393a42Smrg# We try a few techniques and use that to set a single cache variable. 1632c393a42Smrg# 1642c393a42Smrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 1652c393a42Smrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 1662c393a42Smrg# dependency, and given that the user is not expected to run this macro, 1672c393a42Smrg# just rely on AC_PROG_CC. 1682c393a42SmrgAC_DEFUN([_AM_DEPENDENCIES], 1692c393a42Smrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 1702c393a42SmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 1712c393a42SmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 1722c393a42SmrgAC_REQUIRE([AM_DEP_TRACK])dnl 1732c393a42Smrg 174c9710b42Smrgm4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 175c9710b42Smrg [$1], [CXX], [depcc="$CXX" am_compiler_list=], 176c9710b42Smrg [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 177c9710b42Smrg [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 178c9710b42Smrg [$1], [UPC], [depcc="$UPC" am_compiler_list=], 179c9710b42Smrg [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 180c9710b42Smrg [depcc="$$1" am_compiler_list=]) 1812c393a42Smrg 1822c393a42SmrgAC_CACHE_CHECK([dependency style of $depcc], 1832c393a42Smrg [am_cv_$1_dependencies_compiler_type], 1842c393a42Smrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 1852c393a42Smrg # We make a subdir and do the tests there. Otherwise we can end up 1862c393a42Smrg # making bogus files that we don't know about and never remove. For 1872c393a42Smrg # instance it was reported that on HP-UX the gcc test will end up 188c9710b42Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 189c9710b42Smrg # in D". 190ca08ab68Smrg rm -rf conftest.dir 1912c393a42Smrg mkdir conftest.dir 1922c393a42Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 1932c393a42Smrg # using a relative directory. 1942c393a42Smrg cp "$am_depcomp" conftest.dir 1952c393a42Smrg cd conftest.dir 1962c393a42Smrg # We will build objects and dependencies in a subdirectory because 1972c393a42Smrg # it helps to detect inapplicable dependency modes. For instance 1982c393a42Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 1992c393a42Smrg # side effect of compilation, but ICC will put the dependencies in 2002c393a42Smrg # the current directory while Tru64 will put them in the object 2012c393a42Smrg # directory. 2022c393a42Smrg mkdir sub 2032c393a42Smrg 2042c393a42Smrg am_cv_$1_dependencies_compiler_type=none 2052c393a42Smrg if test "$am_compiler_list" = ""; then 2062c393a42Smrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 2072c393a42Smrg fi 208a6844aabSmrg am__universal=false 209a6844aabSmrg m4_case([$1], [CC], 210a6844aabSmrg [case " $depcc " in #( 211a6844aabSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 212a6844aabSmrg esac], 213a6844aabSmrg [CXX], 214a6844aabSmrg [case " $depcc " in #( 215a6844aabSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 216a6844aabSmrg esac]) 217a6844aabSmrg 2182c393a42Smrg for depmode in $am_compiler_list; do 2192c393a42Smrg # Setup a source with many dependencies, because some compilers 2202c393a42Smrg # like to wrap large dependency lists on column 80 (with \), and 2212c393a42Smrg # we should not choose a depcomp mode which is confused by this. 2222c393a42Smrg # 2232c393a42Smrg # We need to recreate these files for each test, as the compiler may 2242c393a42Smrg # overwrite some of them when testing with obscure command lines. 2252c393a42Smrg # This happens at least with the AIX C compiler. 2262c393a42Smrg : > sub/conftest.c 2272c393a42Smrg for i in 1 2 3 4 5 6; do 2282c393a42Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 229c9710b42Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 230c9710b42Smrg # Solaris 10 /bin/sh. 231c9710b42Smrg echo '/* dummy */' > sub/conftst$i.h 2322c393a42Smrg done 2332c393a42Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2342c393a42Smrg 235c9710b42Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 236a6844aabSmrg # mode. It turns out that the SunPro C++ compiler does not properly 237c9710b42Smrg # handle '-M -o', and we need to detect this. Also, some Intel 238c9710b42Smrg # versions had trouble with output in subdirs. 239a6844aabSmrg am__obj=sub/conftest.${OBJEXT-o} 240a6844aabSmrg am__minus_obj="-o $am__obj" 2412c393a42Smrg case $depmode in 242a6844aabSmrg gcc) 243a6844aabSmrg # This depmode causes a compiler race in universal mode. 244a6844aabSmrg test "$am__universal" = false || continue 245a6844aabSmrg ;; 2462c393a42Smrg nosideeffect) 247c9710b42Smrg # After this tag, mechanisms are not by side-effect, so they'll 248c9710b42Smrg # only be used when explicitly requested. 2492c393a42Smrg if test "x$enable_dependency_tracking" = xyes; then 2502c393a42Smrg continue 2512c393a42Smrg else 2522c393a42Smrg break 2532c393a42Smrg fi 2542c393a42Smrg ;; 255ca08ab68Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 256c9710b42Smrg # This compiler won't grok '-c -o', but also, the minuso test has 257a6844aabSmrg # not run yet. These depmodes are late enough in the game, and 258a6844aabSmrg # so weak that their functioning should not be impacted. 259a6844aabSmrg am__obj=conftest.${OBJEXT-o} 260a6844aabSmrg am__minus_obj= 261a6844aabSmrg ;; 2622c393a42Smrg none) break ;; 2632c393a42Smrg esac 2642c393a42Smrg if depmode=$depmode \ 265a6844aabSmrg source=sub/conftest.c object=$am__obj \ 2662c393a42Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 267a6844aabSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 2682c393a42Smrg >/dev/null 2>conftest.err && 269a6844aabSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 2702c393a42Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 271a6844aabSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 2722c393a42Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2732c393a42Smrg # icc doesn't choke on unknown options, it will just issue warnings 2742c393a42Smrg # or remarks (even with -Werror). So we grep stderr for any message 2752c393a42Smrg # that says an option was ignored or not supported. 2762c393a42Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 2772c393a42Smrg # icc: Command line warning: ignoring option '-M'; no argument required 2782c393a42Smrg # The diagnosis changed in icc 8.0: 2792c393a42Smrg # icc: Command line remark: option '-MP' not supported 2802c393a42Smrg if (grep 'ignoring option' conftest.err || 2812c393a42Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2822c393a42Smrg am_cv_$1_dependencies_compiler_type=$depmode 2832c393a42Smrg break 2842c393a42Smrg fi 2852c393a42Smrg fi 2862c393a42Smrg done 2872c393a42Smrg 2882c393a42Smrg cd .. 2892c393a42Smrg rm -rf conftest.dir 2902c393a42Smrgelse 2912c393a42Smrg am_cv_$1_dependencies_compiler_type=none 2922c393a42Smrgfi 2932c393a42Smrg]) 2942c393a42SmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 2952c393a42SmrgAM_CONDITIONAL([am__fastdep$1], [ 2962c393a42Smrg test "x$enable_dependency_tracking" != xno \ 2972c393a42Smrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 2982c393a42Smrg]) 2992c393a42Smrg 3002c393a42Smrg 3012c393a42Smrg# AM_SET_DEPDIR 3022c393a42Smrg# ------------- 3032c393a42Smrg# Choose a directory name for dependency files. 304c9710b42Smrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 3052c393a42SmrgAC_DEFUN([AM_SET_DEPDIR], 3062c393a42Smrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 3072c393a42SmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 3082c393a42Smrg]) 3092c393a42Smrg 3102c393a42Smrg 3112c393a42Smrg# AM_DEP_TRACK 3122c393a42Smrg# ------------ 3132c393a42SmrgAC_DEFUN([AM_DEP_TRACK], 314c9710b42Smrg[AC_ARG_ENABLE([dependency-tracking], [dnl 315c9710b42SmrgAS_HELP_STRING( 316c9710b42Smrg [--enable-dependency-tracking], 317c9710b42Smrg [do not reject slow dependency extractors]) 318c9710b42SmrgAS_HELP_STRING( 319c9710b42Smrg [--disable-dependency-tracking], 320c9710b42Smrg [speeds up one-time build])]) 3212c393a42Smrgif test "x$enable_dependency_tracking" != xno; then 3222c393a42Smrg am_depcomp="$ac_aux_dir/depcomp" 3232c393a42Smrg AMDEPBACKSLASH='\' 324ca08ab68Smrg am__nodep='_no' 3252c393a42Smrgfi 3262c393a42SmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 327a6844aabSmrgAC_SUBST([AMDEPBACKSLASH])dnl 328a6844aabSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 329ca08ab68SmrgAC_SUBST([am__nodep])dnl 330ca08ab68Smrg_AM_SUBST_NOTMAKE([am__nodep])dnl 3312c393a42Smrg]) 3322c393a42Smrg 3332c393a42Smrg# Generate code to set up dependency tracking. -*- Autoconf -*- 3342c393a42Smrg 335a32e9e42Smrg# Copyright (C) 1999-2018 Free Software Foundation, Inc. 3362c393a42Smrg# 3372c393a42Smrg# This file is free software; the Free Software Foundation 3382c393a42Smrg# gives unlimited permission to copy and/or distribute it, 3392c393a42Smrg# with or without modifications, as long as this notice is preserved. 3402c393a42Smrg 3412c393a42Smrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 3422c393a42Smrg# ------------------------------ 3432c393a42SmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 344a6844aabSmrg[{ 3456fc018e4Smrg # Older Autoconf quotes --file arguments for eval, but not when files 346a6844aabSmrg # are listed without --file. Let's play safe and only enable the eval 347a6844aabSmrg # if we detect the quoting. 348a32e9e42Smrg # TODO: see whether this extra hack can be removed once we start 349a32e9e42Smrg # requiring Autoconf 2.70 or later. 350a32e9e42Smrg AS_CASE([$CONFIG_FILES], 351a32e9e42Smrg [*\'*], [eval set x "$CONFIG_FILES"], 352a32e9e42Smrg [*], [set x $CONFIG_FILES]) 353a6844aabSmrg shift 354a32e9e42Smrg # Used to flag and report bootstrapping failures. 355a32e9e42Smrg am_rc=0 356a32e9e42Smrg for am_mf 357a6844aabSmrg do 358a6844aabSmrg # Strip MF so we end up with the name of the file. 359a32e9e42Smrg am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 360a32e9e42Smrg # Check whether this is an Automake generated Makefile which includes 361a32e9e42Smrg # dependency-tracking related rules and includes. 362a32e9e42Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 363a6844aabSmrg # limit of 2048, but all sed's we know have understand at least 4000. 364a32e9e42Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 365a32e9e42Smrg || continue 366a32e9e42Smrg am_dirpart=`AS_DIRNAME(["$am_mf"])` 367a32e9e42Smrg am_filepart=`AS_BASENAME(["$am_mf"])` 368a32e9e42Smrg AM_RUN_LOG([cd "$am_dirpart" \ 369a32e9e42Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 370a32e9e42Smrg | $MAKE -f - am--depfiles]) || am_rc=$? 3712c393a42Smrg done 372a32e9e42Smrg if test $am_rc -ne 0; then 373a32e9e42Smrg AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 374a32e9e42Smrg for automatic dependency tracking. Try re-running configure with the 375a32e9e42Smrg '--disable-dependency-tracking' option to at least be able to build 376a32e9e42Smrg the package (albeit without support for automatic dependency tracking).]) 377a32e9e42Smrg fi 378a32e9e42Smrg AS_UNSET([am_dirpart]) 379a32e9e42Smrg AS_UNSET([am_filepart]) 380a32e9e42Smrg AS_UNSET([am_mf]) 381a32e9e42Smrg AS_UNSET([am_rc]) 382a32e9e42Smrg rm -f conftest-deps.mk 383a6844aabSmrg} 3842c393a42Smrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 3852c393a42Smrg 3862c393a42Smrg 3872c393a42Smrg# AM_OUTPUT_DEPENDENCY_COMMANDS 3882c393a42Smrg# ----------------------------- 3892c393a42Smrg# This macro should only be invoked once -- use via AC_REQUIRE. 3902c393a42Smrg# 391a32e9e42Smrg# This code is only required when automatic dependency tracking is enabled. 392a32e9e42Smrg# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 393a32e9e42Smrg# order to bootstrap the dependency handling code. 3942c393a42SmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 3952c393a42Smrg[AC_CONFIG_COMMANDS([depfiles], 3962c393a42Smrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 397a32e9e42Smrg [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 3982c393a42Smrg 3992c393a42Smrg# Do all the work for Automake. -*- Autoconf -*- 4002c393a42Smrg 401a32e9e42Smrg# Copyright (C) 1996-2018 Free Software Foundation, Inc. 4022c393a42Smrg# 4032c393a42Smrg# This file is free software; the Free Software Foundation 4042c393a42Smrg# gives unlimited permission to copy and/or distribute it, 4052c393a42Smrg# with or without modifications, as long as this notice is preserved. 4062c393a42Smrg 4072c393a42Smrg# This macro actually does too much. Some checks are only needed if 4082c393a42Smrg# your package does certain things. But this isn't really a big deal. 4092c393a42Smrg 410953daebaSmrgdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 411953daebaSmrgm4_define([AC_PROG_CC], 412953daebaSmrgm4_defn([AC_PROG_CC]) 413953daebaSmrg[_AM_PROG_CC_C_O 414953daebaSmrg]) 415953daebaSmrg 4162c393a42Smrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 4172c393a42Smrg# AM_INIT_AUTOMAKE([OPTIONS]) 4182c393a42Smrg# ----------------------------------------------- 4192c393a42Smrg# The call with PACKAGE and VERSION arguments is the old style 4202c393a42Smrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 4212c393a42Smrg# and VERSION should now be passed to AC_INIT and removed from 4222c393a42Smrg# the call to AM_INIT_AUTOMAKE. 4232c393a42Smrg# We support both call styles for the transition. After 4242c393a42Smrg# the next Automake release, Autoconf can make the AC_INIT 4252c393a42Smrg# arguments mandatory, and then we can depend on a new Autoconf 4262c393a42Smrg# release and drop the old call support. 4272c393a42SmrgAC_DEFUN([AM_INIT_AUTOMAKE], 4286fc018e4Smrg[AC_PREREQ([2.65])dnl 4292c393a42Smrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 4302c393a42Smrgdnl the ones we care about. 4312c393a42Smrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 4322c393a42SmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 4332c393a42SmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 434a6844aabSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 435a6844aabSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 436a6844aabSmrg # is not polluted with repeated "-I." 437a6844aabSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 438a6844aabSmrg # test to see if srcdir already configured 439a6844aabSmrg if test -f $srcdir/config.status; then 440a6844aabSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 441a6844aabSmrg fi 4422c393a42Smrgfi 4432c393a42Smrg 4442c393a42Smrg# test whether we have cygpath 4452c393a42Smrgif test -z "$CYGPATH_W"; then 4462c393a42Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 4472c393a42Smrg CYGPATH_W='cygpath -w' 4482c393a42Smrg else 4492c393a42Smrg CYGPATH_W=echo 4502c393a42Smrg fi 4512c393a42Smrgfi 4522c393a42SmrgAC_SUBST([CYGPATH_W]) 4532c393a42Smrg 4542c393a42Smrg# Define the identity of the package. 4552c393a42Smrgdnl Distinguish between old-style and new-style calls. 4562c393a42Smrgm4_ifval([$2], 457c9710b42Smrg[AC_DIAGNOSE([obsolete], 4586fc018e4Smrg [$0: two- and three-arguments forms are deprecated.]) 459c9710b42Smrgm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 4602c393a42Smrg AC_SUBST([PACKAGE], [$1])dnl 4612c393a42Smrg AC_SUBST([VERSION], [$2])], 4622c393a42Smrg[_AM_SET_OPTIONS([$1])dnl 463a6844aabSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 464c9710b42Smrgm4_if( 465c9710b42Smrg m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 466c9710b42Smrg [ok:ok],, 467a6844aabSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 4682c393a42Smrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 4692c393a42Smrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 4702c393a42Smrg 4712c393a42Smrg_AM_IF_OPTION([no-define],, 472c9710b42Smrg[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 473c9710b42Smrg AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 4742c393a42Smrg 4752c393a42Smrg# Some tools Automake needs. 4762c393a42SmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 4772c393a42SmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 478c9710b42SmrgAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 479c9710b42SmrgAM_MISSING_PROG([AUTOCONF], [autoconf]) 480c9710b42SmrgAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 481c9710b42SmrgAM_MISSING_PROG([AUTOHEADER], [autoheader]) 482c9710b42SmrgAM_MISSING_PROG([MAKEINFO], [makeinfo]) 483a6844aabSmrgAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 484a6844aabSmrgAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 485c9710b42SmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 486c9710b42Smrg# For better backward compatibility. To be removed once Automake 1.9.x 487c9710b42Smrg# dies out for good. For more background, see: 488a32e9e42Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 489a32e9e42Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 490c9710b42SmrgAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 491953daebaSmrg# We need awk for the "check" target (and possibly the TAP driver). The 492953daebaSmrg# system "awk" is bad on some platforms. 4932c393a42SmrgAC_REQUIRE([AC_PROG_AWK])dnl 4942c393a42SmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 4952c393a42SmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 4962c393a42Smrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 497a6844aabSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 498a6844aabSmrg [_AM_PROG_TAR([v7])])]) 4992c393a42Smrg_AM_IF_OPTION([no-dependencies],, 5002c393a42Smrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 501c9710b42Smrg [_AM_DEPENDENCIES([CC])], 502c9710b42Smrg [m4_define([AC_PROG_CC], 503c9710b42Smrg m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 5042c393a42SmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 505c9710b42Smrg [_AM_DEPENDENCIES([CXX])], 506c9710b42Smrg [m4_define([AC_PROG_CXX], 507c9710b42Smrg m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 508a6844aabSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 509c9710b42Smrg [_AM_DEPENDENCIES([OBJC])], 510c9710b42Smrg [m4_define([AC_PROG_OBJC], 511c9710b42Smrg m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 5126fc018e4SmrgAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 513c9710b42Smrg [_AM_DEPENDENCIES([OBJCXX])], 514c9710b42Smrg [m4_define([AC_PROG_OBJCXX], 5156fc018e4Smrg m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 5162c393a42Smrg]) 5176fc018e4SmrgAC_REQUIRE([AM_SILENT_RULES])dnl 5186fc018e4Smrgdnl The testsuite driver may need to know about EXEEXT, so add the 5196fc018e4Smrgdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 5206fc018e4Smrgdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 521a6844aabSmrgAC_CONFIG_COMMANDS_PRE(dnl 522a6844aabSmrg[m4_provide_if([_AM_COMPILER_EXEEXT], 523a6844aabSmrg [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 524953daebaSmrg 525953daebaSmrg# POSIX will say in a future version that running "rm -f" with no argument 526953daebaSmrg# is OK; and we want to be able to make that assumption in our Makefile 527953daebaSmrg# recipes. So use an aggressive probe to check that the usage we want is 528953daebaSmrg# actually supported "in the wild" to an acceptable degree. 529953daebaSmrg# See automake bug#10828. 530953daebaSmrg# To make any issue more visible, cause the running configure to be aborted 531953daebaSmrg# by default if the 'rm' program in use doesn't match our expectations; the 532953daebaSmrg# user can still override this though. 533953daebaSmrgif rm -f && rm -fr && rm -rf; then : OK; else 534953daebaSmrg cat >&2 <<'END' 535953daebaSmrgOops! 536953daebaSmrg 537953daebaSmrgYour 'rm' program seems unable to run without file operands specified 538953daebaSmrgon the command line, even when the '-f' option is present. This is contrary 539953daebaSmrgto the behaviour of most rm programs out there, and not conforming with 540953daebaSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 541953daebaSmrg 542953daebaSmrgPlease tell bug-automake@gnu.org about your system, including the value 543953daebaSmrgof your $PATH and any error possibly output before this message. This 544953daebaSmrgcan help us improve future automake versions. 545953daebaSmrg 546953daebaSmrgEND 547953daebaSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 548953daebaSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 549953daebaSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 550953daebaSmrg echo >&2 551953daebaSmrg else 552953daebaSmrg cat >&2 <<'END' 553953daebaSmrgAborting the configuration process, to ensure you take notice of the issue. 554953daebaSmrg 555953daebaSmrgYou can download and install GNU coreutils to get an 'rm' implementation 556a32e9e42Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 557953daebaSmrg 558953daebaSmrgIf you want to complete the configuration process using your problematic 559953daebaSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 560953daebaSmrgto "yes", and re-run configure. 561953daebaSmrg 562953daebaSmrgEND 563953daebaSmrg AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 564953daebaSmrg fi 565953daebaSmrgfi 566953daebaSmrgdnl The trailing newline in this macro's definition is deliberate, for 567953daebaSmrgdnl backward compatibility and to allow trailing 'dnl'-style comments 568953daebaSmrgdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 5692c393a42Smrg]) 5702c393a42Smrg 571c9710b42Smrgdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 572a6844aabSmrgdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 573a6844aabSmrgdnl mangled by Autoconf and run in a shell conditional statement. 574a6844aabSmrgm4_define([_AC_COMPILER_EXEEXT], 575a6844aabSmrgm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 576a6844aabSmrg 5772c393a42Smrg# When config.status generates a header, we must update the stamp-h file. 5782c393a42Smrg# This file resides in the same directory as the config header 5792c393a42Smrg# that is generated. The stamp files are numbered to have different names. 5802c393a42Smrg 5812c393a42Smrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 5822c393a42Smrg# loop where config.status creates the headers, so we can generate 5832c393a42Smrg# our stamp files there. 5842c393a42SmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 5852c393a42Smrg[# Compute $1's index in $config_headers. 586a6844aabSmrg_am_arg=$1 5872c393a42Smrg_am_stamp_count=1 5882c393a42Smrgfor _am_header in $config_headers :; do 5892c393a42Smrg case $_am_header in 590a6844aabSmrg $_am_arg | $_am_arg:* ) 5912c393a42Smrg break ;; 5922c393a42Smrg * ) 5932c393a42Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 5942c393a42Smrg esac 5952c393a42Smrgdone 596a6844aabSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 5972c393a42Smrg 598a32e9e42Smrg# Copyright (C) 2001-2018 Free Software Foundation, Inc. 5992c393a42Smrg# 6002c393a42Smrg# This file is free software; the Free Software Foundation 6012c393a42Smrg# gives unlimited permission to copy and/or distribute it, 6022c393a42Smrg# with or without modifications, as long as this notice is preserved. 6032c393a42Smrg 6042c393a42Smrg# AM_PROG_INSTALL_SH 6052c393a42Smrg# ------------------ 6062c393a42Smrg# Define $install_sh. 6072c393a42SmrgAC_DEFUN([AM_PROG_INSTALL_SH], 6082c393a42Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 609953daebaSmrgif test x"${install_sh+set}" != xset; then 610a6844aabSmrg case $am_aux_dir in 611a6844aabSmrg *\ * | *\ *) 612a6844aabSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 613a6844aabSmrg *) 614a6844aabSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 615a6844aabSmrg esac 616a6844aabSmrgfi 617c9710b42SmrgAC_SUBST([install_sh])]) 6182c393a42Smrg 619a32e9e42Smrg# Copyright (C) 2003-2018 Free Software Foundation, Inc. 6202c393a42Smrg# 6212c393a42Smrg# This file is free software; the Free Software Foundation 6222c393a42Smrg# gives unlimited permission to copy and/or distribute it, 6232c393a42Smrg# with or without modifications, as long as this notice is preserved. 6242c393a42Smrg 6252c393a42Smrg# Check whether the underlying file-system supports filenames 6262c393a42Smrg# with a leading dot. For instance MS-DOS doesn't. 6272c393a42SmrgAC_DEFUN([AM_SET_LEADING_DOT], 6282c393a42Smrg[rm -rf .tst 2>/dev/null 6292c393a42Smrgmkdir .tst 2>/dev/null 6302c393a42Smrgif test -d .tst; then 6312c393a42Smrg am__leading_dot=. 6322c393a42Smrgelse 6332c393a42Smrg am__leading_dot=_ 6342c393a42Smrgfi 6352c393a42Smrgrmdir .tst 2>/dev/null 6362c393a42SmrgAC_SUBST([am__leading_dot])]) 6372c393a42Smrg 6382c393a42Smrg# Check to see how 'make' treats includes. -*- Autoconf -*- 6392c393a42Smrg 640a32e9e42Smrg# Copyright (C) 2001-2018 Free Software Foundation, Inc. 6412c393a42Smrg# 6422c393a42Smrg# This file is free software; the Free Software Foundation 6432c393a42Smrg# gives unlimited permission to copy and/or distribute it, 6442c393a42Smrg# with or without modifications, as long as this notice is preserved. 6452c393a42Smrg 6462c393a42Smrg# AM_MAKE_INCLUDE() 6472c393a42Smrg# ----------------- 648a32e9e42Smrg# Check whether make has an 'include' directive that can support all 649a32e9e42Smrg# the idioms we need for our automatic dependency tracking code. 6502c393a42SmrgAC_DEFUN([AM_MAKE_INCLUDE], 651a32e9e42Smrg[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 652a32e9e42Smrgcat > confinc.mk << 'END' 6532c393a42Smrgam__doit: 654a32e9e42Smrg @echo this is the am__doit target >confinc.out 6552c393a42Smrg.PHONY: am__doit 6562c393a42SmrgEND 6572c393a42Smrgam__include="#" 6582c393a42Smrgam__quote= 659a32e9e42Smrg# BSD make does it like this. 660a32e9e42Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 661a32e9e42Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 662a32e9e42Smrgecho 'include confinc.mk # ignored' > confmf.GNU 663a32e9e42Smrg_am_result=no 664a32e9e42Smrgfor s in GNU BSD; do 665a32e9e42Smrg AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 666a32e9e42Smrg AS_CASE([$?:`cat confinc.out 2>/dev/null`], 667a32e9e42Smrg ['0:this is the am__doit target'], 668a32e9e42Smrg [AS_CASE([$s], 669a32e9e42Smrg [BSD], [am__include='.include' am__quote='"'], 670a32e9e42Smrg [am__include='include' am__quote=''])]) 671a32e9e42Smrg if test "$am__include" != "#"; then 672a32e9e42Smrg _am_result="yes ($s style)" 673a32e9e42Smrg break 674a32e9e42Smrg fi 675a32e9e42Smrgdone 676a32e9e42Smrgrm -f confinc.* confmf.* 677a32e9e42SmrgAC_MSG_RESULT([${_am_result}]) 678a32e9e42SmrgAC_SUBST([am__include])]) 679a32e9e42SmrgAC_SUBST([am__quote])]) 6802c393a42Smrg 6812c393a42Smrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 6822c393a42Smrg 683a32e9e42Smrg# Copyright (C) 1997-2018 Free Software Foundation, Inc. 6842c393a42Smrg# 6852c393a42Smrg# This file is free software; the Free Software Foundation 6862c393a42Smrg# gives unlimited permission to copy and/or distribute it, 6872c393a42Smrg# with or without modifications, as long as this notice is preserved. 6882c393a42Smrg 6892c393a42Smrg# AM_MISSING_PROG(NAME, PROGRAM) 6902c393a42Smrg# ------------------------------ 6912c393a42SmrgAC_DEFUN([AM_MISSING_PROG], 6922c393a42Smrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 6932c393a42Smrg$1=${$1-"${am_missing_run}$2"} 6942c393a42SmrgAC_SUBST($1)]) 6952c393a42Smrg 6962c393a42Smrg# AM_MISSING_HAS_RUN 6972c393a42Smrg# ------------------ 6986fc018e4Smrg# Define MISSING if not defined so far and test if it is modern enough. 6996fc018e4Smrg# If it is, set am_missing_run to use it, otherwise, to nothing. 7002c393a42SmrgAC_DEFUN([AM_MISSING_HAS_RUN], 7012c393a42Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 702a6844aabSmrgAC_REQUIRE_AUX_FILE([missing])dnl 703a6844aabSmrgif test x"${MISSING+set}" != xset; then 704a6844aabSmrg case $am_aux_dir in 705a6844aabSmrg *\ * | *\ *) 706a6844aabSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 707a6844aabSmrg *) 708a6844aabSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 709a6844aabSmrg esac 710a6844aabSmrgfi 7112c393a42Smrg# Use eval to expand $SHELL 7126fc018e4Smrgif eval "$MISSING --is-lightweight"; then 7136fc018e4Smrg am_missing_run="$MISSING " 7142c393a42Smrgelse 7152c393a42Smrg am_missing_run= 716c9710b42Smrg AC_MSG_WARN(['missing' script is too old or missing]) 7172c393a42Smrgfi 7182c393a42Smrg]) 7192c393a42Smrg 7202c393a42Smrg# Helper functions for option handling. -*- Autoconf -*- 7212c393a42Smrg 722a32e9e42Smrg# Copyright (C) 2001-2018 Free Software Foundation, Inc. 7232c393a42Smrg# 7242c393a42Smrg# This file is free software; the Free Software Foundation 7252c393a42Smrg# gives unlimited permission to copy and/or distribute it, 7262c393a42Smrg# with or without modifications, as long as this notice is preserved. 7272c393a42Smrg 7282c393a42Smrg# _AM_MANGLE_OPTION(NAME) 7292c393a42Smrg# ----------------------- 7302c393a42SmrgAC_DEFUN([_AM_MANGLE_OPTION], 7312c393a42Smrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 7322c393a42Smrg 7332c393a42Smrg# _AM_SET_OPTION(NAME) 734ca08ab68Smrg# -------------------- 7352c393a42Smrg# Set option NAME. Presently that only means defining a flag for this option. 7362c393a42SmrgAC_DEFUN([_AM_SET_OPTION], 737c9710b42Smrg[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 7382c393a42Smrg 7392c393a42Smrg# _AM_SET_OPTIONS(OPTIONS) 740ca08ab68Smrg# ------------------------ 7412c393a42Smrg# OPTIONS is a space-separated list of Automake options. 7422c393a42SmrgAC_DEFUN([_AM_SET_OPTIONS], 743a6844aabSmrg[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 7442c393a42Smrg 7452c393a42Smrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 7462c393a42Smrg# ------------------------------------------- 7472c393a42Smrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 7482c393a42SmrgAC_DEFUN([_AM_IF_OPTION], 7492c393a42Smrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 7502c393a42Smrg 751a32e9e42Smrg# Copyright (C) 1999-2018 Free Software Foundation, Inc. 752953daebaSmrg# 753953daebaSmrg# This file is free software; the Free Software Foundation 754953daebaSmrg# gives unlimited permission to copy and/or distribute it, 755953daebaSmrg# with or without modifications, as long as this notice is preserved. 756953daebaSmrg 757953daebaSmrg# _AM_PROG_CC_C_O 758953daebaSmrg# --------------- 759953daebaSmrg# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 760953daebaSmrg# to automatically call this. 761953daebaSmrgAC_DEFUN([_AM_PROG_CC_C_O], 762953daebaSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 763953daebaSmrgAC_REQUIRE_AUX_FILE([compile])dnl 764953daebaSmrgAC_LANG_PUSH([C])dnl 765953daebaSmrgAC_CACHE_CHECK( 766953daebaSmrg [whether $CC understands -c and -o together], 767953daebaSmrg [am_cv_prog_cc_c_o], 768953daebaSmrg [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 769953daebaSmrg # Make sure it works both with $CC and with simple cc. 770953daebaSmrg # Following AC_PROG_CC_C_O, we do the test twice because some 771953daebaSmrg # compilers refuse to overwrite an existing .o file with -o, 772953daebaSmrg # though they will create one. 773953daebaSmrg am_cv_prog_cc_c_o=yes 774953daebaSmrg for am_i in 1 2; do 775953daebaSmrg if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 776953daebaSmrg && test -f conftest2.$ac_objext; then 777953daebaSmrg : OK 778953daebaSmrg else 779953daebaSmrg am_cv_prog_cc_c_o=no 780953daebaSmrg break 781953daebaSmrg fi 782953daebaSmrg done 783953daebaSmrg rm -f core conftest* 784953daebaSmrg unset am_i]) 785953daebaSmrgif test "$am_cv_prog_cc_c_o" != yes; then 786953daebaSmrg # Losing compiler, so override with the script. 787953daebaSmrg # FIXME: It is wrong to rewrite CC. 788953daebaSmrg # But if we don't then we get into trouble of one sort or another. 789953daebaSmrg # A longer-term fix would be to have automake use am__CC in this case, 790953daebaSmrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 791953daebaSmrg CC="$am_aux_dir/compile $CC" 792953daebaSmrgfi 793953daebaSmrgAC_LANG_POP([C])]) 794953daebaSmrg 795953daebaSmrg# For backward compatibility. 796953daebaSmrgAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 797953daebaSmrg 798a32e9e42Smrg# Copyright (C) 2001-2018 Free Software Foundation, Inc. 799953daebaSmrg# 800953daebaSmrg# This file is free software; the Free Software Foundation 801953daebaSmrg# gives unlimited permission to copy and/or distribute it, 802953daebaSmrg# with or without modifications, as long as this notice is preserved. 803953daebaSmrg 804953daebaSmrg# AM_RUN_LOG(COMMAND) 805953daebaSmrg# ------------------- 806953daebaSmrg# Run COMMAND, save the exit status in ac_status, and log it. 807953daebaSmrg# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 808953daebaSmrgAC_DEFUN([AM_RUN_LOG], 809953daebaSmrg[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 810953daebaSmrg ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 811953daebaSmrg ac_status=$? 812953daebaSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 813953daebaSmrg (exit $ac_status); }]) 814953daebaSmrg 8152c393a42Smrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 8162c393a42Smrg 817a32e9e42Smrg# Copyright (C) 1996-2018 Free Software Foundation, Inc. 8182c393a42Smrg# 8192c393a42Smrg# This file is free software; the Free Software Foundation 8202c393a42Smrg# gives unlimited permission to copy and/or distribute it, 8212c393a42Smrg# with or without modifications, as long as this notice is preserved. 8222c393a42Smrg 8232c393a42Smrg# AM_SANITY_CHECK 8242c393a42Smrg# --------------- 8252c393a42SmrgAC_DEFUN([AM_SANITY_CHECK], 8262c393a42Smrg[AC_MSG_CHECKING([whether build environment is sane]) 827a6844aabSmrg# Reject unsafe characters in $srcdir or the absolute working directory 828a6844aabSmrg# name. Accept space and tab only in the latter. 829a6844aabSmrgam_lf=' 830a6844aabSmrg' 831a6844aabSmrgcase `pwd` in 832a6844aabSmrg *[[\\\"\#\$\&\'\`$am_lf]]*) 833a6844aabSmrg AC_MSG_ERROR([unsafe absolute working directory name]);; 834a6844aabSmrgesac 835a6844aabSmrgcase $srcdir in 836a6844aabSmrg *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 837c9710b42Smrg AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 838a6844aabSmrgesac 839a6844aabSmrg 840c9710b42Smrg# Do 'set' in a subshell so we don't clobber the current shell's 8412c393a42Smrg# arguments. Must try -L first in case configure is actually a 8422c393a42Smrg# symlink; some systems play weird games with the mod time of symlinks 8432c393a42Smrg# (eg FreeBSD returns the mod time of the symlink's containing 8442c393a42Smrg# directory). 8452c393a42Smrgif ( 846c9710b42Smrg am_has_slept=no 847c9710b42Smrg for am_try in 1 2; do 848c9710b42Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 849c9710b42Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 850c9710b42Smrg if test "$[*]" = "X"; then 851c9710b42Smrg # -L didn't work. 852c9710b42Smrg set X `ls -t "$srcdir/configure" conftest.file` 853c9710b42Smrg fi 854c9710b42Smrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 855c9710b42Smrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 856c9710b42Smrg 857c9710b42Smrg # If neither matched, then we have a broken ls. This can happen 858c9710b42Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 859c9710b42Smrg # broken ls alias from the environment. This has actually 860c9710b42Smrg # happened. Such a system could not be considered "sane". 861c9710b42Smrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 862c9710b42Smrg alias in your environment]) 863c9710b42Smrg fi 864c9710b42Smrg if test "$[2]" = conftest.file || test $am_try -eq 2; then 865c9710b42Smrg break 866c9710b42Smrg fi 867c9710b42Smrg # Just in case. 868c9710b42Smrg sleep 1 869c9710b42Smrg am_has_slept=yes 870c9710b42Smrg done 8712c393a42Smrg test "$[2]" = conftest.file 8722c393a42Smrg ) 8732c393a42Smrgthen 8742c393a42Smrg # Ok. 8752c393a42Smrg : 8762c393a42Smrgelse 8772c393a42Smrg AC_MSG_ERROR([newly created file is older than distributed files! 8782c393a42SmrgCheck your system clock]) 8792c393a42Smrgfi 880c9710b42SmrgAC_MSG_RESULT([yes]) 881c9710b42Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 882c9710b42Smrg# generated files are strictly newer. 883c9710b42Smrgam_sleep_pid= 884c9710b42Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 885c9710b42Smrg ( sleep 1 ) & 886c9710b42Smrg am_sleep_pid=$! 887c9710b42Smrgfi 888c9710b42SmrgAC_CONFIG_COMMANDS_PRE( 889c9710b42Smrg [AC_MSG_CHECKING([that generated files are newer than configure]) 890c9710b42Smrg if test -n "$am_sleep_pid"; then 891c9710b42Smrg # Hide warnings about reused PIDs. 892c9710b42Smrg wait $am_sleep_pid 2>/dev/null 893c9710b42Smrg fi 894c9710b42Smrg AC_MSG_RESULT([done])]) 895c9710b42Smrgrm -f conftest.file 896c9710b42Smrg]) 8972c393a42Smrg 898a32e9e42Smrg# Copyright (C) 2009-2018 Free Software Foundation, Inc. 899a6844aabSmrg# 900a6844aabSmrg# This file is free software; the Free Software Foundation 901a6844aabSmrg# gives unlimited permission to copy and/or distribute it, 902a6844aabSmrg# with or without modifications, as long as this notice is preserved. 903a6844aabSmrg 904a6844aabSmrg# AM_SILENT_RULES([DEFAULT]) 905a6844aabSmrg# -------------------------- 906a6844aabSmrg# Enable less verbose build rules; with the default set to DEFAULT 907c9710b42Smrg# ("yes" being less verbose, "no" or empty being verbose). 908a6844aabSmrgAC_DEFUN([AM_SILENT_RULES], 909c9710b42Smrg[AC_ARG_ENABLE([silent-rules], [dnl 910c9710b42SmrgAS_HELP_STRING( 911c9710b42Smrg [--enable-silent-rules], 912c9710b42Smrg [less verbose build output (undo: "make V=1")]) 913c9710b42SmrgAS_HELP_STRING( 914c9710b42Smrg [--disable-silent-rules], 915c9710b42Smrg [verbose build output (undo: "make V=0")])dnl 916c9710b42Smrg]) 917c9710b42Smrgcase $enable_silent_rules in @%:@ ((( 918c9710b42Smrg yes) AM_DEFAULT_VERBOSITY=0;; 919c9710b42Smrg no) AM_DEFAULT_VERBOSITY=1;; 920c9710b42Smrg *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 921a6844aabSmrgesac 922ca08ab68Smrgdnl 923c9710b42Smrgdnl A few 'make' implementations (e.g., NonStop OS and NextStep) 924ca08ab68Smrgdnl do not support nested variable expansions. 925ca08ab68Smrgdnl See automake bug#9928 and bug#10237. 926ca08ab68Smrgam_make=${MAKE-make} 927ca08ab68SmrgAC_CACHE_CHECK([whether $am_make supports nested variables], 928ca08ab68Smrg [am_cv_make_support_nested_variables], 929ca08ab68Smrg [if AS_ECHO([['TRUE=$(BAR$(V)) 930ca08ab68SmrgBAR0=false 931ca08ab68SmrgBAR1=true 932ca08ab68SmrgV=1 933ca08ab68Smrgam__doit: 934ca08ab68Smrg @$(TRUE) 935ca08ab68Smrg.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 936ca08ab68Smrg am_cv_make_support_nested_variables=yes 937ca08ab68Smrgelse 938ca08ab68Smrg am_cv_make_support_nested_variables=no 939ca08ab68Smrgfi]) 940ca08ab68Smrgif test $am_cv_make_support_nested_variables = yes; then 941c9710b42Smrg dnl Using '$V' instead of '$(V)' breaks IRIX make. 942ca08ab68Smrg AM_V='$(V)' 943ca08ab68Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 944ca08ab68Smrgelse 945ca08ab68Smrg AM_V=$AM_DEFAULT_VERBOSITY 946ca08ab68Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 947ca08ab68Smrgfi 948ca08ab68SmrgAC_SUBST([AM_V])dnl 949ca08ab68SmrgAM_SUBST_NOTMAKE([AM_V])dnl 950ca08ab68SmrgAC_SUBST([AM_DEFAULT_V])dnl 951ca08ab68SmrgAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 952a6844aabSmrgAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 953a6844aabSmrgAM_BACKSLASH='\' 954a6844aabSmrgAC_SUBST([AM_BACKSLASH])dnl 955a6844aabSmrg_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 956a6844aabSmrg]) 957a6844aabSmrg 958a32e9e42Smrg# Copyright (C) 2001-2018 Free Software Foundation, Inc. 9592c393a42Smrg# 9602c393a42Smrg# This file is free software; the Free Software Foundation 9612c393a42Smrg# gives unlimited permission to copy and/or distribute it, 9622c393a42Smrg# with or without modifications, as long as this notice is preserved. 9632c393a42Smrg 9642c393a42Smrg# AM_PROG_INSTALL_STRIP 9652c393a42Smrg# --------------------- 966c9710b42Smrg# One issue with vendor 'install' (even GNU) is that you can't 9672c393a42Smrg# specify the program used to strip binaries. This is especially 9682c393a42Smrg# annoying in cross-compiling environments, where the build's strip 9692c393a42Smrg# is unlikely to handle the host's binaries. 9702c393a42Smrg# Fortunately install-sh will honor a STRIPPROG variable, so we 971c9710b42Smrg# always use install-sh in "make install-strip", and initialize 9722c393a42Smrg# STRIPPROG with the value of the STRIP variable (set by the user). 9732c393a42SmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 9742c393a42Smrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 975c9710b42Smrg# Installed binaries are usually stripped using 'strip' when the user 976c9710b42Smrg# run "make install-strip". However 'strip' might not be the right 9772c393a42Smrg# tool to use in cross-compilation environments, therefore Automake 978c9710b42Smrg# will honor the 'STRIP' environment variable to overrule this program. 979c9710b42Smrgdnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 9802c393a42Smrgif test "$cross_compiling" != no; then 9812c393a42Smrg AC_CHECK_TOOL([STRIP], [strip], :) 9822c393a42Smrgfi 983a6844aabSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 9842c393a42SmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 9852c393a42Smrg 986a32e9e42Smrg# Copyright (C) 2006-2018 Free Software Foundation, Inc. 987a6844aabSmrg# 988a6844aabSmrg# This file is free software; the Free Software Foundation 989a6844aabSmrg# gives unlimited permission to copy and/or distribute it, 990a6844aabSmrg# with or without modifications, as long as this notice is preserved. 991a6844aabSmrg 992a6844aabSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 993a6844aabSmrg# --------------------------- 994a6844aabSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 995a6844aabSmrg# This macro is traced by Automake. 996a6844aabSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 997a6844aabSmrg 998a6844aabSmrg# AM_SUBST_NOTMAKE(VARIABLE) 999ca08ab68Smrg# -------------------------- 1000a6844aabSmrg# Public sister of _AM_SUBST_NOTMAKE. 1001a6844aabSmrgAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1002a6844aabSmrg 10032c393a42Smrg# Check how to create a tarball. -*- Autoconf -*- 10042c393a42Smrg 1005a32e9e42Smrg# Copyright (C) 2004-2018 Free Software Foundation, Inc. 10062c393a42Smrg# 10072c393a42Smrg# This file is free software; the Free Software Foundation 10082c393a42Smrg# gives unlimited permission to copy and/or distribute it, 10092c393a42Smrg# with or without modifications, as long as this notice is preserved. 10102c393a42Smrg 10112c393a42Smrg# _AM_PROG_TAR(FORMAT) 10122c393a42Smrg# -------------------- 10132c393a42Smrg# Check how to create a tarball in format FORMAT. 1014c9710b42Smrg# FORMAT should be one of 'v7', 'ustar', or 'pax'. 10152c393a42Smrg# 10162c393a42Smrg# Substitute a variable $(am__tar) that is a command 10172c393a42Smrg# writing to stdout a FORMAT-tarball containing the directory 10182c393a42Smrg# $tardir. 10192c393a42Smrg# tardir=directory && $(am__tar) > result.tar 10202c393a42Smrg# 10212c393a42Smrg# Substitute a variable $(am__untar) that extract such 10222c393a42Smrg# a tarball read from stdin. 10232c393a42Smrg# $(am__untar) < result.tar 10246fc018e4Smrg# 10252c393a42SmrgAC_DEFUN([_AM_PROG_TAR], 1026ca08ab68Smrg[# Always define AMTAR for backward compatibility. Yes, it's still used 1027ca08ab68Smrg# in the wild :-( We should find a proper way to deprecate it ... 1028ca08ab68SmrgAC_SUBST([AMTAR], ['$${TAR-tar}']) 10296fc018e4Smrg 10306fc018e4Smrg# We'll loop over all known methods to create a tar archive until one works. 10312c393a42Smrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 10322c393a42Smrg 10336fc018e4Smrgm4_if([$1], [v7], 10346fc018e4Smrg [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 10356fc018e4Smrg 10366fc018e4Smrg [m4_case([$1], 10376fc018e4Smrg [ustar], 10386fc018e4Smrg [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 10396fc018e4Smrg # There is notably a 21 bits limit for the UID and the GID. In fact, 10406fc018e4Smrg # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 10416fc018e4Smrg # and bug#13588). 10426fc018e4Smrg am_max_uid=2097151 # 2^21 - 1 10436fc018e4Smrg am_max_gid=$am_max_uid 10446fc018e4Smrg # The $UID and $GID variables are not portable, so we need to resort 10456fc018e4Smrg # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 10466fc018e4Smrg # below are definitely unexpected, so allow the users to see them 10476fc018e4Smrg # (that is, avoid stderr redirection). 10486fc018e4Smrg am_uid=`id -u || echo unknown` 10496fc018e4Smrg am_gid=`id -g || echo unknown` 10506fc018e4Smrg AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 10516fc018e4Smrg if test $am_uid -le $am_max_uid; then 10526fc018e4Smrg AC_MSG_RESULT([yes]) 10536fc018e4Smrg else 10546fc018e4Smrg AC_MSG_RESULT([no]) 10556fc018e4Smrg _am_tools=none 10566fc018e4Smrg fi 10576fc018e4Smrg AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 10586fc018e4Smrg if test $am_gid -le $am_max_gid; then 10596fc018e4Smrg AC_MSG_RESULT([yes]) 10606fc018e4Smrg else 10616fc018e4Smrg AC_MSG_RESULT([no]) 10626fc018e4Smrg _am_tools=none 10636fc018e4Smrg fi], 10646fc018e4Smrg 10656fc018e4Smrg [pax], 10666fc018e4Smrg [], 10676fc018e4Smrg 10686fc018e4Smrg [m4_fatal([Unknown tar format])]) 10696fc018e4Smrg 10706fc018e4Smrg AC_MSG_CHECKING([how to create a $1 tar archive]) 10716fc018e4Smrg 10726fc018e4Smrg # Go ahead even if we have the value already cached. We do so because we 10736fc018e4Smrg # need to set the values for the 'am__tar' and 'am__untar' variables. 10746fc018e4Smrg _am_tools=${am_cv_prog_tar_$1-$_am_tools} 10756fc018e4Smrg 10766fc018e4Smrg for _am_tool in $_am_tools; do 10776fc018e4Smrg case $_am_tool in 10786fc018e4Smrg gnutar) 10796fc018e4Smrg for _am_tar in tar gnutar gtar; do 10806fc018e4Smrg AM_RUN_LOG([$_am_tar --version]) && break 10816fc018e4Smrg done 10826fc018e4Smrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 10836fc018e4Smrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 10846fc018e4Smrg am__untar="$_am_tar -xf -" 10856fc018e4Smrg ;; 10866fc018e4Smrg plaintar) 10876fc018e4Smrg # Must skip GNU tar: if it does not support --format= it doesn't create 10886fc018e4Smrg # ustar tarball either. 10896fc018e4Smrg (tar --version) >/dev/null 2>&1 && continue 10906fc018e4Smrg am__tar='tar chf - "$$tardir"' 10916fc018e4Smrg am__tar_='tar chf - "$tardir"' 10926fc018e4Smrg am__untar='tar xf -' 10936fc018e4Smrg ;; 10946fc018e4Smrg pax) 10956fc018e4Smrg am__tar='pax -L -x $1 -w "$$tardir"' 10966fc018e4Smrg am__tar_='pax -L -x $1 -w "$tardir"' 10976fc018e4Smrg am__untar='pax -r' 10986fc018e4Smrg ;; 10996fc018e4Smrg cpio) 11006fc018e4Smrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 11016fc018e4Smrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 11026fc018e4Smrg am__untar='cpio -i -H $1 -d' 11036fc018e4Smrg ;; 11046fc018e4Smrg none) 11056fc018e4Smrg am__tar=false 11066fc018e4Smrg am__tar_=false 11076fc018e4Smrg am__untar=false 11086fc018e4Smrg ;; 11096fc018e4Smrg esac 11102c393a42Smrg 11116fc018e4Smrg # If the value was cached, stop now. We just wanted to have am__tar 11126fc018e4Smrg # and am__untar set. 11136fc018e4Smrg test -n "${am_cv_prog_tar_$1}" && break 11146fc018e4Smrg 11156fc018e4Smrg # tar/untar a dummy directory, and stop if the command works. 11166fc018e4Smrg rm -rf conftest.dir 11176fc018e4Smrg mkdir conftest.dir 11186fc018e4Smrg echo GrepMe > conftest.dir/file 11196fc018e4Smrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 11206fc018e4Smrg rm -rf conftest.dir 11216fc018e4Smrg if test -s conftest.tar; then 11226fc018e4Smrg AM_RUN_LOG([$am__untar <conftest.tar]) 11236fc018e4Smrg AM_RUN_LOG([cat conftest.dir/file]) 11246fc018e4Smrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 11256fc018e4Smrg fi 11266fc018e4Smrg done 11272c393a42Smrg rm -rf conftest.dir 11282c393a42Smrg 11296fc018e4Smrg AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 11306fc018e4Smrg AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 11316fc018e4Smrg 11322c393a42SmrgAC_SUBST([am__tar]) 11332c393a42SmrgAC_SUBST([am__untar]) 11342c393a42Smrg]) # _AM_PROG_TAR 11352c393a42Smrg 1136b09479dcSmrgm4_include([m4/ac_check_symbol.m4]) 1137c9710b42Smrgm4_include([m4/ax_cc_for_build.m4]) 1138c9710b42Smrgm4_include([m4/ax_create_stdint_h.m4]) 1139c9710b42Smrgm4_include([m4/ax_pthread.m4]) 1140a32e9e42Smrgm4_include([m4/gettext.m4]) 1141a32e9e42Smrgm4_include([m4/iconv.m4]) 1142a32e9e42Smrgm4_include([m4/intlmacosx.m4]) 1143a32e9e42Smrgm4_include([m4/lib-ld.m4]) 1144a32e9e42Smrgm4_include([m4/lib-link.m4]) 1145a32e9e42Smrgm4_include([m4/lib-prefix.m4]) 1146ca08ab68Smrgm4_include([m4/libtool.m4]) 1147ca08ab68Smrgm4_include([m4/ltoptions.m4]) 1148ca08ab68Smrgm4_include([m4/ltsugar.m4]) 1149ca08ab68Smrgm4_include([m4/ltversion.m4]) 1150ca08ab68Smrgm4_include([m4/lt~obsolete.m4]) 1151a32e9e42Smrgm4_include([m4/nls.m4]) 1152953daebaSmrgm4_include([m4/pkg.m4]) 1153a32e9e42Smrgm4_include([m4/po.m4]) 1154a32e9e42Smrgm4_include([m4/progtest.m4]) 1155