~serge-hallyn/ubuntu/oneiric/libvirt/fix-shutdown

« back to all changes in this revision

Viewing changes to m4/libtool.m4

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2010-11-02 16:26:51 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101102162651-aq8tnbz58mdf01bf
Tags: 0.8.5-0ubuntu1
* New upstream release.
* Removed a slew of patches which have been
  applied upstream since 0.8.3.
  - 9012-apparmor-extra-tests.patch
  - 9013-apparmor-chardev.patch
  - 9015-Add-ubd-to-the-list-of-disk-prefixes.patch
  - 9016-Close-fd-s-of-persistent-tap-devices.patch
  - 9017-Make-sure-all-command-line-arguments-get-passed-to-U.patch
  - 9018-Make-umlConnectTapDevice-ask-brAddTap-for-a-persiste.patch
  - 9019-uml-fix-logic-bug-in-checking-reply-length.patch
  - 9021-Allow-chardev-of-type-file-for-UML-domains.patch
  - 9022-Rename-qemudShrinkDisks-to-virDomainDiskRemove-and-m.patch
  - 9023-Support-virDomainAttachDevice-and-virDomainDetachDev.patch
  - 9024-Explicitly-pass-uml_dir-argument-to-user-mode-linux.patch
  - 9025-Add-nwfilter-support-to-UML-driver.patch
  - 9026-Rebuild-network-filter-for-UML-guests-on-updates.patch
  - 9027-Make-newfilter-xml-transformations-endian-safe.patch
  - 9028-lp628055.patch
* Updated 9002-better_default_uri_virsh.patch to use vshStrdup,
  as now required in that file.  (use of strdup now causes compilation
  to fail)
* Removed 9008-run-as-root-by-default.patch, which has not been
  applied for awhile now, with no ill effects.
* Simple refresh of:
  - 0001-remove-RHism.diff.patch
  - 0003-allow-libvirt-group-to-access-the-socket.patch
  - 0004-fix-Debian-specific-path-to-hvm-loader.patch
  - 0006-patch-qemuMonitorTextGetMigrationStatus-to-intercept.patch
  - 9000-delayed_iff_up_bridge.patch
  - 9001-dont_clobber_existing_bridges.patch
  - 9003-better-default-arch.patch
  - 9004-libvirtd-group-name.patch
  - 9005-increase-unix-socket-timeout.patch
  - 9006-default-config-test-case.patch
  - 9009-autodetect-nc-params.patch
  - 9010-dont-disable-ipv6.patch
  - 9011-move-ebtables-script.patch
  - 9014-skip-nodeinfotest.patch
  - 9020-lp545795.patch
* Create a patch to include stdint.h so lxc_container.h, which
  #includes linux/fs.h, doesn't trip up on undefined uint64_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2
2
#
3
3
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
4
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
5
#                 Inc.
5
6
#   Written by Gordon Matzigkeit, 1996
6
7
#
7
8
# This file is free software; the Free Software Foundation gives
10
11
 
11
12
m4_define([_LT_COPYING], [dnl
12
13
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
14
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
15
#                 Inc.
14
16
#   Written by Gordon Matzigkeit, 1996
15
17
#
16
18
#   This file is part of GNU Libtool.
37
39
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38
40
])
39
41
 
40
 
# serial 56 LT_INIT
 
42
# serial 57 LT_INIT
41
43
 
42
44
 
43
45
# LT_PREREQ(VERSION)
66
68
# ------------------
67
69
AC_DEFUN([LT_INIT],
68
70
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
71
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
69
72
AC_BEFORE([$0], [LT_LANG])dnl
70
73
AC_BEFORE([$0], [LT_OUTPUT])dnl
71
74
AC_BEFORE([$0], [LTDL_INIT])dnl
82
85
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
83
86
m4_require([_LT_PROG_LTMAIN])dnl
84
87
 
 
88
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
89
 
85
90
dnl Parse OPTIONS
86
91
_LT_SET_OPTIONS([$0], [$1])
87
92
 
118
123
    *) break;;
119
124
  esac
120
125
done
121
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
126
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
122
127
])
123
128
 
124
129
 
138
143
m4_defun([_LT_SETUP],
139
144
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
140
145
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
146
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
147
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
148
 
141
149
_LT_DECL([], [host_alias], [0], [The host system])dnl
142
150
_LT_DECL([], [host], [0])dnl
143
151
_LT_DECL([], [host_os], [0])dnl
179
187
_LT_CHECK_OBJDIR
180
188
 
181
189
m4_require([_LT_TAG_COMPILER])dnl
182
 
_LT_PROG_ECHO_BACKSLASH
183
190
 
184
191
case $host_os in
185
192
aix3*)
193
200
  ;;
194
201
esac
195
202
 
196
 
# Sed substitution that helps us do robust quoting.  It backslashifies
197
 
# metacharacters that are still active within double-quoted strings.
198
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
199
 
 
200
 
# Same as above, but do not quote variable references.
201
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
202
 
 
203
 
# Sed substitution to delay expansion of an escaped shell variable in a
204
 
# double_quote_subst'ed string.
205
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
206
 
 
207
 
# Sed substitution to delay expansion of an escaped single quote.
208
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
209
 
 
210
 
# Sed substitution to avoid accidental globbing in evaled expressions
211
 
no_glob_subst='s/\*/\\\*/g'
212
 
 
213
203
# Global variables:
214
204
ofile=libtool
215
205
can_build_shared=yes
250
240
])# _LT_SETUP
251
241
 
252
242
 
 
243
# _LT_PREPARE_SED_QUOTE_VARS
 
244
# --------------------------
 
245
# Define a few sed substitution that help us do robust quoting.
 
246
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
247
[# Backslashify metacharacters that are still active within
 
248
# double-quoted strings.
 
249
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
250
 
 
251
# Same as above, but do not quote variable references.
 
252
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
253
 
 
254
# Sed substitution to delay expansion of an escaped shell variable in a
 
255
# double_quote_subst'ed string.
 
256
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
257
 
 
258
# Sed substitution to delay expansion of an escaped single quote.
 
259
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
260
 
 
261
# Sed substitution to avoid accidental globbing in evaled expressions
 
262
no_glob_subst='s/\*/\\\*/g'
 
263
])
 
264
 
253
265
# _LT_PROG_LTMAIN
254
266
# ---------------
255
267
# Note that this code is called both from `configure', and `config.status'
408
420
# declaration there will have the same value as in `configure'.  VARNAME
409
421
# must have a single quote delimited value for this to work.
410
422
m4_define([_LT_CONFIG_STATUS_DECLARE],
411
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
423
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
412
424
 
413
425
 
414
426
# _LT_CONFIG_STATUS_DECLARATIONS
418
430
# embedded single quotes properly.  In configure, this macro expands
419
431
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
420
432
#
421
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
433
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
422
434
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
423
435
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
424
436
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
517
529
LTCFLAGS='$LTCFLAGS'
518
530
compiler='$compiler_DEFAULT'
519
531
 
 
532
# A function that is used when there is no print builtin or printf.
 
533
func_fallback_echo ()
 
534
{
 
535
  eval 'cat <<_LTECHO_EOF
 
536
\$[]1
 
537
_LTECHO_EOF'
 
538
}
 
539
 
520
540
# Quote evaled strings.
521
541
for var in lt_decl_all_varnames([[ \
522
542
]], lt_decl_quote_varnames); do
523
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
543
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
524
544
    *[[\\\\\\\`\\"\\\$]]*)
525
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
545
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
526
546
      ;;
527
547
    *)
528
548
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
533
553
# Double-quote double-evaled strings.
534
554
for var in lt_decl_all_varnames([[ \
535
555
]], lt_decl_dquote_varnames); do
536
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
556
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
537
557
    *[[\\\\\\\`\\"\\\$]]*)
538
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
558
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
539
559
      ;;
540
560
    *)
541
561
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
543
563
    esac
544
564
done
545
565
 
546
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
547
 
case \$lt_ECHO in
548
 
*'\\\[$]0 --fallback-echo"')dnl "
549
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
550
 
  ;;
551
 
esac
552
 
 
553
566
_LT_OUTPUT_LIBTOOL_INIT
554
567
])
555
568
 
 
569
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
570
# ------------------------------------
 
571
# Generate a child script FILE with all initialization necessary to
 
572
# reuse the environment learned by the parent script, and make the
 
573
# file executable.  If COMMENT is supplied, it is inserted after the
 
574
# `#!' sequence but before initialization text begins.  After this
 
575
# macro, additional text can be appended to FILE to form the body of
 
576
# the child script.  The macro ends with non-zero status if the
 
577
# file could not be fully written (such as if the disk is full).
 
578
m4_ifdef([AS_INIT_GENERATED],
 
579
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
580
[m4_defun([_LT_GENERATED_FILE_INIT],
 
581
[m4_require([AS_PREPARE])]dnl
 
582
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
583
[lt_write_fail=0
 
584
cat >$1 <<_ASEOF || lt_write_fail=1
 
585
#! $SHELL
 
586
# Generated by $as_me.
 
587
$2
 
588
SHELL=\${CONFIG_SHELL-$SHELL}
 
589
export SHELL
 
590
_ASEOF
 
591
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
592
AS_SHELL_SANITIZE
 
593
_AS_PREPARE
 
594
exec AS_MESSAGE_FD>&1
 
595
_ASEOF
 
596
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
597
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
556
598
 
557
599
# LT_OUTPUT
558
600
# ---------
562
604
AC_DEFUN([LT_OUTPUT],
563
605
[: ${CONFIG_LT=./config.lt}
564
606
AC_MSG_NOTICE([creating $CONFIG_LT])
565
 
cat >"$CONFIG_LT" <<_LTEOF
566
 
#! $SHELL
567
 
# Generated by $as_me.
568
 
# Run this file to recreate a libtool stub with the current configuration.
 
607
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
608
[# Run this file to recreate a libtool stub with the current configuration.])
569
609
 
 
610
cat >>"$CONFIG_LT" <<\_LTEOF
570
611
lt_cl_silent=false
571
 
SHELL=\${CONFIG_SHELL-$SHELL}
572
 
_LTEOF
573
 
 
574
 
cat >>"$CONFIG_LT" <<\_LTEOF
575
 
AS_SHELL_SANITIZE
576
 
_AS_PREPARE
577
 
 
578
 
exec AS_MESSAGE_FD>&1
579
612
exec AS_MESSAGE_LOG_FD>>config.log
580
613
{
581
614
  echo
601
634
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
602
635
configured by $[0], generated by m4_PACKAGE_STRING.
603
636
 
604
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
637
Copyright (C) 2010 Free Software Foundation, Inc.
605
638
This config.lt script is free software; the Free Software Foundation
606
639
gives unlimited permision to copy, distribute and modify it."
607
640
 
646
679
# appending to config.log, which fails on DOS, as config.log is still kept
647
680
# open by configure.  Here we exec the FD to /dev/null, effectively closing
648
681
# config.log, so it can be properly (re)opened and appended to by config.lt.
649
 
if test "$no_create" != yes; then
650
 
  lt_cl_success=:
651
 
  test "$silent" = yes &&
652
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
653
 
  exec AS_MESSAGE_LOG_FD>/dev/null
654
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
655
 
  exec AS_MESSAGE_LOG_FD>>config.log
656
 
  $lt_cl_success || AS_EXIT(1)
657
 
fi
 
682
lt_cl_success=:
 
683
test "$silent" = yes &&
 
684
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
685
exec AS_MESSAGE_LOG_FD>/dev/null
 
686
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
687
exec AS_MESSAGE_LOG_FD>>config.log
 
688
$lt_cl_success || AS_EXIT(1)
658
689
])# LT_OUTPUT
659
690
 
660
691
 
831
862
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
832
863
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
833
864
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
865
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
834
866
dnl aclocal-1.4 backwards compatibility:
835
867
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
836
868
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
837
869
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
838
870
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
871
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
839
872
 
840
873
 
841
874
# _LT_TAG_COMPILER
940
973
        [lt_cv_ld_exported_symbols_list=no])
941
974
        LDFLAGS="$save_LDFLAGS"
942
975
    ])
 
976
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
977
      [lt_cv_ld_force_load=no
 
978
      cat > conftest.c << _LT_EOF
 
979
int forced_loaded() { return 2;}
 
980
_LT_EOF
 
981
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
982
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
983
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
984
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
985
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
986
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
987
      cat > conftest.c << _LT_EOF
 
988
int main() { return 0;}
 
989
_LT_EOF
 
990
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
991
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
992
      _lt_result=$?
 
993
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
994
        lt_cv_ld_force_load=yes
 
995
      else
 
996
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
997
      fi
 
998
        rm -f conftest.err libconftest.a conftest conftest.c
 
999
        rm -rf conftest.dSYM
 
1000
    ])
943
1001
    case $host_os in
944
1002
    rhapsody* | darwin1.[[012]])
945
1003
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
967
1025
    else
968
1026
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
969
1027
    fi
970
 
    if test "$DSYMUTIL" != ":"; then
 
1028
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
971
1029
      _lt_dsymutil='~$DSYMUTIL $lib || :'
972
1030
    else
973
1031
      _lt_dsymutil=
987
1045
  _LT_TAGVAR(hardcode_direct, $1)=no
988
1046
  _LT_TAGVAR(hardcode_automatic, $1)=yes
989
1047
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
990
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1048
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1049
    _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\"`'
 
1050
  else
 
1051
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1052
  fi
991
1053
  _LT_TAGVAR(link_all_deplibs, $1)=yes
992
1054
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
993
1055
  case $cc_basename in
995
1057
     *) _lt_dar_can_shared=$GCC ;;
996
1058
  esac
997
1059
  if test "$_lt_dar_can_shared" = "yes"; then
998
 
    output_verbose_link_cmd=echo
 
1060
    output_verbose_link_cmd=func_echo_all
999
1061
    _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}"
1000
1062
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1001
1063
    _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}"
1041
1103
# _LT_SHELL_INIT(ARG)
1042
1104
# -------------------
1043
1105
m4_define([_LT_SHELL_INIT],
1044
 
[ifdef([AC_DIVERSION_NOTICE],
1045
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1046
 
         [AC_DIVERT_PUSH(NOTICE)])
1047
 
$1
1048
 
AC_DIVERT_POP
1049
 
])# _LT_SHELL_INIT
 
1106
[m4_divert_text([M4SH-INIT], [$1
 
1107
])])# _LT_SHELL_INIT
 
1108
 
1050
1109
 
1051
1110
 
1052
1111
# _LT_PROG_ECHO_BACKSLASH
1053
1112
# -----------------------
1054
 
# Add some code to the start of the generated configure script which
1055
 
# will find an echo command which doesn't interpret backslashes.
 
1113
# Find how we can fake an echo command that does not interpret backslash.
 
1114
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1115
# of the generated configure script which will find a shell with a builtin
 
1116
# printf (which we can use as an echo command).
1056
1117
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1057
 
[_LT_SHELL_INIT([
1058
 
# Check that we are running under the correct shell.
1059
 
SHELL=${CONFIG_SHELL-/bin/sh}
1060
 
 
1061
 
case X$lt_ECHO in
1062
 
X*--fallback-echo)
1063
 
  # Remove one level of quotation (which was required for Make).
1064
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1065
 
  ;;
 
1118
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1119
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1120
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1121
 
 
1122
AC_MSG_CHECKING([how to print strings])
 
1123
# Test print first, because it will be a builtin if present.
 
1124
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
1125
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1126
  ECHO='print -r --'
 
1127
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1128
  ECHO='printf %s\n'
 
1129
else
 
1130
  # Use this function as a fallback that always works.
 
1131
  func_fallback_echo ()
 
1132
  {
 
1133
    eval 'cat <<_LTECHO_EOF
 
1134
$[]1
 
1135
_LTECHO_EOF'
 
1136
  }
 
1137
  ECHO='func_fallback_echo'
 
1138
fi
 
1139
 
 
1140
# func_echo_all arg...
 
1141
# Invoke $ECHO with all args, space-separated.
 
1142
func_echo_all ()
 
1143
{
 
1144
    $ECHO "$*" 
 
1145
}
 
1146
 
 
1147
case "$ECHO" in
 
1148
  printf*) AC_MSG_RESULT([printf]) ;;
 
1149
  print*) AC_MSG_RESULT([print -r]) ;;
 
1150
  *) AC_MSG_RESULT([cat]) ;;
1066
1151
esac
1067
1152
 
1068
 
ECHO=${lt_ECHO-echo}
1069
 
if test "X[$]1" = X--no-reexec; then
1070
 
  # Discard the --no-reexec flag, and continue.
1071
 
  shift
1072
 
elif test "X[$]1" = X--fallback-echo; then
1073
 
  # Avoid inline document here, it may be left over
1074
 
  :
1075
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1076
 
  # Yippee, $ECHO works!
1077
 
  :
1078
 
else
1079
 
  # Restart under the correct shell.
1080
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1081
 
fi
1082
 
 
1083
 
if test "X[$]1" = X--fallback-echo; then
1084
 
  # used as fallback echo
1085
 
  shift
1086
 
  cat <<_LT_EOF
1087
 
[$]*
1088
 
_LT_EOF
1089
 
  exit 0
1090
 
fi
1091
 
 
1092
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1093
 
# if CDPATH is set.
1094
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1095
 
 
1096
 
if test -z "$lt_ECHO"; then
1097
 
  if test "X${echo_test_string+set}" != Xset; then
1098
 
    # find a string as large as possible, as long as the shell can cope with it
1099
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1100
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1101
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1102
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1103
 
      then
1104
 
        break
1105
 
      fi
1106
 
    done
1107
 
  fi
1108
 
 
1109
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1110
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1111
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1112
 
    :
1113
 
  else
1114
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1115
 
    # backslashes.  This makes it impossible to quote backslashes using
1116
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1117
 
    #
1118
 
    # So, first we look for a working echo in the user's PATH.
1119
 
 
1120
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1121
 
    for dir in $PATH /usr/ucb; do
1122
 
      IFS="$lt_save_ifs"
1123
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1124
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1125
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1126
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1127
 
        ECHO="$dir/echo"
1128
 
        break
1129
 
      fi
1130
 
    done
1131
 
    IFS="$lt_save_ifs"
1132
 
 
1133
 
    if test "X$ECHO" = Xecho; then
1134
 
      # We didn't find a better echo, so look for alternatives.
1135
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1136
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1137
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1138
 
        # This shell has a builtin print -r that does the trick.
1139
 
        ECHO='print -r'
1140
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1141
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1142
 
        # If we have ksh, try running configure again with it.
1143
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1144
 
        export ORIGINAL_CONFIG_SHELL
1145
 
        CONFIG_SHELL=/bin/ksh
1146
 
        export CONFIG_SHELL
1147
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1148
 
      else
1149
 
        # Try using printf.
1150
 
        ECHO='printf %s\n'
1151
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1152
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1153
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1154
 
          # Cool, printf works
1155
 
          :
1156
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1157
 
             test "X$echo_testing_string" = 'X\t' &&
1158
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1159
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1160
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1161
 
          export CONFIG_SHELL
1162
 
          SHELL="$CONFIG_SHELL"
1163
 
          export SHELL
1164
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1165
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1166
 
             test "X$echo_testing_string" = 'X\t' &&
1167
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1168
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1169
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1170
 
        else
1171
 
          # maybe with a smaller string...
1172
 
          prev=:
1173
 
 
1174
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1175
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1176
 
            then
1177
 
              break
1178
 
            fi
1179
 
            prev="$cmd"
1180
 
          done
1181
 
 
1182
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1183
 
            echo_test_string=`eval $prev`
1184
 
            export echo_test_string
1185
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1186
 
          else
1187
 
            # Oops.  We lost completely, so just stick with echo.
1188
 
            ECHO=echo
1189
 
          fi
1190
 
        fi
1191
 
      fi
1192
 
    fi
1193
 
  fi
1194
 
fi
1195
 
 
1196
 
# Copy echo and quote the copy suitably for passing to libtool from
1197
 
# the Makefile, instead of quoting the original, which is used later.
1198
 
lt_ECHO=$ECHO
1199
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1200
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1201
 
fi
1202
 
 
1203
 
AC_SUBST(lt_ECHO)
1204
 
])
 
1153
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1154
[_AS_DETECT_SUGGESTED([
 
1155
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1156
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1157
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1158
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1159
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1160
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1161
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1162
 
1205
1163
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1206
 
_LT_DECL([], [ECHO], [1],
1207
 
    [An echo program that does not interpret backslashes])
 
1164
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1208
1165
])# _LT_PROG_ECHO_BACKSLASH
1209
1166
 
1210
1167
 
1236
1193
  ;;
1237
1194
*-*-irix6*)
1238
1195
  # Find out which ABI we are using.
1239
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1196
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1240
1197
  if AC_TRY_EVAL(ac_compile); then
1241
1198
    if test "$lt_cv_prog_gnu_ld" = yes; then
1242
1199
      case `/usr/bin/file conftest.$ac_objext` in
1388
1345
  esac
1389
1346
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1390
1347
fi
 
1348
 
 
1349
case $host_os in
 
1350
  darwin*)
 
1351
    lock_old_archive_extraction=yes ;;
 
1352
  *)
 
1353
    lock_old_archive_extraction=no ;;
 
1354
esac
1391
1355
_LT_DECL([], [old_postinstall_cmds], [2])
1392
1356
_LT_DECL([], [old_postuninstall_cmds], [2])
1393
1357
_LT_TAGDECL([], [old_archive_cmds], [2],
1394
1358
    [Commands used to build an old-style archive])
 
1359
_LT_DECL([], [lock_old_archive_extraction], [0],
 
1360
    [Whether to use a lock for old archive extraction])
1395
1361
])# _LT_CMD_OLD_ARCHIVE
1396
1362
 
1397
1363
 
1416
1382
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1417
1383
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1418
1384
   -e 's:$: $lt_compiler_flag:'`
1419
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1385
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1420
1386
   (eval "$lt_compile" 2>conftest.err)
1421
1387
   ac_status=$?
1422
1388
   cat conftest.err >&AS_MESSAGE_LOG_FD
1423
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1389
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1424
1390
   if (exit $ac_status) && test -s "$ac_outfile"; then
1425
1391
     # The compiler can only warn and ignore the option if not recognized
1426
1392
     # So say no if there are warnings other than the usual output.
1427
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1393
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1428
1394
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1429
1395
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1430
1396
       $2=yes
1464
1430
     if test -s conftest.err; then
1465
1431
       # Append any errors to the config.log.
1466
1432
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1467
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1433
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1468
1434
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1469
1435
       if diff conftest.exp conftest.er2 >/dev/null; then
1470
1436
         $2=yes
1527
1493
    lt_cv_sys_max_cmd_len=8192;
1528
1494
    ;;
1529
1495
 
 
1496
  mint*)
 
1497
    # On MiNT this can take a long time and run out of memory.
 
1498
    lt_cv_sys_max_cmd_len=8192;
 
1499
    ;;
 
1500
 
1530
1501
  amigaos*)
1531
1502
    # On AmigaOS with pdksh, this test takes hours, literally.
1532
1503
    # So we just punt and use a minimum line length of 8192.
1591
1562
      # If test is not a shell built-in, we'll probably end up computing a
1592
1563
      # maximum length that is only half of the actual maximum length, but
1593
1564
      # we can't tell.
1594
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1595
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
1565
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
1566
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1596
1567
              test $i != 17 # 1/2 MB should be enough
1597
1568
      do
1598
1569
        i=`expr $i + 1`
1643
1614
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1644
1615
  lt_status=$lt_dlunknown
1645
1616
  cat > conftest.$ac_ext <<_LT_EOF
1646
 
[#line __oline__ "configure"
 
1617
[#line $LINENO "configure"
1647
1618
#include "confdefs.h"
1648
1619
 
1649
1620
#if HAVE_DLFCN_H
1684
1655
#  endif
1685
1656
#endif
1686
1657
 
1687
 
void fnord() { int i=42;}
 
1658
/* When -fvisbility=hidden is used, assume the code has been annotated
 
1659
   correspondingly for the symbols needed.  */
 
1660
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
1661
void fnord () __attribute__((visibility("default")));
 
1662
#endif
 
1663
 
 
1664
void fnord () { int i=42; }
1688
1665
int main ()
1689
1666
{
1690
1667
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1693
1670
  if (self)
1694
1671
    {
1695
1672
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1696
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
1673
      else
 
1674
        {
 
1675
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
1676
          else puts (dlerror ());
 
1677
        }
1697
1678
      /* dlclose (self); */
1698
1679
    }
1699
1680
  else
1869
1850
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1870
1851
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1871
1852
   -e 's:$: $lt_compiler_flag:'`
1872
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1853
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1873
1854
   (eval "$lt_compile" 2>out/conftest.err)
1874
1855
   ac_status=$?
1875
1856
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1876
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1857
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1877
1858
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1878
1859
   then
1879
1860
     # The compiler can only warn and ignore the option if not recognized
1880
1861
     # So say no if there are warnings
1881
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1862
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1882
1863
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1883
1864
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1884
1865
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2037
2018
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2038
2019
m4_require([_LT_DECL_OBJDUMP])dnl
2039
2020
m4_require([_LT_DECL_SED])dnl
 
2021
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2040
2022
AC_MSG_CHECKING([dynamic linker characteristics])
2041
2023
m4_if([$1],
2042
2024
        [], [
2045
2027
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2046
2028
    *) lt_awk_arg="/^libraries:/" ;;
2047
2029
  esac
2048
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2049
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2030
  case $host_os in
 
2031
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2032
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2033
  esac
 
2034
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2035
  case $lt_search_path_spec in
 
2036
  *\;*)
2050
2037
    # if the path contains ";" then we assume it to be the separator
2051
2038
    # otherwise default to the standard path separator (i.e. ":") - it is
2052
2039
    # assumed that no part of a normal pathname contains ";" but that should
2053
2040
    # okay in the real world where ";" in dirpaths is itself problematic.
2054
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2055
 
  else
2056
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2057
 
  fi
 
2041
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2042
    ;;
 
2043
  *)
 
2044
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2045
    ;;
 
2046
  esac
2058
2047
  # Ok, now we have the path, separated by spaces, we can step through it
2059
2048
  # and add multilib dir if necessary.
2060
2049
  lt_tmp_lt_search_path_spec=
2067
2056
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2068
2057
    fi
2069
2058
  done
2070
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2059
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2071
2060
BEGIN {RS=" "; FS="/|\n";} {
2072
2061
  lt_foo="";
2073
2062
  lt_count=0;
2087
2076
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2088
2077
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2089
2078
}'`
2090
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2079
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2080
  # for these hosts.
 
2081
  case $host_os in
 
2082
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2083
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2084
  esac
 
2085
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2091
2086
else
2092
2087
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2093
2088
fi])
2175
2170
  m68k)
2176
2171
    library_names_spec='$libname.ixlibrary $libname.a'
2177
2172
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2178
 
    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'
 
2173
    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'
2179
2174
    ;;
2180
2175
  esac
2181
2176
  ;;
2228
2223
    cygwin*)
2229
2224
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2230
2225
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2231
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2226
m4_if([$1], [],[
 
2227
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2232
2228
      ;;
2233
2229
    mingw* | cegcc*)
2234
2230
      # MinGW DLLs use traditional 'lib' prefix
2235
2231
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2236
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2237
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2238
 
        # It is most probably a Windows format PATH printed by
2239
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2240
 
        # path with ; separators, and with drive letters. We can handle the
2241
 
        # drive letters (cygwin fileutils understands them), so leave them,
2242
 
        # especially as we might pass files found there to a mingw objdump,
2243
 
        # which wouldn't understand a cygwinified path. Ahh.
2244
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2245
 
      else
2246
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2247
 
      fi
2248
2232
      ;;
2249
2233
    pw32*)
2250
2234
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2344
2328
  hardcode_into_libs=yes
2345
2329
  ;;
2346
2330
 
 
2331
haiku*)
 
2332
  version_type=linux
 
2333
  need_lib_prefix=no
 
2334
  need_version=no
 
2335
  dynamic_linker="$host_os runtime_loader"
 
2336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2337
  soname_spec='${libname}${release}${shared_ext}$major'
 
2338
  shlibpath_var=LIBRARY_PATH
 
2339
  shlibpath_overrides_runpath=yes
 
2340
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
2341
  hardcode_into_libs=yes
 
2342
  ;;
 
2343
 
2347
2344
hpux9* | hpux10* | hpux11*)
2348
2345
  # Give a soname corresponding to the major version so that dld.sl refuses to
2349
2346
  # link against other versions.
2386
2383
    soname_spec='${libname}${release}${shared_ext}$major'
2387
2384
    ;;
2388
2385
  esac
2389
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2386
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2390
2387
  postinstall_cmds='chmod 555 $lib'
 
2388
  # or fails outright, so override atomically:
 
2389
  install_override_mode=555
2391
2390
  ;;
2392
2391
 
2393
2392
interix[[3-9]]*)
2445
2444
  ;;
2446
2445
 
2447
2446
# This must be Linux ELF.
2448
 
linux* | k*bsd*-gnu)
 
2447
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2449
2448
  version_type=linux
2450
2449
  need_lib_prefix=no
2451
2450
  need_version=no
2454
2453
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2455
2454
  shlibpath_var=LD_LIBRARY_PATH
2456
2455
  shlibpath_overrides_runpath=no
 
2456
 
2457
2457
  # Some binutils ld are patched to set DT_RUNPATH
2458
 
  save_LDFLAGS=$LDFLAGS
2459
 
  save_libdir=$libdir
2460
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2461
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2462
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2463
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2464
 
       [shlibpath_overrides_runpath=yes])])
2465
 
  LDFLAGS=$save_LDFLAGS
2466
 
  libdir=$save_libdir
 
2458
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
2459
    [lt_cv_shlibpath_overrides_runpath=no
 
2460
    save_LDFLAGS=$LDFLAGS
 
2461
    save_libdir=$libdir
 
2462
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2463
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2464
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2465
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2466
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
2467
    LDFLAGS=$save_LDFLAGS
 
2468
    libdir=$save_libdir
 
2469
    ])
 
2470
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2467
2471
 
2468
2472
  # This implies no fast_install, which is unacceptable.
2469
2473
  # Some rework will be needed to allow for fast_install
2475
2479
 
2476
2480
  # Append ld.so.conf contents to the search path
2477
2481
  if test -f /etc/ld.so.conf; then
2478
 
    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' ' '`
 
2482
    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' ' '`
2479
2483
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
2484
 
2480
2485
  fi
2481
2486
 
2482
2487
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2708
2713
    The last name is the one that the linker finds with -lNAME]])
2709
2714
_LT_DECL([], [soname_spec], [1],
2710
2715
    [[The coded name of the library, if different from the real name]])
 
2716
_LT_DECL([], [install_override_mode], [1],
 
2717
    [Permission mode override for installation of shared libraries])
2711
2718
_LT_DECL([], [postinstall_cmds], [2],
2712
2719
    [Command to use after installation of a shared archive])
2713
2720
_LT_DECL([], [postuninstall_cmds], [2],
2820
2827
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2821
2828
m4_require([_LT_DECL_SED])dnl
2822
2829
m4_require([_LT_DECL_EGREP])dnl
 
2830
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2823
2831
 
2824
2832
AC_ARG_WITH([gnu-ld],
2825
2833
    [AS_HELP_STRING([--with-gnu-ld],
2949
2957
    fi
2950
2958
    ;;
2951
2959
esac
2952
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2953
 
_LT_DECL([], [reload_cmds], [2])dnl
 
2960
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
2961
_LT_TAGDECL([], [reload_cmds], [2])dnl
2954
2962
])# _LT_CMD_RELOAD
2955
2963
 
2956
2964
 
3002
3010
  # Base MSYS/MinGW do not provide the 'file' command needed by
3003
3011
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3004
3012
  # unless we find 'file', for example because we are cross-compiling.
3005
 
  if ( file / ) >/dev/null 2>&1; then
 
3013
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3014
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3006
3015
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3007
3016
    lt_cv_file_magic_cmd='func_win32_libid'
3008
3017
  else
3009
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3018
    # Keep this pattern in sync with the one in func_win32_libid.
 
3019
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3010
3020
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3011
3021
  fi
3012
3022
  ;;
3013
3023
 
3014
 
cegcc)
 
3024
cegcc*)
3015
3025
  # use the weaker test based on 'objdump'. See mingw*.
3016
3026
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3017
3027
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3041
3051
  lt_cv_deplibs_check_method=pass_all
3042
3052
  ;;
3043
3053
 
 
3054
haiku*)
 
3055
  lt_cv_deplibs_check_method=pass_all
 
3056
  ;;
 
3057
 
3044
3058
hpux10.20* | hpux11*)
3045
3059
  lt_cv_file_magic_cmd=/usr/bin/file
3046
3060
  case $host_cpu in
3049
3063
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3050
3064
    ;;
3051
3065
  hppa*64*)
3052
 
    [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]']
 
3066
    [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]']
3053
3067
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3054
3068
    ;;
3055
3069
  *)
3056
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3070
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3057
3071
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3058
3072
    ;;
3059
3073
  esac
3075
3089
  ;;
3076
3090
 
3077
3091
# This must be Linux ELF.
3078
 
linux* | k*bsd*-gnu)
 
3092
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3079
3093
  lt_cv_deplibs_check_method=pass_all
3080
3094
  ;;
3081
3095
 
3217
3231
  NM="$lt_cv_path_NM"
3218
3232
else
3219
3233
  # Didn't find any BSD compatible name lister, look for dumpbin.
3220
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3234
  if test -n "$DUMPBIN"; then :
 
3235
    # Let the user override the test.
 
3236
  else
 
3237
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3238
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3239
    *COFF*)
 
3240
      DUMPBIN="$DUMPBIN -symbols"
 
3241
      ;;
 
3242
    *)
 
3243
      DUMPBIN=:
 
3244
      ;;
 
3245
    esac
 
3246
  fi
3221
3247
  AC_SUBST([DUMPBIN])
3222
3248
  if test "$DUMPBIN" != ":"; then
3223
3249
    NM="$DUMPBIN"
3230
3256
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3231
3257
  [lt_cv_nm_interface="BSD nm"
3232
3258
  echo "int some_variable = 0;" > conftest.$ac_ext
3233
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3259
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3234
3260
  (eval "$ac_compile" 2>conftest.err)
3235
3261
  cat conftest.err >&AS_MESSAGE_LOG_FD
3236
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3262
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3237
3263
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3238
3264
  cat conftest.err >&AS_MESSAGE_LOG_FD
3239
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3265
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3240
3266
  cat conftest.out >&AS_MESSAGE_LOG_FD
3241
3267
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3242
3268
    lt_cv_nm_interface="MS dumpbin"
3259
3285
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3260
3286
LIBM=
3261
3287
case $host in
3262
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3288
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3263
3289
  # These system don't have libm, or don't need it
3264
3290
  ;;
3265
3291
*-ncr-sysv4.3*)
3287
3313
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3288
3314
 
3289
3315
if test "$GCC" = yes; then
3290
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3316
  case $cc_basename in
 
3317
  nvcc*)
 
3318
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3319
  *)
 
3320
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3321
  esac
3291
3322
 
3292
3323
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3293
3324
    lt_cv_prog_compiler_rtti_exceptions,
3304
3335
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3305
3336
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3306
3337
AC_REQUIRE([AC_PROG_CC])dnl
 
3338
AC_REQUIRE([AC_PROG_AWK])dnl
3307
3339
AC_REQUIRE([LT_PATH_NM])dnl
3308
3340
AC_REQUIRE([LT_PATH_LD])dnl
3309
3341
m4_require([_LT_DECL_SED])dnl
3429
3461
  if AC_TRY_EVAL(ac_compile); then
3430
3462
    # Now try to grab the symbols.
3431
3463
    nlist=conftest.nm
3432
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
3464
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3433
3465
      # Try sorting and uniquifying the output.
3434
3466
      if sort "$nlist" | uniq > "$nlist"T; then
3435
3467
        mv -f "$nlist"T "$nlist"
3591
3623
      # DJGPP does not support shared libraries at all
3592
3624
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3593
3625
      ;;
 
3626
    haiku*)
 
3627
      # PIC is the default for Haiku.
 
3628
      # The "-static" flag exists, but is broken.
 
3629
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3630
      ;;
3594
3631
    interix[[3-9]]*)
3595
3632
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3596
3633
      # Instead, we relocate shared libraries at runtime.
3696
3733
            ;;
3697
3734
        esac
3698
3735
        ;;
3699
 
      linux* | k*bsd*-gnu)
 
3736
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
3700
3737
        case $cc_basename in
3701
3738
          KCC*)
3702
3739
            # KAI C++ Compiler
3729
3766
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3730
3767
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3731
3768
            ;;
3732
 
          xlc* | xlC*)
3733
 
            # IBM XL 8.0 on PPC
 
3769
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
3770
            # IBM XL 8.0, 9.0 on PPC and BlueGene
3734
3771
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3735
3772
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3736
3773
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3792
3829
        ;;
3793
3830
      solaris*)
3794
3831
        case $cc_basename in
3795
 
          CC*)
 
3832
          CC* | sunCC*)
3796
3833
            # Sun C++ 4.2, 5.x and Centerline C++
3797
3834
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3798
3835
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3896
3933
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3897
3934
      ;;
3898
3935
 
 
3936
    haiku*)
 
3937
      # PIC is the default for Haiku.
 
3938
      # The "-static" flag exists, but is broken.
 
3939
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3940
      ;;
 
3941
 
3899
3942
    hpux*)
3900
3943
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3901
3944
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3938
3981
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3939
3982
      ;;
3940
3983
    esac
 
3984
 
 
3985
    case $cc_basename in
 
3986
    nvcc*) # Cuda Compiler Driver 2.2
 
3987
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
3988
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
3989
      ;;
 
3990
    esac
3941
3991
  else
3942
3992
    # PORTME Check for flag to pass linker flags through the system compiler.
3943
3993
    case $host_os in
3980
4030
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3981
4031
      ;;
3982
4032
 
3983
 
    linux* | k*bsd*-gnu)
 
4033
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3984
4034
      case $cc_basename in
3985
4035
      # old Intel for x86_64 which still supported -KPIC.
3986
4036
      ecc*)
4001
4051
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4002
4052
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4003
4053
        ;;
4004
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4054
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4005
4055
        # Portland Group compilers (*not* the Pentium gcc compiler,
4006
4056
        # which looks to be a dead project)
4007
4057
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013
4063
        # All Alpha code is PIC.
4014
4064
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4015
4065
        ;;
4016
 
      xl*)
4017
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4066
      xl* | bgxl* | bgf* | mpixl*)
 
4067
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4018
4068
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4019
4069
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4020
4070
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4021
4071
        ;;
4022
4072
      *)
4023
4073
        case `$CC -V 2>&1 | sed 5q` in
 
4074
        *Sun\ F* | *Sun*Fortran*)
 
4075
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4076
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4077
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4078
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4079
          ;;
4024
4080
        *Sun\ C*)
4025
4081
          # Sun C 5.9
4026
4082
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4027
4083
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4028
4084
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4029
4085
          ;;
4030
 
        *Sun\ F*)
4031
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4032
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4033
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4034
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4035
 
          ;;
4036
4086
        esac
4037
4087
        ;;
4038
4088
      esac
4063
4113
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4064
4114
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4065
4115
      case $cc_basename in
4066
 
      f77* | f90* | f95*)
 
4116
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4067
4117
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4068
4118
      *)
4069
4119
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4173
4223
  aix[[4-9]]*)
4174
4224
    # If we're using GNU nm, then we don't want the "-C" option.
4175
4225
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4226
    # Also, AIX nm treats weak defined symbols like other global defined
 
4227
    # symbols, whereas GNU nm marks them as "W".
4176
4228
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4177
 
      _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'
 
4229
      _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'
4178
4230
    else
4179
4231
      _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'
4180
4232
    fi
4252
4304
  esac
4253
4305
 
4254
4306
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4307
 
 
4308
  # On some targets, GNU ld is compatible enough with the native linker
 
4309
  # that we're better off using the native interface for both.
 
4310
  lt_use_gnu_ld_interface=no
4255
4311
  if test "$with_gnu_ld" = yes; then
 
4312
    case $host_os in
 
4313
      aix*)
 
4314
        # The AIX port of GNU ld has always aspired to compatibility
 
4315
        # with the native linker.  However, as the warning in the GNU ld
 
4316
        # block says, versions before 2.19.5* couldn't really create working
 
4317
        # shared libraries, regardless of the interface used.
 
4318
        case `$LD -v 2>&1` in
 
4319
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4320
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4321
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4322
          *)
 
4323
            lt_use_gnu_ld_interface=yes
 
4324
            ;;
 
4325
        esac
 
4326
        ;;
 
4327
      *)
 
4328
        lt_use_gnu_ld_interface=yes
 
4329
        ;;
 
4330
    esac
 
4331
  fi
 
4332
 
 
4333
  if test "$lt_use_gnu_ld_interface" = yes; then
4256
4334
    # If archive_cmds runs LD, not CC, wlarc should be empty
4257
4335
    wlarc='${wl}'
4258
4336
 
4270
4348
    fi
4271
4349
    supports_anon_versioning=no
4272
4350
    case `$LD -v 2>&1` in
 
4351
      *GNU\ gold*) supports_anon_versioning=yes ;;
4273
4352
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4274
4353
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4275
4354
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4285
4364
        _LT_TAGVAR(ld_shlibs, $1)=no
4286
4365
        cat <<_LT_EOF 1>&2
4287
4366
 
4288
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4367
*** Warning: the GNU linker, at least up to release 2.19, is reported
4289
4368
*** to be unable to reliably create shared libraries on AIX.
4290
4369
*** Therefore, libtool is disabling shared libraries support.  If you
4291
 
*** really care for shared libraries, you may want to modify your PATH
4292
 
*** so that a non-GNU linker is found, and then restart.
 
4370
*** really care for shared libraries, you may want to install binutils
 
4371
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
4372
*** You will then need to restart the configuration process.
4293
4373
 
4294
4374
_LT_EOF
4295
4375
      fi
4325
4405
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4326
4406
      # as there is no search path for DLLs.
4327
4407
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4408
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4328
4409
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4329
4410
      _LT_TAGVAR(always_export_symbols, $1)=no
4330
4411
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4346
4427
      fi
4347
4428
      ;;
4348
4429
 
 
4430
    haiku*)
 
4431
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4432
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4433
      ;;
 
4434
 
4349
4435
    interix[[3-9]]*)
4350
4436
      _LT_TAGVAR(hardcode_direct, $1)=no
4351
4437
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4361
4447
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4362
4448
      ;;
4363
4449
 
4364
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4450
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4365
4451
      tmp_diet=no
4366
4452
      if test "$host_os" = linux-dietlibc; then
4367
4453
        case $cc_basename in
4375
4461
        tmp_sharedflag='-shared'
4376
4462
        case $cc_basename,$host_cpu in
4377
4463
        pgcc*)                          # Portland Group C compiler
4378
 
          _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'
 
4464
          _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'
4379
4465
          tmp_addflag=' $pic_flag'
4380
4466
          ;;
4381
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4382
 
          _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'
 
4467
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
4468
                                        # Portland Group f77 and f90 compilers
 
4469
          _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'
4383
4470
          tmp_addflag=' $pic_flag -Mnomain' ;;
4384
4471
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4385
4472
          tmp_addflag=' -i_dynamic' ;;
4390
4477
        lf95*)                          # Lahey Fortran 8.1
4391
4478
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4392
4479
          tmp_sharedflag='--shared' ;;
4393
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4480
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4394
4481
          tmp_sharedflag='-qmkshrobj'
4395
4482
          tmp_addflag= ;;
 
4483
        nvcc*)  # Cuda Compiler Driver 2.2
 
4484
          _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'
 
4485
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
4486
          ;;
4396
4487
        esac
4397
4488
        case `$CC -V 2>&1 | sed 5q` in
4398
4489
        *Sun\ C*)                       # Sun C 5.9
4399
 
          _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'
 
4490
          _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'
4400
4491
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4401
4492
          tmp_sharedflag='-G' ;;
4402
4493
        *Sun\ F*)                       # Sun Fortran 8.3
4412
4503
        fi
4413
4504
 
4414
4505
        case $cc_basename in
4415
 
        xlf*)
 
4506
        xlf* | bgf* | bgxlf* | mpixlf*)
4416
4507
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4417
4508
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4418
4509
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4419
4510
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4420
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4511
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4421
4512
          if test "x$supports_anon_versioning" = xyes; then
4422
4513
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4423
4514
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4424
4515
              echo "local: *; };" >> $output_objdir/$libname.ver~
4425
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4516
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4426
4517
          fi
4427
4518
          ;;
4428
4519
        esac
4543
4634
      else
4544
4635
        # If we're using GNU nm, then we don't want the "-C" option.
4545
4636
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4637
        # Also, AIX nm treats weak defined symbols like other global
 
4638
        # defined symbols, whereas GNU nm marks them as "W".
4546
4639
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4547
 
          _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'
 
4640
          _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'
4548
4641
        else
4549
4642
          _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'
4550
4643
        fi
4633
4726
        # empty executable.
4634
4727
        _LT_SYS_MODULE_PATH_AIX
4635
4728
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4636
 
        _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"
 
4729
        _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"
4637
4730
      else
4638
4731
        if test "$host_cpu" = ia64; then
4639
4732
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4648
4741
          # -berok will link without error, but may produce a broken library.
4649
4742
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4650
4743
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4651
 
          # Exported symbols can be pulled into shared objects from archives
4652
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4744
          if test "$with_gnu_ld" = yes; then
 
4745
            # We only use this code for GNU lds that support --whole-archive.
 
4746
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4747
          else
 
4748
            # Exported symbols can be pulled into shared objects from archives
 
4749
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4750
          fi
4653
4751
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4654
4752
          # This is similar to how AIX traditionally builds its shared libraries.
4655
4753
          _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'
4688
4786
      # Tell ltmain to make .dll files, not .so files.
4689
4787
      shrext_cmds=".dll"
4690
4788
      # FIXME: Setting linknames here is a bad hack.
4691
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
4789
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4692
4790
      # The linker will automatically build a .lib file if we build a DLL.
4693
4791
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4694
4792
      # FIXME: Should let the user specify the lib program.
4755
4853
      ;;
4756
4854
 
4757
4855
    hpux10*)
4758
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
4856
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4759
4857
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4760
4858
      else
4761
4859
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4774
4872
      ;;
4775
4873
 
4776
4874
    hpux11*)
4777
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
4875
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4778
4876
        case $host_cpu in
4779
4877
        hppa*64*)
4780
4878
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4795
4893
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4796
4894
          ;;
4797
4895
        *)
4798
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4896
        m4_if($1, [], [
 
4897
          # Older versions of the 11.00 compiler do not understand -b yet
 
4898
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
4899
          _LT_LINKER_OPTION([if $CC understands -b],
 
4900
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
4901
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
4902
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
4903
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4799
4904
          ;;
4800
4905
        esac
4801
4906
      fi
4823
4928
 
4824
4929
    irix5* | irix6* | nonstopux*)
4825
4930
      if test "$GCC" = yes; then
4826
 
        _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'
 
4931
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $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'
4827
4932
        # Try to use the -exported_symbol ld option, if it does not
4828
4933
        # work, assume that -exports_file does not work either and
4829
4934
        # implicitly export all symbols.
4830
4935
        save_LDFLAGS="$LDFLAGS"
4831
4936
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4832
4937
        AC_LINK_IFELSE(int foo(void) {},
4833
 
          _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'
 
4938
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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'
4834
4939
        )
4835
4940
        LDFLAGS="$save_LDFLAGS"
4836
4941
      else
4837
 
        _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'
4838
 
        _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'
 
4942
        _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'
 
4943
        _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'
4839
4944
      fi
4840
4945
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4841
4946
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4897
5002
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4898
5003
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4899
5004
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4900
 
      _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'
 
5005
      _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'
4901
5006
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4902
5007
      ;;
4903
5008
 
4904
5009
    osf3*)
4905
5010
      if test "$GCC" = yes; then
4906
5011
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4907
 
        _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'
 
5012
        _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'
4908
5013
      else
4909
5014
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4910
 
        _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'
 
5015
        _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'
4911
5016
      fi
4912
5017
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4913
5018
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4917
5022
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4918
5023
      if test "$GCC" = yes; then
4919
5024
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4920
 
        _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'
 
5025
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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'
4921
5026
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4922
5027
      else
4923
5028
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4924
 
        _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'
 
5029
        _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'
4925
5030
        _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~
4926
 
        $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'
 
5031
        $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'
4927
5032
 
4928
5033
        # Both c and cxx compiler support -rpath directly
4929
5034
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5114
5219
      # Test whether the compiler implicitly links with -lc since on some
5115
5220
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5116
5221
      # to ld, don't add -lc before -lgcc.
5117
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5118
 
      $RM conftest*
5119
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5222
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5223
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5224
        [$RM conftest*
 
5225
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5120
5226
 
5121
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5122
 
        soname=conftest
5123
 
        lib=conftest
5124
 
        libobjs=conftest.$ac_objext
5125
 
        deplibs=
5126
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5127
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5128
 
        compiler_flags=-v
5129
 
        linker_flags=-v
5130
 
        verstring=
5131
 
        output_objdir=.
5132
 
        libname=conftest
5133
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5134
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5135
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5136
 
        then
5137
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5138
 
        else
5139
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5140
 
        fi
5141
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5142
 
      else
5143
 
        cat conftest.err 1>&5
5144
 
      fi
5145
 
      $RM conftest*
5146
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5227
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5228
          soname=conftest
 
5229
          lib=conftest
 
5230
          libobjs=conftest.$ac_objext
 
5231
          deplibs=
 
5232
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5233
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5234
          compiler_flags=-v
 
5235
          linker_flags=-v
 
5236
          verstring=
 
5237
          output_objdir=.
 
5238
          libname=conftest
 
5239
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5240
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5241
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5242
          then
 
5243
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5244
          else
 
5245
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5246
          fi
 
5247
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5248
        else
 
5249
          cat conftest.err 1>&5
 
5250
        fi
 
5251
        $RM conftest*
 
5252
        ])
 
5253
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5147
5254
      ;;
5148
5255
    esac
5149
5256
  fi
5313
5420
])# _LT_LANG_C_CONFIG
5314
5421
 
5315
5422
 
5316
 
# _LT_PROG_CXX
5317
 
# ------------
5318
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5319
 
# compiler, we have our own version here.
5320
 
m4_defun([_LT_PROG_CXX],
5321
 
[
5322
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5323
 
AC_PROG_CXX
 
5423
# _LT_LANG_CXX_CONFIG([TAG])
 
5424
# --------------------------
 
5425
# Ensure that the configuration variables for a C++ compiler are suitably
 
5426
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5427
# the compiler configuration to `libtool'.
 
5428
m4_defun([_LT_LANG_CXX_CONFIG],
 
5429
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5430
m4_require([_LT_DECL_EGREP])dnl
5324
5431
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5325
5432
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5326
5433
    (test "X$CXX" != "Xg++"))) ; then
5328
5435
else
5329
5436
  _lt_caught_CXX_error=yes
5330
5437
fi
5331
 
popdef([AC_MSG_ERROR])
5332
 
])# _LT_PROG_CXX
5333
 
 
5334
 
dnl aclocal-1.4 backwards compatibility:
5335
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5336
 
 
5337
 
 
5338
 
# _LT_LANG_CXX_CONFIG([TAG])
5339
 
# --------------------------
5340
 
# Ensure that the configuration variables for a C++ compiler are suitably
5341
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5342
 
# the compiler configuration to `libtool'.
5343
 
m4_defun([_LT_LANG_CXX_CONFIG],
5344
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5345
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5346
 
m4_require([_LT_DECL_EGREP])dnl
5347
5438
 
5348
5439
AC_LANG_PUSH(C++)
5349
5440
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5365
5456
_LT_TAGVAR(module_expsym_cmds, $1)=
5366
5457
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5367
5458
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5459
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
5460
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5368
5461
_LT_TAGVAR(no_undefined_flag, $1)=
5369
5462
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5370
5463
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5467
5560
      # Commands to make compiler produce verbose output that lists
5468
5561
      # what "hidden" libraries, object files and flags are used when
5469
5562
      # linking a shared library.
5470
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5563
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5471
5564
 
5472
5565
    else
5473
5566
      GXX=no
5579
5672
          _LT_SYS_MODULE_PATH_AIX
5580
5673
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5581
5674
 
5582
 
          _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"
 
5675
          _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"
5583
5676
        else
5584
5677
          if test "$host_cpu" = ia64; then
5585
5678
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5594
5687
            # -berok will link without error, but may produce a broken library.
5595
5688
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5596
5689
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5597
 
            # Exported symbols can be pulled into shared objects from archives
5598
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5690
            if test "$with_gnu_ld" = yes; then
 
5691
              # We only use this code for GNU lds that support --whole-archive.
 
5692
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5693
            else
 
5694
              # Exported symbols can be pulled into shared objects from archives
 
5695
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5696
            fi
5599
5697
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5600
5698
            # This is similar to how AIX traditionally builds its shared
5601
5699
            # libraries.
5628
5726
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5629
5727
        # as there is no search path for DLLs.
5630
5728
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5729
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5631
5730
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5632
5731
        _LT_TAGVAR(always_export_symbols, $1)=no
5633
5732
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5688
5787
      gnu*)
5689
5788
        ;;
5690
5789
 
 
5790
      haiku*)
 
5791
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5792
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5793
        ;;
 
5794
 
5691
5795
      hpux9*)
5692
5796
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5693
5797
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5712
5816
            # explicitly linking system object files so we need to strip them
5713
5817
            # from the output so that they don't get included in the library
5714
5818
            # dependencies.
5715
 
            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'
 
5819
            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"'
5716
5820
            ;;
5717
5821
          *)
5718
5822
            if test "$GXX" = yes; then
5777
5881
            # explicitly linking system object files so we need to strip them
5778
5882
            # from the output so that they don't get included in the library
5779
5883
            # dependencies.
5780
 
            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'
 
5884
            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"'
5781
5885
            ;;
5782
5886
          *)
5783
5887
            if test "$GXX" = yes; then
5820
5924
        case $cc_basename in
5821
5925
          CC*)
5822
5926
            # SGI C++
5823
 
            _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'
 
5927
            _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'
5824
5928
 
5825
5929
            # Archives containing C++ object files must be created using
5826
5930
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5831
5935
          *)
5832
5936
            if test "$GXX" = yes; then
5833
5937
              if test "$with_gnu_ld" = no; then
5834
 
                _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'
 
5938
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
5835
5939
              else
5836
 
                _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'
 
5940
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
5837
5941
              fi
5838
5942
            fi
5839
5943
            _LT_TAGVAR(link_all_deplibs, $1)=yes
5844
5948
        _LT_TAGVAR(inherit_rpath, $1)=yes
5845
5949
        ;;
5846
5950
 
5847
 
      linux* | k*bsd*-gnu)
 
5951
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5848
5952
        case $cc_basename in
5849
5953
          KCC*)
5850
5954
            # Kuck and Associates, Inc. (KAI) C++ Compiler
5862
5966
            # explicitly linking system object files so we need to strip them
5863
5967
            # from the output so that they don't get included in the library
5864
5968
            # dependencies.
5865
 
            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'
 
5969
            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"'
5866
5970
 
5867
5971
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5868
5972
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5899
6003
          pgCC* | pgcpp*)
5900
6004
            # Portland Group C++ compiler
5901
6005
            case `$CC -V` in
5902
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6006
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5903
6007
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5904
6008
                rm -rf $tpldir~
5905
6009
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5906
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6010
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5907
6011
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5908
6012
                rm -rf $tpldir~
5909
6013
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5910
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6014
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5911
6015
                $RANLIB $oldlib'
5912
6016
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5913
6017
                rm -rf $tpldir~
5914
6018
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5915
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6019
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5916
6020
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5917
6021
                rm -rf $tpldir~
5918
6022
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5919
 
                $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'
 
6023
                $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'
5920
6024
              ;;
5921
 
            *) # Version 6 will use weak symbols
 
6025
            *) # Version 6 and above use weak symbols
5922
6026
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5923
6027
              _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'
5924
6028
              ;;
5926
6030
 
5927
6031
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5928
6032
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5929
 
            _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'
 
6033
            _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'
5930
6034
            ;;
5931
6035
          cxx*)
5932
6036
            # Compaq C++
5945
6049
            # explicitly linking system object files so we need to strip them
5946
6050
            # from the output so that they don't get included in the library
5947
6051
            # dependencies.
5948
 
            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'
 
6052
            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'
5949
6053
            ;;
5950
 
          xl*)
 
6054
          xl* | mpixl* | bgxl*)
5951
6055
            # IBM XL 8.0 on PPC, with GNU ld
5952
6056
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5953
6057
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5967
6071
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5968
6072
              _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'
5969
6073
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5970
 
              _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'
 
6074
              _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'
5971
6075
              _LT_TAGVAR(compiler_needs_object, $1)=yes
5972
6076
 
5973
6077
              # Not sure whether something based on
5974
6078
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5975
6079
              # would be better.
5976
 
              output_verbose_link_cmd='echo'
 
6080
              output_verbose_link_cmd='func_echo_all'
5977
6081
 
5978
6082
              # Archives containing C++ object files must be created using
5979
6083
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6042
6146
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6043
6147
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6044
6148
          fi
6045
 
          output_verbose_link_cmd=echo
 
6149
          output_verbose_link_cmd=func_echo_all
6046
6150
        else
6047
6151
          _LT_TAGVAR(ld_shlibs, $1)=no
6048
6152
        fi
6077
6181
            case $host in
6078
6182
              osf3*)
6079
6183
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6080
 
                _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'
 
6184
                _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'
6081
6185
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6082
6186
                ;;
6083
6187
              *)
6084
6188
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6085
 
                _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'
 
6189
                _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'
6086
6190
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6087
6191
                  echo "-hidden">> $lib.exp~
6088
 
                  $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~
 
6192
                  $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~
6089
6193
                  $RM $lib.exp'
6090
6194
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6091
6195
                ;;
6101
6205
            # explicitly linking system object files so we need to strip them
6102
6206
            # from the output so that they don't get included in the library
6103
6207
            # dependencies.
6104
 
            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'
 
6208
            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"'
6105
6209
            ;;
6106
6210
          *)
6107
6211
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6108
6212
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6109
6213
              case $host in
6110
6214
                osf3*)
6111
 
                  _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'
 
6215
                  _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'
6112
6216
                  ;;
6113
6217
                *)
6114
 
                  _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'
 
6218
                  _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6115
6219
                  ;;
6116
6220
              esac
6117
6221
 
6121
6225
              # Commands to make compiler produce verbose output that lists
6122
6226
              # what "hidden" libraries, object files and flags are used when
6123
6227
              # linking a shared library.
6124
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6228
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6125
6229
 
6126
6230
            else
6127
6231
              # FIXME: insert proper C++ library support
6157
6261
 
6158
6262
      solaris*)
6159
6263
        case $cc_basename in
6160
 
          CC*)
 
6264
          CC* | sunCC*)
6161
6265
            # Sun C++ 4.2, 5.x and Centerline C++
6162
6266
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6163
6267
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6178
6282
            esac
6179
6283
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6180
6284
 
6181
 
            output_verbose_link_cmd='echo'
 
6285
            output_verbose_link_cmd='func_echo_all'
6182
6286
 
6183
6287
            # Archives containing C++ object files must be created using
6184
6288
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6205
6309
                # Commands to make compiler produce verbose output that lists
6206
6310
                # what "hidden" libraries, object files and flags are used when
6207
6311
                # linking a shared library.
6208
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6312
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6209
6313
              else
6210
6314
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6211
6315
                # platform.
6216
6320
                # Commands to make compiler produce verbose output that lists
6217
6321
                # what "hidden" libraries, object files and flags are used when
6218
6322
                # linking a shared library.
6219
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6323
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6220
6324
              fi
6221
6325
 
6222
6326
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6270
6374
          CC*)
6271
6375
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6272
6376
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6377
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
6378
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
6379
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
6380
              '"$_LT_TAGVAR(reload_cmds, $1)"
6273
6381
            ;;
6274
6382
          *)
6275
6383
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6516
6624
 
6517
6625
solaris*)
6518
6626
  case $cc_basename in
6519
 
  CC*)
 
6627
  CC* | sunCC*)
6520
6628
    # The more standards-conforming stlport4 library is
6521
6629
    # incompatible with the Cstd library. Avoid specifying
6522
6630
    # it if it's in CXXFLAGS. Ignore libCrun as
6560
6668
])# _LT_SYS_HIDDEN_LIBDEPS
6561
6669
 
6562
6670
 
6563
 
# _LT_PROG_F77
6564
 
# ------------
6565
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6566
 
# if there is no fortran compiler, we have our own version here.
6567
 
m4_defun([_LT_PROG_F77],
6568
 
[
6569
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6570
 
AC_PROG_F77
6571
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6572
 
  _lt_disable_F77=yes
6573
 
fi
6574
 
popdef([AC_MSG_ERROR])
6575
 
])# _LT_PROG_F77
6576
 
 
6577
 
dnl aclocal-1.4 backwards compatibility:
6578
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6579
 
 
6580
 
 
6581
6671
# _LT_LANG_F77_CONFIG([TAG])
6582
6672
# --------------------------
6583
6673
# Ensure that the configuration variables for a Fortran 77 compiler are
6584
6674
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6585
6675
# to write the compiler configuration to `libtool'.
6586
6676
m4_defun([_LT_LANG_F77_CONFIG],
6587
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6588
 
AC_LANG_PUSH(Fortran 77)
 
6677
[AC_LANG_PUSH(Fortran 77)
 
6678
if test -z "$F77" || test "X$F77" = "Xno"; then
 
6679
  _lt_disable_F77=yes
 
6680
fi
6589
6681
 
6590
6682
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6591
6683
_LT_TAGVAR(allow_undefined_flag, $1)=
6604
6696
_LT_TAGVAR(module_expsym_cmds, $1)=
6605
6697
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6606
6698
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6699
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6700
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6607
6701
_LT_TAGVAR(no_undefined_flag, $1)=
6608
6702
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6609
6703
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6703
6797
])# _LT_LANG_F77_CONFIG
6704
6798
 
6705
6799
 
6706
 
# _LT_PROG_FC
6707
 
# -----------
6708
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6709
 
# if there is no fortran compiler, we have our own version here.
6710
 
m4_defun([_LT_PROG_FC],
6711
 
[
6712
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6713
 
AC_PROG_FC
6714
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6715
 
  _lt_disable_FC=yes
6716
 
fi
6717
 
popdef([AC_MSG_ERROR])
6718
 
])# _LT_PROG_FC
6719
 
 
6720
 
dnl aclocal-1.4 backwards compatibility:
6721
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6722
 
 
6723
 
 
6724
6800
# _LT_LANG_FC_CONFIG([TAG])
6725
6801
# -------------------------
6726
6802
# Ensure that the configuration variables for a Fortran compiler are
6727
6803
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6728
6804
# to write the compiler configuration to `libtool'.
6729
6805
m4_defun([_LT_LANG_FC_CONFIG],
6730
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6731
 
AC_LANG_PUSH(Fortran)
 
6806
[AC_LANG_PUSH(Fortran)
 
6807
 
 
6808
if test -z "$FC" || test "X$FC" = "Xno"; then
 
6809
  _lt_disable_FC=yes
 
6810
fi
6732
6811
 
6733
6812
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6734
6813
_LT_TAGVAR(allow_undefined_flag, $1)=
6747
6826
_LT_TAGVAR(module_expsym_cmds, $1)=
6748
6827
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6749
6828
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6829
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6830
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6750
6831
_LT_TAGVAR(no_undefined_flag, $1)=
6751
6832
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6752
6833
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6892
6973
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6893
6974
 
6894
6975
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6976
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6977
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6895
6978
 
6896
6979
## CAVEAT EMPTOR:
6897
6980
## There is no encapsulation within the following macros, do not change
7259
7342
func_dirname ()
7260
7343
{
7261
7344
  # Extract subdirectory from the argument.
7262
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
7345
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7263
7346
  if test "X$func_dirname_result" = "X${1}"; then
7264
7347
    func_dirname_result="${3}"
7265
7348
  else
7270
7353
# func_basename file
7271
7354
func_basename ()
7272
7355
{
7273
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
7356
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7274
7357
}
7275
7358
 
7276
7359
dnl func_dirname_and_basename
7286
7369
func_stripname ()
7287
7370
{
7288
7371
  case ${2} in
7289
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7290
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7291
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7292
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
7372
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7373
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7293
7374
  esac
7294
7375
}
7295
7376
 
7300
7381
# func_opt_split
7301
7382
func_opt_split ()
7302
7383
{
7303
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7304
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
7384
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
 
7385
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7305
7386
}
7306
7387
 
7307
7388
# func_lo2o object
7308
7389
func_lo2o ()
7309
7390
{
7310
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
7391
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7311
7392
}
7312
7393
 
7313
7394
# func_xform libobj-or-source
7314
7395
func_xform ()
7315
7396
{
7316
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
7397
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7317
7398
}
7318
7399
 
7319
7400
# func_arith arithmetic-term...