aclocal.m4 44 KB

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