/contrib/ntp/sntp/aclocal.m4

https://bitbucket.org/freebsd/freebsd-head/ · m4 · 7128 lines · 4818 code · 739 blank · 1571 comment · 0 complexity · 0d840b6b7d0cb34c6d8a65127f10125d MD5 · raw file

Large files are truncated 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. # serial 47 AC_PROG_LIBTOOL
  20. # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  21. # -----------------------------------------------------------
  22. # If this macro is not defined by Autoconf, define it here.
  23. m4_ifdef([AC_PROVIDE_IFELSE],
  24. [],
  25. [m4_define([AC_PROVIDE_IFELSE],
  26. [m4_ifdef([AC_PROVIDE_$1],
  27. [$2], [$3])])])
  28. # AC_PROG_LIBTOOL
  29. # ---------------
  30. AC_DEFUN([AC_PROG_LIBTOOL],
  31. [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  32. dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  33. dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  34. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  35. [AC_LIBTOOL_CXX],
  36. [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  37. ])])
  38. dnl And a similar setup for Fortran 77 support
  39. AC_PROVIDE_IFELSE([AC_PROG_F77],
  40. [AC_LIBTOOL_F77],
  41. [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  42. ])])
  43. dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  44. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  45. dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  46. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  47. [AC_LIBTOOL_GCJ],
  48. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  49. [AC_LIBTOOL_GCJ],
  50. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  51. [AC_LIBTOOL_GCJ],
  52. [ifdef([AC_PROG_GCJ],
  53. [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  54. ifdef([A][M_PROG_GCJ],
  55. [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  56. ifdef([LT_AC_PROG_GCJ],
  57. [define([LT_AC_PROG_GCJ],
  58. defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  59. ])])# AC_PROG_LIBTOOL
  60. # _AC_PROG_LIBTOOL
  61. # ----------------
  62. AC_DEFUN([_AC_PROG_LIBTOOL],
  63. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  64. AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  65. AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  66. AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  67. # This can be used to rebuild libtool when needed
  68. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  69. # Always use our own libtool.
  70. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  71. AC_SUBST(LIBTOOL)dnl
  72. # Prevent multiple expansion
  73. define([AC_PROG_LIBTOOL], [])
  74. ])# _AC_PROG_LIBTOOL
  75. # AC_LIBTOOL_SETUP
  76. # ----------------
  77. AC_DEFUN([AC_LIBTOOL_SETUP],
  78. [AC_PREREQ(2.50)dnl
  79. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  80. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  81. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  82. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  83. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  84. AC_REQUIRE([AC_PROG_CC])dnl
  85. AC_REQUIRE([AC_PROG_LD])dnl
  86. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  87. AC_REQUIRE([AC_PROG_NM])dnl
  88. AC_REQUIRE([AC_PROG_LN_S])dnl
  89. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  90. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  91. AC_REQUIRE([AC_OBJEXT])dnl
  92. AC_REQUIRE([AC_EXEEXT])dnl
  93. dnl
  94. AC_LIBTOOL_SYS_MAX_CMD_LEN
  95. AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  96. AC_LIBTOOL_OBJDIR
  97. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  98. _LT_AC_PROG_ECHO_BACKSLASH
  99. case $host_os in
  100. aix3*)
  101. # AIX sometimes has problems with the GCC collect2 program. For some
  102. # reason, if we set the COLLECT_NAMES environment variable, the problems
  103. # vanish in a puff of smoke.
  104. if test "X${COLLECT_NAMES+set}" != Xset; then
  105. COLLECT_NAMES=
  106. export COLLECT_NAMES
  107. fi
  108. ;;
  109. esac
  110. # Sed substitution that helps us do robust quoting. It backslashifies
  111. # metacharacters that are still active within double-quoted strings.
  112. Xsed='sed -e 1s/^X//'
  113. [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  114. # Same as above, but do not quote variable references.
  115. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  116. # Sed substitution to delay expansion of an escaped shell variable in a
  117. # double_quote_subst'ed string.
  118. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  119. # Sed substitution to avoid accidental globbing in evaled expressions
  120. no_glob_subst='s/\*/\\\*/g'
  121. # Constants:
  122. rm="rm -f"
  123. # Global variables:
  124. default_ofile=libtool
  125. can_build_shared=yes
  126. # All known linkers require a `.a' archive for static linking (except MSVC,
  127. # which needs '.lib').
  128. libext=a
  129. ltmain="$ac_aux_dir/ltmain.sh"
  130. ofile="$default_ofile"
  131. with_gnu_ld="$lt_cv_prog_gnu_ld"
  132. AC_CHECK_TOOL(AR, ar, false)
  133. AC_CHECK_TOOL(RANLIB, ranlib, :)
  134. AC_CHECK_TOOL(STRIP, strip, :)
  135. old_CC="$CC"
  136. old_CFLAGS="$CFLAGS"
  137. # Set sane defaults for various variables
  138. test -z "$AR" && AR=ar
  139. test -z "$AR_FLAGS" && AR_FLAGS=cru
  140. test -z "$AS" && AS=as
  141. test -z "$CC" && CC=cc
  142. test -z "$LTCC" && LTCC=$CC
  143. test -z "$DLLTOOL" && DLLTOOL=dlltool
  144. test -z "$LD" && LD=ld
  145. test -z "$LN_S" && LN_S="ln -s"
  146. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  147. test -z "$NM" && NM=nm
  148. test -z "$SED" && SED=sed
  149. test -z "$OBJDUMP" && OBJDUMP=objdump
  150. test -z "$RANLIB" && RANLIB=:
  151. test -z "$STRIP" && STRIP=:
  152. test -z "$ac_objext" && ac_objext=o
  153. # Determine commands to create old-style static archives.
  154. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  155. old_postinstall_cmds='chmod 644 $oldlib'
  156. old_postuninstall_cmds=
  157. if test -n "$RANLIB"; then
  158. case $host_os in
  159. openbsd*)
  160. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  161. ;;
  162. *)
  163. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  164. ;;
  165. esac
  166. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  167. fi
  168. _LT_CC_BASENAME([$compiler])
  169. # Only perform the check for file, if the check method requires it
  170. case $deplibs_check_method in
  171. file_magic*)
  172. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  173. AC_PATH_MAGIC
  174. fi
  175. ;;
  176. esac
  177. AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  178. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  179. enable_win32_dll=yes, enable_win32_dll=no)
  180. AC_ARG_ENABLE([libtool-lock],
  181. [AC_HELP_STRING([--disable-libtool-lock],
  182. [avoid locking (might break parallel builds)])])
  183. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  184. AC_ARG_WITH([pic],
  185. [AC_HELP_STRING([--with-pic],
  186. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  187. [pic_mode="$withval"],
  188. [pic_mode=default])
  189. test -z "$pic_mode" && pic_mode=default
  190. # Use C for the default configuration in the libtool script
  191. tagname=
  192. AC_LIBTOOL_LANG_C_CONFIG
  193. _LT_AC_TAGCONFIG
  194. ])# AC_LIBTOOL_SETUP
  195. # _LT_AC_SYS_COMPILER
  196. # -------------------
  197. AC_DEFUN([_LT_AC_SYS_COMPILER],
  198. [AC_REQUIRE([AC_PROG_CC])dnl
  199. # If no C compiler was specified, use CC.
  200. LTCC=${LTCC-"$CC"}
  201. # Allow CC to be a program name with arguments.
  202. compiler=$CC
  203. ])# _LT_AC_SYS_COMPILER
  204. # _LT_CC_BASENAME(CC)
  205. # -------------------
  206. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  207. AC_DEFUN([_LT_CC_BASENAME],
  208. [for cc_temp in $1""; do
  209. case $cc_temp in
  210. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  211. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  212. \-*) ;;
  213. *) break;;
  214. esac
  215. done
  216. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  217. ])
  218. # _LT_COMPILER_BOILERPLATE
  219. # ------------------------
  220. # Check for compiler boilerplate output or warnings with
  221. # the simple compiler test code.
  222. AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  223. [ac_outfile=conftest.$ac_objext
  224. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  225. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  226. _lt_compiler_boilerplate=`cat conftest.err`
  227. $rm conftest*
  228. ])# _LT_COMPILER_BOILERPLATE
  229. # _LT_LINKER_BOILERPLATE
  230. # ----------------------
  231. # Check for linker boilerplate output or warnings with
  232. # the simple link test code.
  233. AC_DEFUN([_LT_LINKER_BOILERPLATE],
  234. [ac_outfile=conftest.$ac_objext
  235. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  236. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  237. _lt_linker_boilerplate=`cat conftest.err`
  238. $rm conftest*
  239. ])# _LT_LINKER_BOILERPLATE
  240. # _LT_AC_SYS_LIBPATH_AIX
  241. # ----------------------
  242. # Links a minimal program and checks the executable
  243. # for the system default hardcoded library path. In most cases,
  244. # this is /usr/lib:/lib, but when the MPI compilers are used
  245. # the location of the communication and MPI libs are included too.
  246. # If we don't find anything, use the default library path according
  247. # to the aix ld manual.
  248. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  249. [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  250. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  251. }'`
  252. # Check for a 64-bit object if we didn't find anything.
  253. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  254. }'`; fi],[])
  255. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  256. ])# _LT_AC_SYS_LIBPATH_AIX
  257. # _LT_AC_SHELL_INIT(ARG)
  258. # ----------------------
  259. AC_DEFUN([_LT_AC_SHELL_INIT],
  260. [ifdef([AC_DIVERSION_NOTICE],
  261. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  262. [AC_DIVERT_PUSH(NOTICE)])
  263. $1
  264. AC_DIVERT_POP
  265. ])# _LT_AC_SHELL_INIT
  266. # _LT_AC_PROG_ECHO_BACKSLASH
  267. # --------------------------
  268. # Add some code to the start of the generated configure script which
  269. # will find an echo command which doesn't interpret backslashes.
  270. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  271. [_LT_AC_SHELL_INIT([
  272. # Check that we are running under the correct shell.
  273. SHELL=${CONFIG_SHELL-/bin/sh}
  274. case X$ECHO in
  275. X*--fallback-echo)
  276. # Remove one level of quotation (which was required for Make).
  277. ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  278. ;;
  279. esac
  280. echo=${ECHO-echo}
  281. if test "X[$]1" = X--no-reexec; then
  282. # Discard the --no-reexec flag, and continue.
  283. shift
  284. elif test "X[$]1" = X--fallback-echo; then
  285. # Avoid inline document here, it may be left over
  286. :
  287. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  288. # Yippee, $echo works!
  289. :
  290. else
  291. # Restart under the correct shell.
  292. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  293. fi
  294. if test "X[$]1" = X--fallback-echo; then
  295. # used as fallback echo
  296. shift
  297. cat <<EOF
  298. [$]*
  299. EOF
  300. exit 0
  301. fi
  302. # The HP-UX ksh and POSIX shell print the target directory to stdout
  303. # if CDPATH is set.
  304. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  305. if test -z "$ECHO"; then
  306. if test "X${echo_test_string+set}" != Xset; then
  307. # find a string as large as possible, as long as the shell can cope with it
  308. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  309. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  310. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  311. echo_test_string=`eval $cmd` &&
  312. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  313. then
  314. break
  315. fi
  316. done
  317. fi
  318. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  319. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  320. test "X$echo_testing_string" = "X$echo_test_string"; then
  321. :
  322. else
  323. # The Solaris, AIX, and Digital Unix default echo programs unquote
  324. # backslashes. This makes it impossible to quote backslashes using
  325. # echo "$something" | sed 's/\\/\\\\/g'
  326. #
  327. # So, first we look for a working echo in the user's PATH.
  328. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  329. for dir in $PATH /usr/ucb; do
  330. IFS="$lt_save_ifs"
  331. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  332. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  333. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  334. test "X$echo_testing_string" = "X$echo_test_string"; then
  335. echo="$dir/echo"
  336. break
  337. fi
  338. done
  339. IFS="$lt_save_ifs"
  340. if test "X$echo" = Xecho; then
  341. # We didn't find a better echo, so look for alternatives.
  342. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  343. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  344. test "X$echo_testing_string" = "X$echo_test_string"; then
  345. # This shell has a builtin print -r that does the trick.
  346. echo='print -r'
  347. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  348. test "X$CONFIG_SHELL" != X/bin/ksh; then
  349. # If we have ksh, try running configure again with it.
  350. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  351. export ORIGINAL_CONFIG_SHELL
  352. CONFIG_SHELL=/bin/ksh
  353. export CONFIG_SHELL
  354. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  355. else
  356. # Try using printf.
  357. echo='printf %s\n'
  358. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  359. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  360. test "X$echo_testing_string" = "X$echo_test_string"; then
  361. # Cool, printf works
  362. :
  363. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  364. test "X$echo_testing_string" = 'X\t' &&
  365. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  366. test "X$echo_testing_string" = "X$echo_test_string"; then
  367. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  368. export CONFIG_SHELL
  369. SHELL="$CONFIG_SHELL"
  370. export SHELL
  371. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  372. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  373. test "X$echo_testing_string" = 'X\t' &&
  374. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  375. test "X$echo_testing_string" = "X$echo_test_string"; then
  376. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  377. else
  378. # maybe with a smaller string...
  379. prev=:
  380. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  381. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  382. then
  383. break
  384. fi
  385. prev="$cmd"
  386. done
  387. if test "$prev" != 'sed 50q "[$]0"'; then
  388. echo_test_string=`eval $prev`
  389. export echo_test_string
  390. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  391. else
  392. # Oops. We lost completely, so just stick with echo.
  393. echo=echo
  394. fi
  395. fi
  396. fi
  397. fi
  398. fi
  399. fi
  400. # Copy echo and quote the copy suitably for passing to libtool from
  401. # the Makefile, instead of quoting the original, which is used later.
  402. ECHO=$echo
  403. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  404. ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  405. fi
  406. AC_SUBST(ECHO)
  407. ])])# _LT_AC_PROG_ECHO_BACKSLASH
  408. # _LT_AC_LOCK
  409. # -----------
  410. AC_DEFUN([_LT_AC_LOCK],
  411. [AC_ARG_ENABLE([libtool-lock],
  412. [AC_HELP_STRING([--disable-libtool-lock],
  413. [avoid locking (might break parallel builds)])])
  414. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  415. # Some flags need to be propagated to the compiler or linker for good
  416. # libtool support.
  417. case $host in
  418. ia64-*-hpux*)
  419. # Find out which ABI we are using.
  420. echo 'int i;' > conftest.$ac_ext
  421. if AC_TRY_EVAL(ac_compile); then
  422. case `/usr/bin/file conftest.$ac_objext` in
  423. *ELF-32*)
  424. HPUX_IA64_MODE="32"
  425. ;;
  426. *ELF-64*)
  427. HPUX_IA64_MODE="64"
  428. ;;
  429. esac
  430. fi
  431. rm -rf conftest*
  432. ;;
  433. *-*-irix6*)
  434. # Find out which ABI we are using.
  435. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  436. if AC_TRY_EVAL(ac_compile); then
  437. if test "$lt_cv_prog_gnu_ld" = yes; then
  438. case `/usr/bin/file conftest.$ac_objext` in
  439. *32-bit*)
  440. LD="${LD-ld} -melf32bsmip"
  441. ;;
  442. *N32*)
  443. LD="${LD-ld} -melf32bmipn32"
  444. ;;
  445. *64-bit*)
  446. LD="${LD-ld} -melf64bmip"
  447. ;;
  448. esac
  449. else
  450. case `/usr/bin/file conftest.$ac_objext` in
  451. *32-bit*)
  452. LD="${LD-ld} -32"
  453. ;;
  454. *N32*)
  455. LD="${LD-ld} -n32"
  456. ;;
  457. *64-bit*)
  458. LD="${LD-ld} -64"
  459. ;;
  460. esac
  461. fi
  462. fi
  463. rm -rf conftest*
  464. ;;
  465. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  466. # Find out which ABI we are using.
  467. echo 'int i;' > conftest.$ac_ext
  468. if AC_TRY_EVAL(ac_compile); then
  469. case `/usr/bin/file conftest.o` in
  470. *32-bit*)
  471. case $host in
  472. x86_64-*linux*)
  473. LD="${LD-ld} -m elf_i386"
  474. ;;
  475. ppc64-*linux*|powerpc64-*linux*)
  476. LD="${LD-ld} -m elf32ppclinux"
  477. ;;
  478. s390x-*linux*)
  479. LD="${LD-ld} -m elf_s390"
  480. ;;
  481. sparc64-*linux*)
  482. LD="${LD-ld} -m elf32_sparc"
  483. ;;
  484. esac
  485. ;;
  486. *64-bit*)
  487. case $host in
  488. x86_64-*linux*)
  489. LD="${LD-ld} -m elf_x86_64"
  490. ;;
  491. ppc*-*linux*|powerpc*-*linux*)
  492. LD="${LD-ld} -m elf64ppc"
  493. ;;
  494. s390*-*linux*)
  495. LD="${LD-ld} -m elf64_s390"
  496. ;;
  497. sparc*-*linux*)
  498. LD="${LD-ld} -m elf64_sparc"
  499. ;;
  500. esac
  501. ;;
  502. esac
  503. fi
  504. rm -rf conftest*
  505. ;;
  506. *-*-sco3.2v5*)
  507. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  508. SAVE_CFLAGS="$CFLAGS"
  509. CFLAGS="$CFLAGS -belf"
  510. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  511. [AC_LANG_PUSH(C)
  512. AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  513. AC_LANG_POP])
  514. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  515. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  516. CFLAGS="$SAVE_CFLAGS"
  517. fi
  518. ;;
  519. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  520. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  521. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  522. AC_CHECK_TOOL(AS, as, false)
  523. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  524. ;;
  525. ])
  526. esac
  527. need_locks="$enable_libtool_lock"
  528. ])# _LT_AC_LOCK
  529. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  530. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  531. # ----------------------------------------------------------------
  532. # Check whether the given compiler option works
  533. AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  534. [AC_REQUIRE([LT_AC_PROG_SED])
  535. AC_CACHE_CHECK([$1], [$2],
  536. [$2=no
  537. ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  538. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  539. lt_compiler_flag="$3"
  540. # Insert the option either (1) after the last *FLAGS variable, or
  541. # (2) before a word containing "conftest.", or (3) at the end.
  542. # Note that $ac_compile itself does not contain backslashes and begins
  543. # with a dollar sign (not a hyphen), so the echo should work correctly.
  544. # The option is referenced via a variable to avoid confusing sed.
  545. lt_compile=`echo "$ac_compile" | $SED \
  546. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  547. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  548. -e 's:$: $lt_compiler_flag:'`
  549. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  550. (eval "$lt_compile" 2>conftest.err)
  551. ac_status=$?
  552. cat conftest.err >&AS_MESSAGE_LOG_FD
  553. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  554. if (exit $ac_status) && test -s "$ac_outfile"; then
  555. # The compiler can only warn and ignore the option if not recognized
  556. # So say no if there are warnings other than the usual output.
  557. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  558. $SED '/^$/d' conftest.err >conftest.er2
  559. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  560. $2=yes
  561. fi
  562. fi
  563. $rm conftest*
  564. ])
  565. if test x"[$]$2" = xyes; then
  566. ifelse([$5], , :, [$5])
  567. else
  568. ifelse([$6], , :, [$6])
  569. fi
  570. ])# AC_LIBTOOL_COMPILER_OPTION
  571. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  572. # [ACTION-SUCCESS], [ACTION-FAILURE])
  573. # ------------------------------------------------------------
  574. # Check whether the given compiler option works
  575. AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  576. [AC_CACHE_CHECK([$1], [$2],
  577. [$2=no
  578. save_LDFLAGS="$LDFLAGS"
  579. LDFLAGS="$LDFLAGS $3"
  580. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  581. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  582. # The linker can only warn and ignore the option if not recognized
  583. # So say no if there are warnings
  584. if test -s conftest.err; then
  585. # Append any errors to the config.log.
  586. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  587. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  588. $SED '/^$/d' conftest.err >conftest.er2
  589. if diff conftest.exp conftest.er2 >/dev/null; then
  590. $2=yes
  591. fi
  592. else
  593. $2=yes
  594. fi
  595. fi
  596. $rm conftest*
  597. LDFLAGS="$save_LDFLAGS"
  598. ])
  599. if test x"[$]$2" = xyes; then
  600. ifelse([$4], , :, [$4])
  601. else
  602. ifelse([$5], , :, [$5])
  603. fi
  604. ])# AC_LIBTOOL_LINKER_OPTION
  605. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  606. # --------------------------
  607. AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  608. [# find the maximum length of command line arguments
  609. AC_MSG_CHECKING([the maximum length of command line arguments])
  610. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  611. i=0
  612. teststring="ABCD"
  613. case $build_os in
  614. msdosdjgpp*)
  615. # On DJGPP, this test can blow up pretty badly due to problems in libc
  616. # (any single argument exceeding 2000 bytes causes a buffer overrun
  617. # during glob expansion). Even if it were fixed, the result of this
  618. # check would be larger than it should be.
  619. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  620. ;;
  621. gnu*)
  622. # Under GNU Hurd, this test is not required because there is
  623. # no limit to the length of command line arguments.
  624. # Libtool will interpret -1 as no limit whatsoever
  625. lt_cv_sys_max_cmd_len=-1;
  626. ;;
  627. cygwin* | mingw*)
  628. # On Win9x/ME, this test blows up -- it succeeds, but takes
  629. # about 5 minutes as the teststring grows exponentially.
  630. # Worse, since 9x/ME are not pre-emptively multitasking,
  631. # you end up with a "frozen" computer, even though with patience
  632. # the test eventually succeeds (with a max line length of 256k).
  633. # Instead, let's just punt: use the minimum linelength reported by
  634. # all of the supported platforms: 8192 (on NT/2K/XP).
  635. lt_cv_sys_max_cmd_len=8192;
  636. ;;
  637. amigaos*)
  638. # On AmigaOS with pdksh, this test takes hours, literally.
  639. # So we just punt and use a minimum line length of 8192.
  640. lt_cv_sys_max_cmd_len=8192;
  641. ;;
  642. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  643. # This has been around since 386BSD, at least. Likely further.
  644. if test -x /sbin/sysctl; then
  645. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  646. elif test -x /usr/sbin/sysctl; then
  647. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  648. else
  649. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  650. fi
  651. # And add a safety zone
  652. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  653. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  654. ;;
  655. osf*)
  656. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  657. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  658. # nice to cause kernel panics so lets avoid the loop below.
  659. # First set a reasonable default.
  660. lt_cv_sys_max_cmd_len=16384
  661. #
  662. if test -x /sbin/sysconfig; then
  663. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  664. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  665. esac
  666. fi
  667. ;;
  668. *)
  669. # If test is not a shell built-in, we'll probably end up computing a
  670. # maximum length that is only half of the actual maximum length, but
  671. # we can't tell.
  672. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  673. while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  674. = "XX$teststring") >/dev/null 2>&1 &&
  675. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  676. lt_cv_sys_max_cmd_len=$new_result &&
  677. test $i != 17 # 1/2 MB should be enough
  678. do
  679. i=`expr $i + 1`
  680. teststring=$teststring$teststring
  681. done
  682. teststring=
  683. # Add a significant safety factor because C++ compilers can tack on massive
  684. # amounts of additional arguments before passing them to the linker.
  685. # It appears as though 1/2 is a usable value.
  686. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  687. ;;
  688. esac
  689. ])
  690. if test -n $lt_cv_sys_max_cmd_len ; then
  691. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  692. else
  693. AC_MSG_RESULT(none)
  694. fi
  695. ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  696. # _LT_AC_CHECK_DLFCN
  697. # --------------------
  698. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  699. [AC_CHECK_HEADERS(dlfcn.h)dnl
  700. ])# _LT_AC_CHECK_DLFCN
  701. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  702. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  703. # ------------------------------------------------------------------
  704. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  705. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  706. if test "$cross_compiling" = yes; then :
  707. [$4]
  708. else
  709. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  710. lt_status=$lt_dlunknown
  711. cat > conftest.$ac_ext <<EOF
  712. [#line __oline__ "configure"
  713. #include "confdefs.h"
  714. #if HAVE_DLFCN_H
  715. #include <dlfcn.h>
  716. #endif
  717. #include <stdio.h>
  718. #ifdef RTLD_GLOBAL
  719. # define LT_DLGLOBAL RTLD_GLOBAL
  720. #else
  721. # ifdef DL_GLOBAL
  722. # define LT_DLGLOBAL DL_GLOBAL
  723. # else
  724. # define LT_DLGLOBAL 0
  725. # endif
  726. #endif
  727. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  728. find out it does not work in some platform. */
  729. #ifndef LT_DLLAZY_OR_NOW
  730. # ifdef RTLD_LAZY
  731. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  732. # else
  733. # ifdef DL_LAZY
  734. # define LT_DLLAZY_OR_NOW DL_LAZY
  735. # else
  736. # ifdef RTLD_NOW
  737. # define LT_DLLAZY_OR_NOW RTLD_NOW
  738. # else
  739. # ifdef DL_NOW
  740. # define LT_DLLAZY_OR_NOW DL_NOW
  741. # else
  742. # define LT_DLLAZY_OR_NOW 0
  743. # endif
  744. # endif
  745. # endif
  746. # endif
  747. #endif
  748. #ifdef __cplusplus
  749. extern "C" void exit (int);
  750. #endif
  751. void fnord() { int i=42;}
  752. int main ()
  753. {
  754. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  755. int status = $lt_dlunknown;
  756. if (self)
  757. {
  758. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  759. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  760. /* dlclose (self); */
  761. }
  762. exit (status);
  763. }]
  764. EOF
  765. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  766. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  767. lt_status=$?
  768. case x$lt_status in
  769. x$lt_dlno_uscore) $1 ;;
  770. x$lt_dlneed_uscore) $2 ;;
  771. x$lt_unknown|x*) $3 ;;
  772. esac
  773. else :
  774. # compilation failed
  775. $3
  776. fi
  777. fi
  778. rm -fr conftest*
  779. ])# _LT_AC_TRY_DLOPEN_SELF
  780. # AC_LIBTOOL_DLOPEN_SELF
  781. # -------------------
  782. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  783. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  784. if test "x$enable_dlopen" != xyes; then
  785. enable_dlopen=unknown
  786. enable_dlopen_self=unknown
  787. enable_dlopen_self_static=unknown
  788. else
  789. lt_cv_dlopen=no
  790. lt_cv_dlopen_libs=
  791. case $host_os in
  792. beos*)
  793. lt_cv_dlopen="load_add_on"
  794. lt_cv_dlopen_libs=
  795. lt_cv_dlopen_self=yes
  796. ;;
  797. mingw* | pw32*)
  798. lt_cv_dlopen="LoadLibrary"
  799. lt_cv_dlopen_libs=
  800. ;;
  801. cygwin*)
  802. lt_cv_dlopen="dlopen"
  803. lt_cv_dlopen_libs=
  804. ;;
  805. darwin*)
  806. # if libdl is installed we need to link against it
  807. AC_CHECK_LIB([dl], [dlopen],
  808. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  809. lt_cv_dlopen="dyld"
  810. lt_cv_dlopen_libs=
  811. lt_cv_dlopen_self=yes
  812. ])
  813. ;;
  814. *)
  815. AC_CHECK_FUNC([shl_load],
  816. [lt_cv_dlopen="shl_load"],
  817. [AC_CHECK_LIB([dld], [shl_load],
  818. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  819. [AC_CHECK_FUNC([dlopen],
  820. [lt_cv_dlopen="dlopen"],
  821. [AC_CHECK_LIB([dl], [dlopen],
  822. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  823. [AC_CHECK_LIB([svld], [dlopen],
  824. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  825. [AC_CHECK_LIB([dld], [dld_link],
  826. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  827. ])
  828. ])
  829. ])
  830. ])
  831. ])
  832. ;;
  833. esac
  834. if test "x$lt_cv_dlopen" != xno; then
  835. enable_dlopen=yes
  836. else
  837. enable_dlopen=no
  838. fi
  839. case $lt_cv_dlopen in
  840. dlopen)
  841. save_CPPFLAGS="$CPPFLAGS"
  842. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  843. save_LDFLAGS="$LDFLAGS"
  844. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  845. save_LIBS="$LIBS"
  846. LIBS="$lt_cv_dlopen_libs $LIBS"
  847. AC_CACHE_CHECK([whether a program can dlopen itself],
  848. lt_cv_dlopen_self, [dnl
  849. _LT_AC_TRY_DLOPEN_SELF(
  850. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  851. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  852. ])
  853. if test "x$lt_cv_dlopen_self" = xyes; then
  854. LDFLAGS="$LDFLAGS $link_static_flag"
  855. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  856. lt_cv_dlopen_self_static, [dnl
  857. _LT_AC_TRY_DLOPEN_SELF(
  858. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  859. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  860. ])
  861. fi
  862. CPPFLAGS="$save_CPPFLAGS"
  863. LDFLAGS="$save_LDFLAGS"
  864. LIBS="$save_LIBS"
  865. ;;
  866. esac
  867. case $lt_cv_dlopen_self in
  868. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  869. *) enable_dlopen_self=unknown ;;
  870. esac
  871. case $lt_cv_dlopen_self_static in
  872. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  873. *) enable_dlopen_self_static=unknown ;;
  874. esac
  875. fi
  876. ])# AC_LIBTOOL_DLOPEN_SELF
  877. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  878. # ---------------------------------
  879. # Check to see if options -c and -o are simultaneously supported by compiler
  880. AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  881. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  882. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  883. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  884. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  885. $rm -r conftest 2>/dev/null
  886. mkdir conftest
  887. cd conftest
  888. mkdir out
  889. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  890. lt_compiler_flag="-o out/conftest2.$ac_objext"
  891. # Insert the option either (1) after the last *FLAGS variable, or
  892. # (2) before a word containing "conftest.", or (3) at the end.
  893. # Note that $ac_compile itself does not contain backslashes and begins
  894. # with a dollar sign (not a hyphen), so the echo should work correctly.
  895. lt_compile=`echo "$ac_compile" | $SED \
  896. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  897. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  898. -e 's:$: $lt_compiler_flag:'`
  899. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  900. (eval "$lt_compile" 2>out/conftest.err)
  901. ac_status=$?
  902. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  903. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  904. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  905. then
  906. # The compiler can only warn and ignore the option if not recognized
  907. # So say no if there are warnings
  908. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  909. $SED '/^$/d' out/conftest.err >out/conftest.er2
  910. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  911. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  912. fi
  913. fi
  914. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  915. $rm conftest*
  916. # SGI C++ compiler will create directory out/ii_files/ for
  917. # template instantiation
  918. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  919. $rm out/* && rmdir out
  920. cd ..
  921. rmdir conftest
  922. $rm conftest*
  923. ])
  924. ])# AC_LIBTOOL_PROG_CC_C_O
  925. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  926. # -----------------------------------------
  927. # Check to see if we can do hard links to lock some files if needed
  928. AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  929. [AC_REQUIRE([_LT_AC_LOCK])dnl
  930. hard_links="nottested"
  931. if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  932. # do not overwrite the value of need_locks provided by the user
  933. AC_MSG_CHECKING([if we can lock with hard links])
  934. hard_links=yes
  935. $rm conftest*
  936. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  937. touch conftest.a
  938. ln conftest.a conftest.b 2>&5 || hard_links=no
  939. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  940. AC_MSG_RESULT([$hard_links])
  941. if test "$hard_links" = no; then
  942. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  943. need_locks=warn
  944. fi
  945. else
  946. need_locks=no
  947. fi
  948. ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  949. # AC_LIBTOOL_OBJDIR
  950. # -----------------
  951. AC_DEFUN([AC_LIBTOOL_OBJDIR],
  952. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  953. [rm -f .libs 2>/dev/null
  954. mkdir .libs 2>/dev/null
  955. if test -d .libs; then
  956. lt_cv_objdir=.libs
  957. else
  958. # MS-DOS does not allow filenames that begin with a dot.
  959. lt_cv_objdir=_libs
  960. fi
  961. rmdir .libs 2>/dev/null])
  962. objdir=$lt_cv_objdir
  963. ])# AC_LIBTOOL_OBJDIR
  964. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  965. # ----------------------------------------------
  966. # Check hardcoding attributes.
  967. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  968. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  969. _LT_AC_TAGVAR(hardcode_action, $1)=
  970. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  971. test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  972. test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  973. # We can hardcode non-existant directories.
  974. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  975. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  976. # have to relink, otherwise we might link with an installed library
  977. # when we should be linking with a yet-to-be-installed one
  978. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  979. test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  980. # Linking always hardcodes the temporary library directory.
  981. _LT_AC_TAGVAR(hardcode_action, $1)=relink
  982. else
  983. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  984. _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  985. fi
  986. else
  987. # We cannot hardcode anything, or else we can only hardcode existing
  988. # directories.
  989. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  990. fi
  991. AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  992. if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  993. # Fast installation is not supported
  994. enable_fast_install=no
  995. elif test "$shlibpath_overrides_runpath" = yes ||
  996. test "$enable_shared" = no; then
  997. # Fast installation is not necessary
  998. enable_fast_install=needless
  999. fi
  1000. ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1001. # AC_LIBTOOL_SYS_LIB_STRIP
  1002. # ------------------------
  1003. AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1004. [striplib=
  1005. old_striplib=
  1006. AC_MSG_CHECKING([whether stripping libraries is possible])
  1007. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1008. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1009. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1010. AC_MSG_RESULT([yes])
  1011. else
  1012. # FIXME - insert some real tests, host_os isn't really good enough
  1013. case $host_os in
  1014. darwin*)
  1015. if test -n "$STRIP" ; then
  1016. striplib="$STRIP -x"
  1017. AC_MSG_RESULT([yes])
  1018. else
  1019. AC_MSG_RESULT([no])
  1020. fi
  1021. ;;
  1022. *)
  1023. AC_MSG_RESULT([no])
  1024. ;;
  1025. esac
  1026. fi
  1027. ])# AC_LIBTOOL_SYS_LIB_STRIP
  1028. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1029. # -----------------------------
  1030. # PORTME Fill in your ld.so characteristics
  1031. AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1032. [AC_MSG_CHECKING([dynamic linker characteristics])
  1033. library_names_spec=
  1034. libname_spec='lib$name'
  1035. soname_spec=
  1036. shrext_cmds=".so"
  1037. postinstall_cmds=
  1038. postuninstall_cmds=
  1039. finish_cmds=
  1040. finish_eval=
  1041. shlibpath_var=
  1042. shlibpath_overrides_runpath=unknown
  1043. version_type=none
  1044. dynamic_linker="$host_os ld.so"
  1045. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1046. if test "$GCC" = yes; then
  1047. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1048. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  1049. # if the path contains ";" then we assume it to be the separator
  1050. # otherwise default to the standard path separator (i.e. ":") - it is
  1051. # assumed that no part of a normal pathname contains ";" but that should
  1052. # okay in the real world where ";" in dirpaths is itself problematic.
  1053. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1054. else
  1055. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1056. fi
  1057. else
  1058. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1059. fi
  1060. need_lib_prefix=unknown
  1061. hardcode_into_libs=no
  1062. # when you set need_version to no, make sure it does not cause -set_version
  1063. # flags to be left without arguments
  1064. need_version=unknown
  1065. case $host_os in
  1066. aix3*)
  1067. version_type=linux
  1068. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1069. shlibpath_var=LIBPATH
  1070. # AIX 3 has no versioning support, so we append a major version to the name.
  1071. soname_spec='${libname}${release}${shared_ext}$major'
  1072. ;;
  1073. aix4* | aix5*)
  1074. version_type=linux
  1075. need_lib_prefix=no
  1076. need_version=no
  1077. hardcode_into_libs=yes
  1078. if test "$host_cpu" = ia64; then
  1079. # AIX 5 supports IA64
  1080. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1081. shlibpath_var=LD_LIBRARY_PATH
  1082. else
  1083. # With GCC up to 2.95.x, collect2 would create an import file
  1084. # for dependence libraries. The import file would start with
  1085. # the line `#! .'. This would cause the generated library to
  1086. # depend on `.', always an invalid library. This was fixed in
  1087. # development snapshots of GCC prior to 3.0.
  1088. case $host_os in
  1089. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1090. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1091. echo ' yes '
  1092. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1093. :
  1094. else
  1095. can_build_shared=no
  1096. fi
  1097. ;;
  1098. esac
  1099. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1100. # soname into executable. Probably we can add versioning support to
  1101. # collect2, so additional links can be useful in future.
  1102. if test "$aix_use_runtimelinking" = yes; then
  1103. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1104. # instead of lib<name>.a to let people know that these are not
  1105. # typical AIX shared libraries.
  1106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1107. else
  1108. # We preserve .a as extension for shared libraries through AIX4.2
  1109. # and later when we are not doing run time linking.
  1110. library_names_spec='${libname}${release}.a $libname.a'
  1111. soname_spec='${libname}${release}${shared_ext}$major'
  1112. fi
  1113. shlibpath_var=LIBPATH
  1114. fi
  1115. ;;
  1116. amigaos*)
  1117. library_names_spec='$libname.ixlibrary $libname.a'
  1118. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1119. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  1120. ;;
  1121. beos*)
  1122. library_names_spec='${libname}${shared_ext}'
  1123. dynamic_linker="$host_os ld.so"
  1124. shlibpath_var=LIBRARY_PATH
  1125. ;;
  1126. bsdi[[45]]*)
  1127. version_type=linux
  1128. need_version=no
  1129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1130. soname_spec='${libname}${release}${shared_ext}$major'
  1131. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1132. shlibpath_var=LD_LIBRARY_PATH
  1133. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1134. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1135. # the default ld.so.conf also contains /usr/contrib/lib and
  1136. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1137. # libtool to hard-code these into programs
  1138. ;;
  1139. cygwin* | mingw* | pw32*)
  1140. version_type=windows
  1141. shrext_cmds=".dll"
  1142. need_version=no
  1143. need_lib_prefix=no
  1144. case $GCC,$host_os in
  1145. yes,cygwin* | yes,mingw* | yes,pw32*)
  1146. library_names_spec='$libname.dll.a'
  1147. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1148. postinstall_cmds='base_file=`basename \${file}`~
  1149. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1150. dldir=$destdir/`dirname \$dlpath`~
  1151. test -d \$dldir || mkdir -p \$dldir~
  1152. $install_prog $dir/$dlname \$dldir/$dlname~
  1153. chmod a+x \$dldir/$dlname'
  1154. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1155. dlpath=$dir/\$dldll~
  1156. $rm \$dlpath'
  1157. shlibpath_overrides_runpath=yes
  1158. case $host_os in
  1159. cygwin*)
  1160. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1161. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1162. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1163. ;;
  1164. mingw*)
  1165. # MinGW DLLs use traditional 'lib' prefix
  1166. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1167. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1168. if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1169. # It is most probably a Windows format PATH printed by
  1170. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1171. # path with ; separators, and with drive letters. We can handle the
  1172. # drive letters (cygwin fileutils understands them), so leave them,
  1173. # especially as we might pass files found there to a mingw objdump,
  1174. # which wouldn't understand a cygwinified path. Ahh.
  1175. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1176. else
  1177. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1178. fi
  1179. ;;
  1180. pw32*)
  1181. # pw32 DLLs use 'pw' prefix rather than 'lib'
  1182. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1183. ;;
  1184. esac
  1185. ;;
  1186. *)
  1187. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1188. ;;
  1189. esac
  1190. dynamic_linker='Win32 ld.exe'
  1191. # FIXME: first we should search . and the directory the executable is in
  1192. shlibpath_var=PATH
  1193. ;;
  1194. darwin* | rhapsody*)
  1195. dynamic_linker="$host_os dyld"
  1196. version_type=darwin
  1197. need_lib_prefix=no
  1198. need_version=no
  1199. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1200. soname_spec='${libname}${release}${major}$shared_ext'
  1201. shlibpath_overrides_runpath=yes
  1202. shlibpath_var=DYLD_LIBRARY_PATH
  1203. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1204. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1205. if test "$GCC" = yes; then
  1206. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  1207. else
  1208. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  1209. fi
  1210. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1211. ;;
  1212. dgux*)
  1213. version_type=linux
  1214. need_lib_prefix=no
  1215. need_version=no
  1216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1217. soname_spec='${libname}${release}${shared_ext}$major'
  1218. shlibpath_var=LD_LIBRARY_PATH
  1219. ;;
  1220. freebsd1*)
  1221. dynamic_linker=no
  1222. ;;
  1223. kfreebsd*-gnu)
  1224. version_type=linux
  1225. need_lib_prefix=no
  1226. need_version=no
  1227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1228. soname_spec='${libname}${release}${shared_ext}$major'
  1229. shlibpath_var=LD_LIBRARY_PATH
  1230. shlibpath_overrides_runpath=no
  1231. hardcode_into_libs=yes
  1232. dynamic_linker='GNU ld.so'
  1233. ;;
  1234. freebsd* | dragonfly*)
  1235. # DragonFly does not have aout. When/if they implement a new
  1236. # versioning mechanism, adjust this.
  1237. if test -x /usr/bin/objformat; then
  1238. objformat=`/usr/bin/objformat`
  1239. else
  1240. case $host_os in
  1241. freebsd[[123]]*) objformat=aout ;;
  1242. *) objformat=elf ;;
  1243. esac
  1244. fi
  1245. version_type=freebsd-$objformat
  1246. case $version_type in
  1247. freebsd-elf*)
  1248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1249. need_version=no
  1250. need_lib_prefix=no
  1251. ;;
  1252. freebsd-*)
  1253. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1254. need_version=yes
  1255. ;;
  1256. esac
  1257. shlibpath_var=LD_LIBRARY_PATH
  1258. case $host_os in
  1259. freebsd2*)
  1260. shlibpath_overrides_runpath=yes
  1261. ;;
  1262. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1263. shlibpath_overrides_runpath=yes
  1264. hardcode_into_libs=yes
  1265. ;;
  1266. *) # from 3.2 on
  1267. shlibpath_overrides_runpath=no
  1268. hardcode_into_libs=yes
  1269. ;;
  1270. esac
  1271. ;;
  1272. gnu*)
  1273. version_type=linux
  1274. need_lib_prefix=no
  1275. need_version=no
  1276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1277. soname_spec='${libname}${release}${shared_ext}$major'
  1278. shlibpath_var=LD_LIBRARY_PATH
  1279. hardcode_into_libs=yes
  1280. ;;
  1281. hpux9* | hpux10* | hpux11*)
  1282. # Give a soname corresponding to the major version so that dld.sl refuses to
  1283. # link against other versions.
  1284. version_type=sunos
  1285. need_lib_prefix=no
  1286. need_version=no
  1287. case $host_cpu in
  1288. ia64*)
  1289. shrext_cmds='.so'
  1290. hardcode_into_libs=yes
  1291. dynamic_linker="$host_os dld.so"
  1292. shlibpath_var=LD_LIBRARY_PATH
  1293. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1295. soname_spec='${libname}${release}${shared_ext}$major'
  1296. if test "X$HPUX_IA64_MODE" = X32; then
  1297. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1298. else
  1299. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1300. fi
  1301. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1302. ;;
  1303. hppa*64*)
  1304. shrext_cmds='.sl'
  1305. hardcode_into_libs=yes
  1306. dynamic_linker="$host_os dld.sl"
  1307. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1308. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1310. soname_spec='${libname}${release}${shared_ext}$major'
  1311. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1312. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1313. ;;
  1314. *)
  1315. shrext_cmds='.sl'
  1316. dynamic_linker="$host_os dld.sl"
  1317. shlibpath_var=SHLIB_PATH
  1318. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1320. soname_spec='${libname}${release}${shared_ext}$major'
  1321. ;;
  1322. esac
  1323. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1324. postinstall_cmds='chmod 555 $lib'
  1325. ;;
  1326. irix5* | irix6* | nonstopux*)
  1327. case $host_os in
  1328. nonstopux*) version_type=nonstopux ;;
  1329. *)
  1330. if test "$lt_cv_prog_gnu_ld" = yes; then
  1331. version_type=linux
  1332. else
  1333. version_type=irix
  1334. fi ;;
  1335. esac
  1336. need_lib_prefix=no
  1337. need_version=no
  1338. soname_spec='${libname}${release}${shared_ext}$major'
  1339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1340. case $host_os in
  1341. irix5* | nonstopux*)
  1342. libsuff= shlibsuff=
  1343. ;;
  1344. *)
  1345. case $LD in # libtool.m4 will add one of these switches to LD
  1346. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1347. libsuff= shlibsuff= libmagic=32-bit;;
  1348. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1349. libsuff=32 shlibsuff=N32 libmagic=N32;;
  1350. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1351. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1352. *) libsuff= shlibsuff= libmagic=never-match;;
  1353. esac
  1354. ;;
  1355. esac
  1356. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1357. shlibpath_overrides_runpath=no
  1358. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1359. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1360. hardcode_into_libs=yes
  1361. ;;
  1362. # No shared lib support for Linux oldld, aout, or coff.
  1363. linux*oldld* | linux*aout* | linux*coff*)
  1364. dynamic_linker=no
  1365. ;;
  1366. # This must be Linux ELF.
  1367. linux*)
  1368. version_type=linux
  1369. need_lib_prefix=no
  1370. need_version=no
  1371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1372. soname_spec='${libname}${release}${shared_ext}$major'
  1373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1374. shlibpath_var=LD_LIBRARY_PATH
  1375. shlibpath_overrides_runpath=no
  1376. # This implies no fast_install, which is unacceptable.
  1377. # Some rework will be needed to allow for fast_install
  1378. # before this can be enabled.
  1379. hardcode_into_libs=yes
  1380. # Append ld.so.conf contents to the search path
  1381. if test -f /etc/ld.so.conf; then
  1382. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1383. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1384. fi
  1385. # We used to test for /lib/ld.so.1 and disable shared libraries on
  1386. # powerpc, because MkLinux only supported shared libraries with the
  1387. # GNU dynamic linker. Since this was broken with cross compilers,
  1388. # most powerpc-linux boxes support dynamic linking these days and
  1389. # people can always --disable-shared, the test was removed, and we
  1390. # a…