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.

1295 lines
46 KiB

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