~ubuntu-branches/ubuntu/gutsy/curl/gutsy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20060629150424-be178abcwks1n519
Tags: upstream-7.15.4
ImportĀ upstreamĀ versionĀ 7.15.4

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 Debian 1.5.20-2 AC_PROG_LIBTOOL
 
16
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
17
17
 
18
18
 
19
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
163
163
test -z "$AS" && AS=as
164
164
test -z "$CC" && CC=cc
165
165
test -z "$LTCC" && LTCC=$CC
 
166
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166
167
test -z "$DLLTOOL" && DLLTOOL=dlltool
167
168
test -z "$LD" && LD=ld
168
169
test -z "$LN_S" && LN_S="ln -s"
182
183
if test -n "$RANLIB"; then
183
184
  case $host_os in
184
185
  openbsd*)
185
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
186
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186
187
    ;;
187
188
  *)
188
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
189
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189
190
    ;;
190
191
  esac
191
192
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
233
234
# If no C compiler was specified, use CC.
234
235
LTCC=${LTCC-"$CC"}
235
236
 
 
237
# If no C compiler flags were specified, use CFLAGS.
 
238
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
239
 
236
240
# Allow CC to be a program name with arguments.
237
241
compiler=$CC
238
242
])# _LT_AC_SYS_COMPILER
261
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
262
266
[ac_outfile=conftest.$ac_objext
263
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
264
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
268
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
265
269
_lt_compiler_boilerplate=`cat conftest.err`
266
270
$rm conftest*
267
271
])# _LT_COMPILER_BOILERPLATE
274
278
AC_DEFUN([_LT_LINKER_BOILERPLATE],
275
279
[ac_outfile=conftest.$ac_objext
276
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
277
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
278
282
_lt_linker_boilerplate=`cat conftest.err`
279
283
$rm conftest*
280
284
])# _LT_LINKER_BOILERPLATE
580
584
    CFLAGS="$SAVE_CFLAGS"
581
585
  fi
582
586
  ;;
 
587
sparc*-*solaris*)
 
588
  # Find out which ABI we are using.
 
589
  echo 'int i;' > conftest.$ac_ext
 
590
  if AC_TRY_EVAL(ac_compile); then
 
591
    case `/usr/bin/file conftest.o` in
 
592
    *64-bit*)
 
593
      case $lt_cv_prog_gnu_ld in
 
594
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
595
      *)    LD="${LD-ld} -64" ;;
 
596
      esac
 
597
      ;;
 
598
    esac
 
599
  fi
 
600
  rm -rf conftest*
 
601
  ;;
 
602
 
583
603
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
584
604
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
585
605
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
622
642
   if (exit $ac_status) && test -s "$ac_outfile"; then
623
643
     # The compiler can only warn and ignore the option if not recognized
624
644
     # 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
 
645
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
646
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
647
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
628
648
       $2=yes
629
649
     fi
630
650
   fi
655
675
     if test -s conftest.err; then
656
676
       # Append any errors to the config.log.
657
677
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
658
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
659
 
       $SED '/^$/d' conftest.err >conftest.er2
 
678
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
679
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
660
680
       if diff conftest.exp conftest.er2 >/dev/null; then
661
681
         $2=yes
662
682
       fi
731
751
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
732
752
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
733
753
    ;;
 
754
 
 
755
  interix*)
 
756
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
757
    lt_cv_sys_max_cmd_len=196608
 
758
    ;;
 
759
 
734
760
  osf*)
735
761
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
736
762
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
744
770
      esac
745
771
    fi
746
772
    ;;
 
773
  sco3.2v5*)
 
774
    lt_cv_sys_max_cmd_len=102400
 
775
    ;;
 
776
  sysv5* | sco5v6* | sysv4.2uw2*)
 
777
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
778
    if test -n "$kargmax"; then
 
779
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
780
    else
 
781
      lt_cv_sys_max_cmd_len=32768
 
782
    fi
 
783
    ;;
747
784
  *)
748
785
    # If test is not a shell built-in, we'll probably end up computing a
749
786
    # maximum length that is only half of the actual maximum length, but
775
812
 
776
813
 
777
814
# _LT_AC_CHECK_DLFCN
778
 
# --------------------
 
815
# ------------------
779
816
AC_DEFUN([_LT_AC_CHECK_DLFCN],
780
817
[AC_CHECK_HEADERS(dlfcn.h)dnl
781
818
])# _LT_AC_CHECK_DLFCN
783
820
 
784
821
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
785
822
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
786
 
# ------------------------------------------------------------------
 
823
# ---------------------------------------------------------------------
787
824
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
788
825
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
789
826
if test "$cross_compiling" = yes; then :
849
886
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
850
887
      /* dlclose (self); */
851
888
    }
 
889
  else
 
890
    puts (dlerror ());
852
891
 
853
892
    exit (status);
854
893
}]
859
898
    case x$lt_status in
860
899
      x$lt_dlno_uscore) $1 ;;
861
900
      x$lt_dlneed_uscore) $2 ;;
862
 
      x$lt_unknown|x*) $3 ;;
 
901
      x$lt_dlunknown|x*) $3 ;;
863
902
    esac
864
903
  else :
865
904
    # compilation failed
871
910
 
872
911
 
873
912
# AC_LIBTOOL_DLOPEN_SELF
874
 
# -------------------
 
913
# ----------------------
875
914
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
876
915
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
877
916
if test "x$enable_dlopen" != xyes; then
942
981
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
943
982
 
944
983
    save_LDFLAGS="$LDFLAGS"
945
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
984
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
946
985
 
947
986
    save_LIBS="$LIBS"
948
987
    LIBS="$lt_cv_dlopen_libs $LIBS"
955
994
    ])
956
995
 
957
996
    if test "x$lt_cv_dlopen_self" = xyes; then
958
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
997
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
959
998
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
960
999
          lt_cv_dlopen_self_static, [dnl
961
1000
          _LT_AC_TRY_DLOPEN_SELF(
1015
1054
   then
1016
1055
     # The compiler can only warn and ignore the option if not recognized
1017
1056
     # So say no if there are warnings
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
 
1057
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1058
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1059
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1021
1060
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1022
1061
     fi
1023
1062
   fi
1358
1397
  dynamic_linker=no
1359
1398
  ;;
1360
1399
 
1361
 
kfreebsd*-gnu)
1362
 
  version_type=linux
1363
 
  need_lib_prefix=no
1364
 
  need_version=no
1365
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1366
 
  soname_spec='${libname}${release}${shared_ext}$major'
1367
 
  shlibpath_var=LD_LIBRARY_PATH
1368
 
  shlibpath_overrides_runpath=no
1369
 
  hardcode_into_libs=yes
1370
 
  dynamic_linker='GNU ld.so'
1371
 
  ;;
1372
 
 
1373
1400
freebsd* | dragonfly*)
1374
1401
  # DragonFly does not have aout.  When/if they implement a new
1375
1402
  # versioning mechanism, adjust this.
1402
1429
    shlibpath_overrides_runpath=yes
1403
1430
    hardcode_into_libs=yes
1404
1431
    ;;
1405
 
  *) # from 3.2 on
 
1432
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1433
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1406
1434
    shlibpath_overrides_runpath=no
1407
1435
    hardcode_into_libs=yes
1408
1436
    ;;
 
1437
  freebsd*) # from 4.6 on
 
1438
    shlibpath_overrides_runpath=yes
 
1439
    hardcode_into_libs=yes
 
1440
    ;;
1409
1441
  esac
1410
1442
  ;;
1411
1443
 
1465
1497
  postinstall_cmds='chmod 555 $lib'
1466
1498
  ;;
1467
1499
 
 
1500
interix3*)
 
1501
  version_type=linux
 
1502
  need_lib_prefix=no
 
1503
  need_version=no
 
1504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1505
  soname_spec='${libname}${release}${shared_ext}$major'
 
1506
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1507
  shlibpath_var=LD_LIBRARY_PATH
 
1508
  shlibpath_overrides_runpath=no
 
1509
  hardcode_into_libs=yes
 
1510
  ;;
 
1511
 
1468
1512
irix5* | irix6* | nonstopux*)
1469
1513
  case $host_os in
1470
1514
    nonstopux*) version_type=nonstopux ;;
1508
1552
  ;;
1509
1553
 
1510
1554
# This must be Linux ELF.
1511
 
linux*)
 
1555
linux* | k*bsd*-gnu)
1512
1556
  version_type=linux
1513
1557
  need_lib_prefix=no
1514
1558
  need_version=no
1549
1593
  dynamic_linker='NetBSD ld.elf_so'
1550
1594
  ;;
1551
1595
 
1552
 
knetbsd*-gnu)
1553
 
  version_type=linux
1554
 
  need_lib_prefix=no
1555
 
  need_version=no
1556
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1557
 
  soname_spec='${libname}${release}${shared_ext}$major'
1558
 
  shlibpath_var=LD_LIBRARY_PATH
1559
 
  shlibpath_overrides_runpath=no
1560
 
  hardcode_into_libs=yes
1561
 
  dynamic_linker='GNU ld.so'
1562
 
  ;;
1563
 
 
1564
1596
netbsd*)
1565
1597
  version_type=sunos
1566
1598
  need_lib_prefix=no
1598
1630
 
1599
1631
openbsd*)
1600
1632
  version_type=sunos
 
1633
  sys_lib_dlsearch_path_spec="/usr/lib"
1601
1634
  need_lib_prefix=no
1602
1635
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1603
1636
  case $host_os in
1641
1674
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1642
1675
  ;;
1643
1676
 
1644
 
sco3.2v5*)
1645
 
  version_type=osf
1646
 
  soname_spec='${libname}${release}${shared_ext}$major'
1647
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1648
 
  shlibpath_var=LD_LIBRARY_PATH
1649
 
  ;;
1650
 
 
1651
1677
solaris*)
1652
1678
  version_type=linux
1653
1679
  need_lib_prefix=no
1673
1699
  need_version=yes
1674
1700
  ;;
1675
1701
 
1676
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1702
sysv4 | sysv4.3*)
1677
1703
  version_type=linux
1678
1704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1679
1705
  soname_spec='${libname}${release}${shared_ext}$major'
1706
1732
  fi
1707
1733
  ;;
1708
1734
 
 
1735
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1736
  version_type=freebsd-elf
 
1737
  need_lib_prefix=no
 
1738
  need_version=no
 
1739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1740
  soname_spec='${libname}${release}${shared_ext}$major'
 
1741
  shlibpath_var=LD_LIBRARY_PATH
 
1742
  hardcode_into_libs=yes
 
1743
  if test "$with_gnu_ld" = yes; then
 
1744
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1745
    shlibpath_overrides_runpath=no
 
1746
  else
 
1747
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1748
    shlibpath_overrides_runpath=yes
 
1749
    case $host_os in
 
1750
      sco3.2v5*)
 
1751
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1752
        ;;
 
1753
    esac
 
1754
  fi
 
1755
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1756
  ;;
 
1757
 
1709
1758
uts4*)
1710
1759
  version_type=linux
1711
1760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1719
1768
esac
1720
1769
AC_MSG_RESULT([$dynamic_linker])
1721
1770
test "$dynamic_linker" = no && can_build_shared=no
 
1771
 
 
1772
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1773
if test "$GCC" = yes; then
 
1774
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1775
fi
1722
1776
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1723
1777
 
1724
1778
 
1743
1797
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1744
1798
    fi
1745
1799
  fi
 
1800
  if test -z "$LTCFLAGS"; then
 
1801
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1802
  fi
1746
1803
 
1747
1804
  # Extract list of available tagged configurations in $ofile.
1748
1805
  # Note that this assumes the entire list is on one line.
1871
1928
 
1872
1929
# AC_DISABLE_SHARED
1873
1930
# -----------------
1874
 
#- set the default shared flag to --disable-shared
 
1931
# set the default shared flag to --disable-shared
1875
1932
AC_DEFUN([AC_DISABLE_SHARED],
1876
1933
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1877
1934
AC_ENABLE_SHARED(no)
2179
2236
case $host_os in
2180
2237
  darwin*)
2181
2238
    if test "$GCC" = yes; then
2182
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2239
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2183
2240
    else
2184
2241
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2185
2242
    fi
2241
2298
  lt_cv_deplibs_check_method=pass_all
2242
2299
  ;;
2243
2300
 
2244
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2301
freebsd* | dragonfly*)
2245
2302
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2246
2303
    case $host_cpu in
2247
2304
    i*86 )
2279
2336
  esac
2280
2337
  ;;
2281
2338
 
 
2339
interix3*)
 
2340
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2341
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2342
  ;;
 
2343
 
2282
2344
irix5* | irix6* | nonstopux*)
2283
2345
  case $LD in
2284
2346
  *-32|*"-32 ") libmagic=32-bit;;
2290
2352
  ;;
2291
2353
 
2292
2354
# This must be Linux ELF.
2293
 
linux*)
 
2355
linux* | k*bsd*-gnu)
2294
2356
  lt_cv_deplibs_check_method=pass_all
2295
2357
  ;;
2296
2358
 
2297
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2359
netbsd* | netbsdelf*-gnu)
2298
2360
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2299
2361
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2300
2362
  else
2324
2386
  lt_cv_deplibs_check_method=pass_all
2325
2387
  ;;
2326
2388
 
2327
 
sco3.2v5*)
2328
 
  lt_cv_deplibs_check_method=pass_all
2329
 
  ;;
2330
 
 
2331
2389
solaris*)
2332
2390
  lt_cv_deplibs_check_method=pass_all
2333
2391
  ;;
2334
2392
 
2335
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2393
sysv4 | sysv4.3*)
2336
2394
  case $host_vendor in
2337
2395
  motorola)
2338
2396
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
2353
2411
  siemens)
2354
2412
    lt_cv_deplibs_check_method=pass_all
2355
2413
    ;;
 
2414
  pc)
 
2415
    lt_cv_deplibs_check_method=pass_all
 
2416
    ;;
2356
2417
  esac
2357
2418
  ;;
2358
2419
 
2359
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2420
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2360
2421
  lt_cv_deplibs_check_method=pass_all
2361
2422
  ;;
2362
2423
esac
2376
2437
  # Let the user override the test.
2377
2438
  lt_cv_path_NM="$NM"
2378
2439
else
2379
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2380
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2381
 
    IFS="$lt_save_ifs"
2382
 
    test -z "$ac_dir" && ac_dir=.
2383
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2384
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2385
 
      # Check to see if the nm accepts a BSD-compat flag.
2386
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2387
 
      #   nm: unknown option "B" ignored
2388
 
      # Tru64's nm complains that /dev/null is an invalid object file
2389
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2390
 
      */dev/null* | *'Invalid file or object type'*)
2391
 
        lt_cv_path_NM="$tmp_nm -B"
2392
 
        break
2393
 
        ;;
2394
 
      *)
2395
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2396
 
        */dev/null*)
2397
 
          lt_cv_path_NM="$tmp_nm -p"
 
2440
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2441
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2442
    lt_nm_to_check="$lt_nm_to_check nm"
 
2443
  fi
 
2444
  for lt_tmp_nm in $lt_nm_to_check; do
 
2445
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2446
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2447
      IFS="$lt_save_ifs"
 
2448
      test -z "$ac_dir" && ac_dir=.
 
2449
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2450
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2451
        # Check to see if the nm accepts a BSD-compat flag.
 
2452
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2453
        #   nm: unknown option "B" ignored
 
2454
        # Tru64's nm complains that /dev/null is an invalid object file
 
2455
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2456
        */dev/null* | *'Invalid file or object type'*)
 
2457
          lt_cv_path_NM="$tmp_nm -B"
2398
2458
          break
2399
2459
          ;;
2400
2460
        *)
2401
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2402
 
          continue # so that we can try to find one that supports BSD flags
 
2461
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2462
          */dev/null*)
 
2463
            lt_cv_path_NM="$tmp_nm -p"
 
2464
            break
 
2465
            ;;
 
2466
          *)
 
2467
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2468
            continue # so that we can try to find one that supports BSD flags
 
2469
            ;;
 
2470
          esac
2403
2471
          ;;
2404
2472
        esac
2405
 
      esac
2406
 
    fi
 
2473
      fi
 
2474
    done
 
2475
    IFS="$lt_save_ifs"
2407
2476
  done
2408
 
  IFS="$lt_save_ifs"
2409
2477
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2410
2478
fi])
2411
2479
NM="$lt_cv_path_NM"
2511
2579
])# _LT_AC_LANG_CXX
2512
2580
 
2513
2581
# _LT_AC_PROG_CXXCPP
2514
 
# ---------------
 
2582
# ------------------
2515
2583
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2516
2584
[
2517
2585
AC_REQUIRE([AC_PROG_CXX])
2560
2628
 
2561
2629
 
2562
2630
# AC_LIBTOOL_RC
2563
 
# --------------
 
2631
# -------------
2564
2632
# enable support for Windows resource files
2565
2633
AC_DEFUN([AC_LIBTOOL_RC],
2566
2634
[AC_REQUIRE([LT_AC_PROG_RC])
2597
2665
_LT_COMPILER_BOILERPLATE
2598
2666
_LT_LINKER_BOILERPLATE
2599
2667
 
2600
 
#
2601
 
# Check for any special shared library compilation flags.
2602
 
#
2603
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2604
 
if test "$GCC" = no; then
2605
 
  case $host_os in
2606
 
  sco3.2v5*)
2607
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2608
 
    ;;
2609
 
  esac
2610
 
fi
2611
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2612
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2613
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2614
 
  else
2615
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2616
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2617
 
  fi
2618
 
fi
2619
 
 
2620
 
 
2621
 
#
2622
 
# Check to make sure the static flag actually works.
2623
 
#
2624
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2625
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2626
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2627
 
  [],
2628
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2629
 
 
2630
 
 
2631
2668
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2632
2669
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2633
2670
AC_LIBTOOL_PROG_CC_C_O($1)
2636
2673
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2637
2674
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2638
2675
AC_LIBTOOL_SYS_LIB_STRIP
2639
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2676
AC_LIBTOOL_DLOPEN_SELF
2640
2677
 
2641
 
# Report which librarie types wil actually be built
 
2678
# Report which library types will actually be built
2642
2679
AC_MSG_CHECKING([if libtool supports shared libraries])
2643
2680
AC_MSG_RESULT([$can_build_shared])
2644
2681
 
2697
2734
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2698
2735
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2699
2736
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2737
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2700
2738
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2701
2739
_LT_AC_TAGVAR(module_cmds, $1)=
2702
2740
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2724
2762
lt_simple_compile_test_code="int some_variable = 0;\n"
2725
2763
 
2726
2764
# Code to be used in simple link tests
2727
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2765
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2728
2766
 
2729
2767
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2730
2768
_LT_AC_SYS_COMPILER
2743
2781
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2744
2782
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2745
2783
else
2746
 
  unset lt_cv_prog_gnu_ld
 
2784
  $as_unset lt_cv_prog_gnu_ld
2747
2785
fi
2748
2786
if test -n "${lt_cv_path_LDCXX+set}"; then
2749
2787
  lt_cv_path_LD=$lt_cv_path_LDCXX
2750
2788
else
2751
 
  unset lt_cv_path_LD
 
2789
  $as_unset lt_cv_path_LD
2752
2790
fi
2753
2791
test -z "${LDCXX+set}" || LD=$LDCXX
2754
2792
CC=${CXX-"c++"}
2843
2881
            ;;
2844
2882
          esac
2845
2883
        done
 
2884
        ;;
2846
2885
      esac
2847
2886
 
2848
2887
      exp_sym_flag='-bexport'
2880
2919
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2881
2920
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2882
2921
        fi
 
2922
        ;;
2883
2923
      esac
2884
2924
      shared_flag='-shared'
2885
2925
      if test "$aix_use_runtimelinking" = yes; then
2911
2951
      _LT_AC_SYS_LIBPATH_AIX
2912
2952
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2913
2953
 
2914
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
2954
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2915
2955
     else
2916
2956
      if test "$host_cpu" = ia64; then
2917
2957
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2918
2958
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2919
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
2959
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2920
2960
      else
2921
2961
        # Determine the default libpath from the value encoded in an empty executable.
2922
2962
        _LT_AC_SYS_LIBPATH_AIX
2925
2965
        # -berok will link without error, but may produce a broken library.
2926
2966
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2927
2967
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2928
 
        # -bexpall does not export symbols beginning with underscore (_)
2929
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2930
2968
        # Exported symbols can be pulled into shared objects from archives
2931
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
2969
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2932
2970
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2933
2971
        # This is similar to how AIX traditionally builds its shared libraries.
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'
 
2972
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2935
2973
      fi
2936
2974
    fi
2937
2975
    ;;
 
2976
 
 
2977
  beos*)
 
2978
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
2979
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
2980
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
2981
      # support --undefined.  This deserves some investigation.  FIXME
 
2982
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
2983
    else
 
2984
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2985
    fi
 
2986
    ;;
 
2987
 
2938
2988
  chorus*)
2939
2989
    case $cc_basename in
2940
2990
      *)
2944
2994
    esac
2945
2995
    ;;
2946
2996
 
2947
 
 
2948
2997
  cygwin* | mingw* | pw32*)
2949
2998
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2950
2999
    # as there is no search path for DLLs.
2954
3003
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2955
3004
 
2956
3005
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2957
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3006
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2958
3007
      # If the export-symbols file already is a .def file (1st line
2959
3008
      # is EXPORTS), use it as is; otherwise, prepend...
2960
3009
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2963
3012
        echo EXPORTS > $output_objdir/$soname.def;
2964
3013
        cat $export_symbols >> $output_objdir/$soname.def;
2965
3014
      fi~
2966
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3015
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2967
3016
    else
2968
3017
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2969
3018
    fi
3055
3104
  freebsd-elf*)
3056
3105
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3057
3106
    ;;
3058
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3107
  freebsd* | dragonfly*)
3059
3108
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3060
3109
    # conventions
3061
3110
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3100
3149
    ;;
3101
3150
  hpux10*|hpux11*)
3102
3151
    if test $with_gnu_ld = no; then
 
3152
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3153
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3154
 
3103
3155
      case $host_cpu in
3104
 
      hppa*64*)
3105
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3156
      hppa*64*|ia64*)
3106
3157
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3107
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108
 
        ;;
3109
 
      ia64*)
3110
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3111
3158
        ;;
3112
3159
      *)
3113
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3114
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3115
3160
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3116
3161
        ;;
3117
3162
      esac
3118
3163
    fi
3119
3164
    case $host_cpu in
3120
 
    hppa*64*)
3121
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3122
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3123
 
      ;;
3124
 
    ia64*)
3125
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3126
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3127
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3128
 
                                              # but as the default
3129
 
                                              # location of the library.
 
3165
    hppa*64*|ia64*)
 
3166
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3167
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3130
3168
      ;;
3131
3169
    *)
3132
3170
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3143
3181
        ;;
3144
3182
      aCC*)
3145
3183
        case $host_cpu in
3146
 
        hppa*64*|ia64*)
3147
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3184
        hppa*64*)
 
3185
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3186
          ;;
 
3187
        ia64*)
 
3188
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3148
3189
          ;;
3149
3190
        *)
3150
3191
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3164
3205
        if test "$GXX" = yes; then
3165
3206
          if test $with_gnu_ld = no; then
3166
3207
            case $host_cpu in
3167
 
            ia64*|hppa*64*)
3168
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3208
            hppa*64*)
 
3209
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3210
              ;;
 
3211
            ia64*)
 
3212
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3169
3213
              ;;
3170
3214
            *)
3171
3215
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3179
3223
        ;;
3180
3224
    esac
3181
3225
    ;;
 
3226
  interix3*)
 
3227
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3228
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3229
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3230
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3231
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3232
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3233
    # default) and relocated if they conflict, which is a slow very memory
 
3234
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3235
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3236
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3237
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3238
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3239
    ;;
3182
3240
  irix5* | irix6*)
3183
3241
    case $cc_basename in
3184
3242
      CC*)
3205
3263
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3206
3264
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3207
3265
    ;;
3208
 
  linux*)
 
3266
  linux* | k*bsd*-gnu)
3209
3267
    case $cc_basename in
3210
3268
      KCC*)
3211
3269
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3307
3365
        ;;
3308
3366
    esac
3309
3367
    ;;
3310
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3368
  netbsd* | netbsdelf*-gnu)
3311
3369
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3312
3370
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3313
3371
      wlarc=
3461
3519
    # FIXME: insert proper C++ library support
3462
3520
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3463
3521
    ;;
3464
 
  sco*)
3465
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3466
 
    case $cc_basename in
3467
 
      CC*)
3468
 
        # FIXME: insert proper C++ library support
3469
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3470
 
        ;;
3471
 
      *)
3472
 
        # FIXME: insert proper C++ library support
3473
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3474
 
        ;;
3475
 
    esac
3476
 
    ;;
3477
3522
  sunos4*)
3478
3523
    case $cc_basename in
3479
3524
      CC*)
3566
3611
        ;;
3567
3612
    esac
3568
3613
    ;;
3569
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3570
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3614
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3615
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3616
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3617
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3618
    runpath_var='LD_RUN_PATH'
 
3619
 
 
3620
    case $cc_basename in
 
3621
      CC*)
 
3622
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3623
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3624
        ;;
 
3625
      *)
 
3626
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3627
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3628
        ;;
 
3629
    esac
 
3630
    ;;
 
3631
  sysv5* | sco3.2v5* | sco5v6*)
 
3632
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3633
    # link with -lc, and that would cause any symbols used from libc to
 
3634
    # always be unresolved, which means just about no library would
 
3635
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3636
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3637
    # as -z defs.
 
3638
    # For security reasons, it is highly recommended that you always
 
3639
    # use absolute paths for naming shared libraries, and exclude the
 
3640
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3641
    # requires that you compile everything twice, which is a pain.
 
3642
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3643
    # non-empty value in the environment.  Most likely only useful for
 
3644
    # creating official distributions of packages.
 
3645
    # This is a hack until libtool officially supports absolute path
 
3646
    # names for shared libraries.
 
3647
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3648
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3649
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3650
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3651
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3652
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3653
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3654
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3655
    runpath_var='LD_RUN_PATH'
 
3656
 
 
3657
    case $cc_basename in
 
3658
      CC*)
 
3659
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3660
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3661
        ;;
 
3662
      *)
 
3663
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3664
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3665
        ;;
 
3666
    esac
3571
3667
    ;;
3572
3668
  tandem*)
3573
3669
    case $cc_basename in
3604
3700
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3605
3701
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3606
3702
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3607
 
AC_LIBTOOL_SYS_LIB_STRIP
3608
 
AC_LIBTOOL_DLOPEN_SELF($1)
3609
3703
 
3610
3704
AC_LIBTOOL_CONFIG($1)
3611
3705
 
3623
3717
])# AC_LIBTOOL_LANG_CXX_CONFIG
3624
3718
 
3625
3719
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3626
 
# ------------------------
 
3720
# ------------------------------------
3627
3721
# Figure out "hidden" library dependencies from verbose
3628
3722
# compiler output when linking a shared library.
3629
3723
# Parse the compiler output and extract the necessary
3756
3850
# PORTME: override above test on systems where it is broken
3757
3851
ifelse([$1],[CXX],
3758
3852
[case $host_os in
 
3853
interix3*)
 
3854
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3855
  # hack all around it, let's just trust "g++" to DTRT.
 
3856
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3857
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3858
  _LT_AC_TAGVAR(postdeps,$1)=
 
3859
  ;;
 
3860
 
3759
3861
solaris*)
3760
3862
  case $cc_basename in
3761
3863
  CC*)
3765
3867
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3766
3868
    ;;
3767
3869
  esac
 
3870
  ;;
3768
3871
esac
3769
3872
])
3770
3873
 
3774
3877
])# AC_LIBTOOL_POSTDEP_PREDEP
3775
3878
 
3776
3879
# AC_LIBTOOL_LANG_F77_CONFIG
3777
 
# ------------------------
 
3880
# --------------------------
3778
3881
# Ensure that the configuration vars for the C compiler are
3779
3882
# suitably defined.  Those variables are subsequently used by
3780
3883
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3858
3961
test "$enable_shared" = yes || enable_static=yes
3859
3962
AC_MSG_RESULT([$enable_static])
3860
3963
 
3861
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3862
 
 
3863
3964
_LT_AC_TAGVAR(GCC, $1)="$G77"
3864
3965
_LT_AC_TAGVAR(LD, $1)="$LD"
3865
3966
 
3869
3970
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3870
3971
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3871
3972
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3872
 
AC_LIBTOOL_SYS_LIB_STRIP
3873
 
 
3874
3973
 
3875
3974
AC_LIBTOOL_CONFIG($1)
3876
3975
 
3927
4026
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3928
4027
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3929
4028
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3930
 
AC_LIBTOOL_SYS_LIB_STRIP
3931
 
AC_LIBTOOL_DLOPEN_SELF($1)
3932
4029
 
3933
4030
AC_LIBTOOL_CONFIG($1)
3934
4031
 
3938
4035
 
3939
4036
 
3940
4037
# AC_LIBTOOL_LANG_RC_CONFIG
3941
 
# --------------------------
 
4038
# -------------------------
3942
4039
# Ensure that the configuration vars for the Windows resource compiler are
3943
4040
# suitably defined.  Those variables are subsequently used by
3944
4041
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4001
4098
  # Now quote all the things that may contain metacharacters while being
4002
4099
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4003
4100
  # variables and quote the copies for generation of the libtool script.
4004
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4101
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4005
4102
    SED SHELL STRIP \
4006
4103
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4007
4104
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4170
4267
# A C compiler.
4171
4268
LTCC=$lt_LTCC
4172
4269
 
 
4270
# LTCC compiler flags.
 
4271
LTCFLAGS=$lt_LTCFLAGS
 
4272
 
4173
4273
# A language-specific compiler.
4174
4274
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4175
4275
 
4530
4630
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4531
4631
  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'"
4532
4632
  ;;
4533
 
linux*)
 
4633
linux* | k*bsd*-gnu)
4534
4634
  if test "$host_cpu" = ia64; then
4535
4635
    symcode='[[ABCDGIRSTW]]'
4536
4636
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4543
4643
osf*)
4544
4644
  symcode='[[BCDEGQRST]]'
4545
4645
  ;;
4546
 
solaris* | sysv5*)
 
4646
solaris*)
4547
4647
  symcode='[[BDRT]]'
4548
4648
  ;;
 
4649
sco3.2v5*)
 
4650
  symcode='[[DT]]'
 
4651
  ;;
 
4652
sysv4.2uw2*)
 
4653
  symcode='[[DT]]'
 
4654
  ;;
 
4655
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4656
  symcode='[[ABDT]]'
 
4657
  ;;
4549
4658
sysv4)
4550
4659
  symcode='[[DFNSTU]]'
4551
4660
  ;;
4728
4837
      # DJGPP does not support shared libraries at all
4729
4838
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4730
4839
      ;;
 
4840
    interix3*)
 
4841
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4842
      # Instead, we relocate shared libraries at runtime.
 
4843
      ;;
4731
4844
    sysv4*MP*)
4732
4845
      if test -d /usr/nec; then
4733
4846
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4790
4903
            ;;
4791
4904
        esac
4792
4905
        ;;
4793
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
4906
      freebsd* | dragonfly*)
4794
4907
        # FreeBSD uses GNU C++
4795
4908
        ;;
4796
4909
      hpux9* | hpux10* | hpux11*)
4797
4910
        case $cc_basename in
4798
4911
          CC*)
4799
4912
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4800
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4913
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4801
4914
            if test "$host_cpu" != ia64; then
4802
4915
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4803
4916
            fi
4804
4917
            ;;
4805
4918
          aCC*)
4806
4919
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4807
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4920
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4808
4921
            case $host_cpu in
4809
4922
            hppa*64*|ia64*)
4810
4923
              # +Z the default
4818
4931
            ;;
4819
4932
        esac
4820
4933
        ;;
 
4934
      interix*)
 
4935
        # This is c89, which is MS Visual C++ (no shared libs)
 
4936
        # Anyone wants to do a port?
 
4937
        ;;
4821
4938
      irix5* | irix6* | nonstopux*)
4822
4939
        case $cc_basename in
4823
4940
          CC*)
4829
4946
            ;;
4830
4947
        esac
4831
4948
        ;;
4832
 
      linux*)
 
4949
      linux* | k*bsd*-gnu)
4833
4950
        case $cc_basename in
4834
4951
          KCC*)
4835
4952
            # KAI C++ Compiler
4872
4989
            ;;
4873
4990
        esac
4874
4991
        ;;
4875
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
4992
      netbsd* | netbsdelf*-gnu)
4876
4993
        ;;
4877
4994
      osf3* | osf4* | osf5*)
4878
4995
        case $cc_basename in
4897
5014
        ;;
4898
5015
      psos*)
4899
5016
        ;;
4900
 
      sco*)
4901
 
        case $cc_basename in
4902
 
          CC*)
4903
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4904
 
            ;;
4905
 
          *)
4906
 
            ;;
4907
 
        esac
4908
 
        ;;
4909
5017
      solaris*)
4910
5018
        case $cc_basename in
4911
5019
          CC*)
4947
5055
            ;;
4948
5056
        esac
4949
5057
        ;;
4950
 
      unixware*)
 
5058
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5059
        case $cc_basename in
 
5060
          CC*)
 
5061
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5062
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5063
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5064
            ;;
 
5065
        esac
4951
5066
        ;;
4952
5067
      vxworks*)
4953
5068
        ;;
4994
5109
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4995
5110
      ;;
4996
5111
 
 
5112
    interix3*)
 
5113
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5114
      # Instead, we relocate shared libraries at runtime.
 
5115
      ;;
 
5116
 
4997
5117
    msdosdjgpp*)
4998
5118
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4999
5119
      # on systems that don't support them.
5080
5200
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5081
5201
      ;;
5082
5202
 
5083
 
    linux*)
 
5203
    linux* | k*bsd*-gnu)
5084
5204
      case $cc_basename in
5085
5205
      icc* | ecc*)
5086
5206
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5108
5228
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5109
5229
      ;;
5110
5230
 
5111
 
    sco3.2v5*)
5112
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5113
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5114
 
      ;;
5115
 
 
5116
5231
    solaris*)
5117
5232
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5118
5233
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5130
5245
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5131
5246
      ;;
5132
5247
 
5133
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5248
    sysv4 | sysv4.2uw2* | sysv4.3*)
5134
5249
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5135
5250
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5136
5251
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5143
5258
      fi
5144
5259
      ;;
5145
5260
 
 
5261
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5262
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5263
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5264
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5265
      ;;
 
5266
 
5146
5267
    unicos*)
5147
5268
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5148
5269
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5184
5305
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5185
5306
    ;;
5186
5307
esac
 
5308
 
 
5309
#
 
5310
# Check to make sure the static flag actually works.
 
5311
#
 
5312
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5313
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5314
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5315
  $lt_tmp_static_flag,
 
5316
  [],
 
5317
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5187
5318
])
5188
5319
 
5189
5320
 
5210
5341
  cygwin* | mingw*)
5211
5342
    _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'
5212
5343
  ;;
5213
 
  linux*)
 
5344
  linux* | k*bsd*-gnu)
5214
5345
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5215
5346
  ;;
5216
5347
  *)
5265
5396
      with_gnu_ld=no
5266
5397
    fi
5267
5398
    ;;
 
5399
  interix*)
 
5400
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5401
    with_gnu_ld=yes
 
5402
    ;;
5268
5403
  openbsd*)
5269
5404
    with_gnu_ld=no
5270
5405
    ;;
5349
5484
      _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'
5350
5485
 
5351
5486
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
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'
 
5487
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5353
5488
        # If the export-symbols file already is a .def file (1st line
5354
5489
        # is EXPORTS), use it as is; otherwise, prepend...
5355
5490
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5358
5493
          echo EXPORTS > $output_objdir/$soname.def;
5359
5494
          cat $export_symbols >> $output_objdir/$soname.def;
5360
5495
        fi~
5361
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5496
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5362
5497
      else
5363
5498
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5364
5499
      fi
5365
5500
      ;;
5366
5501
 
5367
 
    linux*)
 
5502
    interix3*)
 
5503
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5504
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5505
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5506
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5507
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5508
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5509
      # default) and relocated if they conflict, which is a slow very memory
 
5510
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5511
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5512
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5513
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5514
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5515
      ;;
 
5516
 
 
5517
    linux* | k*bsd*-gnu)
5368
5518
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5369
5519
        tmp_addflag=
5370
5520
        case $cc_basename,$host_cpu in
5396
5546
      fi
5397
5547
      ;;
5398
5548
 
5399
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5549
    netbsd* | netbsdelf*-gnu)
5400
5550
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5401
5551
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5402
5552
        wlarc=
5406
5556
      fi
5407
5557
      ;;
5408
5558
 
5409
 
    solaris* | sysv5*)
 
5559
    solaris*)
5410
5560
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5411
5561
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5412
5562
        cat <<EOF 1>&2
5427
5577
      fi
5428
5578
      ;;
5429
5579
 
 
5580
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5581
      case `$LD -v 2>&1` in
 
5582
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5583
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5584
        cat <<_LT_EOF 1>&2
 
5585
 
 
5586
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5587
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5588
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5589
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5590
*** your PATH or compiler configuration so that the native linker is
 
5591
*** used, and then restart.
 
5592
 
 
5593
_LT_EOF
 
5594
        ;;
 
5595
        *)
 
5596
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5597
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5598
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5599
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5600
          else
 
5601
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5602
          fi
 
5603
        ;;
 
5604
      esac
 
5605
      ;;
 
5606
 
5430
5607
    sunos4*)
5431
5608
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5432
5609
      wlarc=
5460
5637
      # Note: this linker hardcodes the directories in LIBPATH if there
5461
5638
      # are no directories specified by -L.
5462
5639
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5463
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5640
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5464
5641
        # Neither direct hardcoding nor static linking is supported with a
5465
5642
        # broken collect2.
5466
5643
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5494
5671
            break
5495
5672
          fi
5496
5673
          done
 
5674
          ;;
5497
5675
        esac
5498
5676
 
5499
5677
        exp_sym_flag='-bexport'
5531
5709
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5532
5710
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5533
5711
          fi
 
5712
          ;;
5534
5713
        esac
5535
5714
        shared_flag='-shared'
5536
5715
        if test "$aix_use_runtimelinking" = yes; then
5543
5722
        # chokes on -Wl,-G. The following line is correct:
5544
5723
          shared_flag='-G'
5545
5724
        else
5546
 
        if test "$aix_use_runtimelinking" = yes; then
 
5725
          if test "$aix_use_runtimelinking" = yes; then
5547
5726
            shared_flag='${wl}-G'
5548
5727
          else
5549
5728
            shared_flag='${wl}-bM:SRE'
5550
 
        fi
 
5729
          fi
5551
5730
        fi
5552
5731
      fi
5553
5732
 
5561
5740
       # Determine the default libpath from the value encoded in an empty executable.
5562
5741
       _LT_AC_SYS_LIBPATH_AIX
5563
5742
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5564
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5743
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5565
5744
       else
5566
5745
        if test "$host_cpu" = ia64; then
5567
5746
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5568
5747
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5569
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5748
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5570
5749
        else
5571
5750
         # Determine the default libpath from the value encoded in an empty executable.
5572
5751
         _LT_AC_SYS_LIBPATH_AIX
5575
5754
          # -berok will link without error, but may produce a broken library.
5576
5755
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5577
5756
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5578
 
          # -bexpall does not export symbols beginning with underscore (_)
5579
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5580
5757
          # Exported symbols can be pulled into shared objects from archives
5581
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5758
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5582
5759
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5583
5760
          # This is similar to how AIX traditionally builds its shared libraries.
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'
 
5761
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5585
5762
        fi
5586
5763
      fi
5587
5764
      ;;
5699
5876
      ;;
5700
5877
 
5701
5878
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5702
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
5879
    freebsd* | dragonfly*)
5703
5880
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5704
5881
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5705
5882
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5722
5899
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5723
5900
      ;;
5724
5901
 
5725
 
    hpux10* | hpux11*)
 
5902
    hpux10*)
 
5903
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5904
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5905
      else
 
5906
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5907
      fi
 
5908
      if test "$with_gnu_ld" = no; then
 
5909
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5910
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5911
 
 
5912
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5913
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5914
 
 
5915
        # hardcode_minus_L: Not really in the search PATH,
 
5916
        # but as the default location of the library.
 
5917
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5918
      fi
 
5919
      ;;
 
5920
 
 
5921
    hpux11*)
5726
5922
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5727
5923
        case $host_cpu in
5728
 
        hppa*64*|ia64*)
 
5924
        hppa*64*)
5729
5925
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5730
5926
          ;;
 
5927
        ia64*)
 
5928
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5929
          ;;
5731
5930
        *)
5732
5931
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5733
5932
          ;;
5734
5933
        esac
5735
5934
      else
5736
5935
        case $host_cpu in
5737
 
        hppa*64*|ia64*)
5738
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5936
        hppa*64*)
 
5937
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5938
          ;;
 
5939
        ia64*)
 
5940
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5739
5941
          ;;
5740
5942
        *)
5741
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5943
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5742
5944
          ;;
5743
5945
        esac
5744
5946
      fi
5745
5947
      if test "$with_gnu_ld" = no; then
 
5948
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5949
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5950
 
5746
5951
        case $host_cpu in
5747
 
        hppa*64*)
5748
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5952
        hppa*64*|ia64*)
5749
5953
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5750
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5751
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5752
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5753
 
          ;;
5754
 
        ia64*)
5755
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5756
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5757
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5758
 
 
5759
 
          # hardcode_minus_L: Not really in the search PATH,
5760
 
          # but as the default location of the library.
5761
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5954
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5955
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5762
5956
          ;;
5763
5957
        *)
5764
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5765
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5766
5958
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5767
5959
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5768
5960
 
5786
5978
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5787
5979
      ;;
5788
5980
 
5789
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5981
    netbsd* | netbsdelf*-gnu)
5790
5982
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5791
5983
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5792
5984
      else
5864
6056
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5865
6057
      ;;
5866
6058
 
5867
 
    sco3.2v5*)
5868
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5869
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5870
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5871
 
      runpath_var=LD_RUN_PATH
5872
 
      hardcode_runpath_var=yes
5873
 
      ;;
5874
 
 
5875
6059
    solaris*)
5876
6060
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5877
6061
      if test "$GCC" = yes; then
5957
6141
      fi
5958
6142
      ;;
5959
6143
 
5960
 
    sysv4.2uw2*)
5961
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5962
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5963
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5964
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5965
 
      hardcode_runpath_var=yes
5966
 
      runpath_var=LD_RUN_PATH
5967
 
      ;;
5968
 
 
5969
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5970
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5971
 
      if test "$GCC" = yes; then
5972
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5973
 
      else
5974
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5975
 
      fi
5976
 
      runpath_var='LD_RUN_PATH'
5977
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5978
 
      ;;
5979
 
 
5980
 
    sysv5*)
5981
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5982
 
      # $CC -shared without GNU ld will not create a library from C++
5983
 
      # object files and a static libstdc++, better avoid it by now
5984
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5986
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5987
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5988
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5989
 
      runpath_var='LD_RUN_PATH'
 
6144
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6145
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6146
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6147
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6148
      runpath_var='LD_RUN_PATH'
 
6149
 
 
6150
      if test "$GCC" = yes; then
 
6151
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6152
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6153
      else
 
6154
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6155
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6156
      fi
 
6157
      ;;
 
6158
 
 
6159
    sysv5* | sco3.2v5* | sco5v6*)
 
6160
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6161
      # link with -lc, and that would cause any symbols used from libc to
 
6162
      # always be unresolved, which means just about no library would
 
6163
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6164
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6165
      # as -z defs.
 
6166
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6167
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6168
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6169
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6170
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6171
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6172
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6173
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6174
      runpath_var='LD_RUN_PATH'
 
6175
 
 
6176
      if test "$GCC" = yes; then
 
6177
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6178
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6179
      else
 
6180
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6181
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6182
      fi
5990
6183
      ;;
5991
6184
 
5992
6185
    uts4*)
6004
6197
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6005
6198
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6006
6199
 
6007
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6008
 
if test "$GCC" = yes; then
6009
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6010
 
fi
6011
 
 
6012
6200
#
6013
6201
# Do we need to explicitly link libc?
6014
6202
#
6036
6224
        libobjs=conftest.$ac_objext
6037
6225
        deplibs=
6038
6226
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6227
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6039
6228
        compiler_flags=-v
6040
6229
        linker_flags=-v
6041
6230
        verstring=