aclocal.m4 36 KB

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