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.

1256 lines
44 KiB

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