~ubuntu-branches/ubuntu/gutsy/kid3/gutsy

« back to all changes in this revision

Viewing changes to admin/libtool.m4.in

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2007-07-01 00:31:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070701003103-2qownnv49a7jdqm3
Tags: 0.9-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
## unlimited permission to copy and/or distribute it, with or without
8
8
## modifications, as long as this notice is preserved.
9
9
 
10
 
# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
 
10
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
11
11
 
12
12
 
13
13
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
157
157
test -z "$AS" && AS=as
158
158
test -z "$CC" && CC=cc
159
159
test -z "$LTCC" && LTCC=$CC
 
160
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
160
161
test -z "$DLLTOOL" && DLLTOOL=dlltool
161
162
test -z "$LD" && LD=ld
162
163
test -z "$LN_S" && LN_S="ln -s"
176
177
if test -n "$RANLIB"; then
177
178
  case $host_os in
178
179
  openbsd*)
179
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
180
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
180
181
    ;;
181
182
  *)
182
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
183
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
183
184
    ;;
184
185
  esac
185
186
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
227
228
# If no C compiler was specified, use CC.
228
229
LTCC=${LTCC-"$CC"}
229
230
 
 
231
# If no C compiler flags were specified, use CFLAGS.
 
232
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
233
 
230
234
# Allow CC to be a program name with arguments.
231
235
compiler=$CC
232
236
])# _LT_AC_SYS_COMPILER
255
259
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
256
260
[ac_outfile=conftest.$ac_objext
257
261
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
258
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
262
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
259
263
_lt_compiler_boilerplate=`cat conftest.err`
260
264
$rm conftest*
261
265
])# _LT_COMPILER_BOILERPLATE
268
272
AC_DEFUN([_LT_LINKER_BOILERPLATE],
269
273
[ac_outfile=conftest.$ac_objext
270
274
printf "$lt_simple_link_test_code" >conftest.$ac_ext
271
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
275
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
272
276
_lt_linker_boilerplate=`cat conftest.err`
273
277
$rm conftest*
274
278
])# _LT_LINKER_BOILERPLATE
574
578
    CFLAGS="$SAVE_CFLAGS"
575
579
  fi
576
580
  ;;
 
581
sparc*-*solaris*)
 
582
  # Find out which ABI we are using.
 
583
  echo 'int i;' > conftest.$ac_ext
 
584
  if AC_TRY_EVAL(ac_compile); then
 
585
    case `/usr/bin/file conftest.o` in
 
586
    *64-bit*)
 
587
      case $lt_cv_prog_gnu_ld in
 
588
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
589
      *)    LD="${LD-ld} -64" ;;
 
590
      esac
 
591
      ;;
 
592
    esac
 
593
  fi
 
594
  rm -rf conftest*
 
595
  ;;
 
596
 
577
597
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
578
598
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
579
599
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
616
636
   if (exit $ac_status) && test -s "$ac_outfile"; then
617
637
     # The compiler can only warn and ignore the option if not recognized
618
638
     # So say no if there are warnings other than the usual output.
619
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
620
 
     $SED '/^$/d' conftest.err >conftest.er2
621
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
639
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
640
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
641
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
622
642
       $2=yes
623
643
     fi
624
644
   fi
649
669
     if test -s conftest.err; then
650
670
       # Append any errors to the config.log.
651
671
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
652
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
653
 
       $SED '/^$/d' conftest.err >conftest.er2
 
672
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
673
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
654
674
       if diff conftest.exp conftest.er2 >/dev/null; then
655
675
         $2=yes
656
676
       fi
725
745
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
726
746
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
727
747
    ;;
 
748
 
 
749
  interix*)
 
750
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
751
    lt_cv_sys_max_cmd_len=196608
 
752
    ;;
 
753
 
728
754
  osf*)
729
755
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
730
756
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
738
764
      esac
739
765
    fi
740
766
    ;;
 
767
  sco3.2v5*)
 
768
    lt_cv_sys_max_cmd_len=102400
 
769
    ;;
 
770
  sysv5* | sco5v6* | sysv4.2uw2*)
 
771
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
772
    if test -n "$kargmax"; then
 
773
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
774
    else
 
775
      lt_cv_sys_max_cmd_len=32768
 
776
    fi
 
777
    ;;
741
778
  *)
742
779
    # If test is not a shell built-in, we'll probably end up computing a
743
780
    # maximum length that is only half of the actual maximum length, but
769
806
 
770
807
 
771
808
# _LT_AC_CHECK_DLFCN
772
 
# --------------------
 
809
# ------------------
773
810
AC_DEFUN([_LT_AC_CHECK_DLFCN],
774
811
[AC_CHECK_HEADERS(dlfcn.h)dnl
775
812
])# _LT_AC_CHECK_DLFCN
777
814
 
778
815
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
779
816
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
780
 
# ------------------------------------------------------------------
 
817
# ---------------------------------------------------------------------
781
818
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
782
819
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
783
820
if test "$cross_compiling" = yes; then :
843
880
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
844
881
      /* dlclose (self); */
845
882
    }
 
883
  else
 
884
    puts (dlerror ());
846
885
 
847
886
    exit (status);
848
887
}]
853
892
    case x$lt_status in
854
893
      x$lt_dlno_uscore) $1 ;;
855
894
      x$lt_dlneed_uscore) $2 ;;
856
 
      x$lt_unknown|x*) $3 ;;
 
895
      x$lt_dlunknown|x*) $3 ;;
857
896
    esac
858
897
  else :
859
898
    # compilation failed
865
904
 
866
905
 
867
906
# AC_LIBTOOL_DLOPEN_SELF
868
 
# -------------------
 
907
# ----------------------
869
908
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
870
909
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
871
910
if test "x$enable_dlopen" != xyes; then
936
975
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
937
976
 
938
977
    save_LDFLAGS="$LDFLAGS"
939
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
978
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
940
979
 
941
980
    save_LIBS="$LIBS"
942
981
    LIBS="$lt_cv_dlopen_libs $LIBS"
949
988
    ])
950
989
 
951
990
    if test "x$lt_cv_dlopen_self" = xyes; then
952
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
991
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
953
992
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
954
993
          lt_cv_dlopen_self_static, [dnl
955
994
          _LT_AC_TRY_DLOPEN_SELF(
1009
1048
   then
1010
1049
     # The compiler can only warn and ignore the option if not recognized
1011
1050
     # So say no if there are warnings
1012
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1013
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
1014
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1051
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1052
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1053
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1015
1054
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1016
1055
     fi
1017
1056
   fi
1352
1391
  dynamic_linker=no
1353
1392
  ;;
1354
1393
 
1355
 
kfreebsd*-gnu)
1356
 
  version_type=linux
1357
 
  need_lib_prefix=no
1358
 
  need_version=no
1359
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1360
 
  soname_spec='${libname}${release}${shared_ext}$major'
1361
 
  shlibpath_var=LD_LIBRARY_PATH
1362
 
  shlibpath_overrides_runpath=no
1363
 
  hardcode_into_libs=yes
1364
 
  dynamic_linker='GNU ld.so'
1365
 
  ;;
1366
 
 
1367
1394
freebsd* | dragonfly*)
1368
1395
  # DragonFly does not have aout.  When/if they implement a new
1369
1396
  # versioning mechanism, adjust this.
1396
1423
    shlibpath_overrides_runpath=yes
1397
1424
    hardcode_into_libs=yes
1398
1425
    ;;
1399
 
  *) # from 3.2 on
 
1426
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1427
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1400
1428
    shlibpath_overrides_runpath=no
1401
1429
    hardcode_into_libs=yes
1402
1430
    ;;
 
1431
  freebsd*) # from 4.6 on
 
1432
    shlibpath_overrides_runpath=yes
 
1433
    hardcode_into_libs=yes
 
1434
    ;;
1403
1435
  esac
1404
1436
  ;;
1405
1437
 
1459
1491
  postinstall_cmds='chmod 555 $lib'
1460
1492
  ;;
1461
1493
 
 
1494
interix3*)
 
1495
  version_type=linux
 
1496
  need_lib_prefix=no
 
1497
  need_version=no
 
1498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1499
  soname_spec='${libname}${release}${shared_ext}$major'
 
1500
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1501
  shlibpath_var=LD_LIBRARY_PATH
 
1502
  shlibpath_overrides_runpath=no
 
1503
  hardcode_into_libs=yes
 
1504
  ;;
 
1505
 
1462
1506
irix5* | irix6* | nonstopux*)
1463
1507
  case $host_os in
1464
1508
    nonstopux*) version_type=nonstopux ;;
1502
1546
  ;;
1503
1547
 
1504
1548
# This must be Linux ELF.
1505
 
linux*)
 
1549
linux* | k*bsd*-gnu)
1506
1550
  version_type=linux
1507
1551
  need_lib_prefix=no
1508
1552
  need_version=no
1543
1587
  dynamic_linker='NetBSD ld.elf_so'
1544
1588
  ;;
1545
1589
 
1546
 
knetbsd*-gnu)
1547
 
  version_type=linux
1548
 
  need_lib_prefix=no
1549
 
  need_version=no
1550
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1551
 
  soname_spec='${libname}${release}${shared_ext}$major'
1552
 
  shlibpath_var=LD_LIBRARY_PATH
1553
 
  shlibpath_overrides_runpath=no
1554
 
  hardcode_into_libs=yes
1555
 
  dynamic_linker='GNU ld.so'
1556
 
  ;;
1557
 
 
1558
1590
netbsd*)
1559
1591
  version_type=sunos
1560
1592
  need_lib_prefix=no
1592
1624
 
1593
1625
openbsd*)
1594
1626
  version_type=sunos
 
1627
  sys_lib_dlsearch_path_spec="/usr/lib"
1595
1628
  need_lib_prefix=no
1596
1629
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1597
1630
  case $host_os in
1635
1668
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1636
1669
  ;;
1637
1670
 
1638
 
sco3.2v5*)
1639
 
  version_type=osf
1640
 
  soname_spec='${libname}${release}${shared_ext}$major'
1641
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1642
 
  shlibpath_var=LD_LIBRARY_PATH
1643
 
  ;;
1644
 
 
1645
1671
solaris*)
1646
1672
  version_type=linux
1647
1673
  need_lib_prefix=no
1667
1693
  need_version=yes
1668
1694
  ;;
1669
1695
 
1670
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1696
sysv4 | sysv4.3*)
1671
1697
  version_type=linux
1672
1698
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1673
1699
  soname_spec='${libname}${release}${shared_ext}$major'
1700
1726
  fi
1701
1727
  ;;
1702
1728
 
 
1729
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1730
  version_type=freebsd-elf
 
1731
  need_lib_prefix=no
 
1732
  need_version=no
 
1733
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1734
  soname_spec='${libname}${release}${shared_ext}$major'
 
1735
  shlibpath_var=LD_LIBRARY_PATH
 
1736
  hardcode_into_libs=yes
 
1737
  if test "$with_gnu_ld" = yes; then
 
1738
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1739
    shlibpath_overrides_runpath=no
 
1740
  else
 
1741
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1742
    shlibpath_overrides_runpath=yes
 
1743
    case $host_os in
 
1744
      sco3.2v5*)
 
1745
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1746
        ;;
 
1747
    esac
 
1748
  fi
 
1749
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1750
  ;;
 
1751
 
1703
1752
uts4*)
1704
1753
  version_type=linux
1705
1754
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1713
1762
esac
1714
1763
AC_MSG_RESULT([$dynamic_linker])
1715
1764
test "$dynamic_linker" = no && can_build_shared=no
 
1765
 
 
1766
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1767
if test "$GCC" = yes; then
 
1768
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1769
fi
1716
1770
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1717
1771
 
1718
1772
 
1737
1791
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1738
1792
    fi
1739
1793
  fi
 
1794
  if test -z "$LTCFLAGS"; then
 
1795
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1796
  fi
1740
1797
 
1741
1798
  # Extract list of available tagged configurations in $ofile.
1742
1799
  # Note that this assumes the entire list is on one line.
1865
1922
 
1866
1923
# AC_DISABLE_SHARED
1867
1924
# -----------------
1868
 
#- set the default shared flag to --disable-shared
 
1925
# set the default shared flag to --disable-shared
1869
1926
AC_DEFUN([AC_DISABLE_SHARED],
1870
1927
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1871
1928
AC_ENABLE_SHARED(no)
2173
2230
case $host_os in
2174
2231
  darwin*)
2175
2232
    if test "$GCC" = yes; then
2176
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2233
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2177
2234
    else
2178
2235
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2179
2236
    fi
2235
2292
  lt_cv_deplibs_check_method=pass_all
2236
2293
  ;;
2237
2294
 
2238
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2295
freebsd* | dragonfly*)
2239
2296
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2240
2297
    case $host_cpu in
2241
2298
    i*86 )
2273
2330
  esac
2274
2331
  ;;
2275
2332
 
 
2333
interix3*)
 
2334
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2335
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2336
  ;;
 
2337
 
2276
2338
irix5* | irix6* | nonstopux*)
2277
2339
  case $LD in
2278
2340
  *-32|*"-32 ") libmagic=32-bit;;
2284
2346
  ;;
2285
2347
 
2286
2348
# This must be Linux ELF.
2287
 
linux*)
 
2349
linux* | k*bsd*-gnu)
2288
2350
  lt_cv_deplibs_check_method=pass_all
2289
2351
  ;;
2290
2352
 
2291
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2353
netbsd* | netbsdelf*-gnu)
2292
2354
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2293
2355
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2294
2356
  else
2318
2380
  lt_cv_deplibs_check_method=pass_all
2319
2381
  ;;
2320
2382
 
2321
 
sco3.2v5*)
2322
 
  lt_cv_deplibs_check_method=pass_all
2323
 
  ;;
2324
 
 
2325
2383
solaris*)
2326
2384
  lt_cv_deplibs_check_method=pass_all
2327
2385
  ;;
2328
2386
 
2329
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2387
sysv4 | sysv4.3*)
2330
2388
  case $host_vendor in
2331
2389
  motorola)
2332
2390
    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]]'
2347
2405
  siemens)
2348
2406
    lt_cv_deplibs_check_method=pass_all
2349
2407
    ;;
 
2408
  pc)
 
2409
    lt_cv_deplibs_check_method=pass_all
 
2410
    ;;
2350
2411
  esac
2351
2412
  ;;
2352
2413
 
2353
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2414
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2354
2415
  lt_cv_deplibs_check_method=pass_all
2355
2416
  ;;
2356
2417
esac
2370
2431
  # Let the user override the test.
2371
2432
  lt_cv_path_NM="$NM"
2372
2433
else
2373
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2374
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2375
 
    IFS="$lt_save_ifs"
2376
 
    test -z "$ac_dir" && ac_dir=.
2377
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2378
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2379
 
      # Check to see if the nm accepts a BSD-compat flag.
2380
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2381
 
      #   nm: unknown option "B" ignored
2382
 
      # Tru64's nm complains that /dev/null is an invalid object file
2383
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2384
 
      */dev/null* | *'Invalid file or object type'*)
2385
 
        lt_cv_path_NM="$tmp_nm -B"
2386
 
        break
2387
 
        ;;
2388
 
      *)
2389
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2390
 
        */dev/null*)
2391
 
          lt_cv_path_NM="$tmp_nm -p"
 
2434
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2435
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2436
    lt_nm_to_check="$lt_nm_to_check nm"
 
2437
  fi
 
2438
  for lt_tmp_nm in $lt_nm_to_check; do
 
2439
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2440
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2441
      IFS="$lt_save_ifs"
 
2442
      test -z "$ac_dir" && ac_dir=.
 
2443
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2444
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2445
        # Check to see if the nm accepts a BSD-compat flag.
 
2446
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2447
        #   nm: unknown option "B" ignored
 
2448
        # Tru64's nm complains that /dev/null is an invalid object file
 
2449
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2450
        */dev/null* | *'Invalid file or object type'*)
 
2451
          lt_cv_path_NM="$tmp_nm -B"
2392
2452
          break
2393
2453
          ;;
2394
2454
        *)
2395
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2396
 
          continue # so that we can try to find one that supports BSD flags
 
2455
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2456
          */dev/null*)
 
2457
            lt_cv_path_NM="$tmp_nm -p"
 
2458
            break
 
2459
            ;;
 
2460
          *)
 
2461
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2462
            continue # so that we can try to find one that supports BSD flags
 
2463
            ;;
 
2464
          esac
2397
2465
          ;;
2398
2466
        esac
2399
 
      esac
2400
 
    fi
 
2467
      fi
 
2468
    done
 
2469
    IFS="$lt_save_ifs"
2401
2470
  done
2402
 
  IFS="$lt_save_ifs"
2403
2471
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2404
2472
fi])
2405
2473
NM="$lt_cv_path_NM"
2505
2573
])# _LT_AC_LANG_CXX
2506
2574
 
2507
2575
# _LT_AC_PROG_CXXCPP
2508
 
# ---------------
 
2576
# ------------------
2509
2577
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2510
2578
[
2511
2579
AC_REQUIRE([AC_PROG_CXX])
2554
2622
 
2555
2623
 
2556
2624
# AC_LIBTOOL_RC
2557
 
# --------------
 
2625
# -------------
2558
2626
# enable support for Windows resource files
2559
2627
AC_DEFUN([AC_LIBTOOL_RC],
2560
2628
[AC_REQUIRE([LT_AC_PROG_RC])
2591
2659
_LT_COMPILER_BOILERPLATE
2592
2660
_LT_LINKER_BOILERPLATE
2593
2661
 
2594
 
#
2595
 
# Check for any special shared library compilation flags.
2596
 
#
2597
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2598
 
if test "$GCC" = no; then
2599
 
  case $host_os in
2600
 
  sco3.2v5*)
2601
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2602
 
    ;;
2603
 
  esac
2604
 
fi
2605
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2606
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2607
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2608
 
  else
2609
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2610
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2611
 
  fi
2612
 
fi
2613
 
 
2614
 
 
2615
 
#
2616
 
# Check to make sure the static flag actually works.
2617
 
#
2618
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2619
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2620
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2621
 
  [],
2622
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2623
 
 
2624
 
 
2625
2662
## CAVEAT EMPTOR:
2626
2663
## There is no encapsulation within the following macros, do not change
2627
2664
## the running order or otherwise move them around unless you know exactly
2634
2671
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2635
2672
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2636
2673
AC_LIBTOOL_SYS_LIB_STRIP
2637
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2674
AC_LIBTOOL_DLOPEN_SELF
2638
2675
 
2639
 
# Report which librarie types wil actually be built
 
2676
# Report which library types will actually be built
2640
2677
AC_MSG_CHECKING([if libtool supports shared libraries])
2641
2678
AC_MSG_RESULT([$can_build_shared])
2642
2679
 
2695
2732
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2696
2733
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2697
2734
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2735
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2698
2736
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2699
2737
_LT_AC_TAGVAR(module_cmds, $1)=
2700
2738
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2722
2760
lt_simple_compile_test_code="int some_variable = 0;\n"
2723
2761
 
2724
2762
# Code to be used in simple link tests
2725
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2763
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2726
2764
 
2727
2765
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2728
2766
_LT_AC_SYS_COMPILER
2741
2779
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2742
2780
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2743
2781
else
2744
 
  unset lt_cv_prog_gnu_ld
 
2782
  $as_unset lt_cv_prog_gnu_ld
2745
2783
fi
2746
2784
if test -n "${lt_cv_path_LDCXX+set}"; then
2747
2785
  lt_cv_path_LD=$lt_cv_path_LDCXX
2748
2786
else
2749
 
  unset lt_cv_path_LD
 
2787
  $as_unset lt_cv_path_LD
2750
2788
fi
2751
2789
test -z "${LDCXX+set}" || LD=$LDCXX
2752
2790
CC=${CXX-"c++"}
2841
2879
            ;;
2842
2880
          esac
2843
2881
        done
 
2882
        ;;
2844
2883
      esac
2845
2884
 
2846
2885
      exp_sym_flag='-bexport'
2878
2917
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2879
2918
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2880
2919
        fi
 
2920
        ;;
2881
2921
      esac
2882
2922
      shared_flag='-shared'
2883
2923
      if test "$aix_use_runtimelinking" = yes; then
2909
2949
      _LT_AC_SYS_LIBPATH_AIX
2910
2950
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2911
2951
 
2912
 
      _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"
 
2952
      _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"
2913
2953
     else
2914
2954
      if test "$host_cpu" = ia64; then
2915
2955
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2916
2956
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2917
 
        _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"
 
2957
        _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"
2918
2958
      else
2919
2959
        # Determine the default libpath from the value encoded in an empty executable.
2920
2960
        _LT_AC_SYS_LIBPATH_AIX
2923
2963
        # -berok will link without error, but may produce a broken library.
2924
2964
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2925
2965
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2926
 
        # -bexpall does not export symbols beginning with underscore (_)
2927
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2928
2966
        # Exported symbols can be pulled into shared objects from archives
2929
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
2967
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2930
2968
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2931
2969
        # This is similar to how AIX traditionally builds its shared libraries.
2932
 
        _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'
 
2970
        _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'
2933
2971
      fi
2934
2972
    fi
2935
2973
    ;;
 
2974
 
 
2975
  beos*)
 
2976
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
2977
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
2978
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
2979
      # support --undefined.  This deserves some investigation.  FIXME
 
2980
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
2981
    else
 
2982
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2983
    fi
 
2984
    ;;
 
2985
 
2936
2986
  chorus*)
2937
2987
    case $cc_basename in
2938
2988
      *)
2942
2992
    esac
2943
2993
    ;;
2944
2994
 
2945
 
 
2946
2995
  cygwin* | mingw* | pw32*)
2947
2996
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2948
2997
    # as there is no search path for DLLs.
2952
3001
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2953
3002
 
2954
3003
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2955
 
      _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'
 
3004
      _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'
2956
3005
      # If the export-symbols file already is a .def file (1st line
2957
3006
      # is EXPORTS), use it as is; otherwise, prepend...
2958
3007
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2961
3010
        echo EXPORTS > $output_objdir/$soname.def;
2962
3011
        cat $export_symbols >> $output_objdir/$soname.def;
2963
3012
      fi~
2964
 
      $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'
 
3013
      $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'
2965
3014
    else
2966
3015
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2967
3016
    fi
3053
3102
  freebsd-elf*)
3054
3103
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3055
3104
    ;;
3056
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3105
  freebsd* | dragonfly*)
3057
3106
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3058
3107
    # conventions
3059
3108
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3098
3147
    ;;
3099
3148
  hpux10*|hpux11*)
3100
3149
    if test $with_gnu_ld = no; then
 
3150
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3151
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3152
 
3101
3153
      case $host_cpu in
3102
 
      hppa*64*)
3103
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3154
      hppa*64*|ia64*)
3104
3155
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3105
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3106
 
        ;;
3107
 
      ia64*)
3108
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3109
3156
        ;;
3110
3157
      *)
3111
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3112
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3113
3158
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3114
3159
        ;;
3115
3160
      esac
3116
3161
    fi
3117
3162
    case $host_cpu in
3118
 
    hppa*64*)
3119
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3120
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3121
 
      ;;
3122
 
    ia64*)
3123
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3124
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3125
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3126
 
                                              # but as the default
3127
 
                                              # location of the library.
 
3163
    hppa*64*|ia64*)
 
3164
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3165
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3128
3166
      ;;
3129
3167
    *)
3130
3168
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3141
3179
        ;;
3142
3180
      aCC*)
3143
3181
        case $host_cpu in
3144
 
        hppa*64*|ia64*)
3145
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3182
        hppa*64*)
 
3183
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3184
          ;;
 
3185
        ia64*)
 
3186
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3146
3187
          ;;
3147
3188
        *)
3148
3189
          _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'
3162
3203
        if test "$GXX" = yes; then
3163
3204
          if test $with_gnu_ld = no; then
3164
3205
            case $host_cpu in
3165
 
            ia64*|hppa*64*)
3166
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3206
            hppa*64*)
 
3207
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3208
              ;;
 
3209
            ia64*)
 
3210
              _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'
3167
3211
              ;;
3168
3212
            *)
3169
3213
              _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'
3177
3221
        ;;
3178
3222
    esac
3179
3223
    ;;
 
3224
  interix3*)
 
3225
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3226
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3227
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3228
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3229
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3230
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3231
    # default) and relocated if they conflict, which is a slow very memory
 
3232
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3233
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3234
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3235
    _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'
 
3236
    _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'
 
3237
    ;;
3180
3238
  irix5* | irix6*)
3181
3239
    case $cc_basename in
3182
3240
      CC*)
3203
3261
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3204
3262
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3205
3263
    ;;
3206
 
  linux*)
 
3264
  linux* | k*bsd*-gnu)
3207
3265
    case $cc_basename in
3208
3266
      KCC*)
3209
3267
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3305
3363
        ;;
3306
3364
    esac
3307
3365
    ;;
3308
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3366
  netbsd* | netbsdelf*-gnu)
3309
3367
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3310
3368
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3311
3369
      wlarc=
3459
3517
    # FIXME: insert proper C++ library support
3460
3518
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3461
3519
    ;;
3462
 
  sco*)
3463
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3464
 
    case $cc_basename in
3465
 
      CC*)
3466
 
        # FIXME: insert proper C++ library support
3467
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3468
 
        ;;
3469
 
      *)
3470
 
        # FIXME: insert proper C++ library support
3471
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3472
 
        ;;
3473
 
    esac
3474
 
    ;;
3475
3520
  sunos4*)
3476
3521
    case $cc_basename in
3477
3522
      CC*)
3564
3609
        ;;
3565
3610
    esac
3566
3611
    ;;
3567
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3568
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3612
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3613
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3614
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3615
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3616
    runpath_var='LD_RUN_PATH'
 
3617
 
 
3618
    case $cc_basename in
 
3619
      CC*)
 
3620
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3621
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3622
        ;;
 
3623
      *)
 
3624
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3625
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3626
        ;;
 
3627
    esac
 
3628
    ;;
 
3629
  sysv5* | sco3.2v5* | sco5v6*)
 
3630
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3631
    # link with -lc, and that would cause any symbols used from libc to
 
3632
    # always be unresolved, which means just about no library would
 
3633
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3634
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3635
    # as -z defs.
 
3636
    # For security reasons, it is highly recommended that you always
 
3637
    # use absolute paths for naming shared libraries, and exclude the
 
3638
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3639
    # requires that you compile everything twice, which is a pain.
 
3640
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3641
    # non-empty value in the environment.  Most likely only useful for
 
3642
    # creating official distributions of packages.
 
3643
    # This is a hack until libtool officially supports absolute path
 
3644
    # names for shared libraries.
 
3645
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3646
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3647
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3648
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3649
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3650
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3651
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3652
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3653
    runpath_var='LD_RUN_PATH'
 
3654
 
 
3655
    case $cc_basename in
 
3656
      CC*)
 
3657
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3658
        _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'
 
3659
        ;;
 
3660
      *)
 
3661
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3662
        _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'
 
3663
        ;;
 
3664
    esac
3569
3665
    ;;
3570
3666
  tandem*)
3571
3667
    case $cc_basename in
3606
3702
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3607
3703
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3608
3704
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3609
 
AC_LIBTOOL_SYS_LIB_STRIP
3610
 
AC_LIBTOOL_DLOPEN_SELF($1)
3611
3705
 
3612
3706
AC_LIBTOOL_CONFIG($1)
3613
3707
 
3625
3719
])# AC_LIBTOOL_LANG_CXX_CONFIG
3626
3720
 
3627
3721
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3628
 
# ------------------------
 
3722
# ------------------------------------
3629
3723
# Figure out "hidden" library dependencies from verbose
3630
3724
# compiler output when linking a shared library.
3631
3725
# Parse the compiler output and extract the necessary
3758
3852
# PORTME: override above test on systems where it is broken
3759
3853
ifelse([$1],[CXX],
3760
3854
[case $host_os in
 
3855
interix3*)
 
3856
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3857
  # hack all around it, let's just trust "g++" to DTRT.
 
3858
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3859
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3860
  _LT_AC_TAGVAR(postdeps,$1)=
 
3861
  ;;
 
3862
 
3761
3863
solaris*)
3762
3864
  case $cc_basename in
3763
3865
  CC*)
3767
3869
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3768
3870
    ;;
3769
3871
  esac
 
3872
  ;;
3770
3873
esac
3771
3874
])
3772
3875
 
3776
3879
])# AC_LIBTOOL_POSTDEP_PREDEP
3777
3880
 
3778
3881
# AC_LIBTOOL_LANG_F77_CONFIG
3779
 
# ------------------------
 
3882
# --------------------------
3780
3883
# Ensure that the configuration vars for the C compiler are
3781
3884
# suitably defined.  Those variables are subsequently used by
3782
3885
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3860
3963
test "$enable_shared" = yes || enable_static=yes
3861
3964
AC_MSG_RESULT([$enable_static])
3862
3965
 
3863
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3864
 
 
3865
3966
_LT_AC_TAGVAR(GCC, $1)="$G77"
3866
3967
_LT_AC_TAGVAR(LD, $1)="$LD"
3867
3968
 
3871
3972
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3872
3973
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3873
3974
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3874
 
AC_LIBTOOL_SYS_LIB_STRIP
3875
 
 
3876
3975
 
3877
3976
AC_LIBTOOL_CONFIG($1)
3878
3977
 
3933
4032
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3934
4033
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3935
4034
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3936
 
AC_LIBTOOL_SYS_LIB_STRIP
3937
 
AC_LIBTOOL_DLOPEN_SELF($1)
3938
4035
 
3939
4036
AC_LIBTOOL_CONFIG($1)
3940
4037
 
3944
4041
 
3945
4042
 
3946
4043
# AC_LIBTOOL_LANG_RC_CONFIG
3947
 
# --------------------------
 
4044
# -------------------------
3948
4045
# Ensure that the configuration vars for the Windows resource compiler are
3949
4046
# suitably defined.  Those variables are subsequently used by
3950
4047
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4007
4104
  # Now quote all the things that may contain metacharacters while being
4008
4105
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4009
4106
  # variables and quote the copies for generation of the libtool script.
4010
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4107
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4011
4108
    SED SHELL STRIP \
4012
4109
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4013
4110
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4176
4273
# A C compiler.
4177
4274
LTCC=$lt_LTCC
4178
4275
 
 
4276
# LTCC compiler flags.
 
4277
LTCFLAGS=$lt_LTCFLAGS
 
4278
 
4179
4279
# A language-specific compiler.
4180
4280
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4181
4281
 
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'"
4537
4637
  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
4638
  ;;
4539
 
linux*)
 
4639
linux* | k*bsd*-gnu)
4540
4640
  if test "$host_cpu" = ia64; then
4541
4641
    symcode='[[ABCDGIRSTW]]'
4542
4642
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4549
4649
osf*)
4550
4650
  symcode='[[BCDEGQRST]]'
4551
4651
  ;;
4552
 
solaris* | sysv5*)
 
4652
solaris*)
4553
4653
  symcode='[[BDRT]]'
4554
4654
  ;;
 
4655
sco3.2v5*)
 
4656
  symcode='[[DT]]'
 
4657
  ;;
 
4658
sysv4.2uw2*)
 
4659
  symcode='[[DT]]'
 
4660
  ;;
 
4661
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4662
  symcode='[[ABDT]]'
 
4663
  ;;
4555
4664
sysv4)
4556
4665
  symcode='[[DFNSTU]]'
4557
4666
  ;;
4734
4843
      # DJGPP does not support shared libraries at all
4735
4844
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4736
4845
      ;;
 
4846
    interix3*)
 
4847
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4848
      # Instead, we relocate shared libraries at runtime.
 
4849
      ;;
4737
4850
    sysv4*MP*)
4738
4851
      if test -d /usr/nec; then
4739
4852
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4796
4909
            ;;
4797
4910
        esac
4798
4911
        ;;
4799
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
4912
      freebsd* | dragonfly*)
4800
4913
        # FreeBSD uses GNU C++
4801
4914
        ;;
4802
4915
      hpux9* | hpux10* | hpux11*)
4803
4916
        case $cc_basename in
4804
4917
          CC*)
4805
4918
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4806
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4919
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4807
4920
            if test "$host_cpu" != ia64; then
4808
4921
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4809
4922
            fi
4810
4923
            ;;
4811
4924
          aCC*)
4812
4925
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4813
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4926
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4814
4927
            case $host_cpu in
4815
4928
            hppa*64*|ia64*)
4816
4929
              # +Z the default
4824
4937
            ;;
4825
4938
        esac
4826
4939
        ;;
 
4940
      interix*)
 
4941
        # This is c89, which is MS Visual C++ (no shared libs)
 
4942
        # Anyone wants to do a port?
 
4943
        ;;
4827
4944
      irix5* | irix6* | nonstopux*)
4828
4945
        case $cc_basename in
4829
4946
          CC*)
4835
4952
            ;;
4836
4953
        esac
4837
4954
        ;;
4838
 
      linux*)
 
4955
      linux* | k*bsd*-gnu)
4839
4956
        case $cc_basename in
4840
4957
          KCC*)
4841
4958
            # KAI C++ Compiler
4878
4995
            ;;
4879
4996
        esac
4880
4997
        ;;
4881
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
4998
      netbsd* | netbsdelf*-gnu)
4882
4999
        ;;
4883
5000
      osf3* | osf4* | osf5*)
4884
5001
        case $cc_basename in
4903
5020
        ;;
4904
5021
      psos*)
4905
5022
        ;;
4906
 
      sco*)
4907
 
        case $cc_basename in
4908
 
          CC*)
4909
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4910
 
            ;;
4911
 
          *)
4912
 
            ;;
4913
 
        esac
4914
 
        ;;
4915
5023
      solaris*)
4916
5024
        case $cc_basename in
4917
5025
          CC*)
4953
5061
            ;;
4954
5062
        esac
4955
5063
        ;;
4956
 
      unixware*)
 
5064
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5065
        case $cc_basename in
 
5066
          CC*)
 
5067
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5068
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5069
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5070
            ;;
 
5071
        esac
4957
5072
        ;;
4958
5073
      vxworks*)
4959
5074
        ;;
5000
5115
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5001
5116
      ;;
5002
5117
 
 
5118
    interix3*)
 
5119
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5120
      # Instead, we relocate shared libraries at runtime.
 
5121
      ;;
 
5122
 
5003
5123
    msdosdjgpp*)
5004
5124
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5005
5125
      # on systems that don't support them.
5086
5206
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5087
5207
      ;;
5088
5208
 
5089
 
    linux*)
 
5209
    linux* | k*bsd*-gnu)
5090
5210
      case $cc_basename in
5091
5211
      icc* | ecc*)
5092
5212
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5114
5234
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5115
5235
      ;;
5116
5236
 
5117
 
    sco3.2v5*)
5118
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5119
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5120
 
      ;;
5121
 
 
5122
5237
    solaris*)
5123
5238
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5124
5239
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5136
5251
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5137
5252
      ;;
5138
5253
 
5139
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5254
    sysv4 | sysv4.2uw2* | sysv4.3*)
5140
5255
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5141
5256
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5142
5257
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5149
5264
      fi
5150
5265
      ;;
5151
5266
 
 
5267
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5268
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5269
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5270
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5271
      ;;
 
5272
 
5152
5273
    unicos*)
5153
5274
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5154
5275
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5190
5311
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5191
5312
    ;;
5192
5313
esac
 
5314
 
 
5315
#
 
5316
# Check to make sure the static flag actually works.
 
5317
#
 
5318
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5319
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5320
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5321
  $lt_tmp_static_flag,
 
5322
  [],
 
5323
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5193
5324
])
5194
5325
 
5195
5326
 
5216
5347
  cygwin* | mingw*)
5217
5348
    _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'
5218
5349
  ;;
5219
 
  linux*)
 
5350
  linux* | k*bsd*-gnu)
5220
5351
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5221
5352
  ;;
5222
5353
  *)
5271
5402
      with_gnu_ld=no
5272
5403
    fi
5273
5404
    ;;
 
5405
  interix*)
 
5406
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5407
    with_gnu_ld=yes
 
5408
    ;;
5274
5409
  openbsd*)
5275
5410
    with_gnu_ld=no
5276
5411
    ;;
5355
5490
      _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'
5356
5491
 
5357
5492
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5358
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5493
        _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'
5359
5494
        # If the export-symbols file already is a .def file (1st line
5360
5495
        # is EXPORTS), use it as is; otherwise, prepend...
5361
5496
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5364
5499
          echo EXPORTS > $output_objdir/$soname.def;
5365
5500
          cat $export_symbols >> $output_objdir/$soname.def;
5366
5501
        fi~
5367
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5502
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5368
5503
      else
5369
5504
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5370
5505
      fi
5371
5506
      ;;
5372
5507
 
5373
 
    linux*)
 
5508
    interix3*)
 
5509
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5510
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5511
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5512
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5513
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5514
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5515
      # default) and relocated if they conflict, which is a slow very memory
 
5516
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5517
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5518
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5519
      _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'
 
5520
      _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'
 
5521
      ;;
 
5522
 
 
5523
    linux* | k*bsd*-gnu)
5374
5524
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5375
5525
        tmp_addflag=
5376
5526
        case $cc_basename,$host_cpu in
5402
5552
      fi
5403
5553
      ;;
5404
5554
 
5405
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5555
    netbsd* | netbsdelf*-gnu)
5406
5556
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5407
5557
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5408
5558
        wlarc=
5412
5562
      fi
5413
5563
      ;;
5414
5564
 
5415
 
    solaris* | sysv5*)
 
5565
    solaris*)
5416
5566
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5417
5567
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5418
5568
        cat <<EOF 1>&2
5433
5583
      fi
5434
5584
      ;;
5435
5585
 
 
5586
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5587
      case `$LD -v 2>&1` in
 
5588
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5589
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5590
        cat <<_LT_EOF 1>&2
 
5591
 
 
5592
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5593
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5594
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5595
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5596
*** your PATH or compiler configuration so that the native linker is
 
5597
*** used, and then restart.
 
5598
 
 
5599
_LT_EOF
 
5600
        ;;
 
5601
        *)
 
5602
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5603
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5604
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5605
            _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'
 
5606
          else
 
5607
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5608
          fi
 
5609
        ;;
 
5610
      esac
 
5611
      ;;
 
5612
 
5436
5613
    sunos4*)
5437
5614
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5438
5615
      wlarc=
5466
5643
      # Note: this linker hardcodes the directories in LIBPATH if there
5467
5644
      # are no directories specified by -L.
5468
5645
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5469
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5646
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5470
5647
        # Neither direct hardcoding nor static linking is supported with a
5471
5648
        # broken collect2.
5472
5649
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5500
5677
            break
5501
5678
          fi
5502
5679
          done
 
5680
          ;;
5503
5681
        esac
5504
5682
 
5505
5683
        exp_sym_flag='-bexport'
5537
5715
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5538
5716
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5539
5717
          fi
 
5718
          ;;
5540
5719
        esac
5541
5720
        shared_flag='-shared'
5542
5721
        if test "$aix_use_runtimelinking" = yes; then
5549
5728
        # chokes on -Wl,-G. The following line is correct:
5550
5729
          shared_flag='-G'
5551
5730
        else
5552
 
        if test "$aix_use_runtimelinking" = yes; then
 
5731
          if test "$aix_use_runtimelinking" = yes; then
5553
5732
            shared_flag='${wl}-G'
5554
5733
          else
5555
5734
            shared_flag='${wl}-bM:SRE'
5556
 
        fi
 
5735
          fi
5557
5736
        fi
5558
5737
      fi
5559
5738
 
5567
5746
       # Determine the default libpath from the value encoded in an empty executable.
5568
5747
       _LT_AC_SYS_LIBPATH_AIX
5569
5748
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5570
 
        _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"
 
5749
        _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"
5571
5750
       else
5572
5751
        if test "$host_cpu" = ia64; then
5573
5752
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5574
5753
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5575
 
          _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"
 
5754
          _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"
5576
5755
        else
5577
5756
         # Determine the default libpath from the value encoded in an empty executable.
5578
5757
         _LT_AC_SYS_LIBPATH_AIX
5581
5760
          # -berok will link without error, but may produce a broken library.
5582
5761
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5583
5762
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5584
 
          # -bexpall does not export symbols beginning with underscore (_)
5585
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5586
5763
          # Exported symbols can be pulled into shared objects from archives
5587
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5764
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5588
5765
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5589
5766
          # This is similar to how AIX traditionally builds its shared libraries.
5590
 
          _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'
 
5767
          _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'
5591
5768
        fi
5592
5769
      fi
5593
5770
      ;;
5705
5882
      ;;
5706
5883
 
5707
5884
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5708
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
5885
    freebsd* | dragonfly*)
5709
5886
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5710
5887
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5711
5888
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5728
5905
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5729
5906
      ;;
5730
5907
 
5731
 
    hpux10* | hpux11*)
 
5908
    hpux10*)
 
5909
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5910
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5911
      else
 
5912
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5913
      fi
 
5914
      if test "$with_gnu_ld" = no; then
 
5915
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5916
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5917
 
 
5918
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5919
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5920
 
 
5921
        # hardcode_minus_L: Not really in the search PATH,
 
5922
        # but as the default location of the library.
 
5923
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5924
      fi
 
5925
      ;;
 
5926
 
 
5927
    hpux11*)
5732
5928
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5733
5929
        case $host_cpu in
5734
 
        hppa*64*|ia64*)
 
5930
        hppa*64*)
5735
5931
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5736
5932
          ;;
 
5933
        ia64*)
 
5934
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5935
          ;;
5737
5936
        *)
5738
5937
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5739
5938
          ;;
5740
5939
        esac
5741
5940
      else
5742
5941
        case $host_cpu in
5743
 
        hppa*64*|ia64*)
5744
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5942
        hppa*64*)
 
5943
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5944
          ;;
 
5945
        ia64*)
 
5946
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5745
5947
          ;;
5746
5948
        *)
5747
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5949
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5748
5950
          ;;
5749
5951
        esac
5750
5952
      fi
5751
5953
      if test "$with_gnu_ld" = no; then
 
5954
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5955
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5956
 
5752
5957
        case $host_cpu in
5753
 
        hppa*64*)
5754
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5958
        hppa*64*|ia64*)
5755
5959
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5756
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5757
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759
 
          ;;
5760
 
        ia64*)
5761
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5762
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5763
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5764
 
 
5765
 
          # hardcode_minus_L: Not really in the search PATH,
5766
 
          # but as the default location of the library.
5767
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5960
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5961
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5768
5962
          ;;
5769
5963
        *)
5770
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5771
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5772
5964
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5773
5965
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5774
5966
 
5792
5984
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5793
5985
      ;;
5794
5986
 
5795
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5987
    netbsd* | netbsdelf*-gnu)
5796
5988
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5797
5989
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5798
5990
      else
5870
6062
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5871
6063
      ;;
5872
6064
 
5873
 
    sco3.2v5*)
5874
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5875
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5876
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5877
 
      runpath_var=LD_RUN_PATH
5878
 
      hardcode_runpath_var=yes
5879
 
      ;;
5880
 
 
5881
6065
    solaris*)
5882
6066
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5883
6067
      if test "$GCC" = yes; then
5963
6147
      fi
5964
6148
      ;;
5965
6149
 
5966
 
    sysv4.2uw2*)
5967
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5968
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5969
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5970
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5971
 
      hardcode_runpath_var=yes
5972
 
      runpath_var=LD_RUN_PATH
5973
 
      ;;
5974
 
 
5975
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5976
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5977
 
      if test "$GCC" = yes; then
5978
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5979
 
      else
5980
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5981
 
      fi
5982
 
      runpath_var='LD_RUN_PATH'
5983
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5984
 
      ;;
5985
 
 
5986
 
    sysv5*)
5987
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5988
 
      # $CC -shared without GNU ld will not create a library from C++
5989
 
      # object files and a static libstdc++, better avoid it by now
5990
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5991
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5992
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5993
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5994
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5995
 
      runpath_var='LD_RUN_PATH'
 
6150
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6151
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6152
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6153
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6154
      runpath_var='LD_RUN_PATH'
 
6155
 
 
6156
      if test "$GCC" = yes; then
 
6157
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6158
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6159
      else
 
6160
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6161
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6162
      fi
 
6163
      ;;
 
6164
 
 
6165
    sysv5* | sco3.2v5* | sco5v6*)
 
6166
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6167
      # link with -lc, and that would cause any symbols used from libc to
 
6168
      # always be unresolved, which means just about no library would
 
6169
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6170
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6171
      # as -z defs.
 
6172
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6173
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6174
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6175
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6176
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6177
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6178
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6179
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6180
      runpath_var='LD_RUN_PATH'
 
6181
 
 
6182
      if test "$GCC" = yes; then
 
6183
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6184
        _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'
 
6185
      else
 
6186
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6187
        _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'
 
6188
      fi
5996
6189
      ;;
5997
6190
 
5998
6191
    uts4*)
6010
6203
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6011
6204
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6012
6205
 
6013
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6014
 
if test "$GCC" = yes; then
6015
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6016
 
fi
6017
 
 
6018
6206
#
6019
6207
# Do we need to explicitly link libc?
6020
6208
#
6042
6230
        libobjs=conftest.$ac_objext
6043
6231
        deplibs=
6044
6232
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6233
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6045
6234
        compiler_flags=-v
6046
6235
        linker_flags=-v
6047
6236
        verstring=