1
0

aclocal.m4 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438
  1. # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
  2. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically 'autoreconf'.])])
  18. dnl AM_GCONF_SOURCE_2
  19. dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
  20. dnl (i.e. pass to gconftool-2
  21. dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
  22. dnl you should install foo.schemas files
  23. dnl
  24. AC_DEFUN([AM_GCONF_SOURCE_2],
  25. [
  26. if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
  27. GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  28. else
  29. GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
  30. fi
  31. AC_ARG_WITH([gconf-source],
  32. AC_HELP_STRING([--with-gconf-source=sourceaddress],
  33. [Config database for installing schema files.]),
  34. [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
  35. AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
  36. AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
  37. if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
  38. GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
  39. fi
  40. AC_ARG_WITH([gconf-schema-file-dir],
  41. AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
  42. [Directory for installing schema files.]),
  43. [GCONF_SCHEMA_FILE_DIR="$withval"],)
  44. AC_SUBST(GCONF_SCHEMA_FILE_DIR)
  45. AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
  46. AC_ARG_ENABLE(schemas-install,
  47. AC_HELP_STRING([--disable-schemas-install],
  48. [Disable the schemas installation]),
  49. [case ${enableval} in
  50. yes|no) ;;
  51. *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
  52. esac])
  53. AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
  54. ])
  55. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  56. # serial 1 (pkg-config-0.24)
  57. #
  58. # Copyright © 2004 Scott James Remnant <[email protected]>.
  59. #
  60. # This program is free software; you can redistribute it and/or modify
  61. # it under the terms of the GNU General Public License as published by
  62. # the Free Software Foundation; either version 2 of the License, or
  63. # (at your option) any later version.
  64. #
  65. # This program is distributed in the hope that it will be useful, but
  66. # WITHOUT ANY WARRANTY; without even the implied warranty of
  67. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  68. # General Public License for more details.
  69. #
  70. # You should have received a copy of the GNU General Public License
  71. # along with this program; if not, write to the Free Software
  72. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  73. #
  74. # As a special exception to the GNU General Public License, if you
  75. # distribute this file as part of a program that contains a
  76. # configuration script generated by Autoconf, you may include it under
  77. # the same distribution terms that you use for the rest of that program.
  78. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  79. # ----------------------------------
  80. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  81. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  82. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  83. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  84. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  85. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  86. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  87. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  88. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  89. fi
  90. if test -n "$PKG_CONFIG"; then
  91. _pkg_min_version=m4_default([$1], [0.9.0])
  92. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  93. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  94. AC_MSG_RESULT([yes])
  95. else
  96. AC_MSG_RESULT([no])
  97. PKG_CONFIG=""
  98. fi
  99. fi[]dnl
  100. ])# PKG_PROG_PKG_CONFIG
  101. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  102. #
  103. # Check to see whether a particular set of modules exists. Similar
  104. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  105. #
  106. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  107. # only at the first occurence in configure.ac, so if the first place
  108. # it's called might be skipped (such as if it is within an "if", you
  109. # have to call PKG_CHECK_EXISTS manually
  110. # --------------------------------------------------------------
  111. AC_DEFUN([PKG_CHECK_EXISTS],
  112. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  113. if test -n "$PKG_CONFIG" && \
  114. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  115. m4_default([$2], [:])
  116. m4_ifvaln([$3], [else
  117. $3])dnl
  118. fi])
  119. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  120. # ---------------------------------------------
  121. m4_define([_PKG_CONFIG],
  122. [if test -n "$$1"; then
  123. pkg_cv_[]$1="$$1"
  124. elif test -n "$PKG_CONFIG"; then
  125. PKG_CHECK_EXISTS([$3],
  126. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  127. test "x$?" != "x0" && pkg_failed=yes ],
  128. [pkg_failed=yes])
  129. else
  130. pkg_failed=untried
  131. fi[]dnl
  132. ])# _PKG_CONFIG
  133. # _PKG_SHORT_ERRORS_SUPPORTED
  134. # -----------------------------
  135. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  136. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  137. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  138. _pkg_short_errors_supported=yes
  139. else
  140. _pkg_short_errors_supported=no
  141. fi[]dnl
  142. ])# _PKG_SHORT_ERRORS_SUPPORTED
  143. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  144. # [ACTION-IF-NOT-FOUND])
  145. #
  146. #
  147. # Note that if there is a possibility the first call to
  148. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  149. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  150. #
  151. #
  152. # --------------------------------------------------------------
  153. AC_DEFUN([PKG_CHECK_MODULES],
  154. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  155. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  156. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  157. pkg_failed=no
  158. AC_MSG_CHECKING([for $1])
  159. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  160. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  161. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  162. and $1[]_LIBS to avoid the need to call pkg-config.
  163. See the pkg-config man page for more details.])
  164. if test $pkg_failed = yes; then
  165. AC_MSG_RESULT([no])
  166. _PKG_SHORT_ERRORS_SUPPORTED
  167. if test $_pkg_short_errors_supported = yes; then
  168. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  169. else
  170. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  171. fi
  172. # Put the nasty error message in config.log where it belongs
  173. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  174. m4_default([$4], [AC_MSG_ERROR(
  175. [Package requirements ($2) were not met:
  176. $$1_PKG_ERRORS
  177. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  178. installed software in a non-standard prefix.
  179. _PKG_TEXT])[]dnl
  180. ])
  181. elif test $pkg_failed = untried; then
  182. AC_MSG_RESULT([no])
  183. m4_default([$4], [AC_MSG_FAILURE(
  184. [The pkg-config script could not be found or is too old. Make sure it
  185. is in your PATH or set the PKG_CONFIG environment variable to the full
  186. path to pkg-config.
  187. _PKG_TEXT
  188. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  189. ])
  190. else
  191. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  192. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  193. AC_MSG_RESULT([yes])
  194. $3
  195. fi[]dnl
  196. ])# PKG_CHECK_MODULES
  197. # PKG_INSTALLDIR(DIRECTORY)
  198. # -------------------------
  199. # Substitutes the variable pkgconfigdir as the location where a module
  200. # should install pkg-config .pc files. By default the directory is
  201. # $libdir/pkgconfig, but the default can be changed by passing
  202. # DIRECTORY. The user can override through the --with-pkgconfigdir
  203. # parameter.
  204. AC_DEFUN([PKG_INSTALLDIR],
  205. [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
  206. m4_pushdef([pkg_description],
  207. [pkg-config installation directory @<:@]pkg_default[@:>@])
  208. AC_ARG_WITH([pkgconfigdir],
  209. [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
  210. [with_pkgconfigdir=]pkg_default)
  211. AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
  212. m4_popdef([pkg_default])
  213. m4_popdef([pkg_description])
  214. ]) dnl PKG_INSTALLDIR
  215. # PKG_NOARCH_INSTALLDIR(DIRECTORY)
  216. # -------------------------
  217. # Substitutes the variable noarch_pkgconfigdir as the location where a
  218. # module should install arch-independent pkg-config .pc files. By
  219. # default the directory is $datadir/pkgconfig, but the default can be
  220. # changed by passing DIRECTORY. The user can override through the
  221. # --with-noarch-pkgconfigdir parameter.
  222. AC_DEFUN([PKG_NOARCH_INSTALLDIR],
  223. [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
  224. m4_pushdef([pkg_description],
  225. [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
  226. AC_ARG_WITH([noarch-pkgconfigdir],
  227. [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
  228. [with_noarch_pkgconfigdir=]pkg_default)
  229. AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
  230. m4_popdef([pkg_default])
  231. m4_popdef([pkg_description])
  232. ]) dnl PKG_NOARCH_INSTALLDIR
  233. # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
  234. # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  235. # -------------------------------------------
  236. # Retrieves the value of the pkg-config variable for the given module.
  237. AC_DEFUN([PKG_CHECK_VAR],
  238. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  239. AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
  240. _PKG_CONFIG([$1], [variable="][$3]["], [$2])
  241. AS_VAR_COPY([$1], [pkg_cv_][$1])
  242. AS_VAR_IF([$1], [""], [$5], [$4])dnl
  243. ])# PKG_CHECK_VAR
  244. # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  245. #
  246. # This file is free software; the Free Software Foundation
  247. # gives unlimited permission to copy and/or distribute it,
  248. # with or without modifications, as long as this notice is preserved.
  249. # AM_AUTOMAKE_VERSION(VERSION)
  250. # ----------------------------
  251. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  252. # generated from the m4 files accompanying Automake X.Y.
  253. # (This private macro should not be called outside this file.)
  254. AC_DEFUN([AM_AUTOMAKE_VERSION],
  255. [am__api_version='1.14'
  256. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  257. dnl require some minimum version. Point them to the right macro.
  258. m4_if([$1], [1.14.1], [],
  259. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  260. ])
  261. # _AM_AUTOCONF_VERSION(VERSION)
  262. # -----------------------------
  263. # aclocal traces this macro to find the Autoconf version.
  264. # This is a private macro too. Using m4_define simplifies
  265. # the logic in aclocal, which can simply ignore this definition.
  266. m4_define([_AM_AUTOCONF_VERSION], [])
  267. # AM_SET_CURRENT_AUTOMAKE_VERSION
  268. # -------------------------------
  269. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  270. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  271. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  272. [AM_AUTOMAKE_VERSION([1.14.1])dnl
  273. m4_ifndef([AC_AUTOCONF_VERSION],
  274. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  275. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  276. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  277. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  278. #
  279. # This file is free software; the Free Software Foundation
  280. # gives unlimited permission to copy and/or distribute it,
  281. # with or without modifications, as long as this notice is preserved.
  282. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  283. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  284. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  285. #
  286. # Of course, Automake must honor this variable whenever it calls a
  287. # tool from the auxiliary directory. The problem is that $srcdir (and
  288. # therefore $ac_aux_dir as well) can be either absolute or relative,
  289. # depending on how configure is run. This is pretty annoying, since
  290. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  291. # source directory, any form will work fine, but in subdirectories a
  292. # relative path needs to be adjusted first.
  293. #
  294. # $ac_aux_dir/missing
  295. # fails when called from a subdirectory if $ac_aux_dir is relative
  296. # $top_srcdir/$ac_aux_dir/missing
  297. # fails if $ac_aux_dir is absolute,
  298. # fails when called from a subdirectory in a VPATH build with
  299. # a relative $ac_aux_dir
  300. #
  301. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  302. # are both prefixed by $srcdir. In an in-source build this is usually
  303. # harmless because $srcdir is '.', but things will broke when you
  304. # start a VPATH build or use an absolute $srcdir.
  305. #
  306. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  307. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  308. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  309. # and then we would define $MISSING as
  310. # MISSING="\${SHELL} $am_aux_dir/missing"
  311. # This will work as long as MISSING is not called from configure, because
  312. # unfortunately $(top_srcdir) has no meaning in configure.
  313. # However there are other variables, like CC, which are often used in
  314. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  315. #
  316. # Another solution, used here, is to always expand $ac_aux_dir to an
  317. # absolute PATH. The drawback is that using absolute paths prevent a
  318. # configured tree to be moved without reconfiguration.
  319. AC_DEFUN([AM_AUX_DIR_EXPAND],
  320. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  321. # Expand $ac_aux_dir to an absolute path.
  322. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  323. ])
  324. # AM_CONDITIONAL -*- Autoconf -*-
  325. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  326. #
  327. # This file is free software; the Free Software Foundation
  328. # gives unlimited permission to copy and/or distribute it,
  329. # with or without modifications, as long as this notice is preserved.
  330. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  331. # -------------------------------------
  332. # Define a conditional.
  333. AC_DEFUN([AM_CONDITIONAL],
  334. [AC_PREREQ([2.52])dnl
  335. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  336. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  337. AC_SUBST([$1_TRUE])dnl
  338. AC_SUBST([$1_FALSE])dnl
  339. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  340. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  341. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  342. if $2; then
  343. $1_TRUE=
  344. $1_FALSE='#'
  345. else
  346. $1_TRUE='#'
  347. $1_FALSE=
  348. fi
  349. AC_CONFIG_COMMANDS_PRE(
  350. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  351. AC_MSG_ERROR([[conditional "$1" was never defined.
  352. Usually this means the macro was only invoked conditionally.]])
  353. fi])])
  354. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  355. #
  356. # This file is free software; the Free Software Foundation
  357. # gives unlimited permission to copy and/or distribute it,
  358. # with or without modifications, as long as this notice is preserved.
  359. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  360. # written in clear, in which case automake, when reading aclocal.m4,
  361. # will think it sees a *use*, and therefore will trigger all it's
  362. # C support machinery. Also note that it means that autoscan, seeing
  363. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  364. # _AM_DEPENDENCIES(NAME)
  365. # ----------------------
  366. # See how the compiler implements dependency checking.
  367. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  368. # We try a few techniques and use that to set a single cache variable.
  369. #
  370. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  371. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  372. # dependency, and given that the user is not expected to run this macro,
  373. # just rely on AC_PROG_CC.
  374. AC_DEFUN([_AM_DEPENDENCIES],
  375. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  376. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  377. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  378. AC_REQUIRE([AM_DEP_TRACK])dnl
  379. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  380. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  381. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  382. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  383. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  384. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  385. [depcc="$$1" am_compiler_list=])
  386. AC_CACHE_CHECK([dependency style of $depcc],
  387. [am_cv_$1_dependencies_compiler_type],
  388. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  389. # We make a subdir and do the tests there. Otherwise we can end up
  390. # making bogus files that we don't know about and never remove. For
  391. # instance it was reported that on HP-UX the gcc test will end up
  392. # making a dummy file named 'D' -- because '-MD' means "put the output
  393. # in D".
  394. rm -rf conftest.dir
  395. mkdir conftest.dir
  396. # Copy depcomp to subdir because otherwise we won't find it if we're
  397. # using a relative directory.
  398. cp "$am_depcomp" conftest.dir
  399. cd conftest.dir
  400. # We will build objects and dependencies in a subdirectory because
  401. # it helps to detect inapplicable dependency modes. For instance
  402. # both Tru64's cc and ICC support -MD to output dependencies as a
  403. # side effect of compilation, but ICC will put the dependencies in
  404. # the current directory while Tru64 will put them in the object
  405. # directory.
  406. mkdir sub
  407. am_cv_$1_dependencies_compiler_type=none
  408. if test "$am_compiler_list" = ""; then
  409. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  410. fi
  411. am__universal=false
  412. m4_case([$1], [CC],
  413. [case " $depcc " in #(
  414. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  415. esac],
  416. [CXX],
  417. [case " $depcc " in #(
  418. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  419. esac])
  420. for depmode in $am_compiler_list; do
  421. # Setup a source with many dependencies, because some compilers
  422. # like to wrap large dependency lists on column 80 (with \), and
  423. # we should not choose a depcomp mode which is confused by this.
  424. #
  425. # We need to recreate these files for each test, as the compiler may
  426. # overwrite some of them when testing with obscure command lines.
  427. # This happens at least with the AIX C compiler.
  428. : > sub/conftest.c
  429. for i in 1 2 3 4 5 6; do
  430. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  431. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  432. # Solaris 10 /bin/sh.
  433. echo '/* dummy */' > sub/conftst$i.h
  434. done
  435. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  436. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  437. # mode. It turns out that the SunPro C++ compiler does not properly
  438. # handle '-M -o', and we need to detect this. Also, some Intel
  439. # versions had trouble with output in subdirs.
  440. am__obj=sub/conftest.${OBJEXT-o}
  441. am__minus_obj="-o $am__obj"
  442. case $depmode in
  443. gcc)
  444. # This depmode causes a compiler race in universal mode.
  445. test "$am__universal" = false || continue
  446. ;;
  447. nosideeffect)
  448. # After this tag, mechanisms are not by side-effect, so they'll
  449. # only be used when explicitly requested.
  450. if test "x$enable_dependency_tracking" = xyes; then
  451. continue
  452. else
  453. break
  454. fi
  455. ;;
  456. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  457. # This compiler won't grok '-c -o', but also, the minuso test has
  458. # not run yet. These depmodes are late enough in the game, and
  459. # so weak that their functioning should not be impacted.
  460. am__obj=conftest.${OBJEXT-o}
  461. am__minus_obj=
  462. ;;
  463. none) break ;;
  464. esac
  465. if depmode=$depmode \
  466. source=sub/conftest.c object=$am__obj \
  467. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  468. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  469. >/dev/null 2>conftest.err &&
  470. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  471. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  472. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  473. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  474. # icc doesn't choke on unknown options, it will just issue warnings
  475. # or remarks (even with -Werror). So we grep stderr for any message
  476. # that says an option was ignored or not supported.
  477. # When given -MP, icc 7.0 and 7.1 complain thusly:
  478. # icc: Command line warning: ignoring option '-M'; no argument required
  479. # The diagnosis changed in icc 8.0:
  480. # icc: Command line remark: option '-MP' not supported
  481. if (grep 'ignoring option' conftest.err ||
  482. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  483. am_cv_$1_dependencies_compiler_type=$depmode
  484. break
  485. fi
  486. fi
  487. done
  488. cd ..
  489. rm -rf conftest.dir
  490. else
  491. am_cv_$1_dependencies_compiler_type=none
  492. fi
  493. ])
  494. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  495. AM_CONDITIONAL([am__fastdep$1], [
  496. test "x$enable_dependency_tracking" != xno \
  497. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  498. ])
  499. # AM_SET_DEPDIR
  500. # -------------
  501. # Choose a directory name for dependency files.
  502. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  503. AC_DEFUN([AM_SET_DEPDIR],
  504. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  505. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  506. ])
  507. # AM_DEP_TRACK
  508. # ------------
  509. AC_DEFUN([AM_DEP_TRACK],
  510. [AC_ARG_ENABLE([dependency-tracking], [dnl
  511. AS_HELP_STRING(
  512. [--enable-dependency-tracking],
  513. [do not reject slow dependency extractors])
  514. AS_HELP_STRING(
  515. [--disable-dependency-tracking],
  516. [speeds up one-time build])])
  517. if test "x$enable_dependency_tracking" != xno; then
  518. am_depcomp="$ac_aux_dir/depcomp"
  519. AMDEPBACKSLASH='\'
  520. am__nodep='_no'
  521. fi
  522. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  523. AC_SUBST([AMDEPBACKSLASH])dnl
  524. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  525. AC_SUBST([am__nodep])dnl
  526. _AM_SUBST_NOTMAKE([am__nodep])dnl
  527. ])
  528. # Generate code to set up dependency tracking. -*- Autoconf -*-
  529. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  530. #
  531. # This file is free software; the Free Software Foundation
  532. # gives unlimited permission to copy and/or distribute it,
  533. # with or without modifications, as long as this notice is preserved.
  534. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  535. # ------------------------------
  536. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  537. [{
  538. # Older Autoconf quotes --file arguments for eval, but not when files
  539. # are listed without --file. Let's play safe and only enable the eval
  540. # if we detect the quoting.
  541. case $CONFIG_FILES in
  542. *\'*) eval set x "$CONFIG_FILES" ;;
  543. *) set x $CONFIG_FILES ;;
  544. esac
  545. shift
  546. for mf
  547. do
  548. # Strip MF so we end up with the name of the file.
  549. mf=`echo "$mf" | sed -e 's/:.*$//'`
  550. # Check whether this is an Automake generated Makefile or not.
  551. # We used to match only the files named 'Makefile.in', but
  552. # some people rename them; so instead we look at the file content.
  553. # Grep'ing the first line is not enough: some people post-process
  554. # each Makefile.in and add a new line on top of each file to say so.
  555. # Grep'ing the whole file is not good either: AIX grep has a line
  556. # limit of 2048, but all sed's we know have understand at least 4000.
  557. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  558. dirpart=`AS_DIRNAME("$mf")`
  559. else
  560. continue
  561. fi
  562. # Extract the definition of DEPDIR, am__include, and am__quote
  563. # from the Makefile without running 'make'.
  564. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  565. test -z "$DEPDIR" && continue
  566. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  567. test -z "$am__include" && continue
  568. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  569. # Find all dependency output files, they are included files with
  570. # $(DEPDIR) in their names. We invoke sed twice because it is the
  571. # simplest approach to changing $(DEPDIR) to its actual value in the
  572. # expansion.
  573. for file in `sed -n "
  574. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  575. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  576. # Make sure the directory exists.
  577. test -f "$dirpart/$file" && continue
  578. fdir=`AS_DIRNAME(["$file"])`
  579. AS_MKDIR_P([$dirpart/$fdir])
  580. # echo "creating $dirpart/$file"
  581. echo '# dummy' > "$dirpart/$file"
  582. done
  583. done
  584. }
  585. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  586. # AM_OUTPUT_DEPENDENCY_COMMANDS
  587. # -----------------------------
  588. # This macro should only be invoked once -- use via AC_REQUIRE.
  589. #
  590. # This code is only required when automatic dependency tracking
  591. # is enabled. FIXME. This creates each '.P' file that we will
  592. # need in order to bootstrap the dependency handling code.
  593. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  594. [AC_CONFIG_COMMANDS([depfiles],
  595. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  596. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  597. ])
  598. # Do all the work for Automake. -*- Autoconf -*-
  599. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  600. #
  601. # This file is free software; the Free Software Foundation
  602. # gives unlimited permission to copy and/or distribute it,
  603. # with or without modifications, as long as this notice is preserved.
  604. # This macro actually does too much. Some checks are only needed if
  605. # your package does certain things. But this isn't really a big deal.
  606. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  607. m4_define([AC_PROG_CC],
  608. m4_defn([AC_PROG_CC])
  609. [_AM_PROG_CC_C_O
  610. ])
  611. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  612. # AM_INIT_AUTOMAKE([OPTIONS])
  613. # -----------------------------------------------
  614. # The call with PACKAGE and VERSION arguments is the old style
  615. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  616. # and VERSION should now be passed to AC_INIT and removed from
  617. # the call to AM_INIT_AUTOMAKE.
  618. # We support both call styles for the transition. After
  619. # the next Automake release, Autoconf can make the AC_INIT
  620. # arguments mandatory, and then we can depend on a new Autoconf
  621. # release and drop the old call support.
  622. AC_DEFUN([AM_INIT_AUTOMAKE],
  623. [AC_PREREQ([2.65])dnl
  624. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  625. dnl the ones we care about.
  626. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  627. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  628. AC_REQUIRE([AC_PROG_INSTALL])dnl
  629. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  630. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  631. # is not polluted with repeated "-I."
  632. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  633. # test to see if srcdir already configured
  634. if test -f $srcdir/config.status; then
  635. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  636. fi
  637. fi
  638. # test whether we have cygpath
  639. if test -z "$CYGPATH_W"; then
  640. if (cygpath --version) >/dev/null 2>/dev/null; then
  641. CYGPATH_W='cygpath -w'
  642. else
  643. CYGPATH_W=echo
  644. fi
  645. fi
  646. AC_SUBST([CYGPATH_W])
  647. # Define the identity of the package.
  648. dnl Distinguish between old-style and new-style calls.
  649. m4_ifval([$2],
  650. [AC_DIAGNOSE([obsolete],
  651. [$0: two- and three-arguments forms are deprecated.])
  652. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  653. AC_SUBST([PACKAGE], [$1])dnl
  654. AC_SUBST([VERSION], [$2])],
  655. [_AM_SET_OPTIONS([$1])dnl
  656. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  657. m4_if(
  658. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  659. [ok:ok],,
  660. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  661. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  662. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  663. _AM_IF_OPTION([no-define],,
  664. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  665. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  666. # Some tools Automake needs.
  667. AC_REQUIRE([AM_SANITY_CHECK])dnl
  668. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  669. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  670. AM_MISSING_PROG([AUTOCONF], [autoconf])
  671. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  672. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  673. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  674. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  675. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  676. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  677. # For better backward compatibility. To be removed once Automake 1.9.x
  678. # dies out for good. For more background, see:
  679. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  680. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  681. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  682. # We need awk for the "check" target. The system "awk" is bad on
  683. # some platforms.
  684. AC_REQUIRE([AC_PROG_AWK])dnl
  685. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  686. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  687. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  688. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  689. [_AM_PROG_TAR([v7])])])
  690. _AM_IF_OPTION([no-dependencies],,
  691. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  692. [_AM_DEPENDENCIES([CC])],
  693. [m4_define([AC_PROG_CC],
  694. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  695. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  696. [_AM_DEPENDENCIES([CXX])],
  697. [m4_define([AC_PROG_CXX],
  698. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  699. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  700. [_AM_DEPENDENCIES([OBJC])],
  701. [m4_define([AC_PROG_OBJC],
  702. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  703. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  704. [_AM_DEPENDENCIES([OBJCXX])],
  705. [m4_define([AC_PROG_OBJCXX],
  706. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  707. ])
  708. AC_REQUIRE([AM_SILENT_RULES])dnl
  709. dnl The testsuite driver may need to know about EXEEXT, so add the
  710. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  711. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  712. AC_CONFIG_COMMANDS_PRE(dnl
  713. [m4_provide_if([_AM_COMPILER_EXEEXT],
  714. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  715. # POSIX will say in a future version that running "rm -f" with no argument
  716. # is OK; and we want to be able to make that assumption in our Makefile
  717. # recipes. So use an aggressive probe to check that the usage we want is
  718. # actually supported "in the wild" to an acceptable degree.
  719. # See automake bug#10828.
  720. # To make any issue more visible, cause the running configure to be aborted
  721. # by default if the 'rm' program in use doesn't match our expectations; the
  722. # user can still override this though.
  723. if rm -f && rm -fr && rm -rf; then : OK; else
  724. cat >&2 <<'END'
  725. Oops!
  726. Your 'rm' program seems unable to run without file operands specified
  727. on the command line, even when the '-f' option is present. This is contrary
  728. to the behaviour of most rm programs out there, and not conforming with
  729. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  730. Please tell [email protected] about your system, including the value
  731. of your $PATH and any error possibly output before this message. This
  732. can help us improve future automake versions.
  733. END
  734. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  735. echo 'Configuration will proceed anyway, since you have set the' >&2
  736. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  737. echo >&2
  738. else
  739. cat >&2 <<'END'
  740. Aborting the configuration process, to ensure you take notice of the issue.
  741. You can download and install GNU coreutils to get an 'rm' implementation
  742. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  743. If you want to complete the configuration process using your problematic
  744. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  745. to "yes", and re-run configure.
  746. END
  747. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  748. fi
  749. fi
  750. ])
  751. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  752. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  753. dnl mangled by Autoconf and run in a shell conditional statement.
  754. m4_define([_AC_COMPILER_EXEEXT],
  755. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  756. # When config.status generates a header, we must update the stamp-h file.
  757. # This file resides in the same directory as the config header
  758. # that is generated. The stamp files are numbered to have different names.
  759. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  760. # loop where config.status creates the headers, so we can generate
  761. # our stamp files there.
  762. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  763. [# Compute $1's index in $config_headers.
  764. _am_arg=$1
  765. _am_stamp_count=1
  766. for _am_header in $config_headers :; do
  767. case $_am_header in
  768. $_am_arg | $_am_arg:* )
  769. break ;;
  770. * )
  771. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  772. esac
  773. done
  774. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  775. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  776. #
  777. # This file is free software; the Free Software Foundation
  778. # gives unlimited permission to copy and/or distribute it,
  779. # with or without modifications, as long as this notice is preserved.
  780. # AM_PROG_INSTALL_SH
  781. # ------------------
  782. # Define $install_sh.
  783. AC_DEFUN([AM_PROG_INSTALL_SH],
  784. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  785. if test x"${install_sh}" != xset; then
  786. case $am_aux_dir in
  787. *\ * | *\ *)
  788. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  789. *)
  790. install_sh="\${SHELL} $am_aux_dir/install-sh"
  791. esac
  792. fi
  793. AC_SUBST([install_sh])])
  794. # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  795. #
  796. # This file is free software; the Free Software Foundation
  797. # gives unlimited permission to copy and/or distribute it,
  798. # with or without modifications, as long as this notice is preserved.
  799. # Check whether the underlying file-system supports filenames
  800. # with a leading dot. For instance MS-DOS doesn't.
  801. AC_DEFUN([AM_SET_LEADING_DOT],
  802. [rm -rf .tst 2>/dev/null
  803. mkdir .tst 2>/dev/null
  804. if test -d .tst; then
  805. am__leading_dot=.
  806. else
  807. am__leading_dot=_
  808. fi
  809. rmdir .tst 2>/dev/null
  810. AC_SUBST([am__leading_dot])])
  811. # Check to see how 'make' treats includes. -*- Autoconf -*-
  812. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  813. #
  814. # This file is free software; the Free Software Foundation
  815. # gives unlimited permission to copy and/or distribute it,
  816. # with or without modifications, as long as this notice is preserved.
  817. # AM_MAKE_INCLUDE()
  818. # -----------------
  819. # Check to see how make treats includes.
  820. AC_DEFUN([AM_MAKE_INCLUDE],
  821. [am_make=${MAKE-make}
  822. cat > confinc << 'END'
  823. am__doit:
  824. @echo this is the am__doit target
  825. .PHONY: am__doit
  826. END
  827. # If we don't find an include directive, just comment out the code.
  828. AC_MSG_CHECKING([for style of include used by $am_make])
  829. am__include="#"
  830. am__quote=
  831. _am_result=none
  832. # First try GNU make style include.
  833. echo "include confinc" > confmf
  834. # Ignore all kinds of additional output from 'make'.
  835. case `$am_make -s -f confmf 2> /dev/null` in #(
  836. *the\ am__doit\ target*)
  837. am__include=include
  838. am__quote=
  839. _am_result=GNU
  840. ;;
  841. esac
  842. # Now try BSD make style include.
  843. if test "$am__include" = "#"; then
  844. echo '.include "confinc"' > confmf
  845. case `$am_make -s -f confmf 2> /dev/null` in #(
  846. *the\ am__doit\ target*)
  847. am__include=.include
  848. am__quote="\""
  849. _am_result=BSD
  850. ;;
  851. esac
  852. fi
  853. AC_SUBST([am__include])
  854. AC_SUBST([am__quote])
  855. AC_MSG_RESULT([$_am_result])
  856. rm -f confinc confmf
  857. ])
  858. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  859. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  860. #
  861. # This file is free software; the Free Software Foundation
  862. # gives unlimited permission to copy and/or distribute it,
  863. # with or without modifications, as long as this notice is preserved.
  864. # AM_MISSING_PROG(NAME, PROGRAM)
  865. # ------------------------------
  866. AC_DEFUN([AM_MISSING_PROG],
  867. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  868. $1=${$1-"${am_missing_run}$2"}
  869. AC_SUBST($1)])
  870. # AM_MISSING_HAS_RUN
  871. # ------------------
  872. # Define MISSING if not defined so far and test if it is modern enough.
  873. # If it is, set am_missing_run to use it, otherwise, to nothing.
  874. AC_DEFUN([AM_MISSING_HAS_RUN],
  875. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  876. AC_REQUIRE_AUX_FILE([missing])dnl
  877. if test x"${MISSING+set}" != xset; then
  878. case $am_aux_dir in
  879. *\ * | *\ *)
  880. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  881. *)
  882. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  883. esac
  884. fi
  885. # Use eval to expand $SHELL
  886. if eval "$MISSING --is-lightweight"; then
  887. am_missing_run="$MISSING "
  888. else
  889. am_missing_run=
  890. AC_MSG_WARN(['missing' script is too old or missing])
  891. fi
  892. ])
  893. # -*- Autoconf -*-
  894. # Obsolete and "removed" macros, that must however still report explicit
  895. # error messages when used, to smooth transition.
  896. #
  897. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  898. #
  899. # This file is free software; the Free Software Foundation
  900. # gives unlimited permission to copy and/or distribute it,
  901. # with or without modifications, as long as this notice is preserved.
  902. AC_DEFUN([AM_CONFIG_HEADER],
  903. [AC_DIAGNOSE([obsolete],
  904. ['$0': this macro is obsolete.
  905. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
  906. AC_CONFIG_HEADERS($@)])
  907. AC_DEFUN([AM_PROG_CC_STDC],
  908. [AC_PROG_CC
  909. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  910. AC_DIAGNOSE([obsolete],
  911. ['$0': this macro is obsolete.
  912. You should simply use the 'AC][_PROG_CC' macro instead.
  913. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
  914. but upon 'ac_cv_prog_cc_stdc'.])])
  915. AC_DEFUN([AM_C_PROTOTYPES],
  916. [AC_FATAL([automatic de-ANSI-fication support has been removed])])
  917. AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
  918. # Helper functions for option handling. -*- Autoconf -*-
  919. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  920. #
  921. # This file is free software; the Free Software Foundation
  922. # gives unlimited permission to copy and/or distribute it,
  923. # with or without modifications, as long as this notice is preserved.
  924. # _AM_MANGLE_OPTION(NAME)
  925. # -----------------------
  926. AC_DEFUN([_AM_MANGLE_OPTION],
  927. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  928. # _AM_SET_OPTION(NAME)
  929. # --------------------
  930. # Set option NAME. Presently that only means defining a flag for this option.
  931. AC_DEFUN([_AM_SET_OPTION],
  932. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  933. # _AM_SET_OPTIONS(OPTIONS)
  934. # ------------------------
  935. # OPTIONS is a space-separated list of Automake options.
  936. AC_DEFUN([_AM_SET_OPTIONS],
  937. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  938. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  939. # -------------------------------------------
  940. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  941. AC_DEFUN([_AM_IF_OPTION],
  942. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  943. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  944. #
  945. # This file is free software; the Free Software Foundation
  946. # gives unlimited permission to copy and/or distribute it,
  947. # with or without modifications, as long as this notice is preserved.
  948. # _AM_PROG_CC_C_O
  949. # ---------------
  950. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  951. # to automatically call this.
  952. AC_DEFUN([_AM_PROG_CC_C_O],
  953. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  954. AC_REQUIRE_AUX_FILE([compile])dnl
  955. AC_LANG_PUSH([C])dnl
  956. AC_CACHE_CHECK(
  957. [whether $CC understands -c and -o together],
  958. [am_cv_prog_cc_c_o],
  959. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  960. # Make sure it works both with $CC and with simple cc.
  961. # Following AC_PROG_CC_C_O, we do the test twice because some
  962. # compilers refuse to overwrite an existing .o file with -o,
  963. # though they will create one.
  964. am_cv_prog_cc_c_o=yes
  965. for am_i in 1 2; do
  966. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  967. && test -f conftest2.$ac_objext; then
  968. : OK
  969. else
  970. am_cv_prog_cc_c_o=no
  971. break
  972. fi
  973. done
  974. rm -f core conftest*
  975. unset am_i])
  976. if test "$am_cv_prog_cc_c_o" != yes; then
  977. # Losing compiler, so override with the script.
  978. # FIXME: It is wrong to rewrite CC.
  979. # But if we don't then we get into trouble of one sort or another.
  980. # A longer-term fix would be to have automake use am__CC in this case,
  981. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  982. CC="$am_aux_dir/compile $CC"
  983. fi
  984. AC_LANG_POP([C])])
  985. # For backward compatibility.
  986. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  987. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  988. #
  989. # This file is free software; the Free Software Foundation
  990. # gives unlimited permission to copy and/or distribute it,
  991. # with or without modifications, as long as this notice is preserved.
  992. # AM_RUN_LOG(COMMAND)
  993. # -------------------
  994. # Run COMMAND, save the exit status in ac_status, and log it.
  995. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  996. AC_DEFUN([AM_RUN_LOG],
  997. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  998. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  999. ac_status=$?
  1000. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1001. (exit $ac_status); }])
  1002. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  1003. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  1004. #
  1005. # This file is free software; the Free Software Foundation
  1006. # gives unlimited permission to copy and/or distribute it,
  1007. # with or without modifications, as long as this notice is preserved.
  1008. # AM_SANITY_CHECK
  1009. # ---------------
  1010. AC_DEFUN([AM_SANITY_CHECK],
  1011. [AC_MSG_CHECKING([whether build environment is sane])
  1012. # Reject unsafe characters in $srcdir or the absolute working directory
  1013. # name. Accept space and tab only in the latter.
  1014. am_lf='
  1015. '
  1016. case `pwd` in
  1017. *[[\\\"\#\$\&\'\`$am_lf]]*)
  1018. AC_MSG_ERROR([unsafe absolute working directory name]);;
  1019. esac
  1020. case $srcdir in
  1021. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  1022. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  1023. esac
  1024. # Do 'set' in a subshell so we don't clobber the current shell's
  1025. # arguments. Must try -L first in case configure is actually a
  1026. # symlink; some systems play weird games with the mod time of symlinks
  1027. # (eg FreeBSD returns the mod time of the symlink's containing
  1028. # directory).
  1029. if (
  1030. am_has_slept=no
  1031. for am_try in 1 2; do
  1032. echo "timestamp, slept: $am_has_slept" > conftest.file
  1033. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1034. if test "$[*]" = "X"; then
  1035. # -L didn't work.
  1036. set X `ls -t "$srcdir/configure" conftest.file`
  1037. fi
  1038. if test "$[*]" != "X $srcdir/configure conftest.file" \
  1039. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1040. # If neither matched, then we have a broken ls. This can happen
  1041. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1042. # broken ls alias from the environment. This has actually
  1043. # happened. Such a system could not be considered "sane".
  1044. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1045. alias in your environment])
  1046. fi
  1047. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  1048. break
  1049. fi
  1050. # Just in case.
  1051. sleep 1
  1052. am_has_slept=yes
  1053. done
  1054. test "$[2]" = conftest.file
  1055. )
  1056. then
  1057. # Ok.
  1058. :
  1059. else
  1060. AC_MSG_ERROR([newly created file is older than distributed files!
  1061. Check your system clock])
  1062. fi
  1063. AC_MSG_RESULT([yes])
  1064. # If we didn't sleep, we still need to ensure time stamps of config.status and
  1065. # generated files are strictly newer.
  1066. am_sleep_pid=
  1067. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  1068. ( sleep 1 ) &
  1069. am_sleep_pid=$!
  1070. fi
  1071. AC_CONFIG_COMMANDS_PRE(
  1072. [AC_MSG_CHECKING([that generated files are newer than configure])
  1073. if test -n "$am_sleep_pid"; then
  1074. # Hide warnings about reused PIDs.
  1075. wait $am_sleep_pid 2>/dev/null
  1076. fi
  1077. AC_MSG_RESULT([done])])
  1078. rm -f conftest.file
  1079. ])
  1080. # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  1081. #
  1082. # This file is free software; the Free Software Foundation
  1083. # gives unlimited permission to copy and/or distribute it,
  1084. # with or without modifications, as long as this notice is preserved.
  1085. # AM_SILENT_RULES([DEFAULT])
  1086. # --------------------------
  1087. # Enable less verbose build rules; with the default set to DEFAULT
  1088. # ("yes" being less verbose, "no" or empty being verbose).
  1089. AC_DEFUN([AM_SILENT_RULES],
  1090. [AC_ARG_ENABLE([silent-rules], [dnl
  1091. AS_HELP_STRING(
  1092. [--enable-silent-rules],
  1093. [less verbose build output (undo: "make V=1")])
  1094. AS_HELP_STRING(
  1095. [--disable-silent-rules],
  1096. [verbose build output (undo: "make V=0")])dnl
  1097. ])
  1098. case $enable_silent_rules in @%:@ (((
  1099. yes) AM_DEFAULT_VERBOSITY=0;;
  1100. no) AM_DEFAULT_VERBOSITY=1;;
  1101. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  1102. esac
  1103. dnl
  1104. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  1105. dnl do not support nested variable expansions.
  1106. dnl See automake bug#9928 and bug#10237.
  1107. am_make=${MAKE-make}
  1108. AC_CACHE_CHECK([whether $am_make supports nested variables],
  1109. [am_cv_make_support_nested_variables],
  1110. [if AS_ECHO([['TRUE=$(BAR$(V))
  1111. BAR0=false
  1112. BAR1=true
  1113. V=1
  1114. am__doit:
  1115. @$(TRUE)
  1116. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  1117. am_cv_make_support_nested_variables=yes
  1118. else
  1119. am_cv_make_support_nested_variables=no
  1120. fi])
  1121. if test $am_cv_make_support_nested_variables = yes; then
  1122. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  1123. AM_V='$(V)'
  1124. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  1125. else
  1126. AM_V=$AM_DEFAULT_VERBOSITY
  1127. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  1128. fi
  1129. AC_SUBST([AM_V])dnl
  1130. AM_SUBST_NOTMAKE([AM_V])dnl
  1131. AC_SUBST([AM_DEFAULT_V])dnl
  1132. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  1133. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  1134. AM_BACKSLASH='\'
  1135. AC_SUBST([AM_BACKSLASH])dnl
  1136. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  1137. ])
  1138. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  1139. #
  1140. # This file is free software; the Free Software Foundation
  1141. # gives unlimited permission to copy and/or distribute it,
  1142. # with or without modifications, as long as this notice is preserved.
  1143. # AM_PROG_INSTALL_STRIP
  1144. # ---------------------
  1145. # One issue with vendor 'install' (even GNU) is that you can't
  1146. # specify the program used to strip binaries. This is especially
  1147. # annoying in cross-compiling environments, where the build's strip
  1148. # is unlikely to handle the host's binaries.
  1149. # Fortunately install-sh will honor a STRIPPROG variable, so we
  1150. # always use install-sh in "make install-strip", and initialize
  1151. # STRIPPROG with the value of the STRIP variable (set by the user).
  1152. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1153. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1154. # Installed binaries are usually stripped using 'strip' when the user
  1155. # run "make install-strip". However 'strip' might not be the right
  1156. # tool to use in cross-compilation environments, therefore Automake
  1157. # will honor the 'STRIP' environment variable to overrule this program.
  1158. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  1159. if test "$cross_compiling" != no; then
  1160. AC_CHECK_TOOL([STRIP], [strip], :)
  1161. fi
  1162. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1163. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1164. # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  1165. #
  1166. # This file is free software; the Free Software Foundation
  1167. # gives unlimited permission to copy and/or distribute it,
  1168. # with or without modifications, as long as this notice is preserved.
  1169. # _AM_SUBST_NOTMAKE(VARIABLE)
  1170. # ---------------------------
  1171. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1172. # This macro is traced by Automake.
  1173. AC_DEFUN([_AM_SUBST_NOTMAKE])
  1174. # AM_SUBST_NOTMAKE(VARIABLE)
  1175. # --------------------------
  1176. # Public sister of _AM_SUBST_NOTMAKE.
  1177. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1178. # Check how to create a tarball. -*- Autoconf -*-
  1179. # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  1180. #
  1181. # This file is free software; the Free Software Foundation
  1182. # gives unlimited permission to copy and/or distribute it,
  1183. # with or without modifications, as long as this notice is preserved.
  1184. # _AM_PROG_TAR(FORMAT)
  1185. # --------------------
  1186. # Check how to create a tarball in format FORMAT.
  1187. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  1188. #
  1189. # Substitute a variable $(am__tar) that is a command
  1190. # writing to stdout a FORMAT-tarball containing the directory
  1191. # $tardir.
  1192. # tardir=directory && $(am__tar) > result.tar
  1193. #
  1194. # Substitute a variable $(am__untar) that extract such
  1195. # a tarball read from stdin.
  1196. # $(am__untar) < result.tar
  1197. #
  1198. AC_DEFUN([_AM_PROG_TAR],
  1199. [# Always define AMTAR for backward compatibility. Yes, it's still used
  1200. # in the wild :-( We should find a proper way to deprecate it ...
  1201. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  1202. # We'll loop over all known methods to create a tar archive until one works.
  1203. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1204. m4_if([$1], [v7],
  1205. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  1206. [m4_case([$1],
  1207. [ustar],
  1208. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  1209. # There is notably a 21 bits limit for the UID and the GID. In fact,
  1210. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  1211. # and bug#13588).
  1212. am_max_uid=2097151 # 2^21 - 1
  1213. am_max_gid=$am_max_uid
  1214. # The $UID and $GID variables are not portable, so we need to resort
  1215. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  1216. # below are definitely unexpected, so allow the users to see them
  1217. # (that is, avoid stderr redirection).
  1218. am_uid=`id -u || echo unknown`
  1219. am_gid=`id -g || echo unknown`
  1220. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  1221. if test $am_uid -le $am_max_uid; then
  1222. AC_MSG_RESULT([yes])
  1223. else
  1224. AC_MSG_RESULT([no])
  1225. _am_tools=none
  1226. fi
  1227. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  1228. if test $am_gid -le $am_max_gid; then
  1229. AC_MSG_RESULT([yes])
  1230. else
  1231. AC_MSG_RESULT([no])
  1232. _am_tools=none
  1233. fi],
  1234. [pax],
  1235. [],
  1236. [m4_fatal([Unknown tar format])])
  1237. AC_MSG_CHECKING([how to create a $1 tar archive])
  1238. # Go ahead even if we have the value already cached. We do so because we
  1239. # need to set the values for the 'am__tar' and 'am__untar' variables.
  1240. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1241. for _am_tool in $_am_tools; do
  1242. case $_am_tool in
  1243. gnutar)
  1244. for _am_tar in tar gnutar gtar; do
  1245. AM_RUN_LOG([$_am_tar --version]) && break
  1246. done
  1247. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1248. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1249. am__untar="$_am_tar -xf -"
  1250. ;;
  1251. plaintar)
  1252. # Must skip GNU tar: if it does not support --format= it doesn't create
  1253. # ustar tarball either.
  1254. (tar --version) >/dev/null 2>&1 && continue
  1255. am__tar='tar chf - "$$tardir"'
  1256. am__tar_='tar chf - "$tardir"'
  1257. am__untar='tar xf -'
  1258. ;;
  1259. pax)
  1260. am__tar='pax -L -x $1 -w "$$tardir"'
  1261. am__tar_='pax -L -x $1 -w "$tardir"'
  1262. am__untar='pax -r'
  1263. ;;
  1264. cpio)
  1265. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1266. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1267. am__untar='cpio -i -H $1 -d'
  1268. ;;
  1269. none)
  1270. am__tar=false
  1271. am__tar_=false
  1272. am__untar=false
  1273. ;;
  1274. esac
  1275. # If the value was cached, stop now. We just wanted to have am__tar
  1276. # and am__untar set.
  1277. test -n "${am_cv_prog_tar_$1}" && break
  1278. # tar/untar a dummy directory, and stop if the command works.
  1279. rm -rf conftest.dir
  1280. mkdir conftest.dir
  1281. echo GrepMe > conftest.dir/file
  1282. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1283. rm -rf conftest.dir
  1284. if test -s conftest.tar; then
  1285. AM_RUN_LOG([$am__untar <conftest.tar])
  1286. AM_RUN_LOG([cat conftest.dir/file])
  1287. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1288. fi
  1289. done
  1290. rm -rf conftest.dir
  1291. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1292. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1293. AC_SUBST([am__tar])
  1294. AC_SUBST([am__untar])
  1295. ]) # _AM_PROG_TAR