aclocal.m4 43 KB

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