aclocal.m4 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215
  1. # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
  2. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically 'autoreconf'.])])
  18. # Copyright (C) 2002-2018 Free Software Foundation, Inc.
  19. #
  20. # This file is free software; the Free Software Foundation
  21. # gives unlimited permission to copy and/or distribute it,
  22. # with or without modifications, as long as this notice is preserved.
  23. # AM_AUTOMAKE_VERSION(VERSION)
  24. # ----------------------------
  25. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  26. # generated from the m4 files accompanying Automake X.Y.
  27. # (This private macro should not be called outside this file.)
  28. AC_DEFUN([AM_AUTOMAKE_VERSION],
  29. [am__api_version='1.16'
  30. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  31. dnl require some minimum version. Point them to the right macro.
  32. m4_if([$1], [1.16.1], [],
  33. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  34. ])
  35. # _AM_AUTOCONF_VERSION(VERSION)
  36. # -----------------------------
  37. # aclocal traces this macro to find the Autoconf version.
  38. # This is a private macro too. Using m4_define simplifies
  39. # the logic in aclocal, which can simply ignore this definition.
  40. m4_define([_AM_AUTOCONF_VERSION], [])
  41. # AM_SET_CURRENT_AUTOMAKE_VERSION
  42. # -------------------------------
  43. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  44. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  45. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  46. [AM_AUTOMAKE_VERSION([1.16.1])dnl
  47. m4_ifndef([AC_AUTOCONF_VERSION],
  48. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  49. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  50. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  51. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  52. #
  53. # This file is free software; the Free Software Foundation
  54. # gives unlimited permission to copy and/or distribute it,
  55. # with or without modifications, as long as this notice is preserved.
  56. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  57. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  58. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  59. #
  60. # Of course, Automake must honor this variable whenever it calls a
  61. # tool from the auxiliary directory. The problem is that $srcdir (and
  62. # therefore $ac_aux_dir as well) can be either absolute or relative,
  63. # depending on how configure is run. This is pretty annoying, since
  64. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  65. # source directory, any form will work fine, but in subdirectories a
  66. # relative path needs to be adjusted first.
  67. #
  68. # $ac_aux_dir/missing
  69. # fails when called from a subdirectory if $ac_aux_dir is relative
  70. # $top_srcdir/$ac_aux_dir/missing
  71. # fails if $ac_aux_dir is absolute,
  72. # fails when called from a subdirectory in a VPATH build with
  73. # a relative $ac_aux_dir
  74. #
  75. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  76. # are both prefixed by $srcdir. In an in-source build this is usually
  77. # harmless because $srcdir is '.', but things will broke when you
  78. # start a VPATH build or use an absolute $srcdir.
  79. #
  80. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  81. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  82. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  83. # and then we would define $MISSING as
  84. # MISSING="\${SHELL} $am_aux_dir/missing"
  85. # This will work as long as MISSING is not called from configure, because
  86. # unfortunately $(top_srcdir) has no meaning in configure.
  87. # However there are other variables, like CC, which are often used in
  88. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  89. #
  90. # Another solution, used here, is to always expand $ac_aux_dir to an
  91. # absolute PATH. The drawback is that using absolute paths prevent a
  92. # configured tree to be moved without reconfiguration.
  93. AC_DEFUN([AM_AUX_DIR_EXPAND],
  94. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  95. # Expand $ac_aux_dir to an absolute path.
  96. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  97. ])
  98. # AM_COND_IF -*- Autoconf -*-
  99. # Copyright (C) 2008-2018 Free Software Foundation, Inc.
  100. #
  101. # This file is free software; the Free Software Foundation
  102. # gives unlimited permission to copy and/or distribute it,
  103. # with or without modifications, as long as this notice is preserved.
  104. # _AM_COND_IF
  105. # _AM_COND_ELSE
  106. # _AM_COND_ENDIF
  107. # --------------
  108. # These macros are only used for tracing.
  109. m4_define([_AM_COND_IF])
  110. m4_define([_AM_COND_ELSE])
  111. m4_define([_AM_COND_ENDIF])
  112. # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
  113. # ---------------------------------------
  114. # If the shell condition COND is true, execute IF-TRUE, otherwise execute
  115. # IF-FALSE. Allow automake to learn about conditional instantiating macros
  116. # (the AC_CONFIG_FOOS).
  117. AC_DEFUN([AM_COND_IF],
  118. [m4_ifndef([_AM_COND_VALUE_$1],
  119. [m4_fatal([$0: no such condition "$1"])])dnl
  120. _AM_COND_IF([$1])dnl
  121. if test -z "$$1_TRUE"; then :
  122. m4_n([$2])[]dnl
  123. m4_ifval([$3],
  124. [_AM_COND_ELSE([$1])dnl
  125. else
  126. $3
  127. ])dnl
  128. _AM_COND_ENDIF([$1])dnl
  129. fi[]dnl
  130. ])
  131. # AM_CONDITIONAL -*- Autoconf -*-
  132. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  133. #
  134. # This file is free software; the Free Software Foundation
  135. # gives unlimited permission to copy and/or distribute it,
  136. # with or without modifications, as long as this notice is preserved.
  137. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  138. # -------------------------------------
  139. # Define a conditional.
  140. AC_DEFUN([AM_CONDITIONAL],
  141. [AC_PREREQ([2.52])dnl
  142. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  143. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  144. AC_SUBST([$1_TRUE])dnl
  145. AC_SUBST([$1_FALSE])dnl
  146. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  147. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  148. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  149. if $2; then
  150. $1_TRUE=
  151. $1_FALSE='#'
  152. else
  153. $1_TRUE='#'
  154. $1_FALSE=
  155. fi
  156. AC_CONFIG_COMMANDS_PRE(
  157. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  158. AC_MSG_ERROR([[conditional "$1" was never defined.
  159. Usually this means the macro was only invoked conditionally.]])
  160. fi])])
  161. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  162. #
  163. # This file is free software; the Free Software Foundation
  164. # gives unlimited permission to copy and/or distribute it,
  165. # with or without modifications, as long as this notice is preserved.
  166. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  167. # written in clear, in which case automake, when reading aclocal.m4,
  168. # will think it sees a *use*, and therefore will trigger all it's
  169. # C support machinery. Also note that it means that autoscan, seeing
  170. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  171. # _AM_DEPENDENCIES(NAME)
  172. # ----------------------
  173. # See how the compiler implements dependency checking.
  174. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  175. # We try a few techniques and use that to set a single cache variable.
  176. #
  177. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  178. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  179. # dependency, and given that the user is not expected to run this macro,
  180. # just rely on AC_PROG_CC.
  181. AC_DEFUN([_AM_DEPENDENCIES],
  182. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  183. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  184. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  185. AC_REQUIRE([AM_DEP_TRACK])dnl
  186. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  187. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  188. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  189. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  190. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  191. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  192. [depcc="$$1" am_compiler_list=])
  193. AC_CACHE_CHECK([dependency style of $depcc],
  194. [am_cv_$1_dependencies_compiler_type],
  195. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  196. # We make a subdir and do the tests there. Otherwise we can end up
  197. # making bogus files that we don't know about and never remove. For
  198. # instance it was reported that on HP-UX the gcc test will end up
  199. # making a dummy file named 'D' -- because '-MD' means "put the output
  200. # in D".
  201. rm -rf conftest.dir
  202. mkdir conftest.dir
  203. # Copy depcomp to subdir because otherwise we won't find it if we're
  204. # using a relative directory.
  205. cp "$am_depcomp" conftest.dir
  206. cd conftest.dir
  207. # We will build objects and dependencies in a subdirectory because
  208. # it helps to detect inapplicable dependency modes. For instance
  209. # both Tru64's cc and ICC support -MD to output dependencies as a
  210. # side effect of compilation, but ICC will put the dependencies in
  211. # the current directory while Tru64 will put them in the object
  212. # directory.
  213. mkdir sub
  214. am_cv_$1_dependencies_compiler_type=none
  215. if test "$am_compiler_list" = ""; then
  216. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  217. fi
  218. am__universal=false
  219. m4_case([$1], [CC],
  220. [case " $depcc " in #(
  221. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  222. esac],
  223. [CXX],
  224. [case " $depcc " in #(
  225. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  226. esac])
  227. for depmode in $am_compiler_list; do
  228. # Setup a source with many dependencies, because some compilers
  229. # like to wrap large dependency lists on column 80 (with \), and
  230. # we should not choose a depcomp mode which is confused by this.
  231. #
  232. # We need to recreate these files for each test, as the compiler may
  233. # overwrite some of them when testing with obscure command lines.
  234. # This happens at least with the AIX C compiler.
  235. : > sub/conftest.c
  236. for i in 1 2 3 4 5 6; do
  237. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  238. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  239. # Solaris 10 /bin/sh.
  240. echo '/* dummy */' > sub/conftst$i.h
  241. done
  242. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  243. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  244. # mode. It turns out that the SunPro C++ compiler does not properly
  245. # handle '-M -o', and we need to detect this. Also, some Intel
  246. # versions had trouble with output in subdirs.
  247. am__obj=sub/conftest.${OBJEXT-o}
  248. am__minus_obj="-o $am__obj"
  249. case $depmode in
  250. gcc)
  251. # This depmode causes a compiler race in universal mode.
  252. test "$am__universal" = false || continue
  253. ;;
  254. nosideeffect)
  255. # After this tag, mechanisms are not by side-effect, so they'll
  256. # only be used when explicitly requested.
  257. if test "x$enable_dependency_tracking" = xyes; then
  258. continue
  259. else
  260. break
  261. fi
  262. ;;
  263. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  264. # This compiler won't grok '-c -o', but also, the minuso test has
  265. # not run yet. These depmodes are late enough in the game, and
  266. # so weak that their functioning should not be impacted.
  267. am__obj=conftest.${OBJEXT-o}
  268. am__minus_obj=
  269. ;;
  270. none) break ;;
  271. esac
  272. if depmode=$depmode \
  273. source=sub/conftest.c object=$am__obj \
  274. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  275. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  276. >/dev/null 2>conftest.err &&
  277. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  278. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  279. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  280. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  281. # icc doesn't choke on unknown options, it will just issue warnings
  282. # or remarks (even with -Werror). So we grep stderr for any message
  283. # that says an option was ignored or not supported.
  284. # When given -MP, icc 7.0 and 7.1 complain thusly:
  285. # icc: Command line warning: ignoring option '-M'; no argument required
  286. # The diagnosis changed in icc 8.0:
  287. # icc: Command line remark: option '-MP' not supported
  288. if (grep 'ignoring option' conftest.err ||
  289. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  290. am_cv_$1_dependencies_compiler_type=$depmode
  291. break
  292. fi
  293. fi
  294. done
  295. cd ..
  296. rm -rf conftest.dir
  297. else
  298. am_cv_$1_dependencies_compiler_type=none
  299. fi
  300. ])
  301. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  302. AM_CONDITIONAL([am__fastdep$1], [
  303. test "x$enable_dependency_tracking" != xno \
  304. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  305. ])
  306. # AM_SET_DEPDIR
  307. # -------------
  308. # Choose a directory name for dependency files.
  309. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  310. AC_DEFUN([AM_SET_DEPDIR],
  311. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  312. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  313. ])
  314. # AM_DEP_TRACK
  315. # ------------
  316. AC_DEFUN([AM_DEP_TRACK],
  317. [AC_ARG_ENABLE([dependency-tracking], [dnl
  318. AS_HELP_STRING(
  319. [--enable-dependency-tracking],
  320. [do not reject slow dependency extractors])
  321. AS_HELP_STRING(
  322. [--disable-dependency-tracking],
  323. [speeds up one-time build])])
  324. if test "x$enable_dependency_tracking" != xno; then
  325. am_depcomp="$ac_aux_dir/depcomp"
  326. AMDEPBACKSLASH='\'
  327. am__nodep='_no'
  328. fi
  329. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  330. AC_SUBST([AMDEPBACKSLASH])dnl
  331. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  332. AC_SUBST([am__nodep])dnl
  333. _AM_SUBST_NOTMAKE([am__nodep])dnl
  334. ])
  335. # Generate code to set up dependency tracking. -*- Autoconf -*-
  336. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  337. #
  338. # This file is free software; the Free Software Foundation
  339. # gives unlimited permission to copy and/or distribute it,
  340. # with or without modifications, as long as this notice is preserved.
  341. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  342. # ------------------------------
  343. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  344. [{
  345. # Older Autoconf quotes --file arguments for eval, but not when files
  346. # are listed without --file. Let's play safe and only enable the eval
  347. # if we detect the quoting.
  348. # TODO: see whether this extra hack can be removed once we start
  349. # requiring Autoconf 2.70 or later.
  350. AS_CASE([$CONFIG_FILES],
  351. [*\'*], [eval set x "$CONFIG_FILES"],
  352. [*], [set x $CONFIG_FILES])
  353. shift
  354. # Used to flag and report bootstrapping failures.
  355. am_rc=0
  356. for am_mf
  357. do
  358. # Strip MF so we end up with the name of the file.
  359. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
  360. # Check whether this is an Automake generated Makefile which includes
  361. # dependency-tracking related rules and includes.
  362. # Grep'ing the whole file directly is not great: AIX grep has a line
  363. # limit of 2048, but all sed's we know have understand at least 4000.
  364. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  365. || continue
  366. am_dirpart=`AS_DIRNAME(["$am_mf"])`
  367. am_filepart=`AS_BASENAME(["$am_mf"])`
  368. AM_RUN_LOG([cd "$am_dirpart" \
  369. && sed -e '/# am--include-marker/d' "$am_filepart" \
  370. | $MAKE -f - am--depfiles]) || am_rc=$?
  371. done
  372. if test $am_rc -ne 0; then
  373. AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
  374. for automatic dependency tracking. Try re-running configure with the
  375. '--disable-dependency-tracking' option to at least be able to build
  376. the package (albeit without support for automatic dependency tracking).])
  377. fi
  378. AS_UNSET([am_dirpart])
  379. AS_UNSET([am_filepart])
  380. AS_UNSET([am_mf])
  381. AS_UNSET([am_rc])
  382. rm -f conftest-deps.mk
  383. }
  384. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  385. # AM_OUTPUT_DEPENDENCY_COMMANDS
  386. # -----------------------------
  387. # This macro should only be invoked once -- use via AC_REQUIRE.
  388. #
  389. # This code is only required when automatic dependency tracking is enabled.
  390. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
  391. # order to bootstrap the dependency handling code.
  392. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  393. [AC_CONFIG_COMMANDS([depfiles],
  394. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  395. [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
  396. # AM_EXTRA_RECURSIVE_TARGETS -*- Autoconf -*-
  397. # Copyright (C) 2012-2018 Free Software Foundation, Inc.
  398. #
  399. # This file is free software; the Free Software Foundation
  400. # gives unlimited permission to copy and/or distribute it,
  401. # with or without modifications, as long as this notice is preserved.
  402. # AM_EXTRA_RECURSIVE_TARGETS
  403. # --------------------------
  404. # Define the list of user recursive targets. This macro exists only to
  405. # be traced by Automake, which will ensure that a proper definition of
  406. # user-defined recursive targets (and associated rules) is propagated
  407. # into all the generated Makefiles.
  408. # TODO: We should really reject non-literal arguments here...
  409. AC_DEFUN([AM_EXTRA_RECURSIVE_TARGETS], [])
  410. # Do all the work for Automake. -*- Autoconf -*-
  411. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  412. #
  413. # This file is free software; the Free Software Foundation
  414. # gives unlimited permission to copy and/or distribute it,
  415. # with or without modifications, as long as this notice is preserved.
  416. # This macro actually does too much. Some checks are only needed if
  417. # your package does certain things. But this isn't really a big deal.
  418. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  419. m4_define([AC_PROG_CC],
  420. m4_defn([AC_PROG_CC])
  421. [_AM_PROG_CC_C_O
  422. ])
  423. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  424. # AM_INIT_AUTOMAKE([OPTIONS])
  425. # -----------------------------------------------
  426. # The call with PACKAGE and VERSION arguments is the old style
  427. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  428. # and VERSION should now be passed to AC_INIT and removed from
  429. # the call to AM_INIT_AUTOMAKE.
  430. # We support both call styles for the transition. After
  431. # the next Automake release, Autoconf can make the AC_INIT
  432. # arguments mandatory, and then we can depend on a new Autoconf
  433. # release and drop the old call support.
  434. AC_DEFUN([AM_INIT_AUTOMAKE],
  435. [AC_PREREQ([2.65])dnl
  436. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  437. dnl the ones we care about.
  438. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  439. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  440. AC_REQUIRE([AC_PROG_INSTALL])dnl
  441. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  442. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  443. # is not polluted with repeated "-I."
  444. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  445. # test to see if srcdir already configured
  446. if test -f $srcdir/config.status; then
  447. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  448. fi
  449. fi
  450. # test whether we have cygpath
  451. if test -z "$CYGPATH_W"; then
  452. if (cygpath --version) >/dev/null 2>/dev/null; then
  453. CYGPATH_W='cygpath -w'
  454. else
  455. CYGPATH_W=echo
  456. fi
  457. fi
  458. AC_SUBST([CYGPATH_W])
  459. # Define the identity of the package.
  460. dnl Distinguish between old-style and new-style calls.
  461. m4_ifval([$2],
  462. [AC_DIAGNOSE([obsolete],
  463. [$0: two- and three-arguments forms are deprecated.])
  464. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  465. AC_SUBST([PACKAGE], [$1])dnl
  466. AC_SUBST([VERSION], [$2])],
  467. [_AM_SET_OPTIONS([$1])dnl
  468. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  469. m4_if(
  470. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  471. [ok:ok],,
  472. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  473. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  474. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  475. _AM_IF_OPTION([no-define],,
  476. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  477. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  478. # Some tools Automake needs.
  479. AC_REQUIRE([AM_SANITY_CHECK])dnl
  480. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  481. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  482. AM_MISSING_PROG([AUTOCONF], [autoconf])
  483. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  484. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  485. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  486. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  487. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  488. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  489. # For better backward compatibility. To be removed once Automake 1.9.x
  490. # dies out for good. For more background, see:
  491. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  492. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  493. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  494. # We need awk for the "check" target (and possibly the TAP driver). The
  495. # system "awk" is bad on some platforms.
  496. AC_REQUIRE([AC_PROG_AWK])dnl
  497. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  498. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  499. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  500. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  501. [_AM_PROG_TAR([v7])])])
  502. _AM_IF_OPTION([no-dependencies],,
  503. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  504. [_AM_DEPENDENCIES([CC])],
  505. [m4_define([AC_PROG_CC],
  506. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  507. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  508. [_AM_DEPENDENCIES([CXX])],
  509. [m4_define([AC_PROG_CXX],
  510. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  511. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  512. [_AM_DEPENDENCIES([OBJC])],
  513. [m4_define([AC_PROG_OBJC],
  514. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  515. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  516. [_AM_DEPENDENCIES([OBJCXX])],
  517. [m4_define([AC_PROG_OBJCXX],
  518. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  519. ])
  520. AC_REQUIRE([AM_SILENT_RULES])dnl
  521. dnl The testsuite driver may need to know about EXEEXT, so add the
  522. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  523. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  524. AC_CONFIG_COMMANDS_PRE(dnl
  525. [m4_provide_if([_AM_COMPILER_EXEEXT],
  526. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  527. # POSIX will say in a future version that running "rm -f" with no argument
  528. # is OK; and we want to be able to make that assumption in our Makefile
  529. # recipes. So use an aggressive probe to check that the usage we want is
  530. # actually supported "in the wild" to an acceptable degree.
  531. # See automake bug#10828.
  532. # To make any issue more visible, cause the running configure to be aborted
  533. # by default if the 'rm' program in use doesn't match our expectations; the
  534. # user can still override this though.
  535. if rm -f && rm -fr && rm -rf; then : OK; else
  536. cat >&2 <<'END'
  537. Oops!
  538. Your 'rm' program seems unable to run without file operands specified
  539. on the command line, even when the '-f' option is present. This is contrary
  540. to the behaviour of most rm programs out there, and not conforming with
  541. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  542. Please tell bug-automake@gnu.org about your system, including the value
  543. of your $PATH and any error possibly output before this message. This
  544. can help us improve future automake versions.
  545. END
  546. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  547. echo 'Configuration will proceed anyway, since you have set the' >&2
  548. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  549. echo >&2
  550. else
  551. cat >&2 <<'END'
  552. Aborting the configuration process, to ensure you take notice of the issue.
  553. You can download and install GNU coreutils to get an 'rm' implementation
  554. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  555. If you want to complete the configuration process using your problematic
  556. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  557. to "yes", and re-run configure.
  558. END
  559. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  560. fi
  561. fi
  562. dnl The trailing newline in this macro's definition is deliberate, for
  563. dnl backward compatibility and to allow trailing 'dnl'-style comments
  564. dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  565. ])
  566. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  567. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  568. dnl mangled by Autoconf and run in a shell conditional statement.
  569. m4_define([_AC_COMPILER_EXEEXT],
  570. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  571. # When config.status generates a header, we must update the stamp-h file.
  572. # This file resides in the same directory as the config header
  573. # that is generated. The stamp files are numbered to have different names.
  574. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  575. # loop where config.status creates the headers, so we can generate
  576. # our stamp files there.
  577. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  578. [# Compute $1's index in $config_headers.
  579. _am_arg=$1
  580. _am_stamp_count=1
  581. for _am_header in $config_headers :; do
  582. case $_am_header in
  583. $_am_arg | $_am_arg:* )
  584. break ;;
  585. * )
  586. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  587. esac
  588. done
  589. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  590. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  591. #
  592. # This file is free software; the Free Software Foundation
  593. # gives unlimited permission to copy and/or distribute it,
  594. # with or without modifications, as long as this notice is preserved.
  595. # AM_PROG_INSTALL_SH
  596. # ------------------
  597. # Define $install_sh.
  598. AC_DEFUN([AM_PROG_INSTALL_SH],
  599. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  600. if test x"${install_sh+set}" != xset; then
  601. case $am_aux_dir in
  602. *\ * | *\ *)
  603. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  604. *)
  605. install_sh="\${SHELL} $am_aux_dir/install-sh"
  606. esac
  607. fi
  608. AC_SUBST([install_sh])])
  609. # Copyright (C) 2003-2018 Free Software Foundation, Inc.
  610. #
  611. # This file is free software; the Free Software Foundation
  612. # gives unlimited permission to copy and/or distribute it,
  613. # with or without modifications, as long as this notice is preserved.
  614. # Check whether the underlying file-system supports filenames
  615. # with a leading dot. For instance MS-DOS doesn't.
  616. AC_DEFUN([AM_SET_LEADING_DOT],
  617. [rm -rf .tst 2>/dev/null
  618. mkdir .tst 2>/dev/null
  619. if test -d .tst; then
  620. am__leading_dot=.
  621. else
  622. am__leading_dot=_
  623. fi
  624. rmdir .tst 2>/dev/null
  625. AC_SUBST([am__leading_dot])])
  626. # Check to see how 'make' treats includes. -*- Autoconf -*-
  627. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  628. #
  629. # This file is free software; the Free Software Foundation
  630. # gives unlimited permission to copy and/or distribute it,
  631. # with or without modifications, as long as this notice is preserved.
  632. # AM_MAKE_INCLUDE()
  633. # -----------------
  634. # Check whether make has an 'include' directive that can support all
  635. # the idioms we need for our automatic dependency tracking code.
  636. AC_DEFUN([AM_MAKE_INCLUDE],
  637. [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
  638. cat > confinc.mk << 'END'
  639. am__doit:
  640. @echo this is the am__doit target >confinc.out
  641. .PHONY: am__doit
  642. END
  643. am__include="#"
  644. am__quote=
  645. # BSD make does it like this.
  646. echo '.include "confinc.mk" # ignored' > confmf.BSD
  647. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  648. echo 'include confinc.mk # ignored' > confmf.GNU
  649. _am_result=no
  650. for s in GNU BSD; do
  651. AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
  652. AS_CASE([$?:`cat confinc.out 2>/dev/null`],
  653. ['0:this is the am__doit target'],
  654. [AS_CASE([$s],
  655. [BSD], [am__include='.include' am__quote='"'],
  656. [am__include='include' am__quote=''])])
  657. if test "$am__include" != "#"; then
  658. _am_result="yes ($s style)"
  659. break
  660. fi
  661. done
  662. rm -f confinc.* confmf.*
  663. AC_MSG_RESULT([${_am_result}])
  664. AC_SUBST([am__include])])
  665. AC_SUBST([am__quote])])
  666. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  667. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  668. #
  669. # This file is free software; the Free Software Foundation
  670. # gives unlimited permission to copy and/or distribute it,
  671. # with or without modifications, as long as this notice is preserved.
  672. # AM_MISSING_PROG(NAME, PROGRAM)
  673. # ------------------------------
  674. AC_DEFUN([AM_MISSING_PROG],
  675. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  676. $1=${$1-"${am_missing_run}$2"}
  677. AC_SUBST($1)])
  678. # AM_MISSING_HAS_RUN
  679. # ------------------
  680. # Define MISSING if not defined so far and test if it is modern enough.
  681. # If it is, set am_missing_run to use it, otherwise, to nothing.
  682. AC_DEFUN([AM_MISSING_HAS_RUN],
  683. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  684. AC_REQUIRE_AUX_FILE([missing])dnl
  685. if test x"${MISSING+set}" != xset; then
  686. case $am_aux_dir in
  687. *\ * | *\ *)
  688. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  689. *)
  690. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  691. esac
  692. fi
  693. # Use eval to expand $SHELL
  694. if eval "$MISSING --is-lightweight"; then
  695. am_missing_run="$MISSING "
  696. else
  697. am_missing_run=
  698. AC_MSG_WARN(['missing' script is too old or missing])
  699. fi
  700. ])
  701. # Helper functions for option handling. -*- Autoconf -*-
  702. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  703. #
  704. # This file is free software; the Free Software Foundation
  705. # gives unlimited permission to copy and/or distribute it,
  706. # with or without modifications, as long as this notice is preserved.
  707. # _AM_MANGLE_OPTION(NAME)
  708. # -----------------------
  709. AC_DEFUN([_AM_MANGLE_OPTION],
  710. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  711. # _AM_SET_OPTION(NAME)
  712. # --------------------
  713. # Set option NAME. Presently that only means defining a flag for this option.
  714. AC_DEFUN([_AM_SET_OPTION],
  715. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  716. # _AM_SET_OPTIONS(OPTIONS)
  717. # ------------------------
  718. # OPTIONS is a space-separated list of Automake options.
  719. AC_DEFUN([_AM_SET_OPTIONS],
  720. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  721. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  722. # -------------------------------------------
  723. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  724. AC_DEFUN([_AM_IF_OPTION],
  725. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  726. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  727. #
  728. # This file is free software; the Free Software Foundation
  729. # gives unlimited permission to copy and/or distribute it,
  730. # with or without modifications, as long as this notice is preserved.
  731. # _AM_PROG_CC_C_O
  732. # ---------------
  733. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  734. # to automatically call this.
  735. AC_DEFUN([_AM_PROG_CC_C_O],
  736. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  737. AC_REQUIRE_AUX_FILE([compile])dnl
  738. AC_LANG_PUSH([C])dnl
  739. AC_CACHE_CHECK(
  740. [whether $CC understands -c and -o together],
  741. [am_cv_prog_cc_c_o],
  742. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  743. # Make sure it works both with $CC and with simple cc.
  744. # Following AC_PROG_CC_C_O, we do the test twice because some
  745. # compilers refuse to overwrite an existing .o file with -o,
  746. # though they will create one.
  747. am_cv_prog_cc_c_o=yes
  748. for am_i in 1 2; do
  749. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  750. && test -f conftest2.$ac_objext; then
  751. : OK
  752. else
  753. am_cv_prog_cc_c_o=no
  754. break
  755. fi
  756. done
  757. rm -f core conftest*
  758. unset am_i])
  759. if test "$am_cv_prog_cc_c_o" != yes; then
  760. # Losing compiler, so override with the script.
  761. # FIXME: It is wrong to rewrite CC.
  762. # But if we don't then we get into trouble of one sort or another.
  763. # A longer-term fix would be to have automake use am__CC in this case,
  764. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  765. CC="$am_aux_dir/compile $CC"
  766. fi
  767. AC_LANG_POP([C])])
  768. # For backward compatibility.
  769. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  770. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  771. #
  772. # This file is free software; the Free Software Foundation
  773. # gives unlimited permission to copy and/or distribute it,
  774. # with or without modifications, as long as this notice is preserved.
  775. # AM_RUN_LOG(COMMAND)
  776. # -------------------
  777. # Run COMMAND, save the exit status in ac_status, and log it.
  778. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  779. AC_DEFUN([AM_RUN_LOG],
  780. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  781. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  782. ac_status=$?
  783. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  784. (exit $ac_status); }])
  785. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  786. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  787. #
  788. # This file is free software; the Free Software Foundation
  789. # gives unlimited permission to copy and/or distribute it,
  790. # with or without modifications, as long as this notice is preserved.
  791. # AM_SANITY_CHECK
  792. # ---------------
  793. AC_DEFUN([AM_SANITY_CHECK],
  794. [AC_MSG_CHECKING([whether build environment is sane])
  795. # Reject unsafe characters in $srcdir or the absolute working directory
  796. # name. Accept space and tab only in the latter.
  797. am_lf='
  798. '
  799. case `pwd` in
  800. *[[\\\"\#\$\&\'\`$am_lf]]*)
  801. AC_MSG_ERROR([unsafe absolute working directory name]);;
  802. esac
  803. case $srcdir in
  804. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  805. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  806. esac
  807. # Do 'set' in a subshell so we don't clobber the current shell's
  808. # arguments. Must try -L first in case configure is actually a
  809. # symlink; some systems play weird games with the mod time of symlinks
  810. # (eg FreeBSD returns the mod time of the symlink's containing
  811. # directory).
  812. if (
  813. am_has_slept=no
  814. for am_try in 1 2; do
  815. echo "timestamp, slept: $am_has_slept" > conftest.file
  816. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  817. if test "$[*]" = "X"; then
  818. # -L didn't work.
  819. set X `ls -t "$srcdir/configure" conftest.file`
  820. fi
  821. if test "$[*]" != "X $srcdir/configure conftest.file" \
  822. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  823. # If neither matched, then we have a broken ls. This can happen
  824. # if, for instance, CONFIG_SHELL is bash and it inherits a
  825. # broken ls alias from the environment. This has actually
  826. # happened. Such a system could not be considered "sane".
  827. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  828. alias in your environment])
  829. fi
  830. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  831. break
  832. fi
  833. # Just in case.
  834. sleep 1
  835. am_has_slept=yes
  836. done
  837. test "$[2]" = conftest.file
  838. )
  839. then
  840. # Ok.
  841. :
  842. else
  843. AC_MSG_ERROR([newly created file is older than distributed files!
  844. Check your system clock])
  845. fi
  846. AC_MSG_RESULT([yes])
  847. # If we didn't sleep, we still need to ensure time stamps of config.status and
  848. # generated files are strictly newer.
  849. am_sleep_pid=
  850. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  851. ( sleep 1 ) &
  852. am_sleep_pid=$!
  853. fi
  854. AC_CONFIG_COMMANDS_PRE(
  855. [AC_MSG_CHECKING([that generated files are newer than configure])
  856. if test -n "$am_sleep_pid"; then
  857. # Hide warnings about reused PIDs.
  858. wait $am_sleep_pid 2>/dev/null
  859. fi
  860. AC_MSG_RESULT([done])])
  861. rm -f conftest.file
  862. ])
  863. # Copyright (C) 2009-2018 Free Software Foundation, Inc.
  864. #
  865. # This file is free software; the Free Software Foundation
  866. # gives unlimited permission to copy and/or distribute it,
  867. # with or without modifications, as long as this notice is preserved.
  868. # AM_SILENT_RULES([DEFAULT])
  869. # --------------------------
  870. # Enable less verbose build rules; with the default set to DEFAULT
  871. # ("yes" being less verbose, "no" or empty being verbose).
  872. AC_DEFUN([AM_SILENT_RULES],
  873. [AC_ARG_ENABLE([silent-rules], [dnl
  874. AS_HELP_STRING(
  875. [--enable-silent-rules],
  876. [less verbose build output (undo: "make V=1")])
  877. AS_HELP_STRING(
  878. [--disable-silent-rules],
  879. [verbose build output (undo: "make V=0")])dnl
  880. ])
  881. case $enable_silent_rules in @%:@ (((
  882. yes) AM_DEFAULT_VERBOSITY=0;;
  883. no) AM_DEFAULT_VERBOSITY=1;;
  884. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  885. esac
  886. dnl
  887. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  888. dnl do not support nested variable expansions.
  889. dnl See automake bug#9928 and bug#10237.
  890. am_make=${MAKE-make}
  891. AC_CACHE_CHECK([whether $am_make supports nested variables],
  892. [am_cv_make_support_nested_variables],
  893. [if AS_ECHO([['TRUE=$(BAR$(V))
  894. BAR0=false
  895. BAR1=true
  896. V=1
  897. am__doit:
  898. @$(TRUE)
  899. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  900. am_cv_make_support_nested_variables=yes
  901. else
  902. am_cv_make_support_nested_variables=no
  903. fi])
  904. if test $am_cv_make_support_nested_variables = yes; then
  905. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  906. AM_V='$(V)'
  907. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  908. else
  909. AM_V=$AM_DEFAULT_VERBOSITY
  910. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  911. fi
  912. AC_SUBST([AM_V])dnl
  913. AM_SUBST_NOTMAKE([AM_V])dnl
  914. AC_SUBST([AM_DEFAULT_V])dnl
  915. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  916. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  917. AM_BACKSLASH='\'
  918. AC_SUBST([AM_BACKSLASH])dnl
  919. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  920. ])
  921. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  922. #
  923. # This file is free software; the Free Software Foundation
  924. # gives unlimited permission to copy and/or distribute it,
  925. # with or without modifications, as long as this notice is preserved.
  926. # AM_PROG_INSTALL_STRIP
  927. # ---------------------
  928. # One issue with vendor 'install' (even GNU) is that you can't
  929. # specify the program used to strip binaries. This is especially
  930. # annoying in cross-compiling environments, where the build's strip
  931. # is unlikely to handle the host's binaries.
  932. # Fortunately install-sh will honor a STRIPPROG variable, so we
  933. # always use install-sh in "make install-strip", and initialize
  934. # STRIPPROG with the value of the STRIP variable (set by the user).
  935. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  936. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  937. # Installed binaries are usually stripped using 'strip' when the user
  938. # run "make install-strip". However 'strip' might not be the right
  939. # tool to use in cross-compilation environments, therefore Automake
  940. # will honor the 'STRIP' environment variable to overrule this program.
  941. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  942. if test "$cross_compiling" != no; then
  943. AC_CHECK_TOOL([STRIP], [strip], :)
  944. fi
  945. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  946. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  947. # Copyright (C) 2006-2018 Free Software Foundation, Inc.
  948. #
  949. # This file is free software; the Free Software Foundation
  950. # gives unlimited permission to copy and/or distribute it,
  951. # with or without modifications, as long as this notice is preserved.
  952. # _AM_SUBST_NOTMAKE(VARIABLE)
  953. # ---------------------------
  954. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  955. # This macro is traced by Automake.
  956. AC_DEFUN([_AM_SUBST_NOTMAKE])
  957. # AM_SUBST_NOTMAKE(VARIABLE)
  958. # --------------------------
  959. # Public sister of _AM_SUBST_NOTMAKE.
  960. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  961. # Check how to create a tarball. -*- Autoconf -*-
  962. # Copyright (C) 2004-2018 Free Software Foundation, Inc.
  963. #
  964. # This file is free software; the Free Software Foundation
  965. # gives unlimited permission to copy and/or distribute it,
  966. # with or without modifications, as long as this notice is preserved.
  967. # _AM_PROG_TAR(FORMAT)
  968. # --------------------
  969. # Check how to create a tarball in format FORMAT.
  970. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  971. #
  972. # Substitute a variable $(am__tar) that is a command
  973. # writing to stdout a FORMAT-tarball containing the directory
  974. # $tardir.
  975. # tardir=directory && $(am__tar) > result.tar
  976. #
  977. # Substitute a variable $(am__untar) that extract such
  978. # a tarball read from stdin.
  979. # $(am__untar) < result.tar
  980. #
  981. AC_DEFUN([_AM_PROG_TAR],
  982. [# Always define AMTAR for backward compatibility. Yes, it's still used
  983. # in the wild :-( We should find a proper way to deprecate it ...
  984. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  985. # We'll loop over all known methods to create a tar archive until one works.
  986. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  987. m4_if([$1], [v7],
  988. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  989. [m4_case([$1],
  990. [ustar],
  991. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  992. # There is notably a 21 bits limit for the UID and the GID. In fact,
  993. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  994. # and bug#13588).
  995. am_max_uid=2097151 # 2^21 - 1
  996. am_max_gid=$am_max_uid
  997. # The $UID and $GID variables are not portable, so we need to resort
  998. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  999. # below are definitely unexpected, so allow the users to see them
  1000. # (that is, avoid stderr redirection).
  1001. am_uid=`id -u || echo unknown`
  1002. am_gid=`id -g || echo unknown`
  1003. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  1004. if test $am_uid -le $am_max_uid; then
  1005. AC_MSG_RESULT([yes])
  1006. else
  1007. AC_MSG_RESULT([no])
  1008. _am_tools=none
  1009. fi
  1010. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  1011. if test $am_gid -le $am_max_gid; then
  1012. AC_MSG_RESULT([yes])
  1013. else
  1014. AC_MSG_RESULT([no])
  1015. _am_tools=none
  1016. fi],
  1017. [pax],
  1018. [],
  1019. [m4_fatal([Unknown tar format])])
  1020. AC_MSG_CHECKING([how to create a $1 tar archive])
  1021. # Go ahead even if we have the value already cached. We do so because we
  1022. # need to set the values for the 'am__tar' and 'am__untar' variables.
  1023. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1024. for _am_tool in $_am_tools; do
  1025. case $_am_tool in
  1026. gnutar)
  1027. for _am_tar in tar gnutar gtar; do
  1028. AM_RUN_LOG([$_am_tar --version]) && break
  1029. done
  1030. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1031. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1032. am__untar="$_am_tar -xf -"
  1033. ;;
  1034. plaintar)
  1035. # Must skip GNU tar: if it does not support --format= it doesn't create
  1036. # ustar tarball either.
  1037. (tar --version) >/dev/null 2>&1 && continue
  1038. am__tar='tar chf - "$$tardir"'
  1039. am__tar_='tar chf - "$tardir"'
  1040. am__untar='tar xf -'
  1041. ;;
  1042. pax)
  1043. am__tar='pax -L -x $1 -w "$$tardir"'
  1044. am__tar_='pax -L -x $1 -w "$tardir"'
  1045. am__untar='pax -r'
  1046. ;;
  1047. cpio)
  1048. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1049. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1050. am__untar='cpio -i -H $1 -d'
  1051. ;;
  1052. none)
  1053. am__tar=false
  1054. am__tar_=false
  1055. am__untar=false
  1056. ;;
  1057. esac
  1058. # If the value was cached, stop now. We just wanted to have am__tar
  1059. # and am__untar set.
  1060. test -n "${am_cv_prog_tar_$1}" && break
  1061. # tar/untar a dummy directory, and stop if the command works.
  1062. rm -rf conftest.dir
  1063. mkdir conftest.dir
  1064. echo GrepMe > conftest.dir/file
  1065. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1066. rm -rf conftest.dir
  1067. if test -s conftest.tar; then
  1068. AM_RUN_LOG([$am__untar <conftest.tar])
  1069. AM_RUN_LOG([cat conftest.dir/file])
  1070. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1071. fi
  1072. done
  1073. rm -rf conftest.dir
  1074. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1075. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1076. AC_SUBST([am__tar])
  1077. AC_SUBST([am__untar])
  1078. ]) # _AM_PROG_TAR
  1079. m4_include([m4/ax_ac_append_to_file.m4])
  1080. m4_include([m4/ax_ac_print_to_file.m4])
  1081. m4_include([m4/ax_add_am_macro_static.m4])
  1082. m4_include([m4/ax_add_fortify_source.m4])
  1083. m4_include([m4/ax_am_macros_static.m4])
  1084. m4_include([m4/ax_check_compile_flag.m4])
  1085. m4_include([m4/ax_check_enable_debug.m4])
  1086. m4_include([m4/ax_check_gnu_make.m4])
  1087. m4_include([m4/ax_check_link_flag.m4])
  1088. m4_include([m4/ax_code_coverage.m4])
  1089. m4_include([m4/ax_file_escapes.m4])
  1090. m4_include([m4/ax_is_release.m4])
  1091. m4_include([m4/ax_normalize_path.m4])
  1092. m4_include([m4/ax_prog_doxygen.m4])
  1093. m4_include([m4/ax_recursive_eval.m4])
  1094. m4_include([m4/ax_valgrind_check.m4])
  1095. m4_include([m4/flags.m4])
  1096. m4_include([m4/ld-version-script.m4])
  1097. m4_include([m4/libtool.m4])
  1098. m4_include([m4/ltdl.m4])
  1099. m4_include([m4/ltoptions.m4])
  1100. m4_include([m4/ltsugar.m4])
  1101. m4_include([m4/ltversion.m4])
  1102. m4_include([m4/lt~obsolete.m4])
  1103. m4_include([m4/misc.m4])
  1104. m4_include([m4/pkg.m4])