PageRenderTime 63ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 1ms

/aclocal.m4

https://bitbucket.org/mike_php_net/libmysqludf
m4 | 9557 lines | 6697 code | 959 blank | 1901 comment | 0 complexity | c3a04dbb2215820c0b858232a286c3ca MD5 | raw file
Possible License(s): BSD-2-Clause

Large files files are truncated, but you can click here to view the full file

  1. # generated automatically by aclocal 1.11.2 -*- 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. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  20. #
  21. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23. # Foundation, Inc.
  24. # Written by Gordon Matzigkeit, 1996
  25. #
  26. # This file is free software; the Free Software Foundation gives
  27. # unlimited permission to copy and/or distribute it, with or without
  28. # modifications, as long as this notice is preserved.
  29. m4_define([_LT_COPYING], [dnl
  30. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  32. # Foundation, Inc.
  33. # Written by Gordon Matzigkeit, 1996
  34. #
  35. # This file is part of GNU Libtool.
  36. #
  37. # GNU Libtool is free software; you can redistribute it and/or
  38. # modify it under the terms of the GNU General Public License as
  39. # published by the Free Software Foundation; either version 2 of
  40. # the License, or (at your option) any later version.
  41. #
  42. # As a special exception to the GNU General Public License,
  43. # if you distribute this file as part of a program or library that
  44. # is built using GNU Libtool, you may include this file under the
  45. # same distribution terms that you use for the rest of that program.
  46. #
  47. # GNU Libtool is distributed in the hope that it will be useful,
  48. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  49. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  50. # GNU General Public License for more details.
  51. #
  52. # You should have received a copy of the GNU General Public License
  53. # along with GNU Libtool; see the file COPYING. If not, a copy
  54. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  55. # obtained by writing to the Free Software Foundation, Inc.,
  56. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  57. ])
  58. # serial 57 LT_INIT
  59. # LT_PREREQ(VERSION)
  60. # ------------------
  61. # Complain and exit if this libtool version is less that VERSION.
  62. m4_defun([LT_PREREQ],
  63. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  64. [m4_default([$3],
  65. [m4_fatal([Libtool version $1 or higher is required],
  66. 63)])],
  67. [$2])])
  68. # _LT_CHECK_BUILDDIR
  69. # ------------------
  70. # Complain if the absolute build directory name contains unusual characters
  71. m4_defun([_LT_CHECK_BUILDDIR],
  72. [case `pwd` in
  73. *\ * | *\ *)
  74. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  75. esac
  76. ])
  77. # LT_INIT([OPTIONS])
  78. # ------------------
  79. AC_DEFUN([LT_INIT],
  80. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  81. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  82. AC_BEFORE([$0], [LT_LANG])dnl
  83. AC_BEFORE([$0], [LT_OUTPUT])dnl
  84. AC_BEFORE([$0], [LTDL_INIT])dnl
  85. m4_require([_LT_CHECK_BUILDDIR])dnl
  86. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  87. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  88. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  89. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  90. dnl unless we require an AC_DEFUNed macro:
  91. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  92. AC_REQUIRE([LTSUGAR_VERSION])dnl
  93. AC_REQUIRE([LTVERSION_VERSION])dnl
  94. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  95. m4_require([_LT_PROG_LTMAIN])dnl
  96. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  97. dnl Parse OPTIONS
  98. _LT_SET_OPTIONS([$0], [$1])
  99. # This can be used to rebuild libtool when needed
  100. LIBTOOL_DEPS="$ltmain"
  101. # Always use our own libtool.
  102. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  103. AC_SUBST(LIBTOOL)dnl
  104. _LT_SETUP
  105. # Only expand once:
  106. m4_define([LT_INIT])
  107. ])# LT_INIT
  108. # Old names:
  109. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  110. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  111. dnl aclocal-1.4 backwards compatibility:
  112. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  113. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  114. # _LT_CC_BASENAME(CC)
  115. # -------------------
  116. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  117. m4_defun([_LT_CC_BASENAME],
  118. [for cc_temp in $1""; do
  119. case $cc_temp in
  120. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  121. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  122. \-*) ;;
  123. *) break;;
  124. esac
  125. done
  126. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  127. ])
  128. # _LT_FILEUTILS_DEFAULTS
  129. # ----------------------
  130. # It is okay to use these file commands and assume they have been set
  131. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  132. m4_defun([_LT_FILEUTILS_DEFAULTS],
  133. [: ${CP="cp -f"}
  134. : ${MV="mv -f"}
  135. : ${RM="rm -f"}
  136. ])# _LT_FILEUTILS_DEFAULTS
  137. # _LT_SETUP
  138. # ---------
  139. m4_defun([_LT_SETUP],
  140. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  141. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  142. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  143. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  144. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  145. dnl
  146. _LT_DECL([], [host_alias], [0], [The host system])dnl
  147. _LT_DECL([], [host], [0])dnl
  148. _LT_DECL([], [host_os], [0])dnl
  149. dnl
  150. _LT_DECL([], [build_alias], [0], [The build system])dnl
  151. _LT_DECL([], [build], [0])dnl
  152. _LT_DECL([], [build_os], [0])dnl
  153. dnl
  154. AC_REQUIRE([AC_PROG_CC])dnl
  155. AC_REQUIRE([LT_PATH_LD])dnl
  156. AC_REQUIRE([LT_PATH_NM])dnl
  157. dnl
  158. AC_REQUIRE([AC_PROG_LN_S])dnl
  159. test -z "$LN_S" && LN_S="ln -s"
  160. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  161. dnl
  162. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  163. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  164. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  165. dnl
  166. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  167. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  168. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  169. m4_require([_LT_CMD_RELOAD])dnl
  170. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  171. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  172. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  173. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  174. m4_require([_LT_WITH_SYSROOT])dnl
  175. _LT_CONFIG_LIBTOOL_INIT([
  176. # See if we are running on zsh, and set the options which allow our
  177. # commands through without removal of \ escapes INIT.
  178. if test -n "\${ZSH_VERSION+set}" ; then
  179. setopt NO_GLOB_SUBST
  180. fi
  181. ])
  182. if test -n "${ZSH_VERSION+set}" ; then
  183. setopt NO_GLOB_SUBST
  184. fi
  185. _LT_CHECK_OBJDIR
  186. m4_require([_LT_TAG_COMPILER])dnl
  187. case $host_os in
  188. aix3*)
  189. # AIX sometimes has problems with the GCC collect2 program. For some
  190. # reason, if we set the COLLECT_NAMES environment variable, the problems
  191. # vanish in a puff of smoke.
  192. if test "X${COLLECT_NAMES+set}" != Xset; then
  193. COLLECT_NAMES=
  194. export COLLECT_NAMES
  195. fi
  196. ;;
  197. esac
  198. # Global variables:
  199. ofile=libtool
  200. can_build_shared=yes
  201. # All known linkers require a `.a' archive for static linking (except MSVC,
  202. # which needs '.lib').
  203. libext=a
  204. with_gnu_ld="$lt_cv_prog_gnu_ld"
  205. old_CC="$CC"
  206. old_CFLAGS="$CFLAGS"
  207. # Set sane defaults for various variables
  208. test -z "$CC" && CC=cc
  209. test -z "$LTCC" && LTCC=$CC
  210. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  211. test -z "$LD" && LD=ld
  212. test -z "$ac_objext" && ac_objext=o
  213. _LT_CC_BASENAME([$compiler])
  214. # Only perform the check for file, if the check method requires it
  215. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  216. case $deplibs_check_method in
  217. file_magic*)
  218. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  219. _LT_PATH_MAGIC
  220. fi
  221. ;;
  222. esac
  223. # Use C for the default configuration in the libtool script
  224. LT_SUPPORTED_TAG([CC])
  225. _LT_LANG_C_CONFIG
  226. _LT_LANG_DEFAULT_CONFIG
  227. _LT_CONFIG_COMMANDS
  228. ])# _LT_SETUP
  229. # _LT_PREPARE_SED_QUOTE_VARS
  230. # --------------------------
  231. # Define a few sed substitution that help us do robust quoting.
  232. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  233. [# Backslashify metacharacters that are still active within
  234. # double-quoted strings.
  235. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  236. # Same as above, but do not quote variable references.
  237. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  238. # Sed substitution to delay expansion of an escaped shell variable in a
  239. # double_quote_subst'ed string.
  240. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  241. # Sed substitution to delay expansion of an escaped single quote.
  242. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  243. # Sed substitution to avoid accidental globbing in evaled expressions
  244. no_glob_subst='s/\*/\\\*/g'
  245. ])
  246. # _LT_PROG_LTMAIN
  247. # ---------------
  248. # Note that this code is called both from `configure', and `config.status'
  249. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  250. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  251. # so we pass a copy along to make sure it has a sensible value anyway.
  252. m4_defun([_LT_PROG_LTMAIN],
  253. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  254. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  255. ltmain="$ac_aux_dir/ltmain.sh"
  256. ])# _LT_PROG_LTMAIN
  257. # So that we can recreate a full libtool script including additional
  258. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  259. # in macros and then make a single call at the end using the `libtool'
  260. # label.
  261. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  262. # ----------------------------------------
  263. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  264. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  265. [m4_ifval([$1],
  266. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  267. [$1
  268. ])])])
  269. # Initialize.
  270. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  271. # _LT_CONFIG_LIBTOOL([COMMANDS])
  272. # ------------------------------
  273. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  274. m4_define([_LT_CONFIG_LIBTOOL],
  275. [m4_ifval([$1],
  276. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  277. [$1
  278. ])])])
  279. # Initialize.
  280. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  281. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  282. # -----------------------------------------------------
  283. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  284. [_LT_CONFIG_LIBTOOL([$1])
  285. _LT_CONFIG_LIBTOOL_INIT([$2])
  286. ])
  287. # _LT_FORMAT_COMMENT([COMMENT])
  288. # -----------------------------
  289. # Add leading comment marks to the start of each line, and a trailing
  290. # full-stop to the whole comment if one is not present already.
  291. m4_define([_LT_FORMAT_COMMENT],
  292. [m4_ifval([$1], [
  293. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  294. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  295. )])
  296. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  297. # -------------------------------------------------------------------
  298. # CONFIGNAME is the name given to the value in the libtool script.
  299. # VARNAME is the (base) name used in the configure script.
  300. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  301. # VARNAME. Any other value will be used directly.
  302. m4_define([_LT_DECL],
  303. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  304. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  305. [m4_ifval([$1], [$1], [$2])])
  306. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  307. m4_ifval([$4],
  308. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  309. lt_dict_add_subkey([lt_decl_dict], [$2],
  310. [tagged?], [m4_ifval([$5], [yes], [no])])])
  311. ])
  312. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  313. # --------------------------------------------------------
  314. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  315. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  316. # ------------------------------------------------
  317. m4_define([lt_decl_tag_varnames],
  318. [_lt_decl_filter([tagged?], [yes], $@)])
  319. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  320. # ---------------------------------------------------------
  321. m4_define([_lt_decl_filter],
  322. [m4_case([$#],
  323. [0], [m4_fatal([$0: too few arguments: $#])],
  324. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  325. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  326. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  327. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  328. ])
  329. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  330. # --------------------------------------------------
  331. m4_define([lt_decl_quote_varnames],
  332. [_lt_decl_filter([value], [1], $@)])
  333. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  334. # ---------------------------------------------------
  335. m4_define([lt_decl_dquote_varnames],
  336. [_lt_decl_filter([value], [2], $@)])
  337. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  338. # ---------------------------------------------------
  339. m4_define([lt_decl_varnames_tagged],
  340. [m4_assert([$# <= 2])dnl
  341. _$0(m4_quote(m4_default([$1], [[, ]])),
  342. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  343. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  344. m4_define([_lt_decl_varnames_tagged],
  345. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  346. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  347. # ------------------------------------------------
  348. m4_define([lt_decl_all_varnames],
  349. [_$0(m4_quote(m4_default([$1], [[, ]])),
  350. m4_if([$2], [],
  351. m4_quote(lt_decl_varnames),
  352. m4_quote(m4_shift($@))))[]dnl
  353. ])
  354. m4_define([_lt_decl_all_varnames],
  355. [lt_join($@, lt_decl_varnames_tagged([$1],
  356. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  357. ])
  358. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  359. # ------------------------------------
  360. # Quote a variable value, and forward it to `config.status' so that its
  361. # declaration there will have the same value as in `configure'. VARNAME
  362. # must have a single quote delimited value for this to work.
  363. m4_define([_LT_CONFIG_STATUS_DECLARE],
  364. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  365. # _LT_CONFIG_STATUS_DECLARATIONS
  366. # ------------------------------
  367. # We delimit libtool config variables with single quotes, so when
  368. # we write them to config.status, we have to be sure to quote all
  369. # embedded single quotes properly. In configure, this macro expands
  370. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  371. #
  372. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  373. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  374. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  375. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  376. # _LT_LIBTOOL_TAGS
  377. # ----------------
  378. # Output comment and list of tags supported by the script
  379. m4_defun([_LT_LIBTOOL_TAGS],
  380. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  381. available_tags="_LT_TAGS"dnl
  382. ])
  383. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  384. # -----------------------------------
  385. # Extract the dictionary values for VARNAME (optionally with TAG) and
  386. # expand to a commented shell variable setting:
  387. #
  388. # # Some comment about what VAR is for.
  389. # visible_name=$lt_internal_name
  390. m4_define([_LT_LIBTOOL_DECLARE],
  391. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  392. [description])))[]dnl
  393. m4_pushdef([_libtool_name],
  394. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  395. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  396. [0], [_libtool_name=[$]$1],
  397. [1], [_libtool_name=$lt_[]$1],
  398. [2], [_libtool_name=$lt_[]$1],
  399. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  400. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  401. ])
  402. # _LT_LIBTOOL_CONFIG_VARS
  403. # -----------------------
  404. # Produce commented declarations of non-tagged libtool config variables
  405. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  406. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  407. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  408. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  409. [m4_foreach([_lt_var],
  410. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  411. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  412. # _LT_LIBTOOL_TAG_VARS(TAG)
  413. # -------------------------
  414. m4_define([_LT_LIBTOOL_TAG_VARS],
  415. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  416. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  417. # _LT_TAGVAR(VARNAME, [TAGNAME])
  418. # ------------------------------
  419. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  420. # _LT_CONFIG_COMMANDS
  421. # -------------------
  422. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  423. # variables for single and double quote escaping we saved from calls
  424. # to _LT_DECL, we can put quote escaped variables declarations
  425. # into `config.status', and then the shell code to quote escape them in
  426. # for loops in `config.status'. Finally, any additional code accumulated
  427. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  428. m4_defun([_LT_CONFIG_COMMANDS],
  429. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  430. dnl If the libtool generation code has been placed in $CONFIG_LT,
  431. dnl instead of duplicating it all over again into config.status,
  432. dnl then we will have config.status run $CONFIG_LT later, so it
  433. dnl needs to know what name is stored there:
  434. [AC_CONFIG_COMMANDS([libtool],
  435. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  436. dnl If the libtool generation code is destined for config.status,
  437. dnl expand the accumulated commands and init code now:
  438. [AC_CONFIG_COMMANDS([libtool],
  439. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  440. ])#_LT_CONFIG_COMMANDS
  441. # Initialize.
  442. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  443. [
  444. # The HP-UX ksh and POSIX shell print the target directory to stdout
  445. # if CDPATH is set.
  446. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  447. sed_quote_subst='$sed_quote_subst'
  448. double_quote_subst='$double_quote_subst'
  449. delay_variable_subst='$delay_variable_subst'
  450. _LT_CONFIG_STATUS_DECLARATIONS
  451. LTCC='$LTCC'
  452. LTCFLAGS='$LTCFLAGS'
  453. compiler='$compiler_DEFAULT'
  454. # A function that is used when there is no print builtin or printf.
  455. func_fallback_echo ()
  456. {
  457. eval 'cat <<_LTECHO_EOF
  458. \$[]1
  459. _LTECHO_EOF'
  460. }
  461. # Quote evaled strings.
  462. for var in lt_decl_all_varnames([[ \
  463. ]], lt_decl_quote_varnames); do
  464. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  465. *[[\\\\\\\`\\"\\\$]]*)
  466. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  467. ;;
  468. *)
  469. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  470. ;;
  471. esac
  472. done
  473. # Double-quote double-evaled strings.
  474. for var in lt_decl_all_varnames([[ \
  475. ]], lt_decl_dquote_varnames); do
  476. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  477. *[[\\\\\\\`\\"\\\$]]*)
  478. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  479. ;;
  480. *)
  481. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  482. ;;
  483. esac
  484. done
  485. _LT_OUTPUT_LIBTOOL_INIT
  486. ])
  487. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  488. # ------------------------------------
  489. # Generate a child script FILE with all initialization necessary to
  490. # reuse the environment learned by the parent script, and make the
  491. # file executable. If COMMENT is supplied, it is inserted after the
  492. # `#!' sequence but before initialization text begins. After this
  493. # macro, additional text can be appended to FILE to form the body of
  494. # the child script. The macro ends with non-zero status if the
  495. # file could not be fully written (such as if the disk is full).
  496. m4_ifdef([AS_INIT_GENERATED],
  497. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  498. [m4_defun([_LT_GENERATED_FILE_INIT],
  499. [m4_require([AS_PREPARE])]dnl
  500. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  501. [lt_write_fail=0
  502. cat >$1 <<_ASEOF || lt_write_fail=1
  503. #! $SHELL
  504. # Generated by $as_me.
  505. $2
  506. SHELL=\${CONFIG_SHELL-$SHELL}
  507. export SHELL
  508. _ASEOF
  509. cat >>$1 <<\_ASEOF || lt_write_fail=1
  510. AS_SHELL_SANITIZE
  511. _AS_PREPARE
  512. exec AS_MESSAGE_FD>&1
  513. _ASEOF
  514. test $lt_write_fail = 0 && chmod +x $1[]dnl
  515. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  516. # LT_OUTPUT
  517. # ---------
  518. # This macro allows early generation of the libtool script (before
  519. # AC_OUTPUT is called), incase it is used in configure for compilation
  520. # tests.
  521. AC_DEFUN([LT_OUTPUT],
  522. [: ${CONFIG_LT=./config.lt}
  523. AC_MSG_NOTICE([creating $CONFIG_LT])
  524. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  525. [# Run this file to recreate a libtool stub with the current configuration.])
  526. cat >>"$CONFIG_LT" <<\_LTEOF
  527. lt_cl_silent=false
  528. exec AS_MESSAGE_LOG_FD>>config.log
  529. {
  530. echo
  531. AS_BOX([Running $as_me.])
  532. } >&AS_MESSAGE_LOG_FD
  533. lt_cl_help="\
  534. \`$as_me' creates a local libtool stub from the current configuration,
  535. for use in further configure time tests before the real libtool is
  536. generated.
  537. Usage: $[0] [[OPTIONS]]
  538. -h, --help print this help, then exit
  539. -V, --version print version number, then exit
  540. -q, --quiet do not print progress messages
  541. -d, --debug don't remove temporary files
  542. Report bugs to <bug-libtool@gnu.org>."
  543. lt_cl_version="\
  544. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  545. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  546. configured by $[0], generated by m4_PACKAGE_STRING.
  547. Copyright (C) 2011 Free Software Foundation, Inc.
  548. This config.lt script is free software; the Free Software Foundation
  549. gives unlimited permision to copy, distribute and modify it."
  550. while test $[#] != 0
  551. do
  552. case $[1] in
  553. --version | --v* | -V )
  554. echo "$lt_cl_version"; exit 0 ;;
  555. --help | --h* | -h )
  556. echo "$lt_cl_help"; exit 0 ;;
  557. --debug | --d* | -d )
  558. debug=: ;;
  559. --quiet | --q* | --silent | --s* | -q )
  560. lt_cl_silent=: ;;
  561. -*) AC_MSG_ERROR([unrecognized option: $[1]
  562. Try \`$[0] --help' for more information.]) ;;
  563. *) AC_MSG_ERROR([unrecognized argument: $[1]
  564. Try \`$[0] --help' for more information.]) ;;
  565. esac
  566. shift
  567. done
  568. if $lt_cl_silent; then
  569. exec AS_MESSAGE_FD>/dev/null
  570. fi
  571. _LTEOF
  572. cat >>"$CONFIG_LT" <<_LTEOF
  573. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  574. _LTEOF
  575. cat >>"$CONFIG_LT" <<\_LTEOF
  576. AC_MSG_NOTICE([creating $ofile])
  577. _LT_OUTPUT_LIBTOOL_COMMANDS
  578. AS_EXIT(0)
  579. _LTEOF
  580. chmod +x "$CONFIG_LT"
  581. # configure is writing to config.log, but config.lt does its own redirection,
  582. # appending to config.log, which fails on DOS, as config.log is still kept
  583. # open by configure. Here we exec the FD to /dev/null, effectively closing
  584. # config.log, so it can be properly (re)opened and appended to by config.lt.
  585. lt_cl_success=:
  586. test "$silent" = yes &&
  587. lt_config_lt_args="$lt_config_lt_args --quiet"
  588. exec AS_MESSAGE_LOG_FD>/dev/null
  589. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  590. exec AS_MESSAGE_LOG_FD>>config.log
  591. $lt_cl_success || AS_EXIT(1)
  592. ])# LT_OUTPUT
  593. # _LT_CONFIG(TAG)
  594. # ---------------
  595. # If TAG is the built-in tag, create an initial libtool script with a
  596. # default configuration from the untagged config vars. Otherwise add code
  597. # to config.status for appending the configuration named by TAG from the
  598. # matching tagged config vars.
  599. m4_defun([_LT_CONFIG],
  600. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  601. _LT_CONFIG_SAVE_COMMANDS([
  602. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  603. m4_if(_LT_TAG, [C], [
  604. # See if we are running on zsh, and set the options which allow our
  605. # commands through without removal of \ escapes.
  606. if test -n "${ZSH_VERSION+set}" ; then
  607. setopt NO_GLOB_SUBST
  608. fi
  609. cfgfile="${ofile}T"
  610. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  611. $RM "$cfgfile"
  612. cat <<_LT_EOF >> "$cfgfile"
  613. #! $SHELL
  614. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  615. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  616. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  617. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  618. #
  619. _LT_COPYING
  620. _LT_LIBTOOL_TAGS
  621. # ### BEGIN LIBTOOL CONFIG
  622. _LT_LIBTOOL_CONFIG_VARS
  623. _LT_LIBTOOL_TAG_VARS
  624. # ### END LIBTOOL CONFIG
  625. _LT_EOF
  626. case $host_os in
  627. aix3*)
  628. cat <<\_LT_EOF >> "$cfgfile"
  629. # AIX sometimes has problems with the GCC collect2 program. For some
  630. # reason, if we set the COLLECT_NAMES environment variable, the problems
  631. # vanish in a puff of smoke.
  632. if test "X${COLLECT_NAMES+set}" != Xset; then
  633. COLLECT_NAMES=
  634. export COLLECT_NAMES
  635. fi
  636. _LT_EOF
  637. ;;
  638. esac
  639. _LT_PROG_LTMAIN
  640. # We use sed instead of cat because bash on DJGPP gets confused if
  641. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  642. # text mode, it properly converts lines to CR/LF. This bash problem
  643. # is reportedly fixed, but why not run on old versions too?
  644. sed '$q' "$ltmain" >> "$cfgfile" \
  645. || (rm -f "$cfgfile"; exit 1)
  646. _LT_PROG_REPLACE_SHELLFNS
  647. mv -f "$cfgfile" "$ofile" ||
  648. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  649. chmod +x "$ofile"
  650. ],
  651. [cat <<_LT_EOF >> "$ofile"
  652. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  653. dnl in a comment (ie after a #).
  654. # ### BEGIN LIBTOOL TAG CONFIG: $1
  655. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  656. # ### END LIBTOOL TAG CONFIG: $1
  657. _LT_EOF
  658. ])dnl /m4_if
  659. ],
  660. [m4_if([$1], [], [
  661. PACKAGE='$PACKAGE'
  662. VERSION='$VERSION'
  663. TIMESTAMP='$TIMESTAMP'
  664. RM='$RM'
  665. ofile='$ofile'], [])
  666. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  667. ])# _LT_CONFIG
  668. # LT_SUPPORTED_TAG(TAG)
  669. # ---------------------
  670. # Trace this macro to discover what tags are supported by the libtool
  671. # --tag option, using:
  672. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  673. AC_DEFUN([LT_SUPPORTED_TAG], [])
  674. # C support is built-in for now
  675. m4_define([_LT_LANG_C_enabled], [])
  676. m4_define([_LT_TAGS], [])
  677. # LT_LANG(LANG)
  678. # -------------
  679. # Enable libtool support for the given language if not already enabled.
  680. AC_DEFUN([LT_LANG],
  681. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  682. m4_case([$1],
  683. [C], [_LT_LANG(C)],
  684. [C++], [_LT_LANG(CXX)],
  685. [Go], [_LT_LANG(GO)],
  686. [Java], [_LT_LANG(GCJ)],
  687. [Fortran 77], [_LT_LANG(F77)],
  688. [Fortran], [_LT_LANG(FC)],
  689. [Windows Resource], [_LT_LANG(RC)],
  690. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  691. [_LT_LANG($1)],
  692. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  693. ])# LT_LANG
  694. # _LT_LANG(LANGNAME)
  695. # ------------------
  696. m4_defun([_LT_LANG],
  697. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  698. [LT_SUPPORTED_TAG([$1])dnl
  699. m4_append([_LT_TAGS], [$1 ])dnl
  700. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  701. _LT_LANG_$1_CONFIG($1)])dnl
  702. ])# _LT_LANG
  703. m4_ifndef([AC_PROG_GO], [
  704. # NOTE: This macro has been submitted for inclusion into #
  705. # GNU Autoconf as AC_PROG_GO. When it is available in #
  706. # a released version of Autoconf we should remove this #
  707. # macro and use it instead. #
  708. m4_defun([AC_PROG_GO],
  709. [AC_LANG_PUSH(Go)dnl
  710. AC_ARG_VAR([GOC], [Go compiler command])dnl
  711. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  712. _AC_ARG_VAR_LDFLAGS()dnl
  713. AC_CHECK_TOOL(GOC, gccgo)
  714. if test -z "$GOC"; then
  715. if test -n "$ac_tool_prefix"; then
  716. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  717. fi
  718. fi
  719. if test -z "$GOC"; then
  720. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  721. fi
  722. ])#m4_defun
  723. ])#m4_ifndef
  724. # _LT_LANG_DEFAULT_CONFIG
  725. # -----------------------
  726. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  727. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  728. [LT_LANG(CXX)],
  729. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  730. AC_PROVIDE_IFELSE([AC_PROG_F77],
  731. [LT_LANG(F77)],
  732. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  733. AC_PROVIDE_IFELSE([AC_PROG_FC],
  734. [LT_LANG(FC)],
  735. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  736. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  737. dnl pulling things in needlessly.
  738. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  739. [LT_LANG(GCJ)],
  740. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  741. [LT_LANG(GCJ)],
  742. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  743. [LT_LANG(GCJ)],
  744. [m4_ifdef([AC_PROG_GCJ],
  745. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  746. m4_ifdef([A][M_PROG_GCJ],
  747. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  748. m4_ifdef([LT_PROG_GCJ],
  749. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  750. AC_PROVIDE_IFELSE([AC_PROG_GO],
  751. [LT_LANG(GO)],
  752. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  753. AC_PROVIDE_IFELSE([LT_PROG_RC],
  754. [LT_LANG(RC)],
  755. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  756. ])# _LT_LANG_DEFAULT_CONFIG
  757. # Obsolete macros:
  758. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  759. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  760. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  761. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  762. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  763. dnl aclocal-1.4 backwards compatibility:
  764. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  765. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  766. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  767. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  768. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  769. # _LT_TAG_COMPILER
  770. # ----------------
  771. m4_defun([_LT_TAG_COMPILER],
  772. [AC_REQUIRE([AC_PROG_CC])dnl
  773. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  774. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  775. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  776. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  777. # If no C compiler was specified, use CC.
  778. LTCC=${LTCC-"$CC"}
  779. # If no C compiler flags were specified, use CFLAGS.
  780. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  781. # Allow CC to be a program name with arguments.
  782. compiler=$CC
  783. ])# _LT_TAG_COMPILER
  784. # _LT_COMPILER_BOILERPLATE
  785. # ------------------------
  786. # Check for compiler boilerplate output or warnings with
  787. # the simple compiler test code.
  788. m4_defun([_LT_COMPILER_BOILERPLATE],
  789. [m4_require([_LT_DECL_SED])dnl
  790. ac_outfile=conftest.$ac_objext
  791. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  792. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  793. _lt_compiler_boilerplate=`cat conftest.err`
  794. $RM conftest*
  795. ])# _LT_COMPILER_BOILERPLATE
  796. # _LT_LINKER_BOILERPLATE
  797. # ----------------------
  798. # Check for linker boilerplate output or warnings with
  799. # the simple link test code.
  800. m4_defun([_LT_LINKER_BOILERPLATE],
  801. [m4_require([_LT_DECL_SED])dnl
  802. ac_outfile=conftest.$ac_objext
  803. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  804. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  805. _lt_linker_boilerplate=`cat conftest.err`
  806. $RM -r conftest*
  807. ])# _LT_LINKER_BOILERPLATE
  808. # _LT_REQUIRED_DARWIN_CHECKS
  809. # -------------------------
  810. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  811. case $host_os in
  812. rhapsody* | darwin*)
  813. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  814. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  815. AC_CHECK_TOOL([LIPO], [lipo], [:])
  816. AC_CHECK_TOOL([OTOOL], [otool], [:])
  817. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  818. _LT_DECL([], [DSYMUTIL], [1],
  819. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  820. _LT_DECL([], [NMEDIT], [1],
  821. [Tool to change global to local symbols on Mac OS X])
  822. _LT_DECL([], [LIPO], [1],
  823. [Tool to manipulate fat objects and archives on Mac OS X])
  824. _LT_DECL([], [OTOOL], [1],
  825. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  826. _LT_DECL([], [OTOOL64], [1],
  827. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  828. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  829. [lt_cv_apple_cc_single_mod=no
  830. if test -z "${LT_MULTI_MODULE}"; then
  831. # By default we will add the -single_module flag. You can override
  832. # by either setting the environment variable LT_MULTI_MODULE
  833. # non-empty at configure time, or by adding -multi_module to the
  834. # link flags.
  835. rm -rf libconftest.dylib*
  836. echo "int foo(void){return 1;}" > conftest.c
  837. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  838. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  839. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  840. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  841. _lt_result=$?
  842. # If there is a non-empty error log, and "single_module"
  843. # appears in it, assume the flag caused a linker warning
  844. if test -s conftest.err && $GREP single_module conftest.err; then
  845. cat conftest.err >&AS_MESSAGE_LOG_FD
  846. # Otherwise, if the output was created with a 0 exit code from
  847. # the compiler, it worked.
  848. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  849. lt_cv_apple_cc_single_mod=yes
  850. else
  851. cat conftest.err >&AS_MESSAGE_LOG_FD
  852. fi
  853. rm -rf libconftest.dylib*
  854. rm -f conftest.*
  855. fi])
  856. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  857. [lt_cv_ld_exported_symbols_list],
  858. [lt_cv_ld_exported_symbols_list=no
  859. save_LDFLAGS=$LDFLAGS
  860. echo "_main" > conftest.sym
  861. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  862. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  863. [lt_cv_ld_exported_symbols_list=yes],
  864. [lt_cv_ld_exported_symbols_list=no])
  865. LDFLAGS="$save_LDFLAGS"
  866. ])
  867. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  868. [lt_cv_ld_force_load=no
  869. cat > conftest.c << _LT_EOF
  870. int forced_loaded() { return 2;}
  871. _LT_EOF
  872. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  873. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  874. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  875. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  876. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  877. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  878. cat > conftest.c << _LT_EOF
  879. int main() { return 0;}
  880. _LT_EOF
  881. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  882. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  883. _lt_result=$?
  884. if test -s conftest.err && $GREP force_load conftest.err; then
  885. cat conftest.err >&AS_MESSAGE_LOG_FD
  886. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  887. lt_cv_ld_force_load=yes
  888. else
  889. cat conftest.err >&AS_MESSAGE_LOG_FD
  890. fi
  891. rm -f conftest.err libconftest.a conftest conftest.c
  892. rm -rf conftest.dSYM
  893. ])
  894. case $host_os in
  895. rhapsody* | darwin1.[[012]])
  896. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  897. darwin1.*)
  898. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  899. darwin*) # darwin 5.x on
  900. # if running on 10.5 or later, the deployment target defaults
  901. # to the OS version, if on x86, and 10.4, the deployment
  902. # target defaults to 10.4. Don't you love it?
  903. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  904. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  905. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  906. 10.[[012]]*)
  907. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  908. 10.*)
  909. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  910. esac
  911. ;;
  912. esac
  913. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  914. _lt_dar_single_mod='$single_module'
  915. fi
  916. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  917. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  918. else
  919. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  920. fi
  921. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  922. _lt_dsymutil='~$DSYMUTIL $lib || :'
  923. else
  924. _lt_dsymutil=
  925. fi
  926. ;;
  927. esac
  928. ])
  929. # _LT_DARWIN_LINKER_FEATURES([TAG])
  930. # ---------------------------------
  931. # Checks for linker and compiler features on darwin
  932. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  933. [
  934. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  935. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  936. _LT_TAGVAR(hardcode_direct, $1)=no
  937. _LT_TAGVAR(hardcode_automatic, $1)=yes
  938. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  939. if test "$lt_cv_ld_force_load" = "yes"; then
  940. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  941. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  942. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  943. else
  944. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  945. fi
  946. _LT_TAGVAR(link_all_deplibs, $1)=yes
  947. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  948. case $cc_basename in
  949. ifort*) _lt_dar_can_shared=yes ;;
  950. *) _lt_dar_can_shared=$GCC ;;
  951. esac
  952. if test "$_lt_dar_can_shared" = "yes"; then
  953. output_verbose_link_cmd=func_echo_all
  954. _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  955. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  956. _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  957. _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  958. m4_if([$1], [CXX],
  959. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  960. _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  961. _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  962. fi
  963. ],[])
  964. else
  965. _LT_TAGVAR(ld_shlibs, $1)=no
  966. fi
  967. ])
  968. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  969. # ----------------------------------
  970. # Links a minimal program and checks the executable
  971. # for the system default hardcoded library path. In most cases,
  972. # this is /usr/lib:/lib, but when the MPI compilers are used
  973. # the location of the communication and MPI libs are included too.
  974. # If we don't find anything, use the default library path according
  975. # to the aix ld manual.
  976. # Store the results from the different compilers for each TAGNAME.
  977. # Allow to override them for all tags through lt_cv_aix_libpath.
  978. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  979. [m4_require([_LT_DECL_SED])dnl
  980. if test "${lt_cv_aix_libpath+set}" = set; then
  981. aix_libpath=$lt_cv_aix_libpath
  982. else
  983. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  984. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  985. lt_aix_libpath_sed='[
  986. /Import File Strings/,/^$/ {
  987. /^0/ {
  988. s/^0 *\([^ ]*\) *$/\1/
  989. p
  990. }
  991. }]'
  992. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  993. # Check for a 64-bit object if we didn't find anything.
  994. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  995. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  996. fi],[])
  997. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  998. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  999. fi
  1000. ])
  1001. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1002. fi
  1003. ])# _LT_SYS_MODULE_PATH_AIX
  1004. # _LT_SHELL_INIT(ARG)
  1005. # -------------------
  1006. m4_define([_LT_SHELL_INIT],
  1007. [m4_divert_text([M4SH-INIT], [$1
  1008. ])])# _LT_SHELL_INIT
  1009. # _LT_PROG_ECHO_BACKSLASH
  1010. # -----------------------
  1011. # Find how we can fake an echo command that does not interpret backslash.
  1012. # In particular, with Autoconf 2.60 or later we add some code to the start
  1013. # of the generated configure script which will find a shell with a builtin
  1014. # printf (which we can use as an echo command).
  1015. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1016. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1017. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1018. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1019. AC_MSG_CHECKING([how to print strings])
  1020. # Test print first, because it will be a builtin if present.
  1021. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1022. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1023. ECHO='print -r --'
  1024. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1025. ECHO='printf %s\n'
  1026. else
  1027. # Use this function as a fallback that always works.
  1028. func_fallback_echo ()
  1029. {
  1030. eval 'cat <<_LTECHO_EOF
  1031. $[]1
  1032. _LTECHO_EOF'
  1033. }
  1034. ECHO='func_fallback_echo'
  1035. fi
  1036. # func_echo_all arg...
  1037. # Invoke $ECHO with all args, space-separated.
  1038. func_echo_all ()
  1039. {
  1040. $ECHO "$*"
  1041. }
  1042. case "$ECHO" in
  1043. printf*) AC_MSG_RESULT([printf]) ;;
  1044. print*) AC_MSG_RESULT([print -r]) ;;
  1045. *) AC_MSG_RESULT([cat]) ;;
  1046. esac
  1047. m4_ifdef([_AS_DETECT_SUGGESTED],
  1048. [_AS_DETECT_SUGGESTED([
  1049. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1050. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1051. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1052. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1053. PATH=/empty FPATH=/empty; export PATH FPATH
  1054. test "X`printf %s $ECHO`" = "X$ECHO" \
  1055. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1056. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1057. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1058. ])# _LT_PROG_ECHO_BACKSLASH
  1059. # _LT_WITH_SYSROOT
  1060. # ----------------
  1061. AC_DEFUN([_LT_WITH_SYSROOT],
  1062. [AC_MSG_CHECKING([for sysroot])
  1063. AC_ARG_WITH([sysroot],
  1064. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1065. (or the compiler's sysroot if not specified).],
  1066. [], [with_sysroot=no])
  1067. dnl lt_sysroot will always be passed unquoted. We quote it here
  1068. dnl in case the user passed a directory name.
  1069. lt_sysroot=
  1070. case ${with_sysroot} in #(
  1071. yes)
  1072. if test "$GCC" = yes; then
  1073. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1074. fi
  1075. ;; #(
  1076. /*)
  1077. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1078. ;; #(
  1079. no|'')
  1080. ;; #(
  1081. *)
  1082. AC_MSG_RESULT([${with_sysroot}])
  1083. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1084. ;;
  1085. esac
  1086. AC_MSG_RESULT([${lt_sysroot:-no}])
  1087. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1088. [dependent libraries, and in which our libraries should be installed.])])
  1089. # _LT_ENABLE_LOCK
  1090. # ---------------
  1091. m4_defun([_LT_ENABLE_LOCK],
  1092. [AC_ARG_ENABLE([libtool-lock],
  1093. [AS_HELP_STRING([--disable-libtool-lock],
  1094. [avoid locking (might break parallel builds)])])
  1095. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1096. # Some flags need to be propagated to the compiler or linker for good
  1097. # libtool support.
  1098. case $host in
  1099. ia64-*-hpux*)
  1100. # Find out which ABI we are using.
  1101. echo 'int i;' > conftest.$ac_ext
  1102. if AC_TRY_EVAL(ac_compile); then
  1103. case `/usr/bin/file conftest.$ac_objext` in
  1104. *ELF-32*)
  1105. HPUX_IA64_MODE="32"
  1106. ;;
  1107. *ELF-64*)
  1108. HPUX_IA64_MODE="64"
  1109. ;;
  1110. esac
  1111. fi
  1112. rm -rf conftest*
  1113. ;;
  1114. *-*-irix6*)
  1115. # Find out which ABI we are using.
  1116. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1117. if AC_TRY_EVAL(ac_compile); then
  1118. if test "$lt_cv_prog_gnu_ld" = yes; then
  1119. case `/usr/bin/file conftest.$ac_objext` in
  1120. *32-bit*)
  1121. LD="${LD-ld} -melf32bsmip"
  1122. ;;
  1123. *N32*)
  1124. LD="${LD-ld} -melf32bmipn32"
  1125. ;;
  1126. *64-bit*)
  1127. LD="${LD-ld} -melf64bmip"
  1128. ;;
  1129. esac
  1130. else
  1131. case `/usr/bin/file conftest.$ac_objext` in
  1132. *32-bit*)
  1133. LD="${LD-ld} -32"
  1134. ;;
  1135. *N32*)
  1136. LD="${LD-ld} -n32"
  1137. ;;
  1138. *64-bit*)
  1139. LD="${LD-ld} -64"
  1140. ;;
  1141. esac
  1142. fi
  1143. fi
  1144. rm -rf conftest*
  1145. ;;
  1146. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1147. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1148. # Find out which ABI we are using.
  1149. echo 'int i;' > conftest.$ac_ext
  1150. if AC_TRY_EVAL(ac_compile); then
  1151. case `/usr/bin/file conftest.o` in
  1152. *32-bit*)
  1153. case $host in
  1154. x86_64-*kfreebsd*-gnu)
  1155. LD="${LD-ld} -m elf_i386_fbsd"
  1156. ;;
  1157. x86_64-*linux*)
  1158. LD="${LD-ld} -m elf_i386"
  1159. ;;
  1160. ppc64-*linux*|powerpc64-*linux*)
  1161. LD="${LD-ld} -m elf32ppclinux"
  1162. ;;
  1163. s390x-*linux*)
  1164. LD="${LD-ld} -m elf_s390"
  1165. ;;
  1166. sparc64-*linux*)
  1167. LD="${LD-ld} -m elf32_sparc"
  1168. ;;
  1169. esac
  1170. ;;
  1171. *64-bit*)
  1172. case $host in
  1173. x86_64-*kfreebsd*-gnu)
  1174. LD="${LD-ld} -m elf_x86_64_fbsd"
  1175. ;;
  1176. x86_64-*linux*)
  1177. LD="${LD-ld} -m elf_x86_64"
  1178. ;;
  1179. ppc*-*linux*|powerpc*-*linux*)
  1180. LD="${LD-ld} -m elf64ppc"
  1181. ;;
  1182. s390*-*linux*|s390*-*tpf*)
  1183. LD="${LD-ld} -m elf64_s390"
  1184. ;;
  1185. sparc*-*linux*)
  1186. LD="${LD-ld} -m elf64_sparc"
  1187. ;;
  1188. esac
  1189. ;;
  1190. esac
  1191. fi
  1192. rm -rf conftest*
  1193. ;;
  1194. *-*-sco3.2v5*)
  1195. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1196. SAVE_CFLAGS="$CFLAGS"
  1197. CFLAGS="$CFLAGS -belf"
  1198. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1199. [AC_LANG_PUSH(C)
  1200. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1201. AC_LANG_POP])
  1202. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1203. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1204. CFLAGS="$SAVE_CFLAGS"
  1205. fi
  1206. ;;
  1207. *-*solaris*)
  1208. # Find out which ABI we are using.
  1209. echo 'int i;' > conftest.$ac_ext
  1210. if AC_TRY_EVAL(ac_compile); then
  1211. case `/usr/bin/file conftest.o` in
  1212. *64-bit*)
  1213. case $lt_cv_prog_gnu_ld in
  1214. yes*)
  1215. case $host in
  1216. i?86-*-solaris*)
  1217. LD="${LD-ld} -m elf_x86_64"
  1218. ;;
  1219. sparc*-*-solaris*)
  1220. LD="${LD-ld} -m elf64_sparc"
  1221. ;;
  1222. esac
  1223. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1224. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1225. LD="${LD-ld}_sol2"
  1226. fi
  1227. ;;
  1228. *)
  1229. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1230. LD="${LD-ld} -64"
  1231. fi
  1232. ;;
  1233. esac
  1234. ;;
  1235. esac
  1236. fi
  1237. rm -rf conftest*
  1238. ;;
  1239. esac
  1240. need_locks="$enable_libtool_lock"
  1241. ])# _LT_ENABLE_LOCK
  1242. # _LT_PROG_AR
  1243. # -----------
  1244. m4_defun([_LT_PROG_AR],
  1245. [AC_CHECK_TOOLS(AR, [ar], false)
  1246. : ${AR=ar}
  1247. : ${AR_FLAGS=cru}
  1248. _LT_DECL([], [AR], [1], [The archiver])
  1249. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1250. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1251. [lt_cv_ar_at_file=no
  1252. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1253. [echo conftest.$ac_objext > conftest.lst
  1254. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1255. AC_TRY_EVAL([lt_ar_try])
  1256. if test "$ac_status" -eq 0; then
  1257. # Ensure the archiver fails upon bogus file names.
  1258. rm -f conftest.$ac_objext libconftest.a
  1259. AC_TRY_EVAL([lt_ar_try])
  1260. if test "$ac_status" -ne 0; then
  1261. lt_cv_ar_at_file=@
  1262. fi
  1263. fi
  1264. rm -f conftest.* libconftest.a
  1265. ])
  1266. ])
  1267. if test "x$lt_cv_ar_at_file" = xno; then
  1268. archiver_list_spec=
  1269. else
  1270. archiver_list_spec=$lt_cv_ar_at_file
  1271. fi
  1272. _LT_DECL([], [archiver_list_spec], [1],
  1273. [How to feed a file listing to the archiver])
  1274. ])# _LT_PROG_AR
  1275. # _LT_CMD_OLD_ARCHIVE
  1276. # -------------------
  1277. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1278. [_LT_PROG_AR
  1279. AC_CHECK_TOOL(STRIP, strip, :)
  1280. test -z "$STRIP" && STRIP=:
  1281. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1282. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1283. test -z "$RANLIB" && RANLIB=:
  1284. _LT_DECL([], [RANLIB], [1],
  1285. [Commands used to install an old-style archive])
  1286. # Determine commands to create old-style static archives.
  1287. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1288. old_postinstall_cmds='chmod 644 $oldlib'
  1289. old_postuninstall_cmds=
  1290. if test -n "$RANLIB"; then
  1291. case $host_os in
  1292. openbsd*)
  1293. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1294. ;;
  1295. *)
  1296. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1297. ;;
  1298. esac
  1299. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1300. fi
  1301. case $host_os in
  1302. darwin*)
  1303. lock_old_archive_extraction=yes ;;
  1304. *)
  1305. lock_old_archive_extraction=no ;;
  1306. esac
  1307. _LT_DECL([], [old_postinstall_cmds], [2])
  1308. _LT_DECL([], [old_postuninstall_cmds], [2])
  1309. _LT_TAGDECL([], [old_archive_cmds], [2],
  1310. [Commands used to build an old-style archive])
  1311. _LT_DECL([], [lock_old_archive_extraction], [0],
  1312. [Whether to use a lock for old archive extraction])
  1313. ])# _LT_CMD_OLD_ARCHIVE
  1314. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1315. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1316. # ----------------------------------------------------------------
  1317. # Check whether the given compiler option works
  1318. AC_DEFUN([_LT_COMPILER_OPTION],
  1319. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1320. m4_require([_LT_DECL_SED])dnl
  1321. AC_CACHE_CHECK([$1], [$2],
  1322. [$2=no
  1323. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1324. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1325. lt_compiler_flag="$3"
  1326. # Insert the option either (1) after the last *FLAGS variable, or
  1327. # (2) before a word containing "conftest.", or (3) at the end.
  1328. # Note that $ac_compile itself does not contain backslashes and begins
  1329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1330. # The option is referenced via a variable to avoid confusing sed.
  1331. lt_compile=`echo "$ac_compile" | $SED \
  1332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1333. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1334. -e 's:$: $lt_compiler_flag:'`
  1335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1336. (eval "$lt_compile" 2>conftest.err)
  1337. ac_status=$?
  1338. cat conftest.err >&AS_MESSAGE_LOG_FD
  1339. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1340. if (exit $ac_status) && test -s "$ac_outfile"; then
  1341. # The compiler can only warn and ignore the option if not recognized
  1342. # So say no i…

Large files files are truncated, but you can click here to view the full file