~ubuntu-branches/ubuntu/trusty/argtable2/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Shachar Shemesh
  • Date: 2008-05-07 19:54:52 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080507195452-30nwhoptl33nxbfi
Tags: 9-1
New upstream version.

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 48 Debian 1.5.22-2 AC_PROG_LIBTOOL
 
16
# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
17
17
 
18
18
 
19
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
176
176
test -z "$ac_objext" && ac_objext=o
177
177
 
178
178
# Determine commands to create old-style static archives.
179
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
179
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
180
180
old_postinstall_cmds='chmod 644 $oldlib'
181
181
old_postuninstall_cmds=
182
182
 
263
263
# Check for compiler boilerplate output or warnings with
264
264
# the simple compiler test code.
265
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
 
[ac_outfile=conftest.$ac_objext
267
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
266
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
267
ac_outfile=conftest.$ac_objext
 
268
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268
269
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
270
_lt_compiler_boilerplate=`cat conftest.err`
270
271
$rm conftest*
276
277
# Check for linker boilerplate output or warnings with
277
278
# the simple link test code.
278
279
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
 
[ac_outfile=conftest.$ac_objext
280
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
280
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
281
ac_outfile=conftest.$ac_objext
 
282
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
283
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
284
_lt_linker_boilerplate=`cat conftest.err`
283
285
$rm conftest*
293
295
# If we don't find anything, use the default library path according
294
296
# to the aix ld manual.
295
297
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
298
 
}'`
 
298
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
299
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
300
lt_aix_libpath_sed='
 
301
    /Import File Strings/,/^$/ {
 
302
        /^0/ {
 
303
            s/^0  *\(.*\)$/\1/
 
304
            p
 
305
        }
 
306
    }'
 
307
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
308
# Check for a 64-bit object if we didn't find anything.
300
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
301
 
}'`; fi],[])
 
309
if test -z "$aix_libpath"; then
 
310
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
311
fi],[])
302
312
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
313
])# _LT_AC_SYS_LIBPATH_AIX
304
314
 
529
539
  rm -rf conftest*
530
540
  ;;
531
541
 
532
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
542
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
543
s390*-*linux*|sparc*-*linux*)
533
544
  # Find out which ABI we are using.
534
545
  echo 'int i;' > conftest.$ac_ext
535
546
  if AC_TRY_EVAL(ac_compile); then
536
547
    case `/usr/bin/file conftest.o` in
537
548
    *32-bit*)
538
549
      case $host in
 
550
        x86_64-*kfreebsd*-gnu)
 
551
          LD="${LD-ld} -m elf_i386_fbsd"
 
552
          ;;
539
553
        x86_64-*linux*)
540
554
          LD="${LD-ld} -m elf_i386"
541
555
          ;;
552
566
      ;;
553
567
    *64-bit*)
554
568
      case $host in
 
569
        x86_64-*kfreebsd*-gnu)
 
570
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
571
          ;;
555
572
        x86_64-*linux*)
556
573
          LD="${LD-ld} -m elf_x86_64"
557
574
          ;;
623
640
AC_CACHE_CHECK([$1], [$2],
624
641
  [$2=no
625
642
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
643
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
644
   lt_compiler_flag="$3"
628
645
   # Insert the option either (1) after the last *FLAGS variable, or
629
646
   # (2) before a word containing "conftest.", or (3) at the end.
664
681
# ------------------------------------------------------------
665
682
# Check whether the given compiler option works
666
683
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
 
[AC_CACHE_CHECK([$1], [$2],
 
684
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
685
AC_CACHE_CHECK([$1], [$2],
668
686
  [$2=no
669
687
   save_LDFLAGS="$LDFLAGS"
670
688
   LDFLAGS="$LDFLAGS $3"
671
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
689
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
690
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
691
     # The linker can only warn and ignore the option if not recognized
674
692
     # So say no if there are warnings
782
800
    fi
783
801
    ;;
784
802
  *)
785
 
    # If test is not a shell built-in, we'll probably end up computing a
786
 
    # maximum length that is only half of the actual maximum length, but
787
 
    # we can't tell.
788
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
803
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
804
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
805
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
806
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
807
    else
 
808
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
809
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
810
               = "XX$teststring") >/dev/null 2>&1 &&
791
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
 
            lt_cv_sys_max_cmd_len=$new_result &&
793
 
            test $i != 17 # 1/2 MB should be enough
794
 
    do
795
 
      i=`expr $i + 1`
796
 
      teststring=$teststring$teststring
797
 
    done
798
 
    teststring=
799
 
    # Add a significant safety factor because C++ compilers can tack on massive
800
 
    # amounts of additional arguments before passing them to the linker.
801
 
    # It appears as though 1/2 is a usable value.
802
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
811
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
812
              lt_cv_sys_max_cmd_len=$new_result &&
 
813
              test $i != 17 # 1/2 MB should be enough
 
814
      do
 
815
        i=`expr $i + 1`
 
816
        teststring=$teststring$teststring
 
817
      done
 
818
      teststring=
 
819
      # Add a significant safety factor because C++ compilers can tack on massive
 
820
      # amounts of additional arguments before passing them to the linker.
 
821
      # It appears as though 1/2 is a usable value.
 
822
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
823
    fi
803
824
    ;;
804
825
  esac
805
826
])
1026
1047
# ---------------------------------
1027
1048
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1049
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1050
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1051
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1052
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1053
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1054
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1034
1056
   mkdir conftest
1035
1057
   cd conftest
1036
1058
   mkdir out
1037
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1059
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1038
1060
 
1039
1061
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1040
1062
   # Insert the option either (1) after the last *FLAGS variable, or
1174
1196
   darwin*)
1175
1197
       if test -n "$STRIP" ; then
1176
1198
         striplib="$STRIP -x"
 
1199
         old_striplib="$STRIP -S"
1177
1200
         AC_MSG_RESULT([yes])
1178
1201
       else
1179
1202
  AC_MSG_RESULT([no])
1191
1214
# -----------------------------
1192
1215
# PORTME Fill in your ld.so characteristics
1193
1216
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1194
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1217
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1218
AC_MSG_CHECKING([dynamic linker characteristics])
1195
1219
library_names_spec=
1196
1220
libname_spec='lib$name'
1197
1221
soname_spec=
1205
1229
version_type=none
1206
1230
dynamic_linker="$host_os ld.so"
1207
1231
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1232
m4_if($1,[],[
1208
1233
if test "$GCC" = yes; then
1209
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1234
  case $host_os in
 
1235
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1236
    *) lt_awk_arg="/^libraries:/" ;;
 
1237
  esac
 
1238
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1239
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1240
    # if the path contains ";" then we assume it to be the separator
1212
1241
    # otherwise default to the standard path separator (i.e. ":") - it is
1213
1242
    # assumed that no part of a normal pathname contains ";" but that should
1214
1243
    # okay in the real world where ";" in dirpaths is itself problematic.
1215
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1244
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1216
1245
  else
1217
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1246
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1218
1247
  fi
 
1248
  # Ok, now we have the path, separated by spaces, we can step through it
 
1249
  # and add multilib dir if necessary.
 
1250
  lt_tmp_lt_search_path_spec=
 
1251
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1252
  for lt_sys_path in $lt_search_path_spec; do
 
1253
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1254
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1255
    else
 
1256
      test -d "$lt_sys_path" && \
 
1257
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1258
    fi
 
1259
  done
 
1260
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1261
BEGIN {RS=" "; FS="/|\n";} {
 
1262
  lt_foo="";
 
1263
  lt_count=0;
 
1264
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1265
    if ($lt_i != "" && $lt_i != ".") {
 
1266
      if ($lt_i == "..") {
 
1267
        lt_count++;
 
1268
      } else {
 
1269
        if (lt_count == 0) {
 
1270
          lt_foo="/" $lt_i lt_foo;
 
1271
        } else {
 
1272
          lt_count--;
 
1273
        }
 
1274
      }
 
1275
    }
 
1276
  }
 
1277
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1278
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1279
}'`
 
1280
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1219
1281
else
1220
1282
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1221
 
fi
 
1283
fi])
1222
1284
need_lib_prefix=unknown
1223
1285
hardcode_into_libs=no
1224
1286
 
1375
1437
  shlibpath_overrides_runpath=yes
1376
1438
  shlibpath_var=DYLD_LIBRARY_PATH
1377
1439
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1378
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1379
 
  if test "$GCC" = yes; then
1380
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1381
 
  else
1382
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1383
 
  fi
 
1440
  m4_if([$1], [],[
 
1441
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1384
1442
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1385
1443
  ;;
1386
1444
 
1397
1455
  dynamic_linker=no
1398
1456
  ;;
1399
1457
 
1400
 
kfreebsd*-gnu)
1401
 
  version_type=linux
1402
 
  need_lib_prefix=no
1403
 
  need_version=no
1404
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1405
 
  soname_spec='${libname}${release}${shared_ext}$major'
1406
 
  shlibpath_var=LD_LIBRARY_PATH
1407
 
  shlibpath_overrides_runpath=no
1408
 
  hardcode_into_libs=yes
1409
 
  dynamic_linker='GNU ld.so'
1410
 
  ;;
1411
 
 
1412
1458
freebsd* | dragonfly*)
1413
1459
  # DragonFly does not have aout.  When/if they implement a new
1414
1460
  # versioning mechanism, adjust this.
1446
1492
    shlibpath_overrides_runpath=no
1447
1493
    hardcode_into_libs=yes
1448
1494
    ;;
1449
 
  freebsd*) # from 4.6 on
 
1495
  *) # from 4.6 on, and DragonFly
1450
1496
    shlibpath_overrides_runpath=yes
1451
1497
    hardcode_into_libs=yes
1452
1498
    ;;
1509
1555
  postinstall_cmds='chmod 555 $lib'
1510
1556
  ;;
1511
1557
 
1512
 
interix3*)
 
1558
interix[[3-9]]*)
1513
1559
  version_type=linux
1514
1560
  need_lib_prefix=no
1515
1561
  need_version=no
1564
1610
  ;;
1565
1611
 
1566
1612
# This must be Linux ELF.
1567
 
linux*)
 
1613
linux* | k*bsd*-gnu)
1568
1614
  version_type=linux
1569
1615
  need_lib_prefix=no
1570
1616
  need_version=no
1580
1626
 
1581
1627
  # Append ld.so.conf contents to the search path
1582
1628
  if test -f /etc/ld.so.conf; then
1583
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1629
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1584
1630
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1585
1631
  fi
1586
1632
 
1605
1651
  dynamic_linker='NetBSD ld.elf_so'
1606
1652
  ;;
1607
1653
 
1608
 
knetbsd*-gnu)
1609
 
  version_type=linux
1610
 
  need_lib_prefix=no
1611
 
  need_version=no
1612
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1613
 
  soname_spec='${libname}${release}${shared_ext}$major'
1614
 
  shlibpath_var=LD_LIBRARY_PATH
1615
 
  shlibpath_overrides_runpath=no
1616
 
  hardcode_into_libs=yes
1617
 
  dynamic_linker='GNU ld.so'
1618
 
  ;;
1619
 
 
1620
1654
netbsd*)
1621
1655
  version_type=sunos
1622
1656
  need_lib_prefix=no
1698
1732
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1699
1733
  ;;
1700
1734
 
 
1735
rdos*)
 
1736
  dynamic_linker=no
 
1737
  ;;
 
1738
 
1701
1739
solaris*)
1702
1740
  version_type=linux
1703
1741
  need_lib_prefix=no
1803
1841
# _LT_AC_TAGCONFIG
1804
1842
# ----------------
1805
1843
AC_DEFUN([_LT_AC_TAGCONFIG],
1806
 
[AC_ARG_WITH([tags],
 
1844
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1845
AC_ARG_WITH([tags],
1807
1846
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1808
1847
        [include additional configurations @<:@automatic@:>@])],
1809
1848
    [tagnames="$withval"])
2064
2103
 
2065
2104
# AC_PATH_TOOL_PREFIX
2066
2105
# -------------------
2067
 
# find a file program which can recognise shared library
 
2106
# find a file program which can recognize shared library
2068
2107
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2069
2108
[AC_REQUIRE([AC_PROG_EGREP])dnl
2070
2109
AC_MSG_CHECKING([for $1])
2127
2166
 
2128
2167
# AC_PATH_MAGIC
2129
2168
# -------------
2130
 
# find a file program which can recognise a shared library
 
2169
# find a file program which can recognize a shared library
2131
2170
AC_DEFUN([AC_PATH_MAGIC],
2132
2171
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2133
2172
if test -z "$lt_cv_path_MAGIC_CMD"; then
2274
2313
# how to check for library dependencies
2275
2314
#  -- PORTME fill in with the dynamic library characteristics
2276
2315
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2277
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2316
[AC_CACHE_CHECK([how to recognize dependent libraries],
2278
2317
lt_cv_deplibs_check_method,
2279
2318
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2280
2319
lt_cv_file_magic_test_file=
2313
2352
 
2314
2353
mingw* | pw32*)
2315
2354
  # Base MSYS/MinGW do not provide the 'file' command needed by
2316
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2317
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2318
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2355
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2356
  # unless we find 'file', for example because we are cross-compiling.
 
2357
  if ( file / ) >/dev/null 2>&1; then
 
2358
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2359
    lt_cv_file_magic_cmd='func_win32_libid'
 
2360
  else
 
2361
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2362
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2363
  fi
2319
2364
  ;;
2320
2365
 
2321
2366
darwin* | rhapsody*)
2322
2367
  lt_cv_deplibs_check_method=pass_all
2323
2368
  ;;
2324
2369
 
2325
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2370
freebsd* | dragonfly*)
2326
2371
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2327
2372
    case $host_cpu in
2328
2373
    i*86 )
2360
2405
  esac
2361
2406
  ;;
2362
2407
 
2363
 
interix3*)
 
2408
interix[[3-9]]*)
2364
2409
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2365
2410
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2366
2411
  ;;
2376
2421
  ;;
2377
2422
 
2378
2423
# This must be Linux ELF.
2379
 
linux*)
 
2424
linux* | k*bsd*-gnu)
2380
2425
  lt_cv_deplibs_check_method=pass_all
2381
2426
  ;;
2382
2427
 
2383
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2428
netbsd* | netbsdelf*-gnu)
2384
2429
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2385
2430
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2386
2431
  else
2410
2455
  lt_cv_deplibs_check_method=pass_all
2411
2456
  ;;
2412
2457
 
 
2458
rdos*)
 
2459
  lt_cv_deplibs_check_method=pass_all
 
2460
  ;;
 
2461
 
2413
2462
solaris*)
2414
2463
  lt_cv_deplibs_check_method=pass_all
2415
2464
  ;;
2462
2511
  lt_cv_path_NM="$NM"
2463
2512
else
2464
2513
  lt_nm_to_check="${ac_tool_prefix}nm"
2465
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2514
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2466
2515
    lt_nm_to_check="$lt_nm_to_check nm"
2467
2516
  fi
2468
2517
  for lt_tmp_nm in $lt_nm_to_check; do
2678
2727
_LT_AC_TAGVAR(objext, $1)=$objext
2679
2728
 
2680
2729
# Code to be used in simple compile tests
2681
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2730
lt_simple_compile_test_code="int some_variable = 0;"
2682
2731
 
2683
2732
# Code to be used in simple link tests
2684
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2733
lt_simple_link_test_code='int main(){return(0);}'
2685
2734
 
2686
2735
_LT_AC_SYS_COMPILER
2687
2736
 
2783
2832
_LT_AC_TAGVAR(objext, $1)=$objext
2784
2833
 
2785
2834
# Code to be used in simple compile tests
2786
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2835
lt_simple_compile_test_code="int some_variable = 0;"
2787
2836
 
2788
2837
# Code to be used in simple link tests
2789
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2838
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2790
2839
 
2791
2840
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2792
2841
_LT_AC_SYS_COMPILER
2932
2981
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2933
2982
        then
2934
2983
          # We have reworked collect2
2935
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2984
          :
2936
2985
        else
2937
2986
          # We have old collect2
2938
2987
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3091
3140
      case $cc_basename in
3092
3141
        xlc*)
3093
3142
         output_verbose_link_cmd='echo'
3094
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3143
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3095
3144
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3096
3145
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3097
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3146
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3098
3147
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3099
3148
          ;;
3100
3149
       *)
3128
3177
  freebsd-elf*)
3129
3178
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3130
3179
    ;;
3131
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3180
  freebsd* | dragonfly*)
3132
3181
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3133
3182
    # conventions
3134
3183
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3177
3226
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3178
3227
 
3179
3228
      case $host_cpu in
3180
 
      hppa*64*|ia64*)
3181
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3182
 
        ;;
 
3229
      hppa*64*|ia64*) ;;
3183
3230
      *)
3184
3231
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3185
3232
        ;;
3247
3294
        ;;
3248
3295
    esac
3249
3296
    ;;
3250
 
  interix3*)
 
3297
  interix[[3-9]]*)
3251
3298
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3252
3299
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3253
3300
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3287
3334
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3288
3335
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3289
3336
    ;;
3290
 
  linux*)
 
3337
  linux* | k*bsd*-gnu)
3291
3338
    case $cc_basename in
3292
3339
      KCC*)
3293
3340
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3367
3414
        # dependencies.
3368
3415
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3369
3416
        ;;
 
3417
      *)
 
3418
        case `$CC -V 2>&1 | sed 5q` in
 
3419
        *Sun\ C*)
 
3420
          # Sun C++ 5.9
 
3421
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3422
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3423
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3424
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3425
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3426
 
 
3427
          # Not sure whether something based on
 
3428
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3429
          # would be better.
 
3430
          output_verbose_link_cmd='echo'
 
3431
 
 
3432
          # Archives containing C++ object files must be created using
 
3433
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3434
          # necessary to make sure instantiated templates are included
 
3435
          # in the archive.
 
3436
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3437
          ;;
 
3438
        esac
 
3439
        ;;
3370
3440
    esac
3371
3441
    ;;
3372
3442
  lynxos*)
3389
3459
        ;;
3390
3460
    esac
3391
3461
    ;;
3392
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3462
  netbsd* | netbsdelf*-gnu)
3393
3463
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3394
3464
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3395
3465
      wlarc=
3405
3475
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3406
3476
    ;;
3407
3477
  openbsd*)
3408
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3409
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3410
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3411
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3412
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3413
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3414
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3415
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3478
    if test -f /usr/libexec/ld.so; then
 
3479
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3480
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3481
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3482
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3483
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3484
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3485
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3486
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3487
      fi
 
3488
      output_verbose_link_cmd='echo'
 
3489
    else
 
3490
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3416
3491
    fi
3417
 
    output_verbose_link_cmd='echo'
3418
3492
    ;;
3419
3493
  osf3*)
3420
3494
    case $cc_basename in
3576
3650
        case $host_os in
3577
3651
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3578
3652
          *)
3579
 
            # The C++ compiler is used as linker so we must use $wl
3580
 
            # flag to pass the commands to the underlying system
3581
 
            # linker. We must also pass each convience library through
3582
 
            # to the system linker between allextract/defaultextract.
3583
 
            # The C++ compiler will combine linker options so we
3584
 
            # cannot just pass the convience library names through
3585
 
            # without $wl.
 
3653
            # The compiler driver will combine and reorder linker options,
 
3654
            # but understands `-z linker_flag'.
3586
3655
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3587
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3656
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3588
3657
            ;;
3589
3658
        esac
3590
3659
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3631
3700
          fi
3632
3701
 
3633
3702
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3703
          case $host_os in
 
3704
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3705
          *)
 
3706
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3707
            ;;
 
3708
          esac
3634
3709
        fi
3635
3710
        ;;
3636
3711
    esac
3874
3949
# PORTME: override above test on systems where it is broken
3875
3950
ifelse([$1],[CXX],
3876
3951
[case $host_os in
3877
 
interix3*)
 
3952
interix[[3-9]]*)
3878
3953
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3879
3954
  # hack all around it, let's just trust "g++" to DTRT.
3880
3955
  _LT_AC_TAGVAR(predep_objects,$1)=
3882
3957
  _LT_AC_TAGVAR(postdeps,$1)=
3883
3958
  ;;
3884
3959
 
 
3960
linux*)
 
3961
  case `$CC -V 2>&1 | sed 5q` in
 
3962
  *Sun\ C*)
 
3963
    # Sun C++ 5.9
 
3964
    #
 
3965
    # The more standards-conforming stlport4 library is
 
3966
    # incompatible with the Cstd library. Avoid specifying
 
3967
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3968
    # -library=stlport4 depends on it.
 
3969
    case " $CXX $CXXFLAGS " in
 
3970
    *" -library=stlport4 "*)
 
3971
      solaris_use_stlport4=yes
 
3972
      ;;
 
3973
    esac
 
3974
    if test "$solaris_use_stlport4" != yes; then
 
3975
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3976
    fi
 
3977
    ;;
 
3978
  esac
 
3979
  ;;
 
3980
 
3885
3981
solaris*)
3886
3982
  case $cc_basename in
3887
3983
  CC*)
 
3984
    # The more standards-conforming stlport4 library is
 
3985
    # incompatible with the Cstd library. Avoid specifying
 
3986
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3987
    # -library=stlport4 depends on it.
 
3988
    case " $CXX $CXXFLAGS " in
 
3989
    *" -library=stlport4 "*)
 
3990
      solaris_use_stlport4=yes
 
3991
      ;;
 
3992
    esac
 
3993
 
3888
3994
    # Adding this requires a known-good setup of shared libraries for
3889
3995
    # Sun compiler versions before 5.6, else PIC objects from an old
3890
3996
    # archive will be linked into the output, leading to subtle bugs.
3891
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3997
    if test "$solaris_use_stlport4" != yes; then
 
3998
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3999
    fi
3892
4000
    ;;
3893
4001
  esac
3894
4002
  ;;
3937
4045
_LT_AC_TAGVAR(objext, $1)=$objext
3938
4046
 
3939
4047
# Code to be used in simple compile tests
3940
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4048
lt_simple_compile_test_code="\
 
4049
      subroutine t
 
4050
      return
 
4051
      end
 
4052
"
3941
4053
 
3942
4054
# Code to be used in simple link tests
3943
 
lt_simple_link_test_code="      program t\n      end\n"
 
4055
lt_simple_link_test_code="\
 
4056
      program t
 
4057
      end
 
4058
"
3944
4059
 
3945
4060
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3946
4061
_LT_AC_SYS_COMPILER
4019
4134
_LT_AC_TAGVAR(objext, $1)=$objext
4020
4135
 
4021
4136
# Code to be used in simple compile tests
4022
 
lt_simple_compile_test_code="class foo {}\n"
 
4137
lt_simple_compile_test_code="class foo {}"
4023
4138
 
4024
4139
# Code to be used in simple link tests
4025
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4140
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4026
4141
 
4027
4142
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4028
4143
_LT_AC_SYS_COMPILER
4075
4190
_LT_AC_TAGVAR(objext, $1)=$objext
4076
4191
 
4077
4192
# Code to be used in simple compile tests
4078
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4193
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4079
4194
 
4080
4195
# Code to be used in simple link tests
4081
4196
lt_simple_link_test_code="$lt_simple_compile_test_code"
4164
4279
    _LT_AC_TAGVAR(module_cmds, $1) \
4165
4280
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4166
4281
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4282
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4167
4283
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4168
4284
    _LT_AC_TAGVAR(include_expsyms, $1); do
4169
4285
 
4210
4326
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4211
4327
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4212
4328
#
4213
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4329
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4214
4330
# Free Software Foundation, Inc.
4215
4331
#
4216
4332
# This file is part of GNU Libtool:
4535
4651
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4536
4652
 
4537
4653
# Fix the shell variable \$srcfile for the compiler.
4538
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4654
fix_srcfile_path=$lt_fix_srcfile_path
4539
4655
 
4540
4656
# Set to yes if exported symbols are required.
4541
4657
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4618
4734
# ---------------------------------
4619
4735
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4620
4736
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4737
AC_REQUIRE([LT_AC_PROG_SED])
4621
4738
AC_REQUIRE([AC_PROG_NM])
4622
4739
AC_REQUIRE([AC_OBJEXT])
4623
4740
# Check for command to grab the raw symbol name followed by C symbol from nm.
4654
4771
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4655
4772
  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'"
4656
4773
  ;;
4657
 
linux*)
 
4774
linux* | k*bsd*-gnu)
4658
4775
  if test "$host_cpu" = ia64; then
4659
4776
    symcode='[[ABCDGIRSTW]]'
4660
4777
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4844
4961
      # like `-m68040'.
4845
4962
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4846
4963
      ;;
4847
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4964
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4848
4965
      # PIC is the default for these OSes.
4849
4966
      ;;
4850
 
    mingw* | os2* | pw32*)
 
4967
    mingw* | cygwin* | os2* | pw32*)
4851
4968
      # This hack is so that the source file can tell whether it is being
4852
4969
      # built for inclusion in a dll (and should export symbols for example).
 
4970
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4971
      # (--disable-auto-import) libraries
4853
4972
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4854
4973
      ;;
4855
4974
    darwin* | rhapsody*)
4861
4980
      # DJGPP does not support shared libraries at all
4862
4981
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4863
4982
      ;;
4864
 
    interix3*)
 
4983
    interix[[3-9]]*)
4865
4984
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4866
4985
      # Instead, we relocate shared libraries at runtime.
4867
4986
      ;;
4927
5046
            ;;
4928
5047
        esac
4929
5048
        ;;
4930
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5049
      freebsd* | dragonfly*)
4931
5050
        # FreeBSD uses GNU C++
4932
5051
        ;;
4933
5052
      hpux9* | hpux10* | hpux11*)
4970
5089
            ;;
4971
5090
        esac
4972
5091
        ;;
4973
 
      linux*)
 
5092
      linux* | k*bsd*-gnu)
4974
5093
        case $cc_basename in
4975
5094
          KCC*)
4976
5095
            # KAI C++ Compiler
4997
5116
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4998
5117
            ;;
4999
5118
          *)
 
5119
            case `$CC -V 2>&1 | sed 5q` in
 
5120
            *Sun\ C*)
 
5121
              # Sun C++ 5.9
 
5122
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5123
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5124
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5125
              ;;
 
5126
            esac
5000
5127
            ;;
5001
5128
        esac
5002
5129
        ;;
5013
5140
            ;;
5014
5141
        esac
5015
5142
        ;;
5016
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5143
      netbsd* | netbsdelf*-gnu)
5017
5144
        ;;
5018
5145
      osf3* | osf4* | osf5*)
5019
5146
        case $cc_basename in
5117
5244
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5118
5245
      ;;
5119
5246
 
5120
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5247
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5121
5248
      # PIC is the default for these OSes.
5122
5249
      ;;
5123
5250
 
5124
 
    mingw* | pw32* | os2*)
 
5251
    mingw* | cygwin* | pw32* | os2*)
5125
5252
      # This hack is so that the source file can tell whether it is being
5126
5253
      # built for inclusion in a dll (and should export symbols for example).
 
5254
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5255
      # (--disable-auto-import) libraries
5127
5256
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5128
5257
      ;;
5129
5258
 
5133
5262
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5134
5263
      ;;
5135
5264
 
5136
 
    interix3*)
 
5265
    interix[[3-9]]*)
5137
5266
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5138
5267
      # Instead, we relocate shared libraries at runtime.
5139
5268
      ;;
5191
5320
       esac
5192
5321
       ;;
5193
5322
 
5194
 
    mingw* | pw32* | os2*)
 
5323
    mingw* | cygwin* | pw32* | os2*)
5195
5324
      # This hack is so that the source file can tell whether it is being
5196
5325
      # built for inclusion in a dll (and should export symbols for example).
5197
5326
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5224
5353
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5225
5354
      ;;
5226
5355
 
5227
 
    linux*)
 
5356
    linux* | k*bsd*-gnu)
5228
5357
      case $cc_basename in
5229
5358
      icc* | ecc*)
5230
5359
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5243
5372
        # All Alpha code is PIC.
5244
5373
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5245
5374
        ;;
 
5375
      *)
 
5376
        case `$CC -V 2>&1 | sed 5q` in
 
5377
        *Sun\ C*)
 
5378
          # Sun C 5.9
 
5379
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5380
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5381
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5382
          ;;
 
5383
        *Sun\ F*)
 
5384
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5385
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5386
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5387
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5388
          ;;
 
5389
        esac
 
5390
        ;;
5246
5391
      esac
5247
5392
      ;;
5248
5393
 
5252
5397
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5253
5398
      ;;
5254
5399
 
 
5400
    rdos*)
 
5401
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5402
      ;;
 
5403
 
5255
5404
    solaris*)
5256
5405
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5257
5406
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5346
5495
# ------------------------------------
5347
5496
# See if the linker supports building shared libraries.
5348
5497
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5349
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5498
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5499
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5350
5500
ifelse([$1],[CXX],[
5351
5501
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5352
5502
  case $host_os in
5363
5513
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5364
5514
  ;;
5365
5515
  cygwin* | mingw*)
5366
 
    _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'
5367
 
  ;;
5368
 
  kfreebsd*-gnu)
5369
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5370
 
  ;;
5371
 
  linux*)
 
5516
    _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'
 
5517
  ;;
 
5518
  linux* | k*bsd*-gnu)
5372
5519
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5373
5520
  ;;
5374
5521
  *)
5508
5655
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5509
5656
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5510
5657
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5511
 
      _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'
 
5658
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5512
5659
 
5513
5660
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5514
5661
        _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'
5526
5673
      fi
5527
5674
      ;;
5528
5675
 
5529
 
    interix3*)
 
5676
    interix[[3-9]]*)
5530
5677
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5531
5678
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5532
5679
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5541
5688
      _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'
5542
5689
      ;;
5543
5690
 
5544
 
    linux*)
 
5691
    gnu* | linux* | k*bsd*-gnu)
5545
5692
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5546
5693
        tmp_addflag=
5547
5694
        case $cc_basename,$host_cpu in
5559
5706
        ifc* | ifort*)                  # Intel Fortran compiler
5560
5707
          tmp_addflag=' -nofor_main' ;;
5561
5708
        esac
5562
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5709
        case `$CC -V 2>&1 | sed 5q` in
 
5710
        *Sun\ C*)                       # Sun C 5.9
 
5711
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5712
          tmp_sharedflag='-G' ;;
 
5713
        *Sun\ F*)                       # Sun Fortran 8.3
 
5714
          tmp_sharedflag='-G' ;;
 
5715
        *)
 
5716
          tmp_sharedflag='-shared' ;;
 
5717
        esac
 
5718
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5563
5719
 
5564
5720
        if test $supports_anon_versioning = yes; then
5565
5721
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5566
5722
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5567
5723
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5568
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5724
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5569
5725
        fi
5570
5726
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5571
5727
      else
5573
5729
      fi
5574
5730
      ;;
5575
5731
 
5576
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5732
    netbsd* | netbsdelf*-gnu)
5577
5733
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5578
5734
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5579
5735
        wlarc=
5606
5762
 
5607
5763
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5608
5764
      case `$LD -v 2>&1` in
5609
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5765
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5610
5766
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5611
5767
        cat <<_LT_EOF 1>&2
5612
5768
 
5725
5881
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5726
5882
          then
5727
5883
          # We have reworked collect2
5728
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5884
          :
5729
5885
          else
5730
5886
          # We have old collect2
5731
5887
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5818
5974
      # The linker will automatically build a .lib file if we build a DLL.
5819
5975
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5820
5976
      # FIXME: Should let the user specify the lib program.
5821
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5977
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5822
5978
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5823
5979
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5824
5980
      ;;
5860
6016
      case $cc_basename in
5861
6017
        xlc*)
5862
6018
         output_verbose_link_cmd='echo'
5863
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6019
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5864
6020
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5865
6021
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5866
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6022
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5867
6023
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5868
6024
          ;;
5869
6025
       *)
5909
6065
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5910
6066
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5911
6067
      ;;
5912
 
      
5913
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
5914
 
    kfreebsd*-gnu)
5915
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5916
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5917
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5918
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5919
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5920
 
      ;;
5921
6068
 
5922
6069
    hpux9*)
5923
6070
      if test "$GCC" = yes; then
6014
6161
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6015
6162
      ;;
6016
6163
 
6017
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6164
    netbsd* | netbsdelf*-gnu)
6018
6165
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6019
6166
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6020
6167
      else
6034
6181
      ;;
6035
6182
 
6036
6183
    openbsd*)
6037
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6038
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6039
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6040
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6041
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6042
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6043
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6184
      if test -f /usr/libexec/ld.so; then
 
6185
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6186
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6187
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6188
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6189
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6190
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6191
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6192
        else
 
6193
          case $host_os in
 
6194
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6195
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6196
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6197
             ;;
 
6198
           *)
 
6199
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6200
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6201
             ;;
 
6202
          esac
 
6203
        fi
6044
6204
      else
6045
 
       case $host_os in
6046
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6047
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6048
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6049
 
           ;;
6050
 
         *)
6051
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6052
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6053
 
           ;;
6054
 
       esac
 
6205
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6055
6206
      fi
6056
6207
      ;;
6057
6208
 
6110
6261
      case $host_os in
6111
6262
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6112
6263
      *)
6113
 
        # The compiler driver will combine linker options so we
6114
 
        # cannot just pass the convience library names through
6115
 
        # without $wl, iff we do not link with $LD.
6116
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6264
        # The compiler driver will combine and reorder linker options,
 
6265
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6266
        # but is careful enough not to reorder.
6117
6267
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6118
 
        case $wlarc in
6119
 
        '')
6120
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6121
 
        *)
6122
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6123
 
        esac ;;
 
6268
        if test "$GCC" = yes; then
 
6269
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6270
        else
 
6271
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6272
        fi
 
6273
        ;;
6124
6274
      esac
6125
6275
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6126
6276
      ;;
6177
6327
      fi
6178
6328
      ;;
6179
6329
 
6180
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6330
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6181
6331
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6182
6332
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6183
6333
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6252
6402
      # to ld, don't add -lc before -lgcc.
6253
6403
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6254
6404
      $rm conftest*
6255
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6405
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6256
6406
 
6257
6407
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6258
6408
        soname=conftest
6355
6505
[AC_CHECK_TOOL(RC, windres, no)
6356
6506
])
6357
6507
 
 
6508
 
 
6509
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6510
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6511
 
 
6512
# _AS_TEST_PREPARE
 
6513
# ----------------
 
6514
m4_ifndef([_AS_TEST_PREPARE],
 
6515
[m4_defun([_AS_TEST_PREPARE],
 
6516
[if test -x / >/dev/null 2>&1; then
 
6517
  as_executable_p='test -x'
 
6518
else
 
6519
  as_executable_p='test -f'
 
6520
fi
 
6521
])])# _AS_TEST_PREPARE
 
6522
 
 
6523
# AS_EXECUTABLE_P
 
6524
# ---------------
 
6525
# Check whether a file is executable.
 
6526
m4_ifndef([AS_EXECUTABLE_P],
 
6527
[m4_defun([AS_EXECUTABLE_P],
 
6528
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6529
$as_executable_p $1[]dnl
 
6530
])])# AS_EXECUTABLE_P
 
6531
 
6358
6532
# NOTE: This macro has been submitted for inclusion into   #
6359
6533
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6360
6534
#  a released version of Autoconf we should remove this    #
6375
6549
  test -z "$as_dir" && as_dir=.
6376
6550
  for lt_ac_prog in sed gsed; do
6377
6551
    for ac_exec_ext in '' $ac_executable_extensions; do
6378
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6552
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6379
6553
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6380
6554
      fi
6381
6555
    done
6382
6556
  done
6383
6557
done
 
6558
IFS=$as_save_IFS
6384
6559
lt_ac_max=0
6385
6560
lt_ac_count=0
6386
6561
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6413
6588
done
6414
6589
])
6415
6590
SED=$lt_cv_path_SED
 
6591
AC_SUBST([SED])
6416
6592
AC_MSG_RESULT([$SED])
6417
6593
])
6418
6594