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.

1076 lines
38 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
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
10 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
  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_CONDITIONAL -*- Autoconf -*-
  160. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  161. # Free Software Foundation, Inc.
  162. #
  163. # This file is free software; the Free Software Foundation
  164. # gives unlimited permission to copy and/or distribute it,
  165. # with or without modifications, as long as this notice is preserved.
  166. # serial 9
  167. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  168. # -------------------------------------
  169. # Define a conditional.
  170. AC_DEFUN([AM_CONDITIONAL],
  171. [AC_PREREQ(2.52)dnl
  172. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  173. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  174. AC_SUBST([$1_TRUE])dnl
  175. AC_SUBST([$1_FALSE])dnl
  176. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  177. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  178. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  179. if $2; then
  180. $1_TRUE=
  181. $1_FALSE='#'
  182. else
  183. $1_TRUE='#'
  184. $1_FALSE=
  185. fi
  186. AC_CONFIG_COMMANDS_PRE(
  187. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  188. AC_MSG_ERROR([[conditional "$1" was never defined.
  189. Usually this means the macro was only invoked conditionally.]])
  190. fi])])
  191. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
  192. # 2010, 2011 Free Software Foundation, Inc.
  193. #
  194. # This file is free software; the Free Software Foundation
  195. # gives unlimited permission to copy and/or distribute it,
  196. # with or without modifications, as long as this notice is preserved.
  197. # serial 12
  198. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  199. # written in clear, in which case automake, when reading aclocal.m4,
  200. # will think it sees a *use*, and therefore will trigger all it's
  201. # C support machinery. Also note that it means that autoscan, seeing
  202. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  203. # _AM_DEPENDENCIES(NAME)
  204. # ----------------------
  205. # See how the compiler implements dependency checking.
  206. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  207. # We try a few techniques and use that to set a single cache variable.
  208. #
  209. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  210. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  211. # dependency, and given that the user is not expected to run this macro,
  212. # just rely on AC_PROG_CC.
  213. AC_DEFUN([_AM_DEPENDENCIES],
  214. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  215. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  216. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  217. AC_REQUIRE([AM_DEP_TRACK])dnl
  218. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  219. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  220. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  221. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  222. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  223. [depcc="$$1" am_compiler_list=])
  224. AC_CACHE_CHECK([dependency style of $depcc],
  225. [am_cv_$1_dependencies_compiler_type],
  226. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  227. # We make a subdir and do the tests there. Otherwise we can end up
  228. # making bogus files that we don't know about and never remove. For
  229. # instance it was reported that on HP-UX the gcc test will end up
  230. # making a dummy file named `D' -- because `-MD' means `put the output
  231. # in D'.
  232. rm -rf conftest.dir
  233. mkdir conftest.dir
  234. # Copy depcomp to subdir because otherwise we won't find it if we're
  235. # using a relative directory.
  236. cp "$am_depcomp" conftest.dir
  237. cd conftest.dir
  238. # We will build objects and dependencies in a subdirectory because
  239. # it helps to detect inapplicable dependency modes. For instance
  240. # both Tru64's cc and ICC support -MD to output dependencies as a
  241. # side effect of compilation, but ICC will put the dependencies in
  242. # the current directory while Tru64 will put them in the object
  243. # directory.
  244. mkdir sub
  245. am_cv_$1_dependencies_compiler_type=none
  246. if test "$am_compiler_list" = ""; then
  247. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  248. fi
  249. am__universal=false
  250. m4_case([$1], [CC],
  251. [case " $depcc " in #(
  252. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  253. esac],
  254. [CXX],
  255. [case " $depcc " in #(
  256. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  257. esac])
  258. for depmode in $am_compiler_list; do
  259. # Setup a source with many dependencies, because some compilers
  260. # like to wrap large dependency lists on column 80 (with \), and
  261. # we should not choose a depcomp mode which is confused by this.
  262. #
  263. # We need to recreate these files for each test, as the compiler may
  264. # overwrite some of them when testing with obscure command lines.
  265. # This happens at least with the AIX C compiler.
  266. : > sub/conftest.c
  267. for i in 1 2 3 4 5 6; do
  268. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  269. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  270. # Solaris 8's {/usr,}/bin/sh.
  271. touch sub/conftst$i.h
  272. done
  273. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  274. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  275. # mode. It turns out that the SunPro C++ compiler does not properly
  276. # handle `-M -o', and we need to detect this. Also, some Intel
  277. # versions had trouble with output in subdirs
  278. am__obj=sub/conftest.${OBJEXT-o}
  279. am__minus_obj="-o $am__obj"
  280. case $depmode in
  281. gcc)
  282. # This depmode causes a compiler race in universal mode.
  283. test "$am__universal" = false || continue
  284. ;;
  285. nosideeffect)
  286. # after this tag, mechanisms are not by side-effect, so they'll
  287. # only be used when explicitly requested
  288. if test "x$enable_dependency_tracking" = xyes; then
  289. continue
  290. else
  291. break
  292. fi
  293. ;;
  294. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  295. # This compiler won't grok `-c -o', but also, the minuso test has
  296. # not run yet. These depmodes are late enough in the game, and
  297. # so weak that their functioning should not be impacted.
  298. am__obj=conftest.${OBJEXT-o}
  299. am__minus_obj=
  300. ;;
  301. none) break ;;
  302. esac
  303. if depmode=$depmode \
  304. source=sub/conftest.c object=$am__obj \
  305. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  306. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  307. >/dev/null 2>conftest.err &&
  308. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  309. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  310. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  311. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  312. # icc doesn't choke on unknown options, it will just issue warnings
  313. # or remarks (even with -Werror). So we grep stderr for any message
  314. # that says an option was ignored or not supported.
  315. # When given -MP, icc 7.0 and 7.1 complain thusly:
  316. # icc: Command line warning: ignoring option '-M'; no argument required
  317. # The diagnosis changed in icc 8.0:
  318. # icc: Command line remark: option '-MP' not supported
  319. if (grep 'ignoring option' conftest.err ||
  320. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  321. am_cv_$1_dependencies_compiler_type=$depmode
  322. break
  323. fi
  324. fi
  325. done
  326. cd ..
  327. rm -rf conftest.dir
  328. else
  329. am_cv_$1_dependencies_compiler_type=none
  330. fi
  331. ])
  332. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  333. AM_CONDITIONAL([am__fastdep$1], [
  334. test "x$enable_dependency_tracking" != xno \
  335. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  336. ])
  337. # AM_SET_DEPDIR
  338. # -------------
  339. # Choose a directory name for dependency files.
  340. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  341. AC_DEFUN([AM_SET_DEPDIR],
  342. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  343. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  344. ])
  345. # AM_DEP_TRACK
  346. # ------------
  347. AC_DEFUN([AM_DEP_TRACK],
  348. [AC_ARG_ENABLE(dependency-tracking,
  349. [ --disable-dependency-tracking speeds up one-time build
  350. --enable-dependency-tracking do not reject slow dependency extractors])
  351. if test "x$enable_dependency_tracking" != xno; then
  352. am_depcomp="$ac_aux_dir/depcomp"
  353. AMDEPBACKSLASH='\'
  354. am__nodep='_no'
  355. fi
  356. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  357. AC_SUBST([AMDEPBACKSLASH])dnl
  358. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  359. AC_SUBST([am__nodep])dnl
  360. _AM_SUBST_NOTMAKE([am__nodep])dnl
  361. ])
  362. # Generate code to set up dependency tracking. -*- Autoconf -*-
  363. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  364. # Free Software Foundation, Inc.
  365. #
  366. # This file is free software; the Free Software Foundation
  367. # gives unlimited permission to copy and/or distribute it,
  368. # with or without modifications, as long as this notice is preserved.
  369. #serial 5
  370. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  371. # ------------------------------
  372. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  373. [{
  374. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  375. # are listed without --file. Let's play safe and only enable the eval
  376. # if we detect the quoting.
  377. case $CONFIG_FILES in
  378. *\'*) eval set x "$CONFIG_FILES" ;;
  379. *) set x $CONFIG_FILES ;;
  380. esac
  381. shift
  382. for mf
  383. do
  384. # Strip MF so we end up with the name of the file.
  385. mf=`echo "$mf" | sed -e 's/:.*$//'`
  386. # Check whether this is an Automake generated Makefile or not.
  387. # We used to match only the files named `Makefile.in', but
  388. # some people rename them; so instead we look at the file content.
  389. # Grep'ing the first line is not enough: some people post-process
  390. # each Makefile.in and add a new line on top of each file to say so.
  391. # Grep'ing the whole file is not good either: AIX grep has a line
  392. # limit of 2048, but all sed's we know have understand at least 4000.
  393. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  394. dirpart=`AS_DIRNAME("$mf")`
  395. else
  396. continue
  397. fi
  398. # Extract the definition of DEPDIR, am__include, and am__quote
  399. # from the Makefile without running `make'.
  400. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  401. test -z "$DEPDIR" && continue
  402. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  403. test -z "am__include" && continue
  404. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  405. # When using ansi2knr, U may be empty or an underscore; expand it
  406. U=`sed -n 's/^U = //p' < "$mf"`
  407. # Find all dependency output files, they are included files with
  408. # $(DEPDIR) in their names. We invoke sed twice because it is the
  409. # simplest approach to changing $(DEPDIR) to its actual value in the
  410. # expansion.
  411. for file in `sed -n "
  412. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  413. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  414. # Make sure the directory exists.
  415. test -f "$dirpart/$file" && continue
  416. fdir=`AS_DIRNAME(["$file"])`
  417. AS_MKDIR_P([$dirpart/$fdir])
  418. # echo "creating $dirpart/$file"
  419. echo '# dummy' > "$dirpart/$file"
  420. done
  421. done
  422. }
  423. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  424. # AM_OUTPUT_DEPENDENCY_COMMANDS
  425. # -----------------------------
  426. # This macro should only be invoked once -- use via AC_REQUIRE.
  427. #
  428. # This code is only required when automatic dependency tracking
  429. # is enabled. FIXME. This creates each `.P' file that we will
  430. # need in order to bootstrap the dependency handling code.
  431. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  432. [AC_CONFIG_COMMANDS([depfiles],
  433. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  434. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  435. ])
  436. # Do all the work for Automake. -*- Autoconf -*-
  437. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  438. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  439. #
  440. # This file is free software; the Free Software Foundation
  441. # gives unlimited permission to copy and/or distribute it,
  442. # with or without modifications, as long as this notice is preserved.
  443. # serial 16
  444. # This macro actually does too much. Some checks are only needed if
  445. # your package does certain things. But this isn't really a big deal.
  446. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  447. # AM_INIT_AUTOMAKE([OPTIONS])
  448. # -----------------------------------------------
  449. # The call with PACKAGE and VERSION arguments is the old style
  450. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  451. # and VERSION should now be passed to AC_INIT and removed from
  452. # the call to AM_INIT_AUTOMAKE.
  453. # We support both call styles for the transition. After
  454. # the next Automake release, Autoconf can make the AC_INIT
  455. # arguments mandatory, and then we can depend on a new Autoconf
  456. # release and drop the old call support.
  457. AC_DEFUN([AM_INIT_AUTOMAKE],
  458. [AC_PREREQ([2.62])dnl
  459. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  460. dnl the ones we care about.
  461. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  462. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  463. AC_REQUIRE([AC_PROG_INSTALL])dnl
  464. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  465. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  466. # is not polluted with repeated "-I."
  467. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  468. # test to see if srcdir already configured
  469. if test -f $srcdir/config.status; then
  470. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  471. fi
  472. fi
  473. # test whether we have cygpath
  474. if test -z "$CYGPATH_W"; then
  475. if (cygpath --version) >/dev/null 2>/dev/null; then
  476. CYGPATH_W='cygpath -w'
  477. else
  478. CYGPATH_W=echo
  479. fi
  480. fi
  481. AC_SUBST([CYGPATH_W])
  482. # Define the identity of the package.
  483. dnl Distinguish between old-style and new-style calls.
  484. m4_ifval([$2],
  485. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  486. AC_SUBST([PACKAGE], [$1])dnl
  487. AC_SUBST([VERSION], [$2])],
  488. [_AM_SET_OPTIONS([$1])dnl
  489. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  490. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  491. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  492. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  493. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  494. _AM_IF_OPTION([no-define],,
  495. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  496. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  497. # Some tools Automake needs.
  498. AC_REQUIRE([AM_SANITY_CHECK])dnl
  499. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  500. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  501. AM_MISSING_PROG(AUTOCONF, autoconf)
  502. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  503. AM_MISSING_PROG(AUTOHEADER, autoheader)
  504. AM_MISSING_PROG(MAKEINFO, makeinfo)
  505. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  506. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  507. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  508. # We need awk for the "check" target. The system "awk" is bad on
  509. # some platforms.
  510. AC_REQUIRE([AC_PROG_AWK])dnl
  511. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  512. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  513. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  514. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  515. [_AM_PROG_TAR([v7])])])
  516. _AM_IF_OPTION([no-dependencies],,
  517. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  518. [_AM_DEPENDENCIES(CC)],
  519. [define([AC_PROG_CC],
  520. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  521. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  522. [_AM_DEPENDENCIES(CXX)],
  523. [define([AC_PROG_CXX],
  524. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  525. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  526. [_AM_DEPENDENCIES(OBJC)],
  527. [define([AC_PROG_OBJC],
  528. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  529. ])
  530. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  531. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  532. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  533. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  534. AC_CONFIG_COMMANDS_PRE(dnl
  535. [m4_provide_if([_AM_COMPILER_EXEEXT],
  536. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  537. ])
  538. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  539. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  540. dnl mangled by Autoconf and run in a shell conditional statement.
  541. m4_define([_AC_COMPILER_EXEEXT],
  542. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  543. # When config.status generates a header, we must update the stamp-h file.
  544. # This file resides in the same directory as the config header
  545. # that is generated. The stamp files are numbered to have different names.
  546. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  547. # loop where config.status creates the headers, so we can generate
  548. # our stamp files there.
  549. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  550. [# Compute $1's index in $config_headers.
  551. _am_arg=$1
  552. _am_stamp_count=1
  553. for _am_header in $config_headers :; do
  554. case $_am_header in
  555. $_am_arg | $_am_arg:* )
  556. break ;;
  557. * )
  558. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  559. esac
  560. done
  561. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  562. # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
  563. # Inc.
  564. #
  565. # This file is free software; the Free Software Foundation
  566. # gives unlimited permission to copy and/or distribute it,
  567. # with or without modifications, as long as this notice is preserved.
  568. # serial 1
  569. # AM_PROG_INSTALL_SH
  570. # ------------------
  571. # Define $install_sh.
  572. AC_DEFUN([AM_PROG_INSTALL_SH],
  573. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  574. if test x"${install_sh}" != xset; then
  575. case $am_aux_dir in
  576. *\ * | *\ *)
  577. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  578. *)
  579. install_sh="\${SHELL} $am_aux_dir/install-sh"
  580. esac
  581. fi
  582. AC_SUBST(install_sh)])
  583. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  584. #
  585. # This file is free software; the Free Software Foundation
  586. # gives unlimited permission to copy and/or distribute it,
  587. # with or without modifications, as long as this notice is preserved.
  588. # serial 2
  589. # Check whether the underlying file-system supports filenames
  590. # with a leading dot. For instance MS-DOS doesn't.
  591. AC_DEFUN([AM_SET_LEADING_DOT],
  592. [rm -rf .tst 2>/dev/null
  593. mkdir .tst 2>/dev/null
  594. if test -d .tst; then
  595. am__leading_dot=.
  596. else
  597. am__leading_dot=_
  598. fi
  599. rmdir .tst 2>/dev/null
  600. AC_SUBST([am__leading_dot])])
  601. # Check to see how 'make' treats includes. -*- Autoconf -*-
  602. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  603. #
  604. # This file is free software; the Free Software Foundation
  605. # gives unlimited permission to copy and/or distribute it,
  606. # with or without modifications, as long as this notice is preserved.
  607. # serial 4
  608. # AM_MAKE_INCLUDE()
  609. # -----------------
  610. # Check to see how make treats includes.
  611. AC_DEFUN([AM_MAKE_INCLUDE],
  612. [am_make=${MAKE-make}
  613. cat > confinc << 'END'
  614. am__doit:
  615. @echo this is the am__doit target
  616. .PHONY: am__doit
  617. END
  618. # If we don't find an include directive, just comment out the code.
  619. AC_MSG_CHECKING([for style of include used by $am_make])
  620. am__include="#"
  621. am__quote=
  622. _am_result=none
  623. # First try GNU make style include.
  624. echo "include confinc" > confmf
  625. # Ignore all kinds of additional output from `make'.
  626. case `$am_make -s -f confmf 2> /dev/null` in #(
  627. *the\ am__doit\ target*)
  628. am__include=include
  629. am__quote=
  630. _am_result=GNU
  631. ;;
  632. esac
  633. # Now try BSD make style include.
  634. if test "$am__include" = "#"; then
  635. echo '.include "confinc"' > confmf
  636. case `$am_make -s -f confmf 2> /dev/null` in #(
  637. *the\ am__doit\ target*)
  638. am__include=.include
  639. am__quote="\""
  640. _am_result=BSD
  641. ;;
  642. esac
  643. fi
  644. AC_SUBST([am__include])
  645. AC_SUBST([am__quote])
  646. AC_MSG_RESULT([$_am_result])
  647. rm -f confinc confmf
  648. ])
  649. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  650. # Free Software Foundation, Inc.
  651. #
  652. # This file is free software; the Free Software Foundation
  653. # gives unlimited permission to copy and/or distribute it,
  654. # with or without modifications, as long as this notice is preserved.
  655. # serial 6
  656. # AM_PROG_CC_C_O
  657. # --------------
  658. # Like AC_PROG_CC_C_O, but changed for automake.
  659. AC_DEFUN([AM_PROG_CC_C_O],
  660. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  661. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  662. AC_REQUIRE_AUX_FILE([compile])dnl
  663. # FIXME: we rely on the cache variable name because
  664. # there is no other way.
  665. set dummy $CC
  666. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  667. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  668. if test "$am_t" != yes; then
  669. # Losing compiler, so override with the script.
  670. # FIXME: It is wrong to rewrite CC.
  671. # But if we don't then we get into trouble of one sort or another.
  672. # A longer-term fix would be to have automake use am__CC in this case,
  673. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  674. CC="$am_aux_dir/compile $CC"
  675. fi
  676. dnl Make sure AC_PROG_CC is never called again, or it will override our
  677. dnl setting of CC.
  678. m4_define([AC_PROG_CC],
  679. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  680. ])
  681. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  682. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  683. # Free Software Foundation, Inc.
  684. #
  685. # This file is free software; the Free Software Foundation
  686. # gives unlimited permission to copy and/or distribute it,
  687. # with or without modifications, as long as this notice is preserved.
  688. # serial 6
  689. # AM_MISSING_PROG(NAME, PROGRAM)
  690. # ------------------------------
  691. AC_DEFUN([AM_MISSING_PROG],
  692. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  693. $1=${$1-"${am_missing_run}$2"}
  694. AC_SUBST($1)])
  695. # AM_MISSING_HAS_RUN
  696. # ------------------
  697. # Define MISSING if not defined so far and test if it supports --run.
  698. # If it does, set am_missing_run to use it, otherwise, to nothing.
  699. AC_DEFUN([AM_MISSING_HAS_RUN],
  700. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  701. AC_REQUIRE_AUX_FILE([missing])dnl
  702. if test x"${MISSING+set}" != xset; then
  703. case $am_aux_dir in
  704. *\ * | *\ *)
  705. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  706. *)
  707. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  708. esac
  709. fi
  710. # Use eval to expand $SHELL
  711. if eval "$MISSING --run true"; then
  712. am_missing_run="$MISSING --run "
  713. else
  714. am_missing_run=
  715. AC_MSG_WARN([`missing' script is too old or missing])
  716. fi
  717. ])
  718. # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
  719. # 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 1
  725. # AM_PROG_MKDIR_P
  726. # ---------------
  727. # Check for `mkdir -p'.
  728. AC_DEFUN([AM_PROG_MKDIR_P],
  729. [AC_PREREQ([2.60])dnl
  730. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  731. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  732. dnl while keeping a definition of mkdir_p for backward compatibility.
  733. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  734. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  735. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  736. dnl adjustment using top_builddir (which is defined more often than
  737. dnl MKDIR_P).
  738. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  739. case $mkdir_p in
  740. [[\\/$]]* | ?:[[\\/]]*) ;;
  741. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  742. esac
  743. ])
  744. # Helper functions for option handling. -*- Autoconf -*-
  745. # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
  746. # Foundation, Inc.
  747. #
  748. # This file is free software; the Free Software Foundation
  749. # gives unlimited permission to copy and/or distribute it,
  750. # with or without modifications, as long as this notice is preserved.
  751. # serial 5
  752. # _AM_MANGLE_OPTION(NAME)
  753. # -----------------------
  754. AC_DEFUN([_AM_MANGLE_OPTION],
  755. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  756. # _AM_SET_OPTION(NAME)
  757. # --------------------
  758. # Set option NAME. Presently that only means defining a flag for this option.
  759. AC_DEFUN([_AM_SET_OPTION],
  760. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  761. # _AM_SET_OPTIONS(OPTIONS)
  762. # ------------------------
  763. # OPTIONS is a space-separated list of Automake options.
  764. AC_DEFUN([_AM_SET_OPTIONS],
  765. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  766. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  767. # -------------------------------------------
  768. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  769. AC_DEFUN([_AM_IF_OPTION],
  770. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  771. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  772. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  773. # Free Software Foundation, Inc.
  774. #
  775. # This file is free software; the Free Software Foundation
  776. # gives unlimited permission to copy and/or distribute it,
  777. # with or without modifications, as long as this notice is preserved.
  778. # serial 5
  779. # AM_SANITY_CHECK
  780. # ---------------
  781. AC_DEFUN([AM_SANITY_CHECK],
  782. [AC_MSG_CHECKING([whether build environment is sane])
  783. # Just in case
  784. sleep 1
  785. echo timestamp > conftest.file
  786. # Reject unsafe characters in $srcdir or the absolute working directory
  787. # name. Accept space and tab only in the latter.
  788. am_lf='
  789. '
  790. case `pwd` in
  791. *[[\\\"\#\$\&\'\`$am_lf]]*)
  792. AC_MSG_ERROR([unsafe absolute working directory name]);;
  793. esac
  794. case $srcdir in
  795. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  796. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  797. esac
  798. # Do `set' in a subshell so we don't clobber the current shell's
  799. # arguments. Must try -L first in case configure is actually a
  800. # symlink; some systems play weird games with the mod time of symlinks
  801. # (eg FreeBSD returns the mod time of the symlink's containing
  802. # directory).
  803. if (
  804. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  805. if test "$[*]" = "X"; then
  806. # -L didn't work.
  807. set X `ls -t "$srcdir/configure" conftest.file`
  808. fi
  809. rm -f conftest.file
  810. if test "$[*]" != "X $srcdir/configure conftest.file" \
  811. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  812. # If neither matched, then we have a broken ls. This can happen
  813. # if, for instance, CONFIG_SHELL is bash and it inherits a
  814. # broken ls alias from the environment. This has actually
  815. # happened. Such a system could not be considered "sane".
  816. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  817. alias in your environment])
  818. fi
  819. test "$[2]" = conftest.file
  820. )
  821. then
  822. # Ok.
  823. :
  824. else
  825. AC_MSG_ERROR([newly created file is older than distributed files!
  826. Check your system clock])
  827. fi
  828. AC_MSG_RESULT(yes)])
  829. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  830. #
  831. # This file is free software; the Free Software Foundation
  832. # gives unlimited permission to copy and/or distribute it,
  833. # with or without modifications, as long as this notice is preserved.
  834. # serial 1
  835. # AM_PROG_INSTALL_STRIP
  836. # ---------------------
  837. # One issue with vendor `install' (even GNU) is that you can't
  838. # specify the program used to strip binaries. This is especially
  839. # annoying in cross-compiling environments, where the build's strip
  840. # is unlikely to handle the host's binaries.
  841. # Fortunately install-sh will honor a STRIPPROG variable, so we
  842. # always use install-sh in `make install-strip', and initialize
  843. # STRIPPROG with the value of the STRIP variable (set by the user).
  844. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  845. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  846. # Installed binaries are usually stripped using `strip' when the user
  847. # run `make install-strip'. However `strip' might not be the right
  848. # tool to use in cross-compilation environments, therefore Automake
  849. # will honor the `STRIP' environment variable to overrule this program.
  850. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  851. if test "$cross_compiling" != no; then
  852. AC_CHECK_TOOL([STRIP], [strip], :)
  853. fi
  854. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  855. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  856. # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
  857. #
  858. # This file is free software; the Free Software Foundation
  859. # gives unlimited permission to copy and/or distribute it,
  860. # with or without modifications, as long as this notice is preserved.
  861. # serial 3
  862. # _AM_SUBST_NOTMAKE(VARIABLE)
  863. # ---------------------------
  864. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  865. # This macro is traced by Automake.
  866. AC_DEFUN([_AM_SUBST_NOTMAKE])
  867. # AM_SUBST_NOTMAKE(VARIABLE)
  868. # --------------------------
  869. # Public sister of _AM_SUBST_NOTMAKE.
  870. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  871. # Check how to create a tarball. -*- Autoconf -*-
  872. # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
  873. #
  874. # This file is free software; the Free Software Foundation
  875. # gives unlimited permission to copy and/or distribute it,
  876. # with or without modifications, as long as this notice is preserved.
  877. # serial 2
  878. # _AM_PROG_TAR(FORMAT)
  879. # --------------------
  880. # Check how to create a tarball in format FORMAT.
  881. # FORMAT should be one of `v7', `ustar', or `pax'.
  882. #
  883. # Substitute a variable $(am__tar) that is a command
  884. # writing to stdout a FORMAT-tarball containing the directory
  885. # $tardir.
  886. # tardir=directory && $(am__tar) > result.tar
  887. #
  888. # Substitute a variable $(am__untar) that extract such
  889. # a tarball read from stdin.
  890. # $(am__untar) < result.tar
  891. AC_DEFUN([_AM_PROG_TAR],
  892. [# Always define AMTAR for backward compatibility. Yes, it's still used
  893. # in the wild :-( We should find a proper way to deprecate it ...
  894. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  895. m4_if([$1], [v7],
  896. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  897. [m4_case([$1], [ustar],, [pax],,
  898. [m4_fatal([Unknown tar format])])
  899. AC_MSG_CHECKING([how to create a $1 tar archive])
  900. # Loop over all known methods to create a tar archive until one works.
  901. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  902. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  903. # Do not fold the above two line into one, because Tru64 sh and
  904. # Solaris sh will not grok spaces in the rhs of `-'.
  905. for _am_tool in $_am_tools
  906. do
  907. case $_am_tool in
  908. gnutar)
  909. for _am_tar in tar gnutar gtar;
  910. do
  911. AM_RUN_LOG([$_am_tar --version]) && break
  912. done
  913. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  914. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  915. am__untar="$_am_tar -xf -"
  916. ;;
  917. plaintar)
  918. # Must skip GNU tar: if it does not support --format= it doesn't create
  919. # ustar tarball either.
  920. (tar --version) >/dev/null 2>&1 && continue
  921. am__tar='tar chf - "$$tardir"'
  922. am__tar_='tar chf - "$tardir"'
  923. am__untar='tar xf -'
  924. ;;
  925. pax)
  926. am__tar='pax -L -x $1 -w "$$tardir"'
  927. am__tar_='pax -L -x $1 -w "$tardir"'
  928. am__untar='pax -r'
  929. ;;
  930. cpio)
  931. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  932. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  933. am__untar='cpio -i -H $1 -d'
  934. ;;
  935. none)
  936. am__tar=false
  937. am__tar_=false
  938. am__untar=false
  939. ;;
  940. esac
  941. # If the value was cached, stop now. We just wanted to have am__tar
  942. # and am__untar set.
  943. test -n "${am_cv_prog_tar_$1}" && break
  944. # tar/untar a dummy directory, and stop if the command works
  945. rm -rf conftest.dir
  946. mkdir conftest.dir
  947. echo GrepMe > conftest.dir/file
  948. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  949. rm -rf conftest.dir
  950. if test -s conftest.tar; then
  951. AM_RUN_LOG([$am__untar <conftest.tar])
  952. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  953. fi
  954. done
  955. rm -rf conftest.dir
  956. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  957. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  958. AC_SUBST([am__tar])
  959. AC_SUBST([am__untar])
  960. ]) # _AM_PROG_TAR
  961. m4_include([m4/acx_pthread.m4])
  962. m4_include([m4/inet_ntop.m4])
  963. m4_include([m4/libtool.m4])
  964. m4_include([m4/ltoptions.m4])
  965. m4_include([m4/ltsugar.m4])
  966. m4_include([m4/ltversion.m4])
  967. m4_include([m4/lt~obsolete.m4])
  968. m4_include([m4/openssl.m4])
  969. m4_include([m4/polarssl.m4])