PageRenderTime 82ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 1ms

/lib/libmodplug/aclocal.m4

http://github.com/xbmc/xbmc
m4 | 8917 lines | 6172 code | 922 blank | 1823 comment | 0 complexity | cf3dae80b9c4fe776b42f307c093bb8c MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0

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

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

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