~ubuntu-branches/ubuntu/oneiric/ldm/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Stéphane Graber
  • Date: 2011-05-30 20:11:00 UTC
  • mfrom: (1.1.38 upstream)
  • Revision ID: stgraber@ubuntu.com-20110530201100-prjtvtl3qw03kize
New upstream release 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
 
[m4_warning([this file was generated for autoconf 2.67.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
649
649
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
650
650
#
651
651
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
652
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
652
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
653
#                 Inc.
653
654
#   Written by Gordon Matzigkeit, 1996
654
655
#
655
656
# This file is free software; the Free Software Foundation gives
658
659
 
659
660
m4_define([_LT_COPYING], [dnl
660
661
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
661
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
662
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
663
#                 Inc.
662
664
#   Written by Gordon Matzigkeit, 1996
663
665
#
664
666
#   This file is part of GNU Libtool.
685
687
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
686
688
])
687
689
 
688
 
# serial 56 LT_INIT
 
690
# serial 57 LT_INIT
689
691
 
690
692
 
691
693
# LT_PREREQ(VERSION)
714
716
# ------------------
715
717
AC_DEFUN([LT_INIT],
716
718
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
719
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
717
720
AC_BEFORE([$0], [LT_LANG])dnl
718
721
AC_BEFORE([$0], [LT_OUTPUT])dnl
719
722
AC_BEFORE([$0], [LTDL_INIT])dnl
730
733
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
731
734
m4_require([_LT_PROG_LTMAIN])dnl
732
735
 
 
736
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
737
 
733
738
dnl Parse OPTIONS
734
739
_LT_SET_OPTIONS([$0], [$1])
735
740
 
766
771
    *) break;;
767
772
  esac
768
773
done
769
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
774
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
770
775
])
771
776
 
772
777
 
786
791
m4_defun([_LT_SETUP],
787
792
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
788
793
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
794
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
795
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
796
 
789
797
_LT_DECL([], [host_alias], [0], [The host system])dnl
790
798
_LT_DECL([], [host], [0])dnl
791
799
_LT_DECL([], [host_os], [0])dnl
808
816
dnl
809
817
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
810
818
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
819
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
811
820
m4_require([_LT_CMD_RELOAD])dnl
812
821
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
822
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
813
823
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
814
824
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
825
m4_require([_LT_WITH_SYSROOT])dnl
815
826
 
816
827
_LT_CONFIG_LIBTOOL_INIT([
817
828
# See if we are running on zsh, and set the options which allow our
827
838
_LT_CHECK_OBJDIR
828
839
 
829
840
m4_require([_LT_TAG_COMPILER])dnl
830
 
_LT_PROG_ECHO_BACKSLASH
831
841
 
832
842
case $host_os in
833
843
aix3*)
841
851
  ;;
842
852
esac
843
853
 
844
 
# Sed substitution that helps us do robust quoting.  It backslashifies
845
 
# metacharacters that are still active within double-quoted strings.
846
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
847
 
 
848
 
# Same as above, but do not quote variable references.
849
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
850
 
 
851
 
# Sed substitution to delay expansion of an escaped shell variable in a
852
 
# double_quote_subst'ed string.
853
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
854
 
 
855
 
# Sed substitution to delay expansion of an escaped single quote.
856
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
857
 
 
858
 
# Sed substitution to avoid accidental globbing in evaled expressions
859
 
no_glob_subst='s/\*/\\\*/g'
860
 
 
861
854
# Global variables:
862
855
ofile=libtool
863
856
can_build_shared=yes
898
891
])# _LT_SETUP
899
892
 
900
893
 
 
894
# _LT_PREPARE_SED_QUOTE_VARS
 
895
# --------------------------
 
896
# Define a few sed substitution that help us do robust quoting.
 
897
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
898
[# Backslashify metacharacters that are still active within
 
899
# double-quoted strings.
 
900
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
901
 
 
902
# Same as above, but do not quote variable references.
 
903
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
904
 
 
905
# Sed substitution to delay expansion of an escaped shell variable in a
 
906
# double_quote_subst'ed string.
 
907
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
908
 
 
909
# Sed substitution to delay expansion of an escaped single quote.
 
910
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
911
 
 
912
# Sed substitution to avoid accidental globbing in evaled expressions
 
913
no_glob_subst='s/\*/\\\*/g'
 
914
])
 
915
 
901
916
# _LT_PROG_LTMAIN
902
917
# ---------------
903
918
# Note that this code is called both from `configure', and `config.status'
1050
1065
# declaration there will have the same value as in `configure'.  VARNAME
1051
1066
# must have a single quote delimited value for this to work.
1052
1067
m4_define([_LT_CONFIG_STATUS_DECLARE],
1053
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1068
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1054
1069
 
1055
1070
 
1056
1071
# _LT_CONFIG_STATUS_DECLARATIONS
1060
1075
# embedded single quotes properly.  In configure, this macro expands
1061
1076
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1062
1077
#
1063
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1078
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1064
1079
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1065
1080
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1066
1081
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1159
1174
LTCFLAGS='$LTCFLAGS'
1160
1175
compiler='$compiler_DEFAULT'
1161
1176
 
 
1177
# A function that is used when there is no print builtin or printf.
 
1178
func_fallback_echo ()
 
1179
{
 
1180
  eval 'cat <<_LTECHO_EOF
 
1181
\$[]1
 
1182
_LTECHO_EOF'
 
1183
}
 
1184
 
1162
1185
# Quote evaled strings.
1163
1186
for var in lt_decl_all_varnames([[ \
1164
1187
]], lt_decl_quote_varnames); do
1165
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1188
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1166
1189
    *[[\\\\\\\`\\"\\\$]]*)
1167
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1190
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1168
1191
      ;;
1169
1192
    *)
1170
1193
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1175
1198
# Double-quote double-evaled strings.
1176
1199
for var in lt_decl_all_varnames([[ \
1177
1200
]], lt_decl_dquote_varnames); do
1178
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1201
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1179
1202
    *[[\\\\\\\`\\"\\\$]]*)
1180
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1203
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1181
1204
      ;;
1182
1205
    *)
1183
1206
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1185
1208
    esac
1186
1209
done
1187
1210
 
1188
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1189
 
case \$lt_ECHO in
1190
 
*'\\\[$]0 --fallback-echo"')dnl "
1191
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1192
 
  ;;
1193
 
esac
1194
 
 
1195
1211
_LT_OUTPUT_LIBTOOL_INIT
1196
1212
])
1197
1213
 
 
1214
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
1215
# ------------------------------------
 
1216
# Generate a child script FILE with all initialization necessary to
 
1217
# reuse the environment learned by the parent script, and make the
 
1218
# file executable.  If COMMENT is supplied, it is inserted after the
 
1219
# `#!' sequence but before initialization text begins.  After this
 
1220
# macro, additional text can be appended to FILE to form the body of
 
1221
# the child script.  The macro ends with non-zero status if the
 
1222
# file could not be fully written (such as if the disk is full).
 
1223
m4_ifdef([AS_INIT_GENERATED],
 
1224
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
1225
[m4_defun([_LT_GENERATED_FILE_INIT],
 
1226
[m4_require([AS_PREPARE])]dnl
 
1227
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
1228
[lt_write_fail=0
 
1229
cat >$1 <<_ASEOF || lt_write_fail=1
 
1230
#! $SHELL
 
1231
# Generated by $as_me.
 
1232
$2
 
1233
SHELL=\${CONFIG_SHELL-$SHELL}
 
1234
export SHELL
 
1235
_ASEOF
 
1236
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
1237
AS_SHELL_SANITIZE
 
1238
_AS_PREPARE
 
1239
exec AS_MESSAGE_FD>&1
 
1240
_ASEOF
 
1241
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
1242
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1198
1243
 
1199
1244
# LT_OUTPUT
1200
1245
# ---------
1204
1249
AC_DEFUN([LT_OUTPUT],
1205
1250
[: ${CONFIG_LT=./config.lt}
1206
1251
AC_MSG_NOTICE([creating $CONFIG_LT])
1207
 
cat >"$CONFIG_LT" <<_LTEOF
1208
 
#! $SHELL
1209
 
# Generated by $as_me.
1210
 
# Run this file to recreate a libtool stub with the current configuration.
 
1252
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
1253
[# Run this file to recreate a libtool stub with the current configuration.])
1211
1254
 
 
1255
cat >>"$CONFIG_LT" <<\_LTEOF
1212
1256
lt_cl_silent=false
1213
 
SHELL=\${CONFIG_SHELL-$SHELL}
1214
 
_LTEOF
1215
 
 
1216
 
cat >>"$CONFIG_LT" <<\_LTEOF
1217
 
AS_SHELL_SANITIZE
1218
 
_AS_PREPARE
1219
 
 
1220
 
exec AS_MESSAGE_FD>&1
1221
1257
exec AS_MESSAGE_LOG_FD>>config.log
1222
1258
{
1223
1259
  echo
1243
1279
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1244
1280
configured by $[0], generated by m4_PACKAGE_STRING.
1245
1281
 
1246
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
1282
Copyright (C) 2010 Free Software Foundation, Inc.
1247
1283
This config.lt script is free software; the Free Software Foundation
1248
1284
gives unlimited permision to copy, distribute and modify it."
1249
1285
 
1288
1324
# appending to config.log, which fails on DOS, as config.log is still kept
1289
1325
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1290
1326
# config.log, so it can be properly (re)opened and appended to by config.lt.
1291
 
if test "$no_create" != yes; then
1292
 
  lt_cl_success=:
1293
 
  test "$silent" = yes &&
1294
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1295
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1296
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1297
 
  exec AS_MESSAGE_LOG_FD>>config.log
1298
 
  $lt_cl_success || AS_EXIT(1)
1299
 
fi
 
1327
lt_cl_success=:
 
1328
test "$silent" = yes &&
 
1329
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
1330
exec AS_MESSAGE_LOG_FD>/dev/null
 
1331
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1332
exec AS_MESSAGE_LOG_FD>>config.log
 
1333
$lt_cl_success || AS_EXIT(1)
1300
1334
])# LT_OUTPUT
1301
1335
 
1302
1336
 
1359
1393
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1360
1394
  # text mode, it properly converts lines to CR/LF.  This bash problem
1361
1395
  # is reportedly fixed, but why not run on old versions too?
1362
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1363
 
    || (rm -f "$cfgfile"; exit 1)
1364
 
 
1365
 
  _LT_PROG_XSI_SHELLFNS
1366
 
 
1367
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1368
 
    || (rm -f "$cfgfile"; exit 1)
1369
 
 
1370
 
  mv -f "$cfgfile" "$ofile" ||
 
1396
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1397
     || (rm -f "$cfgfile"; exit 1)
 
1398
 
 
1399
  _LT_PROG_REPLACE_SHELLFNS
 
1400
 
 
1401
   mv -f "$cfgfile" "$ofile" ||
1371
1402
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1372
1403
  chmod +x "$ofile"
1373
1404
],
1473
1504
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1474
1505
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1475
1506
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1507
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1476
1508
dnl aclocal-1.4 backwards compatibility:
1477
1509
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1478
1510
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1479
1511
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1480
1512
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1513
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1481
1514
 
1482
1515
 
1483
1516
# _LT_TAG_COMPILER
1582
1615
        [lt_cv_ld_exported_symbols_list=no])
1583
1616
        LDFLAGS="$save_LDFLAGS"
1584
1617
    ])
 
1618
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
1619
      [lt_cv_ld_force_load=no
 
1620
      cat > conftest.c << _LT_EOF
 
1621
int forced_loaded() { return 2;}
 
1622
_LT_EOF
 
1623
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
1624
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
1625
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
1626
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1627
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1628
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1629
      cat > conftest.c << _LT_EOF
 
1630
int main() { return 0;}
 
1631
_LT_EOF
 
1632
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1633
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1634
      _lt_result=$?
 
1635
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
1636
        lt_cv_ld_force_load=yes
 
1637
      else
 
1638
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1639
      fi
 
1640
        rm -f conftest.err libconftest.a conftest conftest.c
 
1641
        rm -rf conftest.dSYM
 
1642
    ])
1585
1643
    case $host_os in
1586
1644
    rhapsody* | darwin1.[[012]])
1587
1645
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1609
1667
    else
1610
1668
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1611
1669
    fi
1612
 
    if test "$DSYMUTIL" != ":"; then
 
1670
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1613
1671
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1614
1672
    else
1615
1673
      _lt_dsymutil=
1629
1687
  _LT_TAGVAR(hardcode_direct, $1)=no
1630
1688
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1631
1689
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1632
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1690
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1691
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
1692
  else
 
1693
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1694
  fi
1633
1695
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1634
1696
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1635
1697
  case $cc_basename in
1637
1699
     *) _lt_dar_can_shared=$GCC ;;
1638
1700
  esac
1639
1701
  if test "$_lt_dar_can_shared" = "yes"; then
1640
 
    output_verbose_link_cmd=echo
 
1702
    output_verbose_link_cmd=func_echo_all
1641
1703
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1642
1704
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1643
1705
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1653
1715
  fi
1654
1716
])
1655
1717
 
1656
 
# _LT_SYS_MODULE_PATH_AIX
1657
 
# -----------------------
 
1718
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1719
# ----------------------------------
1658
1720
# Links a minimal program and checks the executable
1659
1721
# for the system default hardcoded library path. In most cases,
1660
1722
# this is /usr/lib:/lib, but when the MPI compilers are used
1661
1723
# the location of the communication and MPI libs are included too.
1662
1724
# If we don't find anything, use the default library path according
1663
1725
# to the aix ld manual.
 
1726
# Store the results from the different compilers for each TAGNAME.
 
1727
# Allow to override them for all tags through lt_cv_aix_libpath.
1664
1728
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1665
1729
[m4_require([_LT_DECL_SED])dnl
1666
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1667
 
lt_aix_libpath_sed='
1668
 
    /Import File Strings/,/^$/ {
1669
 
        /^0/ {
1670
 
            s/^0  *\(.*\)$/\1/
1671
 
            p
1672
 
        }
1673
 
    }'
1674
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1675
 
# Check for a 64-bit object if we didn't find anything.
1676
 
if test -z "$aix_libpath"; then
1677
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1678
 
fi],[])
1679
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1730
if test "${lt_cv_aix_libpath+set}" = set; then
 
1731
  aix_libpath=$lt_cv_aix_libpath
 
1732
else
 
1733
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1734
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1735
  lt_aix_libpath_sed='[
 
1736
      /Import File Strings/,/^$/ {
 
1737
          /^0/ {
 
1738
              s/^0  *\([^ ]*\) *$/\1/
 
1739
              p
 
1740
          }
 
1741
      }]'
 
1742
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1743
  # Check for a 64-bit object if we didn't find anything.
 
1744
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1745
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1746
  fi],[])
 
1747
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1748
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1749
  fi
 
1750
  ])
 
1751
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1752
fi
1680
1753
])# _LT_SYS_MODULE_PATH_AIX
1681
1754
 
1682
1755
 
1683
1756
# _LT_SHELL_INIT(ARG)
1684
1757
# -------------------
1685
1758
m4_define([_LT_SHELL_INIT],
1686
 
[ifdef([AC_DIVERSION_NOTICE],
1687
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1688
 
         [AC_DIVERT_PUSH(NOTICE)])
1689
 
$1
1690
 
AC_DIVERT_POP
1691
 
])# _LT_SHELL_INIT
 
1759
[m4_divert_text([M4SH-INIT], [$1
 
1760
])])# _LT_SHELL_INIT
 
1761
 
1692
1762
 
1693
1763
 
1694
1764
# _LT_PROG_ECHO_BACKSLASH
1695
1765
# -----------------------
1696
 
# Add some code to the start of the generated configure script which
1697
 
# will find an echo command which doesn't interpret backslashes.
 
1766
# Find how we can fake an echo command that does not interpret backslash.
 
1767
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1768
# of the generated configure script which will find a shell with a builtin
 
1769
# printf (which we can use as an echo command).
1698
1770
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1699
 
[_LT_SHELL_INIT([
1700
 
# Check that we are running under the correct shell.
1701
 
SHELL=${CONFIG_SHELL-/bin/sh}
1702
 
 
1703
 
case X$lt_ECHO in
1704
 
X*--fallback-echo)
1705
 
  # Remove one level of quotation (which was required for Make).
1706
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1707
 
  ;;
 
1771
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1772
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1773
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1774
 
 
1775
AC_MSG_CHECKING([how to print strings])
 
1776
# Test print first, because it will be a builtin if present.
 
1777
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
1778
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1779
  ECHO='print -r --'
 
1780
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1781
  ECHO='printf %s\n'
 
1782
else
 
1783
  # Use this function as a fallback that always works.
 
1784
  func_fallback_echo ()
 
1785
  {
 
1786
    eval 'cat <<_LTECHO_EOF
 
1787
$[]1
 
1788
_LTECHO_EOF'
 
1789
  }
 
1790
  ECHO='func_fallback_echo'
 
1791
fi
 
1792
 
 
1793
# func_echo_all arg...
 
1794
# Invoke $ECHO with all args, space-separated.
 
1795
func_echo_all ()
 
1796
{
 
1797
    $ECHO "$*" 
 
1798
}
 
1799
 
 
1800
case "$ECHO" in
 
1801
  printf*) AC_MSG_RESULT([printf]) ;;
 
1802
  print*) AC_MSG_RESULT([print -r]) ;;
 
1803
  *) AC_MSG_RESULT([cat]) ;;
1708
1804
esac
1709
1805
 
1710
 
ECHO=${lt_ECHO-echo}
1711
 
if test "X[$]1" = X--no-reexec; then
1712
 
  # Discard the --no-reexec flag, and continue.
1713
 
  shift
1714
 
elif test "X[$]1" = X--fallback-echo; then
1715
 
  # Avoid inline document here, it may be left over
1716
 
  :
1717
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1718
 
  # Yippee, $ECHO works!
1719
 
  :
1720
 
else
1721
 
  # Restart under the correct shell.
1722
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1723
 
fi
1724
 
 
1725
 
if test "X[$]1" = X--fallback-echo; then
1726
 
  # used as fallback echo
1727
 
  shift
1728
 
  cat <<_LT_EOF
1729
 
[$]*
1730
 
_LT_EOF
1731
 
  exit 0
1732
 
fi
1733
 
 
1734
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1735
 
# if CDPATH is set.
1736
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1737
 
 
1738
 
if test -z "$lt_ECHO"; then
1739
 
  if test "X${echo_test_string+set}" != Xset; then
1740
 
    # find a string as large as possible, as long as the shell can cope with it
1741
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1742
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1743
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1744
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1745
 
      then
1746
 
        break
1747
 
      fi
1748
 
    done
1749
 
  fi
1750
 
 
1751
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1752
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1753
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1754
 
    :
1755
 
  else
1756
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1757
 
    # backslashes.  This makes it impossible to quote backslashes using
1758
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1759
 
    #
1760
 
    # So, first we look for a working echo in the user's PATH.
1761
 
 
1762
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1763
 
    for dir in $PATH /usr/ucb; do
1764
 
      IFS="$lt_save_ifs"
1765
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1766
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1767
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1768
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1769
 
        ECHO="$dir/echo"
1770
 
        break
1771
 
      fi
1772
 
    done
1773
 
    IFS="$lt_save_ifs"
1774
 
 
1775
 
    if test "X$ECHO" = Xecho; then
1776
 
      # We didn't find a better echo, so look for alternatives.
1777
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1778
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1779
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1780
 
        # This shell has a builtin print -r that does the trick.
1781
 
        ECHO='print -r'
1782
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1783
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1784
 
        # If we have ksh, try running configure again with it.
1785
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1786
 
        export ORIGINAL_CONFIG_SHELL
1787
 
        CONFIG_SHELL=/bin/ksh
1788
 
        export CONFIG_SHELL
1789
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1790
 
      else
1791
 
        # Try using printf.
1792
 
        ECHO='printf %s\n'
1793
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1794
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1795
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1796
 
          # Cool, printf works
1797
 
          :
1798
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1799
 
             test "X$echo_testing_string" = 'X\t' &&
1800
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1801
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1802
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1803
 
          export CONFIG_SHELL
1804
 
          SHELL="$CONFIG_SHELL"
1805
 
          export SHELL
1806
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1807
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1808
 
             test "X$echo_testing_string" = 'X\t' &&
1809
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1810
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1811
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1812
 
        else
1813
 
          # maybe with a smaller string...
1814
 
          prev=:
1815
 
 
1816
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1817
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1818
 
            then
1819
 
              break
1820
 
            fi
1821
 
            prev="$cmd"
1822
 
          done
1823
 
 
1824
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1825
 
            echo_test_string=`eval $prev`
1826
 
            export echo_test_string
1827
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1828
 
          else
1829
 
            # Oops.  We lost completely, so just stick with echo.
1830
 
            ECHO=echo
1831
 
          fi
1832
 
        fi
1833
 
      fi
1834
 
    fi
1835
 
  fi
1836
 
fi
1837
 
 
1838
 
# Copy echo and quote the copy suitably for passing to libtool from
1839
 
# the Makefile, instead of quoting the original, which is used later.
1840
 
lt_ECHO=$ECHO
1841
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1842
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1843
 
fi
1844
 
 
1845
 
AC_SUBST(lt_ECHO)
1846
 
])
 
1806
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1807
[_AS_DETECT_SUGGESTED([
 
1808
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1809
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1810
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1811
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1812
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1813
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1814
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1815
 
1847
1816
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1848
 
_LT_DECL([], [ECHO], [1],
1849
 
    [An echo program that does not interpret backslashes])
 
1817
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1850
1818
])# _LT_PROG_ECHO_BACKSLASH
1851
1819
 
1852
1820
 
 
1821
# _LT_WITH_SYSROOT
 
1822
# ----------------
 
1823
AC_DEFUN([_LT_WITH_SYSROOT],
 
1824
[AC_MSG_CHECKING([for sysroot])
 
1825
AC_ARG_WITH([sysroot],
 
1826
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1827
                        (or the compiler's sysroot if not specified).],
 
1828
[], [with_sysroot=no])
 
1829
 
 
1830
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1831
dnl in case the user passed a directory name.
 
1832
lt_sysroot=
 
1833
case ${with_sysroot} in #(
 
1834
 yes)
 
1835
   if test "$GCC" = yes; then
 
1836
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1837
   fi
 
1838
   ;; #(
 
1839
 /*)
 
1840
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1841
   ;; #(
 
1842
 no|'')
 
1843
   ;; #(
 
1844
 *)
 
1845
   AC_MSG_RESULT([${with_sysroot}])
 
1846
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1847
   ;;
 
1848
esac
 
1849
 
 
1850
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1851
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1852
[dependent libraries, and in which our libraries should be installed.])])
 
1853
 
1853
1854
# _LT_ENABLE_LOCK
1854
1855
# ---------------
1855
1856
m4_defun([_LT_ENABLE_LOCK],
1878
1879
  ;;
1879
1880
*-*-irix6*)
1880
1881
  # Find out which ABI we are using.
1881
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1882
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1882
1883
  if AC_TRY_EVAL(ac_compile); then
1883
1884
    if test "$lt_cv_prog_gnu_ld" = yes; then
1884
1885
      case `/usr/bin/file conftest.$ac_objext` in
1996
1997
])# _LT_ENABLE_LOCK
1997
1998
 
1998
1999
 
 
2000
# _LT_PROG_AR
 
2001
# -----------
 
2002
m4_defun([_LT_PROG_AR],
 
2003
[AC_CHECK_TOOLS(AR, [ar], false)
 
2004
: ${AR=ar}
 
2005
: ${AR_FLAGS=cru}
 
2006
_LT_DECL([], [AR], [1], [The archiver])
 
2007
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2008
 
 
2009
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2010
  [lt_cv_ar_at_file=no
 
2011
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2012
     [echo conftest.$ac_objext > conftest.lst
 
2013
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2014
      AC_TRY_EVAL([lt_ar_try])
 
2015
      if test "$ac_status" -eq 0; then
 
2016
        # Ensure the archiver fails upon bogus file names.
 
2017
        rm -f conftest.$ac_objext libconftest.a
 
2018
        AC_TRY_EVAL([lt_ar_try])
 
2019
        if test "$ac_status" -ne 0; then
 
2020
          lt_cv_ar_at_file=@
 
2021
        fi
 
2022
      fi
 
2023
      rm -f conftest.* libconftest.a
 
2024
     ])
 
2025
  ])
 
2026
 
 
2027
if test "x$lt_cv_ar_at_file" = xno; then
 
2028
  archiver_list_spec=
 
2029
else
 
2030
  archiver_list_spec=$lt_cv_ar_at_file
 
2031
fi
 
2032
_LT_DECL([], [archiver_list_spec], [1],
 
2033
  [How to feed a file listing to the archiver])
 
2034
])# _LT_PROG_AR
 
2035
 
 
2036
 
1999
2037
# _LT_CMD_OLD_ARCHIVE
2000
2038
# -------------------
2001
2039
m4_defun([_LT_CMD_OLD_ARCHIVE],
2002
 
[AC_CHECK_TOOL(AR, ar, false)
2003
 
test -z "$AR" && AR=ar
2004
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2005
 
_LT_DECL([], [AR], [1], [The archiver])
2006
 
_LT_DECL([], [AR_FLAGS], [1])
 
2040
[_LT_PROG_AR
2007
2041
 
2008
2042
AC_CHECK_TOOL(STRIP, strip, :)
2009
2043
test -z "$STRIP" && STRIP=:
2030
2064
  esac
2031
2065
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2032
2066
fi
 
2067
 
 
2068
case $host_os in
 
2069
  darwin*)
 
2070
    lock_old_archive_extraction=yes ;;
 
2071
  *)
 
2072
    lock_old_archive_extraction=no ;;
 
2073
esac
2033
2074
_LT_DECL([], [old_postinstall_cmds], [2])
2034
2075
_LT_DECL([], [old_postuninstall_cmds], [2])
2035
2076
_LT_TAGDECL([], [old_archive_cmds], [2],
2036
2077
    [Commands used to build an old-style archive])
 
2078
_LT_DECL([], [lock_old_archive_extraction], [0],
 
2079
    [Whether to use a lock for old archive extraction])
2037
2080
])# _LT_CMD_OLD_ARCHIVE
2038
2081
 
2039
2082
 
2058
2101
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2059
2102
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2060
2103
   -e 's:$: $lt_compiler_flag:'`
2061
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2104
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2062
2105
   (eval "$lt_compile" 2>conftest.err)
2063
2106
   ac_status=$?
2064
2107
   cat conftest.err >&AS_MESSAGE_LOG_FD
2065
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2108
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2066
2109
   if (exit $ac_status) && test -s "$ac_outfile"; then
2067
2110
     # The compiler can only warn and ignore the option if not recognized
2068
2111
     # So say no if there are warnings other than the usual output.
2069
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2112
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2070
2113
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2071
2114
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2072
2115
       $2=yes
2106
2149
     if test -s conftest.err; then
2107
2150
       # Append any errors to the config.log.
2108
2151
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2109
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2152
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2110
2153
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2111
2154
       if diff conftest.exp conftest.er2 >/dev/null; then
2112
2155
         $2=yes
2169
2212
    lt_cv_sys_max_cmd_len=8192;
2170
2213
    ;;
2171
2214
 
 
2215
  mint*)
 
2216
    # On MiNT this can take a long time and run out of memory.
 
2217
    lt_cv_sys_max_cmd_len=8192;
 
2218
    ;;
 
2219
 
2172
2220
  amigaos*)
2173
2221
    # On AmigaOS with pdksh, this test takes hours, literally.
2174
2222
    # So we just punt and use a minimum line length of 8192.
2233
2281
      # If test is not a shell built-in, we'll probably end up computing a
2234
2282
      # maximum length that is only half of the actual maximum length, but
2235
2283
      # we can't tell.
2236
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2237
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
2284
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
2285
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2238
2286
              test $i != 17 # 1/2 MB should be enough
2239
2287
      do
2240
2288
        i=`expr $i + 1`
2285
2333
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2286
2334
  lt_status=$lt_dlunknown
2287
2335
  cat > conftest.$ac_ext <<_LT_EOF
2288
 
[#line __oline__ "configure"
 
2336
[#line $LINENO "configure"
2289
2337
#include "confdefs.h"
2290
2338
 
2291
2339
#if HAVE_DLFCN_H
2326
2374
#  endif
2327
2375
#endif
2328
2376
 
2329
 
void fnord() { int i=42;}
 
2377
/* When -fvisbility=hidden is used, assume the code has been annotated
 
2378
   correspondingly for the symbols needed.  */
 
2379
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
2380
int fnord () __attribute__((visibility("default")));
 
2381
#endif
 
2382
 
 
2383
int fnord () { return 42; }
2330
2384
int main ()
2331
2385
{
2332
2386
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2335
2389
  if (self)
2336
2390
    {
2337
2391
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2338
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
2392
      else
 
2393
        {
 
2394
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
2395
          else puts (dlerror ());
 
2396
        }
2339
2397
      /* dlclose (self); */
2340
2398
    }
2341
2399
  else
2511
2569
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2512
2570
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2513
2571
   -e 's:$: $lt_compiler_flag:'`
2514
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2572
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2515
2573
   (eval "$lt_compile" 2>out/conftest.err)
2516
2574
   ac_status=$?
2517
2575
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2518
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2576
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2519
2577
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2520
2578
   then
2521
2579
     # The compiler can only warn and ignore the option if not recognized
2522
2580
     # So say no if there are warnings
2523
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2581
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2524
2582
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2525
2583
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2526
2584
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2679
2737
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2680
2738
m4_require([_LT_DECL_OBJDUMP])dnl
2681
2739
m4_require([_LT_DECL_SED])dnl
 
2740
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2682
2741
AC_MSG_CHECKING([dynamic linker characteristics])
2683
2742
m4_if([$1],
2684
2743
        [], [
2687
2746
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2688
2747
    *) lt_awk_arg="/^libraries:/" ;;
2689
2748
  esac
2690
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2691
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2749
  case $host_os in
 
2750
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2751
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2752
  esac
 
2753
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2754
  case $lt_search_path_spec in
 
2755
  *\;*)
2692
2756
    # if the path contains ";" then we assume it to be the separator
2693
2757
    # otherwise default to the standard path separator (i.e. ":") - it is
2694
2758
    # assumed that no part of a normal pathname contains ";" but that should
2695
2759
    # okay in the real world where ";" in dirpaths is itself problematic.
2696
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2697
 
  else
2698
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2699
 
  fi
 
2760
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2761
    ;;
 
2762
  *)
 
2763
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2764
    ;;
 
2765
  esac
2700
2766
  # Ok, now we have the path, separated by spaces, we can step through it
2701
2767
  # and add multilib dir if necessary.
2702
2768
  lt_tmp_lt_search_path_spec=
2709
2775
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2710
2776
    fi
2711
2777
  done
2712
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2778
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2713
2779
BEGIN {RS=" "; FS="/|\n";} {
2714
2780
  lt_foo="";
2715
2781
  lt_count=0;
2729
2795
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2730
2796
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2731
2797
}'`
2732
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2798
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2799
  # for these hosts.
 
2800
  case $host_os in
 
2801
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2802
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2803
  esac
 
2804
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2733
2805
else
2734
2806
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2735
2807
fi])
2817
2889
  m68k)
2818
2890
    library_names_spec='$libname.ixlibrary $libname.a'
2819
2891
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2820
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
2892
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2821
2893
    ;;
2822
2894
  esac
2823
2895
  ;;
2848
2920
  need_version=no
2849
2921
  need_lib_prefix=no
2850
2922
 
2851
 
  case $GCC,$host_os in
2852
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2923
  case $GCC,$cc_basename in
 
2924
  yes,*)
 
2925
    # gcc
2853
2926
    library_names_spec='$libname.dll.a'
2854
2927
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2855
2928
    postinstall_cmds='base_file=`basename \${file}`~
2870
2943
    cygwin*)
2871
2944
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2872
2945
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2873
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2946
m4_if([$1], [],[
 
2947
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2874
2948
      ;;
2875
2949
    mingw* | cegcc*)
2876
2950
      # MinGW DLLs use traditional 'lib' prefix
2877
2951
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2878
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2879
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2880
 
        # It is most probably a Windows format PATH printed by
2881
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2882
 
        # path with ; separators, and with drive letters. We can handle the
2883
 
        # drive letters (cygwin fileutils understands them), so leave them,
2884
 
        # especially as we might pass files found there to a mingw objdump,
2885
 
        # which wouldn't understand a cygwinified path. Ahh.
2886
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2887
 
      else
2888
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2889
 
      fi
2890
2952
      ;;
2891
2953
    pw32*)
2892
2954
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2893
2955
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2894
2956
      ;;
2895
2957
    esac
 
2958
    dynamic_linker='Win32 ld.exe'
 
2959
    ;;
 
2960
 
 
2961
  *,cl*)
 
2962
    # Native MSVC
 
2963
    libname_spec='$name'
 
2964
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2965
    library_names_spec='${libname}.dll.lib'
 
2966
 
 
2967
    case $build_os in
 
2968
    mingw*)
 
2969
      sys_lib_search_path_spec=
 
2970
      lt_save_ifs=$IFS
 
2971
      IFS=';'
 
2972
      for lt_path in $LIB
 
2973
      do
 
2974
        IFS=$lt_save_ifs
 
2975
        # Let DOS variable expansion print the short 8.3 style file name.
 
2976
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
2977
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
2978
      done
 
2979
      IFS=$lt_save_ifs
 
2980
      # Convert to MSYS style.
 
2981
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
2982
      ;;
 
2983
    cygwin*)
 
2984
      # Convert to unix form, then to dos form, then back to unix form
 
2985
      # but this time dos style (no spaces!) so that the unix form looks
 
2986
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
2987
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
2988
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
2989
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2990
      ;;
 
2991
    *)
 
2992
      sys_lib_search_path_spec="$LIB"
 
2993
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2994
        # It is most probably a Windows format PATH.
 
2995
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2996
      else
 
2997
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2998
      fi
 
2999
      # FIXME: find the short name or the path components, as spaces are
 
3000
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3001
      ;;
 
3002
    esac
 
3003
 
 
3004
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3005
    postinstall_cmds='base_file=`basename \${file}`~
 
3006
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3007
      dldir=$destdir/`dirname \$dlpath`~
 
3008
      test -d \$dldir || mkdir -p \$dldir~
 
3009
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3010
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3011
      dlpath=$dir/\$dldll~
 
3012
       $RM \$dlpath'
 
3013
    shlibpath_overrides_runpath=yes
 
3014
    dynamic_linker='Win32 link.exe'
2896
3015
    ;;
2897
3016
 
2898
3017
  *)
 
3018
    # Assume MSVC wrapper
2899
3019
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3020
    dynamic_linker='Win32 ld.exe'
2900
3021
    ;;
2901
3022
  esac
2902
 
  dynamic_linker='Win32 ld.exe'
2903
3023
  # FIXME: first we should search . and the directory the executable is in
2904
3024
  shlibpath_var=PATH
2905
3025
  ;;
2983
3103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2984
3104
  soname_spec='${libname}${release}${shared_ext}$major'
2985
3105
  shlibpath_var=LD_LIBRARY_PATH
 
3106
  shlibpath_overrides_runpath=no
 
3107
  hardcode_into_libs=yes
 
3108
  ;;
 
3109
 
 
3110
haiku*)
 
3111
  version_type=linux
 
3112
  need_lib_prefix=no
 
3113
  need_version=no
 
3114
  dynamic_linker="$host_os runtime_loader"
 
3115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
3116
  soname_spec='${libname}${release}${shared_ext}$major'
 
3117
  shlibpath_var=LIBRARY_PATH
 
3118
  shlibpath_overrides_runpath=yes
 
3119
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2986
3120
  hardcode_into_libs=yes
2987
3121
  ;;
2988
3122
 
3028
3162
    soname_spec='${libname}${release}${shared_ext}$major'
3029
3163
    ;;
3030
3164
  esac
3031
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
3165
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3032
3166
  postinstall_cmds='chmod 555 $lib'
 
3167
  # or fails outright, so override atomically:
 
3168
  install_override_mode=555
3033
3169
  ;;
3034
3170
 
3035
3171
interix[[3-9]]*)
3096
3232
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3097
3233
  shlibpath_var=LD_LIBRARY_PATH
3098
3234
  shlibpath_overrides_runpath=no
 
3235
 
3099
3236
  # Some binutils ld are patched to set DT_RUNPATH
3100
 
  save_LDFLAGS=$LDFLAGS
3101
 
  save_libdir=$libdir
3102
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3103
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3104
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3105
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3106
 
       [shlibpath_overrides_runpath=yes])])
3107
 
  LDFLAGS=$save_LDFLAGS
3108
 
  libdir=$save_libdir
 
3237
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
3238
    [lt_cv_shlibpath_overrides_runpath=no
 
3239
    save_LDFLAGS=$LDFLAGS
 
3240
    save_libdir=$libdir
 
3241
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3242
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3243
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3244
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3245
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
3246
    LDFLAGS=$save_LDFLAGS
 
3247
    libdir=$save_libdir
 
3248
    ])
 
3249
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3109
3250
 
3110
3251
  # This implies no fast_install, which is unacceptable.
3111
3252
  # Some rework will be needed to allow for fast_install
3114
3255
 
3115
3256
  # Append ld.so.conf contents to the search path
3116
3257
  if test -f /etc/ld.so.conf; then
3117
 
    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' ' '`
 
3258
    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;s/"//g;/^$/d' | tr '\n' ' '`
3118
3259
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3119
3260
  fi
3120
3261
 
3359
3500
    The last name is the one that the linker finds with -lNAME]])
3360
3501
_LT_DECL([], [soname_spec], [1],
3361
3502
    [[The coded name of the library, if different from the real name]])
 
3503
_LT_DECL([], [install_override_mode], [1],
 
3504
    [Permission mode override for installation of shared libraries])
3362
3505
_LT_DECL([], [postinstall_cmds], [2],
3363
3506
    [Command to use after installation of a shared archive])
3364
3507
_LT_DECL([], [postuninstall_cmds], [2],
3471
3614
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3472
3615
m4_require([_LT_DECL_SED])dnl
3473
3616
m4_require([_LT_DECL_EGREP])dnl
 
3617
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3474
3618
 
3475
3619
AC_ARG_WITH([gnu-ld],
3476
3620
    [AS_HELP_STRING([--with-gnu-ld],
3592
3736
esac
3593
3737
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3594
3738
case $host_os in
 
3739
  cygwin* | mingw* | pw32* | cegcc*)
 
3740
    if test "$GCC" != yes; then
 
3741
      reload_cmds=false
 
3742
    fi
 
3743
    ;;
3595
3744
  darwin*)
3596
3745
    if test "$GCC" = yes; then
3597
3746
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3600
3749
    fi
3601
3750
    ;;
3602
3751
esac
3603
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3604
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3752
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3753
_LT_TAGDECL([], [reload_cmds], [2])dnl
3605
3754
])# _LT_CMD_RELOAD
3606
3755
 
3607
3756
 
3653
3802
  # Base MSYS/MinGW do not provide the 'file' command needed by
3654
3803
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3655
3804
  # unless we find 'file', for example because we are cross-compiling.
3656
 
  if ( file / ) >/dev/null 2>&1; then
 
3805
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3806
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3657
3807
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3658
3808
    lt_cv_file_magic_cmd='func_win32_libid'
3659
3809
  else
3660
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3810
    # Keep this pattern in sync with the one in func_win32_libid.
 
3811
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3661
3812
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3662
3813
  fi
3663
3814
  ;;
3664
3815
 
3665
 
cegcc)
 
3816
cegcc*)
3666
3817
  # use the weaker test based on 'objdump'. See mingw*.
3667
3818
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3668
3819
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3692
3843
  lt_cv_deplibs_check_method=pass_all
3693
3844
  ;;
3694
3845
 
 
3846
haiku*)
 
3847
  lt_cv_deplibs_check_method=pass_all
 
3848
  ;;
 
3849
 
3695
3850
hpux10.20* | hpux11*)
3696
3851
  lt_cv_file_magic_cmd=/usr/bin/file
3697
3852
  case $host_cpu in
3700
3855
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3701
3856
    ;;
3702
3857
  hppa*64*)
3703
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
3858
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3704
3859
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3705
3860
    ;;
3706
3861
  *)
3707
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3862
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3708
3863
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3709
3864
    ;;
3710
3865
  esac
3804
3959
  ;;
3805
3960
esac
3806
3961
])
 
3962
 
 
3963
file_magic_glob=
 
3964
want_nocaseglob=no
 
3965
if test "$build" = "$host"; then
 
3966
  case $host_os in
 
3967
  mingw* | pw32*)
 
3968
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3969
      want_nocaseglob=yes
 
3970
    else
 
3971
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3972
    fi
 
3973
    ;;
 
3974
  esac
 
3975
fi
 
3976
 
3807
3977
file_magic_cmd=$lt_cv_file_magic_cmd
3808
3978
deplibs_check_method=$lt_cv_deplibs_check_method
3809
3979
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3811
3981
_LT_DECL([], [deplibs_check_method], [1],
3812
3982
    [Method to check whether dependent libraries are shared objects])
3813
3983
_LT_DECL([], [file_magic_cmd], [1],
3814
 
    [Command to use when deplibs_check_method == "file_magic"])
 
3984
    [Command to use when deplibs_check_method = "file_magic"])
 
3985
_LT_DECL([], [file_magic_glob], [1],
 
3986
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3987
_LT_DECL([], [want_nocaseglob], [1],
 
3988
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3815
3989
])# _LT_CHECK_MAGIC_METHOD
3816
3990
 
3817
3991
 
3868
4042
  NM="$lt_cv_path_NM"
3869
4043
else
3870
4044
  # Didn't find any BSD compatible name lister, look for dumpbin.
3871
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4045
  if test -n "$DUMPBIN"; then :
 
4046
    # Let the user override the test.
 
4047
  else
 
4048
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
4049
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4050
    *COFF*)
 
4051
      DUMPBIN="$DUMPBIN -symbols"
 
4052
      ;;
 
4053
    *)
 
4054
      DUMPBIN=:
 
4055
      ;;
 
4056
    esac
 
4057
  fi
3872
4058
  AC_SUBST([DUMPBIN])
3873
4059
  if test "$DUMPBIN" != ":"; then
3874
4060
    NM="$DUMPBIN"
3881
4067
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3882
4068
  [lt_cv_nm_interface="BSD nm"
3883
4069
  echo "int some_variable = 0;" > conftest.$ac_ext
3884
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4070
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3885
4071
  (eval "$ac_compile" 2>conftest.err)
3886
4072
  cat conftest.err >&AS_MESSAGE_LOG_FD
3887
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4073
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3888
4074
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3889
4075
  cat conftest.err >&AS_MESSAGE_LOG_FD
3890
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4076
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3891
4077
  cat conftest.out >&AS_MESSAGE_LOG_FD
3892
4078
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3893
4079
    lt_cv_nm_interface="MS dumpbin"
3902
4088
dnl AC_DEFUN([AM_PROG_NM], [])
3903
4089
dnl AC_DEFUN([AC_PROG_NM], [])
3904
4090
 
 
4091
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4092
# --------------------------------
 
4093
# how to determine the name of the shared library
 
4094
# associated with a specific link library.
 
4095
#  -- PORTME fill in with the dynamic library characteristics
 
4096
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4097
[m4_require([_LT_DECL_EGREP])
 
4098
m4_require([_LT_DECL_OBJDUMP])
 
4099
m4_require([_LT_DECL_DLLTOOL])
 
4100
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4101
lt_cv_sharedlib_from_linklib_cmd,
 
4102
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4103
 
 
4104
case $host_os in
 
4105
cygwin* | mingw* | pw32* | cegcc*)
 
4106
  # two different shell functions defined in ltmain.sh
 
4107
  # decide which to use based on capabilities of $DLLTOOL
 
4108
  case `$DLLTOOL --help 2>&1` in
 
4109
  *--identify-strict*)
 
4110
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4111
    ;;
 
4112
  *)
 
4113
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4114
    ;;
 
4115
  esac
 
4116
  ;;
 
4117
*)
 
4118
  # fallback: assume linklib IS sharedlib
 
4119
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4120
  ;;
 
4121
esac
 
4122
])
 
4123
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4124
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4125
 
 
4126
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4127
    [Command to associate shared and link libraries])
 
4128
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4129
 
 
4130
 
 
4131
# _LT_PATH_MANIFEST_TOOL
 
4132
# ----------------------
 
4133
# locate the manifest tool
 
4134
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4135
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4136
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4137
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4138
  [lt_cv_path_mainfest_tool=no
 
4139
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4140
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4141
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4142
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4143
    lt_cv_path_mainfest_tool=yes
 
4144
  fi
 
4145
  rm -f conftest*])
 
4146
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4147
  MANIFEST_TOOL=:
 
4148
fi
 
4149
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4150
])# _LT_PATH_MANIFEST_TOOL
 
4151
 
3905
4152
 
3906
4153
# LT_LIB_M
3907
4154
# --------
3910
4157
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3911
4158
LIBM=
3912
4159
case $host in
3913
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
4160
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3914
4161
  # These system don't have libm, or don't need it
3915
4162
  ;;
3916
4163
*-ncr-sysv4.3*)
3938
4185
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3939
4186
 
3940
4187
if test "$GCC" = yes; then
3941
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4188
  case $cc_basename in
 
4189
  nvcc*)
 
4190
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
4191
  *)
 
4192
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
4193
  esac
3942
4194
 
3943
4195
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3944
4196
    lt_cv_prog_compiler_rtti_exceptions,
3955
4207
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3956
4208
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3957
4209
AC_REQUIRE([AC_PROG_CC])dnl
 
4210
AC_REQUIRE([AC_PROG_AWK])dnl
3958
4211
AC_REQUIRE([LT_PATH_NM])dnl
3959
4212
AC_REQUIRE([LT_PATH_LD])dnl
3960
4213
m4_require([_LT_DECL_SED])dnl
4022
4275
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4023
4276
 
4024
4277
# Transform an extracted symbol line into symbol name and symbol address
4025
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4026
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
4278
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4279
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4027
4280
 
4028
4281
# Handle CRLF in mingw tool chain
4029
4282
opt_cr=
4059
4312
  else
4060
4313
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4061
4314
  fi
 
4315
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4062
4316
 
4063
4317
  # Check to see that the pipe works correctly.
4064
4318
  pipe_works=no
4080
4334
  if AC_TRY_EVAL(ac_compile); then
4081
4335
    # Now try to grab the symbols.
4082
4336
    nlist=conftest.nm
4083
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
4337
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4084
4338
      # Try sorting and uniquifying the output.
4085
4339
      if sort "$nlist" | uniq > "$nlist"T; then
4086
4340
        mv -f "$nlist"T "$nlist"
4092
4346
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4093
4347
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4094
4348
          cat <<_LT_EOF > conftest.$ac_ext
 
4349
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4350
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4351
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4352
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4353
# define LT@&t@_DLSYM_CONST
 
4354
#elif defined(__osf__)
 
4355
/* This system does not cope well with relocations in const data.  */
 
4356
# define LT@&t@_DLSYM_CONST
 
4357
#else
 
4358
# define LT@&t@_DLSYM_CONST const
 
4359
#endif
 
4360
 
4095
4361
#ifdef __cplusplus
4096
4362
extern "C" {
4097
4363
#endif
4103
4369
          cat <<_LT_EOF >> conftest.$ac_ext
4104
4370
 
4105
4371
/* The mapping between symbol names and symbols.  */
4106
 
const struct {
 
4372
LT@&t@_DLSYM_CONST struct {
4107
4373
  const char *name;
4108
4374
  void       *address;
4109
4375
}
4129
4395
_LT_EOF
4130
4396
          # Now try linking the two files.
4131
4397
          mv conftest.$ac_objext conftstm.$ac_objext
4132
 
          lt_save_LIBS="$LIBS"
4133
 
          lt_save_CFLAGS="$CFLAGS"
 
4398
          lt_globsym_save_LIBS=$LIBS
 
4399
          lt_globsym_save_CFLAGS=$CFLAGS
4134
4400
          LIBS="conftstm.$ac_objext"
4135
4401
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4136
4402
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4137
4403
            pipe_works=yes
4138
4404
          fi
4139
 
          LIBS="$lt_save_LIBS"
4140
 
          CFLAGS="$lt_save_CFLAGS"
 
4405
          LIBS=$lt_globsym_save_LIBS
 
4406
          CFLAGS=$lt_globsym_save_CFLAGS
4141
4407
        else
4142
4408
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4143
4409
        fi
4170
4436
  AC_MSG_RESULT(ok)
4171
4437
fi
4172
4438
 
 
4439
# Response file support.
 
4440
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4441
  nm_file_list_spec='@'
 
4442
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4443
  nm_file_list_spec='@'
 
4444
fi
 
4445
 
4173
4446
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4174
4447
    [Take the output of nm and produce a listing of raw symbols and C names])
4175
4448
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4180
4453
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4181
4454
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4182
4455
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4456
_LT_DECL([], [nm_file_list_spec], [1],
 
4457
    [Specify filename containing input files for $NM])
4183
4458
]) # _LT_CMD_GLOBAL_SYMBOLS
4184
4459
 
4185
4460
 
4191
4466
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4192
4467
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4193
4468
 
4194
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4195
4469
m4_if([$1], [CXX], [
4196
4470
  # C++ specific cases for pic, static, wl, etc.
4197
4471
  if test "$GXX" = yes; then
4242
4516
      # DJGPP does not support shared libraries at all
4243
4517
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4244
4518
      ;;
 
4519
    haiku*)
 
4520
      # PIC is the default for Haiku.
 
4521
      # The "-static" flag exists, but is broken.
 
4522
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4523
      ;;
4245
4524
    interix[[3-9]]*)
4246
4525
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4247
4526
      # Instead, we relocate shared libraries at runtime.
4291
4570
          ;;
4292
4571
        esac
4293
4572
        ;;
 
4573
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4574
        # This hack is so that the source file can tell whether it is being
 
4575
        # built for inclusion in a dll (and should export symbols for example).
 
4576
        m4_if([$1], [GCJ], [],
 
4577
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4578
        ;;
4294
4579
      dgux*)
4295
4580
        case $cc_basename in
4296
4581
          ec++*)
4380
4665
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4381
4666
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4382
4667
            ;;
4383
 
          xlc* | xlC*)
4384
 
            # IBM XL 8.0 on PPC
 
4668
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4669
            # IBM XL 8.0, 9.0 on PPC and BlueGene
4385
4670
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4386
4671
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4387
4672
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4443
4728
        ;;
4444
4729
      solaris*)
4445
4730
        case $cc_basename in
4446
 
          CC*)
 
4731
          CC* | sunCC*)
4447
4732
            # Sun C++ 4.2, 5.x and Centerline C++
4448
4733
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4449
4734
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4547
4832
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4548
4833
      ;;
4549
4834
 
 
4835
    haiku*)
 
4836
      # PIC is the default for Haiku.
 
4837
      # The "-static" flag exists, but is broken.
 
4838
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4839
      ;;
 
4840
 
4550
4841
    hpux*)
4551
4842
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4552
4843
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4589
4880
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4590
4881
      ;;
4591
4882
    esac
 
4883
 
 
4884
    case $cc_basename in
 
4885
    nvcc*) # Cuda Compiler Driver 2.2
 
4886
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4887
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
4888
      ;;
 
4889
    esac
4592
4890
  else
4593
4891
    # PORTME Check for flag to pass linker flags through the system compiler.
4594
4892
    case $host_os in
4652
4950
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4653
4951
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4654
4952
        ;;
4655
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4953
      nagfor*)
 
4954
        # NAG Fortran compiler
 
4955
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4956
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4957
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4958
        ;;
 
4959
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4656
4960
        # Portland Group compilers (*not* the Pentium gcc compiler,
4657
4961
        # which looks to be a dead project)
4658
4962
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4664
4968
        # All Alpha code is PIC.
4665
4969
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4666
4970
        ;;
4667
 
      xl*)
4668
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4971
      xl* | bgxl* | bgf* | mpixl*)
 
4972
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4669
4973
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4670
4974
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4671
4975
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4672
4976
        ;;
4673
4977
      *)
4674
4978
        case `$CC -V 2>&1 | sed 5q` in
 
4979
        *Sun\ F* | *Sun*Fortran*)
 
4980
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4981
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4982
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4983
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4984
          ;;
4675
4985
        *Sun\ C*)
4676
4986
          # Sun C 5.9
4677
4987
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4678
4988
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4679
4989
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4680
4990
          ;;
4681
 
        *Sun\ F*)
4682
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4683
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4684
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4685
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4686
 
          ;;
4687
4991
        esac
4688
4992
        ;;
4689
4993
      esac
4714
5018
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4715
5019
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4716
5020
      case $cc_basename in
4717
 
      f77* | f90* | f95*)
 
5021
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4718
5022
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4719
5023
      *)
4720
5024
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4771
5075
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4772
5076
    ;;
4773
5077
esac
4774
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4775
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4776
 
        [How to pass a linker flag through the compiler])
 
5078
 
 
5079
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5080
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5081
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5082
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4777
5083
 
4778
5084
#
4779
5085
# Check to make sure the PIC flag actually works.
4792
5098
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4793
5099
        [Additional compiler flags for building library objects])
4794
5100
 
 
5101
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5102
        [How to pass a linker flag through the compiler])
4795
5103
#
4796
5104
# Check to make sure the static flag actually works.
4797
5105
#
4812
5120
m4_defun([_LT_LINKER_SHLIBS],
4813
5121
[AC_REQUIRE([LT_PATH_LD])dnl
4814
5122
AC_REQUIRE([LT_PATH_NM])dnl
 
5123
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4815
5124
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4816
5125
m4_require([_LT_DECL_EGREP])dnl
4817
5126
m4_require([_LT_DECL_SED])dnl
4820
5129
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4821
5130
m4_if([$1], [CXX], [
4822
5131
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5132
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4823
5133
  case $host_os in
4824
5134
  aix[[4-9]]*)
4825
5135
    # If we're using GNU nm, then we don't want the "-C" option.
4826
5136
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5137
    # Also, AIX nm treats weak defined symbols like other global defined
 
5138
    # symbols, whereas GNU nm marks them as "W".
4827
5139
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4828
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5140
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4829
5141
    else
4830
5142
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4831
5143
    fi
4832
5144
    ;;
4833
5145
  pw32*)
4834
5146
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4835
 
  ;;
 
5147
    ;;
4836
5148
  cygwin* | mingw* | cegcc*)
4837
 
    _LT_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'
4838
 
  ;;
4839
 
  linux* | k*bsd*-gnu)
 
5149
    case $cc_basename in
 
5150
    cl*) ;;
 
5151
    *)
 
5152
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5153
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5154
      ;;
 
5155
    esac
 
5156
    ;;
 
5157
  linux* | k*bsd*-gnu | gnu*)
4840
5158
    _LT_TAGVAR(link_all_deplibs, $1)=no
4841
 
  ;;
 
5159
    ;;
4842
5160
  *)
4843
5161
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4844
 
  ;;
 
5162
    ;;
4845
5163
  esac
4846
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4847
5164
], [
4848
5165
  runpath_var=
4849
5166
  _LT_TAGVAR(allow_undefined_flag, $1)=
4903
5220
  openbsd*)
4904
5221
    with_gnu_ld=no
4905
5222
    ;;
4906
 
  linux* | k*bsd*-gnu)
 
5223
  linux* | k*bsd*-gnu | gnu*)
4907
5224
    _LT_TAGVAR(link_all_deplibs, $1)=no
4908
5225
    ;;
4909
5226
  esac
4910
5227
 
4911
5228
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
5229
 
 
5230
  # On some targets, GNU ld is compatible enough with the native linker
 
5231
  # that we're better off using the native interface for both.
 
5232
  lt_use_gnu_ld_interface=no
4912
5233
  if test "$with_gnu_ld" = yes; then
 
5234
    case $host_os in
 
5235
      aix*)
 
5236
        # The AIX port of GNU ld has always aspired to compatibility
 
5237
        # with the native linker.  However, as the warning in the GNU ld
 
5238
        # block says, versions before 2.19.5* couldn't really create working
 
5239
        # shared libraries, regardless of the interface used.
 
5240
        case `$LD -v 2>&1` in
 
5241
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
5242
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
5243
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
5244
          *)
 
5245
            lt_use_gnu_ld_interface=yes
 
5246
            ;;
 
5247
        esac
 
5248
        ;;
 
5249
      *)
 
5250
        lt_use_gnu_ld_interface=yes
 
5251
        ;;
 
5252
    esac
 
5253
  fi
 
5254
 
 
5255
  if test "$lt_use_gnu_ld_interface" = yes; then
4913
5256
    # If archive_cmds runs LD, not CC, wlarc should be empty
4914
5257
    wlarc='${wl}'
4915
5258
 
4943
5286
        _LT_TAGVAR(ld_shlibs, $1)=no
4944
5287
        cat <<_LT_EOF 1>&2
4945
5288
 
4946
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5289
*** Warning: the GNU linker, at least up to release 2.19, is reported
4947
5290
*** to be unable to reliably create shared libraries on AIX.
4948
5291
*** Therefore, libtool is disabling shared libraries support.  If you
4949
 
*** really care for shared libraries, you may want to modify your PATH
4950
 
*** so that a non-GNU linker is found, and then restart.
 
5292
*** really care for shared libraries, you may want to install binutils
 
5293
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
5294
*** You will then need to restart the configuration process.
4951
5295
 
4952
5296
_LT_EOF
4953
5297
      fi
4983
5327
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4984
5328
      # as there is no search path for DLLs.
4985
5329
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5330
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4986
5331
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4987
5332
      _LT_TAGVAR(always_export_symbols, $1)=no
4988
5333
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4989
 
      _LT_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'
 
5334
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5335
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4990
5336
 
4991
5337
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4992
5338
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5004
5350
      fi
5005
5351
      ;;
5006
5352
 
 
5353
    haiku*)
 
5354
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5355
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5356
      ;;
 
5357
 
5007
5358
    interix[[3-9]]*)
5008
5359
      _LT_TAGVAR(hardcode_direct, $1)=no
5009
5360
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5029
5380
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5030
5381
         && test "$tmp_diet" = no
5031
5382
      then
5032
 
        tmp_addflag=
 
5383
        tmp_addflag=' $pic_flag'
5033
5384
        tmp_sharedflag='-shared'
5034
5385
        case $cc_basename,$host_cpu in
5035
5386
        pgcc*)                          # Portland Group C compiler
5036
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5387
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5037
5388
          tmp_addflag=' $pic_flag'
5038
5389
          ;;
5039
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5040
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5390
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
5391
                                        # Portland Group f77 and f90 compilers
 
5392
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5041
5393
          tmp_addflag=' $pic_flag -Mnomain' ;;
5042
5394
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5043
5395
          tmp_addflag=' -i_dynamic' ;;
5048
5400
        lf95*)                          # Lahey Fortran 8.1
5049
5401
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5050
5402
          tmp_sharedflag='--shared' ;;
5051
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5403
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5052
5404
          tmp_sharedflag='-qmkshrobj'
5053
5405
          tmp_addflag= ;;
 
5406
        nvcc*)  # Cuda Compiler Driver 2.2
 
5407
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5408
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5409
          ;;
5054
5410
        esac
5055
5411
        case `$CC -V 2>&1 | sed 5q` in
5056
5412
        *Sun\ C*)                       # Sun C 5.9
5057
 
          _LT_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'
 
5413
          _LT_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5058
5414
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5059
5415
          tmp_sharedflag='-G' ;;
5060
5416
        *Sun\ F*)                       # Sun Fortran 8.3
5070
5426
        fi
5071
5427
 
5072
5428
        case $cc_basename in
5073
 
        xlf*)
 
5429
        xlf* | bgf* | bgxlf* | mpixlf*)
5074
5430
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5075
5431
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5076
5432
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5077
5433
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5078
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5434
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5079
5435
          if test "x$supports_anon_versioning" = xyes; then
5080
5436
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5081
5437
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5082
5438
              echo "local: *; };" >> $output_objdir/$libname.ver~
5083
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5439
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5084
5440
          fi
5085
5441
          ;;
5086
5442
        esac
5094
5450
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5095
5451
        wlarc=
5096
5452
      else
5097
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5098
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5453
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5454
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5099
5455
      fi
5100
5456
      ;;
5101
5457
 
5113
5469
 
5114
5470
_LT_EOF
5115
5471
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5116
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5117
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5472
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5473
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5118
5474
      else
5119
5475
        _LT_TAGVAR(ld_shlibs, $1)=no
5120
5476
      fi
5160
5516
 
5161
5517
    *)
5162
5518
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5163
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5164
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5519
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5520
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5165
5521
      else
5166
5522
        _LT_TAGVAR(ld_shlibs, $1)=no
5167
5523
      fi
5201
5557
      else
5202
5558
        # If we're using GNU nm, then we don't want the "-C" option.
5203
5559
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5560
        # Also, AIX nm treats weak defined symbols like other global
 
5561
        # defined symbols, whereas GNU nm marks them as "W".
5204
5562
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5205
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5563
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5206
5564
        else
5207
5565
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5208
5566
        fi
5290
5648
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5291
5649
        # Determine the default libpath from the value encoded in an
5292
5650
        # empty executable.
5293
 
        _LT_SYS_MODULE_PATH_AIX
 
5651
        _LT_SYS_MODULE_PATH_AIX([$1])
5294
5652
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5295
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5653
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5296
5654
      else
5297
5655
        if test "$host_cpu" = ia64; then
5298
5656
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5301
5659
        else
5302
5660
         # Determine the default libpath from the value encoded in an
5303
5661
         # empty executable.
5304
 
         _LT_SYS_MODULE_PATH_AIX
 
5662
         _LT_SYS_MODULE_PATH_AIX([$1])
5305
5663
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5306
5664
          # Warning - without using the other run time loading flags,
5307
5665
          # -berok will link without error, but may produce a broken library.
5308
5666
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5309
5667
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5310
 
          # Exported symbols can be pulled into shared objects from archives
5311
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5668
          if test "$with_gnu_ld" = yes; then
 
5669
            # We only use this code for GNU lds that support --whole-archive.
 
5670
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5671
          else
 
5672
            # Exported symbols can be pulled into shared objects from archives
 
5673
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5674
          fi
5312
5675
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5313
5676
          # This is similar to how AIX traditionally builds its shared libraries.
5314
5677
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5340
5703
      # Microsoft Visual C++.
5341
5704
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5342
5705
      # no search path for DLLs.
5343
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5344
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5345
 
      # Tell ltmain to make .lib files, not .a files.
5346
 
      libext=lib
5347
 
      # Tell ltmain to make .dll files, not .so files.
5348
 
      shrext_cmds=".dll"
5349
 
      # FIXME: Setting linknames here is a bad hack.
5350
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5351
 
      # The linker will automatically build a .lib file if we build a DLL.
5352
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5353
 
      # FIXME: Should let the user specify the lib program.
5354
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5355
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5706
      case $cc_basename in
 
5707
      cl*)
 
5708
        # Native MSVC
 
5709
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5710
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5711
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5712
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5713
        # Tell ltmain to make .lib files, not .a files.
 
5714
        libext=lib
 
5715
        # Tell ltmain to make .dll files, not .so files.
 
5716
        shrext_cmds=".dll"
 
5717
        # FIXME: Setting linknames here is a bad hack.
 
5718
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5719
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5720
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5721
          else
 
5722
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5723
          fi~
 
5724
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5725
          linknames='
 
5726
        # The linker will not automatically build a static lib if we build a DLL.
 
5727
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5728
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5729
        _LT_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'
 
5730
        # Don't use ranlib
 
5731
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5732
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5733
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5734
          case $lt_outputfile in
 
5735
            *.exe|*.EXE) ;;
 
5736
            *)
 
5737
              lt_outputfile="$lt_outputfile.exe"
 
5738
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5739
              ;;
 
5740
          esac~
 
5741
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5742
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5743
            $RM "$lt_outputfile.manifest";
 
5744
          fi'
 
5745
        ;;
 
5746
      *)
 
5747
        # Assume MSVC wrapper
 
5748
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5749
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5750
        # Tell ltmain to make .lib files, not .a files.
 
5751
        libext=lib
 
5752
        # Tell ltmain to make .dll files, not .so files.
 
5753
        shrext_cmds=".dll"
 
5754
        # FIXME: Setting linknames here is a bad hack.
 
5755
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5756
        # The linker will automatically build a .lib file if we build a DLL.
 
5757
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5758
        # FIXME: Should let the user specify the lib program.
 
5759
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5760
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5761
        ;;
 
5762
      esac
5357
5763
      ;;
5358
5764
 
5359
5765
    darwin* | rhapsody*)
5391
5797
 
5392
5798
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5393
5799
    freebsd* | dragonfly*)
5394
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5800
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5395
5801
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5396
5802
      _LT_TAGVAR(hardcode_direct, $1)=yes
5397
5803
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5399
5805
 
5400
5806
    hpux9*)
5401
5807
      if test "$GCC" = yes; then
5402
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5808
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5403
5809
      else
5404
5810
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5405
5811
      fi
5414
5820
      ;;
5415
5821
 
5416
5822
    hpux10*)
5417
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5418
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5823
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5824
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5419
5825
      else
5420
5826
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5421
5827
      fi
5433
5839
      ;;
5434
5840
 
5435
5841
    hpux11*)
5436
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5842
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5437
5843
        case $host_cpu in
5438
5844
        hppa*64*)
5439
5845
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5440
5846
          ;;
5441
5847
        ia64*)
5442
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5848
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5443
5849
          ;;
5444
5850
        *)
5445
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5851
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5446
5852
          ;;
5447
5853
        esac
5448
5854
      else
5454
5860
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5455
5861
          ;;
5456
5862
        *)
5457
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5863
        m4_if($1, [], [
 
5864
          # Older versions of the 11.00 compiler do not understand -b yet
 
5865
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5866
          _LT_LINKER_OPTION([if $CC understands -b],
 
5867
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5868
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5869
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5870
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5458
5871
          ;;
5459
5872
        esac
5460
5873
      fi
5482
5895
 
5483
5896
    irix5* | irix6* | nonstopux*)
5484
5897
      if test "$GCC" = yes; then
5485
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5898
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5486
5899
        # Try to use the -exported_symbol ld option, if it does not
5487
5900
        # work, assume that -exports_file does not work either and
5488
5901
        # implicitly export all symbols.
5489
 
        save_LDFLAGS="$LDFLAGS"
5490
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5491
 
        AC_LINK_IFELSE(int foo(void) {},
5492
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5493
 
        )
5494
 
        LDFLAGS="$save_LDFLAGS"
 
5902
        # This should be the same for all languages, so no per-tag cache variable.
 
5903
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5904
          [lt_cv_irix_exported_symbol],
 
5905
          [save_LDFLAGS="$LDFLAGS"
 
5906
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5907
           AC_LINK_IFELSE(
 
5908
             [AC_LANG_SOURCE(
 
5909
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5910
                              [C++], [[int foo (void) { return 0; }]],
 
5911
                              [Fortran 77], [[
 
5912
      subroutine foo
 
5913
      end]],
 
5914
                              [Fortran], [[
 
5915
      subroutine foo
 
5916
      end]])])],
 
5917
              [lt_cv_irix_exported_symbol=yes],
 
5918
              [lt_cv_irix_exported_symbol=no])
 
5919
           LDFLAGS="$save_LDFLAGS"])
 
5920
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5921
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5922
        fi
5495
5923
      else
5496
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5497
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
5924
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
5925
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5498
5926
      fi
5499
5927
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5500
5928
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5556
5984
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5557
5985
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5558
5986
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5559
 
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
5987
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5560
5988
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5561
5989
      ;;
5562
5990
 
5563
5991
    osf3*)
5564
5992
      if test "$GCC" = yes; then
5565
5993
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5566
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5994
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5567
5995
      else
5568
5996
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5569
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5997
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5570
5998
      fi
5571
5999
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5572
6000
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5576
6004
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5577
6005
      if test "$GCC" = yes; then
5578
6006
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5579
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6007
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5580
6008
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5581
6009
      else
5582
6010
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5583
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6011
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5584
6012
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5585
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
6013
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5586
6014
 
5587
6015
        # Both c and cxx compiler support -rpath directly
5588
6016
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5595
6023
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5596
6024
      if test "$GCC" = yes; then
5597
6025
        wlarc='${wl}'
5598
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6026
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5599
6027
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5600
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6028
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5601
6029
      else
5602
6030
        case `$CC -V 2>&1` in
5603
6031
        *"Compilers 5.0"*)
5773
6201
      # Test whether the compiler implicitly links with -lc since on some
5774
6202
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5775
6203
      # to ld, don't add -lc before -lgcc.
5776
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5777
 
      $RM conftest*
5778
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6204
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
6205
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
6206
        [$RM conftest*
 
6207
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5779
6208
 
5780
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5781
 
        soname=conftest
5782
 
        lib=conftest
5783
 
        libobjs=conftest.$ac_objext
5784
 
        deplibs=
5785
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5786
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5787
 
        compiler_flags=-v
5788
 
        linker_flags=-v
5789
 
        verstring=
5790
 
        output_objdir=.
5791
 
        libname=conftest
5792
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5793
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5794
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5795
 
        then
5796
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5797
 
        else
5798
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5799
 
        fi
5800
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5801
 
      else
5802
 
        cat conftest.err 1>&5
5803
 
      fi
5804
 
      $RM conftest*
5805
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
6209
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6210
          soname=conftest
 
6211
          lib=conftest
 
6212
          libobjs=conftest.$ac_objext
 
6213
          deplibs=
 
6214
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6215
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
6216
          compiler_flags=-v
 
6217
          linker_flags=-v
 
6218
          verstring=
 
6219
          output_objdir=.
 
6220
          libname=conftest
 
6221
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6222
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
6223
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
6224
          then
 
6225
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6226
          else
 
6227
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6228
          fi
 
6229
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6230
        else
 
6231
          cat conftest.err 1>&5
 
6232
        fi
 
6233
        $RM conftest*
 
6234
        ])
 
6235
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5806
6236
      ;;
5807
6237
    esac
5808
6238
  fi
5867
6297
    to runtime path list])
5868
6298
_LT_TAGDECL([], [link_all_deplibs], [0],
5869
6299
    [Whether libtool must link a program against all its dependency libraries])
5870
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5871
 
    [Fix the shell variable $srcfile for the compiler])
5872
6300
_LT_TAGDECL([], [always_export_symbols], [0],
5873
6301
    [Set to "yes" if exported symbols are required])
5874
6302
_LT_TAGDECL([], [export_symbols_cmds], [2],
5879
6307
    [Symbols that must always be exported])
5880
6308
_LT_TAGDECL([], [prelink_cmds], [2],
5881
6309
    [Commands necessary for linking programs (against libraries) with templates])
 
6310
_LT_TAGDECL([], [postlink_cmds], [2],
 
6311
    [Commands necessary for finishing linking programs])
5882
6312
_LT_TAGDECL([], [file_list_spec], [1],
5883
6313
    [Specify filename containing input files])
5884
6314
dnl FIXME: Not yet implemented
5968
6398
])# _LT_LANG_C_CONFIG
5969
6399
 
5970
6400
 
5971
 
# _LT_PROG_CXX
5972
 
# ------------
5973
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5974
 
# compiler, we have our own version here.
5975
 
m4_defun([_LT_PROG_CXX],
5976
 
[
5977
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5978
 
AC_PROG_CXX
 
6401
# _LT_LANG_CXX_CONFIG([TAG])
 
6402
# --------------------------
 
6403
# Ensure that the configuration variables for a C++ compiler are suitably
 
6404
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6405
# the compiler configuration to `libtool'.
 
6406
m4_defun([_LT_LANG_CXX_CONFIG],
 
6407
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6408
m4_require([_LT_DECL_EGREP])dnl
 
6409
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5979
6410
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5980
6411
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5981
6412
    (test "X$CXX" != "Xg++"))) ; then
5983
6414
else
5984
6415
  _lt_caught_CXX_error=yes
5985
6416
fi
5986
 
popdef([AC_MSG_ERROR])
5987
 
])# _LT_PROG_CXX
5988
 
 
5989
 
dnl aclocal-1.4 backwards compatibility:
5990
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5991
 
 
5992
 
 
5993
 
# _LT_LANG_CXX_CONFIG([TAG])
5994
 
# --------------------------
5995
 
# Ensure that the configuration variables for a C++ compiler are suitably
5996
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5997
 
# the compiler configuration to `libtool'.
5998
 
m4_defun([_LT_LANG_CXX_CONFIG],
5999
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
6000
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6001
 
m4_require([_LT_DECL_EGREP])dnl
6002
6417
 
6003
6418
AC_LANG_PUSH(C++)
6004
6419
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6020
6435
_LT_TAGVAR(module_expsym_cmds, $1)=
6021
6436
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6022
6437
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6438
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6439
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6023
6440
_LT_TAGVAR(no_undefined_flag, $1)=
6024
6441
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6025
6442
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6051
6468
 
6052
6469
  # Allow CC to be a program name with arguments.
6053
6470
  lt_save_CC=$CC
 
6471
  lt_save_CFLAGS=$CFLAGS
6054
6472
  lt_save_LD=$LD
6055
6473
  lt_save_GCC=$GCC
6056
6474
  GCC=$GXX
6068
6486
  fi
6069
6487
  test -z "${LDCXX+set}" || LD=$LDCXX
6070
6488
  CC=${CXX-"c++"}
 
6489
  CFLAGS=$CXXFLAGS
6071
6490
  compiler=$CC
6072
6491
  _LT_TAGVAR(compiler, $1)=$CC
6073
6492
  _LT_CC_BASENAME([$compiler])
6089
6508
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6090
6509
      # archiving commands below assume that GNU ld is being used.
6091
6510
      if test "$with_gnu_ld" = yes; then
6092
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6093
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6511
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6512
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6094
6513
 
6095
6514
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6096
6515
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6122
6541
      # Commands to make compiler produce verbose output that lists
6123
6542
      # what "hidden" libraries, object files and flags are used when
6124
6543
      # linking a shared library.
6125
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6544
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6126
6545
 
6127
6546
    else
6128
6547
      GXX=no
6231
6650
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6232
6651
          # Determine the default libpath from the value encoded in an empty
6233
6652
          # executable.
6234
 
          _LT_SYS_MODULE_PATH_AIX
 
6653
          _LT_SYS_MODULE_PATH_AIX([$1])
6235
6654
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6236
6655
 
6237
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6656
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6238
6657
        else
6239
6658
          if test "$host_cpu" = ia64; then
6240
6659
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6243
6662
          else
6244
6663
            # Determine the default libpath from the value encoded in an
6245
6664
            # empty executable.
6246
 
            _LT_SYS_MODULE_PATH_AIX
 
6665
            _LT_SYS_MODULE_PATH_AIX([$1])
6247
6666
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6248
6667
            # Warning - without using the other run time loading flags,
6249
6668
            # -berok will link without error, but may produce a broken library.
6250
6669
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6251
6670
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6252
 
            # Exported symbols can be pulled into shared objects from archives
6253
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6671
            if test "$with_gnu_ld" = yes; then
 
6672
              # We only use this code for GNU lds that support --whole-archive.
 
6673
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6674
            else
 
6675
              # Exported symbols can be pulled into shared objects from archives
 
6676
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6677
            fi
6254
6678
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6255
6679
            # This is similar to how AIX traditionally builds its shared
6256
6680
            # libraries.
6280
6704
        ;;
6281
6705
 
6282
6706
      cygwin* | mingw* | pw32* | cegcc*)
6283
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6284
 
        # as there is no search path for DLLs.
6285
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6286
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6287
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6288
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6707
        case $GXX,$cc_basename in
 
6708
        ,cl* | no,cl*)
 
6709
          # Native MSVC
 
6710
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6711
          # no search path for DLLs.
 
6712
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6713
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6714
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6715
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6716
          # Tell ltmain to make .lib files, not .a files.
 
6717
          libext=lib
 
6718
          # Tell ltmain to make .dll files, not .so files.
 
6719
          shrext_cmds=".dll"
 
6720
          # FIXME: Setting linknames here is a bad hack.
 
6721
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6722
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6723
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6724
            else
 
6725
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6726
            fi~
 
6727
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6728
            linknames='
 
6729
          # The linker will not automatically build a static lib if we build a DLL.
 
6730
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6731
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6732
          # Don't use ranlib
 
6733
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6734
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6735
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6736
            case $lt_outputfile in
 
6737
              *.exe|*.EXE) ;;
 
6738
              *)
 
6739
                lt_outputfile="$lt_outputfile.exe"
 
6740
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6741
                ;;
 
6742
            esac~
 
6743
            func_to_tool_file "$lt_outputfile"~
 
6744
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6745
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6746
              $RM "$lt_outputfile.manifest";
 
6747
            fi'
 
6748
          ;;
 
6749
        *)
 
6750
          # g++
 
6751
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6752
          # as there is no search path for DLLs.
 
6753
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6754
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6755
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6756
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6757
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6289
6758
 
6290
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6291
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6292
 
          # If the export-symbols file already is a .def file (1st line
6293
 
          # is EXPORTS), use it as is; otherwise, prepend...
6294
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6295
 
            cp $export_symbols $output_objdir/$soname.def;
6296
 
          else
6297
 
            echo EXPORTS > $output_objdir/$soname.def;
6298
 
            cat $export_symbols >> $output_objdir/$soname.def;
6299
 
          fi~
6300
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6301
 
        else
6302
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6303
 
        fi
6304
 
        ;;
 
6759
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6760
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6761
            # If the export-symbols file already is a .def file (1st line
 
6762
            # is EXPORTS), use it as is; otherwise, prepend...
 
6763
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6764
              cp $export_symbols $output_objdir/$soname.def;
 
6765
            else
 
6766
              echo EXPORTS > $output_objdir/$soname.def;
 
6767
              cat $export_symbols >> $output_objdir/$soname.def;
 
6768
            fi~
 
6769
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6770
          else
 
6771
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6772
          fi
 
6773
          ;;
 
6774
        esac
 
6775
        ;;
6305
6776
      darwin* | rhapsody*)
6306
6777
        _LT_DARWIN_LINKER_FEATURES($1)
6307
6778
        ;;
6343
6814
      gnu*)
6344
6815
        ;;
6345
6816
 
 
6817
      haiku*)
 
6818
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6819
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6820
        ;;
 
6821
 
6346
6822
      hpux9*)
6347
6823
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6348
6824
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6367
6843
            # explicitly linking system object files so we need to strip them
6368
6844
            # from the output so that they don't get included in the library
6369
6845
            # dependencies.
6370
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6846
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6371
6847
            ;;
6372
6848
          *)
6373
6849
            if test "$GXX" = yes; then
6374
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6850
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6375
6851
            else
6376
6852
              # FIXME: insert proper C++ library support
6377
6853
              _LT_TAGVAR(ld_shlibs, $1)=no
6432
6908
            # explicitly linking system object files so we need to strip them
6433
6909
            # from the output so that they don't get included in the library
6434
6910
            # dependencies.
6435
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6911
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6436
6912
            ;;
6437
6913
          *)
6438
6914
            if test "$GXX" = yes; then
6442
6918
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6443
6919
                    ;;
6444
6920
                  ia64*)
6445
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6921
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6446
6922
                    ;;
6447
6923
                  *)
6448
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6924
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6449
6925
                    ;;
6450
6926
                esac
6451
6927
              fi
6475
6951
        case $cc_basename in
6476
6952
          CC*)
6477
6953
            # SGI C++
6478
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6954
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6479
6955
 
6480
6956
            # Archives containing C++ object files must be created using
6481
6957
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6486
6962
          *)
6487
6963
            if test "$GXX" = yes; then
6488
6964
              if test "$with_gnu_ld" = no; then
6489
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6965
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6490
6966
              else
6491
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
6967
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6492
6968
              fi
6493
6969
            fi
6494
6970
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6517
6993
            # explicitly linking system object files so we need to strip them
6518
6994
            # from the output so that they don't get included in the library
6519
6995
            # dependencies.
6520
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6996
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6521
6997
 
6522
6998
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6523
6999
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6554
7030
          pgCC* | pgcpp*)
6555
7031
            # Portland Group C++ compiler
6556
7032
            case `$CC -V` in
6557
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
7033
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6558
7034
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6559
7035
                rm -rf $tpldir~
6560
7036
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6561
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
7037
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6562
7038
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6563
7039
                rm -rf $tpldir~
6564
7040
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6565
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
7041
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6566
7042
                $RANLIB $oldlib'
6567
7043
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6568
7044
                rm -rf $tpldir~
6569
7045
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6570
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7046
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6571
7047
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6572
7048
                rm -rf $tpldir~
6573
7049
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6574
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
7050
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6575
7051
              ;;
6576
 
            *) # Version 6 will use weak symbols
 
7052
            *) # Version 6 and above use weak symbols
6577
7053
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6578
7054
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6579
7055
              ;;
6581
7057
 
6582
7058
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6583
7059
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6584
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7060
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6585
7061
            ;;
6586
7062
          cxx*)
6587
7063
            # Compaq C++
6600
7076
            # explicitly linking system object files so we need to strip them
6601
7077
            # from the output so that they don't get included in the library
6602
7078
            # dependencies.
6603
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
7079
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
6604
7080
            ;;
6605
 
          xl*)
 
7081
          xl* | mpixl* | bgxl*)
6606
7082
            # IBM XL 8.0 on PPC, with GNU ld
6607
7083
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6608
7084
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6622
7098
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6623
7099
              _LT_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'
6624
7100
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6625
 
              _LT_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'
 
7101
              _LT_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6626
7102
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6627
7103
 
6628
7104
              # Not sure whether something based on
6629
7105
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6630
7106
              # would be better.
6631
 
              output_verbose_link_cmd='echo'
 
7107
              output_verbose_link_cmd='func_echo_all'
6632
7108
 
6633
7109
              # Archives containing C++ object files must be created using
6634
7110
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6697
7173
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6698
7174
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6699
7175
          fi
6700
 
          output_verbose_link_cmd=echo
 
7176
          output_verbose_link_cmd=func_echo_all
6701
7177
        else
6702
7178
          _LT_TAGVAR(ld_shlibs, $1)=no
6703
7179
        fi
6732
7208
            case $host in
6733
7209
              osf3*)
6734
7210
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6735
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7211
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6736
7212
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6737
7213
                ;;
6738
7214
              *)
6739
7215
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6740
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7216
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6741
7217
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6742
7218
                  echo "-hidden">> $lib.exp~
6743
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
7219
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6744
7220
                  $RM $lib.exp'
6745
7221
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6746
7222
                ;;
6756
7232
            # explicitly linking system object files so we need to strip them
6757
7233
            # from the output so that they don't get included in the library
6758
7234
            # dependencies.
6759
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
7235
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
6760
7236
            ;;
6761
7237
          *)
6762
7238
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6763
7239
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6764
7240
              case $host in
6765
7241
                osf3*)
6766
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7242
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6767
7243
                  ;;
6768
7244
                *)
6769
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7245
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6770
7246
                  ;;
6771
7247
              esac
6772
7248
 
6776
7252
              # Commands to make compiler produce verbose output that lists
6777
7253
              # what "hidden" libraries, object files and flags are used when
6778
7254
              # linking a shared library.
6779
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7255
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6780
7256
 
6781
7257
            else
6782
7258
              # FIXME: insert proper C++ library support
6812
7288
 
6813
7289
      solaris*)
6814
7290
        case $cc_basename in
6815
 
          CC*)
 
7291
          CC* | sunCC*)
6816
7292
            # Sun C++ 4.2, 5.x and Centerline C++
6817
7293
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6818
7294
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6833
7309
            esac
6834
7310
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6835
7311
 
6836
 
            output_verbose_link_cmd='echo'
 
7312
            output_verbose_link_cmd='func_echo_all'
6837
7313
 
6838
7314
            # Archives containing C++ object files must be created using
6839
7315
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6853
7329
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6854
7330
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6855
7331
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6856
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7332
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6857
7333
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6858
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7334
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6859
7335
 
6860
7336
                # Commands to make compiler produce verbose output that lists
6861
7337
                # what "hidden" libraries, object files and flags are used when
6862
7338
                # linking a shared library.
6863
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7339
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6864
7340
              else
6865
7341
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6866
7342
                # platform.
6871
7347
                # Commands to make compiler produce verbose output that lists
6872
7348
                # what "hidden" libraries, object files and flags are used when
6873
7349
                # linking a shared library.
6874
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7350
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6875
7351
              fi
6876
7352
 
6877
7353
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6925
7401
          CC*)
6926
7402
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6927
7403
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7404
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
7405
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
7406
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
7407
              '"$_LT_TAGVAR(reload_cmds, $1)"
6928
7408
            ;;
6929
7409
          *)
6930
7410
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6980
7460
  fi # test -n "$compiler"
6981
7461
 
6982
7462
  CC=$lt_save_CC
 
7463
  CFLAGS=$lt_save_CFLAGS
6983
7464
  LDCXX=$LD
6984
7465
  LD=$lt_save_LD
6985
7466
  GCC=$lt_save_GCC
6994
7475
])# _LT_LANG_CXX_CONFIG
6995
7476
 
6996
7477
 
 
7478
# _LT_FUNC_STRIPNAME_CNF
 
7479
# ----------------------
 
7480
# func_stripname_cnf prefix suffix name
 
7481
# strip PREFIX and SUFFIX off of NAME.
 
7482
# PREFIX and SUFFIX must not contain globbing or regex special
 
7483
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7484
# dot (in which case that matches only a dot).
 
7485
#
 
7486
# This function is identical to the (non-XSI) version of func_stripname,
 
7487
# except this one can be used by m4 code that may be executed by configure,
 
7488
# rather than the libtool script.
 
7489
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7490
AC_REQUIRE([_LT_DECL_SED])
 
7491
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7492
func_stripname_cnf ()
 
7493
{
 
7494
  case ${2} in
 
7495
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7496
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7497
  esac
 
7498
} # func_stripname_cnf
 
7499
])# _LT_FUNC_STRIPNAME_CNF
 
7500
 
6997
7501
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6998
7502
# ---------------------------------
6999
7503
# Figure out "hidden" library dependencies from verbose
7002
7506
# objects, libraries and library flags.
7003
7507
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7004
7508
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7509
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7005
7510
# Dependencies to place before and after the object being linked:
7006
7511
_LT_TAGVAR(predep_objects, $1)=
7007
7512
_LT_TAGVAR(postdep_objects, $1)=
7052
7557
};
7053
7558
_LT_EOF
7054
7559
])
 
7560
 
 
7561
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7562
case "$CC $CFLAGS " in #(
 
7563
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7564
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7565
esac
 
7566
 
7055
7567
dnl Parse the compiler output and extract the necessary
7056
7568
dnl objects, libraries and library flags.
7057
7569
if AC_TRY_EVAL(ac_compile); then
7063
7575
  pre_test_object_deps_done=no
7064
7576
 
7065
7577
  for p in `eval "$output_verbose_link_cmd"`; do
7066
 
    case $p in
 
7578
    case ${prev}${p} in
7067
7579
 
7068
7580
    -L* | -R* | -l*)
7069
7581
       # Some compilers place space between "-{L,R}" and the path.
7072
7584
          test $p = "-R"; then
7073
7585
         prev=$p
7074
7586
         continue
7075
 
       else
7076
 
         prev=
7077
7587
       fi
7078
7588
 
 
7589
       # Expand the sysroot to ease extracting the directories later.
 
7590
       if test -z "$prev"; then
 
7591
         case $p in
 
7592
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7593
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7594
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7595
         esac
 
7596
       fi
 
7597
       case $p in
 
7598
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7599
       esac
7079
7600
       if test "$pre_test_object_deps_done" = no; then
7080
 
         case $p in
7081
 
         -L* | -R*)
 
7601
         case ${prev} in
 
7602
         -L | -R)
7082
7603
           # Internal compiler library paths should come after those
7083
7604
           # provided the user.  The postdeps already come after the
7084
7605
           # user supplied libs so there is no need to process them.
7098
7619
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7099
7620
         fi
7100
7621
       fi
 
7622
       prev=
7101
7623
       ;;
7102
7624
 
 
7625
    *.lto.$objext) ;; # Ignore GCC LTO objects
7103
7626
    *.$objext)
7104
7627
       # This assumes that the test object file only shows up
7105
7628
       # once in the compiler output.
7135
7658
fi
7136
7659
 
7137
7660
$RM -f confest.$objext
 
7661
CFLAGS=$_lt_libdeps_save_CFLAGS
7138
7662
 
7139
7663
# PORTME: override above test on systems where it is broken
7140
7664
m4_if([$1], [CXX],
7171
7695
 
7172
7696
solaris*)
7173
7697
  case $cc_basename in
7174
 
  CC*)
 
7698
  CC* | sunCC*)
7175
7699
    # The more standards-conforming stlport4 library is
7176
7700
    # incompatible with the Cstd library. Avoid specifying
7177
7701
    # it if it's in CXXFLAGS. Ignore libCrun as
7215
7739
])# _LT_SYS_HIDDEN_LIBDEPS
7216
7740
 
7217
7741
 
7218
 
# _LT_PROG_F77
7219
 
# ------------
7220
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7221
 
# if there is no fortran compiler, we have our own version here.
7222
 
m4_defun([_LT_PROG_F77],
7223
 
[
7224
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7225
 
AC_PROG_F77
7226
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7227
 
  _lt_disable_F77=yes
7228
 
fi
7229
 
popdef([AC_MSG_ERROR])
7230
 
])# _LT_PROG_F77
7231
 
 
7232
 
dnl aclocal-1.4 backwards compatibility:
7233
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7234
 
 
7235
 
 
7236
7742
# _LT_LANG_F77_CONFIG([TAG])
7237
7743
# --------------------------
7238
7744
# Ensure that the configuration variables for a Fortran 77 compiler are
7239
7745
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7240
7746
# to write the compiler configuration to `libtool'.
7241
7747
m4_defun([_LT_LANG_F77_CONFIG],
7242
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7243
 
AC_LANG_PUSH(Fortran 77)
 
7748
[AC_LANG_PUSH(Fortran 77)
 
7749
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7750
  _lt_disable_F77=yes
 
7751
fi
7244
7752
 
7245
7753
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7246
7754
_LT_TAGVAR(allow_undefined_flag, $1)=
7259
7767
_LT_TAGVAR(module_expsym_cmds, $1)=
7260
7768
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7261
7769
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7770
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7771
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7262
7772
_LT_TAGVAR(no_undefined_flag, $1)=
7263
7773
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7264
7774
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7298
7808
  # Allow CC to be a program name with arguments.
7299
7809
  lt_save_CC="$CC"
7300
7810
  lt_save_GCC=$GCC
 
7811
  lt_save_CFLAGS=$CFLAGS
7301
7812
  CC=${F77-"f77"}
 
7813
  CFLAGS=$FFLAGS
7302
7814
  compiler=$CC
7303
7815
  _LT_TAGVAR(compiler, $1)=$CC
7304
7816
  _LT_CC_BASENAME([$compiler])
7352
7864
 
7353
7865
  GCC=$lt_save_GCC
7354
7866
  CC="$lt_save_CC"
 
7867
  CFLAGS="$lt_save_CFLAGS"
7355
7868
fi # test "$_lt_disable_F77" != yes
7356
7869
 
7357
7870
AC_LANG_POP
7358
7871
])# _LT_LANG_F77_CONFIG
7359
7872
 
7360
7873
 
7361
 
# _LT_PROG_FC
7362
 
# -----------
7363
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7364
 
# if there is no fortran compiler, we have our own version here.
7365
 
m4_defun([_LT_PROG_FC],
7366
 
[
7367
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7368
 
AC_PROG_FC
7369
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7370
 
  _lt_disable_FC=yes
7371
 
fi
7372
 
popdef([AC_MSG_ERROR])
7373
 
])# _LT_PROG_FC
7374
 
 
7375
 
dnl aclocal-1.4 backwards compatibility:
7376
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7377
 
 
7378
 
 
7379
7874
# _LT_LANG_FC_CONFIG([TAG])
7380
7875
# -------------------------
7381
7876
# Ensure that the configuration variables for a Fortran compiler are
7382
7877
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7383
7878
# to write the compiler configuration to `libtool'.
7384
7879
m4_defun([_LT_LANG_FC_CONFIG],
7385
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7386
 
AC_LANG_PUSH(Fortran)
 
7880
[AC_LANG_PUSH(Fortran)
 
7881
 
 
7882
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7883
  _lt_disable_FC=yes
 
7884
fi
7387
7885
 
7388
7886
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7389
7887
_LT_TAGVAR(allow_undefined_flag, $1)=
7402
7900
_LT_TAGVAR(module_expsym_cmds, $1)=
7403
7901
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7404
7902
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7903
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7904
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7405
7905
_LT_TAGVAR(no_undefined_flag, $1)=
7406
7906
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7407
7907
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7441
7941
  # Allow CC to be a program name with arguments.
7442
7942
  lt_save_CC="$CC"
7443
7943
  lt_save_GCC=$GCC
 
7944
  lt_save_CFLAGS=$CFLAGS
7444
7945
  CC=${FC-"f95"}
 
7946
  CFLAGS=$FCFLAGS
7445
7947
  compiler=$CC
7446
7948
  GCC=$ac_cv_fc_compiler_gnu
7447
7949
 
7497
7999
  fi # test -n "$compiler"
7498
8000
 
7499
8001
  GCC=$lt_save_GCC
7500
 
  CC="$lt_save_CC"
 
8002
  CC=$lt_save_CC
 
8003
  CFLAGS=$lt_save_CFLAGS
7501
8004
fi # test "$_lt_disable_FC" != yes
7502
8005
 
7503
8006
AC_LANG_POP
7534
8037
_LT_LINKER_BOILERPLATE
7535
8038
 
7536
8039
# Allow CC to be a program name with arguments.
7537
 
lt_save_CC="$CC"
 
8040
lt_save_CC=$CC
 
8041
lt_save_CFLAGS=$CFLAGS
7538
8042
lt_save_GCC=$GCC
7539
8043
GCC=yes
7540
8044
CC=${GCJ-"gcj"}
 
8045
CFLAGS=$GCJFLAGS
7541
8046
compiler=$CC
7542
8047
_LT_TAGVAR(compiler, $1)=$CC
7543
8048
_LT_TAGVAR(LD, $1)="$LD"
7547
8052
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7548
8053
 
7549
8054
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8055
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8056
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7550
8057
 
7551
8058
if test -n "$compiler"; then
7552
8059
  _LT_COMPILER_NO_RTTI($1)
7562
8069
AC_LANG_RESTORE
7563
8070
 
7564
8071
GCC=$lt_save_GCC
7565
 
CC="$lt_save_CC"
 
8072
CC=$lt_save_CC
 
8073
CFLAGS=$lt_save_CFLAGS
7566
8074
])# _LT_LANG_GCJ_CONFIG
7567
8075
 
7568
8076
 
7597
8105
 
7598
8106
# Allow CC to be a program name with arguments.
7599
8107
lt_save_CC="$CC"
 
8108
lt_save_CFLAGS=$CFLAGS
7600
8109
lt_save_GCC=$GCC
7601
8110
GCC=
7602
8111
CC=${RC-"windres"}
 
8112
CFLAGS=
7603
8113
compiler=$CC
7604
8114
_LT_TAGVAR(compiler, $1)=$CC
7605
8115
_LT_CC_BASENAME([$compiler])
7612
8122
 
7613
8123
GCC=$lt_save_GCC
7614
8124
AC_LANG_RESTORE
7615
 
CC="$lt_save_CC"
 
8125
CC=$lt_save_CC
 
8126
CFLAGS=$lt_save_CFLAGS
7616
8127
])# _LT_LANG_RC_CONFIG
7617
8128
 
7618
8129
 
7671
8182
AC_SUBST([OBJDUMP])
7672
8183
])
7673
8184
 
 
8185
# _LT_DECL_DLLTOOL
 
8186
# ----------------
 
8187
# Ensure DLLTOOL variable is set.
 
8188
m4_defun([_LT_DECL_DLLTOOL],
 
8189
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8190
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8191
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8192
AC_SUBST([DLLTOOL])
 
8193
])
7674
8194
 
7675
8195
# _LT_DECL_SED
7676
8196
# ------------
7762
8282
# Try some XSI features
7763
8283
xsi_shell=no
7764
8284
( _lt_dummy="a/b/c"
7765
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7766
 
      = c,a/b,, \
 
8285
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8286
      = c,a/b,b/c, \
7767
8287
    && eval 'test $(( 1 + 1 )) -eq 2 \
7768
8288
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7769
8289
  && xsi_shell=yes
7802
8322
])# _LT_CHECK_SHELL_FEATURES
7803
8323
 
7804
8324
 
7805
 
# _LT_PROG_XSI_SHELLFNS
7806
 
# ---------------------
7807
 
# Bourne and XSI compatible variants of some useful shell functions.
7808
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7809
 
[case $xsi_shell in
7810
 
  yes)
7811
 
    cat << \_LT_EOF >> "$cfgfile"
7812
 
 
7813
 
# func_dirname file append nondir_replacement
7814
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7815
 
# otherwise set result to NONDIR_REPLACEMENT.
7816
 
func_dirname ()
7817
 
{
7818
 
  case ${1} in
7819
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7820
 
    *  ) func_dirname_result="${3}" ;;
7821
 
  esac
7822
 
}
7823
 
 
7824
 
# func_basename file
7825
 
func_basename ()
7826
 
{
7827
 
  func_basename_result="${1##*/}"
7828
 
}
7829
 
 
7830
 
# func_dirname_and_basename file append nondir_replacement
7831
 
# perform func_basename and func_dirname in a single function
7832
 
# call:
7833
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7834
 
#             add APPEND to the result, otherwise set result
7835
 
#             to NONDIR_REPLACEMENT.
7836
 
#             value returned in "$func_dirname_result"
7837
 
#   basename: Compute filename of FILE.
7838
 
#             value retuned in "$func_basename_result"
7839
 
# Implementation must be kept synchronized with func_dirname
7840
 
# and func_basename. For efficiency, we do not delegate to
7841
 
# those functions but instead duplicate the functionality here.
7842
 
func_dirname_and_basename ()
7843
 
{
7844
 
  case ${1} in
7845
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7846
 
    *  ) func_dirname_result="${3}" ;;
7847
 
  esac
7848
 
  func_basename_result="${1##*/}"
7849
 
}
7850
 
 
7851
 
# func_stripname prefix suffix name
7852
 
# strip PREFIX and SUFFIX off of NAME.
7853
 
# PREFIX and SUFFIX must not contain globbing or regex special
7854
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7855
 
# dot (in which case that matches only a dot).
7856
 
func_stripname ()
7857
 
{
7858
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7859
 
  # positional parameters, so assign one to ordinary parameter first.
7860
 
  func_stripname_result=${3}
7861
 
  func_stripname_result=${func_stripname_result#"${1}"}
7862
 
  func_stripname_result=${func_stripname_result%"${2}"}
7863
 
}
7864
 
 
7865
 
# func_opt_split
7866
 
func_opt_split ()
7867
 
{
7868
 
  func_opt_split_opt=${1%%=*}
7869
 
  func_opt_split_arg=${1#*=}
7870
 
}
7871
 
 
7872
 
# func_lo2o object
7873
 
func_lo2o ()
7874
 
{
7875
 
  case ${1} in
7876
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7877
 
    *)    func_lo2o_result=${1} ;;
7878
 
  esac
7879
 
}
7880
 
 
7881
 
# func_xform libobj-or-source
7882
 
func_xform ()
7883
 
{
7884
 
  func_xform_result=${1%.*}.lo
7885
 
}
7886
 
 
7887
 
# func_arith arithmetic-term...
7888
 
func_arith ()
7889
 
{
7890
 
  func_arith_result=$(( $[*] ))
7891
 
}
7892
 
 
7893
 
# func_len string
7894
 
# STRING may not start with a hyphen.
7895
 
func_len ()
7896
 
{
7897
 
  func_len_result=${#1}
7898
 
}
7899
 
 
7900
 
_LT_EOF
7901
 
    ;;
7902
 
  *) # Bourne compatible functions.
7903
 
    cat << \_LT_EOF >> "$cfgfile"
7904
 
 
7905
 
# func_dirname file append nondir_replacement
7906
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7907
 
# otherwise set result to NONDIR_REPLACEMENT.
7908
 
func_dirname ()
7909
 
{
7910
 
  # Extract subdirectory from the argument.
7911
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7912
 
  if test "X$func_dirname_result" = "X${1}"; then
7913
 
    func_dirname_result="${3}"
7914
 
  else
7915
 
    func_dirname_result="$func_dirname_result${2}"
7916
 
  fi
7917
 
}
7918
 
 
7919
 
# func_basename file
7920
 
func_basename ()
7921
 
{
7922
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7923
 
}
7924
 
 
7925
 
dnl func_dirname_and_basename
7926
 
dnl A portable version of this function is already defined in general.m4sh
7927
 
dnl so there is no need for it here.
7928
 
 
7929
 
# func_stripname prefix suffix name
7930
 
# strip PREFIX and SUFFIX off of NAME.
7931
 
# PREFIX and SUFFIX must not contain globbing or regex special
7932
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7933
 
# dot (in which case that matches only a dot).
7934
 
# func_strip_suffix prefix name
7935
 
func_stripname ()
7936
 
{
7937
 
  case ${2} in
7938
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7939
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7940
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7941
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7942
 
  esac
7943
 
}
7944
 
 
7945
 
# sed scripts:
7946
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7947
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7948
 
 
7949
 
# func_opt_split
7950
 
func_opt_split ()
7951
 
{
7952
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7953
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7954
 
}
7955
 
 
7956
 
# func_lo2o object
7957
 
func_lo2o ()
7958
 
{
7959
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7960
 
}
7961
 
 
7962
 
# func_xform libobj-or-source
7963
 
func_xform ()
7964
 
{
7965
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7966
 
}
7967
 
 
7968
 
# func_arith arithmetic-term...
7969
 
func_arith ()
7970
 
{
7971
 
  func_arith_result=`expr "$[@]"`
7972
 
}
7973
 
 
7974
 
# func_len string
7975
 
# STRING may not start with a hyphen.
7976
 
func_len ()
7977
 
{
7978
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7979
 
}
7980
 
 
7981
 
_LT_EOF
7982
 
esac
7983
 
 
7984
 
case $lt_shell_append in
7985
 
  yes)
7986
 
    cat << \_LT_EOF >> "$cfgfile"
7987
 
 
7988
 
# func_append var value
7989
 
# Append VALUE to the end of shell variable VAR.
7990
 
func_append ()
7991
 
{
7992
 
  eval "$[1]+=\$[2]"
7993
 
}
7994
 
_LT_EOF
7995
 
    ;;
7996
 
  *)
7997
 
    cat << \_LT_EOF >> "$cfgfile"
7998
 
 
7999
 
# func_append var value
8000
 
# Append VALUE to the end of shell variable VAR.
8001
 
func_append ()
8002
 
{
8003
 
  eval "$[1]=\$$[1]\$[2]"
8004
 
}
8005
 
 
8006
 
_LT_EOF
8007
 
    ;;
8008
 
  esac
8009
 
])
 
8325
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8326
# ------------------------------------------------------
 
8327
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8328
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8329
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8330
[dnl {
 
8331
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8332
$1 ()\
 
8333
{\
 
8334
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8335
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8336
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8337
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8338
test 0 -eq $? || _lt_function_replace_fail=:
 
8339
])
 
8340
 
 
8341
 
 
8342
# _LT_PROG_REPLACE_SHELLFNS
 
8343
# -------------------------
 
8344
# Replace existing portable implementations of several shell functions with
 
8345
# equivalent extended shell implementations where those features are available..
 
8346
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8347
[if test x"$xsi_shell" = xyes; then
 
8348
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8349
    case ${1} in
 
8350
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8351
      *  ) func_dirname_result="${3}" ;;
 
8352
    esac])
 
8353
 
 
8354
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8355
    func_basename_result="${1##*/}"])
 
8356
 
 
8357
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8358
    case ${1} in
 
8359
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8360
      *  ) func_dirname_result="${3}" ;;
 
8361
    esac
 
8362
    func_basename_result="${1##*/}"])
 
8363
 
 
8364
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8365
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8366
    # positional parameters, so assign one to ordinary parameter first.
 
8367
    func_stripname_result=${3}
 
8368
    func_stripname_result=${func_stripname_result#"${1}"}
 
8369
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8370
 
 
8371
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8372
    func_split_long_opt_name=${1%%=*}
 
8373
    func_split_long_opt_arg=${1#*=}])
 
8374
 
 
8375
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8376
    func_split_short_opt_arg=${1#??}
 
8377
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8378
 
 
8379
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8380
    case ${1} in
 
8381
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8382
      *)    func_lo2o_result=${1} ;;
 
8383
    esac])
 
8384
 
 
8385
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8386
 
 
8387
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8388
 
 
8389
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8390
fi
 
8391
 
 
8392
if test x"$lt_shell_append" = xyes; then
 
8393
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8394
 
 
8395
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8396
    func_quote_for_eval "${2}"
 
8397
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8398
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8399
 
 
8400
  # Save a `func_append' function call where possible by direct use of '+='
 
8401
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8402
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8403
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8404
  test 0 -eq $? || _lt_function_replace_fail=:
 
8405
else
 
8406
  # Save a `func_append' function call even when '+=' is not available
 
8407
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8408
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8409
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8410
  test 0 -eq $? || _lt_function_replace_fail=:
 
8411
fi
 
8412
 
 
8413
if test x"$_lt_function_replace_fail" = x":"; then
 
8414
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8415
fi
 
8416
])
 
8417
 
 
8418
# _LT_PATH_CONVERSION_FUNCTIONS
 
8419
# -----------------------------
 
8420
# Determine which file name conversion functions should be used by
 
8421
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8422
# for certain cross-compile configurations and native mingw.
 
8423
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8424
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8425
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8426
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8427
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8428
[case $host in
 
8429
  *-*-mingw* )
 
8430
    case $build in
 
8431
      *-*-mingw* ) # actually msys
 
8432
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8433
        ;;
 
8434
      *-*-cygwin* )
 
8435
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8436
        ;;
 
8437
      * ) # otherwise, assume *nix
 
8438
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8439
        ;;
 
8440
    esac
 
8441
    ;;
 
8442
  *-*-cygwin* )
 
8443
    case $build in
 
8444
      *-*-mingw* ) # actually msys
 
8445
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8446
        ;;
 
8447
      *-*-cygwin* )
 
8448
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8449
        ;;
 
8450
      * ) # otherwise, assume *nix
 
8451
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8452
        ;;
 
8453
    esac
 
8454
    ;;
 
8455
  * ) # unhandled hosts (and "normal" native builds)
 
8456
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8457
    ;;
 
8458
esac
 
8459
])
 
8460
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8461
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8462
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8463
         [0], [convert $build file names to $host format])dnl
 
8464
 
 
8465
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8466
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8467
[#assume ordinary cross tools, or native build.
 
8468
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8469
case $host in
 
8470
  *-*-mingw* )
 
8471
    case $build in
 
8472
      *-*-mingw* ) # actually msys
 
8473
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8474
        ;;
 
8475
    esac
 
8476
    ;;
 
8477
esac
 
8478
])
 
8479
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8480
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8481
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8482
         [0], [convert $build files to toolchain format])dnl
 
8483
])# _LT_PATH_CONVERSION_FUNCTIONS
8010
8484
 
8011
8485
# Helper functions for option handling.                    -*- Autoconf -*-
8012
8486
#
8013
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8487
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
8488
#   Inc.
8014
8489
#   Written by Gary V. Vaughan, 2004
8015
8490
#
8016
8491
# This file is free software; the Free Software Foundation gives
8017
8492
# unlimited permission to copy and/or distribute it, with or without
8018
8493
# modifications, as long as this notice is preserved.
8019
8494
 
8020
 
# serial 6 ltoptions.m4
 
8495
# serial 7 ltoptions.m4
8021
8496
 
8022
8497
# This is to help aclocal find these macros, as it can't see m4_define.
8023
8498
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8132
8607
[enable_win32_dll=yes
8133
8608
 
8134
8609
case $host in
8135
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8610
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8136
8611
  AC_CHECK_TOOL(AS, as, false)
8137
8612
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8138
8613
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8140
8615
esac
8141
8616
 
8142
8617
test -z "$AS" && AS=as
8143
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8618
_LT_DECL([], [AS],      [1], [Assembler program])dnl
8144
8619
 
8145
8620
test -z "$DLLTOOL" && DLLTOOL=dlltool
8146
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8621
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8147
8622
 
8148
8623
test -z "$OBJDUMP" && OBJDUMP=objdump
8149
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8624
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8150
8625
])# win32-dll
8151
8626
 
8152
8627
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8504
8979
# unlimited permission to copy and/or distribute it, with or without
8505
8980
# modifications, as long as this notice is preserved.
8506
8981
 
8507
 
# Generated from ltversion.in.
 
8982
# @configure_input@
8508
8983
 
8509
 
# serial 3017 ltversion.m4
 
8984
# serial 3293 ltversion.m4
8510
8985
# This file is part of GNU Libtool
8511
8986
 
8512
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8513
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
8987
m4_define([LT_PACKAGE_VERSION], [2.4])
 
8988
m4_define([LT_PACKAGE_REVISION], [1.3293])
8514
8989
 
8515
8990
AC_DEFUN([LTVERSION_VERSION],
8516
 
[macro_version='2.2.6b'
8517
 
macro_revision='1.3017'
 
8991
[macro_version='2.4'
 
8992
macro_revision='1.3293'
8518
8993
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8519
8994
_LT_DECL(, macro_revision, 0)
8520
8995
])
8521
8996
 
8522
8997
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8523
8998
#
8524
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8999
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8525
9000
#   Written by Scott James Remnant, 2004.
8526
9001
#
8527
9002
# This file is free software; the Free Software Foundation gives
8528
9003
# unlimited permission to copy and/or distribute it, with or without
8529
9004
# modifications, as long as this notice is preserved.
8530
9005
 
8531
 
# serial 4 lt~obsolete.m4
 
9006
# serial 5 lt~obsolete.m4
8532
9007
 
8533
9008
# These exist entirely to fool aclocal when bootstrapping libtool.
8534
9009
#
8598
9073
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8599
9074
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8600
9075
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8601
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8602
9076
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8603
9077
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8604
9078
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8611
9085
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8612
9086
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8613
9087
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
9088
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
9089
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
9090
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
9091
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
9092
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
9093
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
9094
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8614
9095
 
8615
9096
# nls.m4 serial 5 (gettext-0.18)
8616
9097
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
8673
9154
# ----------------------------------
8674
9155
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8675
9156
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8676
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
9157
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
9158
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8677
9159
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8678
9160
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8679
9161
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8719
9201
    pkg_cv_[]$1="$$1"
8720
9202
 elif test -n "$PKG_CONFIG"; then
8721
9203
    PKG_CHECK_EXISTS([$3],
8722
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9204
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
9205
                      test "x$?" != "x0" && pkg_failed=yes ],
8723
9206
                     [pkg_failed=yes])
8724
9207
 else
8725
9208
    pkg_failed=untried
8767
9250
        AC_MSG_RESULT([no])
8768
9251
        _PKG_SHORT_ERRORS_SUPPORTED
8769
9252
        if test $_pkg_short_errors_supported = yes; then
8770
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9253
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
8771
9254
        else 
8772
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9255
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
8773
9256
        fi
8774
9257
        # Put the nasty error message in config.log where it belongs
8775
9258
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD