aclocal.m4 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
  2. # Copyright (C) 1996-2017 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. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  12. # Copyright (C) 2001-2017 Free Software Foundation, Inc.
  13. #
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  18. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  19. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  20. #
  21. # Of course, Automake must honor this variable whenever it calls a
  22. # tool from the auxiliary directory. The problem is that $srcdir (and
  23. # therefore $ac_aux_dir as well) can be either absolute or relative,
  24. # depending on how configure is run. This is pretty annoying, since
  25. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  26. # source directory, any form will work fine, but in subdirectories a
  27. # relative path needs to be adjusted first.
  28. #
  29. # $ac_aux_dir/missing
  30. # fails when called from a subdirectory if $ac_aux_dir is relative
  31. # $top_srcdir/$ac_aux_dir/missing
  32. # fails if $ac_aux_dir is absolute,
  33. # fails when called from a subdirectory in a VPATH build with
  34. # a relative $ac_aux_dir
  35. #
  36. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  37. # are both prefixed by $srcdir. In an in-source build this is usually
  38. # harmless because $srcdir is '.', but things will broke when you
  39. # start a VPATH build or use an absolute $srcdir.
  40. #
  41. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  42. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  43. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  44. # and then we would define $MISSING as
  45. # MISSING="\${SHELL} $am_aux_dir/missing"
  46. # This will work as long as MISSING is not called from configure, because
  47. # unfortunately $(top_srcdir) has no meaning in configure.
  48. # However there are other variables, like CC, which are often used in
  49. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  50. #
  51. # Another solution, used here, is to always expand $ac_aux_dir to an
  52. # absolute PATH. The drawback is that using absolute paths prevent a
  53. # configured tree to be moved without reconfiguration.
  54. AC_DEFUN([AM_AUX_DIR_EXPAND],
  55. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  56. # Expand $ac_aux_dir to an absolute path.
  57. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  58. ])
  59. # AM_CONDITIONAL -*- Autoconf -*-
  60. # Copyright (C) 1997-2017 Free Software Foundation, Inc.
  61. #
  62. # This file is free software; the Free Software Foundation
  63. # gives unlimited permission to copy and/or distribute it,
  64. # with or without modifications, as long as this notice is preserved.
  65. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  66. # -------------------------------------
  67. # Define a conditional.
  68. AC_DEFUN([AM_CONDITIONAL],
  69. [AC_PREREQ([2.52])dnl
  70. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  71. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  72. AC_SUBST([$1_TRUE])dnl
  73. AC_SUBST([$1_FALSE])dnl
  74. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  75. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  76. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  77. if $2; then
  78. $1_TRUE=
  79. $1_FALSE='#'
  80. else
  81. $1_TRUE='#'
  82. $1_FALSE=
  83. fi
  84. AC_CONFIG_COMMANDS_PRE(
  85. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  86. AC_MSG_ERROR([[conditional "$1" was never defined.
  87. Usually this means the macro was only invoked conditionally.]])
  88. fi])])
  89. # Copyright (C) 2001-2017 Free Software Foundation, Inc.
  90. #
  91. # This file is free software; the Free Software Foundation
  92. # gives unlimited permission to copy and/or distribute it,
  93. # with or without modifications, as long as this notice is preserved.
  94. # AM_PROG_INSTALL_SH
  95. # ------------------
  96. # Define $install_sh.
  97. AC_DEFUN([AM_PROG_INSTALL_SH],
  98. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  99. if test x"${install_sh+set}" != xset; then
  100. case $am_aux_dir in
  101. *\ * | *\ *)
  102. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  103. *)
  104. install_sh="\${SHELL} $am_aux_dir/install-sh"
  105. esac
  106. fi
  107. AC_SUBST([install_sh])])
  108. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  109. # From Jim Meyering
  110. # Copyright (C) 1996-2017 Free Software Foundation, Inc.
  111. #
  112. # This file is free software; the Free Software Foundation
  113. # gives unlimited permission to copy and/or distribute it,
  114. # with or without modifications, as long as this notice is preserved.
  115. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  116. # ----------------------------------
  117. # Control maintainer-specific portions of Makefiles.
  118. # Default is to disable them, unless 'enable' is passed literally.
  119. # For symmetry, 'disable' may be passed as well. Anyway, the user
  120. # can override the default with the --enable/--disable switch.
  121. AC_DEFUN([AM_MAINTAINER_MODE],
  122. [m4_case(m4_default([$1], [disable]),
  123. [enable], [m4_define([am_maintainer_other], [disable])],
  124. [disable], [m4_define([am_maintainer_other], [enable])],
  125. [m4_define([am_maintainer_other], [enable])
  126. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  127. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  128. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  129. AC_ARG_ENABLE([maintainer-mode],
  130. [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  131. am_maintainer_other[ make rules and dependencies not useful
  132. (and sometimes confusing) to the casual installer])],
  133. [USE_MAINTAINER_MODE=$enableval],
  134. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  135. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  136. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  137. MAINT=$MAINTAINER_MODE_TRUE
  138. AC_SUBST([MAINT])dnl
  139. ]
  140. )
  141. # Copyright (C) 2001-2017 Free Software Foundation, Inc.
  142. #
  143. # This file is free software; the Free Software Foundation
  144. # gives unlimited permission to copy and/or distribute it,
  145. # with or without modifications, as long as this notice is preserved.
  146. # AM_PROG_INSTALL_STRIP
  147. # ---------------------
  148. # One issue with vendor 'install' (even GNU) is that you can't
  149. # specify the program used to strip binaries. This is especially
  150. # annoying in cross-compiling environments, where the build's strip
  151. # is unlikely to handle the host's binaries.
  152. # Fortunately install-sh will honor a STRIPPROG variable, so we
  153. # always use install-sh in "make install-strip", and initialize
  154. # STRIPPROG with the value of the STRIP variable (set by the user).
  155. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  156. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  157. # Installed binaries are usually stripped using 'strip' when the user
  158. # run "make install-strip". However 'strip' might not be the right
  159. # tool to use in cross-compilation environments, therefore Automake
  160. # will honor the 'STRIP' environment variable to overrule this program.
  161. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  162. if test "$cross_compiling" != no; then
  163. AC_CHECK_TOOL([STRIP], [strip], :)
  164. fi
  165. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  166. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  167. # Copyright (C) 2006-2017 Free Software Foundation, Inc.
  168. #
  169. # This file is free software; the Free Software Foundation
  170. # gives unlimited permission to copy and/or distribute it,
  171. # with or without modifications, as long as this notice is preserved.
  172. # _AM_SUBST_NOTMAKE(VARIABLE)
  173. # ---------------------------
  174. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  175. # This macro is traced by Automake.
  176. AC_DEFUN([_AM_SUBST_NOTMAKE])
  177. # AM_SUBST_NOTMAKE(VARIABLE)
  178. # --------------------------
  179. # Public sister of _AM_SUBST_NOTMAKE.
  180. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  181. m4_include([../config/acx.m4])
  182. m4_include([../config/ax_pthread.m4])
  183. m4_include([../config/depstand.m4])
  184. m4_include([../config/gettext-sister.m4])
  185. m4_include([../config/lead-dot.m4])
  186. m4_include([../config/lib-ld.m4])
  187. m4_include([../config/lib-link.m4])
  188. m4_include([../config/lib-prefix.m4])
  189. m4_include([../config/override.m4])
  190. m4_include([acinclude.m4])