~ubuntu-branches/ubuntu/lucid/libdebian-installer/lucid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Sven Luther
  • Date: 2005-11-14 18:58:35 UTC
  • Revision ID: james.westby@ubuntu.com-20051114185835-799nwvo0dviy16qa
Tags: 0.36
[ Sven Luther ]
No need to list CHRP IBM models explicitly, as this breaks with models we
don't know about or newer models, which is unnecessary. (Closes: #338045)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
15
 
16
 
# serial 47 AC_PROG_LIBTOOL
17
 
# Debian $Rev: 214 $
 
16
# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
18
17
 
19
18
 
20
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
124
123
 
125
124
# Sed substitution that helps us do robust quoting.  It backslashifies
126
125
# metacharacters that are still active within double-quoted strings.
127
 
Xsed='sed -e s/^X//'
 
126
Xsed='sed -e 1s/^X//'
128
127
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129
128
 
130
129
# Same as above, but do not quote variable references.
144
143
default_ofile=libtool
145
144
can_build_shared=yes
146
145
 
147
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
146
# All known linkers require a `.a' archive for static linking (except MSVC,
148
147
# which needs '.lib').
149
148
libext=a
150
149
ltmain="$ac_aux_dir/ltmain.sh"
192
191
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193
192
fi
194
193
 
 
194
_LT_CC_BASENAME([$compiler])
 
195
 
195
196
# Only perform the check for file, if the check method requires it
196
197
case $deplibs_check_method in
197
198
file_magic*)
237
238
])# _LT_AC_SYS_COMPILER
238
239
 
239
240
 
 
241
# _LT_CC_BASENAME(CC)
 
242
# -------------------
 
243
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
244
AC_DEFUN([_LT_CC_BASENAME],
 
245
[for cc_temp in $1""; do
 
246
  case $cc_temp in
 
247
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
248
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
249
    \-*) ;;
 
250
    *) break;;
 
251
  esac
 
252
done
 
253
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
254
])
 
255
 
 
256
 
 
257
# _LT_COMPILER_BOILERPLATE
 
258
# ------------------------
 
259
# Check for compiler boilerplate output or warnings with
 
260
# the simple compiler test code.
 
261
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
262
[ac_outfile=conftest.$ac_objext
 
263
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
264
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
265
_lt_compiler_boilerplate=`cat conftest.err`
 
266
$rm conftest*
 
267
])# _LT_COMPILER_BOILERPLATE
 
268
 
 
269
 
 
270
# _LT_LINKER_BOILERPLATE
 
271
# ----------------------
 
272
# Check for linker boilerplate output or warnings with
 
273
# the simple link test code.
 
274
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
275
[ac_outfile=conftest.$ac_objext
 
276
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
277
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
278
_lt_linker_boilerplate=`cat conftest.err`
 
279
$rm conftest*
 
280
])# _LT_LINKER_BOILERPLATE
 
281
 
 
282
 
240
283
# _LT_AC_SYS_LIBPATH_AIX
241
284
# ----------------------
242
285
# Links a minimal program and checks the executable
309
352
 
310
353
# The HP-UX ksh and POSIX shell print the target directory to stdout
311
354
# if CDPATH is set.
312
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
355
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
313
356
 
314
357
if test -z "$ECHO"; then
315
358
if test "X${echo_test_string+set}" != Xset; then
316
359
# find a string as large as possible, as long as the shell can cope with it
317
360
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
318
361
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
319
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
320
 
       echo_test_string="`eval $cmd`" &&
 
362
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
363
       echo_test_string=`eval $cmd` &&
321
364
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
322
365
    then
323
366
      break
486
529
  # Find out which ABI we are using.
487
530
  echo 'int i;' > conftest.$ac_ext
488
531
  if AC_TRY_EVAL(ac_compile); then
489
 
    case "`/usr/bin/file conftest.o`" in
 
532
    case `/usr/bin/file conftest.o` in
490
533
    *32-bit*)
491
534
      case $host in
492
535
        x86_64-*linux*)
568
611
   # with a dollar sign (not a hyphen), so the echo should work correctly.
569
612
   # The option is referenced via a variable to avoid confusing sed.
570
613
   lt_compile=`echo "$ac_compile" | $SED \
571
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
614
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
572
615
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
573
616
   -e 's:$: $lt_compiler_flag:'`
574
617
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
578
621
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
579
622
   if (exit $ac_status) && test -s "$ac_outfile"; then
580
623
     # The compiler can only warn and ignore the option if not recognized
581
 
     # So say no if there are warnings
582
 
     if test ! -s conftest.err; then
 
624
     # So say no if there are warnings other than the usual output.
 
625
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
626
     $SED '/^$/d' conftest.err >conftest.er2
 
627
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
583
628
       $2=yes
584
629
     fi
585
630
   fi
605
650
   LDFLAGS="$LDFLAGS $3"
606
651
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
607
652
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
608
 
     # The compiler can only warn and ignore the option if not recognized
 
653
     # The linker can only warn and ignore the option if not recognized
609
654
     # So say no if there are warnings
610
655
     if test -s conftest.err; then
611
656
       # Append any errors to the config.log.
612
657
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
658
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
659
       $SED '/^$/d' conftest.err >conftest.er2
 
660
       if diff conftest.exp conftest.er2 >/dev/null; then
 
661
         $2=yes
 
662
       fi
613
663
     else
614
664
       $2=yes
615
665
     fi
668
718
    lt_cv_sys_max_cmd_len=8192;
669
719
    ;;
670
720
 
671
 
 *)
 
721
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
722
    # This has been around since 386BSD, at least.  Likely further.
 
723
    if test -x /sbin/sysctl; then
 
724
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
725
    elif test -x /usr/sbin/sysctl; then
 
726
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
727
    else
 
728
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
729
    fi
 
730
    # And add a safety zone
 
731
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
732
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
733
    ;;
 
734
  osf*)
 
735
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
736
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
737
    # nice to cause kernel panics so lets avoid the loop below.
 
738
    # First set a reasonable default.
 
739
    lt_cv_sys_max_cmd_len=16384
 
740
    #
 
741
    if test -x /sbin/sysconfig; then
 
742
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
743
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
744
      esac
 
745
    fi
 
746
    ;;
 
747
  *)
672
748
    # If test is not a shell built-in, we'll probably end up computing a
673
749
    # maximum length that is only half of the actual maximum length, but
674
750
    # we can't tell.
675
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
751
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
752
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676
753
               = "XX$teststring") >/dev/null 2>&1 &&
677
754
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
755
            lt_cv_sys_max_cmd_len=$new_result &&
777
854
}]
778
855
EOF
779
856
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
780
 
    (./conftest; exit; ) 2>/dev/null
 
857
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
781
858
    lt_status=$?
782
859
    case x$lt_status in
783
860
      x$lt_dlno_uscore) $1 ;;
926
1003
   # Note that $ac_compile itself does not contain backslashes and begins
927
1004
   # with a dollar sign (not a hyphen), so the echo should work correctly.
928
1005
   lt_compile=`echo "$ac_compile" | $SED \
929
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1006
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
930
1007
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
931
1008
   -e 's:$: $lt_compiler_flag:'`
932
1009
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
938
1015
   then
939
1016
     # The compiler can only warn and ignore the option if not recognized
940
1017
     # So say no if there are warnings
941
 
     if test ! -s out/conftest.err; then
 
1018
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
1019
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
1020
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
942
1021
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
943
1022
     fi
944
1023
   fi
945
 
   chmod u+w .
 
1024
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
946
1025
   $rm conftest*
947
1026
   # SGI C++ compiler will create directory out/ii_files/ for
948
1027
   # template instantiation
1006
1085
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1007
1086
_LT_AC_TAGVAR(hardcode_action, $1)=
1008
1087
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1009
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1010
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1088
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1089
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1011
1090
 
1012
1091
  # We can hardcode non-existant directories.
1013
1092
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1174
1253
  shlibpath_var=LIBRARY_PATH
1175
1254
  ;;
1176
1255
 
1177
 
bsdi4*)
 
1256
bsdi[[45]]*)
1178
1257
  version_type=linux
1179
1258
  need_version=no
1180
1259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1202
1281
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1203
1282
      dldir=$destdir/`dirname \$dlpath`~
1204
1283
      test -d \$dldir || mkdir -p \$dldir~
1205
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1284
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1285
      chmod a+x \$dldir/$dlname'
1206
1286
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1207
1287
      dlpath=$dir/\$dldll~
1208
1288
       $rm \$dlpath'
1232
1312
      ;;
1233
1313
    pw32*)
1234
1314
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1235
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1315
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1236
1316
      ;;
1237
1317
    esac
1238
1318
    ;;
1255
1335
  soname_spec='${libname}${release}${major}$shared_ext'
1256
1336
  shlibpath_overrides_runpath=yes
1257
1337
  shlibpath_var=DYLD_LIBRARY_PATH
1258
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1338
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1259
1339
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1260
1340
  if test "$GCC" = yes; then
1261
1341
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1290
1370
  dynamic_linker='GNU ld.so'
1291
1371
  ;;
1292
1372
 
1293
 
freebsd*)
1294
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1373
freebsd* | dragonfly*)
 
1374
  # DragonFly does not have aout.  When/if they implement a new
 
1375
  # versioning mechanism, adjust this.
 
1376
  if test -x /usr/bin/objformat; then
 
1377
    objformat=`/usr/bin/objformat`
 
1378
  else
 
1379
    case $host_os in
 
1380
    freebsd[[123]]*) objformat=aout ;;
 
1381
    *) objformat=elf ;;
 
1382
    esac
 
1383
  fi
1295
1384
  version_type=freebsd-$objformat
1296
1385
  case $version_type in
1297
1386
    freebsd-elf*)
1309
1398
  freebsd2*)
1310
1399
    shlibpath_overrides_runpath=yes
1311
1400
    ;;
1312
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1401
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1313
1402
    shlibpath_overrides_runpath=yes
1314
1403
    hardcode_into_libs=yes
1315
1404
    ;;
1336
1425
  version_type=sunos
1337
1426
  need_lib_prefix=no
1338
1427
  need_version=no
1339
 
  case "$host_cpu" in
 
1428
  case $host_cpu in
1340
1429
  ia64*)
1341
1430
    shrext_cmds='.so'
1342
1431
    hardcode_into_libs=yes
1435
1524
 
1436
1525
  # Append ld.so.conf contents to the search path
1437
1526
  if test -f /etc/ld.so.conf; then
1438
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
1527
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1439
1528
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1440
1529
  fi
1441
1530
 
1510
1599
openbsd*)
1511
1600
  version_type=sunos
1512
1601
  need_lib_prefix=no
1513
 
  need_version=yes
 
1602
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1603
  case $host_os in
 
1604
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1605
    *)                         need_version=no  ;;
 
1606
  esac
1514
1607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1515
1608
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1516
1609
  shlibpath_var=LD_LIBRARY_PATH
1676
1769
 
1677
1770
      case $tagname in
1678
1771
      CXX)
1679
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
1772
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1773
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1774
            (test "X$CXX" != "Xg++"))) ; then
1680
1775
          AC_LIBTOOL_LANG_CXX_CONFIG
1681
1776
        else
1682
1777
          tagname=""
1738
1833
 
1739
1834
# AC_LIBTOOL_WIN32_DLL
1740
1835
# --------------------
1741
 
# declare package support for building win32 dll's
 
1836
# declare package support for building win32 DLLs
1742
1837
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1743
1838
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1744
1839
])# AC_LIBTOOL_WIN32_DLL
1912
2007
      if test -n "$file_magic_test_file"; then
1913
2008
        case $deplibs_check_method in
1914
2009
        "file_magic "*)
1915
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2010
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1916
2011
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1917
2012
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1918
2013
            $EGREP "$file_magic_regex" > /dev/null; then
2022
2117
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2023
2118
      lt_cv_path_LD="$ac_dir/$ac_prog"
2024
2119
      # Check to see if the program is GNU ld.  I'd rather use --version,
2025
 
      # but apparently some GNU ld's only accept -v.
 
2120
      # but apparently some variants of GNU ld only accept -v.
2026
2121
      # Break only if it was the GNU/non-GNU ld that we prefer.
2027
2122
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2028
2123
      *GNU* | *'with BFD'*)
2054
2149
AC_DEFUN([AC_PROG_LD_GNU],
2055
2150
[AC_REQUIRE([AC_PROG_EGREP])dnl
2056
2151
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2057
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2152
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2058
2153
case `$LD -v 2>&1 </dev/null` in
2059
2154
*GNU* | *'with BFD'*)
2060
2155
  lt_cv_prog_gnu_ld=yes
2081
2176
*) reload_flag=" $reload_flag" ;;
2082
2177
esac
2083
2178
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2179
case $host_os in
 
2180
  darwin*)
 
2181
    if test "$GCC" = yes; then
 
2182
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2183
    else
 
2184
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2185
    fi
 
2186
    ;;
 
2187
esac
2084
2188
])# AC_PROG_LD_RELOAD_FLAG
2085
2189
 
2086
2190
 
2114
2218
  lt_cv_deplibs_check_method=pass_all
2115
2219
  ;;
2116
2220
 
2117
 
bsdi4*)
 
2221
bsdi[[45]]*)
2118
2222
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2119
2223
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2120
2224
  lt_cv_file_magic_test_file=/shlib/libc.so
2137
2241
  lt_cv_deplibs_check_method=pass_all
2138
2242
  ;;
2139
2243
 
2140
 
freebsd* | kfreebsd*-gnu)
 
2244
freebsd* | kfreebsd*-gnu | dragonfly*)
2141
2245
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2142
2246
    case $host_cpu in
2143
2247
    i*86 )
2144
2248
      # Not sure whether the presence of OpenBSD here was a mistake.
2145
2249
      # Let's accept both of them until this is cleared up.
2146
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2250
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2147
2251
      lt_cv_file_magic_cmd=/usr/bin/file
2148
2252
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2149
2253
      ;;
2159
2263
 
2160
2264
hpux10.20* | hpux11*)
2161
2265
  lt_cv_file_magic_cmd=/usr/bin/file
2162
 
  case "$host_cpu" in
 
2266
  case $host_cpu in
2163
2267
  ia64*)
2164
2268
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2165
2269
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2209
2313
  ;;
2210
2314
 
2211
2315
openbsd*)
2212
 
  lt_cv_file_magic_cmd=/usr/bin/file
2213
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2214
2316
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2215
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2317
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2216
2318
  else
2217
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2319
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2218
2320
  fi
2219
2321
  ;;
2220
2322
 
2335
2437
# -----------------------------------
2336
2438
# sets LIBLTDL to the link flags for the libltdl convenience library and
2337
2439
# LTDLINCL to the include flags for the libltdl header and adds
2338
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2339
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2340
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
2341
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2342
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2343
 
# flat and you're not using automake, define top_builddir and
2344
 
# top_srcdir appropriately in the Makefiles.
 
2440
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2441
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2442
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2443
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2444
# (note the single quotes!).  If your package is not flat and you're not
 
2445
# using automake, define top_builddir and top_srcdir appropriately in
 
2446
# the Makefiles.
2345
2447
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2346
2448
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2347
2449
  case $enable_ltdl_convenience in
2360
2462
# -----------------------------------
2361
2463
# sets LIBLTDL to the link flags for the libltdl installable library and
2362
2464
# LTDLINCL to the include flags for the libltdl header and adds
2363
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
2364
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2365
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
2366
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
2367
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2368
 
# quotes!).  If your package is not flat and you're not using automake,
2369
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2465
# --enable-ltdl-install to the configure arguments.  Note that
 
2466
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2467
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2468
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2469
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2470
# flat and you're not using automake, define top_builddir and top_srcdir
 
2471
# appropriately in the Makefiles.
2370
2472
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2371
2473
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2372
2474
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2404
2506
# ---------------
2405
2507
AC_DEFUN([_LT_AC_LANG_CXX],
2406
2508
[AC_REQUIRE([AC_PROG_CXX])
2407
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2509
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2408
2510
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2409
2511
])# _LT_AC_LANG_CXX
2410
2512
 
 
2513
# _LT_AC_PROG_CXXCPP
 
2514
# ---------------
 
2515
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2516
[
 
2517
AC_REQUIRE([AC_PROG_CXX])
 
2518
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2519
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2520
    (test "X$CXX" != "Xg++"))) ; then
 
2521
  AC_PROG_CXXCPP
 
2522
fi
 
2523
])# _LT_AC_PROG_CXXCPP
2411
2524
 
2412
2525
# AC_LIBTOOL_F77
2413
2526
# --------------
2480
2593
 
2481
2594
_LT_AC_SYS_COMPILER
2482
2595
 
 
2596
# save warnings/boilerplate of simple test code
 
2597
_LT_COMPILER_BOILERPLATE
 
2598
_LT_LINKER_BOILERPLATE
 
2599
 
2483
2600
#
2484
2601
# Check for any special shared library compilation flags.
2485
2602
#
2530
2647
 
2531
2648
# On AIX, shared libraries and static libraries use the same namespace, and
2532
2649
# are all built from PIC.
2533
 
case "$host_os" in
 
2650
case $host_os in
2534
2651
aix3*)
2535
2652
  test "$enable_shared" = yes && enable_static=no
2536
2653
  if test -n "$RANLIB"; then
2543
2660
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2544
2661
    test "$enable_shared" = yes && enable_static=no
2545
2662
  fi
2546
 
  ;;
2547
 
  darwin* | rhapsody*)
2548
 
  if test "$GCC" = yes; then
2549
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2550
 
    case "$host_os" in
2551
 
    rhapsody* | darwin1.[[012]])
2552
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2553
 
      ;;
2554
 
    *) # Darwin 1.3 on
2555
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2556
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2557
 
      else
2558
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2559
 
          10.[[012]])
2560
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2561
 
            ;;
2562
 
          10.*)
2563
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2564
 
            ;;
2565
 
        esac
2566
 
      fi
2567
 
      ;;
2568
 
    esac
2569
 
    output_verbose_link_cmd='echo'
2570
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2571
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2572
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2573
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2574
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2575
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2576
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2577
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2578
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2579
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2580
 
  else
2581
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2582
 
  fi
2583
2663
    ;;
2584
2664
esac
2585
2665
AC_MSG_RESULT([$enable_shared])
2605
2685
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2606
2686
[AC_LANG_PUSH(C++)
2607
2687
AC_REQUIRE([AC_PROG_CXX])
2608
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2688
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2609
2689
 
2610
2690
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2611
2691
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2634
2714
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2635
2715
 
2636
2716
# Source file extension for C++ test sources.
2637
 
ac_ext=cc
 
2717
ac_ext=cpp
2638
2718
 
2639
2719
# Object file extension for compiled C++ test sources.
2640
2720
objext=o
2649
2729
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2650
2730
_LT_AC_SYS_COMPILER
2651
2731
 
 
2732
# save warnings/boilerplate of simple test code
 
2733
_LT_COMPILER_BOILERPLATE
 
2734
_LT_LINKER_BOILERPLATE
 
2735
 
2652
2736
# Allow CC to be a program name with arguments.
2653
2737
lt_save_CC=$CC
2654
2738
lt_save_LD=$LD
2670
2754
CC=${CXX-"c++"}
2671
2755
compiler=$CC
2672
2756
_LT_AC_TAGVAR(compiler, $1)=$CC
2673
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
2757
_LT_CC_BASENAME([$compiler])
2674
2758
 
2675
2759
# We don't want -fno-exception wen compiling C++ code, so set the
2676
2760
# no_builtin_flag separately
2777
2861
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2778
2862
 
2779
2863
    if test "$GXX" = yes; then
2780
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
2864
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
2781
2865
      # We only want to do this on AIX 4.2 and lower, the check
2782
2866
      # below for broken collect2 doesn't work under 4.3+
2783
2867
        collect2name=`${CC} -print-prog-name=collect2`
2798
2882
        fi
2799
2883
      esac
2800
2884
      shared_flag='-shared'
 
2885
      if test "$aix_use_runtimelinking" = yes; then
 
2886
        shared_flag="$shared_flag "'${wl}-G'
 
2887
      fi
2801
2888
    else
2802
2889
      # not using gcc
2803
2890
      if test "$host_cpu" = ia64; then
2843
2930
        # Exported symbols can be pulled into shared objects from archives
2844
2931
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2845
2932
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2846
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
2933
        # This is similar to how AIX traditionally builds its shared libraries.
2847
2934
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2848
2935
      fi
2849
2936
    fi
2857
2944
    esac
2858
2945
    ;;
2859
2946
 
 
2947
 
2860
2948
  cygwin* | mingw* | pw32*)
2861
2949
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2862
2950
    # as there is no search path for DLLs.
2880
2968
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2881
2969
    fi
2882
2970
  ;;
2883
 
 
2884
 
  darwin* | rhapsody*)
2885
 
  if test "$GXX" = yes; then
2886
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2887
 
    case "$host_os" in
2888
 
    rhapsody* | darwin1.[[012]])
2889
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2890
 
      ;;
2891
 
    *) # Darwin 1.3 on
2892
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2893
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2894
 
      else
2895
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2896
 
          10.[[012]])
2897
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2898
 
            ;;
2899
 
          10.*)
2900
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2901
 
            ;;
 
2971
      darwin* | rhapsody*)
 
2972
        case $host_os in
 
2973
        rhapsody* | darwin1.[[012]])
 
2974
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
2975
         ;;
 
2976
       *) # Darwin 1.3 on
 
2977
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2978
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2979
         else
 
2980
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
2981
             10.[[012]])
 
2982
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2983
               ;;
 
2984
             10.*)
 
2985
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
2986
               ;;
 
2987
           esac
 
2988
         fi
 
2989
         ;;
2902
2990
        esac
2903
 
      fi
2904
 
      ;;
2905
 
    esac
2906
 
    lt_int_apple_cc_single_mod=no
2907
 
    output_verbose_link_cmd='echo'
2908
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2909
 
      lt_int_apple_cc_single_mod=yes
2910
 
    fi
2911
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2912
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2913
 
    else
2914
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2915
 
    fi
2916
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
2991
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2992
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2993
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
2994
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2995
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
2996
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2917
2997
 
2918
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2919
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2920
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2921
 
    else
2922
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2923
 
    fi
2924
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2925
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2926
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2927
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2928
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2929
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2930
 
  else
2931
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2932
 
  fi
2933
 
    ;;
 
2998
    if test "$GXX" = yes ; then
 
2999
      lt_int_apple_cc_single_mod=no
 
3000
      output_verbose_link_cmd='echo'
 
3001
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3002
       lt_int_apple_cc_single_mod=yes
 
3003
      fi
 
3004
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3005
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3006
      else
 
3007
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3008
        fi
 
3009
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3010
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3011
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3012
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3013
          else
 
3014
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3015
          fi
 
3016
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3017
      else
 
3018
      case $cc_basename in
 
3019
        xlc*)
 
3020
         output_verbose_link_cmd='echo'
 
3021
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3022
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3023
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3024
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3025
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3026
          ;;
 
3027
       *)
 
3028
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3029
          ;;
 
3030
      esac
 
3031
      fi
 
3032
        ;;
2934
3033
 
2935
3034
  dgux*)
2936
3035
    case $cc_basename in
2937
 
      ec++)
 
3036
      ec++*)
2938
3037
        # FIXME: insert proper C++ library support
2939
3038
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2940
3039
        ;;
2941
 
      ghcx)
 
3040
      ghcx*)
2942
3041
        # Green Hills C++ Compiler
2943
3042
        # FIXME: insert proper C++ library support
2944
3043
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2949
3048
        ;;
2950
3049
    esac
2951
3050
    ;;
2952
 
  freebsd[12]*)
 
3051
  freebsd[[12]]*)
2953
3052
    # C++ shared libraries reported to be fairly broken before switch to ELF
2954
3053
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2955
3054
    ;;
2956
3055
  freebsd-elf*)
2957
3056
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2958
3057
    ;;
2959
 
  freebsd* | kfreebsd*-gnu)
 
3058
  freebsd* | kfreebsd*-gnu | dragonfly*)
2960
3059
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2961
3060
    # conventions
2962
3061
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2973
3072
                                # location of the library.
2974
3073
 
2975
3074
    case $cc_basename in
2976
 
    CC)
 
3075
    CC*)
2977
3076
      # FIXME: insert proper C++ library support
2978
3077
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2979
3078
      ;;
2980
 
    aCC)
 
3079
    aCC*)
2981
3080
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2982
3081
      # Commands to make compiler produce verbose output that lists
2983
3082
      # what "hidden" libraries, object files and flags are used when
2987
3086
      # explicitly linking system object files so we need to strip them
2988
3087
      # from the output so that they don't get included in the library
2989
3088
      # dependencies.
2990
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3089
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2991
3090
      ;;
2992
3091
    *)
2993
3092
      if test "$GXX" = yes; then
3001
3100
    ;;
3002
3101
  hpux10*|hpux11*)
3003
3102
    if test $with_gnu_ld = no; then
3004
 
      case "$host_cpu" in
 
3103
      case $host_cpu in
3005
3104
      hppa*64*)
3006
3105
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3007
3106
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3017
3116
        ;;
3018
3117
      esac
3019
3118
    fi
3020
 
    case "$host_cpu" in
 
3119
    case $host_cpu in
3021
3120
    hppa*64*)
3022
3121
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3023
3122
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3038
3137
    esac
3039
3138
 
3040
3139
    case $cc_basename in
3041
 
      CC)
 
3140
      CC*)
3042
3141
        # FIXME: insert proper C++ library support
3043
3142
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3044
3143
        ;;
3045
 
      aCC)
3046
 
        case "$host_cpu" in
 
3144
      aCC*)
 
3145
        case $host_cpu in
3047
3146
        hppa*64*|ia64*)
3048
3147
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3049
3148
          ;;
3064
3163
      *)
3065
3164
        if test "$GXX" = yes; then
3066
3165
          if test $with_gnu_ld = no; then
3067
 
            case "$host_cpu" in
 
3166
            case $host_cpu in
3068
3167
            ia64*|hppa*64*)
3069
3168
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3070
3169
              ;;
3082
3181
    ;;
3083
3182
  irix5* | irix6*)
3084
3183
    case $cc_basename in
3085
 
      CC)
 
3184
      CC*)
3086
3185
        # SGI C++
3087
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3186
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3088
3187
 
3089
3188
        # Archives containing C++ object files must be created using
3090
3189
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3095
3194
      *)
3096
3195
        if test "$GXX" = yes; then
3097
3196
          if test "$with_gnu_ld" = no; then
3098
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3197
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
3099
3198
          else
3100
3199
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3101
3200
          fi
3108
3207
    ;;
3109
3208
  linux*)
3110
3209
    case $cc_basename in
3111
 
      KCC)
 
3210
      KCC*)
3112
3211
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3113
3212
 
3114
3213
        # KCC will only create a shared library if the output file
3133
3232
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3134
3233
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3135
3234
        ;;
3136
 
      icpc)
 
3235
      icpc*)
3137
3236
        # Intel C++
3138
3237
        with_gnu_ld=yes
 
3238
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3239
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3240
        # earlier do not add the objects themselves.
 
3241
        case `$CC -V 2>&1` in
 
3242
        *"Version 7."*)
 
3243
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3244
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3245
          ;;
 
3246
        *)  # Version 8.0 or newer
 
3247
          tmp_idyn=
 
3248
          case $host_cpu in
 
3249
            ia64*) tmp_idyn=' -i_dynamic';;
 
3250
          esac
 
3251
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3252
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3253
          ;;
 
3254
        esac
3139
3255
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3141
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3142
3256
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3143
3257
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3144
3258
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3145
3259
        ;;
3146
 
      cxx)
 
3260
      pgCC*)
 
3261
        # Portland Group C++ compiler
 
3262
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3263
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3264
 
 
3265
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3266
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3267
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3268
        ;;
 
3269
      cxx*)
3147
3270
        # Compaq C++
3148
3271
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149
3272
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3174
3297
    ;;
3175
3298
  mvs*)
3176
3299
    case $cc_basename in
3177
 
      cxx)
 
3300
      cxx*)
3178
3301
        # FIXME: insert proper C++ library support
3179
3302
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3180
3303
        ;;
3195
3318
    # Workaround some broken pre-1.5 toolchains
3196
3319
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3197
3320
    ;;
 
3321
  openbsd2*)
 
3322
    # C++ shared libraries are fairly broken
 
3323
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3324
    ;;
 
3325
  openbsd*)
 
3326
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3327
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3328
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3329
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3330
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3331
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3332
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3333
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3334
    fi
 
3335
    output_verbose_link_cmd='echo'
 
3336
    ;;
3198
3337
  osf3*)
3199
3338
    case $cc_basename in
3200
 
      KCC)
 
3339
      KCC*)
3201
3340
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3202
3341
 
3203
3342
        # KCC will only create a shared library if the output file
3213
3352
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3214
3353
 
3215
3354
        ;;
3216
 
      RCC)
 
3355
      RCC*)
3217
3356
        # Rational C++ 2.4.1
3218
3357
        # FIXME: insert proper C++ library support
3219
3358
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3220
3359
        ;;
3221
 
      cxx)
 
3360
      cxx*)
3222
3361
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3223
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3362
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3224
3363
 
3225
3364
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3226
3365
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3238
3377
      *)
3239
3378
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3240
3379
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3241
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3380
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
3242
3381
 
3243
3382
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3244
3383
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3257
3396
    ;;
3258
3397
  osf4* | osf5*)
3259
3398
    case $cc_basename in
3260
 
      KCC)
 
3399
      KCC*)
3261
3400
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3262
3401
 
3263
3402
        # KCC will only create a shared library if the output file
3272
3411
        # the KAI C++ compiler.
3273
3412
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3274
3413
        ;;
3275
 
      RCC)
 
3414
      RCC*)
3276
3415
        # Rational C++ 2.4.1
3277
3416
        # FIXME: insert proper C++ library support
3278
3417
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3279
3418
        ;;
3280
 
      cxx)
 
3419
      cxx*)
3281
3420
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3282
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3421
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3283
3422
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3284
3423
          echo "-hidden">> $lib.exp~
3285
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
3424
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3286
3425
          $rm $lib.exp'
3287
3426
 
3288
3427
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3301
3440
      *)
3302
3441
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3303
3442
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3304
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3443
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
3305
3444
 
3306
3445
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3307
3446
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3325
3464
  sco*)
3326
3465
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3327
3466
    case $cc_basename in
3328
 
      CC)
 
3467
      CC*)
3329
3468
        # FIXME: insert proper C++ library support
3330
3469
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3331
3470
        ;;
3337
3476
    ;;
3338
3477
  sunos4*)
3339
3478
    case $cc_basename in
3340
 
      CC)
 
3479
      CC*)
3341
3480
        # Sun C++ 4.x
3342
3481
        # FIXME: insert proper C++ library support
3343
3482
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3344
3483
        ;;
3345
 
      lcc)
 
3484
      lcc*)
3346
3485
        # Lucid
3347
3486
        # FIXME: insert proper C++ library support
3348
3487
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3355
3494
    ;;
3356
3495
  solaris*)
3357
3496
    case $cc_basename in
3358
 
      CC)
 
3497
      CC*)
3359
3498
        # Sun C++ 4.2, 5.x and Centerline C++
 
3499
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3360
3500
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3361
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3501
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3362
3502
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3363
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3503
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3364
3504
 
3365
3505
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3366
3506
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3367
3507
        case $host_os in
3368
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3508
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3369
3509
          *)
3370
3510
            # The C++ compiler is used as linker so we must use $wl
3371
3511
            # flag to pass the commands to the underlying system
3372
 
            # linker.
 
3512
            # linker. We must also pass each convience library through
 
3513
            # to the system linker between allextract/defaultextract.
 
3514
            # The C++ compiler will combine linker options so we
 
3515
            # cannot just pass the convience library names through
 
3516
            # without $wl.
3373
3517
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3374
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3518
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3375
3519
            ;;
3376
3520
        esac
3377
3521
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3378
3522
 
3379
 
        # Commands to make compiler produce verbose output that lists
3380
 
        # what "hidden" libraries, object files and flags are used when
3381
 
        # linking a shared library.
3382
 
        #
3383
 
        # There doesn't appear to be a way to prevent this compiler from
3384
 
        # explicitly linking system object files so we need to strip them
3385
 
        # from the output so that they don't get included in the library
3386
 
        # dependencies.
3387
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3523
        output_verbose_link_cmd='echo'
3388
3524
 
3389
3525
        # Archives containing C++ object files must be created using
3390
3526
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3392
3528
        # in the archive.
3393
3529
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3394
3530
        ;;
3395
 
      gcx)
 
3531
      gcx*)
3396
3532
        # Green Hills C++ Compiler
3397
3533
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3398
3534
 
3435
3571
    ;;
3436
3572
  tandem*)
3437
3573
    case $cc_basename in
3438
 
      NCC)
 
3574
      NCC*)
3439
3575
        # NonStop-UX NCC 3.20
3440
3576
        # FIXME: insert proper C++ library support
3441
3577
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3541
3677
  # The `*' in the case matches for architectures that use `case' in
3542
3678
  # $output_verbose_cmd can trigger glob expansion during the loop
3543
3679
  # eval without this substitution.
3544
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3680
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3545
3681
 
3546
3682
  for p in `eval $output_verbose_link_cmd`; do
3547
3683
    case $p in
3617
3753
 
3618
3754
$rm -f confest.$objext
3619
3755
 
 
3756
# PORTME: override above test on systems where it is broken
 
3757
ifelse([$1],[CXX],
 
3758
[case $host_os in
 
3759
solaris*)
 
3760
  case $cc_basename in
 
3761
  CC*)
 
3762
    # Adding this requires a known-good setup of shared libraries for
 
3763
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3764
    # archive will be linked into the output, leading to subtle bugs.
 
3765
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3766
    ;;
 
3767
  esac
 
3768
esac
 
3769
])
 
3770
 
3620
3771
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3621
3772
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3622
3773
esac
3667
3818
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3668
3819
_LT_AC_SYS_COMPILER
3669
3820
 
 
3821
# save warnings/boilerplate of simple test code
 
3822
_LT_COMPILER_BOILERPLATE
 
3823
_LT_LINKER_BOILERPLATE
 
3824
 
3670
3825
# Allow CC to be a program name with arguments.
3671
3826
lt_save_CC="$CC"
3672
3827
CC=${F77-"f77"}
3673
3828
compiler=$CC
3674
3829
_LT_AC_TAGVAR(compiler, $1)=$CC
3675
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3830
_LT_CC_BASENAME([$compiler])
3676
3831
 
3677
3832
AC_MSG_CHECKING([if libtool supports shared libraries])
3678
3833
AC_MSG_RESULT([$can_build_shared])
3682
3837
 
3683
3838
# On AIX, shared libraries and static libraries use the same namespace, and
3684
3839
# are all built from PIC.
3685
 
case "$host_os" in
 
3840
case $host_os in
3686
3841
aix3*)
3687
3842
  test "$enable_shared" = yes && enable_static=no
3688
3843
  if test -n "$RANLIB"; then
3691
3846
  fi
3692
3847
  ;;
3693
3848
aix4* | aix5*)
3694
 
  test "$enable_shared" = yes && enable_static=no
 
3849
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3850
    test "$enable_shared" = yes && enable_static=no
 
3851
  fi
3695
3852
  ;;
3696
3853
esac
3697
3854
AC_MSG_RESULT([$enable_shared])
3742
3899
lt_simple_compile_test_code="class foo {}\n"
3743
3900
 
3744
3901
# Code to be used in simple link tests
3745
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
3902
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3746
3903
 
3747
3904
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3748
3905
_LT_AC_SYS_COMPILER
3749
3906
 
 
3907
# save warnings/boilerplate of simple test code
 
3908
_LT_COMPILER_BOILERPLATE
 
3909
_LT_LINKER_BOILERPLATE
 
3910
 
3750
3911
# Allow CC to be a program name with arguments.
3751
3912
lt_save_CC="$CC"
3752
3913
CC=${GCJ-"gcj"}
3753
3914
compiler=$CC
3754
3915
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3916
_LT_CC_BASENAME([$compiler])
3755
3917
 
3756
3918
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3757
3919
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3758
3920
 
 
3921
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3922
 
3759
3923
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3760
3924
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3761
3925
AC_LIBTOOL_PROG_CC_C_O($1)
3798
3962
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3799
3963
_LT_AC_SYS_COMPILER
3800
3964
 
 
3965
# save warnings/boilerplate of simple test code
 
3966
_LT_COMPILER_BOILERPLATE
 
3967
_LT_LINKER_BOILERPLATE
 
3968
 
3801
3969
# Allow CC to be a program name with arguments.
3802
3970
lt_save_CC="$CC"
3803
3971
CC=${RC-"windres"}
3804
3972
compiler=$CC
3805
3973
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3974
_LT_CC_BASENAME([$compiler])
3806
3975
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3807
3976
 
3808
3977
AC_LIBTOOL_CONFIG($1)
3938
4107
#
3939
4108
# You should have received a copy of the GNU General Public License
3940
4109
# along with this program; if not, write to the Free Software
3941
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4110
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3942
4111
#
3943
4112
# As a special exception to the GNU General Public License, if you
3944
4113
# distribute this file as part of a program that contains a
3949
4118
SED=$lt_SED
3950
4119
 
3951
4120
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3952
 
Xsed="$SED -e s/^X//"
 
4121
Xsed="$SED -e 1s/^X//"
3953
4122
 
3954
4123
# The HP-UX ksh and POSIX shell print the target directory to stdout
3955
4124
# if CDPATH is set.
3956
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4125
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3957
4126
 
3958
4127
# The names of the tagged configurations supported by this script.
3959
4128
available_tags=
3984
4153
# The host system.
3985
4154
host_alias=$host_alias
3986
4155
host=$host
 
4156
host_os=$host_os
 
4157
 
 
4158
# The build system.
 
4159
build_alias=$build_alias
 
4160
build=$build
 
4161
build_os=$build_os
3987
4162
 
3988
4163
# An echo program that does not interpret backslashes.
3989
4164
echo=$lt_echo
4060
4235
# Does compiler simultaneously support -c and -o options?
4061
4236
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4062
4237
 
4063
 
# Must we lock files when doing compilation ?
 
4238
# Must we lock files when doing compilation?
4064
4239
need_locks=$lt_need_locks
4065
4240
 
4066
4241
# Do we need the lib prefix for modules?
4334
4509
# Regexp to match symbols that can be accessed directly from C.
4335
4510
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4336
4511
 
4337
 
# Transform the above into a raw symbol and a C symbol.
4338
 
symxfrm='\1 \2\3 \3'
4339
 
 
4340
4512
# Transform an extracted symbol line into a proper C declaration
4341
4513
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4342
4514
 
4358
4530
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4359
4531
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4360
4532
  ;;
 
4533
linux*)
 
4534
  if test "$host_cpu" = ia64; then
 
4535
    symcode='[[ABCDGIRSTW]]'
 
4536
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4537
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4538
  fi
 
4539
  ;;
4361
4540
irix* | nonstopux*)
4362
4541
  symcode='[[BCDEGRST]]'
4363
4542
  ;;
4389
4568
# Try without a prefix undercore, then with it.
4390
4569
for ac_symprfx in "" "_"; do
4391
4570
 
 
4571
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4572
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4573
 
4392
4574
  # Write the raw and C identifiers.
4393
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4575
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4394
4576
 
4395
4577
  # Check to see that the pipe works correctly.
4396
4578
  pipe_works=no
4554
4736
    hpux*)
4555
4737
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4556
4738
      # not for PA HP-UX.
4557
 
      case "$host_cpu" in
 
4739
      case $host_cpu in
4558
4740
      hppa*64*|ia64*)
4559
4741
        ;;
4560
4742
      *)
4579
4761
        ;;
4580
4762
      chorus*)
4581
4763
        case $cc_basename in
4582
 
        cxch68)
 
4764
        cxch68*)
4583
4765
          # Green Hills C++ Compiler
4584
4766
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4585
4767
          ;;
4586
4768
        esac
4587
4769
        ;;
 
4770
       darwin*)
 
4771
         # PIC is the default on this platform
 
4772
         # Common symbols not allowed in MH_DYLIB files
 
4773
         case $cc_basename in
 
4774
           xlc*)
 
4775
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
4776
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4777
           ;;
 
4778
         esac
 
4779
       ;;
4588
4780
      dgux*)
4589
4781
        case $cc_basename in
4590
 
          ec++)
 
4782
          ec++*)
4591
4783
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4592
4784
            ;;
4593
 
          ghcx)
 
4785
          ghcx*)
4594
4786
            # Green Hills C++ Compiler
4595
4787
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4596
4788
            ;;
4598
4790
            ;;
4599
4791
        esac
4600
4792
        ;;
4601
 
      freebsd* | kfreebsd*-gnu)
 
4793
      freebsd* | kfreebsd*-gnu | dragonfly*)
4602
4794
        # FreeBSD uses GNU C++
4603
4795
        ;;
4604
4796
      hpux9* | hpux10* | hpux11*)
4605
4797
        case $cc_basename in
4606
 
          CC)
 
4798
          CC*)
4607
4799
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608
4800
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4609
4801
            if test "$host_cpu" != ia64; then
4610
4802
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4611
4803
            fi
4612
4804
            ;;
4613
 
          aCC)
 
4805
          aCC*)
4614
4806
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4615
4807
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4616
 
            case "$host_cpu" in
 
4808
            case $host_cpu in
4617
4809
            hppa*64*|ia64*)
4618
4810
              # +Z the default
4619
4811
              ;;
4628
4820
        ;;
4629
4821
      irix5* | irix6* | nonstopux*)
4630
4822
        case $cc_basename in
4631
 
          CC)
 
4823
          CC*)
4632
4824
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4633
4825
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4634
4826
            # CC pic flag -KPIC is the default.
4639
4831
        ;;
4640
4832
      linux*)
4641
4833
        case $cc_basename in
4642
 
          KCC)
 
4834
          KCC*)
4643
4835
            # KAI C++ Compiler
4644
4836
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4645
4837
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4646
4838
            ;;
4647
 
          icpc)
 
4839
          icpc* | ecpc*)
4648
4840
            # Intel C++
4649
4841
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4650
4842
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4651
4843
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4652
4844
            ;;
4653
 
          cxx)
 
4845
          pgCC*)
 
4846
            # Portland Group C++ compiler.
 
4847
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4848
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4849
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4850
            ;;
 
4851
          cxx*)
4654
4852
            # Compaq C++
4655
4853
            # Make sure the PIC flag is empty.  It appears that all Alpha
4656
4854
            # Linux and Compaq Tru64 Unix objects are PIC.
4667
4865
        ;;
4668
4866
      mvs*)
4669
4867
        case $cc_basename in
4670
 
          cxx)
 
4868
          cxx*)
4671
4869
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4672
4870
            ;;
4673
4871
          *)
4678
4876
        ;;
4679
4877
      osf3* | osf4* | osf5*)
4680
4878
        case $cc_basename in
4681
 
          KCC)
 
4879
          KCC*)
4682
4880
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4683
4881
            ;;
4684
 
          RCC)
 
4882
          RCC*)
4685
4883
            # Rational C++ 2.4.1
4686
4884
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4687
4885
            ;;
4688
 
          cxx)
 
4886
          cxx*)
4689
4887
            # Digital/Compaq C++
4690
4888
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4691
4889
            # Make sure the PIC flag is empty.  It appears that all Alpha
4701
4899
        ;;
4702
4900
      sco*)
4703
4901
        case $cc_basename in
4704
 
          CC)
 
4902
          CC*)
4705
4903
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4706
4904
            ;;
4707
4905
          *)
4710
4908
        ;;
4711
4909
      solaris*)
4712
4910
        case $cc_basename in
4713
 
          CC)
 
4911
          CC*)
4714
4912
            # Sun C++ 4.2, 5.x and Centerline C++
4715
4913
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4716
4914
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4717
4915
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4718
4916
            ;;
4719
 
          gcx)
 
4917
          gcx*)
4720
4918
            # Green Hills C++ Compiler
4721
4919
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4722
4920
            ;;
4726
4924
        ;;
4727
4925
      sunos4*)
4728
4926
        case $cc_basename in
4729
 
          CC)
 
4927
          CC*)
4730
4928
            # Sun C++ 4.x
4731
4929
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4732
4930
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4733
4931
            ;;
4734
 
          lcc)
 
4932
          lcc*)
4735
4933
            # Lucid
4736
4934
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4737
4935
            ;;
4741
4939
        ;;
4742
4940
      tandem*)
4743
4941
        case $cc_basename in
4744
 
          NCC)
 
4942
          NCC*)
4745
4943
            # NonStop-UX NCC 3.20
4746
4944
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4747
4945
            ;;
4812
5010
    hpux*)
4813
5011
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4814
5012
      # not for PA HP-UX.
4815
 
      case "$host_cpu" in
 
5013
      case $host_cpu in
4816
5014
      hppa*64*|ia64*)
4817
5015
        # +Z the default
4818
5016
        ;;
4838
5036
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4839
5037
      fi
4840
5038
      ;;
 
5039
      darwin*)
 
5040
        # PIC is the default on this platform
 
5041
        # Common symbols not allowed in MH_DYLIB files
 
5042
       case $cc_basename in
 
5043
         xlc*)
 
5044
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5045
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5046
         ;;
 
5047
       esac
 
5048
       ;;
4841
5049
 
4842
5050
    mingw* | pw32* | os2*)
4843
5051
      # This hack is so that the source file can tell whether it is being
4849
5057
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4850
5058
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4851
5059
      # not for PA HP-UX.
4852
 
      case "$host_cpu" in
 
5060
      case $host_cpu in
4853
5061
      hppa*64*|ia64*)
4854
5062
        # +Z the default
4855
5063
        ;;
4873
5081
      ;;
4874
5082
 
4875
5083
    linux*)
4876
 
      case $CC in
 
5084
      case $cc_basename in
4877
5085
      icc* | ecc*)
4878
5086
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4879
5087
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4880
5088
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4881
5089
        ;;
 
5090
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5091
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5092
        # which looks to be a dead project)
 
5093
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5094
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5095
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5096
        ;;
4882
5097
      ccc*)
4883
5098
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4884
5099
        # All Alpha code is PIC.
4899
5114
      ;;
4900
5115
 
4901
5116
    solaris*)
4902
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903
5117
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4904
5118
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5119
      case $cc_basename in
 
5120
      f77* | f90* | f95*)
 
5121
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5122
      *)
 
5123
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5124
      esac
4905
5125
      ;;
4906
5126
 
4907
5127
    sunos4*)
4923
5143
      fi
4924
5144
      ;;
4925
5145
 
 
5146
    unicos*)
 
5147
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5148
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5149
      ;;
 
5150
 
4926
5151
    uts4*)
4927
5152
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4928
5153
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4950
5175
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4951
5176
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4952
5177
fi
4953
 
case "$host_os" in
 
5178
case $host_os in
4954
5179
  # For platforms which do not support PIC, -DPIC is meaningless:
4955
5180
  *djgpp*)
4956
5181
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4983
5208
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4984
5209
  ;;
4985
5210
  cygwin* | mingw*)
4986
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5211
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
4987
5212
  ;;
4988
5213
  linux*)
4989
5214
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5029
5254
  # rely on this symbol name, it's probably fine to never include it in
5030
5255
  # preloaded symbol tables.
5031
5256
  extract_expsyms_cmds=
5032
 
 
 
5257
  # Just being paranoid about ensuring that cc_basename is set.
 
5258
  _LT_CC_BASENAME([$compiler])
5033
5259
  case $host_os in
5034
5260
  cygwin* | mingw* | pw32*)
5035
5261
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5049
5275
    # If archive_cmds runs LD, not CC, wlarc should be empty
5050
5276
    wlarc='${wl}'
5051
5277
 
 
5278
    # Set some defaults for GNU ld with shared library support. These
 
5279
    # are reset later if shared libraries are not supported. Putting them
 
5280
    # here allows them to be overridden if necessary.
 
5281
    runpath_var=LD_RUN_PATH
 
5282
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5283
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5284
    # ancient GNU ld didn't support --whole-archive et. al.
 
5285
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5286
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5287
      else
 
5288
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5289
    fi
 
5290
    supports_anon_versioning=no
 
5291
    case `$LD -v 2>/dev/null` in
 
5292
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5293
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5294
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5295
      *\ 2.11.*) ;; # other 2.11 versions
 
5296
      *) supports_anon_versioning=yes ;;
 
5297
    esac
 
5298
 
5052
5299
    # See if GNU ld supports shared libraries.
5053
5300
    case $host_os in
5054
5301
    aix3* | aix4* | aix5*)
5099
5346
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5100
5347
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5101
5348
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5102
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5349
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5103
5350
 
5104
5351
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5105
5352
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5113
5360
        fi~
5114
5361
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5115
5362
      else
5116
 
        ld_shlibs=no
 
5363
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5364
      fi
 
5365
      ;;
 
5366
 
 
5367
    linux*)
 
5368
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5369
        tmp_addflag=
 
5370
        case $cc_basename,$host_cpu in
 
5371
        pgcc*)                          # Portland Group C compiler
 
5372
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5373
          tmp_addflag=' $pic_flag'
 
5374
          ;;
 
5375
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5376
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5377
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5378
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5379
          tmp_addflag=' -i_dynamic' ;;
 
5380
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5381
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5382
        ifc* | ifort*)                  # Intel Fortran compiler
 
5383
          tmp_addflag=' -nofor_main' ;;
 
5384
        esac
 
5385
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5386
 
 
5387
        if test $supports_anon_versioning = yes; then
 
5388
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5389
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5390
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5391
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5392
        fi
 
5393
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5394
      else
 
5395
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5117
5396
      fi
5118
5397
      ;;
5119
5398
 
5155
5434
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5156
5435
      ;;
5157
5436
 
5158
 
  linux*)
5159
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5160
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5161
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5162
 
      supports_anon_versioning=no
5163
 
      case `$LD -v 2>/dev/null` in
5164
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5165
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5166
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5167
 
        *\ 2.11.*) ;; # other 2.11 versions
5168
 
        *) supports_anon_versioning=yes ;;
5169
 
      esac
5170
 
      if test $supports_anon_versioning = yes; then
5171
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5172
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5173
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
5174
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5175
 
      else
5176
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5177
 
      fi
5178
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5179
 
    else
5180
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5181
 
    fi
5182
 
    ;;
5183
 
 
5184
5437
    *)
5185
5438
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5186
5439
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5191
5444
      ;;
5192
5445
    esac
5193
5446
 
5194
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5195
 
      runpath_var=LD_RUN_PATH
5196
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5197
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5198
 
      # ancient GNU ld didn't support --whole-archive et. al.
5199
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5200
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5201
 
      else
5202
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5203
 
      fi
 
5447
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5448
      runpath_var=
 
5449
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5450
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5451
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5204
5452
    fi
5205
5453
  else
5206
5454
    # PORTME fill in a description of your system's linker (not GNU ld)
5264
5512
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5265
5513
 
5266
5514
      if test "$GCC" = yes; then
5267
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5515
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5268
5516
        # We only want to do this on AIX 4.2 and lower, the check
5269
5517
        # below for broken collect2 doesn't work under 4.3+
5270
5518
          collect2name=`${CC} -print-prog-name=collect2`
5285
5533
          fi
5286
5534
        esac
5287
5535
        shared_flag='-shared'
 
5536
        if test "$aix_use_runtimelinking" = yes; then
 
5537
          shared_flag="$shared_flag "'${wl}-G'
 
5538
        fi
5288
5539
      else
5289
5540
        # not using gcc
5290
5541
        if test "$host_cpu" = ia64; then
5329
5580
          # Exported symbols can be pulled into shared objects from archives
5330
5581
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5331
5582
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5332
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
5583
          # This is similar to how AIX traditionally builds its shared libraries.
5333
5584
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5334
5585
        fi
5335
5586
      fi
5343
5594
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5344
5595
      ;;
5345
5596
 
5346
 
    bsdi4*)
 
5597
    bsdi[[45]]*)
5347
5598
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5348
5599
      ;;
5349
5600
 
5364
5615
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5365
5616
      # FIXME: Should let the user specify the lib program.
5366
5617
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5367
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5618
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5368
5619
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5369
5620
      ;;
5370
5621
 
5371
5622
    darwin* | rhapsody*)
5372
 
    if test "$GXX" = yes ; then
 
5623
      case $host_os in
 
5624
        rhapsody* | darwin1.[[012]])
 
5625
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5626
         ;;
 
5627
       *) # Darwin 1.3 on
 
5628
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5629
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5630
         else
 
5631
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5632
             10.[[012]])
 
5633
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5634
               ;;
 
5635
             10.*)
 
5636
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5637
               ;;
 
5638
           esac
 
5639
         fi
 
5640
         ;;
 
5641
      esac
5373
5642
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5374
 
      case "$host_os" in
5375
 
      rhapsody* | darwin1.[[012]])
5376
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5377
 
        ;;
5378
 
      *) # Darwin 1.3 on
5379
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5380
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5381
 
      else
5382
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
5383
 
          10.[[012]])
5384
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5385
 
            ;;
5386
 
          10.*)
5387
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5388
 
            ;;
5389
 
        esac
5390
 
      fi
5391
 
        ;;
5392
 
      esac
5393
 
        lt_int_apple_cc_single_mod=no
 
5643
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5644
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5645
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5646
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5647
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5648
    if test "$GCC" = yes ; then
5394
5649
        output_verbose_link_cmd='echo'
5395
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5396
 
          lt_int_apple_cc_single_mod=yes
5397
 
        fi
5398
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5399
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5400
 
        else
5401
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5402
 
      fi
5403
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5404
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5405
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5406
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5407
 
        else
5408
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5409
 
        fi
 
5650
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5651
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5652
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5653
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
5654
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
5655
    else
 
5656
      case $cc_basename in
 
5657
        xlc*)
 
5658
         output_verbose_link_cmd='echo'
 
5659
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
5660
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5661
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5662
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5410
5663
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5411
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5412
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5413
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5414
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5415
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5416
 
    else
5417
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5664
          ;;
 
5665
       *)
 
5666
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5667
          ;;
 
5668
      esac
5418
5669
    fi
5419
5670
      ;;
5420
5671
 
5448
5699
      ;;
5449
5700
 
5450
5701
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5451
 
    freebsd* | kfreebsd*-gnu)
 
5702
    freebsd* | kfreebsd*-gnu | dragonfly*)
5452
5703
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5453
5704
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5454
5705
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5473
5724
 
5474
5725
    hpux10* | hpux11*)
5475
5726
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5476
 
        case "$host_cpu" in
 
5727
        case $host_cpu in
5477
5728
        hppa*64*|ia64*)
5478
5729
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5479
5730
          ;;
5482
5733
          ;;
5483
5734
        esac
5484
5735
      else
5485
 
        case "$host_cpu" in
 
5736
        case $host_cpu in
5486
5737
        hppa*64*|ia64*)
5487
5738
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5488
5739
          ;;
5492
5743
        esac
5493
5744
      fi
5494
5745
      if test "$with_gnu_ld" = no; then
5495
 
        case "$host_cpu" in
 
5746
        case $host_cpu in
5496
5747
        hppa*64*)
5497
5748
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5498
5749
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5559
5810
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5560
5811
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5561
5812
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5813
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5562
5814
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5563
5815
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5564
5816
      else
5604
5856
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5605
5857
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
5606
5858
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5607
 
        $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'
 
5859
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5608
5860
 
5609
5861
        # Both c and cxx compiler support -rpath directly
5610
5862
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5623
5875
    solaris*)
5624
5876
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5625
5877
      if test "$GCC" = yes; then
 
5878
        wlarc='${wl}'
5626
5879
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5627
5880
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5628
5881
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5629
5882
      else
 
5883
        wlarc=''
5630
5884
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5631
5885
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5632
5886
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5635
5889
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5636
5890
      case $host_os in
5637
5891
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5638
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5639
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
5892
      *)
 
5893
        # The compiler driver will combine linker options so we
 
5894
        # cannot just pass the convience library names through
 
5895
        # without $wl, iff we do not link with $LD.
 
5896
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
5897
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5898
        case $wlarc in
 
5899
        '')
 
5900
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
5901
        *)
 
5902
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
5903
        esac ;;
5640
5904
      esac
5641
5905
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5642
5906
      ;;
5897
6161
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5898
6162
# along with /bin/sed that truncates output.
5899
6163
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5900
 
  test ! -f $lt_ac_sed && break
 
6164
  test ! -f $lt_ac_sed && continue
5901
6165
  cat /dev/null > conftest.in
5902
6166
  lt_ac_count=0
5903
6167
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5922
6186
    fi
5923
6187
  done
5924
6188
done
 
6189
])
5925
6190
SED=$lt_cv_path_SED
5926
 
])
5927
6191
AC_MSG_RESULT([$SED])
5928
6192
])
5929
6193