aclocal.m4
上传用户:wstnjxml
上传日期:2014-04-03
资源大小:7248k
文件大小:129k
源码类别:

Windows CE

开发平台:

C/C++

  1. dnl aclocal.m4 generated automatically by aclocal 1.4-p6
  2. dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl This program is distributed in the hope that it will be useful,
  7. dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. dnl PARTICULAR PURPOSE.
  10. # Do all the work for Automake.  This macro actually does too much --
  11. # some checks are only needed if your package does certain things.
  12. # But this isn't really a big deal.
  13. # serial 1
  14. dnl Usage:
  15. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  16. AC_DEFUN([AM_INIT_AUTOMAKE],
  17. [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  18. AC_REQUIRE([AC_PROG_INSTALL])
  19. PACKAGE=[$1]
  20. AC_SUBST(PACKAGE)
  21. VERSION=[$2]
  22. AC_SUBST(VERSION)
  23. dnl test to see if srcdir already configured
  24. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  25.   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  26. fi
  27. ifelse([$3],,
  28. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  29. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  30. AC_REQUIRE([AM_SANITY_CHECK])
  31. AC_REQUIRE([AC_ARG_PROGRAM])
  32. dnl FIXME This is truly gross.
  33. missing_dir=`cd $ac_aux_dir && pwd`
  34. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
  35. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  36. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
  37. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  38. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  39. AC_REQUIRE([AC_PROG_MAKE_SET])])
  40. # Copyright 2002  Free Software Foundation, Inc.
  41. # This program is free software; you can redistribute it and/or modify
  42. # it under the terms of the GNU General Public License as published by
  43. # the Free Software Foundation; either version 2, or (at your option)
  44. # any later version.
  45. # This program is distributed in the hope that it will be useful,
  46. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  47. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  48. # GNU General Public License for more details.
  49. # You should have received a copy of the GNU General Public License
  50. # along with this program; if not, write to the Free Software
  51. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  52. # AM_AUTOMAKE_VERSION(VERSION)
  53. # ----------------------------
  54. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  55. # generated from the m4 files accompanying Automake X.Y.
  56. AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
  57. # AM_SET_CURRENT_AUTOMAKE_VERSION
  58. # -------------------------------
  59. # Call AM_AUTOMAKE_VERSION so it can be traced.
  60. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  61. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  62.  [AM_AUTOMAKE_VERSION([1.4-p6])])
  63. #
  64. # Check to make sure that the build environment is sane.
  65. #
  66. AC_DEFUN([AM_SANITY_CHECK],
  67. [AC_MSG_CHECKING([whether build environment is sane])
  68. # Just in case
  69. sleep 1
  70. echo timestamp > conftestfile
  71. # Do `set' in a subshell so we don't clobber the current shell's
  72. # arguments.  Must try -L first in case configure is actually a
  73. # symlink; some systems play weird games with the mod time of symlinks
  74. # (eg FreeBSD returns the mod time of the symlink's containing
  75. # directory).
  76. if (
  77.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  78.    if test "[$]*" = "X"; then
  79.       # -L didn't work.
  80.       set X `ls -t $srcdir/configure conftestfile`
  81.    fi
  82.    if test "[$]*" != "X $srcdir/configure conftestfile" 
  83.       && test "[$]*" != "X conftestfile $srcdir/configure"; then
  84.       # If neither matched, then we have a broken ls.  This can happen
  85.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  86.       # broken ls alias from the environment.  This has actually
  87.       # happened.  Such a system could not be considered "sane".
  88.       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  89. alias in your environment])
  90.    fi
  91.    test "[$]2" = conftestfile
  92.    )
  93. then
  94.    # Ok.
  95.    :
  96. else
  97.    AC_MSG_ERROR([newly created file is older than distributed files!
  98. Check your system clock])
  99. fi
  100. rm -f conftest*
  101. AC_MSG_RESULT(yes)])
  102. dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  103. dnl The program must properly implement --version.
  104. AC_DEFUN([AM_MISSING_PROG],
  105. [AC_MSG_CHECKING(for working $2)
  106. # Run test in a subshell; some versions of sh will print an error if
  107. # an executable is not found, even if stderr is redirected.
  108. # Redirect stdin to placate older versions of autoconf.  Sigh.
  109. if ($2 --version) < /dev/null > /dev/null 2>&1; then
  110.    $1=$2
  111.    AC_MSG_RESULT(found)
  112. else
  113.    $1="$3/missing $2"
  114.    AC_MSG_RESULT(missing)
  115. fi
  116. AC_SUBST($1)])
  117. # Like AC_CONFIG_HEADER, but automatically create stamp file.
  118. AC_DEFUN([AM_CONFIG_HEADER],
  119. [AC_PREREQ([2.12])
  120. AC_CONFIG_HEADER([$1])
  121. dnl When config.status generates a header, we must update the stamp-h file.
  122. dnl This file resides in the same directory as the config header
  123. dnl that is generated.  We must strip everything past the first ":",
  124. dnl and everything past the last "/".
  125. AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  126. ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  127. <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^([^:]*/)?.*>>, <<1>>)stamp-h<<>>dnl>>,
  128. <<am_indx=1
  129. for am_file in <<$1>>; do
  130.   case " <<$>>CONFIG_HEADERS " in
  131.   *" <<$>>am_file "*<<)>>
  132.     echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  133.     ;;
  134.   esac
  135.   am_indx=`expr "<<$>>am_indx" + 1`
  136. done<<>>dnl>>)
  137. changequote([,]))])
  138. # Add --enable-maintainer-mode option to configure.
  139. # From Jim Meyering
  140. # serial 1
  141. AC_DEFUN([AM_MAINTAINER_MODE],
  142. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  143.   dnl maintainer-mode is disabled by default
  144.   AC_ARG_ENABLE(maintainer-mode,
  145. [  --enable-maintainer-mode enable make rules and dependencies not useful
  146.                           (and sometimes confusing) to the casual installer],
  147.       USE_MAINTAINER_MODE=$enableval,
  148.       USE_MAINTAINER_MODE=no)
  149.   AC_MSG_RESULT($USE_MAINTAINER_MODE)
  150.   AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
  151.   MAINT=$MAINTAINER_MODE_TRUE
  152.   AC_SUBST(MAINT)dnl
  153. ]
  154. )
  155. # Define a conditional.
  156. AC_DEFUN([AM_CONDITIONAL],
  157. [AC_SUBST($1_TRUE)
  158. AC_SUBST($1_FALSE)
  159. if $2; then
  160.   $1_TRUE=
  161.   $1_FALSE='#'
  162. else
  163.   $1_TRUE='#'
  164.   $1_FALSE=
  165. fi])
  166. # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  167. # serial 46 AC_PROG_LIBTOOL
  168. # Debian $Rev: 102 $
  169. AC_DEFUN([AC_PROG_LIBTOOL],
  170. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  171. # This can be used to rebuild libtool when needed
  172. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  173. # Always use our own libtool.
  174. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  175. AC_SUBST(LIBTOOL)dnl
  176. # Prevent multiple expansion
  177. define([AC_PROG_LIBTOOL], [])
  178. ])
  179. AC_DEFUN([AC_LIBTOOL_SETUP],
  180. [AC_PREREQ(2.13)dnl
  181. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  182. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  183. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  184. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  185. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  186. AC_REQUIRE([AC_PROG_CC])dnl
  187. AC_REQUIRE([AC_PROG_LD])dnl
  188. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  189. AC_REQUIRE([AC_PROG_NM])dnl
  190. AC_REQUIRE([LT_AC_PROG_SED])dnl
  191. AC_REQUIRE([AC_PROG_LN_S])dnl
  192. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  193. AC_REQUIRE([AC_OBJEXT])dnl
  194. AC_REQUIRE([AC_EXEEXT])dnl
  195. dnl
  196. _LT_AC_PROG_ECHO_BACKSLASH
  197. # Only perform the check for file, if the check method requires it
  198. case $deplibs_check_method in
  199. file_magic*)
  200.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  201.     AC_PATH_MAGIC
  202.   fi
  203.   ;;
  204. esac
  205. AC_CHECK_TOOL(RANLIB, ranlib, :)
  206. AC_CHECK_TOOL(STRIP, strip, :)
  207. ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  208. ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  209. enable_win32_dll=yes, enable_win32_dll=no)
  210. AC_ARG_ENABLE(libtool-lock,
  211.   [  --disable-libtool-lock  avoid locking (might break parallel builds)])
  212. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  213. # Some flags need to be propagated to the compiler or linker for good
  214. # libtool support.
  215. case $host in
  216. *-*-irix6*)
  217.   # Find out which ABI we are using.
  218.   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  219.   if AC_TRY_EVAL(ac_compile); then
  220.     case `/usr/bin/file conftest.$ac_objext` in
  221.     *32-bit*)
  222.       LD="${LD-ld} -32"
  223.       ;;
  224.     *N32*)
  225.       LD="${LD-ld} -n32"
  226.       ;;
  227.     *64-bit*)
  228.       LD="${LD-ld} -64"
  229.       ;;
  230.     esac
  231.   fi
  232.   rm -rf conftest*
  233.   ;;
  234. *-*-sco3.2v5*)
  235.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  236.   SAVE_CFLAGS="$CFLAGS"
  237.   CFLAGS="$CFLAGS -belf"
  238.   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  239.     [AC_LANG_SAVE
  240.      AC_LANG_C
  241.      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  242.      AC_LANG_RESTORE])
  243.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  244.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  245.     CFLAGS="$SAVE_CFLAGS"
  246.   fi
  247.   ;;
  248. ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  249. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  250.   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  251.   AC_CHECK_TOOL(AS, as, false)
  252.   AC_CHECK_TOOL(OBJDUMP, objdump, false)
  253.   # recent cygwin and mingw systems supply a stub DllMain which the user
  254.   # can override, but on older systems we have to supply one
  255.   AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
  256.     [AC_TRY_LINK([],
  257.       [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  258.       DllMain (0, 0, 0);],
  259.       [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
  260.   case $host/$CC in
  261.   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  262.     # old mingw systems require "-dll" to link a DLL, while more recent ones
  263.     # require "-mdll"
  264.     SAVE_CFLAGS="$CFLAGS"
  265.     CFLAGS="$CFLAGS -mdll"
  266.     AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
  267.       [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
  268.     CFLAGS="$SAVE_CFLAGS" ;;
  269.   *-*-cygwin* | *-*-pw32*)
  270.     # cygwin systems need to pass --dll to the linker, and not link
  271.     # crt.o which will require a WinMain@16 definition.
  272.     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  273.   esac
  274.   ;;
  275.   ])
  276. esac
  277. _LT_AC_LTCONFIG_HACK
  278. ])
  279. # AC_LIBTOOL_HEADER_ASSERT
  280. # ------------------------
  281. AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  282. [AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  283.     [lt_cv_func_assert_works],
  284.     [case $host in
  285.     *-*-solaris*)
  286.       if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  287.         case `$CC --version 2>/dev/null` in
  288.         [[12]].*) lt_cv_func_assert_works=no ;;
  289.         *)        lt_cv_func_assert_works=yes ;;
  290.         esac
  291.       fi
  292.       ;;
  293.     esac])
  294. if test "x$lt_cv_func_assert_works" = xyes; then
  295.   AC_CHECK_HEADERS(assert.h)
  296. fi
  297. ])# AC_LIBTOOL_HEADER_ASSERT
  298. # _LT_AC_CHECK_DLFCN
  299. # --------------------
  300. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  301. [AC_CHECK_HEADERS(dlfcn.h)
  302. ])# _LT_AC_CHECK_DLFCN
  303. # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  304. # ---------------------------------
  305. AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  306. [AC_REQUIRE([AC_CANONICAL_HOST])
  307. AC_REQUIRE([AC_PROG_NM])
  308. AC_REQUIRE([AC_OBJEXT])
  309. # Check for command to grab the raw symbol name followed by C symbol from nm.
  310. AC_MSG_CHECKING([command to parse $NM output])
  311. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
  312. # These are sane defaults that work on at least a few old systems.
  313. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  314. # Character class describing NM global symbol codes.
  315. symcode='[[BCDEGRST]]'
  316. # Regexp to match symbols that can be accessed directly from C.
  317. sympat='([[_A-Za-z]][[_A-Za-z0-9]]*)'
  318. # Transform the above into a raw symbol and a C symbol.
  319. symxfrm='1 23 3'
  320. # Transform an extracted symbol line into a proper C declaration
  321. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* (.*)$/extern char 1;/p'"
  322. # Transform an extracted symbol line into symbol name and symbol address
  323. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: ([[^ ]]*) $/  {\"1\", (lt_ptr) 0},/p' -e 's/^$symcode ([[^ ]]*) ([[^ ]]*)$/  {"2", (lt_ptr) &2},/p'"
  324. # Define system-specific variables.
  325. case $host_os in
  326. aix*)
  327.   symcode='[[BCDT]]'
  328.   ;;
  329. cygwin* | mingw* | pw32*)
  330.   symcode='[[ABCDGISTW]]'
  331.   ;;
  332. hpux*) # Its linker distinguishes data from code symbols
  333.   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* (.*)$/extern char 1();/p' -e 's/^$symcode* .* (.*)$/extern char 1;/p'"
  334.   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: ([[^ ]]*) $/  {\"1\", (lt_ptr) 0},/p' -e 's/^$symcode* ([[^ ]]*) ([[^ ]]*)$/  {"2", (lt_ptr) &2},/p'"
  335.   ;;
  336. irix* | nonstopux*)
  337.   symcode='[[BCDEGRST]]'
  338.   ;;
  339. osf*)
  340.   symcode='[[BCDEGQRST]]'
  341.   ;;
  342. solaris* | sysv5*)
  343.   symcode='[[BDT]]'
  344.   ;;
  345. sysv4)
  346.   symcode='[[DFNSTU]]'
  347.   ;;
  348. esac
  349. # Handle CRLF in mingw tool chain
  350. opt_cr=
  351. case $host_os in
  352. mingw*)
  353.   opt_cr=`echo 'x{0,1}' | tr x '15'` # option cr in regexp
  354.   ;;
  355. esac
  356. # If we're using GNU nm, then use its standard symbol codes.
  357. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  358.   symcode='[[ABCDGISTW]]'
  359. fi
  360. # Try without a prefix undercore, then with it.
  361. for ac_symprfx in "" "_"; do
  362.   # Write the raw and C identifiers.
  363. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[  ]]($symcode$symcode*)[[  ]][[  ]]*($ac_symprfx)$sympat$opt_cr$/$symxfrm/p'"
  364.   # Check to see that the pipe works correctly.
  365.   pipe_works=no
  366.   rm -f conftest*
  367.   cat > conftest.$ac_ext <<EOF
  368. #ifdef __cplusplus
  369. extern "C" {
  370. #endif
  371. char nm_test_var;
  372. void nm_test_func(){}
  373. #ifdef __cplusplus
  374. }
  375. #endif
  376. int main(){nm_test_var='a';nm_test_func();return(0);}
  377. EOF
  378.   if AC_TRY_EVAL(ac_compile); then
  379.     # Now try to grab the symbols.
  380.     nlist=conftest.nm
  381.     if AC_TRY_EVAL(NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist) && test -s "$nlist"; then
  382.       # Try sorting and uniquifying the output.
  383.       if sort "$nlist" | uniq > "$nlist"T; then
  384. mv -f "$nlist"T "$nlist"
  385.       else
  386. rm -f "$nlist"T
  387.       fi
  388.       # Make sure that we snagged all the symbols we need.
  389.       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  390. if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  391.   cat <<EOF > conftest.$ac_ext
  392. #ifdef __cplusplus
  393. extern "C" {
  394. #endif
  395. EOF
  396.   # Now generate the symbol file.
  397.   eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  398.   cat <<EOF >> conftest.$ac_ext
  399. #if defined (__STDC__) && __STDC__
  400. # define lt_ptr void *
  401. #else
  402. # define lt_ptr char *
  403. # define const
  404. #endif
  405. /* The mapping between symbol names and symbols. */
  406. const struct {
  407.   const char *name;
  408.   lt_ptr address;
  409. }
  410. lt_preloaded_symbols[[]] =
  411. {
  412. EOF
  413.   sed "s/^$symcode$symcode* (.*) (.*)$/  {"2", (lt_ptr) &2},/" < "$nlist" >> conftest.$ac_ext
  414.   cat <<EOF >> conftest.$ac_ext
  415.   {0, (lt_ptr) 0}
  416. };
  417. #ifdef __cplusplus
  418. }
  419. #endif
  420. EOF
  421.   # Now try linking the two files.
  422.   mv conftest.$ac_objext conftstm.$ac_objext
  423.   save_LIBS="$LIBS"
  424.   save_CFLAGS="$CFLAGS"
  425.   LIBS="conftstm.$ac_objext"
  426.   CFLAGS="$CFLAGS$no_builtin_flag"
  427.   if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  428.     pipe_works=yes
  429.   fi
  430.   LIBS="$save_LIBS"
  431.   CFLAGS="$save_CFLAGS"
  432. else
  433.   echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
  434. fi
  435.       else
  436. echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
  437.       fi
  438.     else
  439.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
  440.     fi
  441.   else
  442.     echo "$progname: failed program was:" >&AC_FD_CC
  443.     cat conftest.$ac_ext >&5
  444.   fi
  445.   rm -f conftest* conftst*
  446.   # Do not use the global_symbol_pipe unless it works.
  447.   if test "$pipe_works" = yes; then
  448.     break
  449.   else
  450.     lt_cv_sys_global_symbol_pipe=
  451.   fi
  452. done
  453. ])
  454. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  455. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  456.   global_symbol_to_cdecl=
  457.   global_symbol_to_c_name_address=
  458. else
  459.   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  460.   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  461. fi
  462. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  463. then
  464.   AC_MSG_RESULT(failed)
  465. else
  466.   AC_MSG_RESULT(ok)
  467. fi
  468. ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  469. # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  470. # ---------------------------------
  471. AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
  472. [# Find the correct PATH separator.  Usually this is `:', but
  473. # DJGPP uses `;' like DOS.
  474. if test "X${PATH_SEPARATOR+set}" != Xset; then
  475.   UNAME=${UNAME-`uname 2>/dev/null`}
  476.   case X$UNAME in
  477.     *-DOS) lt_cv_sys_path_separator=';' ;;
  478.     *)     lt_cv_sys_path_separator=':' ;;
  479.   esac
  480.   PATH_SEPARATOR=$lt_cv_sys_path_separator
  481. fi
  482. ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  483. # _LT_AC_PROG_ECHO_BACKSLASH
  484. # --------------------------
  485. # Add some code to the start of the generated configure script which
  486. # will find an echo command which doesn't interpret backslashes.
  487. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  488. [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  489.       [AC_DIVERT_PUSH(NOTICE)])
  490. _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  491. # Check that we are running under the correct shell.
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. case X$ECHO in
  494. X*--fallback-echo)
  495.   # Remove one level of quotation (which was required for Make).
  496.   ECHO=`echo "$ECHO" | sed 's,\\[$]\[$]0,'[$]0','`
  497.   ;;
  498. esac
  499. echo=${ECHO-echo}
  500. if test "X[$]1" = X--no-reexec; then
  501.   # Discard the --no-reexec flag, and continue.
  502.   shift
  503. elif test "X[$]1" = X--fallback-echo; then
  504.   # Avoid inline document here, it may be left over
  505.   :
  506. elif test "X`($echo 't') 2>/dev/null`" = 'Xt'; then
  507.   # Yippee, $echo works!
  508.   :
  509. else
  510.   # Restart under the correct shell.
  511.   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  512. fi
  513. if test "X[$]1" = X--fallback-echo; then
  514.   # used as fallback echo
  515.   shift
  516.   cat <<EOF
  517. $*
  518. EOF
  519.   exit 0
  520. fi
  521. # The HP-UX ksh and POSIX shell print the target directory to stdout
  522. # if CDPATH is set.
  523. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  524. if test -z "$ECHO"; then
  525. if test "X${echo_test_string+set}" != Xset; then
  526. # find a string as large as possible, as long as the shell can cope with it
  527.   for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  528.     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  529.     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  530.        echo_test_string="`eval $cmd`" &&
  531.        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  532.     then
  533.       break
  534.     fi
  535.   done
  536. fi
  537. if test "X`($echo 't') 2>/dev/null`" = 'Xt' &&
  538.    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  539.    test "X$echo_testing_string" = "X$echo_test_string"; then
  540.   :
  541. else
  542.   # The Solaris, AIX, and Digital Unix default echo programs unquote
  543.   # backslashes.  This makes it impossible to quote backslashes using
  544.   #   echo "$something" | sed 's/\/\\/g'
  545.   #
  546.   # So, first we look for a working echo in the user's PATH.
  547.   IFS="${IFS=  }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  548.   for dir in $PATH /usr/ucb; do
  549.     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  550.        test "X`($dir/echo 't') 2>/dev/null`" = 'Xt' &&
  551.        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  552.        test "X$echo_testing_string" = "X$echo_test_string"; then
  553.       echo="$dir/echo"
  554.       break
  555.     fi
  556.   done
  557.   IFS="$save_ifs"
  558.   if test "X$echo" = Xecho; then
  559.     # We didn't find a better echo, so look for alternatives.
  560.     if test "X`(print -r 't') 2>/dev/null`" = 'Xt' &&
  561.        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  562.        test "X$echo_testing_string" = "X$echo_test_string"; then
  563.       # This shell has a builtin print -r that does the trick.
  564.       echo='print -r'
  565.     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  566.  test "X$CONFIG_SHELL" != X/bin/ksh; then
  567.       # If we have ksh, try running configure again with it.
  568.       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  569.       export ORIGINAL_CONFIG_SHELL
  570.       CONFIG_SHELL=/bin/ksh
  571.       export CONFIG_SHELL
  572.       exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  573.     else
  574.       # Try using printf.
  575.       echo='printf %sn'
  576.       if test "X`($echo 't') 2>/dev/null`" = 'Xt' &&
  577.  echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  578.  test "X$echo_testing_string" = "X$echo_test_string"; then
  579. # Cool, printf works
  580. :
  581.       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo 't') 2>/dev/null` &&
  582.    test "X$echo_testing_string" = 'Xt' &&
  583.    echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  584.    test "X$echo_testing_string" = "X$echo_test_string"; then
  585. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  586. export CONFIG_SHELL
  587. SHELL="$CONFIG_SHELL"
  588. export SHELL
  589. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  590.       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo 't') 2>/dev/null` &&
  591.    test "X$echo_testing_string" = 'Xt' &&
  592.    echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  593.    test "X$echo_testing_string" = "X$echo_test_string"; then
  594. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  595.       else
  596. # maybe with a smaller string...
  597. prev=:
  598. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  599.   if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  600.   then
  601.     break
  602.   fi
  603.   prev="$cmd"
  604. done
  605. if test "$prev" != 'sed 50q "[$]0"'; then
  606.   echo_test_string=`eval $prev`
  607.   export echo_test_string
  608.   exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  609. else
  610.   # Oops.  We lost completely, so just stick with echo.
  611.   echo=echo
  612. fi
  613.       fi
  614.     fi
  615.   fi
  616. fi
  617. fi
  618. # Copy echo and quote the copy suitably for passing to libtool from
  619. # the Makefile, instead of quoting the original, which is used later.
  620. ECHO=$echo
  621. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  622.    ECHO="$CONFIG_SHELL \$[$]0 --fallback-echo"
  623. fi
  624. AC_SUBST(ECHO)
  625. AC_DIVERT_POP
  626. ])# _LT_AC_PROG_ECHO_BACKSLASH
  627. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  628. #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  629. # ------------------------------------------------------------------
  630. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  631. [if test "$cross_compiling" = yes; then :
  632.   [$4]
  633. else
  634.   AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  635.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  636.   lt_status=$lt_dlunknown
  637.   cat > conftest.$ac_ext <<EOF
  638. [#line __oline__ "configure"
  639. #include "confdefs.h"
  640. #if HAVE_DLFCN_H
  641. #include <dlfcn.h>
  642. #endif
  643. #include <stdio.h>
  644. #ifdef RTLD_GLOBAL
  645. #  define LT_DLGLOBAL RTLD_GLOBAL
  646. #else
  647. #  ifdef DL_GLOBAL
  648. #    define LT_DLGLOBAL DL_GLOBAL
  649. #  else
  650. #    define LT_DLGLOBAL 0
  651. #  endif
  652. #endif
  653. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  654.    find out it does not work in some platform. */
  655. #ifndef LT_DLLAZY_OR_NOW
  656. #  ifdef RTLD_LAZY
  657. #    define LT_DLLAZY_OR_NOW RTLD_LAZY
  658. #  else
  659. #    ifdef DL_LAZY
  660. #      define LT_DLLAZY_OR_NOW DL_LAZY
  661. #    else
  662. #      ifdef RTLD_NOW
  663. #        define LT_DLLAZY_OR_NOW RTLD_NOW
  664. #      else
  665. #        ifdef DL_NOW
  666. #          define LT_DLLAZY_OR_NOW DL_NOW
  667. #        else
  668. #          define LT_DLLAZY_OR_NOW 0
  669. #        endif
  670. #      endif
  671. #    endif
  672. #  endif
  673. #endif
  674. #ifdef __cplusplus
  675. extern "C" void exit (int);
  676. #endif
  677. void fnord() { int i=42;}
  678. int main ()
  679. {
  680.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  681.   int status = $lt_dlunknown;
  682.   if (self)
  683.     {
  684.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  685.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  686.       /* dlclose (self); */
  687.     }
  688.     exit (status);
  689. }]
  690. EOF
  691.   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  692.     (./conftest; exit; ) 2>/dev/null
  693.     lt_status=$?
  694.     case x$lt_status in
  695.       x$lt_dlno_uscore) $1 ;;
  696.       x$lt_dlneed_uscore) $2 ;;
  697.       x$lt_unknown|x*) $3 ;;
  698.     esac
  699.   else :
  700.     # compilation failed
  701.     $3
  702.   fi
  703. fi
  704. rm -fr conftest*
  705. ])# _LT_AC_TRY_DLOPEN_SELF
  706. # AC_LIBTOOL_DLOPEN_SELF
  707. # -------------------
  708. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  709. [if test "x$enable_dlopen" != xyes; then
  710.   enable_dlopen=unknown
  711.   enable_dlopen_self=unknown
  712.   enable_dlopen_self_static=unknown
  713. else
  714.   lt_cv_dlopen=no
  715.   lt_cv_dlopen_libs=
  716.   case $host_os in
  717.   beos*)
  718.     lt_cv_dlopen="load_add_on"
  719.     lt_cv_dlopen_libs=
  720.     lt_cv_dlopen_self=yes
  721.     ;;
  722.   cygwin* | mingw* | pw32*)
  723.     lt_cv_dlopen="LoadLibrary"
  724.     lt_cv_dlopen_libs=
  725.    ;;
  726.   *)
  727.     AC_CHECK_FUNC([shl_load],
  728.           [lt_cv_dlopen="shl_load"],
  729.       [AC_CHECK_LIB([dld], [shl_load],
  730.             [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  731. [AC_CHECK_FUNC([dlopen],
  732.       [lt_cv_dlopen="dlopen"],
  733.   [AC_CHECK_LIB([dl], [dlopen],
  734.         [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  735.     [AC_CHECK_LIB([svld], [dlopen],
  736.           [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  737.       [AC_CHECK_LIB([dld], [dld_link],
  738.             [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  739.       ])
  740.     ])
  741.   ])
  742. ])
  743.       ])
  744.     ;;
  745.   esac
  746.   if test "x$lt_cv_dlopen" != xno; then
  747.     enable_dlopen=yes
  748.   else
  749.     enable_dlopen=no
  750.   fi
  751.   case $lt_cv_dlopen in
  752.   dlopen)
  753.     save_CPPFLAGS="$CPPFLAGS"
  754.     AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  755.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  756.     save_LDFLAGS="$LDFLAGS"
  757.     eval LDFLAGS="$LDFLAGS $export_dynamic_flag_spec"
  758.     save_LIBS="$LIBS"
  759.     LIBS="$lt_cv_dlopen_libs $LIBS"
  760.     AC_CACHE_CHECK([whether a program can dlopen itself],
  761.   lt_cv_dlopen_self, [dnl
  762.   _LT_AC_TRY_DLOPEN_SELF(
  763.     lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  764.     lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  765.     ])
  766.     if test "x$lt_cv_dlopen_self" = xyes; then
  767.       LDFLAGS="$LDFLAGS $link_static_flag"
  768.       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  769.        lt_cv_dlopen_self_static, [dnl
  770.   _LT_AC_TRY_DLOPEN_SELF(
  771.     lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  772.     lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  773.       ])
  774.     fi
  775.     CPPFLAGS="$save_CPPFLAGS"
  776.     LDFLAGS="$save_LDFLAGS"
  777.     LIBS="$save_LIBS"
  778.     ;;
  779.   esac
  780.   case $lt_cv_dlopen_self in
  781.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  782.   *) enable_dlopen_self=unknown ;;
  783.   esac
  784.   case $lt_cv_dlopen_self_static in
  785.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  786.   *) enable_dlopen_self_static=unknown ;;
  787.   esac
  788. fi
  789. ])# AC_LIBTOOL_DLOPEN_SELF
  790. AC_DEFUN([_LT_AC_LTCONFIG_HACK],
  791. [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
  792. # Sed substitution that helps us do robust quoting.  It backslashifies
  793. # metacharacters that are still active within double-quoted strings.
  794. Xsed='sed -e s/^X//'
  795. sed_quote_subst='s/([[\"\`$\\]])/\1/g'
  796. # Same as above, but do not quote variable references.
  797. double_quote_subst='s/([[\"\`\\]])/\1/g'
  798. # Sed substitution to delay expansion of an escaped shell variable in a
  799. # double_quote_subst'ed string.
  800. delay_variable_subst='s/\\\\\$/\\\$/g'
  801. # Constants:
  802. rm="rm -f"
  803. # Global variables:
  804. default_ofile=libtool
  805. can_build_shared=yes
  806. # All known linkers require a `.a' archive for static linking (except M$VC,
  807. # which needs '.lib').
  808. libext=a
  809. ltmain="$ac_aux_dir/ltmain.sh"
  810. ofile="$default_ofile"
  811. with_gnu_ld="$lt_cv_prog_gnu_ld"
  812. need_locks="$enable_libtool_lock"
  813. old_CC="$CC"
  814. old_CFLAGS="$CFLAGS"
  815. # Set sane defaults for various variables
  816. test -z "$AR" && AR=ar
  817. test -z "$AR_FLAGS" && AR_FLAGS=cru
  818. test -z "$AS" && AS=as
  819. test -z "$CC" && CC=cc
  820. test -z "$DLLTOOL" && DLLTOOL=dlltool
  821. test -z "$LD" && LD=ld
  822. test -z "$LN_S" && LN_S="ln -s"
  823. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  824. test -z "$NM" && NM=nm
  825. test -z "$OBJDUMP" && OBJDUMP=objdump
  826. test -z "$RANLIB" && RANLIB=:
  827. test -z "$STRIP" && STRIP=:
  828. test -z "$ac_objext" && ac_objext=o
  829. if test x"$host" != x"$build"; then
  830.   ac_tool_prefix=${host_alias}-
  831. else
  832.   ac_tool_prefix=
  833. fi
  834. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  835. case $host_os in
  836. linux-gnu*) ;;
  837. linux*) host=`echo $host | sed 's/^(.*-.*-linux)(.*)$/1-gnu2/'`
  838. esac
  839. case $host_os in
  840. aix3*)
  841.   # AIX sometimes has problems with the GCC collect2 program.  For some
  842.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  843.   # vanish in a puff of smoke.
  844.   if test "X${COLLECT_NAMES+set}" != Xset; then
  845.     COLLECT_NAMES=
  846.     export COLLECT_NAMES
  847.   fi
  848.   ;;
  849. esac
  850. # Determine commands to create old-style static archives.
  851. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  852. old_postinstall_cmds='chmod 644 $oldlib'
  853. old_postuninstall_cmds=
  854. if test -n "$RANLIB"; then
  855.   case $host_os in
  856.   openbsd*)
  857.     old_postinstall_cmds="$RANLIB -t $oldlib~$old_postinstall_cmds"
  858.     ;;
  859.   *)
  860.     old_postinstall_cmds="$RANLIB $oldlib~$old_postinstall_cmds"
  861.     ;;
  862.   esac
  863.   old_archive_cmds="$old_archive_cmds~$RANLIB $oldlib"
  864. fi
  865. # Allow CC to be a program name with arguments.
  866. set dummy $CC
  867. compiler="[$]2"
  868. AC_MSG_CHECKING([for objdir])
  869. rm -f .libs 2>/dev/null
  870. mkdir .libs 2>/dev/null
  871. if test -d .libs; then
  872.   objdir=.libs
  873. else
  874.   # MS-DOS does not allow filenames that begin with a dot.
  875.   objdir=_libs
  876. fi
  877. rmdir .libs 2>/dev/null
  878. AC_MSG_RESULT($objdir)
  879. AC_ARG_WITH(pic,
  880. [  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
  881. pic_mode="$withval", pic_mode=default)
  882. test -z "$pic_mode" && pic_mode=default
  883. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  884. # in isolation, and that seeing it set (from the cache) indicates that
  885. # the associated values are set (in the cache) correctly too.
  886. AC_MSG_CHECKING([for $compiler option to produce PIC])
  887. AC_CACHE_VAL(lt_cv_prog_cc_pic,
  888. [ lt_cv_prog_cc_pic=
  889.   lt_cv_prog_cc_shlib=
  890.   lt_cv_prog_cc_wl=
  891.   lt_cv_prog_cc_static=
  892.   lt_cv_prog_cc_no_builtin=
  893.   lt_cv_prog_cc_can_build_shared=$can_build_shared
  894.   if test "$GCC" = yes; then
  895.     lt_cv_prog_cc_wl='-Wl,'
  896.     lt_cv_prog_cc_static='-static'
  897.     case $host_os in
  898.     aix*)
  899.       # Below there is a dirty hack to force normal static linking with -ldl
  900.       # The problem is because libdl dynamically linked with both libc and
  901.       # libC (AIX C++ library), which obviously doesn't included in libraries
  902.       # list by gcc. This cause undefined symbols with -static flags.
  903.       # This hack allows C programs to be linked with "-static -ldl", but
  904.       # not sure about C++ programs.
  905.       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  906.       ;;
  907.     amigaos*)
  908.       # FIXME: we need at least 68020 code to build shared libraries, but
  909.       # adding the `-m68020' flag to GCC prevents building anything better,
  910.       # like `-m68040'.
  911.       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  912.       ;;
  913.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  914.       # PIC is the default for these OSes.
  915.       ;;
  916.     darwin* | rhapsody*)
  917.       # PIC is the default on this platform
  918.       # Common symbols not allowed in MH_DYLIB files
  919.       lt_cv_prog_cc_pic='-fno-common'
  920.       ;;
  921.     cygwin* | mingw* | pw32* | os2*)
  922.       # This hack is so that the source file can tell whether it is being
  923.       # built for inclusion in a dll (and should export symbols for example).
  924.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  925.       ;;
  926.     sysv4*MP*)
  927.       if test -d /usr/nec; then
  928.  lt_cv_prog_cc_pic=-Kconform_pic
  929.       fi
  930.       ;;
  931.     *)
  932.       lt_cv_prog_cc_pic='-fPIC'
  933.       ;;
  934.     esac
  935.   else
  936.     # PORTME Check for PIC flags for the system compiler.
  937.     case $host_os in
  938.     aix3* | aix4* | aix5*)
  939.       lt_cv_prog_cc_wl='-Wl,'
  940.       # All AIX code is PIC.
  941.       if test "$host_cpu" = ia64; then
  942. # AIX 5 now supports IA64 processor
  943. lt_cv_prog_cc_static='-Bstatic'
  944.       else
  945. lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  946.       fi
  947.       ;;
  948.     hpux9* | hpux10* | hpux11*)
  949.       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  950.       lt_cv_prog_cc_wl='-Wl,'
  951.       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  952.       lt_cv_prog_cc_pic='+Z'
  953.       ;;
  954.     irix5* | irix6* | nonstopux*)
  955.       lt_cv_prog_cc_wl='-Wl,'
  956.       lt_cv_prog_cc_static='-non_shared'
  957.       # PIC (with -KPIC) is the default.
  958.       ;;
  959.     cygwin* | mingw* | pw32* | os2*)
  960.       # This hack is so that the source file can tell whether it is being
  961.       # built for inclusion in a dll (and should export symbols for example).
  962.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  963.       ;;
  964.     newsos6)
  965.       lt_cv_prog_cc_pic='-KPIC'
  966.       lt_cv_prog_cc_static='-Bstatic'
  967.       ;;
  968.     osf3* | osf4* | osf5*)
  969.       # All OSF/1 code is PIC.
  970.       lt_cv_prog_cc_wl='-Wl,'
  971.       lt_cv_prog_cc_static='-non_shared'
  972.       ;;
  973.     sco3.2v5*)
  974.       lt_cv_prog_cc_pic='-Kpic'
  975.       lt_cv_prog_cc_static='-dn'
  976.       lt_cv_prog_cc_shlib='-belf'
  977.       ;;
  978.     solaris*)
  979.       lt_cv_prog_cc_pic='-KPIC'
  980.       lt_cv_prog_cc_static='-Bstatic'
  981.       lt_cv_prog_cc_wl='-Wl,'
  982.       ;;
  983.     sunos4*)
  984.       lt_cv_prog_cc_pic='-PIC'
  985.       lt_cv_prog_cc_static='-Bstatic'
  986.       lt_cv_prog_cc_wl='-Qoption ld '
  987.       ;;
  988.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  989.       lt_cv_prog_cc_pic='-KPIC'
  990.       lt_cv_prog_cc_static='-Bstatic'
  991.       lt_cv_prog_cc_wl='-Wl,'
  992.       ;;
  993.     uts4*)
  994.       lt_cv_prog_cc_pic='-pic'
  995.       lt_cv_prog_cc_static='-Bstatic'
  996.       ;;
  997.     sysv4*MP*)
  998.       if test -d /usr/nec ;then
  999. lt_cv_prog_cc_pic='-Kconform_pic'
  1000. lt_cv_prog_cc_static='-Bstatic'
  1001.       fi
  1002.       ;;
  1003.     *)
  1004.       lt_cv_prog_cc_can_build_shared=no
  1005.       ;;
  1006.     esac
  1007.   fi
  1008. ])
  1009. if test -z "$lt_cv_prog_cc_pic"; then
  1010.   AC_MSG_RESULT([none])
  1011. else
  1012.   AC_MSG_RESULT([$lt_cv_prog_cc_pic])
  1013.   # Check to make sure the pic_flag actually works.
  1014.   AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
  1015.   AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
  1016.     save_CFLAGS="$CFLAGS"
  1017.     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  1018.     AC_TRY_COMPILE([], [], [dnl
  1019.       case $host_os in
  1020.       hpux9* | hpux10* | hpux11*)
  1021. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  1022. # they create non-PIC objects.  So, if there were any warnings, we
  1023. # assume that PIC is not supported.
  1024. if test -s conftest.err; then
  1025.   lt_cv_prog_cc_pic_works=no
  1026. else
  1027.   lt_cv_prog_cc_pic_works=yes
  1028. fi
  1029. ;;
  1030.       *)
  1031. lt_cv_prog_cc_pic_works=yes
  1032. ;;
  1033.       esac
  1034.     ], [dnl
  1035.       lt_cv_prog_cc_pic_works=no
  1036.     ])
  1037.     CFLAGS="$save_CFLAGS"
  1038.   ])
  1039.   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  1040.     lt_cv_prog_cc_pic=
  1041.     lt_cv_prog_cc_can_build_shared=no
  1042.   else
  1043.     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  1044.   fi
  1045.   AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
  1046. fi
  1047. # Check for any special shared library compilation flags.
  1048. if test -n "$lt_cv_prog_cc_shlib"; then
  1049.   AC_MSG_WARN([`$CC' requires `$lt_cv_prog_cc_shlib' to build shared libraries])
  1050.   if echo "$old_CC $old_CFLAGS " | egrep -e "[[  ]]$lt_cv_prog_cc_shlib[[  ]]" >/dev/null; then :
  1051.   else
  1052.    AC_MSG_WARN([add `$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
  1053.     lt_cv_prog_cc_can_build_shared=no
  1054.   fi
  1055. fi
  1056. AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
  1057. AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
  1058.   lt_cv_prog_cc_static_works=no
  1059.   save_LDFLAGS="$LDFLAGS"
  1060.   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  1061.   AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
  1062.   LDFLAGS="$save_LDFLAGS"
  1063. ])
  1064. # Belt *and* braces to stop my trousers falling down:
  1065. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  1066. AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
  1067. pic_flag="$lt_cv_prog_cc_pic"
  1068. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  1069. wl="$lt_cv_prog_cc_wl"
  1070. link_static_flag="$lt_cv_prog_cc_static"
  1071. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  1072. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  1073. # Check to see if options -o and -c are simultaneously supported by compiler
  1074. AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
  1075. AC_CACHE_VAL([lt_cv_compiler_c_o], [
  1076. $rm -r conftest 2>/dev/null
  1077. mkdir conftest
  1078. cd conftest
  1079. echo "int some_variable = 0;" > conftest.$ac_ext
  1080. mkdir out
  1081. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  1082. # that will create temporary files in the current directory regardless of
  1083. # the output directory.  Thus, making CWD read-only will cause this test
  1084. # to fail, enabling locking or at least warning the user not to do parallel
  1085. # builds.
  1086. chmod -w .
  1087. save_CFLAGS="$CFLAGS"
  1088. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  1089. compiler_c_o=no
  1090. if { (eval echo configure:__oline__: "$ac_compile") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  1091.   # The compiler can only warn and ignore the option if not recognized
  1092.   # So say no if there are warnings
  1093.   if test -s out/conftest.err; then
  1094.     lt_cv_compiler_c_o=no
  1095.   else
  1096.     lt_cv_compiler_c_o=yes
  1097.   fi
  1098. else
  1099.   # Append any errors to the config.log.
  1100.   cat out/conftest.err 1>&AC_FD_CC
  1101.   lt_cv_compiler_c_o=no
  1102. fi
  1103. CFLAGS="$save_CFLAGS"
  1104. chmod u+w .
  1105. $rm conftest* out/*
  1106. rmdir out
  1107. cd ..
  1108. rmdir conftest
  1109. $rm -r conftest 2>/dev/null
  1110. ])
  1111. compiler_c_o=$lt_cv_compiler_c_o
  1112. AC_MSG_RESULT([$compiler_c_o])
  1113. if test x"$compiler_c_o" = x"yes"; then
  1114.   # Check to see if we can write to a .lo
  1115.   AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
  1116.   AC_CACHE_VAL([lt_cv_compiler_o_lo], [
  1117.   lt_cv_compiler_o_lo=no
  1118.   save_CFLAGS="$CFLAGS"
  1119.   CFLAGS="$CFLAGS -c -o conftest.lo"
  1120.   save_objext="$ac_objext"
  1121.   ac_objext=lo
  1122.   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  1123.     # The compiler can only warn and ignore the option if not recognized
  1124.     # So say no if there are warnings
  1125.     if test -s conftest.err; then
  1126.       lt_cv_compiler_o_lo=no
  1127.     else
  1128.       lt_cv_compiler_o_lo=yes
  1129.     fi
  1130.   ])
  1131.   ac_objext="$save_objext"
  1132.   CFLAGS="$save_CFLAGS"
  1133.   ])
  1134.   compiler_o_lo=$lt_cv_compiler_o_lo
  1135.   AC_MSG_RESULT([$compiler_o_lo])
  1136. else
  1137.   compiler_o_lo=no
  1138. fi
  1139. # Check to see if we can do hard links to lock some files if needed
  1140. hard_links="nottested"
  1141. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  1142.   # do not overwrite the value of need_locks provided by the user
  1143.   AC_MSG_CHECKING([if we can lock with hard links])
  1144.   hard_links=yes
  1145.   $rm conftest*
  1146.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1147.   touch conftest.a
  1148.   ln conftest.a conftest.b 2>&5 || hard_links=no
  1149.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1150.   AC_MSG_RESULT([$hard_links])
  1151.   if test "$hard_links" = no; then
  1152.     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1153.     need_locks=warn
  1154.   fi
  1155. else
  1156.   need_locks=no
  1157. fi
  1158. if test "$GCC" = yes; then
  1159.   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  1160.   AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
  1161.   echo "int some_variable = 0;" > conftest.$ac_ext
  1162.   save_CFLAGS="$CFLAGS"
  1163.   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  1164.   compiler_rtti_exceptions=no
  1165.   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  1166.     # The compiler can only warn and ignore the option if not recognized
  1167.     # So say no if there are warnings
  1168.     if test -s conftest.err; then
  1169.       compiler_rtti_exceptions=no
  1170.     else
  1171.       compiler_rtti_exceptions=yes
  1172.     fi
  1173.   ])
  1174.   CFLAGS="$save_CFLAGS"
  1175.   AC_MSG_RESULT([$compiler_rtti_exceptions])
  1176.   if test "$compiler_rtti_exceptions" = "yes"; then
  1177.     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  1178.   else
  1179.     no_builtin_flag=' -fno-builtin'
  1180.   fi
  1181. fi
  1182. # See if the linker supports building shared libraries.
  1183. AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
  1184. allow_undefined_flag=
  1185. no_undefined_flag=
  1186. need_lib_prefix=unknown
  1187. need_version=unknown
  1188. # when you set need_version to no, make sure it does not cause -set_version
  1189. # flags to be left without arguments
  1190. archive_cmds=
  1191. archive_expsym_cmds=
  1192. old_archive_from_new_cmds=
  1193. old_archive_from_expsyms_cmds=
  1194. export_dynamic_flag_spec=
  1195. whole_archive_flag_spec=
  1196. thread_safe_flag_spec=
  1197. hardcode_into_libs=no
  1198. hardcode_libdir_flag_spec=
  1199. hardcode_libdir_separator=
  1200. hardcode_direct=no
  1201. hardcode_minus_L=no
  1202. hardcode_shlibpath_var=unsupported
  1203. runpath_var=
  1204. link_all_deplibs=unknown
  1205. always_export_symbols=no
  1206. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '''s/.* //''' | sort | uniq > $export_symbols'
  1207. # include_expsyms should be a list of space-separated symbols to be *always*
  1208. # included in the symbol list
  1209. include_expsyms=
  1210. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  1211. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  1212. # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1213. # as well as any symbol that contains `d'.
  1214. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  1215. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1216. # platforms (ab)use it in PIC code, but their linkers get confused if
  1217. # the symbol is explicitly referenced.  Since portable code cannot
  1218. # rely on this symbol name, it's probably fine to never include it in
  1219. # preloaded symbol tables.
  1220. extract_expsyms_cmds=
  1221. case $host_os in
  1222. cygwin* | mingw* | pw32*)
  1223.   # FIXME: the MSVC++ port hasn't been tested in a loooong time
  1224.   # When not using gcc, we currently assume that we are using
  1225.   # Microsoft Visual C++.
  1226.   if test "$GCC" != yes; then
  1227.     with_gnu_ld=no
  1228.   fi
  1229.   ;;
  1230. openbsd*)
  1231.   with_gnu_ld=no
  1232.   ;;
  1233. esac
  1234. ld_shlibs=yes
  1235. if test "$with_gnu_ld" = yes; then
  1236.   # If archive_cmds runs LD, not CC, wlarc should be empty
  1237.   wlarc='${wl}'
  1238.   # See if GNU ld supports shared libraries.
  1239.   case $host_os in
  1240.   aix3* | aix4* | aix5*)
  1241.     # On AIX, the GNU linker is very broken
  1242.     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  1243.     ld_shlibs=no
  1244.     cat <<EOF 1>&2
  1245. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1246. *** to be unable to reliably create shared libraries on AIX.
  1247. *** Therefore, libtool is disabling shared libraries support.  If you
  1248. *** really care for shared libraries, you may want to modify your PATH
  1249. *** so that a non-GNU linker is found, and then restart.
  1250. EOF
  1251.     ;;
  1252.   amigaos*)
  1253.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  1254.     hardcode_libdir_flag_spec='-L$libdir'
  1255.     hardcode_minus_L=yes
  1256.     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  1257.     # that the semantics of dynamic libraries on AmigaOS, at least up
  1258.     # to version 4, is to share data among multiple programs linked
  1259.     # with the same dynamic library.  Since this doesn't match the
  1260.     # behavior of shared libraries on other platforms, we can use
  1261.     # them.
  1262.     ld_shlibs=no
  1263.     ;;
  1264.   beos*)
  1265.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1266.       allow_undefined_flag=unsupported
  1267.       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1268.       # support --undefined.  This deserves some investigation.  FIXME
  1269.       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1270.     else
  1271.       ld_shlibs=no
  1272.     fi
  1273.     ;;
  1274.   cygwin* | mingw* | pw32*)
  1275.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  1276.     # no search path for DLLs.
  1277.     hardcode_libdir_flag_spec='-L$libdir'
  1278.     allow_undefined_flag=unsupported
  1279.     always_export_symbols=yes
  1280.     extract_expsyms_cmds='test -f $output_objdir/impgen.c || 
  1281.       sed -e "/^# /* impgen.c starts here *//,/^# /* impgen.c ends here *// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  1282.       test -f $output_objdir/impgen.exe || (cd $output_objdir && 
  1283.       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; 
  1284.       else $CC -o impgen impgen.c ; fi)~
  1285.       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  1286.     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  1287.     # cygwin and mingw dlls have different entry points and sets of symbols
  1288.     # to exclude.
  1289.     # FIXME: what about values for MSVC?
  1290.     dll_entry=__cygwin_dll_entry@12
  1291.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  1292.     case $host_os in
  1293.     mingw*)
  1294.       # mingw values
  1295.       dll_entry=_DllMainCRTStartup@12
  1296.       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  1297.       ;;
  1298.     esac
  1299.     # mingw and cygwin differ, and it's simplest to just exclude the union
  1300.     # of the two symbol sets.
  1301.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  1302.     # recent cygwin and mingw systems supply a stub DllMain which the user
  1303.     # can override, but on older systems we have to supply one (in ltdll.c)
  1304.     if test "x$lt_cv_need_dllmain" = "xyes"; then
  1305.       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  1306.       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# /* ltdll.c starts here *//,/^# /* ltdll.c ends here *// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  1307. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  1308.     else
  1309.       ltdll_obj=
  1310.       ltdll_cmds=
  1311.     fi
  1312.     # Extract the symbol export list from an `--export-all' def file,
  1313.     # then regenerate the def file from the symbol export list, so that
  1314.     # the compiled dll only exports the symbol export list.
  1315.     # Be careful not to strip the DATA tag left be newer dlltools.
  1316.     export_symbols_cmds="$ltdll_cmds"'
  1317.       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  1318.       sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  1319.     # If the export-symbols file already is a .def file (1st line
  1320.     # is EXPORTS), use it as is.
  1321.     # If DATA tags from a recent dlltool are present, honour them!
  1322.     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  1323. cp $export_symbols $output_objdir/$soname-def;
  1324.       else
  1325. echo EXPORTS > $output_objdir/$soname-def;
  1326. _lt_hint=1;
  1327. cat $export_symbols | while read symbol; do
  1328.  set dummy $symbol;
  1329.  case [$]# in
  1330.    2) echo "   [$]2 @ $_lt_hint ; " >> $output_objdir/$soname-def;;
  1331.    4) echo "   [$]2 [$]3 [$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr $_lt_hint - 1`;;
  1332.    *) echo "     [$]2 @ $_lt_hint [$]3 ; " >> $output_objdir/$soname-def;;
  1333.  esac;
  1334.  _lt_hint=`expr 1 + $_lt_hint`;
  1335. done;
  1336.       fi~
  1337.       '"$ltdll_cmds"'
  1338.       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  1339.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  1340.       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  1341.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  1342.       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  1343.     ;;
  1344.   netbsd*)
  1345.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1346.       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1347.       wlarc=
  1348.     else
  1349.       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1350.       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1351.     fi
  1352.     ;;
  1353.   solaris* | sysv5*)
  1354.     if $LD -v 2>&1 | egrep 'BFD 2.8' > /dev/null; then
  1355.       ld_shlibs=no
  1356.       cat <<EOF 1>&2
  1357. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  1358. *** create shared libraries on Solaris systems.  Therefore, libtool
  1359. *** is disabling shared libraries support.  We urge you to upgrade GNU
  1360. *** binutils to release 2.9.1 or newer.  Another option is to modify
  1361. *** your PATH or compiler configuration so that the native linker is
  1362. *** used, and then restart.
  1363. EOF
  1364.     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1365.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1366.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1367.     else
  1368.       ld_shlibs=no
  1369.     fi
  1370.     ;;
  1371.   sunos4*)
  1372.     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1373.     wlarc=
  1374.     hardcode_direct=yes
  1375.     hardcode_shlibpath_var=no
  1376.     ;;
  1377.   *)
  1378.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1379.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1380.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1381.     else
  1382.       ld_shlibs=no
  1383.     fi
  1384.     ;;
  1385.   esac
  1386.   if test "$ld_shlibs" = yes; then
  1387.     runpath_var=LD_RUN_PATH
  1388.     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  1389.     export_dynamic_flag_spec='${wl}--export-dynamic'
  1390.     case $host_os in
  1391.     cygwin* | mingw* | pw32*)
  1392.       # dlltool doesn't understand --whole-archive et. al.
  1393.       whole_archive_flag_spec=
  1394.       ;;
  1395.     *)
  1396.       # ancient GNU ld didn't support --whole-archive et. al.
  1397.       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  1398. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1399.       else
  1400. whole_archive_flag_spec=
  1401.       fi
  1402.       ;;
  1403.     esac
  1404.   fi
  1405. else
  1406.   # PORTME fill in a description of your system's linker (not GNU ld)
  1407.   case $host_os in
  1408.   aix3*)
  1409.     allow_undefined_flag=unsupported
  1410.     always_export_symbols=yes
  1411.     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  1412.     # Note: this linker hardcodes the directories in LIBPATH if there
  1413.     # are no directories specified by -L.
  1414.     hardcode_minus_L=yes
  1415.     if test "$GCC" = yes && test -z "$link_static_flag"; then
  1416.       # Neither direct hardcoding nor static linking is supported with a
  1417.       # broken collect2.
  1418.       hardcode_direct=unsupported
  1419.     fi
  1420.     ;;
  1421.   aix4* | aix5*)
  1422.     if test "$host_cpu" = ia64; then
  1423.       # On IA64, the linker does run time linking by default, so we don't
  1424.       # have to do anything special.
  1425.       aix_use_runtimelinking=no
  1426.       exp_sym_flag='-Bexport'
  1427.       no_entry_flag=""
  1428.     else
  1429.       aix_use_runtimelinking=no
  1430.       # Test if we are trying to use run time linking or normal
  1431.       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1432.       # need to do runtime linking.
  1433.       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  1434. for ld_flag in $LDFLAGS; do
  1435.   case $ld_flag in
  1436.   *-brtl*)
  1437.     aix_use_runtimelinking=yes
  1438.     break
  1439.   ;;
  1440.   esac
  1441. done
  1442.       esac
  1443.       exp_sym_flag='-bexport'
  1444.       no_entry_flag='-bnoentry'
  1445.     fi
  1446.     # When large executables or shared objects are built, AIX ld can
  1447.     # have problems creating the table of contents.  If linking a library
  1448.     # or program results in "error TOC overflow" add -mminimal-toc to
  1449.     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  1450.     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  1451.     hardcode_direct=yes
  1452.     archive_cmds=''
  1453.     hardcode_libdir_separator=':'
  1454.     if test "$GCC" = yes; then
  1455.       case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1456. collect2name=`${CC} -print-prog-name=collect2`
  1457. if test -f "$collect2name" && 
  1458.   strings "$collect2name" | grep resolve_lib_name >/dev/null
  1459. then
  1460.   # We have reworked collect2
  1461.   hardcode_direct=yes
  1462. else
  1463.   # We have old collect2
  1464.   hardcode_direct=unsupported
  1465.   # It fails to find uninstalled libraries when the uninstalled
  1466.   # path is not listed in the libpath.  Setting hardcode_minus_L
  1467.   # to unsupported forces relinking
  1468.   hardcode_minus_L=yes
  1469.   hardcode_libdir_flag_spec='-L$libdir'
  1470.   hardcode_libdir_separator=
  1471. fi
  1472.       esac
  1473.       shared_flag='-shared'
  1474.     else
  1475.       # not using gcc
  1476.       if test "$host_cpu" = ia64; then
  1477. shared_flag='${wl}-G'
  1478.       else
  1479. if test "$aix_use_runtimelinking" = yes; then
  1480.   shared_flag='${wl}-G'
  1481. else
  1482.   shared_flag='${wl}-bM:SRE'
  1483. fi
  1484.       fi
  1485.     fi
  1486.     # It seems that -bexpall can do strange things, so it is better to
  1487.     # generate a list of symbols to export.
  1488.     always_export_symbols=yes
  1489.     if test "$aix_use_runtimelinking" = yes; then
  1490.       # Warning - without using the other runtime loading flags (-brtl),
  1491.       # -berok will link without error, but may produce a broken library.
  1492.       allow_undefined_flag='-berok'
  1493.       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  1494.       archive_expsym_cmds="$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"${wl}$no_entry_flag ${wl}$exp_sym_flag:$export_symbols $shared_flag"
  1495.     else
  1496.       if test "$host_cpu" = ia64; then
  1497. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  1498. allow_undefined_flag="-z nodefs"
  1499. archive_expsym_cmds="$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"${wl}$no_entry_flag ${wl}$exp_sym_flag:$export_symbols"
  1500.       else
  1501. hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  1502. # Warning - without using the other run time loading flags,
  1503. # -berok will link without error, but may produce a broken library.
  1504. allow_undefined_flag='${wl}-berok'
  1505. # This is a bit strange, but is similar to how AIX traditionally builds
  1506. # it's shared libraries.
  1507. archive_expsym_cmds="$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"${wl}$no_entry_flag ${wl}$exp_sym_flag:$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  1508.       fi
  1509.     fi
  1510.     ;;
  1511.   amigaos*)
  1512.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  1513.     hardcode_libdir_flag_spec='-L$libdir'
  1514.     hardcode_minus_L=yes
  1515.     # see comment about different semantics on the GNU ld section
  1516.     ld_shlibs=no
  1517.     ;;
  1518.   cygwin* | mingw* | pw32*)
  1519.     # When not using gcc, we currently assume that we are using
  1520.     # Microsoft Visual C++.
  1521.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  1522.     # no search path for DLLs.
  1523.     hardcode_libdir_flag_spec=' '
  1524.     allow_undefined_flag=unsupported
  1525.     # Tell ltmain to make .lib files, not .a files.
  1526.     libext=lib
  1527.     # FIXME: Setting linknames here is a bad hack.
  1528.     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '''s/ -lc$//'''` -link -dll~linknames='
  1529.     # The linker will automatically build a .lib file if we build a DLL.
  1530.     old_archive_from_new_cmds='true'
  1531.     # FIXME: Should let the user specify the lib program.
  1532.     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  1533.     fix_srcfile_path='`cygpath -w "$srcfile"`'
  1534.     ;;
  1535.   darwin* | rhapsody*)
  1536.     case "$host_os" in
  1537.     rhapsody* | darwin1.[[012]])
  1538.       allow_undefined_flag='-undefined suppress'
  1539.       ;;
  1540.     *) # Darwin 1.3 on
  1541.       allow_undefined_flag='-flat_namespace -undefined suppress'
  1542.       ;;
  1543.     esac
  1544.     # FIXME: Relying on posixy $() will cause problems for
  1545.     #        cross-compilation, but unfortunately the echo tests do not
  1546.     #        yet detect zsh echo's removal of  escapes.  Also zsh mangles
  1547.     #      `"' quotes if we put them in here... so don't!
  1548.     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  1549.     # We need to add '_' to the symbols in $export_symbols first
  1550.     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  1551.     hardcode_direct=yes
  1552.     hardcode_shlibpath_var=no
  1553.     whole_archive_flag_spec='-all_load $convenience'
  1554.     ;;
  1555.   freebsd1*)
  1556.     ld_shlibs=no
  1557.     ;;
  1558.   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1559.   # support.  Future versions do this automatically, but an explicit c++rt0.o
  1560.   # does not break anything, and helps significantly (at the cost of a little
  1561.   # extra space).
  1562.   freebsd2.2*)
  1563.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  1564.     hardcode_libdir_flag_spec='-R$libdir'
  1565.     hardcode_direct=yes
  1566.     hardcode_shlibpath_var=no
  1567.     ;;
  1568.   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1569.   freebsd2*)
  1570.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1571.     hardcode_direct=yes
  1572.     hardcode_minus_L=yes
  1573.     hardcode_shlibpath_var=no
  1574.     ;;
  1575.   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1576.   freebsd*)
  1577.     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1578.     hardcode_libdir_flag_spec='-R$libdir'
  1579.     hardcode_direct=yes
  1580.     hardcode_shlibpath_var=no
  1581.     ;;
  1582.   hpux9* | hpux10* | hpux11*)
  1583.     case $host_os in
  1584.     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  1585.     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  1586.     esac
  1587.     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1588.     hardcode_libdir_separator=:
  1589.     hardcode_direct=yes
  1590.     hardcode_minus_L=yes # Not in the search PATH, but as the default
  1591.  # location of the library.
  1592.     export_dynamic_flag_spec='${wl}-E'
  1593.     ;;
  1594.   irix5* | irix6* | nonstopux*)
  1595.     if test "$GCC" = yes; then
  1596.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1597.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1598.     else
  1599.       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1600.       hardcode_libdir_flag_spec='-rpath $libdir'
  1601.     fi
  1602.     hardcode_libdir_separator=:
  1603.     link_all_deplibs=yes
  1604.     ;;
  1605.   netbsd*)
  1606.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1607.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  1608.     else
  1609.       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  1610.     fi
  1611.     hardcode_libdir_flag_spec='-R$libdir'
  1612.     hardcode_direct=yes
  1613.     hardcode_shlibpath_var=no
  1614.     ;;
  1615.   newsos6)
  1616.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1617.     hardcode_direct=yes
  1618.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1619.     hardcode_libdir_separator=:
  1620.     hardcode_shlibpath_var=no
  1621.     ;;
  1622.   openbsd*)
  1623.     hardcode_direct=yes
  1624.     hardcode_shlibpath_var=no
  1625.     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1626.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1627.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  1628.       export_dynamic_flag_spec='${wl}-E'
  1629.     else
  1630.       case "$host_os" in
  1631.       openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  1632. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1633. hardcode_libdir_flag_spec='-R$libdir'
  1634.         ;;
  1635.       *)
  1636.         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1637.         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  1638.         ;;
  1639.       esac
  1640.     fi
  1641.     ;;
  1642.   os2*)
  1643.     hardcode_libdir_flag_spec='-L$libdir'
  1644.     hardcode_minus_L=yes
  1645.     allow_undefined_flag=unsupported
  1646.     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION "$libname"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  1647.     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  1648.     ;;
  1649.   osf3*)
  1650.     if test "$GCC" = yes; then
  1651.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}*'
  1652.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1653.     else
  1654.       allow_undefined_flag=' -expect_unresolved *'
  1655.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1656.     fi
  1657.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1658.     hardcode_libdir_separator=:
  1659.     ;;
  1660.   osf4* | osf5*) # as osf3* with the addition of -msym flag
  1661.     if test "$GCC" = yes; then
  1662.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}*'
  1663.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1664.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1665.     else
  1666.       allow_undefined_flag=' -expect_unresolved *'
  1667.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1668.       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  1669.       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  1670.       #Both c and cxx compiler support -rpath directly
  1671.       hardcode_libdir_flag_spec='-rpath $libdir'
  1672.     fi
  1673.     hardcode_libdir_separator=:
  1674.     ;;
  1675.   sco3.2v5*)
  1676.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1677.     hardcode_shlibpath_var=no
  1678.     runpath_var=LD_RUN_PATH
  1679.     hardcode_runpath_var=yes
  1680.     export_dynamic_flag_spec='${wl}-Bexport'
  1681.     ;;
  1682.   solaris*)
  1683.     # gcc --version < 3.0 without binutils cannot create self contained
  1684.     # shared libraries reliably, requiring libgcc.a to resolve some of
  1685.     # the object symbols generated in some cases.  Libraries that use
  1686.     # assert need libgcc.a to resolve __eprintf, for example.  Linking
  1687.     # a copy of libgcc.a into every shared library to guarantee resolving
  1688.     # such symbols causes other problems:  According to Tim Van Holder
  1689.     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  1690.     # (to the application) exception stack for one thing.
  1691.     no_undefined_flag=' -z defs'
  1692.     if test "$GCC" = yes; then
  1693.       case `$CC --version 2>/dev/null` in
  1694.       [[12]].*)
  1695. cat <<EOF 1>&2
  1696. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  1697. *** create self contained shared libraries on Solaris systems, without
  1698. *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
  1699. *** -no-undefined support, which will at least allow you to build shared
  1700. *** libraries.  However, you may find that when you link such libraries
  1701. *** into an application without using GCC, you have to manually add
  1702. *** `gcc --print-libgcc-file-name` to the link command.  We urge you to
  1703. *** upgrade to a newer version of GCC.  Another option is to rebuild your
  1704. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  1705. EOF
  1706.         no_undefined_flag=
  1707. ;;
  1708.       esac
  1709.     fi
  1710.     # $CC -shared without GNU ld will not create a library from C++
  1711.     # object files and a static libstdc++, better avoid it by now
  1712.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1713.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/(.*)/1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1714. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  1715.     hardcode_libdir_flag_spec='-R$libdir'
  1716.     hardcode_shlibpath_var=no
  1717.     case $host_os in
  1718.     solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1719.     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  1720.       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  1721.     esac
  1722.     link_all_deplibs=yes
  1723.     ;;
  1724.   sunos4*)
  1725.     if test "x$host_vendor" = xsequent; then
  1726.       # Use $CC to link under sequent, because it throws in some extra .o
  1727.       # files that make .init and .fini sections work.
  1728.       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  1729.     else
  1730.       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  1731.     fi
  1732.     hardcode_libdir_flag_spec='-L$libdir'
  1733.     hardcode_direct=yes
  1734.     hardcode_minus_L=yes
  1735.     hardcode_shlibpath_var=no
  1736.     ;;
  1737.   sysv4)
  1738.     case $host_vendor in
  1739.       sni)
  1740.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1741.         hardcode_direct=yes # is this really true???
  1742.         ;;
  1743.       siemens)
  1744.         ## LD is ld it makes a PLAMLIB
  1745.         ## CC just makes a GrossModule.
  1746.         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  1747.         reload_cmds='$CC -r -o $output$reload_objs'
  1748.         hardcode_direct=no
  1749.         ;;
  1750.       motorola)
  1751.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1752.         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  1753.         ;;
  1754.     esac
  1755.     runpath_var='LD_RUN_PATH'
  1756.     hardcode_shlibpath_var=no
  1757.     ;;
  1758.   sysv4.3*)
  1759.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1760.     hardcode_shlibpath_var=no
  1761.     export_dynamic_flag_spec='-Bexport'
  1762.     ;;
  1763.   sysv5*)
  1764.     no_undefined_flag=' -z text'
  1765.     # $CC -shared without GNU ld will not create a library from C++
  1766.     # object files and a static libstdc++, better avoid it by now
  1767.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1768.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/(.*)/1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1769. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  1770.     hardcode_libdir_flag_spec=
  1771.     hardcode_shlibpath_var=no
  1772.     runpath_var='LD_RUN_PATH'
  1773.     ;;
  1774.   uts4*)
  1775.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1776.     hardcode_libdir_flag_spec='-L$libdir'
  1777.     hardcode_shlibpath_var=no
  1778.     ;;
  1779.   dgux*)
  1780.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1781.     hardcode_libdir_flag_spec='-L$libdir'
  1782.     hardcode_shlibpath_var=no
  1783.     ;;
  1784.   sysv4*MP*)
  1785.     if test -d /usr/nec; then
  1786.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1787.       hardcode_shlibpath_var=no
  1788.       runpath_var=LD_RUN_PATH
  1789.       hardcode_runpath_var=yes
  1790.       ld_shlibs=yes
  1791.     fi
  1792.     ;;
  1793.   sysv4.2uw2*)