aclocal.m4 40 KB

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