PageRenderTime 1618ms CodeModel.GetById 37ms RepoModel.GetById 1ms app.codeStats 1ms

/release/src/router/transmission/aclocal.m4

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