PageRenderTime 55ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/libmpeg2/aclocal.m4

http://github.com/xbmc/xbmc
m4 | 7575 lines | 5164 code | 766 blank | 1645 comment | 0 complexity | 2f35e7410b0db56091b36964133d95a9 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0

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

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

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