PageRenderTime 67ms CodeModel.GetById 4ms RepoModel.GetById 0ms app.codeStats 1ms

/aclocal.m4

http://github.com/dreamcat4/php-fpm
m4 | 6882 lines | 4621 code | 714 blank | 1547 comment | 0 complexity | 78dd6097bbced3c4850bb19aa4b8654d MD5 | raw file

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

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

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