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.

1217 lines
42 KiB

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