You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

966 lines
35 KiB

  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. # Copyright (C) 2011-2018 Free Software Foundation, Inc.
  51. #
  52. # This file is free software; the Free Software Foundation
  53. # gives unlimited permission to copy and/or distribute it,
  54. # with or without modifications, as long as this notice is preserved.
  55. # AM_PROG_AR([ACT-IF-FAIL])
  56. # -------------------------
  57. # Try to determine the archiver interface, and trigger the ar-lib wrapper
  58. # if it is needed. If the detection of archiver interface fails, run
  59. # ACT-IF-FAIL (default is to abort configure with a proper error message).
  60. AC_DEFUN([AM_PROG_AR],
  61. [AC_BEFORE([$0], [LT_INIT])dnl
  62. AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
  63. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  64. AC_REQUIRE_AUX_FILE([ar-lib])dnl
  65. AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
  66. : ${AR=ar}
  67. AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
  68. [AC_LANG_PUSH([C])
  69. am_cv_ar_interface=ar
  70. AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
  71. [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  72. AC_TRY_EVAL([am_ar_try])
  73. if test "$ac_status" -eq 0; then
  74. am_cv_ar_interface=ar
  75. else
  76. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  77. AC_TRY_EVAL([am_ar_try])
  78. if test "$ac_status" -eq 0; then
  79. am_cv_ar_interface=lib
  80. else
  81. am_cv_ar_interface=unknown
  82. fi
  83. fi
  84. rm -f conftest.lib libconftest.a
  85. ])
  86. AC_LANG_POP([C])])
  87. case $am_cv_ar_interface in
  88. ar)
  89. ;;
  90. lib)
  91. # Microsoft lib, so override with the ar-lib wrapper script.
  92. # FIXME: It is wrong to rewrite AR.
  93. # But if we don't then we get into trouble of one sort or another.
  94. # A longer-term fix would be to have automake use am__AR in this case,
  95. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  96. # similar.
  97. AR="$am_aux_dir/ar-lib $AR"
  98. ;;
  99. unknown)
  100. m4_default([$1],
  101. [AC_MSG_ERROR([could not determine $AR interface])])
  102. ;;
  103. esac
  104. AC_SUBST([AR])dnl
  105. ])
  106. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  107. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  108. #
  109. # This file is free software; the Free Software Foundation
  110. # gives unlimited permission to copy and/or distribute it,
  111. # with or without modifications, as long as this notice is preserved.
  112. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  113. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  114. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  115. #
  116. # Of course, Automake must honor this variable whenever it calls a
  117. # tool from the auxiliary directory. The problem is that $srcdir (and
  118. # therefore $ac_aux_dir as well) can be either absolute or relative,
  119. # depending on how configure is run. This is pretty annoying, since
  120. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  121. # source directory, any form will work fine, but in subdirectories a
  122. # relative path needs to be adjusted first.
  123. #
  124. # $ac_aux_dir/missing
  125. # fails when called from a subdirectory if $ac_aux_dir is relative
  126. # $top_srcdir/$ac_aux_dir/missing
  127. # fails if $ac_aux_dir is absolute,
  128. # fails when called from a subdirectory in a VPATH build with
  129. # a relative $ac_aux_dir
  130. #
  131. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  132. # are both prefixed by $srcdir. In an in-source build this is usually
  133. # harmless because $srcdir is '.', but things will broke when you
  134. # start a VPATH build or use an absolute $srcdir.
  135. #
  136. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  137. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  138. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  139. # and then we would define $MISSING as
  140. # MISSING="\${SHELL} $am_aux_dir/missing"
  141. # This will work as long as MISSING is not called from configure, because
  142. # unfortunately $(top_srcdir) has no meaning in configure.
  143. # However there are other variables, like CC, which are often used in
  144. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  145. #
  146. # Another solution, used here, is to always expand $ac_aux_dir to an
  147. # absolute PATH. The drawback is that using absolute paths prevent a
  148. # configured tree to be moved without reconfiguration.
  149. AC_DEFUN([AM_AUX_DIR_EXPAND],
  150. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  151. # Expand $ac_aux_dir to an absolute path.
  152. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  153. ])
  154. # AM_CONDITIONAL -*- Autoconf -*-
  155. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  156. #
  157. # This file is free software; the Free Software Foundation
  158. # gives unlimited permission to copy and/or distribute it,
  159. # with or without modifications, as long as this notice is preserved.
  160. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  161. # -------------------------------------
  162. # Define a conditional.
  163. AC_DEFUN([AM_CONDITIONAL],
  164. [AC_PREREQ([2.52])dnl
  165. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  166. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  167. AC_SUBST([$1_TRUE])dnl
  168. AC_SUBST([$1_FALSE])dnl
  169. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  170. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  171. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  172. if $2; then
  173. $1_TRUE=
  174. $1_FALSE='#'
  175. else
  176. $1_TRUE='#'
  177. $1_FALSE=
  178. fi
  179. AC_CONFIG_COMMANDS_PRE(
  180. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  181. AC_MSG_ERROR([[conditional "$1" was never defined.
  182. Usually this means the macro was only invoked conditionally.]])
  183. fi])])
  184. # Do all the work for Automake. -*- Autoconf -*-
  185. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  186. #
  187. # This file is free software; the Free Software Foundation
  188. # gives unlimited permission to copy and/or distribute it,
  189. # with or without modifications, as long as this notice is preserved.
  190. # This macro actually does too much. Some checks are only needed if
  191. # your package does certain things. But this isn't really a big deal.
  192. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  193. m4_define([AC_PROG_CC],
  194. m4_defn([AC_PROG_CC])
  195. [_AM_PROG_CC_C_O
  196. ])
  197. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  198. # AM_INIT_AUTOMAKE([OPTIONS])
  199. # -----------------------------------------------
  200. # The call with PACKAGE and VERSION arguments is the old style
  201. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  202. # and VERSION should now be passed to AC_INIT and removed from
  203. # the call to AM_INIT_AUTOMAKE.
  204. # We support both call styles for the transition. After
  205. # the next Automake release, Autoconf can make the AC_INIT
  206. # arguments mandatory, and then we can depend on a new Autoconf
  207. # release and drop the old call support.
  208. AC_DEFUN([AM_INIT_AUTOMAKE],
  209. [AC_PREREQ([2.65])dnl
  210. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  211. dnl the ones we care about.
  212. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  213. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  214. AC_REQUIRE([AC_PROG_INSTALL])dnl
  215. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  216. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  217. # is not polluted with repeated "-I."
  218. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  219. # test to see if srcdir already configured
  220. if test -f $srcdir/config.status; then
  221. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  222. fi
  223. fi
  224. # test whether we have cygpath
  225. if test -z "$CYGPATH_W"; then
  226. if (cygpath --version) >/dev/null 2>/dev/null; then
  227. CYGPATH_W='cygpath -w'
  228. else
  229. CYGPATH_W=echo
  230. fi
  231. fi
  232. AC_SUBST([CYGPATH_W])
  233. # Define the identity of the package.
  234. dnl Distinguish between old-style and new-style calls.
  235. m4_ifval([$2],
  236. [AC_DIAGNOSE([obsolete],
  237. [$0: two- and three-arguments forms are deprecated.])
  238. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  239. AC_SUBST([PACKAGE], [$1])dnl
  240. AC_SUBST([VERSION], [$2])],
  241. [_AM_SET_OPTIONS([$1])dnl
  242. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  243. m4_if(
  244. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  245. [ok:ok],,
  246. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  247. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  248. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  249. _AM_IF_OPTION([no-define],,
  250. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  251. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  252. # Some tools Automake needs.
  253. AC_REQUIRE([AM_SANITY_CHECK])dnl
  254. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  255. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  256. AM_MISSING_PROG([AUTOCONF], [autoconf])
  257. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  258. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  259. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  260. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  261. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  262. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  263. # For better backward compatibility. To be removed once Automake 1.9.x
  264. # dies out for good. For more background, see:
  265. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  266. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  267. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  268. # We need awk for the "check" target (and possibly the TAP driver). The
  269. # system "awk" is bad on some platforms.
  270. AC_REQUIRE([AC_PROG_AWK])dnl
  271. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  272. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  273. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  274. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  275. [_AM_PROG_TAR([v7])])])
  276. _AM_IF_OPTION([no-dependencies],,
  277. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  278. [_AM_DEPENDENCIES([CC])],
  279. [m4_define([AC_PROG_CC],
  280. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  281. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  282. [_AM_DEPENDENCIES([CXX])],
  283. [m4_define([AC_PROG_CXX],
  284. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  285. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  286. [_AM_DEPENDENCIES([OBJC])],
  287. [m4_define([AC_PROG_OBJC],
  288. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  289. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  290. [_AM_DEPENDENCIES([OBJCXX])],
  291. [m4_define([AC_PROG_OBJCXX],
  292. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  293. ])
  294. AC_REQUIRE([AM_SILENT_RULES])dnl
  295. dnl The testsuite driver may need to know about EXEEXT, so add the
  296. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  297. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  298. AC_CONFIG_COMMANDS_PRE(dnl
  299. [m4_provide_if([_AM_COMPILER_EXEEXT],
  300. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  301. # POSIX will say in a future version that running "rm -f" with no argument
  302. # is OK; and we want to be able to make that assumption in our Makefile
  303. # recipes. So use an aggressive probe to check that the usage we want is
  304. # actually supported "in the wild" to an acceptable degree.
  305. # See automake bug#10828.
  306. # To make any issue more visible, cause the running configure to be aborted
  307. # by default if the 'rm' program in use doesn't match our expectations; the
  308. # user can still override this though.
  309. if rm -f && rm -fr && rm -rf; then : OK; else
  310. cat >&2 <<'END'
  311. Oops!
  312. Your 'rm' program seems unable to run without file operands specified
  313. on the command line, even when the '-f' option is present. This is contrary
  314. to the behaviour of most rm programs out there, and not conforming with
  315. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  316. Please tell bug-automake@gnu.org about your system, including the value
  317. of your $PATH and any error possibly output before this message. This
  318. can help us improve future automake versions.
  319. END
  320. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  321. echo 'Configuration will proceed anyway, since you have set the' >&2
  322. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  323. echo >&2
  324. else
  325. cat >&2 <<'END'
  326. Aborting the configuration process, to ensure you take notice of the issue.
  327. You can download and install GNU coreutils to get an 'rm' implementation
  328. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  329. If you want to complete the configuration process using your problematic
  330. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  331. to "yes", and re-run configure.
  332. END
  333. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  334. fi
  335. fi
  336. dnl The trailing newline in this macro's definition is deliberate, for
  337. dnl backward compatibility and to allow trailing 'dnl'-style comments
  338. dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  339. ])
  340. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  341. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  342. dnl mangled by Autoconf and run in a shell conditional statement.
  343. m4_define([_AC_COMPILER_EXEEXT],
  344. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  345. # When config.status generates a header, we must update the stamp-h file.
  346. # This file resides in the same directory as the config header
  347. # that is generated. The stamp files are numbered to have different names.
  348. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  349. # loop where config.status creates the headers, so we can generate
  350. # our stamp files there.
  351. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  352. [# Compute $1's index in $config_headers.
  353. _am_arg=$1
  354. _am_stamp_count=1
  355. for _am_header in $config_headers :; do
  356. case $_am_header in
  357. $_am_arg | $_am_arg:* )
  358. break ;;
  359. * )
  360. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  361. esac
  362. done
  363. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  364. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  365. #
  366. # This file is free software; the Free Software Foundation
  367. # gives unlimited permission to copy and/or distribute it,
  368. # with or without modifications, as long as this notice is preserved.
  369. # AM_PROG_INSTALL_SH
  370. # ------------------
  371. # Define $install_sh.
  372. AC_DEFUN([AM_PROG_INSTALL_SH],
  373. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  374. if test x"${install_sh+set}" != xset; then
  375. case $am_aux_dir in
  376. *\ * | *\ *)
  377. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  378. *)
  379. install_sh="\${SHELL} $am_aux_dir/install-sh"
  380. esac
  381. fi
  382. AC_SUBST([install_sh])])
  383. # Copyright (C) 2003-2018 Free Software Foundation, Inc.
  384. #
  385. # This file is free software; the Free Software Foundation
  386. # gives unlimited permission to copy and/or distribute it,
  387. # with or without modifications, as long as this notice is preserved.
  388. # Check whether the underlying file-system supports filenames
  389. # with a leading dot. For instance MS-DOS doesn't.
  390. AC_DEFUN([AM_SET_LEADING_DOT],
  391. [rm -rf .tst 2>/dev/null
  392. mkdir .tst 2>/dev/null
  393. if test -d .tst; then
  394. am__leading_dot=.
  395. else
  396. am__leading_dot=_
  397. fi
  398. rmdir .tst 2>/dev/null
  399. AC_SUBST([am__leading_dot])])
  400. # Copyright (C) 1998-2018 Free Software Foundation, Inc.
  401. #
  402. # This file is free software; the Free Software Foundation
  403. # gives unlimited permission to copy and/or distribute it,
  404. # with or without modifications, as long as this notice is preserved.
  405. # AM_PROG_LEX
  406. # -----------
  407. # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
  408. # "missing" invocation, for better error output.
  409. AC_DEFUN([AM_PROG_LEX],
  410. [AC_PREREQ([2.50])dnl
  411. AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
  412. AC_REQUIRE([AC_PROG_LEX])dnl
  413. if test "$LEX" = :; then
  414. LEX=${am_missing_run}flex
  415. fi])
  416. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  417. # From Jim Meyering
  418. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  419. #
  420. # This file is free software; the Free Software Foundation
  421. # gives unlimited permission to copy and/or distribute it,
  422. # with or without modifications, as long as this notice is preserved.
  423. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  424. # ----------------------------------
  425. # Control maintainer-specific portions of Makefiles.
  426. # Default is to disable them, unless 'enable' is passed literally.
  427. # For symmetry, 'disable' may be passed as well. Anyway, the user
  428. # can override the default with the --enable/--disable switch.
  429. AC_DEFUN([AM_MAINTAINER_MODE],
  430. [m4_case(m4_default([$1], [disable]),
  431. [enable], [m4_define([am_maintainer_other], [disable])],
  432. [disable], [m4_define([am_maintainer_other], [enable])],
  433. [m4_define([am_maintainer_other], [enable])
  434. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  435. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  436. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  437. AC_ARG_ENABLE([maintainer-mode],
  438. [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  439. am_maintainer_other[ make rules and dependencies not useful
  440. (and sometimes confusing) to the casual installer])],
  441. [USE_MAINTAINER_MODE=$enableval],
  442. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  443. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  444. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  445. MAINT=$MAINTAINER_MODE_TRUE
  446. AC_SUBST([MAINT])dnl
  447. ]
  448. )
  449. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  450. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  451. #
  452. # This file is free software; the Free Software Foundation
  453. # gives unlimited permission to copy and/or distribute it,
  454. # with or without modifications, as long as this notice is preserved.
  455. # AM_MISSING_PROG(NAME, PROGRAM)
  456. # ------------------------------
  457. AC_DEFUN([AM_MISSING_PROG],
  458. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  459. $1=${$1-"${am_missing_run}$2"}
  460. AC_SUBST($1)])
  461. # AM_MISSING_HAS_RUN
  462. # ------------------
  463. # Define MISSING if not defined so far and test if it is modern enough.
  464. # If it is, set am_missing_run to use it, otherwise, to nothing.
  465. AC_DEFUN([AM_MISSING_HAS_RUN],
  466. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  467. AC_REQUIRE_AUX_FILE([missing])dnl
  468. if test x"${MISSING+set}" != xset; then
  469. case $am_aux_dir in
  470. *\ * | *\ *)
  471. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  472. *)
  473. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  474. esac
  475. fi
  476. # Use eval to expand $SHELL
  477. if eval "$MISSING --is-lightweight"; then
  478. am_missing_run="$MISSING "
  479. else
  480. am_missing_run=
  481. AC_MSG_WARN(['missing' script is too old or missing])
  482. fi
  483. ])
  484. # Helper functions for option handling. -*- Autoconf -*-
  485. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  486. #
  487. # This file is free software; the Free Software Foundation
  488. # gives unlimited permission to copy and/or distribute it,
  489. # with or without modifications, as long as this notice is preserved.
  490. # _AM_MANGLE_OPTION(NAME)
  491. # -----------------------
  492. AC_DEFUN([_AM_MANGLE_OPTION],
  493. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  494. # _AM_SET_OPTION(NAME)
  495. # --------------------
  496. # Set option NAME. Presently that only means defining a flag for this option.
  497. AC_DEFUN([_AM_SET_OPTION],
  498. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  499. # _AM_SET_OPTIONS(OPTIONS)
  500. # ------------------------
  501. # OPTIONS is a space-separated list of Automake options.
  502. AC_DEFUN([_AM_SET_OPTIONS],
  503. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  504. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  505. # -------------------------------------------
  506. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  507. AC_DEFUN([_AM_IF_OPTION],
  508. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  509. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  510. #
  511. # This file is free software; the Free Software Foundation
  512. # gives unlimited permission to copy and/or distribute it,
  513. # with or without modifications, as long as this notice is preserved.
  514. # _AM_PROG_CC_C_O
  515. # ---------------
  516. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  517. # to automatically call this.
  518. AC_DEFUN([_AM_PROG_CC_C_O],
  519. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  520. AC_REQUIRE_AUX_FILE([compile])dnl
  521. AC_LANG_PUSH([C])dnl
  522. AC_CACHE_CHECK(
  523. [whether $CC understands -c and -o together],
  524. [am_cv_prog_cc_c_o],
  525. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  526. # Make sure it works both with $CC and with simple cc.
  527. # Following AC_PROG_CC_C_O, we do the test twice because some
  528. # compilers refuse to overwrite an existing .o file with -o,
  529. # though they will create one.
  530. am_cv_prog_cc_c_o=yes
  531. for am_i in 1 2; do
  532. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  533. && test -f conftest2.$ac_objext; then
  534. : OK
  535. else
  536. am_cv_prog_cc_c_o=no
  537. break
  538. fi
  539. done
  540. rm -f core conftest*
  541. unset am_i])
  542. if test "$am_cv_prog_cc_c_o" != yes; then
  543. # Losing compiler, so override with the script.
  544. # FIXME: It is wrong to rewrite CC.
  545. # But if we don't then we get into trouble of one sort or another.
  546. # A longer-term fix would be to have automake use am__CC in this case,
  547. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  548. CC="$am_aux_dir/compile $CC"
  549. fi
  550. AC_LANG_POP([C])])
  551. # For backward compatibility.
  552. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  553. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  554. #
  555. # This file is free software; the Free Software Foundation
  556. # gives unlimited permission to copy and/or distribute it,
  557. # with or without modifications, as long as this notice is preserved.
  558. # AM_RUN_LOG(COMMAND)
  559. # -------------------
  560. # Run COMMAND, save the exit status in ac_status, and log it.
  561. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  562. AC_DEFUN([AM_RUN_LOG],
  563. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  564. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  565. ac_status=$?
  566. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  567. (exit $ac_status); }])
  568. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  569. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  570. #
  571. # This file is free software; the Free Software Foundation
  572. # gives unlimited permission to copy and/or distribute it,
  573. # with or without modifications, as long as this notice is preserved.
  574. # AM_SANITY_CHECK
  575. # ---------------
  576. AC_DEFUN([AM_SANITY_CHECK],
  577. [AC_MSG_CHECKING([whether build environment is sane])
  578. # Reject unsafe characters in $srcdir or the absolute working directory
  579. # name. Accept space and tab only in the latter.
  580. am_lf='
  581. '
  582. case `pwd` in
  583. *[[\\\"\#\$\&\'\`$am_lf]]*)
  584. AC_MSG_ERROR([unsafe absolute working directory name]);;
  585. esac
  586. case $srcdir in
  587. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  588. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  589. esac
  590. # Do 'set' in a subshell so we don't clobber the current shell's
  591. # arguments. Must try -L first in case configure is actually a
  592. # symlink; some systems play weird games with the mod time of symlinks
  593. # (eg FreeBSD returns the mod time of the symlink's containing
  594. # directory).
  595. if (
  596. am_has_slept=no
  597. for am_try in 1 2; do
  598. echo "timestamp, slept: $am_has_slept" > conftest.file
  599. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  600. if test "$[*]" = "X"; then
  601. # -L didn't work.
  602. set X `ls -t "$srcdir/configure" conftest.file`
  603. fi
  604. if test "$[*]" != "X $srcdir/configure conftest.file" \
  605. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  606. # If neither matched, then we have a broken ls. This can happen
  607. # if, for instance, CONFIG_SHELL is bash and it inherits a
  608. # broken ls alias from the environment. This has actually
  609. # happened. Such a system could not be considered "sane".
  610. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  611. alias in your environment])
  612. fi
  613. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  614. break
  615. fi
  616. # Just in case.
  617. sleep 1
  618. am_has_slept=yes
  619. done
  620. test "$[2]" = conftest.file
  621. )
  622. then
  623. # Ok.
  624. :
  625. else
  626. AC_MSG_ERROR([newly created file is older than distributed files!
  627. Check your system clock])
  628. fi
  629. AC_MSG_RESULT([yes])
  630. # If we didn't sleep, we still need to ensure time stamps of config.status and
  631. # generated files are strictly newer.
  632. am_sleep_pid=
  633. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  634. ( sleep 1 ) &
  635. am_sleep_pid=$!
  636. fi
  637. AC_CONFIG_COMMANDS_PRE(
  638. [AC_MSG_CHECKING([that generated files are newer than configure])
  639. if test -n "$am_sleep_pid"; then
  640. # Hide warnings about reused PIDs.
  641. wait $am_sleep_pid 2>/dev/null
  642. fi
  643. AC_MSG_RESULT([done])])
  644. rm -f conftest.file
  645. ])
  646. # Copyright (C) 2009-2018 Free Software Foundation, Inc.
  647. #
  648. # This file is free software; the Free Software Foundation
  649. # gives unlimited permission to copy and/or distribute it,
  650. # with or without modifications, as long as this notice is preserved.
  651. # AM_SILENT_RULES([DEFAULT])
  652. # --------------------------
  653. # Enable less verbose build rules; with the default set to DEFAULT
  654. # ("yes" being less verbose, "no" or empty being verbose).
  655. AC_DEFUN([AM_SILENT_RULES],
  656. [AC_ARG_ENABLE([silent-rules], [dnl
  657. AS_HELP_STRING(
  658. [--enable-silent-rules],
  659. [less verbose build output (undo: "make V=1")])
  660. AS_HELP_STRING(
  661. [--disable-silent-rules],
  662. [verbose build output (undo: "make V=0")])dnl
  663. ])
  664. case $enable_silent_rules in @%:@ (((
  665. yes) AM_DEFAULT_VERBOSITY=0;;
  666. no) AM_DEFAULT_VERBOSITY=1;;
  667. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  668. esac
  669. dnl
  670. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  671. dnl do not support nested variable expansions.
  672. dnl See automake bug#9928 and bug#10237.
  673. am_make=${MAKE-make}
  674. AC_CACHE_CHECK([whether $am_make supports nested variables],
  675. [am_cv_make_support_nested_variables],
  676. [if AS_ECHO([['TRUE=$(BAR$(V))
  677. BAR0=false
  678. BAR1=true
  679. V=1
  680. am__doit:
  681. @$(TRUE)
  682. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  683. am_cv_make_support_nested_variables=yes
  684. else
  685. am_cv_make_support_nested_variables=no
  686. fi])
  687. if test $am_cv_make_support_nested_variables = yes; then
  688. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  689. AM_V='$(V)'
  690. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  691. else
  692. AM_V=$AM_DEFAULT_VERBOSITY
  693. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  694. fi
  695. AC_SUBST([AM_V])dnl
  696. AM_SUBST_NOTMAKE([AM_V])dnl
  697. AC_SUBST([AM_DEFAULT_V])dnl
  698. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  699. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  700. AM_BACKSLASH='\'
  701. AC_SUBST([AM_BACKSLASH])dnl
  702. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  703. ])
  704. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  705. #
  706. # This file is free software; the Free Software Foundation
  707. # gives unlimited permission to copy and/or distribute it,
  708. # with or without modifications, as long as this notice is preserved.
  709. # AM_PROG_INSTALL_STRIP
  710. # ---------------------
  711. # One issue with vendor 'install' (even GNU) is that you can't
  712. # specify the program used to strip binaries. This is especially
  713. # annoying in cross-compiling environments, where the build's strip
  714. # is unlikely to handle the host's binaries.
  715. # Fortunately install-sh will honor a STRIPPROG variable, so we
  716. # always use install-sh in "make install-strip", and initialize
  717. # STRIPPROG with the value of the STRIP variable (set by the user).
  718. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  719. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  720. # Installed binaries are usually stripped using 'strip' when the user
  721. # run "make install-strip". However 'strip' might not be the right
  722. # tool to use in cross-compilation environments, therefore Automake
  723. # will honor the 'STRIP' environment variable to overrule this program.
  724. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  725. if test "$cross_compiling" != no; then
  726. AC_CHECK_TOOL([STRIP], [strip], :)
  727. fi
  728. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  729. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  730. # Copyright (C) 2006-2018 Free Software Foundation, Inc.
  731. #
  732. # This file is free software; the Free Software Foundation
  733. # gives unlimited permission to copy and/or distribute it,
  734. # with or without modifications, as long as this notice is preserved.
  735. # _AM_SUBST_NOTMAKE(VARIABLE)
  736. # ---------------------------
  737. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  738. # This macro is traced by Automake.
  739. AC_DEFUN([_AM_SUBST_NOTMAKE])
  740. # AM_SUBST_NOTMAKE(VARIABLE)
  741. # --------------------------
  742. # Public sister of _AM_SUBST_NOTMAKE.
  743. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  744. # Check how to create a tarball. -*- Autoconf -*-
  745. # Copyright (C) 2004-2018 Free Software Foundation, Inc.
  746. #
  747. # This file is free software; the Free Software Foundation
  748. # gives unlimited permission to copy and/or distribute it,
  749. # with or without modifications, as long as this notice is preserved.
  750. # _AM_PROG_TAR(FORMAT)
  751. # --------------------
  752. # Check how to create a tarball in format FORMAT.
  753. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  754. #
  755. # Substitute a variable $(am__tar) that is a command
  756. # writing to stdout a FORMAT-tarball containing the directory
  757. # $tardir.
  758. # tardir=directory && $(am__tar) > result.tar
  759. #
  760. # Substitute a variable $(am__untar) that extract such
  761. # a tarball read from stdin.
  762. # $(am__untar) < result.tar
  763. #
  764. AC_DEFUN([_AM_PROG_TAR],
  765. [# Always define AMTAR for backward compatibility. Yes, it's still used
  766. # in the wild :-( We should find a proper way to deprecate it ...
  767. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  768. # We'll loop over all known methods to create a tar archive until one works.
  769. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  770. m4_if([$1], [v7],
  771. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  772. [m4_case([$1],
  773. [ustar],
  774. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  775. # There is notably a 21 bits limit for the UID and the GID. In fact,
  776. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  777. # and bug#13588).
  778. am_max_uid=2097151 # 2^21 - 1
  779. am_max_gid=$am_max_uid
  780. # The $UID and $GID variables are not portable, so we need to resort
  781. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  782. # below are definitely unexpected, so allow the users to see them
  783. # (that is, avoid stderr redirection).
  784. am_uid=`id -u || echo unknown`
  785. am_gid=`id -g || echo unknown`
  786. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  787. if test $am_uid -le $am_max_uid; then
  788. AC_MSG_RESULT([yes])
  789. else
  790. AC_MSG_RESULT([no])
  791. _am_tools=none
  792. fi
  793. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  794. if test $am_gid -le $am_max_gid; then
  795. AC_MSG_RESULT([yes])
  796. else
  797. AC_MSG_RESULT([no])
  798. _am_tools=none
  799. fi],
  800. [pax],
  801. [],
  802. [m4_fatal([Unknown tar format])])
  803. AC_MSG_CHECKING([how to create a $1 tar archive])
  804. # Go ahead even if we have the value already cached. We do so because we
  805. # need to set the values for the 'am__tar' and 'am__untar' variables.
  806. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  807. for _am_tool in $_am_tools; do
  808. case $_am_tool in
  809. gnutar)
  810. for _am_tar in tar gnutar gtar; do
  811. AM_RUN_LOG([$_am_tar --version]) && break
  812. done
  813. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  814. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  815. am__untar="$_am_tar -xf -"
  816. ;;
  817. plaintar)
  818. # Must skip GNU tar: if it does not support --format= it doesn't create
  819. # ustar tarball either.
  820. (tar --version) >/dev/null 2>&1 && continue
  821. am__tar='tar chf - "$$tardir"'
  822. am__tar_='tar chf - "$tardir"'
  823. am__untar='tar xf -'
  824. ;;
  825. pax)
  826. am__tar='pax -L -x $1 -w "$$tardir"'
  827. am__tar_='pax -L -x $1 -w "$tardir"'
  828. am__untar='pax -r'
  829. ;;
  830. cpio)
  831. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  832. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  833. am__untar='cpio -i -H $1 -d'
  834. ;;
  835. none)
  836. am__tar=false
  837. am__tar_=false
  838. am__untar=false
  839. ;;
  840. esac
  841. # If the value was cached, stop now. We just wanted to have am__tar
  842. # and am__untar set.
  843. test -n "${am_cv_prog_tar_$1}" && break
  844. # tar/untar a dummy directory, and stop if the command works.
  845. rm -rf conftest.dir
  846. mkdir conftest.dir
  847. echo GrepMe > conftest.dir/file
  848. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  849. rm -rf conftest.dir
  850. if test -s conftest.tar; then
  851. AM_RUN_LOG([$am__untar <conftest.tar])
  852. AM_RUN_LOG([cat conftest.dir/file])
  853. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  854. fi
  855. done
  856. rm -rf conftest.dir
  857. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  858. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  859. AC_SUBST([am__tar])
  860. AC_SUBST([am__untar])
  861. ]) # _AM_PROG_TAR
  862. m4_include([build-aux/m4/ax_append_flag.m4])
  863. m4_include([build-aux/m4/ax_cflags_warn_all.m4])
  864. m4_include([build-aux/m4/ax_check_enable_debug.m4])
  865. m4_include([build-aux/m4/ax_is_release.m4])
  866. m4_include([build-aux/m4/ax_require_defined.m4])
  867. m4_include([build-aux/m4/gettext.m4])
  868. m4_include([build-aux/m4/iconv.m4])
  869. m4_include([build-aux/m4/intlmacosx.m4])
  870. m4_include([build-aux/m4/lib-ld.m4])
  871. m4_include([build-aux/m4/lib-link.m4])
  872. m4_include([build-aux/m4/lib-prefix.m4])
  873. m4_include([build-aux/m4/nls.m4])
  874. m4_include([build-aux/m4/po.m4])
  875. m4_include([build-aux/m4/progtest.m4])