aclocal.m4 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  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. # Figure out how to run the assembler. -*- 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. # 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-2018 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-2018 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-2018 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-2018 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. # TODO: see whether this extra hack can be removed once we start
  333. # requiring Autoconf 2.70 or later.
  334. AS_CASE([$CONFIG_FILES],
  335. [*\'*], [eval set x "$CONFIG_FILES"],
  336. [*], [set x $CONFIG_FILES])
  337. shift
  338. # Used to flag and report bootstrapping failures.
  339. am_rc=0
  340. for am_mf
  341. do
  342. # Strip MF so we end up with the name of the file.
  343. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
  344. # Check whether this is an Automake generated Makefile which includes
  345. # dependency-tracking related rules and includes.
  346. # Grep'ing the whole file directly is not great: AIX grep has a line
  347. # limit of 2048, but all sed's we know have understand at least 4000.
  348. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  349. || continue
  350. am_dirpart=`AS_DIRNAME(["$am_mf"])`
  351. am_filepart=`AS_BASENAME(["$am_mf"])`
  352. AM_RUN_LOG([cd "$am_dirpart" \
  353. && sed -e '/# am--include-marker/d' "$am_filepart" \
  354. | $MAKE -f - am--depfiles]) || am_rc=$?
  355. done
  356. if test $am_rc -ne 0; then
  357. AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
  358. for automatic dependency tracking. Try re-running configure with the
  359. '--disable-dependency-tracking' option to at least be able to build
  360. the package (albeit without support for automatic dependency tracking).])
  361. fi
  362. AS_UNSET([am_dirpart])
  363. AS_UNSET([am_filepart])
  364. AS_UNSET([am_mf])
  365. AS_UNSET([am_rc])
  366. rm -f conftest-deps.mk
  367. }
  368. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  369. # AM_OUTPUT_DEPENDENCY_COMMANDS
  370. # -----------------------------
  371. # This macro should only be invoked once -- use via AC_REQUIRE.
  372. #
  373. # This code is only required when automatic dependency tracking is enabled.
  374. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
  375. # order to bootstrap the dependency handling code.
  376. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  377. [AC_CONFIG_COMMANDS([depfiles],
  378. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  379. [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
  380. # Do all the work for Automake. -*- Autoconf -*-
  381. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  382. #
  383. # This file is free software; the Free Software Foundation
  384. # gives unlimited permission to copy and/or distribute it,
  385. # with or without modifications, as long as this notice is preserved.
  386. # This macro actually does too much. Some checks are only needed if
  387. # your package does certain things. But this isn't really a big deal.
  388. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  389. m4_define([AC_PROG_CC],
  390. m4_defn([AC_PROG_CC])
  391. [_AM_PROG_CC_C_O
  392. ])
  393. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  394. # AM_INIT_AUTOMAKE([OPTIONS])
  395. # -----------------------------------------------
  396. # The call with PACKAGE and VERSION arguments is the old style
  397. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  398. # and VERSION should now be passed to AC_INIT and removed from
  399. # the call to AM_INIT_AUTOMAKE.
  400. # We support both call styles for the transition. After
  401. # the next Automake release, Autoconf can make the AC_INIT
  402. # arguments mandatory, and then we can depend on a new Autoconf
  403. # release and drop the old call support.
  404. AC_DEFUN([AM_INIT_AUTOMAKE],
  405. [AC_PREREQ([2.65])dnl
  406. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  407. dnl the ones we care about.
  408. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  409. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  410. AC_REQUIRE([AC_PROG_INSTALL])dnl
  411. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  412. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  413. # is not polluted with repeated "-I."
  414. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  415. # test to see if srcdir already configured
  416. if test -f $srcdir/config.status; then
  417. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  418. fi
  419. fi
  420. # test whether we have cygpath
  421. if test -z "$CYGPATH_W"; then
  422. if (cygpath --version) >/dev/null 2>/dev/null; then
  423. CYGPATH_W='cygpath -w'
  424. else
  425. CYGPATH_W=echo
  426. fi
  427. fi
  428. AC_SUBST([CYGPATH_W])
  429. # Define the identity of the package.
  430. dnl Distinguish between old-style and new-style calls.
  431. m4_ifval([$2],
  432. [AC_DIAGNOSE([obsolete],
  433. [$0: two- and three-arguments forms are deprecated.])
  434. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  435. AC_SUBST([PACKAGE], [$1])dnl
  436. AC_SUBST([VERSION], [$2])],
  437. [_AM_SET_OPTIONS([$1])dnl
  438. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  439. m4_if(
  440. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  441. [ok:ok],,
  442. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  443. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  444. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  445. _AM_IF_OPTION([no-define],,
  446. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  447. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  448. # Some tools Automake needs.
  449. AC_REQUIRE([AM_SANITY_CHECK])dnl
  450. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  451. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  452. AM_MISSING_PROG([AUTOCONF], [autoconf])
  453. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  454. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  455. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  456. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  457. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  458. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  459. # For better backward compatibility. To be removed once Automake 1.9.x
  460. # dies out for good. For more background, see:
  461. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  462. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  463. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  464. # We need awk for the "check" target (and possibly the TAP driver). The
  465. # system "awk" is bad on some platforms.
  466. AC_REQUIRE([AC_PROG_AWK])dnl
  467. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  468. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  469. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  470. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  471. [_AM_PROG_TAR([v7])])])
  472. _AM_IF_OPTION([no-dependencies],,
  473. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  474. [_AM_DEPENDENCIES([CC])],
  475. [m4_define([AC_PROG_CC],
  476. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  477. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  478. [_AM_DEPENDENCIES([CXX])],
  479. [m4_define([AC_PROG_CXX],
  480. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  481. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  482. [_AM_DEPENDENCIES([OBJC])],
  483. [m4_define([AC_PROG_OBJC],
  484. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  485. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  486. [_AM_DEPENDENCIES([OBJCXX])],
  487. [m4_define([AC_PROG_OBJCXX],
  488. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  489. ])
  490. AC_REQUIRE([AM_SILENT_RULES])dnl
  491. dnl The testsuite driver may need to know about EXEEXT, so add the
  492. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  493. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  494. AC_CONFIG_COMMANDS_PRE(dnl
  495. [m4_provide_if([_AM_COMPILER_EXEEXT],
  496. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  497. # POSIX will say in a future version that running "rm -f" with no argument
  498. # is OK; and we want to be able to make that assumption in our Makefile
  499. # recipes. So use an aggressive probe to check that the usage we want is
  500. # actually supported "in the wild" to an acceptable degree.
  501. # See automake bug#10828.
  502. # To make any issue more visible, cause the running configure to be aborted
  503. # by default if the 'rm' program in use doesn't match our expectations; the
  504. # user can still override this though.
  505. if rm -f && rm -fr && rm -rf; then : OK; else
  506. cat >&2 <<'END'
  507. Oops!
  508. Your 'rm' program seems unable to run without file operands specified
  509. on the command line, even when the '-f' option is present. This is contrary
  510. to the behaviour of most rm programs out there, and not conforming with
  511. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  512. Please tell bug-automake@gnu.org about your system, including the value
  513. of your $PATH and any error possibly output before this message. This
  514. can help us improve future automake versions.
  515. END
  516. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  517. echo 'Configuration will proceed anyway, since you have set the' >&2
  518. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  519. echo >&2
  520. else
  521. cat >&2 <<'END'
  522. Aborting the configuration process, to ensure you take notice of the issue.
  523. You can download and install GNU coreutils to get an 'rm' implementation
  524. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  525. If you want to complete the configuration process using your problematic
  526. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  527. to "yes", and re-run configure.
  528. END
  529. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  530. fi
  531. fi
  532. dnl The trailing newline in this macro's definition is deliberate, for
  533. dnl backward compatibility and to allow trailing 'dnl'-style comments
  534. dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  535. ])
  536. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  537. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  538. dnl mangled by Autoconf and run in a shell conditional statement.
  539. m4_define([_AC_COMPILER_EXEEXT],
  540. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  541. # When config.status generates a header, we must update the stamp-h file.
  542. # This file resides in the same directory as the config header
  543. # that is generated. The stamp files are numbered to have different names.
  544. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  545. # loop where config.status creates the headers, so we can generate
  546. # our stamp files there.
  547. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  548. [# Compute $1's index in $config_headers.
  549. _am_arg=$1
  550. _am_stamp_count=1
  551. for _am_header in $config_headers :; do
  552. case $_am_header in
  553. $_am_arg | $_am_arg:* )
  554. break ;;
  555. * )
  556. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  557. esac
  558. done
  559. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  560. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  561. #
  562. # This file is free software; the Free Software Foundation
  563. # gives unlimited permission to copy and/or distribute it,
  564. # with or without modifications, as long as this notice is preserved.
  565. # AM_PROG_INSTALL_SH
  566. # ------------------
  567. # Define $install_sh.
  568. AC_DEFUN([AM_PROG_INSTALL_SH],
  569. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  570. if test x"${install_sh+set}" != xset; then
  571. case $am_aux_dir in
  572. *\ * | *\ *)
  573. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  574. *)
  575. install_sh="\${SHELL} $am_aux_dir/install-sh"
  576. esac
  577. fi
  578. AC_SUBST([install_sh])])
  579. # Copyright (C) 2003-2018 Free Software Foundation, Inc.
  580. #
  581. # This file is free software; the Free Software Foundation
  582. # gives unlimited permission to copy and/or distribute it,
  583. # with or without modifications, as long as this notice is preserved.
  584. # Check whether the underlying file-system supports filenames
  585. # with a leading dot. For instance MS-DOS doesn't.
  586. AC_DEFUN([AM_SET_LEADING_DOT],
  587. [rm -rf .tst 2>/dev/null
  588. mkdir .tst 2>/dev/null
  589. if test -d .tst; then
  590. am__leading_dot=.
  591. else
  592. am__leading_dot=_
  593. fi
  594. rmdir .tst 2>/dev/null
  595. AC_SUBST([am__leading_dot])])
  596. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  597. # From Jim Meyering
  598. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  599. #
  600. # This file is free software; the Free Software Foundation
  601. # gives unlimited permission to copy and/or distribute it,
  602. # with or without modifications, as long as this notice is preserved.
  603. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  604. # ----------------------------------
  605. # Control maintainer-specific portions of Makefiles.
  606. # Default is to disable them, unless 'enable' is passed literally.
  607. # For symmetry, 'disable' may be passed as well. Anyway, the user
  608. # can override the default with the --enable/--disable switch.
  609. AC_DEFUN([AM_MAINTAINER_MODE],
  610. [m4_case(m4_default([$1], [disable]),
  611. [enable], [m4_define([am_maintainer_other], [disable])],
  612. [disable], [m4_define([am_maintainer_other], [enable])],
  613. [m4_define([am_maintainer_other], [enable])
  614. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  615. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  616. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  617. AC_ARG_ENABLE([maintainer-mode],
  618. [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  619. am_maintainer_other[ make rules and dependencies not useful
  620. (and sometimes confusing) to the casual installer])],
  621. [USE_MAINTAINER_MODE=$enableval],
  622. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  623. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  624. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  625. MAINT=$MAINTAINER_MODE_TRUE
  626. AC_SUBST([MAINT])dnl
  627. ]
  628. )
  629. # Check to see how 'make' treats includes. -*- Autoconf -*-
  630. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  631. #
  632. # This file is free software; the Free Software Foundation
  633. # gives unlimited permission to copy and/or distribute it,
  634. # with or without modifications, as long as this notice is preserved.
  635. # AM_MAKE_INCLUDE()
  636. # -----------------
  637. # Check whether make has an 'include' directive that can support all
  638. # the idioms we need for our automatic dependency tracking code.
  639. AC_DEFUN([AM_MAKE_INCLUDE],
  640. [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
  641. cat > confinc.mk << 'END'
  642. am__doit:
  643. @echo this is the am__doit target >confinc.out
  644. .PHONY: am__doit
  645. END
  646. am__include="#"
  647. am__quote=
  648. # BSD make does it like this.
  649. echo '.include "confinc.mk" # ignored' > confmf.BSD
  650. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  651. echo 'include confinc.mk # ignored' > confmf.GNU
  652. _am_result=no
  653. for s in GNU BSD; do
  654. AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
  655. AS_CASE([$?:`cat confinc.out 2>/dev/null`],
  656. ['0:this is the am__doit target'],
  657. [AS_CASE([$s],
  658. [BSD], [am__include='.include' am__quote='"'],
  659. [am__include='include' am__quote=''])])
  660. if test "$am__include" != "#"; then
  661. _am_result="yes ($s style)"
  662. break
  663. fi
  664. done
  665. rm -f confinc.* confmf.*
  666. AC_MSG_RESULT([${_am_result}])
  667. AC_SUBST([am__include])])
  668. AC_SUBST([am__quote])])
  669. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  670. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  671. #
  672. # This file is free software; the Free Software Foundation
  673. # gives unlimited permission to copy and/or distribute it,
  674. # with or without modifications, as long as this notice is preserved.
  675. # AM_MISSING_PROG(NAME, PROGRAM)
  676. # ------------------------------
  677. AC_DEFUN([AM_MISSING_PROG],
  678. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  679. $1=${$1-"${am_missing_run}$2"}
  680. AC_SUBST($1)])
  681. # AM_MISSING_HAS_RUN
  682. # ------------------
  683. # Define MISSING if not defined so far and test if it is modern enough.
  684. # If it is, set am_missing_run to use it, otherwise, to nothing.
  685. AC_DEFUN([AM_MISSING_HAS_RUN],
  686. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  687. AC_REQUIRE_AUX_FILE([missing])dnl
  688. if test x"${MISSING+set}" != xset; then
  689. case $am_aux_dir in
  690. *\ * | *\ *)
  691. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  692. *)
  693. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  694. esac
  695. fi
  696. # Use eval to expand $SHELL
  697. if eval "$MISSING --is-lightweight"; then
  698. am_missing_run="$MISSING "
  699. else
  700. am_missing_run=
  701. AC_MSG_WARN(['missing' script is too old or missing])
  702. fi
  703. ])
  704. # Helper functions for option handling. -*- Autoconf -*-
  705. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  706. #
  707. # This file is free software; the Free Software Foundation
  708. # gives unlimited permission to copy and/or distribute it,
  709. # with or without modifications, as long as this notice is preserved.
  710. # _AM_MANGLE_OPTION(NAME)
  711. # -----------------------
  712. AC_DEFUN([_AM_MANGLE_OPTION],
  713. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  714. # _AM_SET_OPTION(NAME)
  715. # --------------------
  716. # Set option NAME. Presently that only means defining a flag for this option.
  717. AC_DEFUN([_AM_SET_OPTION],
  718. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  719. # _AM_SET_OPTIONS(OPTIONS)
  720. # ------------------------
  721. # OPTIONS is a space-separated list of Automake options.
  722. AC_DEFUN([_AM_SET_OPTIONS],
  723. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  724. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  725. # -------------------------------------------
  726. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  727. AC_DEFUN([_AM_IF_OPTION],
  728. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  729. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  730. #
  731. # This file is free software; the Free Software Foundation
  732. # gives unlimited permission to copy and/or distribute it,
  733. # with or without modifications, as long as this notice is preserved.
  734. # _AM_PROG_CC_C_O
  735. # ---------------
  736. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  737. # to automatically call this.
  738. AC_DEFUN([_AM_PROG_CC_C_O],
  739. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  740. AC_REQUIRE_AUX_FILE([compile])dnl
  741. AC_LANG_PUSH([C])dnl
  742. AC_CACHE_CHECK(
  743. [whether $CC understands -c and -o together],
  744. [am_cv_prog_cc_c_o],
  745. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  746. # Make sure it works both with $CC and with simple cc.
  747. # Following AC_PROG_CC_C_O, we do the test twice because some
  748. # compilers refuse to overwrite an existing .o file with -o,
  749. # though they will create one.
  750. am_cv_prog_cc_c_o=yes
  751. for am_i in 1 2; do
  752. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  753. && test -f conftest2.$ac_objext; then
  754. : OK
  755. else
  756. am_cv_prog_cc_c_o=no
  757. break
  758. fi
  759. done
  760. rm -f core conftest*
  761. unset am_i])
  762. if test "$am_cv_prog_cc_c_o" != yes; then
  763. # Losing compiler, so override with the script.
  764. # FIXME: It is wrong to rewrite CC.
  765. # But if we don't then we get into trouble of one sort or another.
  766. # A longer-term fix would be to have automake use am__CC in this case,
  767. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  768. CC="$am_aux_dir/compile $CC"
  769. fi
  770. AC_LANG_POP([C])])
  771. # For backward compatibility.
  772. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  773. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  774. #
  775. # This file is free software; the Free Software Foundation
  776. # gives unlimited permission to copy and/or distribute it,
  777. # with or without modifications, as long as this notice is preserved.
  778. # AM_RUN_LOG(COMMAND)
  779. # -------------------
  780. # Run COMMAND, save the exit status in ac_status, and log it.
  781. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  782. AC_DEFUN([AM_RUN_LOG],
  783. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  784. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  785. ac_status=$?
  786. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  787. (exit $ac_status); }])
  788. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  789. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  790. #
  791. # This file is free software; the Free Software Foundation
  792. # gives unlimited permission to copy and/or distribute it,
  793. # with or without modifications, as long as this notice is preserved.
  794. # AM_SANITY_CHECK
  795. # ---------------
  796. AC_DEFUN([AM_SANITY_CHECK],
  797. [AC_MSG_CHECKING([whether build environment is sane])
  798. # Reject unsafe characters in $srcdir or the absolute working directory
  799. # name. Accept space and tab only in the latter.
  800. am_lf='
  801. '
  802. case `pwd` in
  803. *[[\\\"\#\$\&\'\`$am_lf]]*)
  804. AC_MSG_ERROR([unsafe absolute working directory name]);;
  805. esac
  806. case $srcdir in
  807. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  808. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  809. esac
  810. # Do 'set' in a subshell so we don't clobber the current shell's
  811. # arguments. Must try -L first in case configure is actually a
  812. # symlink; some systems play weird games with the mod time of symlinks
  813. # (eg FreeBSD returns the mod time of the symlink's containing
  814. # directory).
  815. if (
  816. am_has_slept=no
  817. for am_try in 1 2; do
  818. echo "timestamp, slept: $am_has_slept" > conftest.file
  819. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  820. if test "$[*]" = "X"; then
  821. # -L didn't work.
  822. set X `ls -t "$srcdir/configure" conftest.file`
  823. fi
  824. if test "$[*]" != "X $srcdir/configure conftest.file" \
  825. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  826. # If neither matched, then we have a broken ls. This can happen
  827. # if, for instance, CONFIG_SHELL is bash and it inherits a
  828. # broken ls alias from the environment. This has actually
  829. # happened. Such a system could not be considered "sane".
  830. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  831. alias in your environment])
  832. fi
  833. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  834. break
  835. fi
  836. # Just in case.
  837. sleep 1
  838. am_has_slept=yes
  839. done
  840. test "$[2]" = conftest.file
  841. )
  842. then
  843. # Ok.
  844. :
  845. else
  846. AC_MSG_ERROR([newly created file is older than distributed files!
  847. Check your system clock])
  848. fi
  849. AC_MSG_RESULT([yes])
  850. # If we didn't sleep, we still need to ensure time stamps of config.status and
  851. # generated files are strictly newer.
  852. am_sleep_pid=
  853. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  854. ( sleep 1 ) &
  855. am_sleep_pid=$!
  856. fi
  857. AC_CONFIG_COMMANDS_PRE(
  858. [AC_MSG_CHECKING([that generated files are newer than configure])
  859. if test -n "$am_sleep_pid"; then
  860. # Hide warnings about reused PIDs.
  861. wait $am_sleep_pid 2>/dev/null
  862. fi
  863. AC_MSG_RESULT([done])])
  864. rm -f conftest.file
  865. ])
  866. # Copyright (C) 2009-2018 Free Software Foundation, Inc.
  867. #
  868. # This file is free software; the Free Software Foundation
  869. # gives unlimited permission to copy and/or distribute it,
  870. # with or without modifications, as long as this notice is preserved.
  871. # AM_SILENT_RULES([DEFAULT])
  872. # --------------------------
  873. # Enable less verbose build rules; with the default set to DEFAULT
  874. # ("yes" being less verbose, "no" or empty being verbose).
  875. AC_DEFUN([AM_SILENT_RULES],
  876. [AC_ARG_ENABLE([silent-rules], [dnl
  877. AS_HELP_STRING(
  878. [--enable-silent-rules],
  879. [less verbose build output (undo: "make V=1")])
  880. AS_HELP_STRING(
  881. [--disable-silent-rules],
  882. [verbose build output (undo: "make V=0")])dnl
  883. ])
  884. case $enable_silent_rules in @%:@ (((
  885. yes) AM_DEFAULT_VERBOSITY=0;;
  886. no) AM_DEFAULT_VERBOSITY=1;;
  887. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  888. esac
  889. dnl
  890. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  891. dnl do not support nested variable expansions.
  892. dnl See automake bug#9928 and bug#10237.
  893. am_make=${MAKE-make}
  894. AC_CACHE_CHECK([whether $am_make supports nested variables],
  895. [am_cv_make_support_nested_variables],
  896. [if AS_ECHO([['TRUE=$(BAR$(V))
  897. BAR0=false
  898. BAR1=true
  899. V=1
  900. am__doit:
  901. @$(TRUE)
  902. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  903. am_cv_make_support_nested_variables=yes
  904. else
  905. am_cv_make_support_nested_variables=no
  906. fi])
  907. if test $am_cv_make_support_nested_variables = yes; then
  908. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  909. AM_V='$(V)'
  910. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  911. else
  912. AM_V=$AM_DEFAULT_VERBOSITY
  913. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  914. fi
  915. AC_SUBST([AM_V])dnl
  916. AM_SUBST_NOTMAKE([AM_V])dnl
  917. AC_SUBST([AM_DEFAULT_V])dnl
  918. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  919. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  920. AM_BACKSLASH='\'
  921. AC_SUBST([AM_BACKSLASH])dnl
  922. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  923. ])
  924. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  925. #
  926. # This file is free software; the Free Software Foundation
  927. # gives unlimited permission to copy and/or distribute it,
  928. # with or without modifications, as long as this notice is preserved.
  929. # AM_PROG_INSTALL_STRIP
  930. # ---------------------
  931. # One issue with vendor 'install' (even GNU) is that you can't
  932. # specify the program used to strip binaries. This is especially
  933. # annoying in cross-compiling environments, where the build's strip
  934. # is unlikely to handle the host's binaries.
  935. # Fortunately install-sh will honor a STRIPPROG variable, so we
  936. # always use install-sh in "make install-strip", and initialize
  937. # STRIPPROG with the value of the STRIP variable (set by the user).
  938. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  939. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  940. # Installed binaries are usually stripped using 'strip' when the user
  941. # run "make install-strip". However 'strip' might not be the right
  942. # tool to use in cross-compilation environments, therefore Automake
  943. # will honor the 'STRIP' environment variable to overrule this program.
  944. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  945. if test "$cross_compiling" != no; then
  946. AC_CHECK_TOOL([STRIP], [strip], :)
  947. fi
  948. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  949. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  950. # Copyright (C) 2006-2018 Free Software Foundation, Inc.
  951. #
  952. # This file is free software; the Free Software Foundation
  953. # gives unlimited permission to copy and/or distribute it,
  954. # with or without modifications, as long as this notice is preserved.
  955. # _AM_SUBST_NOTMAKE(VARIABLE)
  956. # ---------------------------
  957. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  958. # This macro is traced by Automake.
  959. AC_DEFUN([_AM_SUBST_NOTMAKE])
  960. # AM_SUBST_NOTMAKE(VARIABLE)
  961. # --------------------------
  962. # Public sister of _AM_SUBST_NOTMAKE.
  963. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  964. # Check how to create a tarball. -*- Autoconf -*-
  965. # Copyright (C) 2004-2018 Free Software Foundation, Inc.
  966. #
  967. # This file is free software; the Free Software Foundation
  968. # gives unlimited permission to copy and/or distribute it,
  969. # with or without modifications, as long as this notice is preserved.
  970. # _AM_PROG_TAR(FORMAT)
  971. # --------------------
  972. # Check how to create a tarball in format FORMAT.
  973. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  974. #
  975. # Substitute a variable $(am__tar) that is a command
  976. # writing to stdout a FORMAT-tarball containing the directory
  977. # $tardir.
  978. # tardir=directory && $(am__tar) > result.tar
  979. #
  980. # Substitute a variable $(am__untar) that extract such
  981. # a tarball read from stdin.
  982. # $(am__untar) < result.tar
  983. #
  984. AC_DEFUN([_AM_PROG_TAR],
  985. [# Always define AMTAR for backward compatibility. Yes, it's still used
  986. # in the wild :-( We should find a proper way to deprecate it ...
  987. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  988. # We'll loop over all known methods to create a tar archive until one works.
  989. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  990. m4_if([$1], [v7],
  991. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  992. [m4_case([$1],
  993. [ustar],
  994. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  995. # There is notably a 21 bits limit for the UID and the GID. In fact,
  996. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  997. # and bug#13588).
  998. am_max_uid=2097151 # 2^21 - 1
  999. am_max_gid=$am_max_uid
  1000. # The $UID and $GID variables are not portable, so we need to resort
  1001. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  1002. # below are definitely unexpected, so allow the users to see them
  1003. # (that is, avoid stderr redirection).
  1004. am_uid=`id -u || echo unknown`
  1005. am_gid=`id -g || echo unknown`
  1006. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  1007. if test $am_uid -le $am_max_uid; then
  1008. AC_MSG_RESULT([yes])
  1009. else
  1010. AC_MSG_RESULT([no])
  1011. _am_tools=none
  1012. fi
  1013. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  1014. if test $am_gid -le $am_max_gid; then
  1015. AC_MSG_RESULT([yes])
  1016. else
  1017. AC_MSG_RESULT([no])
  1018. _am_tools=none
  1019. fi],
  1020. [pax],
  1021. [],
  1022. [m4_fatal([Unknown tar format])])
  1023. AC_MSG_CHECKING([how to create a $1 tar archive])
  1024. # Go ahead even if we have the value already cached. We do so because we
  1025. # need to set the values for the 'am__tar' and 'am__untar' variables.
  1026. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1027. for _am_tool in $_am_tools; do
  1028. case $_am_tool in
  1029. gnutar)
  1030. for _am_tar in tar gnutar gtar; do
  1031. AM_RUN_LOG([$_am_tar --version]) && break
  1032. done
  1033. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1034. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1035. am__untar="$_am_tar -xf -"
  1036. ;;
  1037. plaintar)
  1038. # Must skip GNU tar: if it does not support --format= it doesn't create
  1039. # ustar tarball either.
  1040. (tar --version) >/dev/null 2>&1 && continue
  1041. am__tar='tar chf - "$$tardir"'
  1042. am__tar_='tar chf - "$tardir"'
  1043. am__untar='tar xf -'
  1044. ;;
  1045. pax)
  1046. am__tar='pax -L -x $1 -w "$$tardir"'
  1047. am__tar_='pax -L -x $1 -w "$tardir"'
  1048. am__untar='pax -r'
  1049. ;;
  1050. cpio)
  1051. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1052. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1053. am__untar='cpio -i -H $1 -d'
  1054. ;;
  1055. none)
  1056. am__tar=false
  1057. am__tar_=false
  1058. am__untar=false
  1059. ;;
  1060. esac
  1061. # If the value was cached, stop now. We just wanted to have am__tar
  1062. # and am__untar set.
  1063. test -n "${am_cv_prog_tar_$1}" && break
  1064. # tar/untar a dummy directory, and stop if the command works.
  1065. rm -rf conftest.dir
  1066. mkdir conftest.dir
  1067. echo GrepMe > conftest.dir/file
  1068. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1069. rm -rf conftest.dir
  1070. if test -s conftest.tar; then
  1071. AM_RUN_LOG([$am__untar <conftest.tar])
  1072. AM_RUN_LOG([cat conftest.dir/file])
  1073. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1074. fi
  1075. done
  1076. rm -rf conftest.dir
  1077. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1078. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1079. AC_SUBST([am__tar])
  1080. AC_SUBST([am__untar])
  1081. ]) # _AM_PROG_TAR
  1082. m4_include([scripts/libtool.m4])
  1083. m4_include([scripts/ltoptions.m4])
  1084. m4_include([scripts/ltsugar.m4])
  1085. m4_include([scripts/ltversion.m4])
  1086. m4_include([scripts/lt~obsolete.m4])