~ubuntu-branches/ubuntu/lucid/rsyslog/lucid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2007-12-03 19:42:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071203194219-yyx6h4mlp3fq2e2r
Tags: 1.19.12-1
* New upstream release.
* debian/control
  - Add Depends: lsb-base (>= 3.0-6) as the init script uses the LSB logging
    functions.
  - Bump Standards-Version to 3.7.3. No further changes required. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20
20
 
21
 
# serial 48 AC_PROG_LIBTOOL
 
21
# serial 51 AC_PROG_LIBTOOL
22
22
 
23
23
 
24
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
181
181
test -z "$ac_objext" && ac_objext=o
182
182
 
183
183
# Determine commands to create old-style static archives.
184
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
184
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
185
185
old_postinstall_cmds='chmod 644 $oldlib'
186
186
old_postuninstall_cmds=
187
187
 
268
268
# Check for compiler boilerplate output or warnings with
269
269
# the simple compiler test code.
270
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
271
 
[ac_outfile=conftest.$ac_objext
272
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
271
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
272
ac_outfile=conftest.$ac_objext
 
273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
275
_lt_compiler_boilerplate=`cat conftest.err`
275
276
$rm conftest*
281
282
# Check for linker boilerplate output or warnings with
282
283
# the simple link test code.
283
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
284
 
[ac_outfile=conftest.$ac_objext
285
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
285
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
286
ac_outfile=conftest.$ac_objext
 
287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
286
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
287
289
_lt_linker_boilerplate=`cat conftest.err`
288
290
$rm conftest*
298
300
# If we don't find anything, use the default library path according
299
301
# to the aix ld manual.
300
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
301
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
302
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
303
 
}'`
 
303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
304
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
305
lt_aix_libpath_sed='
 
306
    /Import File Strings/,/^$/ {
 
307
        /^0/ {
 
308
            s/^0  *\(.*\)$/\1/
 
309
            p
 
310
        }
 
311
    }'
 
312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
304
313
# Check for a 64-bit object if we didn't find anything.
305
 
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; }
306
 
}'`; fi],[])
 
314
if test -z "$aix_libpath"; then
 
315
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
316
fi],[])
307
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
308
318
])# _LT_AC_SYS_LIBPATH_AIX
309
319
 
534
544
  rm -rf conftest*
535
545
  ;;
536
546
 
537
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
547
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
548
s390*-*linux*|sparc*-*linux*)
538
549
  # Find out which ABI we are using.
539
550
  echo 'int i;' > conftest.$ac_ext
540
551
  if AC_TRY_EVAL(ac_compile); then
541
552
    case `/usr/bin/file conftest.o` in
542
553
    *32-bit*)
543
554
      case $host in
 
555
        x86_64-*kfreebsd*-gnu)
 
556
          LD="${LD-ld} -m elf_i386_fbsd"
 
557
          ;;
544
558
        x86_64-*linux*)
545
559
          LD="${LD-ld} -m elf_i386"
546
560
          ;;
556
570
      esac
557
571
      ;;
558
572
    *64-bit*)
 
573
      libsuff=64
559
574
      case $host in
 
575
        x86_64-*kfreebsd*-gnu)
 
576
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
577
          ;;
560
578
        x86_64-*linux*)
561
579
          LD="${LD-ld} -m elf_x86_64"
562
580
          ;;
628
646
AC_CACHE_CHECK([$1], [$2],
629
647
  [$2=no
630
648
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
631
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
649
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
632
650
   lt_compiler_flag="$3"
633
651
   # Insert the option either (1) after the last *FLAGS variable, or
634
652
   # (2) before a word containing "conftest.", or (3) at the end.
669
687
# ------------------------------------------------------------
670
688
# Check whether the given compiler option works
671
689
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
672
 
[AC_CACHE_CHECK([$1], [$2],
 
690
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
691
AC_CACHE_CHECK([$1], [$2],
673
692
  [$2=no
674
693
   save_LDFLAGS="$LDFLAGS"
675
694
   LDFLAGS="$LDFLAGS $3"
676
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
695
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
677
696
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
678
697
     # The linker can only warn and ignore the option if not recognized
679
698
     # So say no if there are warnings
787
806
    fi
788
807
    ;;
789
808
  *)
790
 
    # If test is not a shell built-in, we'll probably end up computing a
791
 
    # maximum length that is only half of the actual maximum length, but
792
 
    # we can't tell.
793
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
794
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
809
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
810
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
811
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
812
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
813
    else
 
814
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
815
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
795
816
               = "XX$teststring") >/dev/null 2>&1 &&
796
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
797
 
            lt_cv_sys_max_cmd_len=$new_result &&
798
 
            test $i != 17 # 1/2 MB should be enough
799
 
    do
800
 
      i=`expr $i + 1`
801
 
      teststring=$teststring$teststring
802
 
    done
803
 
    teststring=
804
 
    # Add a significant safety factor because C++ compilers can tack on massive
805
 
    # amounts of additional arguments before passing them to the linker.
806
 
    # It appears as though 1/2 is a usable value.
807
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
817
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
818
              lt_cv_sys_max_cmd_len=$new_result &&
 
819
              test $i != 17 # 1/2 MB should be enough
 
820
      do
 
821
        i=`expr $i + 1`
 
822
        teststring=$teststring$teststring
 
823
      done
 
824
      teststring=
 
825
      # Add a significant safety factor because C++ compilers can tack on massive
 
826
      # amounts of additional arguments before passing them to the linker.
 
827
      # It appears as though 1/2 is a usable value.
 
828
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
829
    fi
808
830
    ;;
809
831
  esac
810
832
])
1031
1053
# ---------------------------------
1032
1054
# Check to see if options -c and -o are simultaneously supported by compiler
1033
1055
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1034
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1056
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1057
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1035
1058
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1036
1059
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1037
1060
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1039
1062
   mkdir conftest
1040
1063
   cd conftest
1041
1064
   mkdir out
1042
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1065
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1043
1066
 
1044
1067
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1045
1068
   # Insert the option either (1) after the last *FLAGS variable, or
1179
1202
   darwin*)
1180
1203
       if test -n "$STRIP" ; then
1181
1204
         striplib="$STRIP -x"
 
1205
         old_striplib="$STRIP -S"
1182
1206
         AC_MSG_RESULT([yes])
1183
1207
       else
1184
1208
  AC_MSG_RESULT([no])
1196
1220
# -----------------------------
1197
1221
# PORTME Fill in your ld.so characteristics
1198
1222
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1199
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1223
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1224
AC_MSG_CHECKING([dynamic linker characteristics])
1200
1225
library_names_spec=
1201
1226
libname_spec='lib$name'
1202
1227
soname_spec=
1210
1235
version_type=none
1211
1236
dynamic_linker="$host_os ld.so"
1212
1237
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1238
m4_if($1,[],[
1213
1239
if test "$GCC" = yes; then
1214
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1215
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1240
  case $host_os in
 
1241
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1242
    *) lt_awk_arg="/^libraries:/" ;;
 
1243
  esac
 
1244
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1245
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1216
1246
    # if the path contains ";" then we assume it to be the separator
1217
1247
    # otherwise default to the standard path separator (i.e. ":") - it is
1218
1248
    # assumed that no part of a normal pathname contains ";" but that should
1219
1249
    # okay in the real world where ";" in dirpaths is itself problematic.
1220
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1250
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1221
1251
  else
1222
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1252
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1223
1253
  fi
 
1254
  # Ok, now we have the path, separated by spaces, we can step through it
 
1255
  # and add multilib dir if necessary.
 
1256
  lt_tmp_lt_search_path_spec=
 
1257
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1258
  for lt_sys_path in $lt_search_path_spec; do
 
1259
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1260
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1261
    else
 
1262
      test -d "$lt_sys_path" && \
 
1263
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1264
    fi
 
1265
  done
 
1266
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1267
BEGIN {RS=" "; FS="/|\n";} {
 
1268
  lt_foo="";
 
1269
  lt_count=0;
 
1270
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1271
    if ($lt_i != "" && $lt_i != ".") {
 
1272
      if ($lt_i == "..") {
 
1273
        lt_count++;
 
1274
      } else {
 
1275
        if (lt_count == 0) {
 
1276
          lt_foo="/" $lt_i lt_foo;
 
1277
        } else {
 
1278
          lt_count--;
 
1279
        }
 
1280
      }
 
1281
    }
 
1282
  }
 
1283
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1284
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1285
}'`
 
1286
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1224
1287
else
1225
1288
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1226
 
fi
 
1289
fi])
1227
1290
need_lib_prefix=unknown
1228
1291
hardcode_into_libs=no
1229
1292
 
1380
1443
  shlibpath_overrides_runpath=yes
1381
1444
  shlibpath_var=DYLD_LIBRARY_PATH
1382
1445
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1383
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1384
 
  if test "$GCC" = yes; then
1385
 
    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"`
1386
 
  else
1387
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1388
 
  fi
 
1446
  m4_if([$1], [],[
 
1447
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1389
1448
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1390
1449
  ;;
1391
1450
 
1402
1461
  dynamic_linker=no
1403
1462
  ;;
1404
1463
 
1405
 
kfreebsd*-gnu)
1406
 
  version_type=linux
1407
 
  need_lib_prefix=no
1408
 
  need_version=no
1409
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1410
 
  soname_spec='${libname}${release}${shared_ext}$major'
1411
 
  shlibpath_var=LD_LIBRARY_PATH
1412
 
  shlibpath_overrides_runpath=no
1413
 
  hardcode_into_libs=yes
1414
 
  dynamic_linker='GNU ld.so'
1415
 
  ;;
1416
 
 
1417
1464
freebsd* | dragonfly*)
1418
1465
  # DragonFly does not have aout.  When/if they implement a new
1419
1466
  # versioning mechanism, adjust this.
1451
1498
    shlibpath_overrides_runpath=no
1452
1499
    hardcode_into_libs=yes
1453
1500
    ;;
1454
 
  freebsd*) # from 4.6 on
 
1501
  *) # from 4.6 on, and DragonFly
1455
1502
    shlibpath_overrides_runpath=yes
1456
1503
    hardcode_into_libs=yes
1457
1504
    ;;
1514
1561
  postinstall_cmds='chmod 555 $lib'
1515
1562
  ;;
1516
1563
 
1517
 
interix3*)
 
1564
interix[[3-9]]*)
1518
1565
  version_type=linux
1519
1566
  need_lib_prefix=no
1520
1567
  need_version=no
1569
1616
  ;;
1570
1617
 
1571
1618
# This must be Linux ELF.
1572
 
linux*)
 
1619
linux* | k*bsd*-gnu)
1573
1620
  version_type=linux
1574
1621
  need_lib_prefix=no
1575
1622
  need_version=no
1582
1629
  # Some rework will be needed to allow for fast_install
1583
1630
  # before this can be enabled.
1584
1631
  hardcode_into_libs=yes
1585
 
 
1586
 
  # find out which ABI we are using
1587
 
  libsuff=
1588
 
  case "$host_cpu" in
1589
 
  x86_64*|s390x*|powerpc64*)
1590
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1591
 
    if AC_TRY_EVAL(ac_compile); then
1592
 
      case `/usr/bin/file conftest.$ac_objext` in
1593
 
      *64-bit*)
1594
 
        libsuff=64
1595
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1596
 
        ;;
1597
 
      esac
1598
 
    fi
1599
 
    rm -rf conftest*
1600
 
    ;;
1601
 
  esac
 
1632
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
1633
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1602
1634
 
1603
1635
  # Append ld.so.conf contents to the search path
1604
1636
  if test -f /etc/ld.so.conf; then
1605
 
    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/^[  ]*//;s/#.*//;/^[^\/]/d;s/[:,   ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1606
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
1637
    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' ' '`
 
1638
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1607
1639
  fi
1608
1640
 
1609
1641
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1615
1647
  dynamic_linker='GNU/Linux ld.so'
1616
1648
  ;;
1617
1649
 
1618
 
knetbsd*-gnu)
1619
 
  version_type=linux
1620
 
  need_lib_prefix=no
1621
 
  need_version=no
1622
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1623
 
  soname_spec='${libname}${release}${shared_ext}$major'
1624
 
  shlibpath_var=LD_LIBRARY_PATH
1625
 
  shlibpath_overrides_runpath=no
1626
 
  hardcode_into_libs=yes
1627
 
  dynamic_linker='GNU ld.so'
1628
 
  ;;
1629
 
 
1630
1650
netbsd*)
1631
1651
  version_type=sunos
1632
1652
  need_lib_prefix=no
1708
1728
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1709
1729
  ;;
1710
1730
 
 
1731
rdos*)
 
1732
  dynamic_linker=no
 
1733
  ;;
 
1734
 
1711
1735
solaris*)
1712
1736
  version_type=linux
1713
1737
  need_lib_prefix=no
1813
1837
# _LT_AC_TAGCONFIG
1814
1838
# ----------------
1815
1839
AC_DEFUN([_LT_AC_TAGCONFIG],
1816
 
[AC_ARG_WITH([tags],
 
1840
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1841
AC_ARG_WITH([tags],
1817
1842
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1818
1843
        [include additional configurations @<:@automatic@:>@])],
1819
1844
    [tagnames="$withval"])
2074
2099
 
2075
2100
# AC_PATH_TOOL_PREFIX
2076
2101
# -------------------
2077
 
# find a file program which can recognise shared library
 
2102
# find a file program which can recognize shared library
2078
2103
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2079
2104
[AC_REQUIRE([AC_PROG_EGREP])dnl
2080
2105
AC_MSG_CHECKING([for $1])
2137
2162
 
2138
2163
# AC_PATH_MAGIC
2139
2164
# -------------
2140
 
# find a file program which can recognise a shared library
 
2165
# find a file program which can recognize a shared library
2141
2166
AC_DEFUN([AC_PATH_MAGIC],
2142
2167
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2143
2168
if test -z "$lt_cv_path_MAGIC_CMD"; then
2284
2309
# how to check for library dependencies
2285
2310
#  -- PORTME fill in with the dynamic library characteristics
2286
2311
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2287
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2312
[AC_CACHE_CHECK([how to recognize dependent libraries],
2288
2313
lt_cv_deplibs_check_method,
2289
2314
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2290
2315
lt_cv_file_magic_test_file=
2323
2348
 
2324
2349
mingw* | pw32*)
2325
2350
  # Base MSYS/MinGW do not provide the 'file' command needed by
2326
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2327
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2328
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2351
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2352
  # unless we find 'file', for example because we are cross-compiling.
 
2353
  if ( file / ) >/dev/null 2>&1; then
 
2354
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2355
    lt_cv_file_magic_cmd='func_win32_libid'
 
2356
  else
 
2357
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2358
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2359
  fi
2329
2360
  ;;
2330
2361
 
2331
2362
darwin* | rhapsody*)
2332
2363
  lt_cv_deplibs_check_method=pass_all
2333
2364
  ;;
2334
2365
 
2335
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2366
freebsd* | dragonfly*)
2336
2367
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2337
2368
    case $host_cpu in
2338
2369
    i*86 )
2370
2401
  esac
2371
2402
  ;;
2372
2403
 
2373
 
interix3*)
 
2404
interix[[3-9]]*)
2374
2405
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2375
2406
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2376
2407
  ;;
2386
2417
  ;;
2387
2418
 
2388
2419
# This must be Linux ELF.
2389
 
linux*)
 
2420
linux* | k*bsd*-gnu)
2390
2421
  lt_cv_deplibs_check_method=pass_all
2391
2422
  ;;
2392
2423
 
2420
2451
  lt_cv_deplibs_check_method=pass_all
2421
2452
  ;;
2422
2453
 
 
2454
rdos*)
 
2455
  lt_cv_deplibs_check_method=pass_all
 
2456
  ;;
 
2457
 
2423
2458
solaris*)
2424
2459
  lt_cv_deplibs_check_method=pass_all
2425
2460
  ;;
2472
2507
  lt_cv_path_NM="$NM"
2473
2508
else
2474
2509
  lt_nm_to_check="${ac_tool_prefix}nm"
2475
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2510
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2476
2511
    lt_nm_to_check="$lt_nm_to_check nm"
2477
2512
  fi
2478
2513
  for lt_tmp_nm in $lt_nm_to_check; do
2688
2723
_LT_AC_TAGVAR(objext, $1)=$objext
2689
2724
 
2690
2725
# Code to be used in simple compile tests
2691
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2726
lt_simple_compile_test_code="int some_variable = 0;"
2692
2727
 
2693
2728
# Code to be used in simple link tests
2694
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2729
lt_simple_link_test_code='int main(){return(0);}'
2695
2730
 
2696
2731
_LT_AC_SYS_COMPILER
2697
2732
 
2793
2828
_LT_AC_TAGVAR(objext, $1)=$objext
2794
2829
 
2795
2830
# Code to be used in simple compile tests
2796
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2831
lt_simple_compile_test_code="int some_variable = 0;"
2797
2832
 
2798
2833
# Code to be used in simple link tests
2799
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2834
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2800
2835
 
2801
2836
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2802
2837
_LT_AC_SYS_COMPILER
2942
2977
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2943
2978
        then
2944
2979
          # We have reworked collect2
2945
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2980
          :
2946
2981
        else
2947
2982
          # We have old collect2
2948
2983
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3101
3136
      case $cc_basename in
3102
3137
        xlc*)
3103
3138
         output_verbose_link_cmd='echo'
3104
 
          _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'
 
3139
          _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'
3105
3140
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3106
3141
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3107
 
          _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}'
 
3142
          _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}'
3108
3143
          _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}'
3109
3144
          ;;
3110
3145
       *)
3138
3173
  freebsd-elf*)
3139
3174
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140
3175
    ;;
3141
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3176
  freebsd* | dragonfly*)
3142
3177
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3143
3178
    # conventions
3144
3179
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3187
3222
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3188
3223
 
3189
3224
      case $host_cpu in
3190
 
      hppa*64*|ia64*)
3191
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3192
 
        ;;
 
3225
      hppa*64*|ia64*) ;;
3193
3226
      *)
3194
3227
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3195
3228
        ;;
3257
3290
        ;;
3258
3291
    esac
3259
3292
    ;;
3260
 
  interix3*)
 
3293
  interix[[3-9]]*)
3261
3294
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3262
3295
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3263
3296
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3297
3330
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3298
3331
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3299
3332
    ;;
3300
 
  linux*)
 
3333
  linux* | k*bsd*-gnu)
3301
3334
    case $cc_basename in
3302
3335
      KCC*)
3303
3336
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3377
3410
        # dependencies.
3378
3411
        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'
3379
3412
        ;;
 
3413
      *)
 
3414
        case `$CC -V 2>&1 | sed 5q` in
 
3415
        *Sun\ C*)
 
3416
          # Sun C++ 5.9
 
3417
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3418
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3419
          _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'
 
3420
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3421
          _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'
 
3422
 
 
3423
          # Not sure whether something based on
 
3424
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3425
          # would be better.
 
3426
          output_verbose_link_cmd='echo'
 
3427
 
 
3428
          # Archives containing C++ object files must be created using
 
3429
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3430
          # necessary to make sure instantiated templates are included
 
3431
          # in the archive.
 
3432
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3433
          ;;
 
3434
        esac
 
3435
        ;;
3380
3436
    esac
3381
3437
    ;;
3382
3438
  lynxos*)
3415
3471
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3416
3472
    ;;
3417
3473
  openbsd*)
3418
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3419
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3420
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3421
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3422
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3423
 
      _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'
3424
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3425
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3474
    if test -f /usr/libexec/ld.so; then
 
3475
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3476
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3477
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3478
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3479
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3480
        _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'
 
3481
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3482
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3483
      fi
 
3484
      output_verbose_link_cmd='echo'
 
3485
    else
 
3486
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3426
3487
    fi
3427
 
    output_verbose_link_cmd='echo'
3428
3488
    ;;
3429
3489
  osf3*)
3430
3490
    case $cc_basename in
3586
3646
        case $host_os in
3587
3647
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3588
3648
          *)
3589
 
            # The C++ compiler is used as linker so we must use $wl
3590
 
            # flag to pass the commands to the underlying system
3591
 
            # linker. We must also pass each convience library through
3592
 
            # to the system linker between allextract/defaultextract.
3593
 
            # The C++ compiler will combine linker options so we
3594
 
            # cannot just pass the convience library names through
3595
 
            # without $wl.
 
3649
            # The compiler driver will combine and reorder linker options,
 
3650
            # but understands `-z linker_flag'.
3596
3651
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3597
 
            _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'
 
3652
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3598
3653
            ;;
3599
3654
        esac
3600
3655
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3641
3696
          fi
3642
3697
 
3643
3698
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3699
          case $host_os in
 
3700
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3701
          *)
 
3702
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3703
            ;;
 
3704
          esac
3644
3705
        fi
3645
3706
        ;;
3646
3707
    esac
3884
3945
# PORTME: override above test on systems where it is broken
3885
3946
ifelse([$1],[CXX],
3886
3947
[case $host_os in
3887
 
interix3*)
 
3948
interix[[3-9]]*)
3888
3949
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3889
3950
  # hack all around it, let's just trust "g++" to DTRT.
3890
3951
  _LT_AC_TAGVAR(predep_objects,$1)=
3892
3953
  _LT_AC_TAGVAR(postdeps,$1)=
3893
3954
  ;;
3894
3955
 
 
3956
linux*)
 
3957
  case `$CC -V 2>&1 | sed 5q` in
 
3958
  *Sun\ C*)
 
3959
    # Sun C++ 5.9
 
3960
    #
 
3961
    # The more standards-conforming stlport4 library is
 
3962
    # incompatible with the Cstd library. Avoid specifying
 
3963
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3964
    # -library=stlport4 depends on it.
 
3965
    case " $CXX $CXXFLAGS " in
 
3966
    *" -library=stlport4 "*)
 
3967
      solaris_use_stlport4=yes
 
3968
      ;;
 
3969
    esac
 
3970
    if test "$solaris_use_stlport4" != yes; then
 
3971
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3972
    fi
 
3973
    ;;
 
3974
  esac
 
3975
  ;;
 
3976
 
3895
3977
solaris*)
3896
3978
  case $cc_basename in
3897
3979
  CC*)
 
3980
    # The more standards-conforming stlport4 library is
 
3981
    # incompatible with the Cstd library. Avoid specifying
 
3982
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3983
    # -library=stlport4 depends on it.
 
3984
    case " $CXX $CXXFLAGS " in
 
3985
    *" -library=stlport4 "*)
 
3986
      solaris_use_stlport4=yes
 
3987
      ;;
 
3988
    esac
 
3989
 
3898
3990
    # Adding this requires a known-good setup of shared libraries for
3899
3991
    # Sun compiler versions before 5.6, else PIC objects from an old
3900
3992
    # archive will be linked into the output, leading to subtle bugs.
3901
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3993
    if test "$solaris_use_stlport4" != yes; then
 
3994
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3995
    fi
3902
3996
    ;;
3903
3997
  esac
3904
3998
  ;;
3947
4041
_LT_AC_TAGVAR(objext, $1)=$objext
3948
4042
 
3949
4043
# Code to be used in simple compile tests
3950
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4044
lt_simple_compile_test_code="\
 
4045
      subroutine t
 
4046
      return
 
4047
      end
 
4048
"
3951
4049
 
3952
4050
# Code to be used in simple link tests
3953
 
lt_simple_link_test_code="      program t\n      end\n"
 
4051
lt_simple_link_test_code="\
 
4052
      program t
 
4053
      end
 
4054
"
3954
4055
 
3955
4056
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3956
4057
_LT_AC_SYS_COMPILER
4029
4130
_LT_AC_TAGVAR(objext, $1)=$objext
4030
4131
 
4031
4132
# Code to be used in simple compile tests
4032
 
lt_simple_compile_test_code="class foo {}\n"
 
4133
lt_simple_compile_test_code="class foo {}"
4033
4134
 
4034
4135
# Code to be used in simple link tests
4035
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4136
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4036
4137
 
4037
4138
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4038
4139
_LT_AC_SYS_COMPILER
4085
4186
_LT_AC_TAGVAR(objext, $1)=$objext
4086
4187
 
4087
4188
# Code to be used in simple compile tests
4088
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4189
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4089
4190
 
4090
4191
# Code to be used in simple link tests
4091
4192
lt_simple_link_test_code="$lt_simple_compile_test_code"
4174
4275
    _LT_AC_TAGVAR(module_cmds, $1) \
4175
4276
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4176
4277
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4278
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4177
4279
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4178
4280
    _LT_AC_TAGVAR(include_expsyms, $1); do
4179
4281
 
4220
4322
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4221
4323
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4222
4324
#
4223
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4325
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4224
4326
# Free Software Foundation, Inc.
4225
4327
#
4226
4328
# This file is part of GNU Libtool:
4545
4647
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4546
4648
 
4547
4649
# Fix the shell variable \$srcfile for the compiler.
4548
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4650
fix_srcfile_path=$lt_fix_srcfile_path
4549
4651
 
4550
4652
# Set to yes if exported symbols are required.
4551
4653
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4628
4730
# ---------------------------------
4629
4731
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4630
4732
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4733
AC_REQUIRE([LT_AC_PROG_SED])
4631
4734
AC_REQUIRE([AC_PROG_NM])
4632
4735
AC_REQUIRE([AC_OBJEXT])
4633
4736
# Check for command to grab the raw symbol name followed by C symbol from nm.
4664
4767
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4665
4768
  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'"
4666
4769
  ;;
4667
 
linux*)
 
4770
linux* | k*bsd*-gnu)
4668
4771
  if test "$host_cpu" = ia64; then
4669
4772
    symcode='[[ABCDGIRSTW]]'
4670
4773
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4854
4957
      # like `-m68040'.
4855
4958
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4856
4959
      ;;
4857
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4960
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4858
4961
      # PIC is the default for these OSes.
4859
4962
      ;;
4860
 
    mingw* | os2* | pw32*)
 
4963
    mingw* | cygwin* | os2* | pw32*)
4861
4964
      # This hack is so that the source file can tell whether it is being
4862
4965
      # built for inclusion in a dll (and should export symbols for example).
 
4966
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4967
      # (--disable-auto-import) libraries
4863
4968
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4864
4969
      ;;
4865
4970
    darwin* | rhapsody*)
4871
4976
      # DJGPP does not support shared libraries at all
4872
4977
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4873
4978
      ;;
4874
 
    interix3*)
 
4979
    interix[[3-9]]*)
4875
4980
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4876
4981
      # Instead, we relocate shared libraries at runtime.
4877
4982
      ;;
4937
5042
            ;;
4938
5043
        esac
4939
5044
        ;;
4940
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5045
      freebsd* | dragonfly*)
4941
5046
        # FreeBSD uses GNU C++
4942
5047
        ;;
4943
5048
      hpux9* | hpux10* | hpux11*)
4980
5085
            ;;
4981
5086
        esac
4982
5087
        ;;
4983
 
      linux*)
 
5088
      linux* | k*bsd*-gnu)
4984
5089
        case $cc_basename in
4985
5090
          KCC*)
4986
5091
            # KAI C++ Compiler
5007
5112
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5008
5113
            ;;
5009
5114
          *)
 
5115
            case `$CC -V 2>&1 | sed 5q` in
 
5116
            *Sun\ C*)
 
5117
              # Sun C++ 5.9
 
5118
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5119
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5120
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5121
              ;;
 
5122
            esac
5010
5123
            ;;
5011
5124
        esac
5012
5125
        ;;
5127
5240
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5128
5241
      ;;
5129
5242
 
5130
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5243
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5131
5244
      # PIC is the default for these OSes.
5132
5245
      ;;
5133
5246
 
5134
 
    mingw* | pw32* | os2*)
 
5247
    mingw* | cygwin* | pw32* | os2*)
5135
5248
      # This hack is so that the source file can tell whether it is being
5136
5249
      # built for inclusion in a dll (and should export symbols for example).
 
5250
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5251
      # (--disable-auto-import) libraries
5137
5252
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5138
5253
      ;;
5139
5254
 
5143
5258
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5144
5259
      ;;
5145
5260
 
5146
 
    interix3*)
 
5261
    interix[[3-9]]*)
5147
5262
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5148
5263
      # Instead, we relocate shared libraries at runtime.
5149
5264
      ;;
5201
5316
       esac
5202
5317
       ;;
5203
5318
 
5204
 
    mingw* | pw32* | os2*)
 
5319
    mingw* | cygwin* | pw32* | os2*)
5205
5320
      # This hack is so that the source file can tell whether it is being
5206
5321
      # built for inclusion in a dll (and should export symbols for example).
5207
5322
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5234
5349
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5235
5350
      ;;
5236
5351
 
5237
 
    linux*)
 
5352
    linux* | k*bsd*-gnu)
5238
5353
      case $cc_basename in
5239
5354
      icc* | ecc*)
5240
5355
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5253
5368
        # All Alpha code is PIC.
5254
5369
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5255
5370
        ;;
 
5371
      *)
 
5372
        case `$CC -V 2>&1 | sed 5q` in
 
5373
        *Sun\ C*)
 
5374
          # Sun C 5.9
 
5375
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5376
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5377
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5378
          ;;
 
5379
        *Sun\ F*)
 
5380
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5381
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5382
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5383
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5384
          ;;
 
5385
        esac
 
5386
        ;;
5256
5387
      esac
5257
5388
      ;;
5258
5389
 
5262
5393
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5263
5394
      ;;
5264
5395
 
 
5396
    rdos*)
 
5397
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5398
      ;;
 
5399
 
5265
5400
    solaris*)
5266
5401
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5267
5402
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5356
5491
# ------------------------------------
5357
5492
# See if the linker supports building shared libraries.
5358
5493
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5359
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5494
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5495
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5360
5496
ifelse([$1],[CXX],[
5361
5497
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5362
5498
  case $host_os in
5373
5509
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5374
5510
  ;;
5375
5511
  cygwin* | mingw*)
5376
 
    _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'
 
5512
    _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'
5377
5513
  ;;
5378
5514
  *)
5379
5515
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5512
5648
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5513
5649
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5514
5650
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5515
 
      _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'
 
5651
      _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'
5516
5652
 
5517
5653
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5518
5654
        _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'
5530
5666
      fi
5531
5667
      ;;
5532
5668
 
5533
 
    interix3*)
 
5669
    interix[[3-9]]*)
5534
5670
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5535
5671
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5536
5672
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5545
5681
      _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'
5546
5682
      ;;
5547
5683
 
5548
 
    linux*)
 
5684
    gnu* | linux* | k*bsd*-gnu)
5549
5685
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5550
5686
        tmp_addflag=
5551
5687
        case $cc_basename,$host_cpu in
5563
5699
        ifc* | ifort*)                  # Intel Fortran compiler
5564
5700
          tmp_addflag=' -nofor_main' ;;
5565
5701
        esac
5566
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5702
        case `$CC -V 2>&1 | sed 5q` in
 
5703
        *Sun\ C*)                       # Sun C 5.9
 
5704
          _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'
 
5705
          tmp_sharedflag='-G' ;;
 
5706
        *Sun\ F*)                       # Sun Fortran 8.3
 
5707
          tmp_sharedflag='-G' ;;
 
5708
        *)
 
5709
          tmp_sharedflag='-shared' ;;
 
5710
        esac
 
5711
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5567
5712
 
5568
5713
        if test $supports_anon_versioning = yes; then
5569
5714
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5570
5715
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5571
5716
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5572
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5717
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5573
5718
        fi
5574
5719
      else
5575
5720
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5609
5754
 
5610
5755
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5611
5756
      case `$LD -v 2>&1` in
5612
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5757
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5613
5758
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5614
5759
        cat <<_LT_EOF 1>&2
5615
5760
 
5728
5873
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5729
5874
          then
5730
5875
          # We have reworked collect2
5731
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5876
          :
5732
5877
          else
5733
5878
          # We have old collect2
5734
5879
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5821
5966
      # The linker will automatically build a .lib file if we build a DLL.
5822
5967
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5823
5968
      # FIXME: Should let the user specify the lib program.
5824
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5969
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5825
5970
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5826
5971
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5827
5972
      ;;
5863
6008
      case $cc_basename in
5864
6009
        xlc*)
5865
6010
         output_verbose_link_cmd='echo'
5866
 
         _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'
 
6011
         _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'
5867
6012
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5868
6013
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5869
 
         _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}'
 
6014
         _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}'
5870
6015
          _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}'
5871
6016
          ;;
5872
6017
       *)
5906
6051
      ;;
5907
6052
 
5908
6053
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5909
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6054
    freebsd* | dragonfly*)
5910
6055
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5911
6056
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5912
6057
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6028
6173
      ;;
6029
6174
 
6030
6175
    openbsd*)
6031
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6032
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6033
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6034
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6035
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6036
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6037
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6176
      if test -f /usr/libexec/ld.so; then
 
6177
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6178
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6179
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6180
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6181
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6182
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6183
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6184
        else
 
6185
          case $host_os in
 
6186
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6187
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6188
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6189
             ;;
 
6190
           *)
 
6191
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6192
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6193
             ;;
 
6194
          esac
 
6195
        fi
6038
6196
      else
6039
 
       case $host_os in
6040
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6041
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6042
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6043
 
           ;;
6044
 
         *)
6045
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6046
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6047
 
           ;;
6048
 
       esac
 
6197
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6049
6198
      fi
6050
6199
      ;;
6051
6200
 
6104
6253
      case $host_os in
6105
6254
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6106
6255
      *)
6107
 
        # The compiler driver will combine linker options so we
6108
 
        # cannot just pass the convience library names through
6109
 
        # without $wl, iff we do not link with $LD.
6110
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6256
        # The compiler driver will combine and reorder linker options,
 
6257
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6258
        # but is careful enough not to reorder.
6111
6259
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6112
 
        case $wlarc in
6113
 
        '')
6114
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6115
 
        *)
6116
 
          _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' ;;
6117
 
        esac ;;
 
6260
        if test "$GCC" = yes; then
 
6261
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6262
        else
 
6263
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6264
        fi
 
6265
        ;;
6118
6266
      esac
6119
6267
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6120
6268
      ;;
6171
6319
      fi
6172
6320
      ;;
6173
6321
 
6174
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6322
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6175
6323
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6176
6324
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6177
6325
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6246
6394
      # to ld, don't add -lc before -lgcc.
6247
6395
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6248
6396
      $rm conftest*
6249
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6397
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6250
6398
 
6251
6399
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6252
6400
        soname=conftest
6349
6497
[AC_CHECK_TOOL(RC, windres, no)
6350
6498
])
6351
6499
 
 
6500
 
 
6501
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6502
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6503
 
 
6504
# _AS_TEST_PREPARE
 
6505
# ----------------
 
6506
m4_ifndef([_AS_TEST_PREPARE],
 
6507
[m4_defun([_AS_TEST_PREPARE],
 
6508
[if test -x / >/dev/null 2>&1; then
 
6509
  as_executable_p='test -x'
 
6510
else
 
6511
  as_executable_p='test -f'
 
6512
fi
 
6513
])])# _AS_TEST_PREPARE
 
6514
 
 
6515
# AS_EXECUTABLE_P
 
6516
# ---------------
 
6517
# Check whether a file is executable.
 
6518
m4_ifndef([AS_EXECUTABLE_P],
 
6519
[m4_defun([AS_EXECUTABLE_P],
 
6520
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6521
$as_executable_p $1[]dnl
 
6522
])])# AS_EXECUTABLE_P
 
6523
 
6352
6524
# NOTE: This macro has been submitted for inclusion into   #
6353
6525
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6354
6526
#  a released version of Autoconf we should remove this    #
6369
6541
  test -z "$as_dir" && as_dir=.
6370
6542
  for lt_ac_prog in sed gsed; do
6371
6543
    for ac_exec_ext in '' $ac_executable_extensions; do
6372
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6544
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6373
6545
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6374
6546
      fi
6375
6547
    done