You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

949 lines
34 KiB

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