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.

1198 lines
43 KiB

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