aclocal.m4 47 KB

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