aclocal.m4 49 KB

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