~ubuntu-branches/ubuntu/wily/fluidsynth/wily-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-08-28 14:43:04 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20120828144304-91idykotjc90bmp0
Tags: 1.1.6-1
* New upstream bugfix-only release:
  - Handle MIDI End of track events, ticket #101
  - Prevent broken rendering after an voice overflow, ticket #100
  - Enable long arguments where available
  - Prevent libdbus crash
* Remove build-dependency on libncurses5-dev. (Closes: #667892)
* Bump Standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
13
14
 
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
 
[m4_warning([this file was generated for autoconf 2.67.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
18
[m4_warning([this file was generated for autoconf 2.68.
18
19
You have another version of autoconf.  It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
133
134
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
134
135
#
135
136
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
136
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
137
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
138
#                 Foundation, Inc.
137
139
#   Written by Gordon Matzigkeit, 1996
138
140
#
139
141
# This file is free software; the Free Software Foundation gives
142
144
 
143
145
m4_define([_LT_COPYING], [dnl
144
146
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
145
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
147
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
148
#                 Foundation, Inc.
146
149
#   Written by Gordon Matzigkeit, 1996
147
150
#
148
151
#   This file is part of GNU Libtool.
169
172
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
170
173
])
171
174
 
172
 
# serial 56 LT_INIT
 
175
# serial 57 LT_INIT
173
176
 
174
177
 
175
178
# LT_PREREQ(VERSION)
198
201
# ------------------
199
202
AC_DEFUN([LT_INIT],
200
203
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
204
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
201
205
AC_BEFORE([$0], [LT_LANG])dnl
202
206
AC_BEFORE([$0], [LT_OUTPUT])dnl
203
207
AC_BEFORE([$0], [LTDL_INIT])dnl
214
218
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
215
219
m4_require([_LT_PROG_LTMAIN])dnl
216
220
 
 
221
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
222
 
217
223
dnl Parse OPTIONS
218
224
_LT_SET_OPTIONS([$0], [$1])
219
225
 
250
256
    *) break;;
251
257
  esac
252
258
done
253
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
259
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
254
260
])
255
261
 
256
262
 
270
276
m4_defun([_LT_SETUP],
271
277
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
272
278
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
279
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
280
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
281
 
 
282
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
283
dnl
273
284
_LT_DECL([], [host_alias], [0], [The host system])dnl
274
285
_LT_DECL([], [host], [0])dnl
275
286
_LT_DECL([], [host_os], [0])dnl
292
303
dnl
293
304
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
294
305
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
306
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
295
307
m4_require([_LT_CMD_RELOAD])dnl
296
308
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
309
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
297
310
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
298
311
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
312
m4_require([_LT_WITH_SYSROOT])dnl
299
313
 
300
314
_LT_CONFIG_LIBTOOL_INIT([
301
315
# See if we are running on zsh, and set the options which allow our
311
325
_LT_CHECK_OBJDIR
312
326
 
313
327
m4_require([_LT_TAG_COMPILER])dnl
314
 
_LT_PROG_ECHO_BACKSLASH
315
328
 
316
329
case $host_os in
317
330
aix3*)
325
338
  ;;
326
339
esac
327
340
 
328
 
# Sed substitution that helps us do robust quoting.  It backslashifies
329
 
# metacharacters that are still active within double-quoted strings.
330
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
331
 
 
332
 
# Same as above, but do not quote variable references.
333
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
334
 
 
335
 
# Sed substitution to delay expansion of an escaped shell variable in a
336
 
# double_quote_subst'ed string.
337
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
338
 
 
339
 
# Sed substitution to delay expansion of an escaped single quote.
340
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
341
 
 
342
 
# Sed substitution to avoid accidental globbing in evaled expressions
343
 
no_glob_subst='s/\*/\\\*/g'
344
 
 
345
341
# Global variables:
346
342
ofile=libtool
347
343
can_build_shared=yes
382
378
])# _LT_SETUP
383
379
 
384
380
 
 
381
# _LT_PREPARE_SED_QUOTE_VARS
 
382
# --------------------------
 
383
# Define a few sed substitution that help us do robust quoting.
 
384
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
385
[# Backslashify metacharacters that are still active within
 
386
# double-quoted strings.
 
387
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
388
 
 
389
# Same as above, but do not quote variable references.
 
390
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
391
 
 
392
# Sed substitution to delay expansion of an escaped shell variable in a
 
393
# double_quote_subst'ed string.
 
394
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
395
 
 
396
# Sed substitution to delay expansion of an escaped single quote.
 
397
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
398
 
 
399
# Sed substitution to avoid accidental globbing in evaled expressions
 
400
no_glob_subst='s/\*/\\\*/g'
 
401
])
 
402
 
385
403
# _LT_PROG_LTMAIN
386
404
# ---------------
387
405
# Note that this code is called both from `configure', and `config.status'
534
552
# declaration there will have the same value as in `configure'.  VARNAME
535
553
# must have a single quote delimited value for this to work.
536
554
m4_define([_LT_CONFIG_STATUS_DECLARE],
537
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
555
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
538
556
 
539
557
 
540
558
# _LT_CONFIG_STATUS_DECLARATIONS
544
562
# embedded single quotes properly.  In configure, this macro expands
545
563
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
546
564
#
547
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
565
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
548
566
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
549
567
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
550
568
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
643
661
LTCFLAGS='$LTCFLAGS'
644
662
compiler='$compiler_DEFAULT'
645
663
 
 
664
# A function that is used when there is no print builtin or printf.
 
665
func_fallback_echo ()
 
666
{
 
667
  eval 'cat <<_LTECHO_EOF
 
668
\$[]1
 
669
_LTECHO_EOF'
 
670
}
 
671
 
646
672
# Quote evaled strings.
647
673
for var in lt_decl_all_varnames([[ \
648
674
]], lt_decl_quote_varnames); do
649
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
675
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
650
676
    *[[\\\\\\\`\\"\\\$]]*)
651
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
677
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
652
678
      ;;
653
679
    *)
654
680
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
659
685
# Double-quote double-evaled strings.
660
686
for var in lt_decl_all_varnames([[ \
661
687
]], lt_decl_dquote_varnames); do
662
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
688
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
663
689
    *[[\\\\\\\`\\"\\\$]]*)
664
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
690
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
665
691
      ;;
666
692
    *)
667
693
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
669
695
    esac
670
696
done
671
697
 
672
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
673
 
case \$lt_ECHO in
674
 
*'\\\[$]0 --fallback-echo"')dnl "
675
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
676
 
  ;;
677
 
esac
678
 
 
679
698
_LT_OUTPUT_LIBTOOL_INIT
680
699
])
681
700
 
 
701
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
702
# ------------------------------------
 
703
# Generate a child script FILE with all initialization necessary to
 
704
# reuse the environment learned by the parent script, and make the
 
705
# file executable.  If COMMENT is supplied, it is inserted after the
 
706
# `#!' sequence but before initialization text begins.  After this
 
707
# macro, additional text can be appended to FILE to form the body of
 
708
# the child script.  The macro ends with non-zero status if the
 
709
# file could not be fully written (such as if the disk is full).
 
710
m4_ifdef([AS_INIT_GENERATED],
 
711
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
712
[m4_defun([_LT_GENERATED_FILE_INIT],
 
713
[m4_require([AS_PREPARE])]dnl
 
714
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
715
[lt_write_fail=0
 
716
cat >$1 <<_ASEOF || lt_write_fail=1
 
717
#! $SHELL
 
718
# Generated by $as_me.
 
719
$2
 
720
SHELL=\${CONFIG_SHELL-$SHELL}
 
721
export SHELL
 
722
_ASEOF
 
723
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
724
AS_SHELL_SANITIZE
 
725
_AS_PREPARE
 
726
exec AS_MESSAGE_FD>&1
 
727
_ASEOF
 
728
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
729
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
682
730
 
683
731
# LT_OUTPUT
684
732
# ---------
688
736
AC_DEFUN([LT_OUTPUT],
689
737
[: ${CONFIG_LT=./config.lt}
690
738
AC_MSG_NOTICE([creating $CONFIG_LT])
691
 
cat >"$CONFIG_LT" <<_LTEOF
692
 
#! $SHELL
693
 
# Generated by $as_me.
694
 
# Run this file to recreate a libtool stub with the current configuration.
 
739
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
740
[# Run this file to recreate a libtool stub with the current configuration.])
695
741
 
 
742
cat >>"$CONFIG_LT" <<\_LTEOF
696
743
lt_cl_silent=false
697
 
SHELL=\${CONFIG_SHELL-$SHELL}
698
 
_LTEOF
699
 
 
700
 
cat >>"$CONFIG_LT" <<\_LTEOF
701
 
AS_SHELL_SANITIZE
702
 
_AS_PREPARE
703
 
 
704
 
exec AS_MESSAGE_FD>&1
705
744
exec AS_MESSAGE_LOG_FD>>config.log
706
745
{
707
746
  echo
727
766
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
728
767
configured by $[0], generated by m4_PACKAGE_STRING.
729
768
 
730
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
769
Copyright (C) 2011 Free Software Foundation, Inc.
731
770
This config.lt script is free software; the Free Software Foundation
732
771
gives unlimited permision to copy, distribute and modify it."
733
772
 
772
811
# appending to config.log, which fails on DOS, as config.log is still kept
773
812
# open by configure.  Here we exec the FD to /dev/null, effectively closing
774
813
# config.log, so it can be properly (re)opened and appended to by config.lt.
775
 
if test "$no_create" != yes; then
776
 
  lt_cl_success=:
777
 
  test "$silent" = yes &&
778
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
779
 
  exec AS_MESSAGE_LOG_FD>/dev/null
780
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
781
 
  exec AS_MESSAGE_LOG_FD>>config.log
782
 
  $lt_cl_success || AS_EXIT(1)
783
 
fi
 
814
lt_cl_success=:
 
815
test "$silent" = yes &&
 
816
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
817
exec AS_MESSAGE_LOG_FD>/dev/null
 
818
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
819
exec AS_MESSAGE_LOG_FD>>config.log
 
820
$lt_cl_success || AS_EXIT(1)
784
821
])# LT_OUTPUT
785
822
 
786
823
 
843
880
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
844
881
  # text mode, it properly converts lines to CR/LF.  This bash problem
845
882
  # is reportedly fixed, but why not run on old versions too?
846
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
847
 
    || (rm -f "$cfgfile"; exit 1)
848
 
 
849
 
  _LT_PROG_XSI_SHELLFNS
850
 
 
851
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
852
 
    || (rm -f "$cfgfile"; exit 1)
853
 
 
854
 
  mv -f "$cfgfile" "$ofile" ||
 
883
  sed '$q' "$ltmain" >> "$cfgfile" \
 
884
     || (rm -f "$cfgfile"; exit 1)
 
885
 
 
886
  _LT_PROG_REPLACE_SHELLFNS
 
887
 
 
888
   mv -f "$cfgfile" "$ofile" ||
855
889
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
856
890
  chmod +x "$ofile"
857
891
],
896
930
m4_case([$1],
897
931
  [C],                  [_LT_LANG(C)],
898
932
  [C++],                [_LT_LANG(CXX)],
 
933
  [Go],                 [_LT_LANG(GO)],
899
934
  [Java],               [_LT_LANG(GCJ)],
900
935
  [Fortran 77],         [_LT_LANG(F77)],
901
936
  [Fortran],            [_LT_LANG(FC)],
917
952
])# _LT_LANG
918
953
 
919
954
 
 
955
m4_ifndef([AC_PROG_GO], [
 
956
# NOTE: This macro has been submitted for inclusion into   #
 
957
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
958
#  a released version of Autoconf we should remove this    #
 
959
#  macro and use it instead.                               #
 
960
m4_defun([AC_PROG_GO],
 
961
[AC_LANG_PUSH(Go)dnl
 
962
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
963
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
964
_AC_ARG_VAR_LDFLAGS()dnl
 
965
AC_CHECK_TOOL(GOC, gccgo)
 
966
if test -z "$GOC"; then
 
967
  if test -n "$ac_tool_prefix"; then
 
968
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
969
  fi
 
970
fi
 
971
if test -z "$GOC"; then
 
972
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
973
fi
 
974
])#m4_defun
 
975
])#m4_ifndef
 
976
 
 
977
 
920
978
# _LT_LANG_DEFAULT_CONFIG
921
979
# -----------------------
922
980
m4_defun([_LT_LANG_DEFAULT_CONFIG],
947
1005
       m4_ifdef([LT_PROG_GCJ],
948
1006
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
949
1007
 
 
1008
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
1009
  [LT_LANG(GO)],
 
1010
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
1011
 
950
1012
AC_PROVIDE_IFELSE([LT_PROG_RC],
951
1013
  [LT_LANG(RC)],
952
1014
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
957
1019
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
958
1020
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
959
1021
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1022
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
960
1023
dnl aclocal-1.4 backwards compatibility:
961
1024
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
962
1025
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
963
1026
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
964
1027
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1028
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
965
1029
 
966
1030
 
967
1031
# _LT_TAG_COMPILER
1047
1111
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1048
1112
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1049
1113
        _lt_result=$?
1050
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1114
        # If there is a non-empty error log, and "single_module"
 
1115
        # appears in it, assume the flag caused a linker warning
 
1116
        if test -s conftest.err && $GREP single_module conftest.err; then
 
1117
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1118
        # Otherwise, if the output was created with a 0 exit code from
 
1119
        # the compiler, it worked.
 
1120
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1051
1121
          lt_cv_apple_cc_single_mod=yes
1052
1122
        else
1053
1123
          cat conftest.err >&AS_MESSAGE_LOG_FD
1055
1125
        rm -rf libconftest.dylib*
1056
1126
        rm -f conftest.*
1057
1127
      fi])
 
1128
 
1058
1129
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1059
1130
      [lt_cv_ld_exported_symbols_list],
1060
1131
      [lt_cv_ld_exported_symbols_list=no
1066
1137
        [lt_cv_ld_exported_symbols_list=no])
1067
1138
        LDFLAGS="$save_LDFLAGS"
1068
1139
    ])
 
1140
 
 
1141
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
1142
      [lt_cv_ld_force_load=no
 
1143
      cat > conftest.c << _LT_EOF
 
1144
int forced_loaded() { return 2;}
 
1145
_LT_EOF
 
1146
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
1147
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
1148
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
1149
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1150
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1151
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1152
      cat > conftest.c << _LT_EOF
 
1153
int main() { return 0;}
 
1154
_LT_EOF
 
1155
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1156
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1157
      _lt_result=$?
 
1158
      if test -s conftest.err && $GREP force_load conftest.err; then
 
1159
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1160
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
1161
        lt_cv_ld_force_load=yes
 
1162
      else
 
1163
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1164
      fi
 
1165
        rm -f conftest.err libconftest.a conftest conftest.c
 
1166
        rm -rf conftest.dSYM
 
1167
    ])
1069
1168
    case $host_os in
1070
1169
    rhapsody* | darwin1.[[012]])
1071
1170
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1093
1192
    else
1094
1193
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1095
1194
    fi
1096
 
    if test "$DSYMUTIL" != ":"; then
 
1195
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1097
1196
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1098
1197
    else
1099
1198
      _lt_dsymutil=
1103
1202
])
1104
1203
 
1105
1204
 
1106
 
# _LT_DARWIN_LINKER_FEATURES
1107
 
# --------------------------
 
1205
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
1206
# ---------------------------------
1108
1207
# Checks for linker and compiler features on darwin
1109
1208
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1110
1209
[
1113
1212
  _LT_TAGVAR(hardcode_direct, $1)=no
1114
1213
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1115
1214
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1116
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1215
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1216
    _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\"`'
 
1217
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
1218
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 
1219
  else
 
1220
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1221
  fi
1117
1222
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1118
1223
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1119
1224
  case $cc_basename in
1121
1226
     *) _lt_dar_can_shared=$GCC ;;
1122
1227
  esac
1123
1228
  if test "$_lt_dar_can_shared" = "yes"; then
1124
 
    output_verbose_link_cmd=echo
 
1229
    output_verbose_link_cmd=func_echo_all
1125
1230
    _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}"
1126
1231
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1127
1232
    _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}"
1137
1242
  fi
1138
1243
])
1139
1244
 
1140
 
# _LT_SYS_MODULE_PATH_AIX
1141
 
# -----------------------
 
1245
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1246
# ----------------------------------
1142
1247
# Links a minimal program and checks the executable
1143
1248
# for the system default hardcoded library path. In most cases,
1144
1249
# this is /usr/lib:/lib, but when the MPI compilers are used
1145
1250
# the location of the communication and MPI libs are included too.
1146
1251
# If we don't find anything, use the default library path according
1147
1252
# to the aix ld manual.
 
1253
# Store the results from the different compilers for each TAGNAME.
 
1254
# Allow to override them for all tags through lt_cv_aix_libpath.
1148
1255
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1149
1256
[m4_require([_LT_DECL_SED])dnl
1150
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1151
 
lt_aix_libpath_sed='
1152
 
    /Import File Strings/,/^$/ {
1153
 
        /^0/ {
1154
 
            s/^0  *\(.*\)$/\1/
1155
 
            p
1156
 
        }
1157
 
    }'
1158
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1159
 
# Check for a 64-bit object if we didn't find anything.
1160
 
if test -z "$aix_libpath"; then
1161
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1162
 
fi],[])
1163
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1257
if test "${lt_cv_aix_libpath+set}" = set; then
 
1258
  aix_libpath=$lt_cv_aix_libpath
 
1259
else
 
1260
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1261
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1262
  lt_aix_libpath_sed='[
 
1263
      /Import File Strings/,/^$/ {
 
1264
          /^0/ {
 
1265
              s/^0  *\([^ ]*\) *$/\1/
 
1266
              p
 
1267
          }
 
1268
      }]'
 
1269
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1270
  # Check for a 64-bit object if we didn't find anything.
 
1271
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1272
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1273
  fi],[])
 
1274
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1275
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1276
  fi
 
1277
  ])
 
1278
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1279
fi
1164
1280
])# _LT_SYS_MODULE_PATH_AIX
1165
1281
 
1166
1282
 
1167
1283
# _LT_SHELL_INIT(ARG)
1168
1284
# -------------------
1169
1285
m4_define([_LT_SHELL_INIT],
1170
 
[ifdef([AC_DIVERSION_NOTICE],
1171
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1172
 
         [AC_DIVERT_PUSH(NOTICE)])
1173
 
$1
1174
 
AC_DIVERT_POP
1175
 
])# _LT_SHELL_INIT
 
1286
[m4_divert_text([M4SH-INIT], [$1
 
1287
])])# _LT_SHELL_INIT
 
1288
 
1176
1289
 
1177
1290
 
1178
1291
# _LT_PROG_ECHO_BACKSLASH
1179
1292
# -----------------------
1180
 
# Add some code to the start of the generated configure script which
1181
 
# will find an echo command which doesn't interpret backslashes.
 
1293
# Find how we can fake an echo command that does not interpret backslash.
 
1294
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1295
# of the generated configure script which will find a shell with a builtin
 
1296
# printf (which we can use as an echo command).
1182
1297
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1183
 
[_LT_SHELL_INIT([
1184
 
# Check that we are running under the correct shell.
1185
 
SHELL=${CONFIG_SHELL-/bin/sh}
1186
 
 
1187
 
case X$lt_ECHO in
1188
 
X*--fallback-echo)
1189
 
  # Remove one level of quotation (which was required for Make).
1190
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1191
 
  ;;
 
1298
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1299
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1300
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1301
 
 
1302
AC_MSG_CHECKING([how to print strings])
 
1303
# Test print first, because it will be a builtin if present.
 
1304
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
1305
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1306
  ECHO='print -r --'
 
1307
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1308
  ECHO='printf %s\n'
 
1309
else
 
1310
  # Use this function as a fallback that always works.
 
1311
  func_fallback_echo ()
 
1312
  {
 
1313
    eval 'cat <<_LTECHO_EOF
 
1314
$[]1
 
1315
_LTECHO_EOF'
 
1316
  }
 
1317
  ECHO='func_fallback_echo'
 
1318
fi
 
1319
 
 
1320
# func_echo_all arg...
 
1321
# Invoke $ECHO with all args, space-separated.
 
1322
func_echo_all ()
 
1323
{
 
1324
    $ECHO "$*" 
 
1325
}
 
1326
 
 
1327
case "$ECHO" in
 
1328
  printf*) AC_MSG_RESULT([printf]) ;;
 
1329
  print*) AC_MSG_RESULT([print -r]) ;;
 
1330
  *) AC_MSG_RESULT([cat]) ;;
1192
1331
esac
1193
1332
 
1194
 
ECHO=${lt_ECHO-echo}
1195
 
if test "X[$]1" = X--no-reexec; then
1196
 
  # Discard the --no-reexec flag, and continue.
1197
 
  shift
1198
 
elif test "X[$]1" = X--fallback-echo; then
1199
 
  # Avoid inline document here, it may be left over
1200
 
  :
1201
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1202
 
  # Yippee, $ECHO works!
1203
 
  :
1204
 
else
1205
 
  # Restart under the correct shell.
1206
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1207
 
fi
1208
 
 
1209
 
if test "X[$]1" = X--fallback-echo; then
1210
 
  # used as fallback echo
1211
 
  shift
1212
 
  cat <<_LT_EOF
1213
 
[$]*
1214
 
_LT_EOF
1215
 
  exit 0
1216
 
fi
1217
 
 
1218
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1219
 
# if CDPATH is set.
1220
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1221
 
 
1222
 
if test -z "$lt_ECHO"; then
1223
 
  if test "X${echo_test_string+set}" != Xset; then
1224
 
    # find a string as large as possible, as long as the shell can cope with it
1225
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1226
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1227
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1228
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1229
 
      then
1230
 
        break
1231
 
      fi
1232
 
    done
1233
 
  fi
1234
 
 
1235
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1236
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1237
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1238
 
    :
1239
 
  else
1240
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1241
 
    # backslashes.  This makes it impossible to quote backslashes using
1242
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1243
 
    #
1244
 
    # So, first we look for a working echo in the user's PATH.
1245
 
 
1246
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1247
 
    for dir in $PATH /usr/ucb; do
1248
 
      IFS="$lt_save_ifs"
1249
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1250
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1251
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1252
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1253
 
        ECHO="$dir/echo"
1254
 
        break
1255
 
      fi
1256
 
    done
1257
 
    IFS="$lt_save_ifs"
1258
 
 
1259
 
    if test "X$ECHO" = Xecho; then
1260
 
      # We didn't find a better echo, so look for alternatives.
1261
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1262
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1263
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1264
 
        # This shell has a builtin print -r that does the trick.
1265
 
        ECHO='print -r'
1266
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1267
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1268
 
        # If we have ksh, try running configure again with it.
1269
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1270
 
        export ORIGINAL_CONFIG_SHELL
1271
 
        CONFIG_SHELL=/bin/ksh
1272
 
        export CONFIG_SHELL
1273
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1274
 
      else
1275
 
        # Try using printf.
1276
 
        ECHO='printf %s\n'
1277
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1278
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1279
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1280
 
          # Cool, printf works
1281
 
          :
1282
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1283
 
             test "X$echo_testing_string" = 'X\t' &&
1284
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1285
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1286
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1287
 
          export CONFIG_SHELL
1288
 
          SHELL="$CONFIG_SHELL"
1289
 
          export SHELL
1290
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1291
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1292
 
             test "X$echo_testing_string" = 'X\t' &&
1293
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1294
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1295
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1296
 
        else
1297
 
          # maybe with a smaller string...
1298
 
          prev=:
1299
 
 
1300
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1301
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1302
 
            then
1303
 
              break
1304
 
            fi
1305
 
            prev="$cmd"
1306
 
          done
1307
 
 
1308
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1309
 
            echo_test_string=`eval $prev`
1310
 
            export echo_test_string
1311
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1312
 
          else
1313
 
            # Oops.  We lost completely, so just stick with echo.
1314
 
            ECHO=echo
1315
 
          fi
1316
 
        fi
1317
 
      fi
1318
 
    fi
1319
 
  fi
1320
 
fi
1321
 
 
1322
 
# Copy echo and quote the copy suitably for passing to libtool from
1323
 
# the Makefile, instead of quoting the original, which is used later.
1324
 
lt_ECHO=$ECHO
1325
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1326
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1327
 
fi
1328
 
 
1329
 
AC_SUBST(lt_ECHO)
1330
 
])
 
1333
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1334
[_AS_DETECT_SUGGESTED([
 
1335
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1336
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1337
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1338
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1339
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1340
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1341
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1342
 
1331
1343
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1332
 
_LT_DECL([], [ECHO], [1],
1333
 
    [An echo program that does not interpret backslashes])
 
1344
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1334
1345
])# _LT_PROG_ECHO_BACKSLASH
1335
1346
 
1336
1347
 
 
1348
# _LT_WITH_SYSROOT
 
1349
# ----------------
 
1350
AC_DEFUN([_LT_WITH_SYSROOT],
 
1351
[AC_MSG_CHECKING([for sysroot])
 
1352
AC_ARG_WITH([sysroot],
 
1353
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1354
                        (or the compiler's sysroot if not specified).],
 
1355
[], [with_sysroot=no])
 
1356
 
 
1357
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1358
dnl in case the user passed a directory name.
 
1359
lt_sysroot=
 
1360
case ${with_sysroot} in #(
 
1361
 yes)
 
1362
   if test "$GCC" = yes; then
 
1363
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1364
   fi
 
1365
   ;; #(
 
1366
 /*)
 
1367
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1368
   ;; #(
 
1369
 no|'')
 
1370
   ;; #(
 
1371
 *)
 
1372
   AC_MSG_RESULT([${with_sysroot}])
 
1373
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1374
   ;;
 
1375
esac
 
1376
 
 
1377
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1378
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1379
[dependent libraries, and in which our libraries should be installed.])])
 
1380
 
1337
1381
# _LT_ENABLE_LOCK
1338
1382
# ---------------
1339
1383
m4_defun([_LT_ENABLE_LOCK],
1362
1406
  ;;
1363
1407
*-*-irix6*)
1364
1408
  # Find out which ABI we are using.
1365
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1409
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1366
1410
  if AC_TRY_EVAL(ac_compile); then
1367
1411
    if test "$lt_cv_prog_gnu_ld" = yes; then
1368
1412
      case `/usr/bin/file conftest.$ac_objext` in
1455
1499
    CFLAGS="$SAVE_CFLAGS"
1456
1500
  fi
1457
1501
  ;;
1458
 
sparc*-*solaris*)
 
1502
*-*solaris*)
1459
1503
  # Find out which ABI we are using.
1460
1504
  echo 'int i;' > conftest.$ac_ext
1461
1505
  if AC_TRY_EVAL(ac_compile); then
1462
1506
    case `/usr/bin/file conftest.o` in
1463
1507
    *64-bit*)
1464
1508
      case $lt_cv_prog_gnu_ld in
1465
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
1509
      yes*)
 
1510
        case $host in
 
1511
        i?86-*-solaris*)
 
1512
          LD="${LD-ld} -m elf_x86_64"
 
1513
          ;;
 
1514
        sparc*-*-solaris*)
 
1515
          LD="${LD-ld} -m elf64_sparc"
 
1516
          ;;
 
1517
        esac
 
1518
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
1519
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
1520
          LD="${LD-ld}_sol2"
 
1521
        fi
 
1522
        ;;
1466
1523
      *)
1467
1524
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1468
1525
          LD="${LD-ld} -64"
1480
1537
])# _LT_ENABLE_LOCK
1481
1538
 
1482
1539
 
 
1540
# _LT_PROG_AR
 
1541
# -----------
 
1542
m4_defun([_LT_PROG_AR],
 
1543
[AC_CHECK_TOOLS(AR, [ar], false)
 
1544
: ${AR=ar}
 
1545
: ${AR_FLAGS=cru}
 
1546
_LT_DECL([], [AR], [1], [The archiver])
 
1547
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
1548
 
 
1549
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
1550
  [lt_cv_ar_at_file=no
 
1551
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
1552
     [echo conftest.$ac_objext > conftest.lst
 
1553
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
1554
      AC_TRY_EVAL([lt_ar_try])
 
1555
      if test "$ac_status" -eq 0; then
 
1556
        # Ensure the archiver fails upon bogus file names.
 
1557
        rm -f conftest.$ac_objext libconftest.a
 
1558
        AC_TRY_EVAL([lt_ar_try])
 
1559
        if test "$ac_status" -ne 0; then
 
1560
          lt_cv_ar_at_file=@
 
1561
        fi
 
1562
      fi
 
1563
      rm -f conftest.* libconftest.a
 
1564
     ])
 
1565
  ])
 
1566
 
 
1567
if test "x$lt_cv_ar_at_file" = xno; then
 
1568
  archiver_list_spec=
 
1569
else
 
1570
  archiver_list_spec=$lt_cv_ar_at_file
 
1571
fi
 
1572
_LT_DECL([], [archiver_list_spec], [1],
 
1573
  [How to feed a file listing to the archiver])
 
1574
])# _LT_PROG_AR
 
1575
 
 
1576
 
1483
1577
# _LT_CMD_OLD_ARCHIVE
1484
1578
# -------------------
1485
1579
m4_defun([_LT_CMD_OLD_ARCHIVE],
1486
 
[AC_CHECK_TOOL(AR, ar, false)
1487
 
test -z "$AR" && AR=ar
1488
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1489
 
_LT_DECL([], [AR], [1], [The archiver])
1490
 
_LT_DECL([], [AR_FLAGS], [1])
 
1580
[_LT_PROG_AR
1491
1581
 
1492
1582
AC_CHECK_TOOL(STRIP, strip, :)
1493
1583
test -z "$STRIP" && STRIP=:
1506
1596
if test -n "$RANLIB"; then
1507
1597
  case $host_os in
1508
1598
  openbsd*)
1509
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1599
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1510
1600
    ;;
1511
1601
  *)
1512
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1602
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1513
1603
    ;;
1514
1604
  esac
1515
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1605
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1516
1606
fi
 
1607
 
 
1608
case $host_os in
 
1609
  darwin*)
 
1610
    lock_old_archive_extraction=yes ;;
 
1611
  *)
 
1612
    lock_old_archive_extraction=no ;;
 
1613
esac
1517
1614
_LT_DECL([], [old_postinstall_cmds], [2])
1518
1615
_LT_DECL([], [old_postuninstall_cmds], [2])
1519
1616
_LT_TAGDECL([], [old_archive_cmds], [2],
1520
1617
    [Commands used to build an old-style archive])
 
1618
_LT_DECL([], [lock_old_archive_extraction], [0],
 
1619
    [Whether to use a lock for old archive extraction])
1521
1620
])# _LT_CMD_OLD_ARCHIVE
1522
1621
 
1523
1622
 
1542
1641
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1543
1642
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1544
1643
   -e 's:$: $lt_compiler_flag:'`
1545
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1644
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1546
1645
   (eval "$lt_compile" 2>conftest.err)
1547
1646
   ac_status=$?
1548
1647
   cat conftest.err >&AS_MESSAGE_LOG_FD
1549
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1648
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1550
1649
   if (exit $ac_status) && test -s "$ac_outfile"; then
1551
1650
     # The compiler can only warn and ignore the option if not recognized
1552
1651
     # So say no if there are warnings other than the usual output.
1553
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1652
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1554
1653
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1555
1654
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1556
1655
       $2=yes
1590
1689
     if test -s conftest.err; then
1591
1690
       # Append any errors to the config.log.
1592
1691
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1593
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1692
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1594
1693
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1595
1694
       if diff conftest.exp conftest.er2 >/dev/null; then
1596
1695
         $2=yes
1653
1752
    lt_cv_sys_max_cmd_len=8192;
1654
1753
    ;;
1655
1754
 
 
1755
  mint*)
 
1756
    # On MiNT this can take a long time and run out of memory.
 
1757
    lt_cv_sys_max_cmd_len=8192;
 
1758
    ;;
 
1759
 
1656
1760
  amigaos*)
1657
1761
    # On AmigaOS with pdksh, this test takes hours, literally.
1658
1762
    # So we just punt and use a minimum line length of 8192.
1678
1782
    lt_cv_sys_max_cmd_len=196608
1679
1783
    ;;
1680
1784
 
 
1785
  os2*)
 
1786
    # The test takes a long time on OS/2.
 
1787
    lt_cv_sys_max_cmd_len=8192
 
1788
    ;;
 
1789
 
1681
1790
  osf*)
1682
1791
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1683
1792
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1717
1826
      # If test is not a shell built-in, we'll probably end up computing a
1718
1827
      # maximum length that is only half of the actual maximum length, but
1719
1828
      # we can't tell.
1720
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1721
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
1829
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
1830
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1722
1831
              test $i != 17 # 1/2 MB should be enough
1723
1832
      do
1724
1833
        i=`expr $i + 1`
1769
1878
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1770
1879
  lt_status=$lt_dlunknown
1771
1880
  cat > conftest.$ac_ext <<_LT_EOF
1772
 
[#line __oline__ "configure"
 
1881
[#line $LINENO "configure"
1773
1882
#include "confdefs.h"
1774
1883
 
1775
1884
#if HAVE_DLFCN_H
1810
1919
#  endif
1811
1920
#endif
1812
1921
 
1813
 
void fnord() { int i=42;}
 
1922
/* When -fvisbility=hidden is used, assume the code has been annotated
 
1923
   correspondingly for the symbols needed.  */
 
1924
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
1925
int fnord () __attribute__((visibility("default")));
 
1926
#endif
 
1927
 
 
1928
int fnord () { return 42; }
1814
1929
int main ()
1815
1930
{
1816
1931
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1819
1934
  if (self)
1820
1935
    {
1821
1936
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1822
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
1937
      else
 
1938
        {
 
1939
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
1940
          else puts (dlerror ());
 
1941
        }
1823
1942
      /* dlclose (self); */
1824
1943
    }
1825
1944
  else
1995
2114
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1996
2115
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1997
2116
   -e 's:$: $lt_compiler_flag:'`
1998
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2117
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1999
2118
   (eval "$lt_compile" 2>out/conftest.err)
2000
2119
   ac_status=$?
2001
2120
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2002
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2121
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2003
2122
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2004
2123
   then
2005
2124
     # The compiler can only warn and ignore the option if not recognized
2006
2125
     # So say no if there are warnings
2007
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2126
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2008
2127
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2009
2128
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2010
2129
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2163
2282
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2164
2283
m4_require([_LT_DECL_OBJDUMP])dnl
2165
2284
m4_require([_LT_DECL_SED])dnl
 
2285
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2166
2286
AC_MSG_CHECKING([dynamic linker characteristics])
2167
2287
m4_if([$1],
2168
2288
        [], [
2171
2291
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2172
2292
    *) lt_awk_arg="/^libraries:/" ;;
2173
2293
  esac
2174
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2175
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2294
  case $host_os in
 
2295
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2296
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2297
  esac
 
2298
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2299
  case $lt_search_path_spec in
 
2300
  *\;*)
2176
2301
    # if the path contains ";" then we assume it to be the separator
2177
2302
    # otherwise default to the standard path separator (i.e. ":") - it is
2178
2303
    # assumed that no part of a normal pathname contains ";" but that should
2179
2304
    # okay in the real world where ";" in dirpaths is itself problematic.
2180
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2181
 
  else
2182
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2183
 
  fi
 
2305
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2306
    ;;
 
2307
  *)
 
2308
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2309
    ;;
 
2310
  esac
2184
2311
  # Ok, now we have the path, separated by spaces, we can step through it
2185
2312
  # and add multilib dir if necessary.
2186
2313
  lt_tmp_lt_search_path_spec=
2193
2320
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2194
2321
    fi
2195
2322
  done
2196
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2323
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2197
2324
BEGIN {RS=" "; FS="/|\n";} {
2198
2325
  lt_foo="";
2199
2326
  lt_count=0;
2213
2340
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2214
2341
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2215
2342
}'`
2216
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2343
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2344
  # for these hosts.
 
2345
  case $host_os in
 
2346
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2347
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2348
  esac
 
2349
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2217
2350
else
2218
2351
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2219
2352
fi])
2239
2372
 
2240
2373
case $host_os in
2241
2374
aix3*)
2242
 
  version_type=linux
 
2375
  version_type=linux # correct to gnu/linux during the next big refactor
2243
2376
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2244
2377
  shlibpath_var=LIBPATH
2245
2378
 
2248
2381
  ;;
2249
2382
 
2250
2383
aix[[4-9]]*)
2251
 
  version_type=linux
 
2384
  version_type=linux # correct to gnu/linux during the next big refactor
2252
2385
  need_lib_prefix=no
2253
2386
  need_version=no
2254
2387
  hardcode_into_libs=yes
2301
2434
  m68k)
2302
2435
    library_names_spec='$libname.ixlibrary $libname.a'
2303
2436
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2304
 
    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'
 
2437
    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'
2305
2438
    ;;
2306
2439
  esac
2307
2440
  ;;
2313
2446
  ;;
2314
2447
 
2315
2448
bsdi[[45]]*)
2316
 
  version_type=linux
 
2449
  version_type=linux # correct to gnu/linux during the next big refactor
2317
2450
  need_version=no
2318
2451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2319
2452
  soname_spec='${libname}${release}${shared_ext}$major'
2332
2465
  need_version=no
2333
2466
  need_lib_prefix=no
2334
2467
 
2335
 
  case $GCC,$host_os in
2336
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2468
  case $GCC,$cc_basename in
 
2469
  yes,*)
 
2470
    # gcc
2337
2471
    library_names_spec='$libname.dll.a'
2338
2472
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2339
2473
    postinstall_cmds='base_file=`basename \${file}`~
2354
2488
    cygwin*)
2355
2489
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2356
2490
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2357
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2491
m4_if([$1], [],[
 
2492
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2358
2493
      ;;
2359
2494
    mingw* | cegcc*)
2360
2495
      # MinGW DLLs use traditional 'lib' prefix
2361
2496
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2362
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2363
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2364
 
        # It is most probably a Windows format PATH printed by
2365
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2366
 
        # path with ; separators, and with drive letters. We can handle the
2367
 
        # drive letters (cygwin fileutils understands them), so leave them,
2368
 
        # especially as we might pass files found there to a mingw objdump,
2369
 
        # which wouldn't understand a cygwinified path. Ahh.
2370
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2371
 
      else
2372
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2373
 
      fi
2374
2497
      ;;
2375
2498
    pw32*)
2376
2499
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2377
2500
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2378
2501
      ;;
2379
2502
    esac
 
2503
    dynamic_linker='Win32 ld.exe'
 
2504
    ;;
 
2505
 
 
2506
  *,cl*)
 
2507
    # Native MSVC
 
2508
    libname_spec='$name'
 
2509
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2510
    library_names_spec='${libname}.dll.lib'
 
2511
 
 
2512
    case $build_os in
 
2513
    mingw*)
 
2514
      sys_lib_search_path_spec=
 
2515
      lt_save_ifs=$IFS
 
2516
      IFS=';'
 
2517
      for lt_path in $LIB
 
2518
      do
 
2519
        IFS=$lt_save_ifs
 
2520
        # Let DOS variable expansion print the short 8.3 style file name.
 
2521
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
2522
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
2523
      done
 
2524
      IFS=$lt_save_ifs
 
2525
      # Convert to MSYS style.
 
2526
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
2527
      ;;
 
2528
    cygwin*)
 
2529
      # Convert to unix form, then to dos form, then back to unix form
 
2530
      # but this time dos style (no spaces!) so that the unix form looks
 
2531
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
2532
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
2533
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
2534
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2535
      ;;
 
2536
    *)
 
2537
      sys_lib_search_path_spec="$LIB"
 
2538
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2539
        # It is most probably a Windows format PATH.
 
2540
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2541
      else
 
2542
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2543
      fi
 
2544
      # FIXME: find the short name or the path components, as spaces are
 
2545
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
2546
      ;;
 
2547
    esac
 
2548
 
 
2549
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2550
    postinstall_cmds='base_file=`basename \${file}`~
 
2551
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2552
      dldir=$destdir/`dirname \$dlpath`~
 
2553
      test -d \$dldir || mkdir -p \$dldir~
 
2554
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2555
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2556
      dlpath=$dir/\$dldll~
 
2557
       $RM \$dlpath'
 
2558
    shlibpath_overrides_runpath=yes
 
2559
    dynamic_linker='Win32 link.exe'
2380
2560
    ;;
2381
2561
 
2382
2562
  *)
 
2563
    # Assume MSVC wrapper
2383
2564
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
2565
    dynamic_linker='Win32 ld.exe'
2384
2566
    ;;
2385
2567
  esac
2386
 
  dynamic_linker='Win32 ld.exe'
2387
2568
  # FIXME: first we should search . and the directory the executable is in
2388
2569
  shlibpath_var=PATH
2389
2570
  ;;
2404
2585
  ;;
2405
2586
 
2406
2587
dgux*)
2407
 
  version_type=linux
 
2588
  version_type=linux # correct to gnu/linux during the next big refactor
2408
2589
  need_lib_prefix=no
2409
2590
  need_version=no
2410
2591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2412
2593
  shlibpath_var=LD_LIBRARY_PATH
2413
2594
  ;;
2414
2595
 
2415
 
freebsd1*)
2416
 
  dynamic_linker=no
2417
 
  ;;
2418
 
 
2419
2596
freebsd* | dragonfly*)
2420
2597
  # DragonFly does not have aout.  When/if they implement a new
2421
2598
  # versioning mechanism, adjust this.
2423
2600
    objformat=`/usr/bin/objformat`
2424
2601
  else
2425
2602
    case $host_os in
2426
 
    freebsd[[123]]*) objformat=aout ;;
 
2603
    freebsd[[23]].*) objformat=aout ;;
2427
2604
    *) objformat=elf ;;
2428
2605
    esac
2429
2606
  fi
2441
2618
  esac
2442
2619
  shlibpath_var=LD_LIBRARY_PATH
2443
2620
  case $host_os in
2444
 
  freebsd2*)
 
2621
  freebsd2.*)
2445
2622
    shlibpath_overrides_runpath=yes
2446
2623
    ;;
2447
2624
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2461
2638
  ;;
2462
2639
 
2463
2640
gnu*)
2464
 
  version_type=linux
 
2641
  version_type=linux # correct to gnu/linux during the next big refactor
2465
2642
  need_lib_prefix=no
2466
2643
  need_version=no
2467
2644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2468
2645
  soname_spec='${libname}${release}${shared_ext}$major'
2469
2646
  shlibpath_var=LD_LIBRARY_PATH
 
2647
  shlibpath_overrides_runpath=no
 
2648
  hardcode_into_libs=yes
 
2649
  ;;
 
2650
 
 
2651
haiku*)
 
2652
  version_type=linux # correct to gnu/linux during the next big refactor
 
2653
  need_lib_prefix=no
 
2654
  need_version=no
 
2655
  dynamic_linker="$host_os runtime_loader"
 
2656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2657
  soname_spec='${libname}${release}${shared_ext}$major'
 
2658
  shlibpath_var=LIBRARY_PATH
 
2659
  shlibpath_overrides_runpath=yes
 
2660
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2470
2661
  hardcode_into_libs=yes
2471
2662
  ;;
2472
2663
 
2512
2703
    soname_spec='${libname}${release}${shared_ext}$major'
2513
2704
    ;;
2514
2705
  esac
2515
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2706
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2516
2707
  postinstall_cmds='chmod 555 $lib'
 
2708
  # or fails outright, so override atomically:
 
2709
  install_override_mode=555
2517
2710
  ;;
2518
2711
 
2519
2712
interix[[3-9]]*)
2520
 
  version_type=linux
 
2713
  version_type=linux # correct to gnu/linux during the next big refactor
2521
2714
  need_lib_prefix=no
2522
2715
  need_version=no
2523
2716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2533
2726
    nonstopux*) version_type=nonstopux ;;
2534
2727
    *)
2535
2728
        if test "$lt_cv_prog_gnu_ld" = yes; then
2536
 
                version_type=linux
 
2729
                version_type=linux # correct to gnu/linux during the next big refactor
2537
2730
        else
2538
2731
                version_type=irix
2539
2732
        fi ;;
2570
2763
  dynamic_linker=no
2571
2764
  ;;
2572
2765
 
2573
 
# This must be Linux ELF.
 
2766
# This must be glibc/ELF.
2574
2767
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2575
 
  version_type=linux
 
2768
  version_type=linux # correct to gnu/linux during the next big refactor
2576
2769
  need_lib_prefix=no
2577
2770
  need_version=no
2578
2771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2580
2773
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2581
2774
  shlibpath_var=LD_LIBRARY_PATH
2582
2775
  shlibpath_overrides_runpath=no
 
2776
 
2583
2777
  # Some binutils ld are patched to set DT_RUNPATH
2584
 
  save_LDFLAGS=$LDFLAGS
2585
 
  save_libdir=$libdir
2586
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2587
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2588
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2589
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2590
 
       [shlibpath_overrides_runpath=yes])])
2591
 
  LDFLAGS=$save_LDFLAGS
2592
 
  libdir=$save_libdir
 
2778
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
2779
    [lt_cv_shlibpath_overrides_runpath=no
 
2780
    save_LDFLAGS=$LDFLAGS
 
2781
    save_libdir=$libdir
 
2782
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2783
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2784
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2785
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2786
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
2787
    LDFLAGS=$save_LDFLAGS
 
2788
    libdir=$save_libdir
 
2789
    ])
 
2790
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2593
2791
 
2594
2792
  # This implies no fast_install, which is unacceptable.
2595
2793
  # Some rework will be needed to allow for fast_install
2598
2796
 
2599
2797
  # Append ld.so.conf contents to the search path
2600
2798
  if test -f /etc/ld.so.conf; then
2601
 
    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' ' '`
 
2799
    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' ' '`
2602
2800
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2603
2801
  fi
2604
2802
 
2642
2840
  ;;
2643
2841
 
2644
2842
newsos6)
2645
 
  version_type=linux
 
2843
  version_type=linux # correct to gnu/linux during the next big refactor
2646
2844
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2647
2845
  shlibpath_var=LD_LIBRARY_PATH
2648
2846
  shlibpath_overrides_runpath=yes
2711
2909
  ;;
2712
2910
 
2713
2911
solaris*)
2714
 
  version_type=linux
 
2912
  version_type=linux # correct to gnu/linux during the next big refactor
2715
2913
  need_lib_prefix=no
2716
2914
  need_version=no
2717
2915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2736
2934
  ;;
2737
2935
 
2738
2936
sysv4 | sysv4.3*)
2739
 
  version_type=linux
 
2937
  version_type=linux # correct to gnu/linux during the next big refactor
2740
2938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2741
2939
  soname_spec='${libname}${release}${shared_ext}$major'
2742
2940
  shlibpath_var=LD_LIBRARY_PATH
2760
2958
 
2761
2959
sysv4*MP*)
2762
2960
  if test -d /usr/nec ;then
2763
 
    version_type=linux
 
2961
    version_type=linux # correct to gnu/linux during the next big refactor
2764
2962
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2765
2963
    soname_spec='$libname${shared_ext}.$major'
2766
2964
    shlibpath_var=LD_LIBRARY_PATH
2791
2989
 
2792
2990
tpf*)
2793
2991
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2794
 
  version_type=linux
 
2992
  version_type=linux # correct to gnu/linux during the next big refactor
2795
2993
  need_lib_prefix=no
2796
2994
  need_version=no
2797
2995
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2801
2999
  ;;
2802
3000
 
2803
3001
uts4*)
2804
 
  version_type=linux
 
3002
  version_type=linux # correct to gnu/linux during the next big refactor
2805
3003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2806
3004
  soname_spec='${libname}${release}${shared_ext}$major'
2807
3005
  shlibpath_var=LD_LIBRARY_PATH
2843
3041
    The last name is the one that the linker finds with -lNAME]])
2844
3042
_LT_DECL([], [soname_spec], [1],
2845
3043
    [[The coded name of the library, if different from the real name]])
 
3044
_LT_DECL([], [install_override_mode], [1],
 
3045
    [Permission mode override for installation of shared libraries])
2846
3046
_LT_DECL([], [postinstall_cmds], [2],
2847
3047
    [Command to use after installation of a shared archive])
2848
3048
_LT_DECL([], [postuninstall_cmds], [2],
2955
3155
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2956
3156
m4_require([_LT_DECL_SED])dnl
2957
3157
m4_require([_LT_DECL_EGREP])dnl
 
3158
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2958
3159
 
2959
3160
AC_ARG_WITH([gnu-ld],
2960
3161
    [AS_HELP_STRING([--with-gnu-ld],
3076
3277
esac
3077
3278
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3078
3279
case $host_os in
 
3280
  cygwin* | mingw* | pw32* | cegcc*)
 
3281
    if test "$GCC" != yes; then
 
3282
      reload_cmds=false
 
3283
    fi
 
3284
    ;;
3079
3285
  darwin*)
3080
3286
    if test "$GCC" = yes; then
3081
3287
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3084
3290
    fi
3085
3291
    ;;
3086
3292
esac
3087
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3088
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3293
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3294
_LT_TAGDECL([], [reload_cmds], [2])dnl
3089
3295
])# _LT_CMD_RELOAD
3090
3296
 
3091
3297
 
3137
3343
  # Base MSYS/MinGW do not provide the 'file' command needed by
3138
3344
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3139
3345
  # unless we find 'file', for example because we are cross-compiling.
3140
 
  if ( file / ) >/dev/null 2>&1; then
 
3346
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3347
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3141
3348
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3142
3349
    lt_cv_file_magic_cmd='func_win32_libid'
3143
3350
  else
3144
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3351
    # Keep this pattern in sync with the one in func_win32_libid.
 
3352
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3145
3353
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3146
3354
  fi
3147
3355
  ;;
3148
3356
 
3149
 
cegcc)
 
3357
cegcc*)
3150
3358
  # use the weaker test based on 'objdump'. See mingw*.
3151
3359
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3152
3360
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3176
3384
  lt_cv_deplibs_check_method=pass_all
3177
3385
  ;;
3178
3386
 
 
3387
haiku*)
 
3388
  lt_cv_deplibs_check_method=pass_all
 
3389
  ;;
 
3390
 
3179
3391
hpux10.20* | hpux11*)
3180
3392
  lt_cv_file_magic_cmd=/usr/bin/file
3181
3393
  case $host_cpu in
3184
3396
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3185
3397
    ;;
3186
3398
  hppa*64*)
3187
 
    [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]']
 
3399
    [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]']
3188
3400
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3189
3401
    ;;
3190
3402
  *)
3191
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3403
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3192
3404
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3193
3405
    ;;
3194
3406
  esac
3209
3421
  lt_cv_deplibs_check_method=pass_all
3210
3422
  ;;
3211
3423
 
3212
 
# This must be Linux ELF.
 
3424
# This must be glibc/ELF.
3213
3425
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3214
3426
  lt_cv_deplibs_check_method=pass_all
3215
3427
  ;;
3288
3500
  ;;
3289
3501
esac
3290
3502
])
 
3503
 
 
3504
file_magic_glob=
 
3505
want_nocaseglob=no
 
3506
if test "$build" = "$host"; then
 
3507
  case $host_os in
 
3508
  mingw* | pw32*)
 
3509
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3510
      want_nocaseglob=yes
 
3511
    else
 
3512
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3513
    fi
 
3514
    ;;
 
3515
  esac
 
3516
fi
 
3517
 
3291
3518
file_magic_cmd=$lt_cv_file_magic_cmd
3292
3519
deplibs_check_method=$lt_cv_deplibs_check_method
3293
3520
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3295
3522
_LT_DECL([], [deplibs_check_method], [1],
3296
3523
    [Method to check whether dependent libraries are shared objects])
3297
3524
_LT_DECL([], [file_magic_cmd], [1],
3298
 
    [Command to use when deplibs_check_method == "file_magic"])
 
3525
    [Command to use when deplibs_check_method = "file_magic"])
 
3526
_LT_DECL([], [file_magic_glob], [1],
 
3527
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3528
_LT_DECL([], [want_nocaseglob], [1],
 
3529
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3299
3530
])# _LT_CHECK_MAGIC_METHOD
3300
3531
 
3301
3532
 
3352
3583
  NM="$lt_cv_path_NM"
3353
3584
else
3354
3585
  # Didn't find any BSD compatible name lister, look for dumpbin.
3355
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3586
  if test -n "$DUMPBIN"; then :
 
3587
    # Let the user override the test.
 
3588
  else
 
3589
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3590
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3591
    *COFF*)
 
3592
      DUMPBIN="$DUMPBIN -symbols"
 
3593
      ;;
 
3594
    *)
 
3595
      DUMPBIN=:
 
3596
      ;;
 
3597
    esac
 
3598
  fi
3356
3599
  AC_SUBST([DUMPBIN])
3357
3600
  if test "$DUMPBIN" != ":"; then
3358
3601
    NM="$DUMPBIN"
3365
3608
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3366
3609
  [lt_cv_nm_interface="BSD nm"
3367
3610
  echo "int some_variable = 0;" > conftest.$ac_ext
3368
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3611
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3369
3612
  (eval "$ac_compile" 2>conftest.err)
3370
3613
  cat conftest.err >&AS_MESSAGE_LOG_FD
3371
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3614
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3372
3615
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3373
3616
  cat conftest.err >&AS_MESSAGE_LOG_FD
3374
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3617
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3375
3618
  cat conftest.out >&AS_MESSAGE_LOG_FD
3376
3619
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3377
3620
    lt_cv_nm_interface="MS dumpbin"
3386
3629
dnl AC_DEFUN([AM_PROG_NM], [])
3387
3630
dnl AC_DEFUN([AC_PROG_NM], [])
3388
3631
 
 
3632
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3633
# --------------------------------
 
3634
# how to determine the name of the shared library
 
3635
# associated with a specific link library.
 
3636
#  -- PORTME fill in with the dynamic library characteristics
 
3637
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
3638
[m4_require([_LT_DECL_EGREP])
 
3639
m4_require([_LT_DECL_OBJDUMP])
 
3640
m4_require([_LT_DECL_DLLTOOL])
 
3641
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
3642
lt_cv_sharedlib_from_linklib_cmd,
 
3643
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
3644
 
 
3645
case $host_os in
 
3646
cygwin* | mingw* | pw32* | cegcc*)
 
3647
  # two different shell functions defined in ltmain.sh
 
3648
  # decide which to use based on capabilities of $DLLTOOL
 
3649
  case `$DLLTOOL --help 2>&1` in
 
3650
  *--identify-strict*)
 
3651
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
3652
    ;;
 
3653
  *)
 
3654
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
3655
    ;;
 
3656
  esac
 
3657
  ;;
 
3658
*)
 
3659
  # fallback: assume linklib IS sharedlib
 
3660
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
3661
  ;;
 
3662
esac
 
3663
])
 
3664
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
3665
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
3666
 
 
3667
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
3668
    [Command to associate shared and link libraries])
 
3669
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3670
 
 
3671
 
 
3672
# _LT_PATH_MANIFEST_TOOL
 
3673
# ----------------------
 
3674
# locate the manifest tool
 
3675
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
3676
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
3677
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
3678
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
3679
  [lt_cv_path_mainfest_tool=no
 
3680
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
3681
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
3682
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3683
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
3684
    lt_cv_path_mainfest_tool=yes
 
3685
  fi
 
3686
  rm -f conftest*])
 
3687
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
3688
  MANIFEST_TOOL=:
 
3689
fi
 
3690
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
3691
])# _LT_PATH_MANIFEST_TOOL
 
3692
 
3389
3693
 
3390
3694
# LT_LIB_M
3391
3695
# --------
3394
3698
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3395
3699
LIBM=
3396
3700
case $host in
3397
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3701
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3398
3702
  # These system don't have libm, or don't need it
3399
3703
  ;;
3400
3704
*-ncr-sysv4.3*)
3422
3726
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3423
3727
 
3424
3728
if test "$GCC" = yes; then
3425
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3729
  case $cc_basename in
 
3730
  nvcc*)
 
3731
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3732
  *)
 
3733
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3734
  esac
3426
3735
 
3427
3736
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3428
3737
    lt_cv_prog_compiler_rtti_exceptions,
3439
3748
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3440
3749
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3441
3750
AC_REQUIRE([AC_PROG_CC])dnl
 
3751
AC_REQUIRE([AC_PROG_AWK])dnl
3442
3752
AC_REQUIRE([LT_PATH_NM])dnl
3443
3753
AC_REQUIRE([LT_PATH_LD])dnl
3444
3754
m4_require([_LT_DECL_SED])dnl
3506
3816
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3507
3817
 
3508
3818
# Transform an extracted symbol line into symbol name and symbol address
3509
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3510
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
3819
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3820
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
3511
3821
 
3512
3822
# Handle CRLF in mingw tool chain
3513
3823
opt_cr=
3531
3841
    # which start with @ or ?.
3532
3842
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3533
3843
"     {last_section=section; section=\$ 3};"\
 
3844
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3534
3845
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3535
3846
"     \$ 0!~/External *\|/{next};"\
3536
3847
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3543
3854
  else
3544
3855
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3545
3856
  fi
 
3857
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3546
3858
 
3547
3859
  # Check to see that the pipe works correctly.
3548
3860
  pipe_works=no
3564
3876
  if AC_TRY_EVAL(ac_compile); then
3565
3877
    # Now try to grab the symbols.
3566
3878
    nlist=conftest.nm
3567
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
3879
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3568
3880
      # Try sorting and uniquifying the output.
3569
3881
      if sort "$nlist" | uniq > "$nlist"T; then
3570
3882
        mv -f "$nlist"T "$nlist"
3576
3888
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3577
3889
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3578
3890
          cat <<_LT_EOF > conftest.$ac_ext
 
3891
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
3892
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
3893
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
3894
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
3895
# define LT@&t@_DLSYM_CONST
 
3896
#elif defined(__osf__)
 
3897
/* This system does not cope well with relocations in const data.  */
 
3898
# define LT@&t@_DLSYM_CONST
 
3899
#else
 
3900
# define LT@&t@_DLSYM_CONST const
 
3901
#endif
 
3902
 
3579
3903
#ifdef __cplusplus
3580
3904
extern "C" {
3581
3905
#endif
3587
3911
          cat <<_LT_EOF >> conftest.$ac_ext
3588
3912
 
3589
3913
/* The mapping between symbol names and symbols.  */
3590
 
const struct {
 
3914
LT@&t@_DLSYM_CONST struct {
3591
3915
  const char *name;
3592
3916
  void       *address;
3593
3917
}
3613
3937
_LT_EOF
3614
3938
          # Now try linking the two files.
3615
3939
          mv conftest.$ac_objext conftstm.$ac_objext
3616
 
          lt_save_LIBS="$LIBS"
3617
 
          lt_save_CFLAGS="$CFLAGS"
 
3940
          lt_globsym_save_LIBS=$LIBS
 
3941
          lt_globsym_save_CFLAGS=$CFLAGS
3618
3942
          LIBS="conftstm.$ac_objext"
3619
3943
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3620
3944
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3621
3945
            pipe_works=yes
3622
3946
          fi
3623
 
          LIBS="$lt_save_LIBS"
3624
 
          CFLAGS="$lt_save_CFLAGS"
 
3947
          LIBS=$lt_globsym_save_LIBS
 
3948
          CFLAGS=$lt_globsym_save_CFLAGS
3625
3949
        else
3626
3950
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3627
3951
        fi
3654
3978
  AC_MSG_RESULT(ok)
3655
3979
fi
3656
3980
 
 
3981
# Response file support.
 
3982
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3983
  nm_file_list_spec='@'
 
3984
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
3985
  nm_file_list_spec='@'
 
3986
fi
 
3987
 
3657
3988
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3658
3989
    [Take the output of nm and produce a listing of raw symbols and C names])
3659
3990
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3664
3995
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3665
3996
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3666
3997
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3998
_LT_DECL([], [nm_file_list_spec], [1],
 
3999
    [Specify filename containing input files for $NM])
3667
4000
]) # _LT_CMD_GLOBAL_SYMBOLS
3668
4001
 
3669
4002
 
3675
4008
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3676
4009
_LT_TAGVAR(lt_prog_compiler_static, $1)=
3677
4010
 
3678
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
3679
4011
m4_if([$1], [CXX], [
3680
4012
  # C++ specific cases for pic, static, wl, etc.
3681
4013
  if test "$GXX" = yes; then
3726
4058
      # DJGPP does not support shared libraries at all
3727
4059
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3728
4060
      ;;
 
4061
    haiku*)
 
4062
      # PIC is the default for Haiku.
 
4063
      # The "-static" flag exists, but is broken.
 
4064
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4065
      ;;
3729
4066
    interix[[3-9]]*)
3730
4067
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3731
4068
      # Instead, we relocate shared libraries at runtime.
3775
4112
          ;;
3776
4113
        esac
3777
4114
        ;;
 
4115
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4116
        # This hack is so that the source file can tell whether it is being
 
4117
        # built for inclusion in a dll (and should export symbols for example).
 
4118
        m4_if([$1], [GCJ], [],
 
4119
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4120
        ;;
3778
4121
      dgux*)
3779
4122
        case $cc_basename in
3780
4123
          ec++*)
3864
4207
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3865
4208
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3866
4209
            ;;
3867
 
          xlc* | xlC*)
3868
 
            # IBM XL 8.0 on PPC
 
4210
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4211
            # IBM XL 8.0, 9.0 on PPC and BlueGene
3869
4212
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3870
4213
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3871
4214
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3927
4270
        ;;
3928
4271
      solaris*)
3929
4272
        case $cc_basename in
3930
 
          CC*)
 
4273
          CC* | sunCC*)
3931
4274
            # Sun C++ 4.2, 5.x and Centerline C++
3932
4275
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3933
4276
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4031
4374
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4032
4375
      ;;
4033
4376
 
 
4377
    haiku*)
 
4378
      # PIC is the default for Haiku.
 
4379
      # The "-static" flag exists, but is broken.
 
4380
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4381
      ;;
 
4382
 
4034
4383
    hpux*)
4035
4384
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4036
4385
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4073
4422
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4074
4423
      ;;
4075
4424
    esac
 
4425
 
 
4426
    case $cc_basename in
 
4427
    nvcc*) # Cuda Compiler Driver 2.2
 
4428
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4429
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4430
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
4431
      fi
 
4432
      ;;
 
4433
    esac
4076
4434
  else
4077
4435
    # PORTME Check for flag to pass linker flags through the system compiler.
4078
4436
    case $host_os in
4136
4494
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4137
4495
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4138
4496
        ;;
4139
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4497
      nagfor*)
 
4498
        # NAG Fortran compiler
 
4499
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4500
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4501
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4502
        ;;
 
4503
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4140
4504
        # Portland Group compilers (*not* the Pentium gcc compiler,
4141
4505
        # which looks to be a dead project)
4142
4506
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4148
4512
        # All Alpha code is PIC.
4149
4513
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4150
4514
        ;;
4151
 
      xl*)
4152
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4515
      xl* | bgxl* | bgf* | mpixl*)
 
4516
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4153
4517
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4154
4518
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4155
4519
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4156
4520
        ;;
4157
4521
      *)
4158
4522
        case `$CC -V 2>&1 | sed 5q` in
 
4523
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 
4524
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4525
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4526
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4527
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4528
          ;;
 
4529
        *Sun\ F* | *Sun*Fortran*)
 
4530
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4531
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4532
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4533
          ;;
4159
4534
        *Sun\ C*)
4160
4535
          # Sun C 5.9
4161
4536
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4162
4537
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4163
4538
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4164
4539
          ;;
4165
 
        *Sun\ F*)
4166
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4167
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4540
        *Intel*\ [[CF]]*Compiler*)
 
4541
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4542
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4543
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4544
          ;;
 
4545
        *Portland\ Group*)
 
4546
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4547
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4168
4548
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4169
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4170
4549
          ;;
4171
4550
        esac
4172
4551
        ;;
4198
4577
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4199
4578
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4200
4579
      case $cc_basename in
4201
 
      f77* | f90* | f95*)
 
4580
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4202
4581
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4203
4582
      *)
4204
4583
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4255
4634
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4256
4635
    ;;
4257
4636
esac
4258
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4259
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4260
 
        [How to pass a linker flag through the compiler])
 
4637
 
 
4638
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
4639
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
4640
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4641
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4261
4642
 
4262
4643
#
4263
4644
# Check to make sure the PIC flag actually works.
4276
4657
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4277
4658
        [Additional compiler flags for building library objects])
4278
4659
 
 
4660
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4661
        [How to pass a linker flag through the compiler])
4279
4662
#
4280
4663
# Check to make sure the static flag actually works.
4281
4664
#
4296
4679
m4_defun([_LT_LINKER_SHLIBS],
4297
4680
[AC_REQUIRE([LT_PATH_LD])dnl
4298
4681
AC_REQUIRE([LT_PATH_NM])dnl
 
4682
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4299
4683
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4300
4684
m4_require([_LT_DECL_EGREP])dnl
4301
4685
m4_require([_LT_DECL_SED])dnl
4304
4688
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4305
4689
m4_if([$1], [CXX], [
4306
4690
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4691
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4307
4692
  case $host_os in
4308
4693
  aix[[4-9]]*)
4309
4694
    # If we're using GNU nm, then we don't want the "-C" option.
4310
4695
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4696
    # Also, AIX nm treats weak defined symbols like other global defined
 
4697
    # symbols, whereas GNU nm marks them as "W".
4311
4698
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4312
 
      _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'
 
4699
      _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'
4313
4700
    else
4314
4701
      _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'
4315
4702
    fi
4316
4703
    ;;
4317
4704
  pw32*)
4318
4705
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4319
 
  ;;
 
4706
    ;;
4320
4707
  cygwin* | mingw* | cegcc*)
4321
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4322
 
  ;;
4323
 
  linux* | k*bsd*-gnu)
 
4708
    case $cc_basename in
 
4709
    cl*)
 
4710
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
4711
      ;;
 
4712
    *)
 
4713
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
4714
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
4715
      ;;
 
4716
    esac
 
4717
    ;;
 
4718
  linux* | k*bsd*-gnu | gnu*)
4324
4719
    _LT_TAGVAR(link_all_deplibs, $1)=no
4325
 
  ;;
 
4720
    ;;
4326
4721
  *)
4327
4722
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4328
 
  ;;
 
4723
    ;;
4329
4724
  esac
4330
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4331
4725
], [
4332
4726
  runpath_var=
4333
4727
  _LT_TAGVAR(allow_undefined_flag, $1)=
4342
4736
  _LT_TAGVAR(hardcode_direct, $1)=no
4343
4737
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4344
4738
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4345
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4346
4739
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4347
4740
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4348
4741
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4387
4780
  openbsd*)
4388
4781
    with_gnu_ld=no
4389
4782
    ;;
4390
 
  linux* | k*bsd*-gnu)
 
4783
  linux* | k*bsd*-gnu | gnu*)
4391
4784
    _LT_TAGVAR(link_all_deplibs, $1)=no
4392
4785
    ;;
4393
4786
  esac
4394
4787
 
4395
4788
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4789
 
 
4790
  # On some targets, GNU ld is compatible enough with the native linker
 
4791
  # that we're better off using the native interface for both.
 
4792
  lt_use_gnu_ld_interface=no
4396
4793
  if test "$with_gnu_ld" = yes; then
 
4794
    case $host_os in
 
4795
      aix*)
 
4796
        # The AIX port of GNU ld has always aspired to compatibility
 
4797
        # with the native linker.  However, as the warning in the GNU ld
 
4798
        # block says, versions before 2.19.5* couldn't really create working
 
4799
        # shared libraries, regardless of the interface used.
 
4800
        case `$LD -v 2>&1` in
 
4801
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4802
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4803
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4804
          *)
 
4805
            lt_use_gnu_ld_interface=yes
 
4806
            ;;
 
4807
        esac
 
4808
        ;;
 
4809
      *)
 
4810
        lt_use_gnu_ld_interface=yes
 
4811
        ;;
 
4812
    esac
 
4813
  fi
 
4814
 
 
4815
  if test "$lt_use_gnu_ld_interface" = yes; then
4397
4816
    # If archive_cmds runs LD, not CC, wlarc should be empty
4398
4817
    wlarc='${wl}'
4399
4818
 
4427
4846
        _LT_TAGVAR(ld_shlibs, $1)=no
4428
4847
        cat <<_LT_EOF 1>&2
4429
4848
 
4430
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4849
*** Warning: the GNU linker, at least up to release 2.19, is reported
4431
4850
*** to be unable to reliably create shared libraries on AIX.
4432
4851
*** Therefore, libtool is disabling shared libraries support.  If you
4433
 
*** really care for shared libraries, you may want to modify your PATH
4434
 
*** so that a non-GNU linker is found, and then restart.
 
4852
*** really care for shared libraries, you may want to install binutils
 
4853
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
4854
*** You will then need to restart the configuration process.
4435
4855
 
4436
4856
_LT_EOF
4437
4857
      fi
4467
4887
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4468
4888
      # as there is no search path for DLLs.
4469
4889
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4890
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4470
4891
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4471
4892
      _LT_TAGVAR(always_export_symbols, $1)=no
4472
4893
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4473
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
4894
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
4895
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4474
4896
 
4475
4897
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4476
4898
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4488
4910
      fi
4489
4911
      ;;
4490
4912
 
 
4913
    haiku*)
 
4914
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4915
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4916
      ;;
 
4917
 
4491
4918
    interix[[3-9]]*)
4492
4919
      _LT_TAGVAR(hardcode_direct, $1)=no
4493
4920
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4513
4940
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4514
4941
         && test "$tmp_diet" = no
4515
4942
      then
4516
 
        tmp_addflag=
 
4943
        tmp_addflag=' $pic_flag'
4517
4944
        tmp_sharedflag='-shared'
4518
4945
        case $cc_basename,$host_cpu in
4519
4946
        pgcc*)                          # Portland Group C compiler
4520
 
          _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'
 
4947
          _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'
4521
4948
          tmp_addflag=' $pic_flag'
4522
4949
          ;;
4523
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4524
 
          _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'
 
4950
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
4951
                                        # Portland Group f77 and f90 compilers
 
4952
          _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'
4525
4953
          tmp_addflag=' $pic_flag -Mnomain' ;;
4526
4954
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4527
4955
          tmp_addflag=' -i_dynamic' ;;
4532
4960
        lf95*)                          # Lahey Fortran 8.1
4533
4961
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4534
4962
          tmp_sharedflag='--shared' ;;
4535
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4963
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4536
4964
          tmp_sharedflag='-qmkshrobj'
4537
4965
          tmp_addflag= ;;
 
4966
        nvcc*)  # Cuda Compiler Driver 2.2
 
4967
          _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'
 
4968
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
4969
          ;;
4538
4970
        esac
4539
4971
        case `$CC -V 2>&1 | sed 5q` in
4540
4972
        *Sun\ C*)                       # Sun C 5.9
4541
 
          _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'
 
4973
          _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'
4542
4974
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4543
4975
          tmp_sharedflag='-G' ;;
4544
4976
        *Sun\ F*)                       # Sun Fortran 8.3
4554
4986
        fi
4555
4987
 
4556
4988
        case $cc_basename in
4557
 
        xlf*)
 
4989
        xlf* | bgf* | bgxlf* | mpixlf*)
4558
4990
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4559
4991
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4560
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4561
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4562
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4992
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4993
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4563
4994
          if test "x$supports_anon_versioning" = xyes; then
4564
4995
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4565
4996
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4566
4997
              echo "local: *; };" >> $output_objdir/$libname.ver~
4567
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4998
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4568
4999
          fi
4569
5000
          ;;
4570
5001
        esac
4578
5009
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4579
5010
        wlarc=
4580
5011
      else
4581
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4582
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5012
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5013
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4583
5014
      fi
4584
5015
      ;;
4585
5016
 
4597
5028
 
4598
5029
_LT_EOF
4599
5030
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4600
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4601
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5031
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5032
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4602
5033
      else
4603
5034
        _LT_TAGVAR(ld_shlibs, $1)=no
4604
5035
      fi
4644
5075
 
4645
5076
    *)
4646
5077
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4647
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4648
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5078
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5079
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4649
5080
      else
4650
5081
        _LT_TAGVAR(ld_shlibs, $1)=no
4651
5082
      fi
4685
5116
      else
4686
5117
        # If we're using GNU nm, then we don't want the "-C" option.
4687
5118
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5119
        # Also, AIX nm treats weak defined symbols like other global
 
5120
        # defined symbols, whereas GNU nm marks them as "W".
4688
5121
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4689
 
          _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'
 
5122
          _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'
4690
5123
        else
4691
5124
          _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'
4692
5125
        fi
4774
5207
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4775
5208
        # Determine the default libpath from the value encoded in an
4776
5209
        # empty executable.
4777
 
        _LT_SYS_MODULE_PATH_AIX
 
5210
        _LT_SYS_MODULE_PATH_AIX([$1])
4778
5211
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4779
 
        _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"
 
5212
        _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"
4780
5213
      else
4781
5214
        if test "$host_cpu" = ia64; then
4782
5215
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4785
5218
        else
4786
5219
         # Determine the default libpath from the value encoded in an
4787
5220
         # empty executable.
4788
 
         _LT_SYS_MODULE_PATH_AIX
 
5221
         _LT_SYS_MODULE_PATH_AIX([$1])
4789
5222
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4790
5223
          # Warning - without using the other run time loading flags,
4791
5224
          # -berok will link without error, but may produce a broken library.
4792
5225
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4793
5226
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4794
 
          # Exported symbols can be pulled into shared objects from archives
4795
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5227
          if test "$with_gnu_ld" = yes; then
 
5228
            # We only use this code for GNU lds that support --whole-archive.
 
5229
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5230
          else
 
5231
            # Exported symbols can be pulled into shared objects from archives
 
5232
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5233
          fi
4796
5234
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4797
5235
          # This is similar to how AIX traditionally builds its shared libraries.
4798
5236
          _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'
4824
5262
      # Microsoft Visual C++.
4825
5263
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4826
5264
      # no search path for DLLs.
4827
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4828
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4829
 
      # Tell ltmain to make .lib files, not .a files.
4830
 
      libext=lib
4831
 
      # Tell ltmain to make .dll files, not .so files.
4832
 
      shrext_cmds=".dll"
4833
 
      # FIXME: Setting linknames here is a bad hack.
4834
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4835
 
      # The linker will automatically build a .lib file if we build a DLL.
4836
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4837
 
      # FIXME: Should let the user specify the lib program.
4838
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4839
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4840
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5265
      case $cc_basename in
 
5266
      cl*)
 
5267
        # Native MSVC
 
5268
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5269
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5270
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5271
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5272
        # Tell ltmain to make .lib files, not .a files.
 
5273
        libext=lib
 
5274
        # Tell ltmain to make .dll files, not .so files.
 
5275
        shrext_cmds=".dll"
 
5276
        # FIXME: Setting linknames here is a bad hack.
 
5277
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5278
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5279
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5280
          else
 
5281
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5282
          fi~
 
5283
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5284
          linknames='
 
5285
        # The linker will not automatically build a static lib if we build a DLL.
 
5286
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5287
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5288
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5289
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5290
        # Don't use ranlib
 
5291
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5292
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5293
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5294
          case $lt_outputfile in
 
5295
            *.exe|*.EXE) ;;
 
5296
            *)
 
5297
              lt_outputfile="$lt_outputfile.exe"
 
5298
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5299
              ;;
 
5300
          esac~
 
5301
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5302
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5303
            $RM "$lt_outputfile.manifest";
 
5304
          fi'
 
5305
        ;;
 
5306
      *)
 
5307
        # Assume MSVC wrapper
 
5308
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5309
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5310
        # Tell ltmain to make .lib files, not .a files.
 
5311
        libext=lib
 
5312
        # Tell ltmain to make .dll files, not .so files.
 
5313
        shrext_cmds=".dll"
 
5314
        # FIXME: Setting linknames here is a bad hack.
 
5315
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5316
        # The linker will automatically build a .lib file if we build a DLL.
 
5317
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5318
        # FIXME: Should let the user specify the lib program.
 
5319
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5320
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5321
        ;;
 
5322
      esac
4841
5323
      ;;
4842
5324
 
4843
5325
    darwin* | rhapsody*)
4850
5332
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4851
5333
      ;;
4852
5334
 
4853
 
    freebsd1*)
4854
 
      _LT_TAGVAR(ld_shlibs, $1)=no
4855
 
      ;;
4856
 
 
4857
5335
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4858
5336
    # support.  Future versions do this automatically, but an explicit c++rt0.o
4859
5337
    # does not break anything, and helps significantly (at the cost of a little
4866
5344
      ;;
4867
5345
 
4868
5346
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4869
 
    freebsd2*)
 
5347
    freebsd2.*)
4870
5348
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4871
5349
      _LT_TAGVAR(hardcode_direct, $1)=yes
4872
5350
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4875
5353
 
4876
5354
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4877
5355
    freebsd* | dragonfly*)
4878
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5356
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4879
5357
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4880
5358
      _LT_TAGVAR(hardcode_direct, $1)=yes
4881
5359
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4883
5361
 
4884
5362
    hpux9*)
4885
5363
      if test "$GCC" = yes; then
4886
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5364
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4887
5365
      else
4888
5366
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4889
5367
      fi
4898
5376
      ;;
4899
5377
 
4900
5378
    hpux10*)
4901
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4902
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5379
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5380
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4903
5381
      else
4904
5382
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4905
5383
      fi
4906
5384
      if test "$with_gnu_ld" = no; then
4907
5385
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4908
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4909
5386
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4910
5387
        _LT_TAGVAR(hardcode_direct, $1)=yes
4911
5388
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4917
5394
      ;;
4918
5395
 
4919
5396
    hpux11*)
4920
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5397
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4921
5398
        case $host_cpu in
4922
5399
        hppa*64*)
4923
5400
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4924
5401
          ;;
4925
5402
        ia64*)
4926
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5403
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4927
5404
          ;;
4928
5405
        *)
4929
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5406
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4930
5407
          ;;
4931
5408
        esac
4932
5409
      else
4938
5415
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4939
5416
          ;;
4940
5417
        *)
4941
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5418
        m4_if($1, [], [
 
5419
          # Older versions of the 11.00 compiler do not understand -b yet
 
5420
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5421
          _LT_LINKER_OPTION([if $CC understands -b],
 
5422
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5423
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5424
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5425
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4942
5426
          ;;
4943
5427
        esac
4944
5428
      fi
4966
5450
 
4967
5451
    irix5* | irix6* | nonstopux*)
4968
5452
      if test "$GCC" = yes; then
4969
 
        _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'
 
5453
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4970
5454
        # Try to use the -exported_symbol ld option, if it does not
4971
5455
        # work, assume that -exports_file does not work either and
4972
5456
        # implicitly export all symbols.
4973
 
        save_LDFLAGS="$LDFLAGS"
4974
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4975
 
        AC_LINK_IFELSE(int foo(void) {},
4976
 
          _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'
4977
 
        )
4978
 
        LDFLAGS="$save_LDFLAGS"
 
5457
        # This should be the same for all languages, so no per-tag cache variable.
 
5458
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5459
          [lt_cv_irix_exported_symbol],
 
5460
          [save_LDFLAGS="$LDFLAGS"
 
5461
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5462
           AC_LINK_IFELSE(
 
5463
             [AC_LANG_SOURCE(
 
5464
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5465
                              [C++], [[int foo (void) { return 0; }]],
 
5466
                              [Fortran 77], [[
 
5467
      subroutine foo
 
5468
      end]],
 
5469
                              [Fortran], [[
 
5470
      subroutine foo
 
5471
      end]])])],
 
5472
              [lt_cv_irix_exported_symbol=yes],
 
5473
              [lt_cv_irix_exported_symbol=no])
 
5474
           LDFLAGS="$save_LDFLAGS"])
 
5475
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5476
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5477
        fi
4979
5478
      else
4980
 
        _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'
4981
 
        _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'
 
5479
        _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'
 
5480
        _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'
4982
5481
      fi
4983
5482
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4984
5483
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5040
5539
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5041
5540
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5042
5541
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5043
 
      _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'
 
5542
      _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'
5044
5543
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5045
5544
      ;;
5046
5545
 
5047
5546
    osf3*)
5048
5547
      if test "$GCC" = yes; then
5049
5548
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5050
 
        _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'
 
5549
        _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'
5051
5550
      else
5052
5551
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5053
 
        _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'
 
5552
        _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'
5054
5553
      fi
5055
5554
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5056
5555
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5060
5559
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5061
5560
      if test "$GCC" = yes; then
5062
5561
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5063
 
        _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'
 
5562
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5064
5563
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5065
5564
      else
5066
5565
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5067
 
        _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'
 
5566
        _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'
5068
5567
        _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~
5069
 
        $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'
 
5568
        $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'
5070
5569
 
5071
5570
        # Both c and cxx compiler support -rpath directly
5072
5571
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5079
5578
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5080
5579
      if test "$GCC" = yes; then
5081
5580
        wlarc='${wl}'
5082
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5581
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5083
5582
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5084
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5583
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5085
5584
      else
5086
5585
        case `$CC -V 2>&1` in
5087
5586
        *"Compilers 5.0"*)
5257
5756
      # Test whether the compiler implicitly links with -lc since on some
5258
5757
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5259
5758
      # to ld, don't add -lc before -lgcc.
5260
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5261
 
      $RM conftest*
5262
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5759
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5760
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5761
        [$RM conftest*
 
5762
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5263
5763
 
5264
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5265
 
        soname=conftest
5266
 
        lib=conftest
5267
 
        libobjs=conftest.$ac_objext
5268
 
        deplibs=
5269
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5270
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5271
 
        compiler_flags=-v
5272
 
        linker_flags=-v
5273
 
        verstring=
5274
 
        output_objdir=.
5275
 
        libname=conftest
5276
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5277
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5278
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5279
 
        then
5280
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5281
 
        else
5282
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5283
 
        fi
5284
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5285
 
      else
5286
 
        cat conftest.err 1>&5
5287
 
      fi
5288
 
      $RM conftest*
5289
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5764
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5765
          soname=conftest
 
5766
          lib=conftest
 
5767
          libobjs=conftest.$ac_objext
 
5768
          deplibs=
 
5769
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5770
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5771
          compiler_flags=-v
 
5772
          linker_flags=-v
 
5773
          verstring=
 
5774
          output_objdir=.
 
5775
          libname=conftest
 
5776
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5777
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5778
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5779
          then
 
5780
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5781
          else
 
5782
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5783
          fi
 
5784
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5785
        else
 
5786
          cat conftest.err 1>&5
 
5787
        fi
 
5788
        $RM conftest*
 
5789
        ])
 
5790
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5290
5791
      ;;
5291
5792
    esac
5292
5793
  fi
5323
5824
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5324
5825
    [Flag to hardcode $libdir into a binary during linking.
5325
5826
    This must work even if $libdir does not exist])
5326
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5327
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5328
 
    during linking.  This must work even if $libdir does not exist]])
5329
5827
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5330
5828
    [Whether we need a single "-rpath" flag with a separated argument])
5331
5829
_LT_TAGDECL([], [hardcode_direct], [0],
5351
5849
    to runtime path list])
5352
5850
_LT_TAGDECL([], [link_all_deplibs], [0],
5353
5851
    [Whether libtool must link a program against all its dependency libraries])
5354
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5355
 
    [Fix the shell variable $srcfile for the compiler])
5356
5852
_LT_TAGDECL([], [always_export_symbols], [0],
5357
5853
    [Set to "yes" if exported symbols are required])
5358
5854
_LT_TAGDECL([], [export_symbols_cmds], [2],
5363
5859
    [Symbols that must always be exported])
5364
5860
_LT_TAGDECL([], [prelink_cmds], [2],
5365
5861
    [Commands necessary for linking programs (against libraries) with templates])
 
5862
_LT_TAGDECL([], [postlink_cmds], [2],
 
5863
    [Commands necessary for finishing linking programs])
5366
5864
_LT_TAGDECL([], [file_list_spec], [1],
5367
5865
    [Specify filename containing input files])
5368
5866
dnl FIXME: Not yet implemented
5452
5950
])# _LT_LANG_C_CONFIG
5453
5951
 
5454
5952
 
5455
 
# _LT_PROG_CXX
5456
 
# ------------
5457
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5458
 
# compiler, we have our own version here.
5459
 
m4_defun([_LT_PROG_CXX],
5460
 
[
5461
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5462
 
AC_PROG_CXX
 
5953
# _LT_LANG_CXX_CONFIG([TAG])
 
5954
# --------------------------
 
5955
# Ensure that the configuration variables for a C++ compiler are suitably
 
5956
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5957
# the compiler configuration to `libtool'.
 
5958
m4_defun([_LT_LANG_CXX_CONFIG],
 
5959
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5960
m4_require([_LT_DECL_EGREP])dnl
 
5961
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5463
5962
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5464
5963
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5465
5964
    (test "X$CXX" != "Xg++"))) ; then
5467
5966
else
5468
5967
  _lt_caught_CXX_error=yes
5469
5968
fi
5470
 
popdef([AC_MSG_ERROR])
5471
 
])# _LT_PROG_CXX
5472
 
 
5473
 
dnl aclocal-1.4 backwards compatibility:
5474
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5475
 
 
5476
 
 
5477
 
# _LT_LANG_CXX_CONFIG([TAG])
5478
 
# --------------------------
5479
 
# Ensure that the configuration variables for a C++ compiler are suitably
5480
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5481
 
# the compiler configuration to `libtool'.
5482
 
m4_defun([_LT_LANG_CXX_CONFIG],
5483
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5484
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5485
 
m4_require([_LT_DECL_EGREP])dnl
5486
5969
 
5487
5970
AC_LANG_PUSH(C++)
5488
5971
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5494
5977
_LT_TAGVAR(hardcode_direct, $1)=no
5495
5978
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5496
5979
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5497
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5498
5980
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5499
5981
_LT_TAGVAR(hardcode_minus_L, $1)=no
5500
5982
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5504
5986
_LT_TAGVAR(module_expsym_cmds, $1)=
5505
5987
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5506
5988
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5989
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
5990
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5507
5991
_LT_TAGVAR(no_undefined_flag, $1)=
5508
5992
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5509
5993
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5535
6019
 
5536
6020
  # Allow CC to be a program name with arguments.
5537
6021
  lt_save_CC=$CC
 
6022
  lt_save_CFLAGS=$CFLAGS
5538
6023
  lt_save_LD=$LD
5539
6024
  lt_save_GCC=$GCC
5540
6025
  GCC=$GXX
5552
6037
  fi
5553
6038
  test -z "${LDCXX+set}" || LD=$LDCXX
5554
6039
  CC=${CXX-"c++"}
 
6040
  CFLAGS=$CXXFLAGS
5555
6041
  compiler=$CC
5556
6042
  _LT_TAGVAR(compiler, $1)=$CC
5557
6043
  _LT_CC_BASENAME([$compiler])
5573
6059
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5574
6060
      # archiving commands below assume that GNU ld is being used.
5575
6061
      if test "$with_gnu_ld" = yes; then
5576
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5577
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6062
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6063
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5578
6064
 
5579
6065
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5580
6066
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5606
6092
      # Commands to make compiler produce verbose output that lists
5607
6093
      # what "hidden" libraries, object files and flags are used when
5608
6094
      # linking a shared library.
5609
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6095
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5610
6096
 
5611
6097
    else
5612
6098
      GXX=no
5715
6201
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5716
6202
          # Determine the default libpath from the value encoded in an empty
5717
6203
          # executable.
5718
 
          _LT_SYS_MODULE_PATH_AIX
 
6204
          _LT_SYS_MODULE_PATH_AIX([$1])
5719
6205
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5720
6206
 
5721
 
          _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"
 
6207
          _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"
5722
6208
        else
5723
6209
          if test "$host_cpu" = ia64; then
5724
6210
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5727
6213
          else
5728
6214
            # Determine the default libpath from the value encoded in an
5729
6215
            # empty executable.
5730
 
            _LT_SYS_MODULE_PATH_AIX
 
6216
            _LT_SYS_MODULE_PATH_AIX([$1])
5731
6217
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5732
6218
            # Warning - without using the other run time loading flags,
5733
6219
            # -berok will link without error, but may produce a broken library.
5734
6220
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5735
6221
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5736
 
            # Exported symbols can be pulled into shared objects from archives
5737
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6222
            if test "$with_gnu_ld" = yes; then
 
6223
              # We only use this code for GNU lds that support --whole-archive.
 
6224
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6225
            else
 
6226
              # Exported symbols can be pulled into shared objects from archives
 
6227
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6228
            fi
5738
6229
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5739
6230
            # This is similar to how AIX traditionally builds its shared
5740
6231
            # libraries.
5764
6255
        ;;
5765
6256
 
5766
6257
      cygwin* | mingw* | pw32* | cegcc*)
5767
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5768
 
        # as there is no search path for DLLs.
5769
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5770
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5771
 
        _LT_TAGVAR(always_export_symbols, $1)=no
5772
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6258
        case $GXX,$cc_basename in
 
6259
        ,cl* | no,cl*)
 
6260
          # Native MSVC
 
6261
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6262
          # no search path for DLLs.
 
6263
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6264
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6265
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6266
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6267
          # Tell ltmain to make .lib files, not .a files.
 
6268
          libext=lib
 
6269
          # Tell ltmain to make .dll files, not .so files.
 
6270
          shrext_cmds=".dll"
 
6271
          # FIXME: Setting linknames here is a bad hack.
 
6272
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6273
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6274
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6275
            else
 
6276
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6277
            fi~
 
6278
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6279
            linknames='
 
6280
          # The linker will not automatically build a static lib if we build a DLL.
 
6281
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6282
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6283
          # Don't use ranlib
 
6284
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6285
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6286
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6287
            case $lt_outputfile in
 
6288
              *.exe|*.EXE) ;;
 
6289
              *)
 
6290
                lt_outputfile="$lt_outputfile.exe"
 
6291
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6292
                ;;
 
6293
            esac~
 
6294
            func_to_tool_file "$lt_outputfile"~
 
6295
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6296
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6297
              $RM "$lt_outputfile.manifest";
 
6298
            fi'
 
6299
          ;;
 
6300
        *)
 
6301
          # g++
 
6302
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6303
          # as there is no search path for DLLs.
 
6304
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6305
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6306
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6307
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6308
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5773
6309
 
5774
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5775
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5776
 
          # If the export-symbols file already is a .def file (1st line
5777
 
          # is EXPORTS), use it as is; otherwise, prepend...
5778
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5779
 
            cp $export_symbols $output_objdir/$soname.def;
5780
 
          else
5781
 
            echo EXPORTS > $output_objdir/$soname.def;
5782
 
            cat $export_symbols >> $output_objdir/$soname.def;
5783
 
          fi~
5784
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5785
 
        else
5786
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5787
 
        fi
5788
 
        ;;
 
6310
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6311
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6312
            # If the export-symbols file already is a .def file (1st line
 
6313
            # is EXPORTS), use it as is; otherwise, prepend...
 
6314
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6315
              cp $export_symbols $output_objdir/$soname.def;
 
6316
            else
 
6317
              echo EXPORTS > $output_objdir/$soname.def;
 
6318
              cat $export_symbols >> $output_objdir/$soname.def;
 
6319
            fi~
 
6320
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6321
          else
 
6322
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6323
          fi
 
6324
          ;;
 
6325
        esac
 
6326
        ;;
5789
6327
      darwin* | rhapsody*)
5790
6328
        _LT_DARWIN_LINKER_FEATURES($1)
5791
6329
        ;;
5808
6346
        esac
5809
6347
        ;;
5810
6348
 
5811
 
      freebsd[[12]]*)
 
6349
      freebsd2.*)
5812
6350
        # C++ shared libraries reported to be fairly broken before
5813
6351
        # switch to ELF
5814
6352
        _LT_TAGVAR(ld_shlibs, $1)=no
5827
6365
      gnu*)
5828
6366
        ;;
5829
6367
 
 
6368
      haiku*)
 
6369
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6370
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6371
        ;;
 
6372
 
5830
6373
      hpux9*)
5831
6374
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5832
6375
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5851
6394
            # explicitly linking system object files so we need to strip them
5852
6395
            # from the output so that they don't get included in the library
5853
6396
            # dependencies.
5854
 
            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'
 
6397
            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"'
5855
6398
            ;;
5856
6399
          *)
5857
6400
            if test "$GXX" = yes; then
5858
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6401
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5859
6402
            else
5860
6403
              # FIXME: insert proper C++ library support
5861
6404
              _LT_TAGVAR(ld_shlibs, $1)=no
5916
6459
            # explicitly linking system object files so we need to strip them
5917
6460
            # from the output so that they don't get included in the library
5918
6461
            # dependencies.
5919
 
            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'
 
6462
            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"'
5920
6463
            ;;
5921
6464
          *)
5922
6465
            if test "$GXX" = yes; then
5926
6469
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5927
6470
                    ;;
5928
6471
                  ia64*)
5929
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6472
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5930
6473
                    ;;
5931
6474
                  *)
5932
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6475
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5933
6476
                    ;;
5934
6477
                esac
5935
6478
              fi
5959
6502
        case $cc_basename in
5960
6503
          CC*)
5961
6504
            # SGI C++
5962
 
            _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'
 
6505
            _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'
5963
6506
 
5964
6507
            # Archives containing C++ object files must be created using
5965
6508
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5970
6513
          *)
5971
6514
            if test "$GXX" = yes; then
5972
6515
              if test "$with_gnu_ld" = no; then
5973
 
                _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'
 
6516
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5974
6517
              else
5975
 
                _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'
 
6518
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
5976
6519
              fi
5977
6520
            fi
5978
6521
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6001
6544
            # explicitly linking system object files so we need to strip them
6002
6545
            # from the output so that they don't get included in the library
6003
6546
            # dependencies.
6004
 
            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'
 
6547
            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"'
6005
6548
 
6006
6549
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6007
6550
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6038
6581
          pgCC* | pgcpp*)
6039
6582
            # Portland Group C++ compiler
6040
6583
            case `$CC -V` in
6041
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6584
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6042
6585
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6043
6586
                rm -rf $tpldir~
6044
6587
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6045
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6588
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6046
6589
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6047
6590
                rm -rf $tpldir~
6048
6591
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6049
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6592
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6050
6593
                $RANLIB $oldlib'
6051
6594
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6052
6595
                rm -rf $tpldir~
6053
6596
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6054
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6597
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6055
6598
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6056
6599
                rm -rf $tpldir~
6057
6600
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6058
 
                $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'
 
6601
                $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'
6059
6602
              ;;
6060
 
            *) # Version 6 will use weak symbols
 
6603
            *) # Version 6 and above use weak symbols
6061
6604
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6062
6605
              _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'
6063
6606
              ;;
6065
6608
 
6066
6609
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6067
6610
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6068
 
            _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'
 
6611
            _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'
6069
6612
            ;;
6070
6613
          cxx*)
6071
6614
            # Compaq C++
6084
6627
            # explicitly linking system object files so we need to strip them
6085
6628
            # from the output so that they don't get included in the library
6086
6629
            # dependencies.
6087
 
            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'
 
6630
            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'
6088
6631
            ;;
6089
 
          xl*)
 
6632
          xl* | mpixl* | bgxl*)
6090
6633
            # IBM XL 8.0 on PPC, with GNU ld
6091
6634
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6092
6635
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6106
6649
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6107
6650
              _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'
6108
6651
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6109
 
              _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'
 
6652
              _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'
6110
6653
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6111
6654
 
6112
6655
              # Not sure whether something based on
6113
6656
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6114
6657
              # would be better.
6115
 
              output_verbose_link_cmd='echo'
 
6658
              output_verbose_link_cmd='func_echo_all'
6116
6659
 
6117
6660
              # Archives containing C++ object files must be created using
6118
6661
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6181
6724
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6182
6725
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6183
6726
          fi
6184
 
          output_verbose_link_cmd=echo
 
6727
          output_verbose_link_cmd=func_echo_all
6185
6728
        else
6186
6729
          _LT_TAGVAR(ld_shlibs, $1)=no
6187
6730
        fi
6216
6759
            case $host in
6217
6760
              osf3*)
6218
6761
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6219
 
                _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'
 
6762
                _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'
6220
6763
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6221
6764
                ;;
6222
6765
              *)
6223
6766
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6224
 
                _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'
 
6767
                _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'
6225
6768
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6226
6769
                  echo "-hidden">> $lib.exp~
6227
 
                  $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~
 
6770
                  $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~
6228
6771
                  $RM $lib.exp'
6229
6772
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6230
6773
                ;;
6240
6783
            # explicitly linking system object files so we need to strip them
6241
6784
            # from the output so that they don't get included in the library
6242
6785
            # dependencies.
6243
 
            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'
 
6786
            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"'
6244
6787
            ;;
6245
6788
          *)
6246
6789
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6247
6790
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6248
6791
              case $host in
6249
6792
                osf3*)
6250
 
                  _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'
 
6793
                  _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'
6251
6794
                  ;;
6252
6795
                *)
6253
 
                  _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'
 
6796
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6254
6797
                  ;;
6255
6798
              esac
6256
6799
 
6260
6803
              # Commands to make compiler produce verbose output that lists
6261
6804
              # what "hidden" libraries, object files and flags are used when
6262
6805
              # linking a shared library.
6263
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6806
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6264
6807
 
6265
6808
            else
6266
6809
              # FIXME: insert proper C++ library support
6296
6839
 
6297
6840
      solaris*)
6298
6841
        case $cc_basename in
6299
 
          CC*)
 
6842
          CC* | sunCC*)
6300
6843
            # Sun C++ 4.2, 5.x and Centerline C++
6301
6844
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6302
6845
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6317
6860
            esac
6318
6861
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6319
6862
 
6320
 
            output_verbose_link_cmd='echo'
 
6863
            output_verbose_link_cmd='func_echo_all'
6321
6864
 
6322
6865
            # Archives containing C++ object files must be created using
6323
6866
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6337
6880
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6338
6881
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6339
6882
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6340
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6883
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6341
6884
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6342
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6885
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6343
6886
 
6344
6887
                # Commands to make compiler produce verbose output that lists
6345
6888
                # what "hidden" libraries, object files and flags are used when
6346
6889
                # linking a shared library.
6347
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6890
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6348
6891
              else
6349
6892
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6350
6893
                # platform.
6355
6898
                # Commands to make compiler produce verbose output that lists
6356
6899
                # what "hidden" libraries, object files and flags are used when
6357
6900
                # linking a shared library.
6358
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6901
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6359
6902
              fi
6360
6903
 
6361
6904
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6409
6952
          CC*)
6410
6953
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6411
6954
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6955
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
6956
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
6957
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
6958
              '"$_LT_TAGVAR(reload_cmds, $1)"
6412
6959
            ;;
6413
6960
          *)
6414
6961
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6464
7011
  fi # test -n "$compiler"
6465
7012
 
6466
7013
  CC=$lt_save_CC
 
7014
  CFLAGS=$lt_save_CFLAGS
6467
7015
  LDCXX=$LD
6468
7016
  LD=$lt_save_LD
6469
7017
  GCC=$lt_save_GCC
6478
7026
])# _LT_LANG_CXX_CONFIG
6479
7027
 
6480
7028
 
 
7029
# _LT_FUNC_STRIPNAME_CNF
 
7030
# ----------------------
 
7031
# func_stripname_cnf prefix suffix name
 
7032
# strip PREFIX and SUFFIX off of NAME.
 
7033
# PREFIX and SUFFIX must not contain globbing or regex special
 
7034
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7035
# dot (in which case that matches only a dot).
 
7036
#
 
7037
# This function is identical to the (non-XSI) version of func_stripname,
 
7038
# except this one can be used by m4 code that may be executed by configure,
 
7039
# rather than the libtool script.
 
7040
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7041
AC_REQUIRE([_LT_DECL_SED])
 
7042
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7043
func_stripname_cnf ()
 
7044
{
 
7045
  case ${2} in
 
7046
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7047
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7048
  esac
 
7049
} # func_stripname_cnf
 
7050
])# _LT_FUNC_STRIPNAME_CNF
 
7051
 
6481
7052
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6482
7053
# ---------------------------------
6483
7054
# Figure out "hidden" library dependencies from verbose
6486
7057
# objects, libraries and library flags.
6487
7058
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6488
7059
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7060
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6489
7061
# Dependencies to place before and after the object being linked:
6490
7062
_LT_TAGVAR(predep_objects, $1)=
6491
7063
_LT_TAGVAR(postdep_objects, $1)=
6535
7107
  }
6536
7108
};
6537
7109
_LT_EOF
 
7110
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
7111
package foo
 
7112
func foo() {
 
7113
}
 
7114
_LT_EOF
6538
7115
])
 
7116
 
 
7117
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7118
case "$CC $CFLAGS " in #(
 
7119
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7120
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7121
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
7122
esac
 
7123
 
6539
7124
dnl Parse the compiler output and extract the necessary
6540
7125
dnl objects, libraries and library flags.
6541
7126
if AC_TRY_EVAL(ac_compile); then
6547
7132
  pre_test_object_deps_done=no
6548
7133
 
6549
7134
  for p in `eval "$output_verbose_link_cmd"`; do
6550
 
    case $p in
 
7135
    case ${prev}${p} in
6551
7136
 
6552
7137
    -L* | -R* | -l*)
6553
7138
       # Some compilers place space between "-{L,R}" and the path.
6556
7141
          test $p = "-R"; then
6557
7142
         prev=$p
6558
7143
         continue
6559
 
       else
6560
 
         prev=
6561
7144
       fi
6562
7145
 
 
7146
       # Expand the sysroot to ease extracting the directories later.
 
7147
       if test -z "$prev"; then
 
7148
         case $p in
 
7149
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7150
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7151
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7152
         esac
 
7153
       fi
 
7154
       case $p in
 
7155
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7156
       esac
6563
7157
       if test "$pre_test_object_deps_done" = no; then
6564
 
         case $p in
6565
 
         -L* | -R*)
 
7158
         case ${prev} in
 
7159
         -L | -R)
6566
7160
           # Internal compiler library paths should come after those
6567
7161
           # provided the user.  The postdeps already come after the
6568
7162
           # user supplied libs so there is no need to process them.
6582
7176
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6583
7177
         fi
6584
7178
       fi
 
7179
       prev=
6585
7180
       ;;
6586
7181
 
 
7182
    *.lto.$objext) ;; # Ignore GCC LTO objects
6587
7183
    *.$objext)
6588
7184
       # This assumes that the test object file only shows up
6589
7185
       # once in the compiler output.
6619
7215
fi
6620
7216
 
6621
7217
$RM -f confest.$objext
 
7218
CFLAGS=$_lt_libdeps_save_CFLAGS
6622
7219
 
6623
7220
# PORTME: override above test on systems where it is broken
6624
7221
m4_if([$1], [CXX],
6655
7252
 
6656
7253
solaris*)
6657
7254
  case $cc_basename in
6658
 
  CC*)
 
7255
  CC* | sunCC*)
6659
7256
    # The more standards-conforming stlport4 library is
6660
7257
    # incompatible with the Cstd library. Avoid specifying
6661
7258
    # it if it's in CXXFLAGS. Ignore libCrun as
6699
7296
])# _LT_SYS_HIDDEN_LIBDEPS
6700
7297
 
6701
7298
 
6702
 
# _LT_PROG_F77
6703
 
# ------------
6704
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6705
 
# if there is no fortran compiler, we have our own version here.
6706
 
m4_defun([_LT_PROG_F77],
6707
 
[
6708
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6709
 
AC_PROG_F77
6710
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6711
 
  _lt_disable_F77=yes
6712
 
fi
6713
 
popdef([AC_MSG_ERROR])
6714
 
])# _LT_PROG_F77
6715
 
 
6716
 
dnl aclocal-1.4 backwards compatibility:
6717
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6718
 
 
6719
 
 
6720
7299
# _LT_LANG_F77_CONFIG([TAG])
6721
7300
# --------------------------
6722
7301
# Ensure that the configuration variables for a Fortran 77 compiler are
6723
7302
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6724
7303
# to write the compiler configuration to `libtool'.
6725
7304
m4_defun([_LT_LANG_F77_CONFIG],
6726
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6727
 
AC_LANG_PUSH(Fortran 77)
 
7305
[AC_LANG_PUSH(Fortran 77)
 
7306
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7307
  _lt_disable_F77=yes
 
7308
fi
6728
7309
 
6729
7310
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6730
7311
_LT_TAGVAR(allow_undefined_flag, $1)=
6734
7315
_LT_TAGVAR(hardcode_direct, $1)=no
6735
7316
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6736
7317
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6737
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6738
7318
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6739
7319
_LT_TAGVAR(hardcode_minus_L, $1)=no
6740
7320
_LT_TAGVAR(hardcode_automatic, $1)=no
6743
7323
_LT_TAGVAR(module_expsym_cmds, $1)=
6744
7324
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6745
7325
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7326
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7327
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6746
7328
_LT_TAGVAR(no_undefined_flag, $1)=
6747
7329
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6748
7330
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6782
7364
  # Allow CC to be a program name with arguments.
6783
7365
  lt_save_CC="$CC"
6784
7366
  lt_save_GCC=$GCC
 
7367
  lt_save_CFLAGS=$CFLAGS
6785
7368
  CC=${F77-"f77"}
 
7369
  CFLAGS=$FFLAGS
6786
7370
  compiler=$CC
6787
7371
  _LT_TAGVAR(compiler, $1)=$CC
6788
7372
  _LT_CC_BASENAME([$compiler])
6836
7420
 
6837
7421
  GCC=$lt_save_GCC
6838
7422
  CC="$lt_save_CC"
 
7423
  CFLAGS="$lt_save_CFLAGS"
6839
7424
fi # test "$_lt_disable_F77" != yes
6840
7425
 
6841
7426
AC_LANG_POP
6842
7427
])# _LT_LANG_F77_CONFIG
6843
7428
 
6844
7429
 
6845
 
# _LT_PROG_FC
6846
 
# -----------
6847
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6848
 
# if there is no fortran compiler, we have our own version here.
6849
 
m4_defun([_LT_PROG_FC],
6850
 
[
6851
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6852
 
AC_PROG_FC
6853
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6854
 
  _lt_disable_FC=yes
6855
 
fi
6856
 
popdef([AC_MSG_ERROR])
6857
 
])# _LT_PROG_FC
6858
 
 
6859
 
dnl aclocal-1.4 backwards compatibility:
6860
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6861
 
 
6862
 
 
6863
7430
# _LT_LANG_FC_CONFIG([TAG])
6864
7431
# -------------------------
6865
7432
# Ensure that the configuration variables for a Fortran compiler are
6866
7433
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6867
7434
# to write the compiler configuration to `libtool'.
6868
7435
m4_defun([_LT_LANG_FC_CONFIG],
6869
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6870
 
AC_LANG_PUSH(Fortran)
 
7436
[AC_LANG_PUSH(Fortran)
 
7437
 
 
7438
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7439
  _lt_disable_FC=yes
 
7440
fi
6871
7441
 
6872
7442
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6873
7443
_LT_TAGVAR(allow_undefined_flag, $1)=
6877
7447
_LT_TAGVAR(hardcode_direct, $1)=no
6878
7448
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6879
7449
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6880
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6881
7450
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6882
7451
_LT_TAGVAR(hardcode_minus_L, $1)=no
6883
7452
_LT_TAGVAR(hardcode_automatic, $1)=no
6886
7455
_LT_TAGVAR(module_expsym_cmds, $1)=
6887
7456
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6888
7457
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7458
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7459
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6889
7460
_LT_TAGVAR(no_undefined_flag, $1)=
6890
7461
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6891
7462
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6925
7496
  # Allow CC to be a program name with arguments.
6926
7497
  lt_save_CC="$CC"
6927
7498
  lt_save_GCC=$GCC
 
7499
  lt_save_CFLAGS=$CFLAGS
6928
7500
  CC=${FC-"f95"}
 
7501
  CFLAGS=$FCFLAGS
6929
7502
  compiler=$CC
6930
7503
  GCC=$ac_cv_fc_compiler_gnu
6931
7504
 
6981
7554
  fi # test -n "$compiler"
6982
7555
 
6983
7556
  GCC=$lt_save_GCC
6984
 
  CC="$lt_save_CC"
 
7557
  CC=$lt_save_CC
 
7558
  CFLAGS=$lt_save_CFLAGS
6985
7559
fi # test "$_lt_disable_FC" != yes
6986
7560
 
6987
7561
AC_LANG_POP
7018
7592
_LT_LINKER_BOILERPLATE
7019
7593
 
7020
7594
# Allow CC to be a program name with arguments.
7021
 
lt_save_CC="$CC"
 
7595
lt_save_CC=$CC
 
7596
lt_save_CFLAGS=$CFLAGS
7022
7597
lt_save_GCC=$GCC
7023
7598
GCC=yes
7024
7599
CC=${GCJ-"gcj"}
 
7600
CFLAGS=$GCJFLAGS
7025
7601
compiler=$CC
7026
7602
_LT_TAGVAR(compiler, $1)=$CC
7027
7603
_LT_TAGVAR(LD, $1)="$LD"
7031
7607
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7032
7608
 
7033
7609
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7610
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7611
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7034
7612
 
7035
7613
if test -n "$compiler"; then
7036
7614
  _LT_COMPILER_NO_RTTI($1)
7046
7624
AC_LANG_RESTORE
7047
7625
 
7048
7626
GCC=$lt_save_GCC
7049
 
CC="$lt_save_CC"
 
7627
CC=$lt_save_CC
 
7628
CFLAGS=$lt_save_CFLAGS
7050
7629
])# _LT_LANG_GCJ_CONFIG
7051
7630
 
7052
7631
 
 
7632
# _LT_LANG_GO_CONFIG([TAG])
 
7633
# --------------------------
 
7634
# Ensure that the configuration variables for the GNU Go compiler
 
7635
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7636
# to write the compiler configuration to `libtool'.
 
7637
m4_defun([_LT_LANG_GO_CONFIG],
 
7638
[AC_REQUIRE([LT_PROG_GO])dnl
 
7639
AC_LANG_SAVE
 
7640
 
 
7641
# Source file extension for Go test sources.
 
7642
ac_ext=go
 
7643
 
 
7644
# Object file extension for compiled Go test sources.
 
7645
objext=o
 
7646
_LT_TAGVAR(objext, $1)=$objext
 
7647
 
 
7648
# Code to be used in simple compile tests
 
7649
lt_simple_compile_test_code="package main; func main() { }"
 
7650
 
 
7651
# Code to be used in simple link tests
 
7652
lt_simple_link_test_code='package main; func main() { }'
 
7653
 
 
7654
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7655
_LT_TAG_COMPILER
 
7656
 
 
7657
# save warnings/boilerplate of simple test code
 
7658
_LT_COMPILER_BOILERPLATE
 
7659
_LT_LINKER_BOILERPLATE
 
7660
 
 
7661
# Allow CC to be a program name with arguments.
 
7662
lt_save_CC=$CC
 
7663
lt_save_CFLAGS=$CFLAGS
 
7664
lt_save_GCC=$GCC
 
7665
GCC=yes
 
7666
CC=${GOC-"gccgo"}
 
7667
CFLAGS=$GOFLAGS
 
7668
compiler=$CC
 
7669
_LT_TAGVAR(compiler, $1)=$CC
 
7670
_LT_TAGVAR(LD, $1)="$LD"
 
7671
_LT_CC_BASENAME([$compiler])
 
7672
 
 
7673
# Go did not exist at the time GCC didn't implicitly link libc in.
 
7674
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7675
 
 
7676
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7677
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7678
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
7679
 
 
7680
if test -n "$compiler"; then
 
7681
  _LT_COMPILER_NO_RTTI($1)
 
7682
  _LT_COMPILER_PIC($1)
 
7683
  _LT_COMPILER_C_O($1)
 
7684
  _LT_COMPILER_FILE_LOCKS($1)
 
7685
  _LT_LINKER_SHLIBS($1)
 
7686
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7687
 
 
7688
  _LT_CONFIG($1)
 
7689
fi
 
7690
 
 
7691
AC_LANG_RESTORE
 
7692
 
 
7693
GCC=$lt_save_GCC
 
7694
CC=$lt_save_CC
 
7695
CFLAGS=$lt_save_CFLAGS
 
7696
])# _LT_LANG_GO_CONFIG
 
7697
 
 
7698
 
7053
7699
# _LT_LANG_RC_CONFIG([TAG])
7054
7700
# -------------------------
7055
7701
# Ensure that the configuration variables for the Windows resource compiler
7081
7727
 
7082
7728
# Allow CC to be a program name with arguments.
7083
7729
lt_save_CC="$CC"
 
7730
lt_save_CFLAGS=$CFLAGS
7084
7731
lt_save_GCC=$GCC
7085
7732
GCC=
7086
7733
CC=${RC-"windres"}
 
7734
CFLAGS=
7087
7735
compiler=$CC
7088
7736
_LT_TAGVAR(compiler, $1)=$CC
7089
7737
_LT_CC_BASENAME([$compiler])
7096
7744
 
7097
7745
GCC=$lt_save_GCC
7098
7746
AC_LANG_RESTORE
7099
 
CC="$lt_save_CC"
 
7747
CC=$lt_save_CC
 
7748
CFLAGS=$lt_save_CFLAGS
7100
7749
])# _LT_LANG_RC_CONFIG
7101
7750
 
7102
7751
 
7116
7765
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7117
7766
 
7118
7767
 
 
7768
# LT_PROG_GO
 
7769
# ----------
 
7770
AC_DEFUN([LT_PROG_GO],
 
7771
[AC_CHECK_TOOL(GOC, gccgo,)
 
7772
])
 
7773
 
 
7774
 
7119
7775
# LT_PROG_RC
7120
7776
# ----------
7121
7777
AC_DEFUN([LT_PROG_RC],
7155
7811
AC_SUBST([OBJDUMP])
7156
7812
])
7157
7813
 
 
7814
# _LT_DECL_DLLTOOL
 
7815
# ----------------
 
7816
# Ensure DLLTOOL variable is set.
 
7817
m4_defun([_LT_DECL_DLLTOOL],
 
7818
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7819
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7820
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
7821
AC_SUBST([DLLTOOL])
 
7822
])
7158
7823
 
7159
7824
# _LT_DECL_SED
7160
7825
# ------------
7246
7911
# Try some XSI features
7247
7912
xsi_shell=no
7248
7913
( _lt_dummy="a/b/c"
7249
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7250
 
      = c,a/b,, \
 
7914
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
7915
      = c,a/b,b/c, \
7251
7916
    && eval 'test $(( 1 + 1 )) -eq 2 \
7252
7917
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7253
7918
  && xsi_shell=yes
7286
7951
])# _LT_CHECK_SHELL_FEATURES
7287
7952
 
7288
7953
 
7289
 
# _LT_PROG_XSI_SHELLFNS
7290
 
# ---------------------
7291
 
# Bourne and XSI compatible variants of some useful shell functions.
7292
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7293
 
[case $xsi_shell in
7294
 
  yes)
7295
 
    cat << \_LT_EOF >> "$cfgfile"
7296
 
 
7297
 
# func_dirname file append nondir_replacement
7298
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7299
 
# otherwise set result to NONDIR_REPLACEMENT.
7300
 
func_dirname ()
7301
 
{
7302
 
  case ${1} in
7303
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7304
 
    *  ) func_dirname_result="${3}" ;;
7305
 
  esac
7306
 
}
7307
 
 
7308
 
# func_basename file
7309
 
func_basename ()
7310
 
{
7311
 
  func_basename_result="${1##*/}"
7312
 
}
7313
 
 
7314
 
# func_dirname_and_basename file append nondir_replacement
7315
 
# perform func_basename and func_dirname in a single function
7316
 
# call:
7317
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7318
 
#             add APPEND to the result, otherwise set result
7319
 
#             to NONDIR_REPLACEMENT.
7320
 
#             value returned in "$func_dirname_result"
7321
 
#   basename: Compute filename of FILE.
7322
 
#             value retuned in "$func_basename_result"
7323
 
# Implementation must be kept synchronized with func_dirname
7324
 
# and func_basename. For efficiency, we do not delegate to
7325
 
# those functions but instead duplicate the functionality here.
7326
 
func_dirname_and_basename ()
7327
 
{
7328
 
  case ${1} in
7329
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7330
 
    *  ) func_dirname_result="${3}" ;;
7331
 
  esac
7332
 
  func_basename_result="${1##*/}"
7333
 
}
7334
 
 
7335
 
# func_stripname prefix suffix name
7336
 
# strip PREFIX and SUFFIX off of NAME.
7337
 
# PREFIX and SUFFIX must not contain globbing or regex special
7338
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7339
 
# dot (in which case that matches only a dot).
7340
 
func_stripname ()
7341
 
{
7342
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7343
 
  # positional parameters, so assign one to ordinary parameter first.
7344
 
  func_stripname_result=${3}
7345
 
  func_stripname_result=${func_stripname_result#"${1}"}
7346
 
  func_stripname_result=${func_stripname_result%"${2}"}
7347
 
}
7348
 
 
7349
 
# func_opt_split
7350
 
func_opt_split ()
7351
 
{
7352
 
  func_opt_split_opt=${1%%=*}
7353
 
  func_opt_split_arg=${1#*=}
7354
 
}
7355
 
 
7356
 
# func_lo2o object
7357
 
func_lo2o ()
7358
 
{
7359
 
  case ${1} in
7360
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7361
 
    *)    func_lo2o_result=${1} ;;
7362
 
  esac
7363
 
}
7364
 
 
7365
 
# func_xform libobj-or-source
7366
 
func_xform ()
7367
 
{
7368
 
  func_xform_result=${1%.*}.lo
7369
 
}
7370
 
 
7371
 
# func_arith arithmetic-term...
7372
 
func_arith ()
7373
 
{
7374
 
  func_arith_result=$(( $[*] ))
7375
 
}
7376
 
 
7377
 
# func_len string
7378
 
# STRING may not start with a hyphen.
7379
 
func_len ()
7380
 
{
7381
 
  func_len_result=${#1}
7382
 
}
7383
 
 
7384
 
_LT_EOF
7385
 
    ;;
7386
 
  *) # Bourne compatible functions.
7387
 
    cat << \_LT_EOF >> "$cfgfile"
7388
 
 
7389
 
# func_dirname file append nondir_replacement
7390
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7391
 
# otherwise set result to NONDIR_REPLACEMENT.
7392
 
func_dirname ()
7393
 
{
7394
 
  # Extract subdirectory from the argument.
7395
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7396
 
  if test "X$func_dirname_result" = "X${1}"; then
7397
 
    func_dirname_result="${3}"
7398
 
  else
7399
 
    func_dirname_result="$func_dirname_result${2}"
7400
 
  fi
7401
 
}
7402
 
 
7403
 
# func_basename file
7404
 
func_basename ()
7405
 
{
7406
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7407
 
}
7408
 
 
7409
 
dnl func_dirname_and_basename
7410
 
dnl A portable version of this function is already defined in general.m4sh
7411
 
dnl so there is no need for it here.
7412
 
 
7413
 
# func_stripname prefix suffix name
7414
 
# strip PREFIX and SUFFIX off of NAME.
7415
 
# PREFIX and SUFFIX must not contain globbing or regex special
7416
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7417
 
# dot (in which case that matches only a dot).
7418
 
# func_strip_suffix prefix name
7419
 
func_stripname ()
7420
 
{
7421
 
  case ${2} in
7422
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7423
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7424
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7425
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7426
 
  esac
7427
 
}
7428
 
 
7429
 
# sed scripts:
7430
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7431
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7432
 
 
7433
 
# func_opt_split
7434
 
func_opt_split ()
7435
 
{
7436
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7437
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7438
 
}
7439
 
 
7440
 
# func_lo2o object
7441
 
func_lo2o ()
7442
 
{
7443
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7444
 
}
7445
 
 
7446
 
# func_xform libobj-or-source
7447
 
func_xform ()
7448
 
{
7449
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7450
 
}
7451
 
 
7452
 
# func_arith arithmetic-term...
7453
 
func_arith ()
7454
 
{
7455
 
  func_arith_result=`expr "$[@]"`
7456
 
}
7457
 
 
7458
 
# func_len string
7459
 
# STRING may not start with a hyphen.
7460
 
func_len ()
7461
 
{
7462
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7463
 
}
7464
 
 
7465
 
_LT_EOF
7466
 
esac
7467
 
 
7468
 
case $lt_shell_append in
7469
 
  yes)
7470
 
    cat << \_LT_EOF >> "$cfgfile"
7471
 
 
7472
 
# func_append var value
7473
 
# Append VALUE to the end of shell variable VAR.
7474
 
func_append ()
7475
 
{
7476
 
  eval "$[1]+=\$[2]"
7477
 
}
7478
 
_LT_EOF
7479
 
    ;;
7480
 
  *)
7481
 
    cat << \_LT_EOF >> "$cfgfile"
7482
 
 
7483
 
# func_append var value
7484
 
# Append VALUE to the end of shell variable VAR.
7485
 
func_append ()
7486
 
{
7487
 
  eval "$[1]=\$$[1]\$[2]"
7488
 
}
7489
 
 
7490
 
_LT_EOF
7491
 
    ;;
7492
 
  esac
7493
 
])
 
7954
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
7955
# ------------------------------------------------------
 
7956
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
7957
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
7958
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
7959
[dnl {
 
7960
sed -e '/^$1 ()$/,/^} # $1 /c\
 
7961
$1 ()\
 
7962
{\
 
7963
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
7964
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
7965
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7966
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7967
test 0 -eq $? || _lt_function_replace_fail=:
 
7968
])
 
7969
 
 
7970
 
 
7971
# _LT_PROG_REPLACE_SHELLFNS
 
7972
# -------------------------
 
7973
# Replace existing portable implementations of several shell functions with
 
7974
# equivalent extended shell implementations where those features are available..
 
7975
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
7976
[if test x"$xsi_shell" = xyes; then
 
7977
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
7978
    case ${1} in
 
7979
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7980
      *  ) func_dirname_result="${3}" ;;
 
7981
    esac])
 
7982
 
 
7983
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
7984
    func_basename_result="${1##*/}"])
 
7985
 
 
7986
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
7987
    case ${1} in
 
7988
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7989
      *  ) func_dirname_result="${3}" ;;
 
7990
    esac
 
7991
    func_basename_result="${1##*/}"])
 
7992
 
 
7993
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
7994
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7995
    # positional parameters, so assign one to ordinary parameter first.
 
7996
    func_stripname_result=${3}
 
7997
    func_stripname_result=${func_stripname_result#"${1}"}
 
7998
    func_stripname_result=${func_stripname_result%"${2}"}])
 
7999
 
 
8000
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8001
    func_split_long_opt_name=${1%%=*}
 
8002
    func_split_long_opt_arg=${1#*=}])
 
8003
 
 
8004
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8005
    func_split_short_opt_arg=${1#??}
 
8006
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8007
 
 
8008
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8009
    case ${1} in
 
8010
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8011
      *)    func_lo2o_result=${1} ;;
 
8012
    esac])
 
8013
 
 
8014
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8015
 
 
8016
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8017
 
 
8018
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8019
fi
 
8020
 
 
8021
if test x"$lt_shell_append" = xyes; then
 
8022
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8023
 
 
8024
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8025
    func_quote_for_eval "${2}"
 
8026
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8027
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8028
 
 
8029
  # Save a `func_append' function call where possible by direct use of '+='
 
8030
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8031
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8032
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8033
  test 0 -eq $? || _lt_function_replace_fail=:
 
8034
else
 
8035
  # Save a `func_append' function call even when '+=' is not available
 
8036
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8037
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8038
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8039
  test 0 -eq $? || _lt_function_replace_fail=:
 
8040
fi
 
8041
 
 
8042
if test x"$_lt_function_replace_fail" = x":"; then
 
8043
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8044
fi
 
8045
])
 
8046
 
 
8047
# _LT_PATH_CONVERSION_FUNCTIONS
 
8048
# -----------------------------
 
8049
# Determine which file name conversion functions should be used by
 
8050
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8051
# for certain cross-compile configurations and native mingw.
 
8052
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8053
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8054
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8055
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8056
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8057
[case $host in
 
8058
  *-*-mingw* )
 
8059
    case $build in
 
8060
      *-*-mingw* ) # actually msys
 
8061
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8062
        ;;
 
8063
      *-*-cygwin* )
 
8064
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8065
        ;;
 
8066
      * ) # otherwise, assume *nix
 
8067
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8068
        ;;
 
8069
    esac
 
8070
    ;;
 
8071
  *-*-cygwin* )
 
8072
    case $build in
 
8073
      *-*-mingw* ) # actually msys
 
8074
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8075
        ;;
 
8076
      *-*-cygwin* )
 
8077
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8078
        ;;
 
8079
      * ) # otherwise, assume *nix
 
8080
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8081
        ;;
 
8082
    esac
 
8083
    ;;
 
8084
  * ) # unhandled hosts (and "normal" native builds)
 
8085
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8086
    ;;
 
8087
esac
 
8088
])
 
8089
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8090
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8091
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8092
         [0], [convert $build file names to $host format])dnl
 
8093
 
 
8094
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8095
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8096
[#assume ordinary cross tools, or native build.
 
8097
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8098
case $host in
 
8099
  *-*-mingw* )
 
8100
    case $build in
 
8101
      *-*-mingw* ) # actually msys
 
8102
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8103
        ;;
 
8104
    esac
 
8105
    ;;
 
8106
esac
 
8107
])
 
8108
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8109
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8110
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8111
         [0], [convert $build files to toolchain format])dnl
 
8112
])# _LT_PATH_CONVERSION_FUNCTIONS
7494
8113
 
7495
8114
# Helper functions for option handling.                    -*- Autoconf -*-
7496
8115
#
7497
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8116
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
8117
#   Inc.
7498
8118
#   Written by Gary V. Vaughan, 2004
7499
8119
#
7500
8120
# This file is free software; the Free Software Foundation gives
7501
8121
# unlimited permission to copy and/or distribute it, with or without
7502
8122
# modifications, as long as this notice is preserved.
7503
8123
 
7504
 
# serial 6 ltoptions.m4
 
8124
# serial 7 ltoptions.m4
7505
8125
 
7506
8126
# This is to help aclocal find these macros, as it can't see m4_define.
7507
8127
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7616
8236
[enable_win32_dll=yes
7617
8237
 
7618
8238
case $host in
7619
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8239
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7620
8240
  AC_CHECK_TOOL(AS, as, false)
7621
8241
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7622
8242
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7624
8244
esac
7625
8245
 
7626
8246
test -z "$AS" && AS=as
7627
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8247
_LT_DECL([], [AS],      [1], [Assembler program])dnl
7628
8248
 
7629
8249
test -z "$DLLTOOL" && DLLTOOL=dlltool
7630
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8250
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
7631
8251
 
7632
8252
test -z "$OBJDUMP" && OBJDUMP=objdump
7633
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8253
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7634
8254
])# win32-dll
7635
8255
 
7636
8256
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7816
8436
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
7817
8437
m4_define([_LT_WITH_PIC],
7818
8438
[AC_ARG_WITH([pic],
7819
 
    [AS_HELP_STRING([--with-pic],
 
8439
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
7820
8440
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7821
 
    [pic_mode="$withval"],
 
8441
    [lt_p=${PACKAGE-default}
 
8442
    case $withval in
 
8443
    yes|no) pic_mode=$withval ;;
 
8444
    *)
 
8445
      pic_mode=default
 
8446
      # Look at the argument we got.  We use all the common list separators.
 
8447
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8448
      for lt_pkg in $withval; do
 
8449
        IFS="$lt_save_ifs"
 
8450
        if test "X$lt_pkg" = "X$lt_p"; then
 
8451
          pic_mode=yes
 
8452
        fi
 
8453
      done
 
8454
      IFS="$lt_save_ifs"
 
8455
      ;;
 
8456
    esac],
7822
8457
    [pic_mode=default])
7823
8458
 
7824
8459
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7988
8623
# unlimited permission to copy and/or distribute it, with or without
7989
8624
# modifications, as long as this notice is preserved.
7990
8625
 
7991
 
# Generated from ltversion.in.
 
8626
# @configure_input@
7992
8627
 
7993
 
# serial 3017 ltversion.m4
 
8628
# serial 3337 ltversion.m4
7994
8629
# This file is part of GNU Libtool
7995
8630
 
7996
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7997
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
8631
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
8632
m4_define([LT_PACKAGE_REVISION], [1.3337])
7998
8633
 
7999
8634
AC_DEFUN([LTVERSION_VERSION],
8000
 
[macro_version='2.2.6b'
8001
 
macro_revision='1.3017'
 
8635
[macro_version='2.4.2'
 
8636
macro_revision='1.3337'
8002
8637
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8003
8638
_LT_DECL(, macro_revision, 0)
8004
8639
])
8005
8640
 
8006
8641
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8007
8642
#
8008
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8643
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8009
8644
#   Written by Scott James Remnant, 2004.
8010
8645
#
8011
8646
# This file is free software; the Free Software Foundation gives
8012
8647
# unlimited permission to copy and/or distribute it, with or without
8013
8648
# modifications, as long as this notice is preserved.
8014
8649
 
8015
 
# serial 4 lt~obsolete.m4
 
8650
# serial 5 lt~obsolete.m4
8016
8651
 
8017
8652
# These exist entirely to fool aclocal when bootstrapping libtool.
8018
8653
#
8082
8717
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8083
8718
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8084
8719
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8085
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8086
8720
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8087
8721
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8088
8722
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8095
8729
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8096
8730
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8097
8731
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8732
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
8733
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
8734
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
8735
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
8736
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
8737
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
8738
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8098
8739
 
8099
8740
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8100
8741
# serial 1 (pkg-config-0.24)
8124
8765
# ----------------------------------
8125
8766
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8126
8767
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8127
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
8768
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
8769
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8128
8770
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8129
8771
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8130
8772
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8170
8812
    pkg_cv_[]$1="$$1"
8171
8813
 elif test -n "$PKG_CONFIG"; then
8172
8814
    PKG_CHECK_EXISTS([$3],
8173
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
8815
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
8816
                      test "x$?" != "x0" && pkg_failed=yes ],
8174
8817
                     [pkg_failed=yes])
8175
8818
 else
8176
8819
    pkg_failed=untried
8218
8861
        AC_MSG_RESULT([no])
8219
8862
        _PKG_SHORT_ERRORS_SUPPORTED
8220
8863
        if test $_pkg_short_errors_supported = yes; then
8221
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
8864
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
8222
8865
        else 
8223
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
8866
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
8224
8867
        fi
8225
8868
        # Put the nasty error message in config.log where it belongs
8226
8869
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8254
8897
fi[]dnl
8255
8898
])# PKG_CHECK_MODULES
8256
8899
 
8257
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
8900
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
8901
# Foundation, Inc.
8258
8902
#
8259
8903
# This file is free software; the Free Software Foundation
8260
8904
# gives unlimited permission to copy and/or distribute it,
8261
8905
# with or without modifications, as long as this notice is preserved.
8262
8906
 
 
8907
# serial 1
 
8908
 
8263
8909
# AM_AUTOMAKE_VERSION(VERSION)
8264
8910
# ----------------------------
8265
8911
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8269
8915
[am__api_version='1.11'
8270
8916
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8271
8917
dnl require some minimum version.  Point them to the right macro.
8272
 
m4_if([$1], [1.11.1], [],
 
8918
m4_if([$1], [1.11.3], [],
8273
8919
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8274
8920
])
8275
8921
 
8285
8931
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8286
8932
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8287
8933
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8288
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
8934
[AM_AUTOMAKE_VERSION([1.11.3])dnl
8289
8935
m4_ifndef([AC_AUTOCONF_VERSION],
8290
8936
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8291
8937
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8292
8938
 
8293
8939
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8294
8940
 
8295
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8941
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8296
8942
#
8297
8943
# This file is free software; the Free Software Foundation
8298
8944
# gives unlimited permission to copy and/or distribute it,
8299
8945
# with or without modifications, as long as this notice is preserved.
8300
8946
 
 
8947
# serial 1
 
8948
 
8301
8949
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8302
8950
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8303
8951
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8379
9027
Usually this means the macro was only invoked conditionally.]])
8380
9028
fi])])
8381
9029
 
8382
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8383
 
# Free Software Foundation, Inc.
 
9030
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
9031
# 2010, 2011 Free Software Foundation, Inc.
8384
9032
#
8385
9033
# This file is free software; the Free Software Foundation
8386
9034
# gives unlimited permission to copy and/or distribute it,
8387
9035
# with or without modifications, as long as this notice is preserved.
8388
9036
 
8389
 
# serial 10
 
9037
# serial 12
8390
9038
 
8391
9039
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8392
9040
# written in clear, in which case automake, when reading aclocal.m4,
8426
9074
  # instance it was reported that on HP-UX the gcc test will end up
8427
9075
  # making a dummy file named `D' -- because `-MD' means `put the output
8428
9076
  # in D'.
 
9077
  rm -rf conftest.dir
8429
9078
  mkdir conftest.dir
8430
9079
  # Copy depcomp to subdir because otherwise we won't find it if we're
8431
9080
  # using a relative directory.
8490
9139
        break
8491
9140
      fi
8492
9141
      ;;
8493
 
    msvisualcpp | msvcmsys)
 
9142
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8494
9143
      # This compiler won't grok `-c -o', but also, the minuso test has
8495
9144
      # not run yet.  These depmodes are late enough in the game, and
8496
9145
      # so weak that their functioning should not be impacted.
8555
9204
if test "x$enable_dependency_tracking" != xno; then
8556
9205
  am_depcomp="$ac_aux_dir/depcomp"
8557
9206
  AMDEPBACKSLASH='\'
 
9207
  am__nodep='_no'
8558
9208
fi
8559
9209
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8560
9210
AC_SUBST([AMDEPBACKSLASH])dnl
8561
9211
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9212
AC_SUBST([am__nodep])dnl
 
9213
_AM_SUBST_NOTMAKE([am__nodep])dnl
8562
9214
])
8563
9215
 
8564
9216
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8792
9444
done
8793
9445
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8794
9446
 
8795
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9447
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
9448
# Inc.
8796
9449
#
8797
9450
# This file is free software; the Free Software Foundation
8798
9451
# gives unlimited permission to copy and/or distribute it,
8799
9452
# with or without modifications, as long as this notice is preserved.
8800
9453
 
 
9454
# serial 1
 
9455
 
8801
9456
# AM_PROG_INSTALL_SH
8802
9457
# ------------------
8803
9458
# Define $install_sh.
8964
9619
fi
8965
9620
])
8966
9621
 
8967
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
9622
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
9623
# Inc.
8968
9624
#
8969
9625
# This file is free software; the Free Software Foundation
8970
9626
# gives unlimited permission to copy and/or distribute it,
8971
9627
# with or without modifications, as long as this notice is preserved.
8972
9628
 
 
9629
# serial 1
 
9630
 
8973
9631
# AM_PROG_MKDIR_P
8974
9632
# ---------------
8975
9633
# Check for `mkdir -p'.
8992
9650
 
8993
9651
# Helper functions for option handling.                     -*- Autoconf -*-
8994
9652
 
8995
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9653
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
9654
# Foundation, Inc.
8996
9655
#
8997
9656
# This file is free software; the Free Software Foundation
8998
9657
# gives unlimited permission to copy and/or distribute it,
8999
9658
# with or without modifications, as long as this notice is preserved.
9000
9659
 
9001
 
# serial 4
 
9660
# serial 5
9002
9661
 
9003
9662
# _AM_MANGLE_OPTION(NAME)
9004
9663
# -----------------------
9006
9665
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9007
9666
 
9008
9667
# _AM_SET_OPTION(NAME)
9009
 
# ------------------------------
 
9668
# --------------------
9010
9669
# Set option NAME.  Presently that only means defining a flag for this option.
9011
9670
AC_DEFUN([_AM_SET_OPTION],
9012
9671
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9013
9672
 
9014
9673
# _AM_SET_OPTIONS(OPTIONS)
9015
 
# ----------------------------------
 
9674
# ------------------------
9016
9675
# OPTIONS is a space-separated list of Automake options.
9017
9676
AC_DEFUN([_AM_SET_OPTIONS],
9018
9677
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9088
9747
fi
9089
9748
AC_MSG_RESULT(yes)])
9090
9749
 
9091
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9750
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9092
9751
#
9093
9752
# This file is free software; the Free Software Foundation
9094
9753
# gives unlimited permission to copy and/or distribute it,
9095
9754
# with or without modifications, as long as this notice is preserved.
9096
9755
 
 
9756
# serial 1
 
9757
 
9097
9758
# AM_PROG_INSTALL_STRIP
9098
9759
# ---------------------
9099
9760
# One issue with vendor `install' (even GNU) is that you can't
9116
9777
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9117
9778
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9118
9779
 
9119
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
9780
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
9120
9781
#
9121
9782
# This file is free software; the Free Software Foundation
9122
9783
# gives unlimited permission to copy and/or distribute it,
9123
9784
# with or without modifications, as long as this notice is preserved.
9124
9785
 
9125
 
# serial 2
 
9786
# serial 3
9126
9787
 
9127
9788
# _AM_SUBST_NOTMAKE(VARIABLE)
9128
9789
# ---------------------------
9131
9792
AC_DEFUN([_AM_SUBST_NOTMAKE])
9132
9793
 
9133
9794
# AM_SUBST_NOTMAKE(VARIABLE)
9134
 
# ---------------------------
 
9795
# --------------------------
9135
9796
# Public sister of _AM_SUBST_NOTMAKE.
9136
9797
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9137
9798
 
9138
9799
# Check how to create a tarball.                            -*- Autoconf -*-
9139
9800
 
9140
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
9801
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
9141
9802
#
9142
9803
# This file is free software; the Free Software Foundation
9143
9804
# gives unlimited permission to copy and/or distribute it,
9159
9820
# a tarball read from stdin.
9160
9821
#     $(am__untar) < result.tar
9161
9822
AC_DEFUN([_AM_PROG_TAR],
9162
 
[# Always define AMTAR for backward compatibility.
9163
 
AM_MISSING_PROG([AMTAR], [tar])
 
9823
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
9824
# in the wild :-(  We should find a proper way to deprecate it ...
 
9825
AC_SUBST([AMTAR], ['$${TAR-tar}'])
9164
9826
m4_if([$1], [v7],
9165
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
9827
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9166
9828
     [m4_case([$1], [ustar],, [pax],,
9167
9829
              [m4_fatal([Unknown tar format])])
9168
9830
AC_MSG_CHECKING([how to create a $1 tar archive])