~ubuntu-branches/ubuntu/karmic/kid3/karmic

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2009-05-20 16:12:30 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090520161230-qetp532r8ydujkz2
Tags: upstream-1.2
Import upstream version 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
983
983
  X_INCLUDES="-I$x_includes"
984
984
fi
985
985
 
986
 
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
 
986
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE || test "$kde_x_libraries" = "/usr/lib"; then
987
987
  X_LDFLAGS=""
988
988
  x_libraries="/usr/lib"; dnl better than nothing :-
989
989
 else
1226
1226
  kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
1227
1227
fi
1228
1228
if test $kde_qtver = 3; then
1229
 
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
 
1229
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3 /usr/lib${kdelibsuff}/qt-3.3"
 
1230
  if test -z "$PKG_CONFIG"; then
 
1231
      AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
1232
  fi
 
1233
  if test "$PKG_CONFIG" != "no" ; then
 
1234
    if $PKG_CONFIG --exists qt-mt ; then
 
1235
       kde_qt_dirs="$kde_qt_dirs `$PKG_CONFIG --variable=prefix qt-mt`"
 
1236
    fi
 
1237
  fi
1230
1238
fi
1231
1239
if test $kde_qtver = 2; then
1232
1240
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
1443
1451
for dir in $kde_qt_dirs; do
1444
1452
   qt_incdirs="$qt_incdirs $dir/include $dir"
1445
1453
done
 
1454
if test -z "$PKG_CONFIG"; then
 
1455
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
1456
fi
 
1457
if test "$PKG_CONFIG" != "no" ; then
 
1458
  if $PKG_CONFIG --exists qt-mt ; then
 
1459
      qt_incdirs="$qt_incdirs `$PKG_CONFIG --variable=includedir qt-mt`"
 
1460
  fi
 
1461
fi
1446
1462
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
1447
1463
if test ! "$ac_qt_includes" = "NO"; then
1448
1464
   qt_incdirs="$ac_qt_includes $qt_incdirs"
1459
1475
 
1460
1476
qt_libdirs=""
1461
1477
for dir in $kde_qt_dirs; do
1462
 
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
 
1478
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir/lib $dir"
1463
1479
done
 
1480
if test -z "$PKG_CONFIG"; then
 
1481
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
1482
fi
 
1483
if test "$PKG_CONFIG" != "no" ; then
 
1484
  if $PKG_CONFIG --exists qt-mt ; then
 
1485
      qt_libdirs="$qt_incdirs `$PKG_CONFIG --variable=libdir qt-mt`"
 
1486
  fi
 
1487
fi
1464
1488
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
1465
1489
if test ! "$ac_qt_libraries" = "NO"; then
1466
1490
  qt_libdir=$ac_qt_libraries
2619
2643
AC_TRY_LINK(dnl
2620
2644
[
2621
2645
#include<zlib.h>
 
2646
#include<string.h>
2622
2647
],
2623
2648
[
2624
2649
  char buf[42];
2626
2651
  /* this would segfault.. but we only link, don't run */
2627
2652
  (void) gzgets(f, buf, sizeof(buf));
2628
2653
 
2629
 
  return (zlibVersion() == ZLIB_VERSION); 
 
2654
  return (strcmp(zlibVersion(), ZLIB_VERSION) == 0);
2630
2655
],
2631
2656
            eval "ac_cv_lib_z='-lz'",
2632
2657
            eval "ac_cv_lib_z=no")
2726
2751
     echo "*** to the full path to pkg-config."
2727
2752
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2728
2753
  else
2729
 
     if !(`$PKG_CONFIG --exists OpenEXR`) ; then
 
2754
     if ! $PKG_CONFIG --exists OpenEXR ; then
2730
2755
        AC_MSG_RESULT(no)
2731
2756
        EXRSTATUS=no
2732
2757
     else
2733
 
        if !(`$PKG_CONFIG --atleast-version="1.1.1" OpenEXR`) ; then
 
2758
        if ! $PKG_CONFIG --atleast-version="1.1.1" OpenEXR ; then
2734
2759
           AC_MSG_RESULT(no)
2735
2760
           EXRSTATUS=old
2736
2761
        else
3186
3211
        case $host in
3187
3212
          *-*-linux-gnu)        
3188
3213
            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3189
 
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
 
3214
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3190
3215
            KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3191
3216
            KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3192
3217
          ;;
5203
5228
      for dir in $javadirs; do
5204
5229
          dnl Check for the java executable
5205
5230
          if test -x "$dir/java"; then
 
5231
              sane_path=$(cd $dir; /bin/pwd)
5206
5232
              dnl And also check for a libjvm.so somewhere under there
5207
5233
              dnl Since we have to go to the parent dir, /usr/bin is excluded, /usr is too big.
5208
 
              if test "$dir" != "/usr/bin"; then
 
5234
              if test "$sane_path" != "/usr/bin"; then
5209
5235
                  libjvmdir=`find $dir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1`
5210
5236
                  if test ! -f $libjvmdir/libjvm.so; then continue; fi
5211
5237
                  jredirs="$jredirs $dir"
5958
5984
  fi
5959
5985
])
5960
5986
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5961
 
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 
5987
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
5962
5988
## Free Software Foundation, Inc.
5963
5989
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5964
5990
##
5966
5992
## unlimited permission to copy and/or distribute it, with or without
5967
5993
## modifications, as long as this notice is preserved.
5968
5994
 
5969
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
5995
# serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
5970
5996
 
5971
5997
 
5972
5998
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
6129
6155
test -z "$ac_objext" && ac_objext=o
6130
6156
 
6131
6157
# Determine commands to create old-style static archives.
6132
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6158
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6133
6159
old_postinstall_cmds='chmod 644 $oldlib'
6134
6160
old_postuninstall_cmds=
6135
6161
 
6216
6242
# Check for compiler boilerplate output or warnings with
6217
6243
# the simple compiler test code.
6218
6244
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
6219
 
[ac_outfile=conftest.$ac_objext
6220
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6245
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6246
ac_outfile=conftest.$ac_objext
 
6247
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6221
6248
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6222
6249
_lt_compiler_boilerplate=`cat conftest.err`
6223
6250
$rm conftest*
6229
6256
# Check for linker boilerplate output or warnings with
6230
6257
# the simple link test code.
6231
6258
AC_DEFUN([_LT_LINKER_BOILERPLATE],
6232
 
[ac_outfile=conftest.$ac_objext
6233
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6259
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6260
ac_outfile=conftest.$ac_objext
 
6261
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6234
6262
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6235
6263
_lt_linker_boilerplate=`cat conftest.err`
6236
6264
$rm conftest*
6246
6274
# If we don't find anything, use the default library path according
6247
6275
# to the aix ld manual.
6248
6276
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
6249
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
6250
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6251
 
}'`
 
6277
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6278
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
6279
lt_aix_libpath_sed='
 
6280
    /Import File Strings/,/^$/ {
 
6281
        /^0/ {
 
6282
            s/^0  *\(.*\)$/\1/
 
6283
            p
 
6284
        }
 
6285
    }'
 
6286
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6252
6287
# Check for a 64-bit object if we didn't find anything.
6253
 
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; }
6254
 
}'`; fi],[])
 
6288
if test -z "$aix_libpath"; then
 
6289
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
6290
fi],[])
6255
6291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6256
6292
])# _LT_AC_SYS_LIBPATH_AIX
6257
6293
 
6482
6518
  rm -rf conftest*
6483
6519
  ;;
6484
6520
 
6485
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
6521
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6522
s390*-*linux*|sparc*-*linux*)
6486
6523
  # Find out which ABI we are using.
6487
6524
  echo 'int i;' > conftest.$ac_ext
6488
6525
  if AC_TRY_EVAL(ac_compile); then
6489
6526
    case `/usr/bin/file conftest.o` in
6490
6527
    *32-bit*)
6491
6528
      case $host in
 
6529
        x86_64-*kfreebsd*-gnu)
 
6530
          LD="${LD-ld} -m elf_i386_fbsd"
 
6531
          ;;
6492
6532
        x86_64-*linux*)
6493
6533
          LD="${LD-ld} -m elf_i386"
6494
6534
          ;;
6505
6545
      ;;
6506
6546
    *64-bit*)
6507
6547
      case $host in
 
6548
        x86_64-*kfreebsd*-gnu)
 
6549
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
6550
          ;;
6508
6551
        x86_64-*linux*)
6509
6552
          LD="${LD-ld} -m elf_x86_64"
6510
6553
          ;;
6576
6619
AC_CACHE_CHECK([$1], [$2],
6577
6620
  [$2=no
6578
6621
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
6579
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6622
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6580
6623
   lt_compiler_flag="$3"
6581
6624
   # Insert the option either (1) after the last *FLAGS variable, or
6582
6625
   # (2) before a word containing "conftest.", or (3) at the end.
6617
6660
# ------------------------------------------------------------
6618
6661
# Check whether the given compiler option works
6619
6662
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
6620
 
[AC_CACHE_CHECK([$1], [$2],
 
6663
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6664
AC_CACHE_CHECK([$1], [$2],
6621
6665
  [$2=no
6622
6666
   save_LDFLAGS="$LDFLAGS"
6623
6667
   LDFLAGS="$LDFLAGS $3"
6624
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6668
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6625
6669
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6626
6670
     # The linker can only warn and ignore the option if not recognized
6627
6671
     # So say no if there are warnings
6735
6779
    fi
6736
6780
    ;;
6737
6781
  *)
6738
 
    # If test is not a shell built-in, we'll probably end up computing a
6739
 
    # maximum length that is only half of the actual maximum length, but
6740
 
    # we can't tell.
6741
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6742
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6782
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6783
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6784
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6785
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6786
    else
 
6787
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6788
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
6743
6789
               = "XX$teststring") >/dev/null 2>&1 &&
6744
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6745
 
            lt_cv_sys_max_cmd_len=$new_result &&
6746
 
            test $i != 17 # 1/2 MB should be enough
6747
 
    do
6748
 
      i=`expr $i + 1`
6749
 
      teststring=$teststring$teststring
6750
 
    done
6751
 
    teststring=
6752
 
    # Add a significant safety factor because C++ compilers can tack on massive
6753
 
    # amounts of additional arguments before passing them to the linker.
6754
 
    # It appears as though 1/2 is a usable value.
6755
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6790
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6791
              lt_cv_sys_max_cmd_len=$new_result &&
 
6792
              test $i != 17 # 1/2 MB should be enough
 
6793
      do
 
6794
        i=`expr $i + 1`
 
6795
        teststring=$teststring$teststring
 
6796
      done
 
6797
      teststring=
 
6798
      # Add a significant safety factor because C++ compilers can tack on massive
 
6799
      # amounts of additional arguments before passing them to the linker.
 
6800
      # It appears as though 1/2 is a usable value.
 
6801
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6802
    fi
6756
6803
    ;;
6757
6804
  esac
6758
6805
])
6979
7026
# ---------------------------------
6980
7027
# Check to see if options -c and -o are simultaneously supported by compiler
6981
7028
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
6982
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
7029
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
7030
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6983
7031
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
6984
7032
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
6985
7033
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
6987
7035
   mkdir conftest
6988
7036
   cd conftest
6989
7037
   mkdir out
6990
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7038
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6991
7039
 
6992
7040
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6993
7041
   # Insert the option either (1) after the last *FLAGS variable, or
7127
7175
   darwin*)
7128
7176
       if test -n "$STRIP" ; then
7129
7177
         striplib="$STRIP -x"
 
7178
         old_striplib="$STRIP -S"
7130
7179
         AC_MSG_RESULT([yes])
7131
7180
       else
7132
7181
  AC_MSG_RESULT([no])
7144
7193
# -----------------------------
7145
7194
# PORTME Fill in your ld.so characteristics
7146
7195
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
7147
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
7196
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
7197
AC_MSG_CHECKING([dynamic linker characteristics])
7148
7198
library_names_spec=
7149
7199
libname_spec='lib$name'
7150
7200
soname_spec=
7158
7208
version_type=none
7159
7209
dynamic_linker="$host_os ld.so"
7160
7210
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7211
m4_if($1,[],[
7161
7212
if test "$GCC" = yes; then
7162
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7163
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7213
  case $host_os in
 
7214
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
7215
    *) lt_awk_arg="/^libraries:/" ;;
 
7216
  esac
 
7217
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7218
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7164
7219
    # if the path contains ";" then we assume it to be the separator
7165
7220
    # otherwise default to the standard path separator (i.e. ":") - it is
7166
7221
    # assumed that no part of a normal pathname contains ";" but that should
7167
7222
    # okay in the real world where ";" in dirpaths is itself problematic.
7168
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7223
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7169
7224
  else
7170
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7225
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7171
7226
  fi
 
7227
  # Ok, now we have the path, separated by spaces, we can step through it
 
7228
  # and add multilib dir if necessary.
 
7229
  lt_tmp_lt_search_path_spec=
 
7230
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
7231
  for lt_sys_path in $lt_search_path_spec; do
 
7232
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
7233
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
7234
    else
 
7235
      test -d "$lt_sys_path" && \
 
7236
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
7237
    fi
 
7238
  done
 
7239
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
7240
BEGIN {RS=" "; FS="/|\n";} {
 
7241
  lt_foo="";
 
7242
  lt_count=0;
 
7243
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
7244
    if ($lt_i != "" && $lt_i != ".") {
 
7245
      if ($lt_i == "..") {
 
7246
        lt_count++;
 
7247
      } else {
 
7248
        if (lt_count == 0) {
 
7249
          lt_foo="/" $lt_i lt_foo;
 
7250
        } else {
 
7251
          lt_count--;
 
7252
        }
 
7253
      }
 
7254
    }
 
7255
  }
 
7256
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
7257
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
7258
}'`
 
7259
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
7172
7260
else
7173
7261
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7174
 
fi
 
7262
fi])
7175
7263
need_lib_prefix=unknown
7176
7264
hardcode_into_libs=no
7177
7265
 
7328
7416
  shlibpath_overrides_runpath=yes
7329
7417
  shlibpath_var=DYLD_LIBRARY_PATH
7330
7418
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7331
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7332
 
  if test "$GCC" = yes; then
7333
 
    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"`
7334
 
  else
7335
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7336
 
  fi
 
7419
  m4_if([$1], [],[
 
7420
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
7337
7421
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7338
7422
  ;;
7339
7423
 
7387
7471
    shlibpath_overrides_runpath=no
7388
7472
    hardcode_into_libs=yes
7389
7473
    ;;
7390
 
  freebsd*) # from 4.6 on
 
7474
  *) # from 4.6 on, and DragonFly
7391
7475
    shlibpath_overrides_runpath=yes
7392
7476
    hardcode_into_libs=yes
7393
7477
    ;;
7450
7534
  postinstall_cmds='chmod 555 $lib'
7451
7535
  ;;
7452
7536
 
7453
 
interix3*)
 
7537
interix[[3-9]]*)
7454
7538
  version_type=linux
7455
7539
  need_lib_prefix=no
7456
7540
  need_version=no
7521
7605
 
7522
7606
  # Append ld.so.conf contents to the search path
7523
7607
  if test -f /etc/ld.so.conf; then
7524
 
    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' ' '`
 
7608
    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' ' '`
7525
7609
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7526
7610
  fi
7527
7611
 
7627
7711
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7628
7712
  ;;
7629
7713
 
 
7714
rdos*)
 
7715
  dynamic_linker=no
 
7716
  ;;
 
7717
 
7630
7718
solaris*)
7631
7719
  version_type=linux
7632
7720
  need_lib_prefix=no
7732
7820
# _LT_AC_TAGCONFIG
7733
7821
# ----------------
7734
7822
AC_DEFUN([_LT_AC_TAGCONFIG],
7735
 
[AC_ARG_WITH([tags],
 
7823
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
7824
AC_ARG_WITH([tags],
7736
7825
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
7737
7826
        [include additional configurations @<:@automatic@:>@])],
7738
7827
    [tagnames="$withval"])
7993
8082
 
7994
8083
# AC_PATH_TOOL_PREFIX
7995
8084
# -------------------
7996
 
# find a file program which can recognise shared library
 
8085
# find a file program which can recognize shared library
7997
8086
AC_DEFUN([AC_PATH_TOOL_PREFIX],
7998
8087
[AC_REQUIRE([AC_PROG_EGREP])dnl
7999
8088
AC_MSG_CHECKING([for $1])
8056
8145
 
8057
8146
# AC_PATH_MAGIC
8058
8147
# -------------
8059
 
# find a file program which can recognise a shared library
 
8148
# find a file program which can recognize a shared library
8060
8149
AC_DEFUN([AC_PATH_MAGIC],
8061
8150
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
8062
8151
if test -z "$lt_cv_path_MAGIC_CMD"; then
8203
8292
# how to check for library dependencies
8204
8293
#  -- PORTME fill in with the dynamic library characteristics
8205
8294
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
8206
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
8295
[AC_CACHE_CHECK([how to recognize dependent libraries],
8207
8296
lt_cv_deplibs_check_method,
8208
8297
[lt_cv_file_magic_cmd='$MAGIC_CMD'
8209
8298
lt_cv_file_magic_test_file=
8242
8331
 
8243
8332
mingw* | pw32*)
8244
8333
  # Base MSYS/MinGW do not provide the 'file' command needed by
8245
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
8246
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8247
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
8334
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
8335
  # unless we find 'file', for example because we are cross-compiling.
 
8336
  if ( file / ) >/dev/null 2>&1; then
 
8337
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
8338
    lt_cv_file_magic_cmd='func_win32_libid'
 
8339
  else
 
8340
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
8341
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
8342
  fi
8248
8343
  ;;
8249
8344
 
8250
8345
darwin* | rhapsody*)
8289
8384
  esac
8290
8385
  ;;
8291
8386
 
8292
 
interix3*)
 
8387
interix[[3-9]]*)
8293
8388
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8294
8389
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
8295
8390
  ;;
8339
8434
  lt_cv_deplibs_check_method=pass_all
8340
8435
  ;;
8341
8436
 
 
8437
rdos*)
 
8438
  lt_cv_deplibs_check_method=pass_all
 
8439
  ;;
 
8440
 
8342
8441
solaris*)
8343
8442
  lt_cv_deplibs_check_method=pass_all
8344
8443
  ;;
8391
8490
  lt_cv_path_NM="$NM"
8392
8491
else
8393
8492
  lt_nm_to_check="${ac_tool_prefix}nm"
8394
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
8493
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8395
8494
    lt_nm_to_check="$lt_nm_to_check nm"
8396
8495
  fi
8397
8496
  for lt_tmp_nm in $lt_nm_to_check; do
8607
8706
_LT_AC_TAGVAR(objext, $1)=$objext
8608
8707
 
8609
8708
# Code to be used in simple compile tests
8610
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8709
lt_simple_compile_test_code="int some_variable = 0;"
8611
8710
 
8612
8711
# Code to be used in simple link tests
8613
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
8712
lt_simple_link_test_code='int main(){return(0);}'
8614
8713
 
8615
8714
_LT_AC_SYS_COMPILER
8616
8715
 
8716
8815
_LT_AC_TAGVAR(objext, $1)=$objext
8717
8816
 
8718
8817
# Code to be used in simple compile tests
8719
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8818
lt_simple_compile_test_code="int some_variable = 0;"
8720
8819
 
8721
8820
# Code to be used in simple link tests
8722
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
8821
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
8723
8822
 
8724
8823
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8725
8824
_LT_AC_SYS_COMPILER
8865
8964
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8866
8965
        then
8867
8966
          # We have reworked collect2
8868
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
8967
          :
8869
8968
        else
8870
8969
          # We have old collect2
8871
8970
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
9024
9123
      case $cc_basename in
9025
9124
        xlc*)
9026
9125
         output_verbose_link_cmd='echo'
9027
 
          _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'
 
9126
          _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'
9028
9127
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9029
9128
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9030
 
          _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}'
 
9129
          _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}'
9031
9130
          _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}'
9032
9131
          ;;
9033
9132
       *)
9110
9209
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9111
9210
 
9112
9211
      case $host_cpu in
9113
 
      hppa*64*|ia64*)
9114
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
9115
 
        ;;
 
9212
      hppa*64*|ia64*) ;;
9116
9213
      *)
9117
9214
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9118
9215
        ;;
9180
9277
        ;;
9181
9278
    esac
9182
9279
    ;;
9183
 
  interix3*)
 
9280
  interix[[3-9]]*)
9184
9281
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
9185
9282
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9186
9283
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9300
9397
        # dependencies.
9301
9398
        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'
9302
9399
        ;;
 
9400
      *)
 
9401
        case `$CC -V 2>&1 | sed 5q` in
 
9402
        *Sun\ C*)
 
9403
          # Sun C++ 5.9
 
9404
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
9405
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9406
          _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'
 
9407
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
9408
          _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'
 
9409
 
 
9410
          # Not sure whether something based on
 
9411
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
9412
          # would be better.
 
9413
          output_verbose_link_cmd='echo'
 
9414
 
 
9415
          # Archives containing C++ object files must be created using
 
9416
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
9417
          # necessary to make sure instantiated templates are included
 
9418
          # in the archive.
 
9419
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
9420
          ;;
 
9421
        esac
 
9422
        ;;
9303
9423
    esac
9304
9424
    ;;
9305
9425
  lynxos*)
9338
9458
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
9339
9459
    ;;
9340
9460
  openbsd*)
9341
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9342
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9343
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9344
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9345
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9346
 
      _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'
9347
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9348
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9461
    if test -f /usr/libexec/ld.so; then
 
9462
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
9463
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
9464
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9465
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
9466
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9467
        _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'
 
9468
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
9469
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9470
      fi
 
9471
      output_verbose_link_cmd='echo'
 
9472
    else
 
9473
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
9349
9474
    fi
9350
 
    output_verbose_link_cmd='echo'
9351
9475
    ;;
9352
9476
  osf3*)
9353
9477
    case $cc_basename in
9509
9633
        case $host_os in
9510
9634
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9511
9635
          *)
9512
 
            # The C++ compiler is used as linker so we must use $wl
9513
 
            # flag to pass the commands to the underlying system
9514
 
            # linker. We must also pass each convience library through
9515
 
            # to the system linker between allextract/defaultextract.
9516
 
            # The C++ compiler will combine linker options so we
9517
 
            # cannot just pass the convience library names through
9518
 
            # without $wl.
 
9636
            # The compiler driver will combine and reorder linker options,
 
9637
            # but understands `-z linker_flag'.
9519
9638
            # Supported since Solaris 2.6 (maybe 2.5.1?)
9520
 
            _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'
 
9639
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
9521
9640
            ;;
9522
9641
        esac
9523
9642
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9564
9683
          fi
9565
9684
 
9566
9685
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
9686
          case $host_os in
 
9687
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
9688
          *)
 
9689
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9690
            ;;
 
9691
          esac
9567
9692
        fi
9568
9693
        ;;
9569
9694
    esac
9811
9936
# PORTME: override above test on systems where it is broken
9812
9937
ifelse([$1],[CXX],
9813
9938
[case $host_os in
9814
 
interix3*)
 
9939
interix[[3-9]]*)
9815
9940
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
9816
9941
  # hack all around it, let's just trust "g++" to DTRT.
9817
9942
  _LT_AC_TAGVAR(predep_objects,$1)=
9819
9944
  _LT_AC_TAGVAR(postdeps,$1)=
9820
9945
  ;;
9821
9946
 
 
9947
linux*)
 
9948
  case `$CC -V 2>&1 | sed 5q` in
 
9949
  *Sun\ C*)
 
9950
    # Sun C++ 5.9
 
9951
    #
 
9952
    # The more standards-conforming stlport4 library is
 
9953
    # incompatible with the Cstd library. Avoid specifying
 
9954
    # it if it's in CXXFLAGS. Ignore libCrun as
 
9955
    # -library=stlport4 depends on it.
 
9956
    case " $CXX $CXXFLAGS " in
 
9957
    *" -library=stlport4 "*)
 
9958
      solaris_use_stlport4=yes
 
9959
      ;;
 
9960
    esac
 
9961
    if test "$solaris_use_stlport4" != yes; then
 
9962
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
9963
    fi
 
9964
    ;;
 
9965
  esac
 
9966
  ;;
 
9967
 
9822
9968
solaris*)
9823
9969
  case $cc_basename in
9824
9970
  CC*)
 
9971
    # The more standards-conforming stlport4 library is
 
9972
    # incompatible with the Cstd library. Avoid specifying
 
9973
    # it if it's in CXXFLAGS. Ignore libCrun as
 
9974
    # -library=stlport4 depends on it.
 
9975
    case " $CXX $CXXFLAGS " in
 
9976
    *" -library=stlport4 "*)
 
9977
      solaris_use_stlport4=yes
 
9978
      ;;
 
9979
    esac
 
9980
 
9825
9981
    # Adding this requires a known-good setup of shared libraries for
9826
9982
    # Sun compiler versions before 5.6, else PIC objects from an old
9827
9983
    # archive will be linked into the output, leading to subtle bugs.
9828
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
9984
    if test "$solaris_use_stlport4" != yes; then
 
9985
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
9986
    fi
9829
9987
    ;;
9830
9988
  esac
9831
9989
  ;;
9874
10032
_LT_AC_TAGVAR(objext, $1)=$objext
9875
10033
 
9876
10034
# Code to be used in simple compile tests
9877
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
10035
lt_simple_compile_test_code="\
 
10036
      subroutine t
 
10037
      return
 
10038
      end
 
10039
"
9878
10040
 
9879
10041
# Code to be used in simple link tests
9880
 
lt_simple_link_test_code="      program t\n      end\n"
 
10042
lt_simple_link_test_code="\
 
10043
      program t
 
10044
      end
 
10045
"
9881
10046
 
9882
10047
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9883
10048
_LT_AC_SYS_COMPILER
9956
10121
_LT_AC_TAGVAR(objext, $1)=$objext
9957
10122
 
9958
10123
# Code to be used in simple compile tests
9959
 
lt_simple_compile_test_code="class foo {}\n"
 
10124
lt_simple_compile_test_code="class foo {}"
9960
10125
 
9961
10126
# Code to be used in simple link tests
9962
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
10127
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9963
10128
 
9964
10129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9965
10130
_LT_AC_SYS_COMPILER
10016
10181
_LT_AC_TAGVAR(objext, $1)=$objext
10017
10182
 
10018
10183
# Code to be used in simple compile tests
10019
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
10184
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
10020
10185
 
10021
10186
# Code to be used in simple link tests
10022
10187
lt_simple_link_test_code="$lt_simple_compile_test_code"
10105
10270
    _LT_AC_TAGVAR(module_cmds, $1) \
10106
10271
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
10107
10272
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
10273
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
10108
10274
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
10109
10275
    _LT_AC_TAGVAR(include_expsyms, $1); do
10110
10276
 
10151
10317
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10152
10318
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10153
10319
#
10154
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10320
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10155
10321
# Free Software Foundation, Inc.
10156
10322
#
10157
10323
# This file is part of GNU Libtool:
10476
10642
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10477
10643
 
10478
10644
# Fix the shell variable \$srcfile for the compiler.
10479
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
10645
fix_srcfile_path=$lt_fix_srcfile_path
10480
10646
 
10481
10647
# Set to yes if exported symbols are required.
10482
10648
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
10559
10725
# ---------------------------------
10560
10726
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
10561
10727
[AC_REQUIRE([AC_CANONICAL_HOST])
 
10728
AC_REQUIRE([LT_AC_PROG_SED])
10562
10729
AC_REQUIRE([AC_PROG_NM])
10563
10730
AC_REQUIRE([AC_OBJEXT])
10564
10731
# Check for command to grab the raw symbol name followed by C symbol from nm.
10785
10952
      # like `-m68040'.
10786
10953
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
10787
10954
      ;;
10788
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10955
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10789
10956
      # PIC is the default for these OSes.
10790
10957
      ;;
10791
 
    mingw* | os2* | pw32*)
 
10958
    mingw* | cygwin* | os2* | pw32*)
10792
10959
      # This hack is so that the source file can tell whether it is being
10793
10960
      # built for inclusion in a dll (and should export symbols for example).
 
10961
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
10962
      # (--disable-auto-import) libraries
10794
10963
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10795
10964
      ;;
10796
10965
    darwin* | rhapsody*)
10802
10971
      # DJGPP does not support shared libraries at all
10803
10972
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10804
10973
      ;;
10805
 
    interix3*)
 
10974
    interix[[3-9]]*)
10806
10975
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10807
10976
      # Instead, we relocate shared libraries at runtime.
10808
10977
      ;;
10938
11107
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10939
11108
            ;;
10940
11109
          *)
 
11110
            case `$CC -V 2>&1 | sed 5q` in
 
11111
            *Sun\ C*)
 
11112
              # Sun C++ 5.9
 
11113
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
11114
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
11115
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
11116
              ;;
 
11117
            esac
10941
11118
            ;;
10942
11119
        esac
10943
11120
        ;;
11058
11235
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
11059
11236
      ;;
11060
11237
 
11061
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11238
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11062
11239
      # PIC is the default for these OSes.
11063
11240
      ;;
11064
11241
 
11065
 
    mingw* | pw32* | os2*)
 
11242
    mingw* | cygwin* | pw32* | os2*)
11066
11243
      # This hack is so that the source file can tell whether it is being
11067
11244
      # built for inclusion in a dll (and should export symbols for example).
 
11245
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
11246
      # (--disable-auto-import) libraries
11068
11247
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11069
11248
      ;;
11070
11249
 
11074
11253
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
11075
11254
      ;;
11076
11255
 
11077
 
    interix3*)
 
11256
    interix[[3-9]]*)
11078
11257
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11079
11258
      # Instead, we relocate shared libraries at runtime.
11080
11259
      ;;
11132
11311
       esac
11133
11312
       ;;
11134
11313
 
11135
 
    mingw* | pw32* | os2*)
 
11314
    mingw* | cygwin* | pw32* | os2*)
11136
11315
      # This hack is so that the source file can tell whether it is being
11137
11316
      # built for inclusion in a dll (and should export symbols for example).
11138
11317
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11184
11363
        # All Alpha code is PIC.
11185
11364
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11186
11365
        ;;
 
11366
      *)
 
11367
        case `$CC -V 2>&1 | sed 5q` in
 
11368
        *Sun\ C*)
 
11369
          # Sun C 5.9
 
11370
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
11371
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
11372
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
11373
          ;;
 
11374
        *Sun\ F*)
 
11375
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
11376
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
11377
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
11378
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
11379
          ;;
 
11380
        esac
 
11381
        ;;
11187
11382
      esac
11188
11383
      ;;
11189
11384
 
11193
11388
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11194
11389
      ;;
11195
11390
 
 
11391
    rdos*)
 
11392
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
11393
      ;;
 
11394
 
11196
11395
    solaris*)
11197
11396
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11198
11397
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11287
11486
# ------------------------------------
11288
11487
# See if the linker supports building shared libraries.
11289
11488
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
11290
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
11489
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
11490
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
11291
11491
ifelse([$1],[CXX],[
11292
11492
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11293
11493
  case $host_os in
11304
11504
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11305
11505
  ;;
11306
11506
  cygwin* | mingw*)
11307
 
    _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'
 
11507
    _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'
11308
11508
  ;;
11309
11509
  linux* | k*bsd*-gnu)
11310
11510
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
11446
11646
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11447
11647
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
11448
11648
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11449
 
      _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'
 
11649
      _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'
11450
11650
 
11451
11651
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11452
11652
        _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'
11464
11664
      fi
11465
11665
      ;;
11466
11666
 
11467
 
    interix3*)
 
11667
    interix[[3-9]]*)
11468
11668
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
11469
11669
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11470
11670
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11479
11679
      _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'
11480
11680
      ;;
11481
11681
 
11482
 
    linux* | k*bsd*-gnu)
 
11682
    gnu* | linux* | k*bsd*-gnu)
11483
11683
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11484
11684
        tmp_addflag=
11485
11685
        case $cc_basename,$host_cpu in
11497
11697
        ifc* | ifort*)                  # Intel Fortran compiler
11498
11698
          tmp_addflag=' -nofor_main' ;;
11499
11699
        esac
11500
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11700
        case `$CC -V 2>&1 | sed 5q` in
 
11701
        *Sun\ C*)                       # Sun C 5.9
 
11702
          _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'
 
11703
          tmp_sharedflag='-G' ;;
 
11704
        *Sun\ F*)                       # Sun Fortran 8.3
 
11705
          tmp_sharedflag='-G' ;;
 
11706
        *)
 
11707
          tmp_sharedflag='-shared' ;;
 
11708
        esac
 
11709
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501
11710
 
11502
11711
        if test $supports_anon_versioning = yes; then
11503
11712
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
11504
11713
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11505
11714
  $echo "local: *; };" >> $output_objdir/$libname.ver~
11506
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
11715
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11507
11716
        fi
11508
11717
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
11509
11718
      else
11544
11753
 
11545
11754
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11546
11755
      case `$LD -v 2>&1` in
11547
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
11756
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
11548
11757
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11549
11758
        cat <<_LT_EOF 1>&2
11550
11759
 
11663
11872
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11664
11873
          then
11665
11874
          # We have reworked collect2
11666
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
11875
          :
11667
11876
          else
11668
11877
          # We have old collect2
11669
11878
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11756
11965
      # The linker will automatically build a .lib file if we build a DLL.
11757
11966
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
11758
11967
      # FIXME: Should let the user specify the lib program.
11759
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
11968
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
11760
11969
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
11761
11970
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11762
11971
      ;;
11798
12007
      case $cc_basename in
11799
12008
        xlc*)
11800
12009
         output_verbose_link_cmd='echo'
11801
 
         _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'
 
12010
         _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'
11802
12011
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11803
12012
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11804
 
         _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}'
 
12013
         _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}'
11805
12014
          _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}'
11806
12015
          ;;
11807
12016
       *)
11963
12172
      ;;
11964
12173
 
11965
12174
    openbsd*)
11966
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11967
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11968
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11969
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11970
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11971
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11972
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
12175
      if test -f /usr/libexec/ld.so; then
 
12176
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
12177
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
12178
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12179
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
12180
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
12181
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
12182
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
12183
        else
 
12184
          case $host_os in
 
12185
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
12186
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
12187
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
12188
             ;;
 
12189
           *)
 
12190
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
12191
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
12192
             ;;
 
12193
          esac
 
12194
        fi
11973
12195
      else
11974
 
       case $host_os in
11975
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
11976
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11977
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11978
 
           ;;
11979
 
         *)
11980
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11981
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11982
 
           ;;
11983
 
       esac
 
12196
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11984
12197
      fi
11985
12198
      ;;
11986
12199
 
12039
12252
      case $host_os in
12040
12253
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
12041
12254
      *)
12042
 
        # The compiler driver will combine linker options so we
12043
 
        # cannot just pass the convience library names through
12044
 
        # without $wl, iff we do not link with $LD.
12045
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
12255
        # The compiler driver will combine and reorder linker options,
 
12256
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
12257
        # but is careful enough not to reorder.
12046
12258
        # Supported since Solaris 2.6 (maybe 2.5.1?)
12047
 
        case $wlarc in
12048
 
        '')
12049
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
12050
 
        *)
12051
 
          _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' ;;
12052
 
        esac ;;
 
12259
        if test "$GCC" = yes; then
 
12260
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12261
        else
 
12262
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
12263
        fi
 
12264
        ;;
12053
12265
      esac
12054
12266
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12055
12267
      ;;
12106
12318
      fi
12107
12319
      ;;
12108
12320
 
12109
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
12321
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
12110
12322
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12111
12323
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12112
12324
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12181
12393
      # to ld, don't add -lc before -lgcc.
12182
12394
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
12183
12395
      $rm conftest*
12184
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12396
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12185
12397
 
12186
12398
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
12187
12399
        soname=conftest
12284
12496
[AC_CHECK_TOOL(RC, windres, no)
12285
12497
])
12286
12498
 
 
12499
 
 
12500
# Cheap backport of AS_EXECUTABLE_P and required macros
 
12501
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
12502
 
 
12503
# _AS_TEST_PREPARE
 
12504
# ----------------
 
12505
m4_ifndef([_AS_TEST_PREPARE],
 
12506
[m4_defun([_AS_TEST_PREPARE],
 
12507
[if test -x / >/dev/null 2>&1; then
 
12508
  as_executable_p='test -x'
 
12509
else
 
12510
  as_executable_p='test -f'
 
12511
fi
 
12512
])])# _AS_TEST_PREPARE
 
12513
 
 
12514
# AS_EXECUTABLE_P
 
12515
# ---------------
 
12516
# Check whether a file is executable.
 
12517
m4_ifndef([AS_EXECUTABLE_P],
 
12518
[m4_defun([AS_EXECUTABLE_P],
 
12519
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
12520
$as_executable_p $1[]dnl
 
12521
])])# AS_EXECUTABLE_P
 
12522
 
12287
12523
############################################################
12288
12524
# NOTE: This macro has been submitted for inclusion into   #
12289
12525
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
12306
12542
  test -z "$as_dir" && as_dir=.
12307
12543
  for lt_ac_prog in sed gsed; do
12308
12544
    for ac_exec_ext in '' $ac_executable_extensions; do
12309
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
12545
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
12310
12546
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12311
12547
      fi
12312
12548
    done
12313
12549
  done
12314
12550
done
 
12551
IFS=$as_save_IFS
12315
12552
lt_ac_max=0
12316
12553
lt_ac_count=0
12317
12554
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12344
12581
done
12345
12582
])
12346
12583
SED=$lt_cv_path_SED
 
12584
AC_SUBST([SED])
12347
12585
AC_MSG_RESULT([$SED])
12348
12586
])
12349
12587