~oif-packaging/evemu/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Francis Ginther
  • Date: 2012-08-20 16:17:58 UTC
  • mfrom: (0.1.32 1.0.5)
  • mto: (14.1.2 oneiric)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: francis.ginther@canonical.com-20120820161758-5ht9bd2rgdg3v6hj
Tags: upstream-1.0.5.1
ImportĀ upstreamĀ versionĀ 1.0.5.1

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.5 -*- 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.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
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'.])])
22
23
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
24
#
24
25
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
26
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
27
#                 Foundation, Inc.
26
28
#   Written by Gordon Matzigkeit, 1996
27
29
#
28
30
# This file is free software; the Free Software Foundation gives
31
33
 
32
34
m4_define([_LT_COPYING], [dnl
33
35
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
36
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
37
#                 Foundation, Inc.
35
38
#   Written by Gordon Matzigkeit, 1996
36
39
#
37
40
#   This file is part of GNU Libtool.
58
61
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
59
62
])
60
63
 
61
 
# serial 56 LT_INIT
 
64
# serial 57 LT_INIT
62
65
 
63
66
 
64
67
# LT_PREREQ(VERSION)
87
90
# ------------------
88
91
AC_DEFUN([LT_INIT],
89
92
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
93
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
90
94
AC_BEFORE([$0], [LT_LANG])dnl
91
95
AC_BEFORE([$0], [LT_OUTPUT])dnl
92
96
AC_BEFORE([$0], [LTDL_INIT])dnl
103
107
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
104
108
m4_require([_LT_PROG_LTMAIN])dnl
105
109
 
 
110
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
111
 
106
112
dnl Parse OPTIONS
107
113
_LT_SET_OPTIONS([$0], [$1])
108
114
 
139
145
    *) break;;
140
146
  esac
141
147
done
142
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
148
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
143
149
])
144
150
 
145
151
 
159
165
m4_defun([_LT_SETUP],
160
166
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
161
167
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
168
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
169
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
170
 
 
171
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
172
dnl
162
173
_LT_DECL([], [host_alias], [0], [The host system])dnl
163
174
_LT_DECL([], [host], [0])dnl
164
175
_LT_DECL([], [host_os], [0])dnl
181
192
dnl
182
193
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
183
194
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
195
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
184
196
m4_require([_LT_CMD_RELOAD])dnl
185
197
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
198
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
186
199
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187
200
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
201
m4_require([_LT_WITH_SYSROOT])dnl
188
202
 
189
203
_LT_CONFIG_LIBTOOL_INIT([
190
204
# See if we are running on zsh, and set the options which allow our
200
214
_LT_CHECK_OBJDIR
201
215
 
202
216
m4_require([_LT_TAG_COMPILER])dnl
203
 
_LT_PROG_ECHO_BACKSLASH
204
217
 
205
218
case $host_os in
206
219
aix3*)
214
227
  ;;
215
228
esac
216
229
 
217
 
# Sed substitution that helps us do robust quoting.  It backslashifies
218
 
# metacharacters that are still active within double-quoted strings.
219
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
220
 
 
221
 
# Same as above, but do not quote variable references.
222
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
223
 
 
224
 
# Sed substitution to delay expansion of an escaped shell variable in a
225
 
# double_quote_subst'ed string.
226
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
227
 
 
228
 
# Sed substitution to delay expansion of an escaped single quote.
229
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
230
 
 
231
 
# Sed substitution to avoid accidental globbing in evaled expressions
232
 
no_glob_subst='s/\*/\\\*/g'
233
 
 
234
230
# Global variables:
235
231
ofile=libtool
236
232
can_build_shared=yes
271
267
])# _LT_SETUP
272
268
 
273
269
 
 
270
# _LT_PREPARE_SED_QUOTE_VARS
 
271
# --------------------------
 
272
# Define a few sed substitution that help us do robust quoting.
 
273
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
274
[# Backslashify metacharacters that are still active within
 
275
# double-quoted strings.
 
276
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
277
 
 
278
# Same as above, but do not quote variable references.
 
279
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
280
 
 
281
# Sed substitution to delay expansion of an escaped shell variable in a
 
282
# double_quote_subst'ed string.
 
283
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
284
 
 
285
# Sed substitution to delay expansion of an escaped single quote.
 
286
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
287
 
 
288
# Sed substitution to avoid accidental globbing in evaled expressions
 
289
no_glob_subst='s/\*/\\\*/g'
 
290
])
 
291
 
274
292
# _LT_PROG_LTMAIN
275
293
# ---------------
276
294
# Note that this code is called both from `configure', and `config.status'
423
441
# declaration there will have the same value as in `configure'.  VARNAME
424
442
# must have a single quote delimited value for this to work.
425
443
m4_define([_LT_CONFIG_STATUS_DECLARE],
426
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
444
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
427
445
 
428
446
 
429
447
# _LT_CONFIG_STATUS_DECLARATIONS
433
451
# embedded single quotes properly.  In configure, this macro expands
434
452
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
435
453
#
436
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
454
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
437
455
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438
456
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439
457
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
532
550
LTCFLAGS='$LTCFLAGS'
533
551
compiler='$compiler_DEFAULT'
534
552
 
 
553
# A function that is used when there is no print builtin or printf.
 
554
func_fallback_echo ()
 
555
{
 
556
  eval 'cat <<_LTECHO_EOF
 
557
\$[]1
 
558
_LTECHO_EOF'
 
559
}
 
560
 
535
561
# Quote evaled strings.
536
562
for var in lt_decl_all_varnames([[ \
537
563
]], lt_decl_quote_varnames); do
538
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
564
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
539
565
    *[[\\\\\\\`\\"\\\$]]*)
540
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
566
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
541
567
      ;;
542
568
    *)
543
569
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548
574
# Double-quote double-evaled strings.
549
575
for var in lt_decl_all_varnames([[ \
550
576
]], lt_decl_dquote_varnames); do
551
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
577
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
552
578
    *[[\\\\\\\`\\"\\\$]]*)
553
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
579
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
554
580
      ;;
555
581
    *)
556
582
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
558
584
    esac
559
585
done
560
586
 
561
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
562
 
case \$lt_ECHO in
563
 
*'\\\[$]0 --fallback-echo"')dnl "
564
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
565
 
  ;;
566
 
esac
567
 
 
568
587
_LT_OUTPUT_LIBTOOL_INIT
569
588
])
570
589
 
 
590
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
591
# ------------------------------------
 
592
# Generate a child script FILE with all initialization necessary to
 
593
# reuse the environment learned by the parent script, and make the
 
594
# file executable.  If COMMENT is supplied, it is inserted after the
 
595
# `#!' sequence but before initialization text begins.  After this
 
596
# macro, additional text can be appended to FILE to form the body of
 
597
# the child script.  The macro ends with non-zero status if the
 
598
# file could not be fully written (such as if the disk is full).
 
599
m4_ifdef([AS_INIT_GENERATED],
 
600
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
601
[m4_defun([_LT_GENERATED_FILE_INIT],
 
602
[m4_require([AS_PREPARE])]dnl
 
603
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
604
[lt_write_fail=0
 
605
cat >$1 <<_ASEOF || lt_write_fail=1
 
606
#! $SHELL
 
607
# Generated by $as_me.
 
608
$2
 
609
SHELL=\${CONFIG_SHELL-$SHELL}
 
610
export SHELL
 
611
_ASEOF
 
612
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
613
AS_SHELL_SANITIZE
 
614
_AS_PREPARE
 
615
exec AS_MESSAGE_FD>&1
 
616
_ASEOF
 
617
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
618
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
571
619
 
572
620
# LT_OUTPUT
573
621
# ---------
577
625
AC_DEFUN([LT_OUTPUT],
578
626
[: ${CONFIG_LT=./config.lt}
579
627
AC_MSG_NOTICE([creating $CONFIG_LT])
580
 
cat >"$CONFIG_LT" <<_LTEOF
581
 
#! $SHELL
582
 
# Generated by $as_me.
583
 
# Run this file to recreate a libtool stub with the current configuration.
 
628
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
629
[# Run this file to recreate a libtool stub with the current configuration.])
584
630
 
 
631
cat >>"$CONFIG_LT" <<\_LTEOF
585
632
lt_cl_silent=false
586
 
SHELL=\${CONFIG_SHELL-$SHELL}
587
 
_LTEOF
588
 
 
589
 
cat >>"$CONFIG_LT" <<\_LTEOF
590
 
AS_SHELL_SANITIZE
591
 
_AS_PREPARE
592
 
 
593
 
exec AS_MESSAGE_FD>&1
594
633
exec AS_MESSAGE_LOG_FD>>config.log
595
634
{
596
635
  echo
616
655
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617
656
configured by $[0], generated by m4_PACKAGE_STRING.
618
657
 
619
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
658
Copyright (C) 2011 Free Software Foundation, Inc.
620
659
This config.lt script is free software; the Free Software Foundation
621
660
gives unlimited permision to copy, distribute and modify it."
622
661
 
661
700
# appending to config.log, which fails on DOS, as config.log is still kept
662
701
# open by configure.  Here we exec the FD to /dev/null, effectively closing
663
702
# config.log, so it can be properly (re)opened and appended to by config.lt.
664
 
if test "$no_create" != yes; then
665
 
  lt_cl_success=:
666
 
  test "$silent" = yes &&
667
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
668
 
  exec AS_MESSAGE_LOG_FD>/dev/null
669
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
670
 
  exec AS_MESSAGE_LOG_FD>>config.log
671
 
  $lt_cl_success || AS_EXIT(1)
672
 
fi
 
703
lt_cl_success=:
 
704
test "$silent" = yes &&
 
705
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
706
exec AS_MESSAGE_LOG_FD>/dev/null
 
707
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
708
exec AS_MESSAGE_LOG_FD>>config.log
 
709
$lt_cl_success || AS_EXIT(1)
673
710
])# LT_OUTPUT
674
711
 
675
712
 
732
769
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
733
770
  # text mode, it properly converts lines to CR/LF.  This bash problem
734
771
  # is reportedly fixed, but why not run on old versions too?
735
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
736
 
    || (rm -f "$cfgfile"; exit 1)
737
 
 
738
 
  _LT_PROG_XSI_SHELLFNS
739
 
 
740
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
741
 
    || (rm -f "$cfgfile"; exit 1)
742
 
 
743
 
  mv -f "$cfgfile" "$ofile" ||
 
772
  sed '$q' "$ltmain" >> "$cfgfile" \
 
773
     || (rm -f "$cfgfile"; exit 1)
 
774
 
 
775
  _LT_PROG_REPLACE_SHELLFNS
 
776
 
 
777
   mv -f "$cfgfile" "$ofile" ||
744
778
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
745
779
  chmod +x "$ofile"
746
780
],
785
819
m4_case([$1],
786
820
  [C],                  [_LT_LANG(C)],
787
821
  [C++],                [_LT_LANG(CXX)],
 
822
  [Go],                 [_LT_LANG(GO)],
788
823
  [Java],               [_LT_LANG(GCJ)],
789
824
  [Fortran 77],         [_LT_LANG(F77)],
790
825
  [Fortran],            [_LT_LANG(FC)],
806
841
])# _LT_LANG
807
842
 
808
843
 
 
844
m4_ifndef([AC_PROG_GO], [
 
845
# NOTE: This macro has been submitted for inclusion into   #
 
846
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
847
#  a released version of Autoconf we should remove this    #
 
848
#  macro and use it instead.                               #
 
849
m4_defun([AC_PROG_GO],
 
850
[AC_LANG_PUSH(Go)dnl
 
851
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
852
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
853
_AC_ARG_VAR_LDFLAGS()dnl
 
854
AC_CHECK_TOOL(GOC, gccgo)
 
855
if test -z "$GOC"; then
 
856
  if test -n "$ac_tool_prefix"; then
 
857
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
858
  fi
 
859
fi
 
860
if test -z "$GOC"; then
 
861
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
862
fi
 
863
])#m4_defun
 
864
])#m4_ifndef
 
865
 
 
866
 
809
867
# _LT_LANG_DEFAULT_CONFIG
810
868
# -----------------------
811
869
m4_defun([_LT_LANG_DEFAULT_CONFIG],
836
894
       m4_ifdef([LT_PROG_GCJ],
837
895
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
838
896
 
 
897
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
898
  [LT_LANG(GO)],
 
899
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
900
 
839
901
AC_PROVIDE_IFELSE([LT_PROG_RC],
840
902
  [LT_LANG(RC)],
841
903
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
846
908
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
847
909
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
848
910
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
911
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
849
912
dnl aclocal-1.4 backwards compatibility:
850
913
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
851
914
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
852
915
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
853
916
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
917
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
854
918
 
855
919
 
856
920
# _LT_TAG_COMPILER
936
1000
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
937
1001
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
938
1002
        _lt_result=$?
939
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1003
        # If there is a non-empty error log, and "single_module"
 
1004
        # appears in it, assume the flag caused a linker warning
 
1005
        if test -s conftest.err && $GREP single_module conftest.err; then
 
1006
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1007
        # Otherwise, if the output was created with a 0 exit code from
 
1008
        # the compiler, it worked.
 
1009
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
940
1010
          lt_cv_apple_cc_single_mod=yes
941
1011
        else
942
1012
          cat conftest.err >&AS_MESSAGE_LOG_FD
944
1014
        rm -rf libconftest.dylib*
945
1015
        rm -f conftest.*
946
1016
      fi])
 
1017
 
947
1018
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
948
1019
      [lt_cv_ld_exported_symbols_list],
949
1020
      [lt_cv_ld_exported_symbols_list=no
955
1026
        [lt_cv_ld_exported_symbols_list=no])
956
1027
        LDFLAGS="$save_LDFLAGS"
957
1028
    ])
 
1029
 
 
1030
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
1031
      [lt_cv_ld_force_load=no
 
1032
      cat > conftest.c << _LT_EOF
 
1033
int forced_loaded() { return 2;}
 
1034
_LT_EOF
 
1035
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
1036
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
1037
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
1038
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1039
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1040
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1041
      cat > conftest.c << _LT_EOF
 
1042
int main() { return 0;}
 
1043
_LT_EOF
 
1044
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1045
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1046
      _lt_result=$?
 
1047
      if test -s conftest.err && $GREP force_load conftest.err; then
 
1048
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1049
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
1050
        lt_cv_ld_force_load=yes
 
1051
      else
 
1052
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1053
      fi
 
1054
        rm -f conftest.err libconftest.a conftest conftest.c
 
1055
        rm -rf conftest.dSYM
 
1056
    ])
958
1057
    case $host_os in
959
1058
    rhapsody* | darwin1.[[012]])
960
1059
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
982
1081
    else
983
1082
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
984
1083
    fi
985
 
    if test "$DSYMUTIL" != ":"; then
 
1084
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
986
1085
      _lt_dsymutil='~$DSYMUTIL $lib || :'
987
1086
    else
988
1087
      _lt_dsymutil=
992
1091
])
993
1092
 
994
1093
 
995
 
# _LT_DARWIN_LINKER_FEATURES
996
 
# --------------------------
 
1094
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
1095
# ---------------------------------
997
1096
# Checks for linker and compiler features on darwin
998
1097
m4_defun([_LT_DARWIN_LINKER_FEATURES],
999
1098
[
1002
1101
  _LT_TAGVAR(hardcode_direct, $1)=no
1003
1102
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1004
1103
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1005
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1104
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1105
    _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\"`'
 
1106
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
1107
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 
1108
  else
 
1109
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1110
  fi
1006
1111
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1007
1112
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1008
1113
  case $cc_basename in
1010
1115
     *) _lt_dar_can_shared=$GCC ;;
1011
1116
  esac
1012
1117
  if test "$_lt_dar_can_shared" = "yes"; then
1013
 
    output_verbose_link_cmd=echo
 
1118
    output_verbose_link_cmd=func_echo_all
1014
1119
    _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}"
1015
1120
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1016
1121
    _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}"
1026
1131
  fi
1027
1132
])
1028
1133
 
1029
 
# _LT_SYS_MODULE_PATH_AIX
1030
 
# -----------------------
 
1134
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1135
# ----------------------------------
1031
1136
# Links a minimal program and checks the executable
1032
1137
# for the system default hardcoded library path. In most cases,
1033
1138
# this is /usr/lib:/lib, but when the MPI compilers are used
1034
1139
# the location of the communication and MPI libs are included too.
1035
1140
# If we don't find anything, use the default library path according
1036
1141
# to the aix ld manual.
 
1142
# Store the results from the different compilers for each TAGNAME.
 
1143
# Allow to override them for all tags through lt_cv_aix_libpath.
1037
1144
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1038
1145
[m4_require([_LT_DECL_SED])dnl
1039
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1040
 
lt_aix_libpath_sed='
1041
 
    /Import File Strings/,/^$/ {
1042
 
        /^0/ {
1043
 
            s/^0  *\(.*\)$/\1/
1044
 
            p
1045
 
        }
1046
 
    }'
1047
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1048
 
# Check for a 64-bit object if we didn't find anything.
1049
 
if test -z "$aix_libpath"; then
1050
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1051
 
fi],[])
1052
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1146
if test "${lt_cv_aix_libpath+set}" = set; then
 
1147
  aix_libpath=$lt_cv_aix_libpath
 
1148
else
 
1149
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
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
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`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 "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1161
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1162
  fi],[])
 
1163
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1164
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1165
  fi
 
1166
  ])
 
1167
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1168
fi
1053
1169
])# _LT_SYS_MODULE_PATH_AIX
1054
1170
 
1055
1171
 
1056
1172
# _LT_SHELL_INIT(ARG)
1057
1173
# -------------------
1058
1174
m4_define([_LT_SHELL_INIT],
1059
 
[ifdef([AC_DIVERSION_NOTICE],
1060
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1061
 
         [AC_DIVERT_PUSH(NOTICE)])
1062
 
$1
1063
 
AC_DIVERT_POP
1064
 
])# _LT_SHELL_INIT
 
1175
[m4_divert_text([M4SH-INIT], [$1
 
1176
])])# _LT_SHELL_INIT
 
1177
 
1065
1178
 
1066
1179
 
1067
1180
# _LT_PROG_ECHO_BACKSLASH
1068
1181
# -----------------------
1069
 
# Add some code to the start of the generated configure script which
1070
 
# will find an echo command which doesn't interpret backslashes.
 
1182
# Find how we can fake an echo command that does not interpret backslash.
 
1183
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1184
# of the generated configure script which will find a shell with a builtin
 
1185
# printf (which we can use as an echo command).
1071
1186
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1072
 
[_LT_SHELL_INIT([
1073
 
# Check that we are running under the correct shell.
1074
 
SHELL=${CONFIG_SHELL-/bin/sh}
1075
 
 
1076
 
case X$lt_ECHO in
1077
 
X*--fallback-echo)
1078
 
  # Remove one level of quotation (which was required for Make).
1079
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1080
 
  ;;
 
1187
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1188
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1189
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1190
 
 
1191
AC_MSG_CHECKING([how to print strings])
 
1192
# Test print first, because it will be a builtin if present.
 
1193
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
1194
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1195
  ECHO='print -r --'
 
1196
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1197
  ECHO='printf %s\n'
 
1198
else
 
1199
  # Use this function as a fallback that always works.
 
1200
  func_fallback_echo ()
 
1201
  {
 
1202
    eval 'cat <<_LTECHO_EOF
 
1203
$[]1
 
1204
_LTECHO_EOF'
 
1205
  }
 
1206
  ECHO='func_fallback_echo'
 
1207
fi
 
1208
 
 
1209
# func_echo_all arg...
 
1210
# Invoke $ECHO with all args, space-separated.
 
1211
func_echo_all ()
 
1212
{
 
1213
    $ECHO "$*" 
 
1214
}
 
1215
 
 
1216
case "$ECHO" in
 
1217
  printf*) AC_MSG_RESULT([printf]) ;;
 
1218
  print*) AC_MSG_RESULT([print -r]) ;;
 
1219
  *) AC_MSG_RESULT([cat]) ;;
1081
1220
esac
1082
1221
 
1083
 
ECHO=${lt_ECHO-echo}
1084
 
if test "X[$]1" = X--no-reexec; then
1085
 
  # Discard the --no-reexec flag, and continue.
1086
 
  shift
1087
 
elif test "X[$]1" = X--fallback-echo; then
1088
 
  # Avoid inline document here, it may be left over
1089
 
  :
1090
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1091
 
  # Yippee, $ECHO works!
1092
 
  :
1093
 
else
1094
 
  # Restart under the correct shell.
1095
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1096
 
fi
1097
 
 
1098
 
if test "X[$]1" = X--fallback-echo; then
1099
 
  # used as fallback echo
1100
 
  shift
1101
 
  cat <<_LT_EOF
1102
 
[$]*
1103
 
_LT_EOF
1104
 
  exit 0
1105
 
fi
1106
 
 
1107
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1108
 
# if CDPATH is set.
1109
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1110
 
 
1111
 
if test -z "$lt_ECHO"; then
1112
 
  if test "X${echo_test_string+set}" != Xset; then
1113
 
    # find a string as large as possible, as long as the shell can cope with it
1114
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1115
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1116
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1117
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1118
 
      then
1119
 
        break
1120
 
      fi
1121
 
    done
1122
 
  fi
1123
 
 
1124
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1125
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1126
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1127
 
    :
1128
 
  else
1129
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1130
 
    # backslashes.  This makes it impossible to quote backslashes using
1131
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1132
 
    #
1133
 
    # So, first we look for a working echo in the user's PATH.
1134
 
 
1135
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1136
 
    for dir in $PATH /usr/ucb; do
1137
 
      IFS="$lt_save_ifs"
1138
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1139
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1140
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1141
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1142
 
        ECHO="$dir/echo"
1143
 
        break
1144
 
      fi
1145
 
    done
1146
 
    IFS="$lt_save_ifs"
1147
 
 
1148
 
    if test "X$ECHO" = Xecho; then
1149
 
      # We didn't find a better echo, so look for alternatives.
1150
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1151
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1152
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1153
 
        # This shell has a builtin print -r that does the trick.
1154
 
        ECHO='print -r'
1155
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1156
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1157
 
        # If we have ksh, try running configure again with it.
1158
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1159
 
        export ORIGINAL_CONFIG_SHELL
1160
 
        CONFIG_SHELL=/bin/ksh
1161
 
        export CONFIG_SHELL
1162
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1163
 
      else
1164
 
        # Try using printf.
1165
 
        ECHO='printf %s\n'
1166
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1167
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1168
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1169
 
          # Cool, printf works
1170
 
          :
1171
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172
 
             test "X$echo_testing_string" = 'X\t' &&
1173
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1175
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1176
 
          export CONFIG_SHELL
1177
 
          SHELL="$CONFIG_SHELL"
1178
 
          export SHELL
1179
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1181
 
             test "X$echo_testing_string" = 'X\t' &&
1182
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1183
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1184
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1185
 
        else
1186
 
          # maybe with a smaller string...
1187
 
          prev=:
1188
 
 
1189
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1190
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1191
 
            then
1192
 
              break
1193
 
            fi
1194
 
            prev="$cmd"
1195
 
          done
1196
 
 
1197
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1198
 
            echo_test_string=`eval $prev`
1199
 
            export echo_test_string
1200
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1201
 
          else
1202
 
            # Oops.  We lost completely, so just stick with echo.
1203
 
            ECHO=echo
1204
 
          fi
1205
 
        fi
1206
 
      fi
1207
 
    fi
1208
 
  fi
1209
 
fi
1210
 
 
1211
 
# Copy echo and quote the copy suitably for passing to libtool from
1212
 
# the Makefile, instead of quoting the original, which is used later.
1213
 
lt_ECHO=$ECHO
1214
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1215
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1216
 
fi
1217
 
 
1218
 
AC_SUBST(lt_ECHO)
1219
 
])
 
1222
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1223
[_AS_DETECT_SUGGESTED([
 
1224
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1225
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1226
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1227
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1228
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1229
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1230
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1231
 
1220
1232
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1221
 
_LT_DECL([], [ECHO], [1],
1222
 
    [An echo program that does not interpret backslashes])
 
1233
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1223
1234
])# _LT_PROG_ECHO_BACKSLASH
1224
1235
 
1225
1236
 
 
1237
# _LT_WITH_SYSROOT
 
1238
# ----------------
 
1239
AC_DEFUN([_LT_WITH_SYSROOT],
 
1240
[AC_MSG_CHECKING([for sysroot])
 
1241
AC_ARG_WITH([sysroot],
 
1242
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1243
                        (or the compiler's sysroot if not specified).],
 
1244
[], [with_sysroot=no])
 
1245
 
 
1246
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1247
dnl in case the user passed a directory name.
 
1248
lt_sysroot=
 
1249
case ${with_sysroot} in #(
 
1250
 yes)
 
1251
   if test "$GCC" = yes; then
 
1252
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1253
   fi
 
1254
   ;; #(
 
1255
 /*)
 
1256
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1257
   ;; #(
 
1258
 no|'')
 
1259
   ;; #(
 
1260
 *)
 
1261
   AC_MSG_RESULT([${with_sysroot}])
 
1262
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1263
   ;;
 
1264
esac
 
1265
 
 
1266
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1267
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1268
[dependent libraries, and in which our libraries should be installed.])])
 
1269
 
1226
1270
# _LT_ENABLE_LOCK
1227
1271
# ---------------
1228
1272
m4_defun([_LT_ENABLE_LOCK],
1251
1295
  ;;
1252
1296
*-*-irix6*)
1253
1297
  # Find out which ABI we are using.
1254
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1298
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1255
1299
  if AC_TRY_EVAL(ac_compile); then
1256
1300
    if test "$lt_cv_prog_gnu_ld" = yes; then
1257
1301
      case `/usr/bin/file conftest.$ac_objext` in
1344
1388
    CFLAGS="$SAVE_CFLAGS"
1345
1389
  fi
1346
1390
  ;;
1347
 
sparc*-*solaris*)
 
1391
*-*solaris*)
1348
1392
  # Find out which ABI we are using.
1349
1393
  echo 'int i;' > conftest.$ac_ext
1350
1394
  if AC_TRY_EVAL(ac_compile); then
1351
1395
    case `/usr/bin/file conftest.o` in
1352
1396
    *64-bit*)
1353
1397
      case $lt_cv_prog_gnu_ld in
1354
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
1398
      yes*)
 
1399
        case $host in
 
1400
        i?86-*-solaris*)
 
1401
          LD="${LD-ld} -m elf_x86_64"
 
1402
          ;;
 
1403
        sparc*-*-solaris*)
 
1404
          LD="${LD-ld} -m elf64_sparc"
 
1405
          ;;
 
1406
        esac
 
1407
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
1408
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
1409
          LD="${LD-ld}_sol2"
 
1410
        fi
 
1411
        ;;
1355
1412
      *)
1356
1413
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1357
1414
          LD="${LD-ld} -64"
1369
1426
])# _LT_ENABLE_LOCK
1370
1427
 
1371
1428
 
 
1429
# _LT_PROG_AR
 
1430
# -----------
 
1431
m4_defun([_LT_PROG_AR],
 
1432
[AC_CHECK_TOOLS(AR, [ar], false)
 
1433
: ${AR=ar}
 
1434
: ${AR_FLAGS=cru}
 
1435
_LT_DECL([], [AR], [1], [The archiver])
 
1436
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
1437
 
 
1438
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
1439
  [lt_cv_ar_at_file=no
 
1440
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
1441
     [echo conftest.$ac_objext > conftest.lst
 
1442
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
1443
      AC_TRY_EVAL([lt_ar_try])
 
1444
      if test "$ac_status" -eq 0; then
 
1445
        # Ensure the archiver fails upon bogus file names.
 
1446
        rm -f conftest.$ac_objext libconftest.a
 
1447
        AC_TRY_EVAL([lt_ar_try])
 
1448
        if test "$ac_status" -ne 0; then
 
1449
          lt_cv_ar_at_file=@
 
1450
        fi
 
1451
      fi
 
1452
      rm -f conftest.* libconftest.a
 
1453
     ])
 
1454
  ])
 
1455
 
 
1456
if test "x$lt_cv_ar_at_file" = xno; then
 
1457
  archiver_list_spec=
 
1458
else
 
1459
  archiver_list_spec=$lt_cv_ar_at_file
 
1460
fi
 
1461
_LT_DECL([], [archiver_list_spec], [1],
 
1462
  [How to feed a file listing to the archiver])
 
1463
])# _LT_PROG_AR
 
1464
 
 
1465
 
1372
1466
# _LT_CMD_OLD_ARCHIVE
1373
1467
# -------------------
1374
1468
m4_defun([_LT_CMD_OLD_ARCHIVE],
1375
 
[AC_CHECK_TOOL(AR, ar, false)
1376
 
test -z "$AR" && AR=ar
1377
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1378
 
_LT_DECL([], [AR], [1], [The archiver])
1379
 
_LT_DECL([], [AR_FLAGS], [1])
 
1469
[_LT_PROG_AR
1380
1470
 
1381
1471
AC_CHECK_TOOL(STRIP, strip, :)
1382
1472
test -z "$STRIP" && STRIP=:
1395
1485
if test -n "$RANLIB"; then
1396
1486
  case $host_os in
1397
1487
  openbsd*)
1398
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1488
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1399
1489
    ;;
1400
1490
  *)
1401
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1491
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1402
1492
    ;;
1403
1493
  esac
1404
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1494
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1405
1495
fi
 
1496
 
 
1497
case $host_os in
 
1498
  darwin*)
 
1499
    lock_old_archive_extraction=yes ;;
 
1500
  *)
 
1501
    lock_old_archive_extraction=no ;;
 
1502
esac
1406
1503
_LT_DECL([], [old_postinstall_cmds], [2])
1407
1504
_LT_DECL([], [old_postuninstall_cmds], [2])
1408
1505
_LT_TAGDECL([], [old_archive_cmds], [2],
1409
1506
    [Commands used to build an old-style archive])
 
1507
_LT_DECL([], [lock_old_archive_extraction], [0],
 
1508
    [Whether to use a lock for old archive extraction])
1410
1509
])# _LT_CMD_OLD_ARCHIVE
1411
1510
 
1412
1511
 
1431
1530
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1432
1531
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1433
1532
   -e 's:$: $lt_compiler_flag:'`
1434
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1533
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1435
1534
   (eval "$lt_compile" 2>conftest.err)
1436
1535
   ac_status=$?
1437
1536
   cat conftest.err >&AS_MESSAGE_LOG_FD
1438
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1537
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1439
1538
   if (exit $ac_status) && test -s "$ac_outfile"; then
1440
1539
     # The compiler can only warn and ignore the option if not recognized
1441
1540
     # So say no if there are warnings other than the usual output.
1442
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1541
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1443
1542
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1444
1543
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1445
1544
       $2=yes
1479
1578
     if test -s conftest.err; then
1480
1579
       # Append any errors to the config.log.
1481
1580
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1482
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1581
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1483
1582
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1484
1583
       if diff conftest.exp conftest.er2 >/dev/null; then
1485
1584
         $2=yes
1542
1641
    lt_cv_sys_max_cmd_len=8192;
1543
1642
    ;;
1544
1643
 
 
1644
  mint*)
 
1645
    # On MiNT this can take a long time and run out of memory.
 
1646
    lt_cv_sys_max_cmd_len=8192;
 
1647
    ;;
 
1648
 
1545
1649
  amigaos*)
1546
1650
    # On AmigaOS with pdksh, this test takes hours, literally.
1547
1651
    # So we just punt and use a minimum line length of 8192.
1567
1671
    lt_cv_sys_max_cmd_len=196608
1568
1672
    ;;
1569
1673
 
 
1674
  os2*)
 
1675
    # The test takes a long time on OS/2.
 
1676
    lt_cv_sys_max_cmd_len=8192
 
1677
    ;;
 
1678
 
1570
1679
  osf*)
1571
1680
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1572
1681
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1606
1715
      # If test is not a shell built-in, we'll probably end up computing a
1607
1716
      # maximum length that is only half of the actual maximum length, but
1608
1717
      # we can't tell.
1609
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1610
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
1718
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
1719
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1611
1720
              test $i != 17 # 1/2 MB should be enough
1612
1721
      do
1613
1722
        i=`expr $i + 1`
1658
1767
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1659
1768
  lt_status=$lt_dlunknown
1660
1769
  cat > conftest.$ac_ext <<_LT_EOF
1661
 
[#line __oline__ "configure"
 
1770
[#line $LINENO "configure"
1662
1771
#include "confdefs.h"
1663
1772
 
1664
1773
#if HAVE_DLFCN_H
1699
1808
#  endif
1700
1809
#endif
1701
1810
 
1702
 
void fnord() { int i=42;}
 
1811
/* When -fvisbility=hidden is used, assume the code has been annotated
 
1812
   correspondingly for the symbols needed.  */
 
1813
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
1814
int fnord () __attribute__((visibility("default")));
 
1815
#endif
 
1816
 
 
1817
int fnord () { return 42; }
1703
1818
int main ()
1704
1819
{
1705
1820
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1708
1823
  if (self)
1709
1824
    {
1710
1825
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1711
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
1826
      else
 
1827
        {
 
1828
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
1829
          else puts (dlerror ());
 
1830
        }
1712
1831
      /* dlclose (self); */
1713
1832
    }
1714
1833
  else
1884
2003
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1885
2004
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1886
2005
   -e 's:$: $lt_compiler_flag:'`
1887
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2006
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1888
2007
   (eval "$lt_compile" 2>out/conftest.err)
1889
2008
   ac_status=$?
1890
2009
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1891
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2010
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1892
2011
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1893
2012
   then
1894
2013
     # The compiler can only warn and ignore the option if not recognized
1895
2014
     # So say no if there are warnings
1896
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2015
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1897
2016
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1898
2017
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1899
2018
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2052
2171
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2053
2172
m4_require([_LT_DECL_OBJDUMP])dnl
2054
2173
m4_require([_LT_DECL_SED])dnl
 
2174
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2055
2175
AC_MSG_CHECKING([dynamic linker characteristics])
2056
2176
m4_if([$1],
2057
2177
        [], [
2060
2180
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2061
2181
    *) lt_awk_arg="/^libraries:/" ;;
2062
2182
  esac
2063
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2064
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2183
  case $host_os in
 
2184
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2185
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2186
  esac
 
2187
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2188
  case $lt_search_path_spec in
 
2189
  *\;*)
2065
2190
    # if the path contains ";" then we assume it to be the separator
2066
2191
    # otherwise default to the standard path separator (i.e. ":") - it is
2067
2192
    # assumed that no part of a normal pathname contains ";" but that should
2068
2193
    # okay in the real world where ";" in dirpaths is itself problematic.
2069
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2070
 
  else
2071
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2072
 
  fi
 
2194
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2195
    ;;
 
2196
  *)
 
2197
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2198
    ;;
 
2199
  esac
2073
2200
  # Ok, now we have the path, separated by spaces, we can step through it
2074
2201
  # and add multilib dir if necessary.
2075
2202
  lt_tmp_lt_search_path_spec=
2082
2209
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2083
2210
    fi
2084
2211
  done
2085
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2212
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2086
2213
BEGIN {RS=" "; FS="/|\n";} {
2087
2214
  lt_foo="";
2088
2215
  lt_count=0;
2102
2229
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2103
2230
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2104
2231
}'`
2105
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2232
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2233
  # for these hosts.
 
2234
  case $host_os in
 
2235
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2236
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2237
  esac
 
2238
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2106
2239
else
2107
2240
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108
2241
fi])
2128
2261
 
2129
2262
case $host_os in
2130
2263
aix3*)
2131
 
  version_type=linux
 
2264
  version_type=linux # correct to gnu/linux during the next big refactor
2132
2265
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2133
2266
  shlibpath_var=LIBPATH
2134
2267
 
2137
2270
  ;;
2138
2271
 
2139
2272
aix[[4-9]]*)
2140
 
  version_type=linux
 
2273
  version_type=linux # correct to gnu/linux during the next big refactor
2141
2274
  need_lib_prefix=no
2142
2275
  need_version=no
2143
2276
  hardcode_into_libs=yes
2190
2323
  m68k)
2191
2324
    library_names_spec='$libname.ixlibrary $libname.a'
2192
2325
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2193
 
    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'
 
2326
    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'
2194
2327
    ;;
2195
2328
  esac
2196
2329
  ;;
2202
2335
  ;;
2203
2336
 
2204
2337
bsdi[[45]]*)
2205
 
  version_type=linux
 
2338
  version_type=linux # correct to gnu/linux during the next big refactor
2206
2339
  need_version=no
2207
2340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2208
2341
  soname_spec='${libname}${release}${shared_ext}$major'
2221
2354
  need_version=no
2222
2355
  need_lib_prefix=no
2223
2356
 
2224
 
  case $GCC,$host_os in
2225
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2357
  case $GCC,$cc_basename in
 
2358
  yes,*)
 
2359
    # gcc
2226
2360
    library_names_spec='$libname.dll.a'
2227
2361
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2228
2362
    postinstall_cmds='base_file=`basename \${file}`~
2243
2377
    cygwin*)
2244
2378
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2245
2379
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2246
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2380
m4_if([$1], [],[
 
2381
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2247
2382
      ;;
2248
2383
    mingw* | cegcc*)
2249
2384
      # MinGW DLLs use traditional 'lib' prefix
2250
2385
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2252
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2253
 
        # It is most probably a Windows format PATH printed by
2254
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2255
 
        # path with ; separators, and with drive letters. We can handle the
2256
 
        # drive letters (cygwin fileutils understands them), so leave them,
2257
 
        # especially as we might pass files found there to a mingw objdump,
2258
 
        # which wouldn't understand a cygwinified path. Ahh.
2259
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2260
 
      else
2261
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2262
 
      fi
2263
2386
      ;;
2264
2387
    pw32*)
2265
2388
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2266
2389
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2267
2390
      ;;
2268
2391
    esac
 
2392
    dynamic_linker='Win32 ld.exe'
 
2393
    ;;
 
2394
 
 
2395
  *,cl*)
 
2396
    # Native MSVC
 
2397
    libname_spec='$name'
 
2398
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2399
    library_names_spec='${libname}.dll.lib'
 
2400
 
 
2401
    case $build_os in
 
2402
    mingw*)
 
2403
      sys_lib_search_path_spec=
 
2404
      lt_save_ifs=$IFS
 
2405
      IFS=';'
 
2406
      for lt_path in $LIB
 
2407
      do
 
2408
        IFS=$lt_save_ifs
 
2409
        # Let DOS variable expansion print the short 8.3 style file name.
 
2410
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
2411
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
2412
      done
 
2413
      IFS=$lt_save_ifs
 
2414
      # Convert to MSYS style.
 
2415
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
2416
      ;;
 
2417
    cygwin*)
 
2418
      # Convert to unix form, then to dos form, then back to unix form
 
2419
      # but this time dos style (no spaces!) so that the unix form looks
 
2420
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
2421
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
2422
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
2423
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2424
      ;;
 
2425
    *)
 
2426
      sys_lib_search_path_spec="$LIB"
 
2427
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2428
        # It is most probably a Windows format PATH.
 
2429
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2430
      else
 
2431
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2432
      fi
 
2433
      # FIXME: find the short name or the path components, as spaces are
 
2434
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
2435
      ;;
 
2436
    esac
 
2437
 
 
2438
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2439
    postinstall_cmds='base_file=`basename \${file}`~
 
2440
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2441
      dldir=$destdir/`dirname \$dlpath`~
 
2442
      test -d \$dldir || mkdir -p \$dldir~
 
2443
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2444
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2445
      dlpath=$dir/\$dldll~
 
2446
       $RM \$dlpath'
 
2447
    shlibpath_overrides_runpath=yes
 
2448
    dynamic_linker='Win32 link.exe'
2269
2449
    ;;
2270
2450
 
2271
2451
  *)
 
2452
    # Assume MSVC wrapper
2272
2453
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
2454
    dynamic_linker='Win32 ld.exe'
2273
2455
    ;;
2274
2456
  esac
2275
 
  dynamic_linker='Win32 ld.exe'
2276
2457
  # FIXME: first we should search . and the directory the executable is in
2277
2458
  shlibpath_var=PATH
2278
2459
  ;;
2293
2474
  ;;
2294
2475
 
2295
2476
dgux*)
2296
 
  version_type=linux
 
2477
  version_type=linux # correct to gnu/linux during the next big refactor
2297
2478
  need_lib_prefix=no
2298
2479
  need_version=no
2299
2480
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2301
2482
  shlibpath_var=LD_LIBRARY_PATH
2302
2483
  ;;
2303
2484
 
2304
 
freebsd1*)
2305
 
  dynamic_linker=no
2306
 
  ;;
2307
 
 
2308
2485
freebsd* | dragonfly*)
2309
2486
  # DragonFly does not have aout.  When/if they implement a new
2310
2487
  # versioning mechanism, adjust this.
2312
2489
    objformat=`/usr/bin/objformat`
2313
2490
  else
2314
2491
    case $host_os in
2315
 
    freebsd[[123]]*) objformat=aout ;;
 
2492
    freebsd[[23]].*) objformat=aout ;;
2316
2493
    *) objformat=elf ;;
2317
2494
    esac
2318
2495
  fi
2330
2507
  esac
2331
2508
  shlibpath_var=LD_LIBRARY_PATH
2332
2509
  case $host_os in
2333
 
  freebsd2*)
 
2510
  freebsd2.*)
2334
2511
    shlibpath_overrides_runpath=yes
2335
2512
    ;;
2336
2513
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2350
2527
  ;;
2351
2528
 
2352
2529
gnu*)
2353
 
  version_type=linux
 
2530
  version_type=linux # correct to gnu/linux during the next big refactor
2354
2531
  need_lib_prefix=no
2355
2532
  need_version=no
2356
2533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2357
2534
  soname_spec='${libname}${release}${shared_ext}$major'
2358
2535
  shlibpath_var=LD_LIBRARY_PATH
 
2536
  shlibpath_overrides_runpath=no
 
2537
  hardcode_into_libs=yes
 
2538
  ;;
 
2539
 
 
2540
haiku*)
 
2541
  version_type=linux # correct to gnu/linux during the next big refactor
 
2542
  need_lib_prefix=no
 
2543
  need_version=no
 
2544
  dynamic_linker="$host_os runtime_loader"
 
2545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2546
  soname_spec='${libname}${release}${shared_ext}$major'
 
2547
  shlibpath_var=LIBRARY_PATH
 
2548
  shlibpath_overrides_runpath=yes
 
2549
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2359
2550
  hardcode_into_libs=yes
2360
2551
  ;;
2361
2552
 
2401
2592
    soname_spec='${libname}${release}${shared_ext}$major'
2402
2593
    ;;
2403
2594
  esac
2404
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2595
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2405
2596
  postinstall_cmds='chmod 555 $lib'
 
2597
  # or fails outright, so override atomically:
 
2598
  install_override_mode=555
2406
2599
  ;;
2407
2600
 
2408
2601
interix[[3-9]]*)
2409
 
  version_type=linux
 
2602
  version_type=linux # correct to gnu/linux during the next big refactor
2410
2603
  need_lib_prefix=no
2411
2604
  need_version=no
2412
2605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2422
2615
    nonstopux*) version_type=nonstopux ;;
2423
2616
    *)
2424
2617
        if test "$lt_cv_prog_gnu_ld" = yes; then
2425
 
                version_type=linux
 
2618
                version_type=linux # correct to gnu/linux during the next big refactor
2426
2619
        else
2427
2620
                version_type=irix
2428
2621
        fi ;;
2459
2652
  dynamic_linker=no
2460
2653
  ;;
2461
2654
 
2462
 
# This must be Linux ELF.
 
2655
# This must be glibc/ELF.
2463
2656
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2464
 
  version_type=linux
 
2657
  version_type=linux # correct to gnu/linux during the next big refactor
2465
2658
  need_lib_prefix=no
2466
2659
  need_version=no
2467
2660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2469
2662
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470
2663
  shlibpath_var=LD_LIBRARY_PATH
2471
2664
  shlibpath_overrides_runpath=no
 
2665
 
2472
2666
  # Some binutils ld are patched to set DT_RUNPATH
2473
 
  save_LDFLAGS=$LDFLAGS
2474
 
  save_libdir=$libdir
2475
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2476
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2477
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2478
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2479
 
       [shlibpath_overrides_runpath=yes])])
2480
 
  LDFLAGS=$save_LDFLAGS
2481
 
  libdir=$save_libdir
 
2667
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
2668
    [lt_cv_shlibpath_overrides_runpath=no
 
2669
    save_LDFLAGS=$LDFLAGS
 
2670
    save_libdir=$libdir
 
2671
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2672
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2673
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2674
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2675
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
2676
    LDFLAGS=$save_LDFLAGS
 
2677
    libdir=$save_libdir
 
2678
    ])
 
2679
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2482
2680
 
2483
2681
  # This implies no fast_install, which is unacceptable.
2484
2682
  # Some rework will be needed to allow for fast_install
2487
2685
 
2488
2686
  # Append ld.so.conf contents to the search path
2489
2687
  if test -f /etc/ld.so.conf; then
2490
 
    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' ' '`
 
2688
    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' ' '`
2491
2689
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2492
2690
  fi
2493
2691
 
2531
2729
  ;;
2532
2730
 
2533
2731
newsos6)
2534
 
  version_type=linux
 
2732
  version_type=linux # correct to gnu/linux during the next big refactor
2535
2733
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2536
2734
  shlibpath_var=LD_LIBRARY_PATH
2537
2735
  shlibpath_overrides_runpath=yes
2600
2798
  ;;
2601
2799
 
2602
2800
solaris*)
2603
 
  version_type=linux
 
2801
  version_type=linux # correct to gnu/linux during the next big refactor
2604
2802
  need_lib_prefix=no
2605
2803
  need_version=no
2606
2804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2625
2823
  ;;
2626
2824
 
2627
2825
sysv4 | sysv4.3*)
2628
 
  version_type=linux
 
2826
  version_type=linux # correct to gnu/linux during the next big refactor
2629
2827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2630
2828
  soname_spec='${libname}${release}${shared_ext}$major'
2631
2829
  shlibpath_var=LD_LIBRARY_PATH
2649
2847
 
2650
2848
sysv4*MP*)
2651
2849
  if test -d /usr/nec ;then
2652
 
    version_type=linux
 
2850
    version_type=linux # correct to gnu/linux during the next big refactor
2653
2851
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2654
2852
    soname_spec='$libname${shared_ext}.$major'
2655
2853
    shlibpath_var=LD_LIBRARY_PATH
2680
2878
 
2681
2879
tpf*)
2682
2880
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2683
 
  version_type=linux
 
2881
  version_type=linux # correct to gnu/linux during the next big refactor
2684
2882
  need_lib_prefix=no
2685
2883
  need_version=no
2686
2884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2690
2888
  ;;
2691
2889
 
2692
2890
uts4*)
2693
 
  version_type=linux
 
2891
  version_type=linux # correct to gnu/linux during the next big refactor
2694
2892
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2695
2893
  soname_spec='${libname}${release}${shared_ext}$major'
2696
2894
  shlibpath_var=LD_LIBRARY_PATH
2732
2930
    The last name is the one that the linker finds with -lNAME]])
2733
2931
_LT_DECL([], [soname_spec], [1],
2734
2932
    [[The coded name of the library, if different from the real name]])
 
2933
_LT_DECL([], [install_override_mode], [1],
 
2934
    [Permission mode override for installation of shared libraries])
2735
2935
_LT_DECL([], [postinstall_cmds], [2],
2736
2936
    [Command to use after installation of a shared archive])
2737
2937
_LT_DECL([], [postuninstall_cmds], [2],
2844
3044
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2845
3045
m4_require([_LT_DECL_SED])dnl
2846
3046
m4_require([_LT_DECL_EGREP])dnl
 
3047
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2847
3048
 
2848
3049
AC_ARG_WITH([gnu-ld],
2849
3050
    [AS_HELP_STRING([--with-gnu-ld],
2965
3166
esac
2966
3167
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2967
3168
case $host_os in
 
3169
  cygwin* | mingw* | pw32* | cegcc*)
 
3170
    if test "$GCC" != yes; then
 
3171
      reload_cmds=false
 
3172
    fi
 
3173
    ;;
2968
3174
  darwin*)
2969
3175
    if test "$GCC" = yes; then
2970
3176
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2973
3179
    fi
2974
3180
    ;;
2975
3181
esac
2976
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2977
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3182
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3183
_LT_TAGDECL([], [reload_cmds], [2])dnl
2978
3184
])# _LT_CMD_RELOAD
2979
3185
 
2980
3186
 
3026
3232
  # Base MSYS/MinGW do not provide the 'file' command needed by
3027
3233
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3028
3234
  # unless we find 'file', for example because we are cross-compiling.
3029
 
  if ( file / ) >/dev/null 2>&1; then
 
3235
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3236
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3030
3237
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3031
3238
    lt_cv_file_magic_cmd='func_win32_libid'
3032
3239
  else
3033
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3240
    # Keep this pattern in sync with the one in func_win32_libid.
 
3241
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3034
3242
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3035
3243
  fi
3036
3244
  ;;
3037
3245
 
3038
 
cegcc)
 
3246
cegcc*)
3039
3247
  # use the weaker test based on 'objdump'. See mingw*.
3040
3248
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3041
3249
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3065
3273
  lt_cv_deplibs_check_method=pass_all
3066
3274
  ;;
3067
3275
 
 
3276
haiku*)
 
3277
  lt_cv_deplibs_check_method=pass_all
 
3278
  ;;
 
3279
 
3068
3280
hpux10.20* | hpux11*)
3069
3281
  lt_cv_file_magic_cmd=/usr/bin/file
3070
3282
  case $host_cpu in
3073
3285
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3074
3286
    ;;
3075
3287
  hppa*64*)
3076
 
    [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]']
 
3288
    [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]']
3077
3289
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3078
3290
    ;;
3079
3291
  *)
3080
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3292
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3081
3293
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3082
3294
    ;;
3083
3295
  esac
3098
3310
  lt_cv_deplibs_check_method=pass_all
3099
3311
  ;;
3100
3312
 
3101
 
# This must be Linux ELF.
 
3313
# This must be glibc/ELF.
3102
3314
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3103
3315
  lt_cv_deplibs_check_method=pass_all
3104
3316
  ;;
3177
3389
  ;;
3178
3390
esac
3179
3391
])
 
3392
 
 
3393
file_magic_glob=
 
3394
want_nocaseglob=no
 
3395
if test "$build" = "$host"; then
 
3396
  case $host_os in
 
3397
  mingw* | pw32*)
 
3398
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3399
      want_nocaseglob=yes
 
3400
    else
 
3401
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3402
    fi
 
3403
    ;;
 
3404
  esac
 
3405
fi
 
3406
 
3180
3407
file_magic_cmd=$lt_cv_file_magic_cmd
3181
3408
deplibs_check_method=$lt_cv_deplibs_check_method
3182
3409
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3184
3411
_LT_DECL([], [deplibs_check_method], [1],
3185
3412
    [Method to check whether dependent libraries are shared objects])
3186
3413
_LT_DECL([], [file_magic_cmd], [1],
3187
 
    [Command to use when deplibs_check_method == "file_magic"])
 
3414
    [Command to use when deplibs_check_method = "file_magic"])
 
3415
_LT_DECL([], [file_magic_glob], [1],
 
3416
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3417
_LT_DECL([], [want_nocaseglob], [1],
 
3418
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3188
3419
])# _LT_CHECK_MAGIC_METHOD
3189
3420
 
3190
3421
 
3241
3472
  NM="$lt_cv_path_NM"
3242
3473
else
3243
3474
  # Didn't find any BSD compatible name lister, look for dumpbin.
3244
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3475
  if test -n "$DUMPBIN"; then :
 
3476
    # Let the user override the test.
 
3477
  else
 
3478
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3479
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3480
    *COFF*)
 
3481
      DUMPBIN="$DUMPBIN -symbols"
 
3482
      ;;
 
3483
    *)
 
3484
      DUMPBIN=:
 
3485
      ;;
 
3486
    esac
 
3487
  fi
3245
3488
  AC_SUBST([DUMPBIN])
3246
3489
  if test "$DUMPBIN" != ":"; then
3247
3490
    NM="$DUMPBIN"
3254
3497
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3255
3498
  [lt_cv_nm_interface="BSD nm"
3256
3499
  echo "int some_variable = 0;" > conftest.$ac_ext
3257
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3500
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3258
3501
  (eval "$ac_compile" 2>conftest.err)
3259
3502
  cat conftest.err >&AS_MESSAGE_LOG_FD
3260
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3503
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3261
3504
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3262
3505
  cat conftest.err >&AS_MESSAGE_LOG_FD
3263
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3506
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3264
3507
  cat conftest.out >&AS_MESSAGE_LOG_FD
3265
3508
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3266
3509
    lt_cv_nm_interface="MS dumpbin"
3275
3518
dnl AC_DEFUN([AM_PROG_NM], [])
3276
3519
dnl AC_DEFUN([AC_PROG_NM], [])
3277
3520
 
 
3521
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3522
# --------------------------------
 
3523
# how to determine the name of the shared library
 
3524
# associated with a specific link library.
 
3525
#  -- PORTME fill in with the dynamic library characteristics
 
3526
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
3527
[m4_require([_LT_DECL_EGREP])
 
3528
m4_require([_LT_DECL_OBJDUMP])
 
3529
m4_require([_LT_DECL_DLLTOOL])
 
3530
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
3531
lt_cv_sharedlib_from_linklib_cmd,
 
3532
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
3533
 
 
3534
case $host_os in
 
3535
cygwin* | mingw* | pw32* | cegcc*)
 
3536
  # two different shell functions defined in ltmain.sh
 
3537
  # decide which to use based on capabilities of $DLLTOOL
 
3538
  case `$DLLTOOL --help 2>&1` in
 
3539
  *--identify-strict*)
 
3540
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
3541
    ;;
 
3542
  *)
 
3543
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
3544
    ;;
 
3545
  esac
 
3546
  ;;
 
3547
*)
 
3548
  # fallback: assume linklib IS sharedlib
 
3549
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
3550
  ;;
 
3551
esac
 
3552
])
 
3553
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
3554
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
3555
 
 
3556
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
3557
    [Command to associate shared and link libraries])
 
3558
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3559
 
 
3560
 
 
3561
# _LT_PATH_MANIFEST_TOOL
 
3562
# ----------------------
 
3563
# locate the manifest tool
 
3564
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
3565
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
3566
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
3567
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
3568
  [lt_cv_path_mainfest_tool=no
 
3569
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
3570
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
3571
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3572
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
3573
    lt_cv_path_mainfest_tool=yes
 
3574
  fi
 
3575
  rm -f conftest*])
 
3576
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
3577
  MANIFEST_TOOL=:
 
3578
fi
 
3579
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
3580
])# _LT_PATH_MANIFEST_TOOL
 
3581
 
3278
3582
 
3279
3583
# LT_LIB_M
3280
3584
# --------
3283
3587
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3284
3588
LIBM=
3285
3589
case $host in
3286
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3590
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3287
3591
  # These system don't have libm, or don't need it
3288
3592
  ;;
3289
3593
*-ncr-sysv4.3*)
3311
3615
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3312
3616
 
3313
3617
if test "$GCC" = yes; then
3314
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3618
  case $cc_basename in
 
3619
  nvcc*)
 
3620
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3621
  *)
 
3622
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3623
  esac
3315
3624
 
3316
3625
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3317
3626
    lt_cv_prog_compiler_rtti_exceptions,
3328
3637
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3329
3638
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3330
3639
AC_REQUIRE([AC_PROG_CC])dnl
 
3640
AC_REQUIRE([AC_PROG_AWK])dnl
3331
3641
AC_REQUIRE([LT_PATH_NM])dnl
3332
3642
AC_REQUIRE([LT_PATH_LD])dnl
3333
3643
m4_require([_LT_DECL_SED])dnl
3395
3705
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3396
3706
 
3397
3707
# Transform an extracted symbol line into symbol name and symbol address
3398
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3399
 
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'"
 
3708
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3709
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'"
3400
3710
 
3401
3711
# Handle CRLF in mingw tool chain
3402
3712
opt_cr=
3420
3730
    # which start with @ or ?.
3421
3731
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3422
3732
"     {last_section=section; section=\$ 3};"\
 
3733
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3423
3734
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3424
3735
"     \$ 0!~/External *\|/{next};"\
3425
3736
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3432
3743
  else
3433
3744
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3434
3745
  fi
 
3746
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3435
3747
 
3436
3748
  # Check to see that the pipe works correctly.
3437
3749
  pipe_works=no
3453
3765
  if AC_TRY_EVAL(ac_compile); then
3454
3766
    # Now try to grab the symbols.
3455
3767
    nlist=conftest.nm
3456
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
3768
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3457
3769
      # Try sorting and uniquifying the output.
3458
3770
      if sort "$nlist" | uniq > "$nlist"T; then
3459
3771
        mv -f "$nlist"T "$nlist"
3465
3777
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3466
3778
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3467
3779
          cat <<_LT_EOF > conftest.$ac_ext
 
3780
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
3781
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
3782
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
3783
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
3784
# define LT@&t@_DLSYM_CONST
 
3785
#elif defined(__osf__)
 
3786
/* This system does not cope well with relocations in const data.  */
 
3787
# define LT@&t@_DLSYM_CONST
 
3788
#else
 
3789
# define LT@&t@_DLSYM_CONST const
 
3790
#endif
 
3791
 
3468
3792
#ifdef __cplusplus
3469
3793
extern "C" {
3470
3794
#endif
3476
3800
          cat <<_LT_EOF >> conftest.$ac_ext
3477
3801
 
3478
3802
/* The mapping between symbol names and symbols.  */
3479
 
const struct {
 
3803
LT@&t@_DLSYM_CONST struct {
3480
3804
  const char *name;
3481
3805
  void       *address;
3482
3806
}
3502
3826
_LT_EOF
3503
3827
          # Now try linking the two files.
3504
3828
          mv conftest.$ac_objext conftstm.$ac_objext
3505
 
          lt_save_LIBS="$LIBS"
3506
 
          lt_save_CFLAGS="$CFLAGS"
 
3829
          lt_globsym_save_LIBS=$LIBS
 
3830
          lt_globsym_save_CFLAGS=$CFLAGS
3507
3831
          LIBS="conftstm.$ac_objext"
3508
3832
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3509
3833
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3510
3834
            pipe_works=yes
3511
3835
          fi
3512
 
          LIBS="$lt_save_LIBS"
3513
 
          CFLAGS="$lt_save_CFLAGS"
 
3836
          LIBS=$lt_globsym_save_LIBS
 
3837
          CFLAGS=$lt_globsym_save_CFLAGS
3514
3838
        else
3515
3839
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3516
3840
        fi
3543
3867
  AC_MSG_RESULT(ok)
3544
3868
fi
3545
3869
 
 
3870
# Response file support.
 
3871
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3872
  nm_file_list_spec='@'
 
3873
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
3874
  nm_file_list_spec='@'
 
3875
fi
 
3876
 
3546
3877
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3547
3878
    [Take the output of nm and produce a listing of raw symbols and C names])
3548
3879
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3553
3884
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3554
3885
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3555
3886
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3887
_LT_DECL([], [nm_file_list_spec], [1],
 
3888
    [Specify filename containing input files for $NM])
3556
3889
]) # _LT_CMD_GLOBAL_SYMBOLS
3557
3890
 
3558
3891
 
3564
3897
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3565
3898
_LT_TAGVAR(lt_prog_compiler_static, $1)=
3566
3899
 
3567
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
3568
3900
m4_if([$1], [CXX], [
3569
3901
  # C++ specific cases for pic, static, wl, etc.
3570
3902
  if test "$GXX" = yes; then
3615
3947
      # DJGPP does not support shared libraries at all
3616
3948
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3617
3949
      ;;
 
3950
    haiku*)
 
3951
      # PIC is the default for Haiku.
 
3952
      # The "-static" flag exists, but is broken.
 
3953
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3954
      ;;
3618
3955
    interix[[3-9]]*)
3619
3956
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3620
3957
      # Instead, we relocate shared libraries at runtime.
3664
4001
          ;;
3665
4002
        esac
3666
4003
        ;;
 
4004
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4005
        # This hack is so that the source file can tell whether it is being
 
4006
        # built for inclusion in a dll (and should export symbols for example).
 
4007
        m4_if([$1], [GCJ], [],
 
4008
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4009
        ;;
3667
4010
      dgux*)
3668
4011
        case $cc_basename in
3669
4012
          ec++*)
3753
4096
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3754
4097
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3755
4098
            ;;
3756
 
          xlc* | xlC*)
3757
 
            # IBM XL 8.0 on PPC
 
4099
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4100
            # IBM XL 8.0, 9.0 on PPC and BlueGene
3758
4101
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3759
4102
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3760
4103
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3816
4159
        ;;
3817
4160
      solaris*)
3818
4161
        case $cc_basename in
3819
 
          CC*)
 
4162
          CC* | sunCC*)
3820
4163
            # Sun C++ 4.2, 5.x and Centerline C++
3821
4164
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3822
4165
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3920
4263
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3921
4264
      ;;
3922
4265
 
 
4266
    haiku*)
 
4267
      # PIC is the default for Haiku.
 
4268
      # The "-static" flag exists, but is broken.
 
4269
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4270
      ;;
 
4271
 
3923
4272
    hpux*)
3924
4273
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3925
4274
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3962
4311
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3963
4312
      ;;
3964
4313
    esac
 
4314
 
 
4315
    case $cc_basename in
 
4316
    nvcc*) # Cuda Compiler Driver 2.2
 
4317
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4318
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4319
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
4320
      fi
 
4321
      ;;
 
4322
    esac
3965
4323
  else
3966
4324
    # PORTME Check for flag to pass linker flags through the system compiler.
3967
4325
    case $host_os in
4025
4383
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4026
4384
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4027
4385
        ;;
4028
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4386
      nagfor*)
 
4387
        # NAG Fortran compiler
 
4388
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4389
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4390
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4391
        ;;
 
4392
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4029
4393
        # Portland Group compilers (*not* the Pentium gcc compiler,
4030
4394
        # which looks to be a dead project)
4031
4395
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4037
4401
        # All Alpha code is PIC.
4038
4402
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4039
4403
        ;;
4040
 
      xl*)
4041
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4404
      xl* | bgxl* | bgf* | mpixl*)
 
4405
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4042
4406
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043
4407
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4044
4408
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4045
4409
        ;;
4046
4410
      *)
4047
4411
        case `$CC -V 2>&1 | sed 5q` in
 
4412
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 
4413
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4414
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4415
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4416
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4417
          ;;
 
4418
        *Sun\ F* | *Sun*Fortran*)
 
4419
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4420
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4421
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4422
          ;;
4048
4423
        *Sun\ C*)
4049
4424
          # Sun C 5.9
4050
4425
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051
4426
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052
4427
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4053
4428
          ;;
4054
 
        *Sun\ F*)
4055
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4056
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4429
        *Intel*\ [[CF]]*Compiler*)
 
4430
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4431
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4432
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4433
          ;;
 
4434
        *Portland\ Group*)
 
4435
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4436
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4057
4437
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4059
4438
          ;;
4060
4439
        esac
4061
4440
        ;;
4087
4466
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088
4467
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089
4468
      case $cc_basename in
4090
 
      f77* | f90* | f95*)
 
4469
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4091
4470
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4092
4471
      *)
4093
4472
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4144
4523
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4145
4524
    ;;
4146
4525
esac
4147
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4148
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4149
 
        [How to pass a linker flag through the compiler])
 
4526
 
 
4527
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
4528
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
4529
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4530
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4150
4531
 
4151
4532
#
4152
4533
# Check to make sure the PIC flag actually works.
4165
4546
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4166
4547
        [Additional compiler flags for building library objects])
4167
4548
 
 
4549
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4550
        [How to pass a linker flag through the compiler])
4168
4551
#
4169
4552
# Check to make sure the static flag actually works.
4170
4553
#
4185
4568
m4_defun([_LT_LINKER_SHLIBS],
4186
4569
[AC_REQUIRE([LT_PATH_LD])dnl
4187
4570
AC_REQUIRE([LT_PATH_NM])dnl
 
4571
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4188
4572
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4189
4573
m4_require([_LT_DECL_EGREP])dnl
4190
4574
m4_require([_LT_DECL_SED])dnl
4193
4577
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4194
4578
m4_if([$1], [CXX], [
4195
4579
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4580
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4196
4581
  case $host_os in
4197
4582
  aix[[4-9]]*)
4198
4583
    # If we're using GNU nm, then we don't want the "-C" option.
4199
4584
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4585
    # Also, AIX nm treats weak defined symbols like other global defined
 
4586
    # symbols, whereas GNU nm marks them as "W".
4200
4587
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4201
 
      _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'
 
4588
      _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'
4202
4589
    else
4203
4590
      _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'
4204
4591
    fi
4205
4592
    ;;
4206
4593
  pw32*)
4207
4594
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4208
 
  ;;
 
4595
    ;;
4209
4596
  cygwin* | mingw* | cegcc*)
4210
 
    _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'
4211
 
  ;;
4212
 
  linux* | k*bsd*-gnu)
 
4597
    case $cc_basename in
 
4598
    cl*)
 
4599
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
4600
      ;;
 
4601
    *)
 
4602
      _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'
 
4603
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
4604
      ;;
 
4605
    esac
 
4606
    ;;
 
4607
  linux* | k*bsd*-gnu | gnu*)
4213
4608
    _LT_TAGVAR(link_all_deplibs, $1)=no
4214
 
  ;;
 
4609
    ;;
4215
4610
  *)
4216
4611
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4217
 
  ;;
 
4612
    ;;
4218
4613
  esac
4219
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4220
4614
], [
4221
4615
  runpath_var=
4222
4616
  _LT_TAGVAR(allow_undefined_flag, $1)=
4231
4625
  _LT_TAGVAR(hardcode_direct, $1)=no
4232
4626
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4233
4627
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4234
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4235
4628
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4236
4629
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4237
4630
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4276
4669
  openbsd*)
4277
4670
    with_gnu_ld=no
4278
4671
    ;;
4279
 
  linux* | k*bsd*-gnu)
 
4672
  linux* | k*bsd*-gnu | gnu*)
4280
4673
    _LT_TAGVAR(link_all_deplibs, $1)=no
4281
4674
    ;;
4282
4675
  esac
4283
4676
 
4284
4677
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4678
 
 
4679
  # On some targets, GNU ld is compatible enough with the native linker
 
4680
  # that we're better off using the native interface for both.
 
4681
  lt_use_gnu_ld_interface=no
4285
4682
  if test "$with_gnu_ld" = yes; then
 
4683
    case $host_os in
 
4684
      aix*)
 
4685
        # The AIX port of GNU ld has always aspired to compatibility
 
4686
        # with the native linker.  However, as the warning in the GNU ld
 
4687
        # block says, versions before 2.19.5* couldn't really create working
 
4688
        # shared libraries, regardless of the interface used.
 
4689
        case `$LD -v 2>&1` in
 
4690
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4691
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4692
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4693
          *)
 
4694
            lt_use_gnu_ld_interface=yes
 
4695
            ;;
 
4696
        esac
 
4697
        ;;
 
4698
      *)
 
4699
        lt_use_gnu_ld_interface=yes
 
4700
        ;;
 
4701
    esac
 
4702
  fi
 
4703
 
 
4704
  if test "$lt_use_gnu_ld_interface" = yes; then
4286
4705
    # If archive_cmds runs LD, not CC, wlarc should be empty
4287
4706
    wlarc='${wl}'
4288
4707
 
4316
4735
        _LT_TAGVAR(ld_shlibs, $1)=no
4317
4736
        cat <<_LT_EOF 1>&2
4318
4737
 
4319
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4738
*** Warning: the GNU linker, at least up to release 2.19, is reported
4320
4739
*** to be unable to reliably create shared libraries on AIX.
4321
4740
*** Therefore, libtool is disabling shared libraries support.  If you
4322
 
*** really care for shared libraries, you may want to modify your PATH
4323
 
*** so that a non-GNU linker is found, and then restart.
 
4741
*** really care for shared libraries, you may want to install binutils
 
4742
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
4743
*** You will then need to restart the configuration process.
4324
4744
 
4325
4745
_LT_EOF
4326
4746
      fi
4356
4776
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4357
4777
      # as there is no search path for DLLs.
4358
4778
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4779
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4359
4780
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4360
4781
      _LT_TAGVAR(always_export_symbols, $1)=no
4361
4782
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4362
 
      _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'
 
4783
      _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'
 
4784
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4363
4785
 
4364
4786
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4365
4787
        _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'
4377
4799
      fi
4378
4800
      ;;
4379
4801
 
 
4802
    haiku*)
 
4803
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4804
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4805
      ;;
 
4806
 
4380
4807
    interix[[3-9]]*)
4381
4808
      _LT_TAGVAR(hardcode_direct, $1)=no
4382
4809
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4402
4829
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4403
4830
         && test "$tmp_diet" = no
4404
4831
      then
4405
 
        tmp_addflag=
 
4832
        tmp_addflag=' $pic_flag'
4406
4833
        tmp_sharedflag='-shared'
4407
4834
        case $cc_basename,$host_cpu in
4408
4835
        pgcc*)                          # Portland Group C compiler
4409
 
          _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'
 
4836
          _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'
4410
4837
          tmp_addflag=' $pic_flag'
4411
4838
          ;;
4412
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4413
 
          _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'
 
4839
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
4840
                                        # Portland Group f77 and f90 compilers
 
4841
          _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'
4414
4842
          tmp_addflag=' $pic_flag -Mnomain' ;;
4415
4843
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4416
4844
          tmp_addflag=' -i_dynamic' ;;
4421
4849
        lf95*)                          # Lahey Fortran 8.1
4422
4850
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4423
4851
          tmp_sharedflag='--shared' ;;
4424
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4852
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4425
4853
          tmp_sharedflag='-qmkshrobj'
4426
4854
          tmp_addflag= ;;
 
4855
        nvcc*)  # Cuda Compiler Driver 2.2
 
4856
          _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'
 
4857
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
4858
          ;;
4427
4859
        esac
4428
4860
        case `$CC -V 2>&1 | sed 5q` in
4429
4861
        *Sun\ C*)                       # Sun C 5.9
4430
 
          _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'
 
4862
          _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'
4431
4863
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4432
4864
          tmp_sharedflag='-G' ;;
4433
4865
        *Sun\ F*)                       # Sun Fortran 8.3
4443
4875
        fi
4444
4876
 
4445
4877
        case $cc_basename in
4446
 
        xlf*)
 
4878
        xlf* | bgf* | bgxlf* | mpixlf*)
4447
4879
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4448
4880
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4449
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4450
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4451
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4881
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4882
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4452
4883
          if test "x$supports_anon_versioning" = xyes; then
4453
4884
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4454
4885
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4455
4886
              echo "local: *; };" >> $output_objdir/$libname.ver~
4456
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4887
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4457
4888
          fi
4458
4889
          ;;
4459
4890
        esac
4467
4898
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4468
4899
        wlarc=
4469
4900
      else
4470
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4471
 
        _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'
 
4901
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4902
        _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'
4472
4903
      fi
4473
4904
      ;;
4474
4905
 
4486
4917
 
4487
4918
_LT_EOF
4488
4919
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4489
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4490
 
        _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'
 
4920
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4921
        _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'
4491
4922
      else
4492
4923
        _LT_TAGVAR(ld_shlibs, $1)=no
4493
4924
      fi
4533
4964
 
4534
4965
    *)
4535
4966
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4536
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4537
 
        _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'
 
4967
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4968
        _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'
4538
4969
      else
4539
4970
        _LT_TAGVAR(ld_shlibs, $1)=no
4540
4971
      fi
4574
5005
      else
4575
5006
        # If we're using GNU nm, then we don't want the "-C" option.
4576
5007
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5008
        # Also, AIX nm treats weak defined symbols like other global
 
5009
        # defined symbols, whereas GNU nm marks them as "W".
4577
5010
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4578
 
          _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'
 
5011
          _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'
4579
5012
        else
4580
5013
          _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'
4581
5014
        fi
4663
5096
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4664
5097
        # Determine the default libpath from the value encoded in an
4665
5098
        # empty executable.
4666
 
        _LT_SYS_MODULE_PATH_AIX
 
5099
        _LT_SYS_MODULE_PATH_AIX([$1])
4667
5100
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4668
 
        _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"
 
5101
        _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"
4669
5102
      else
4670
5103
        if test "$host_cpu" = ia64; then
4671
5104
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4674
5107
        else
4675
5108
         # Determine the default libpath from the value encoded in an
4676
5109
         # empty executable.
4677
 
         _LT_SYS_MODULE_PATH_AIX
 
5110
         _LT_SYS_MODULE_PATH_AIX([$1])
4678
5111
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4679
5112
          # Warning - without using the other run time loading flags,
4680
5113
          # -berok will link without error, but may produce a broken library.
4681
5114
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4682
5115
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4683
 
          # Exported symbols can be pulled into shared objects from archives
4684
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5116
          if test "$with_gnu_ld" = yes; then
 
5117
            # We only use this code for GNU lds that support --whole-archive.
 
5118
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5119
          else
 
5120
            # Exported symbols can be pulled into shared objects from archives
 
5121
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5122
          fi
4685
5123
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4686
5124
          # This is similar to how AIX traditionally builds its shared libraries.
4687
5125
          _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'
4713
5151
      # Microsoft Visual C++.
4714
5152
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4715
5153
      # no search path for DLLs.
4716
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4717
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4718
 
      # Tell ltmain to make .lib files, not .a files.
4719
 
      libext=lib
4720
 
      # Tell ltmain to make .dll files, not .so files.
4721
 
      shrext_cmds=".dll"
4722
 
      # FIXME: Setting linknames here is a bad hack.
4723
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4724
 
      # The linker will automatically build a .lib file if we build a DLL.
4725
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4726
 
      # FIXME: Should let the user specify the lib program.
4727
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4728
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4729
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5154
      case $cc_basename in
 
5155
      cl*)
 
5156
        # Native MSVC
 
5157
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5158
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5159
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5160
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5161
        # Tell ltmain to make .lib files, not .a files.
 
5162
        libext=lib
 
5163
        # Tell ltmain to make .dll files, not .so files.
 
5164
        shrext_cmds=".dll"
 
5165
        # FIXME: Setting linknames here is a bad hack.
 
5166
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5167
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5168
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5169
          else
 
5170
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5171
          fi~
 
5172
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5173
          linknames='
 
5174
        # The linker will not automatically build a static lib if we build a DLL.
 
5175
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5176
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5177
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5178
        _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'
 
5179
        # Don't use ranlib
 
5180
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5181
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5182
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5183
          case $lt_outputfile in
 
5184
            *.exe|*.EXE) ;;
 
5185
            *)
 
5186
              lt_outputfile="$lt_outputfile.exe"
 
5187
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5188
              ;;
 
5189
          esac~
 
5190
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5191
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5192
            $RM "$lt_outputfile.manifest";
 
5193
          fi'
 
5194
        ;;
 
5195
      *)
 
5196
        # Assume MSVC wrapper
 
5197
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5198
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5199
        # Tell ltmain to make .lib files, not .a files.
 
5200
        libext=lib
 
5201
        # Tell ltmain to make .dll files, not .so files.
 
5202
        shrext_cmds=".dll"
 
5203
        # FIXME: Setting linknames here is a bad hack.
 
5204
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5205
        # The linker will automatically build a .lib file if we build a DLL.
 
5206
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5207
        # FIXME: Should let the user specify the lib program.
 
5208
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5209
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5210
        ;;
 
5211
      esac
4730
5212
      ;;
4731
5213
 
4732
5214
    darwin* | rhapsody*)
4739
5221
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4740
5222
      ;;
4741
5223
 
4742
 
    freebsd1*)
4743
 
      _LT_TAGVAR(ld_shlibs, $1)=no
4744
 
      ;;
4745
 
 
4746
5224
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4747
5225
    # support.  Future versions do this automatically, but an explicit c++rt0.o
4748
5226
    # does not break anything, and helps significantly (at the cost of a little
4755
5233
      ;;
4756
5234
 
4757
5235
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4758
 
    freebsd2*)
 
5236
    freebsd2.*)
4759
5237
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4760
5238
      _LT_TAGVAR(hardcode_direct, $1)=yes
4761
5239
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4764
5242
 
4765
5243
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4766
5244
    freebsd* | dragonfly*)
4767
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5245
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4768
5246
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4769
5247
      _LT_TAGVAR(hardcode_direct, $1)=yes
4770
5248
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4772
5250
 
4773
5251
    hpux9*)
4774
5252
      if test "$GCC" = yes; then
4775
 
        _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'
 
5253
        _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'
4776
5254
      else
4777
5255
        _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'
4778
5256
      fi
4787
5265
      ;;
4788
5266
 
4789
5267
    hpux10*)
4790
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4791
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5268
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5269
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4792
5270
      else
4793
5271
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4794
5272
      fi
4795
5273
      if test "$with_gnu_ld" = no; then
4796
5274
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4797
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4798
5275
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4799
5276
        _LT_TAGVAR(hardcode_direct, $1)=yes
4800
5277
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4806
5283
      ;;
4807
5284
 
4808
5285
    hpux11*)
4809
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5286
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4810
5287
        case $host_cpu in
4811
5288
        hppa*64*)
4812
5289
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4813
5290
          ;;
4814
5291
        ia64*)
4815
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5292
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4816
5293
          ;;
4817
5294
        *)
4818
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5295
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4819
5296
          ;;
4820
5297
        esac
4821
5298
      else
4827
5304
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4828
5305
          ;;
4829
5306
        *)
4830
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5307
        m4_if($1, [], [
 
5308
          # Older versions of the 11.00 compiler do not understand -b yet
 
5309
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5310
          _LT_LINKER_OPTION([if $CC understands -b],
 
5311
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5312
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5313
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5314
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4831
5315
          ;;
4832
5316
        esac
4833
5317
      fi
4855
5339
 
4856
5340
    irix5* | irix6* | nonstopux*)
4857
5341
      if test "$GCC" = yes; then
4858
 
        _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'
 
5342
        _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'
4859
5343
        # Try to use the -exported_symbol ld option, if it does not
4860
5344
        # work, assume that -exports_file does not work either and
4861
5345
        # implicitly export all symbols.
4862
 
        save_LDFLAGS="$LDFLAGS"
4863
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4864
 
        AC_LINK_IFELSE(int foo(void) {},
4865
 
          _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'
4866
 
        )
4867
 
        LDFLAGS="$save_LDFLAGS"
 
5346
        # This should be the same for all languages, so no per-tag cache variable.
 
5347
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5348
          [lt_cv_irix_exported_symbol],
 
5349
          [save_LDFLAGS="$LDFLAGS"
 
5350
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5351
           AC_LINK_IFELSE(
 
5352
             [AC_LANG_SOURCE(
 
5353
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5354
                              [C++], [[int foo (void) { return 0; }]],
 
5355
                              [Fortran 77], [[
 
5356
      subroutine foo
 
5357
      end]],
 
5358
                              [Fortran], [[
 
5359
      subroutine foo
 
5360
      end]])])],
 
5361
              [lt_cv_irix_exported_symbol=yes],
 
5362
              [lt_cv_irix_exported_symbol=no])
 
5363
           LDFLAGS="$save_LDFLAGS"])
 
5364
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5365
          _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'
 
5366
        fi
4868
5367
      else
4869
 
        _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'
4870
 
        _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'
 
5368
        _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'
 
5369
        _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'
4871
5370
      fi
4872
5371
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4873
5372
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4929
5428
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4930
5429
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4931
5430
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4932
 
      _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'
 
5431
      _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'
4933
5432
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4934
5433
      ;;
4935
5434
 
4936
5435
    osf3*)
4937
5436
      if test "$GCC" = yes; then
4938
5437
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4939
 
        _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'
 
5438
        _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'
4940
5439
      else
4941
5440
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4942
 
        _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'
 
5441
        _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'
4943
5442
      fi
4944
5443
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4945
5444
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4949
5448
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4950
5449
      if test "$GCC" = yes; then
4951
5450
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4952
 
        _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'
 
5451
        _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'
4953
5452
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4954
5453
      else
4955
5454
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4956
 
        _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'
 
5455
        _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'
4957
5456
        _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~
4958
 
        $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'
 
5457
        $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'
4959
5458
 
4960
5459
        # Both c and cxx compiler support -rpath directly
4961
5460
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4968
5467
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4969
5468
      if test "$GCC" = yes; then
4970
5469
        wlarc='${wl}'
4971
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5470
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4972
5471
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4973
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5472
          $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'
4974
5473
      else
4975
5474
        case `$CC -V 2>&1` in
4976
5475
        *"Compilers 5.0"*)
5146
5645
      # Test whether the compiler implicitly links with -lc since on some
5147
5646
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5148
5647
      # to ld, don't add -lc before -lgcc.
5149
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5150
 
      $RM conftest*
5151
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5648
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5649
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5650
        [$RM conftest*
 
5651
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5152
5652
 
5153
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5154
 
        soname=conftest
5155
 
        lib=conftest
5156
 
        libobjs=conftest.$ac_objext
5157
 
        deplibs=
5158
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5159
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5160
 
        compiler_flags=-v
5161
 
        linker_flags=-v
5162
 
        verstring=
5163
 
        output_objdir=.
5164
 
        libname=conftest
5165
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5166
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5167
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5168
 
        then
5169
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5170
 
        else
5171
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5172
 
        fi
5173
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5174
 
      else
5175
 
        cat conftest.err 1>&5
5176
 
      fi
5177
 
      $RM conftest*
5178
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5653
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5654
          soname=conftest
 
5655
          lib=conftest
 
5656
          libobjs=conftest.$ac_objext
 
5657
          deplibs=
 
5658
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5659
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5660
          compiler_flags=-v
 
5661
          linker_flags=-v
 
5662
          verstring=
 
5663
          output_objdir=.
 
5664
          libname=conftest
 
5665
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5666
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5667
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5668
          then
 
5669
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5670
          else
 
5671
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5672
          fi
 
5673
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5674
        else
 
5675
          cat conftest.err 1>&5
 
5676
        fi
 
5677
        $RM conftest*
 
5678
        ])
 
5679
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5179
5680
      ;;
5180
5681
    esac
5181
5682
  fi
5212
5713
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5213
5714
    [Flag to hardcode $libdir into a binary during linking.
5214
5715
    This must work even if $libdir does not exist])
5215
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5216
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5217
 
    during linking.  This must work even if $libdir does not exist]])
5218
5716
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5219
5717
    [Whether we need a single "-rpath" flag with a separated argument])
5220
5718
_LT_TAGDECL([], [hardcode_direct], [0],
5240
5738
    to runtime path list])
5241
5739
_LT_TAGDECL([], [link_all_deplibs], [0],
5242
5740
    [Whether libtool must link a program against all its dependency libraries])
5243
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5244
 
    [Fix the shell variable $srcfile for the compiler])
5245
5741
_LT_TAGDECL([], [always_export_symbols], [0],
5246
5742
    [Set to "yes" if exported symbols are required])
5247
5743
_LT_TAGDECL([], [export_symbols_cmds], [2],
5252
5748
    [Symbols that must always be exported])
5253
5749
_LT_TAGDECL([], [prelink_cmds], [2],
5254
5750
    [Commands necessary for linking programs (against libraries) with templates])
 
5751
_LT_TAGDECL([], [postlink_cmds], [2],
 
5752
    [Commands necessary for finishing linking programs])
5255
5753
_LT_TAGDECL([], [file_list_spec], [1],
5256
5754
    [Specify filename containing input files])
5257
5755
dnl FIXME: Not yet implemented
5341
5839
])# _LT_LANG_C_CONFIG
5342
5840
 
5343
5841
 
5344
 
# _LT_PROG_CXX
5345
 
# ------------
5346
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5347
 
# compiler, we have our own version here.
5348
 
m4_defun([_LT_PROG_CXX],
5349
 
[
5350
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5351
 
AC_PROG_CXX
 
5842
# _LT_LANG_CXX_CONFIG([TAG])
 
5843
# --------------------------
 
5844
# Ensure that the configuration variables for a C++ compiler are suitably
 
5845
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5846
# the compiler configuration to `libtool'.
 
5847
m4_defun([_LT_LANG_CXX_CONFIG],
 
5848
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5849
m4_require([_LT_DECL_EGREP])dnl
 
5850
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5352
5851
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5353
5852
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5354
5853
    (test "X$CXX" != "Xg++"))) ; then
5356
5855
else
5357
5856
  _lt_caught_CXX_error=yes
5358
5857
fi
5359
 
popdef([AC_MSG_ERROR])
5360
 
])# _LT_PROG_CXX
5361
 
 
5362
 
dnl aclocal-1.4 backwards compatibility:
5363
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5364
 
 
5365
 
 
5366
 
# _LT_LANG_CXX_CONFIG([TAG])
5367
 
# --------------------------
5368
 
# Ensure that the configuration variables for a C++ compiler are suitably
5369
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5370
 
# the compiler configuration to `libtool'.
5371
 
m4_defun([_LT_LANG_CXX_CONFIG],
5372
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5373
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5374
 
m4_require([_LT_DECL_EGREP])dnl
5375
5858
 
5376
5859
AC_LANG_PUSH(C++)
5377
5860
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5383
5866
_LT_TAGVAR(hardcode_direct, $1)=no
5384
5867
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5385
5868
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5386
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5387
5869
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5388
5870
_LT_TAGVAR(hardcode_minus_L, $1)=no
5389
5871
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5393
5875
_LT_TAGVAR(module_expsym_cmds, $1)=
5394
5876
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5395
5877
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5878
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
5879
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5396
5880
_LT_TAGVAR(no_undefined_flag, $1)=
5397
5881
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5398
5882
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5424
5908
 
5425
5909
  # Allow CC to be a program name with arguments.
5426
5910
  lt_save_CC=$CC
 
5911
  lt_save_CFLAGS=$CFLAGS
5427
5912
  lt_save_LD=$LD
5428
5913
  lt_save_GCC=$GCC
5429
5914
  GCC=$GXX
5441
5926
  fi
5442
5927
  test -z "${LDCXX+set}" || LD=$LDCXX
5443
5928
  CC=${CXX-"c++"}
 
5929
  CFLAGS=$CXXFLAGS
5444
5930
  compiler=$CC
5445
5931
  _LT_TAGVAR(compiler, $1)=$CC
5446
5932
  _LT_CC_BASENAME([$compiler])
5462
5948
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5463
5949
      # archiving commands below assume that GNU ld is being used.
5464
5950
      if test "$with_gnu_ld" = yes; then
5465
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466
 
        _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'
 
5951
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5952
        _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'
5467
5953
 
5468
5954
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5469
5955
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5495
5981
      # Commands to make compiler produce verbose output that lists
5496
5982
      # what "hidden" libraries, object files and flags are used when
5497
5983
      # linking a shared library.
5498
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5984
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5499
5985
 
5500
5986
    else
5501
5987
      GXX=no
5604
6090
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5605
6091
          # Determine the default libpath from the value encoded in an empty
5606
6092
          # executable.
5607
 
          _LT_SYS_MODULE_PATH_AIX
 
6093
          _LT_SYS_MODULE_PATH_AIX([$1])
5608
6094
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5609
6095
 
5610
 
          _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"
 
6096
          _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"
5611
6097
        else
5612
6098
          if test "$host_cpu" = ia64; then
5613
6099
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5616
6102
          else
5617
6103
            # Determine the default libpath from the value encoded in an
5618
6104
            # empty executable.
5619
 
            _LT_SYS_MODULE_PATH_AIX
 
6105
            _LT_SYS_MODULE_PATH_AIX([$1])
5620
6106
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5621
6107
            # Warning - without using the other run time loading flags,
5622
6108
            # -berok will link without error, but may produce a broken library.
5623
6109
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5624
6110
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5625
 
            # Exported symbols can be pulled into shared objects from archives
5626
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6111
            if test "$with_gnu_ld" = yes; then
 
6112
              # We only use this code for GNU lds that support --whole-archive.
 
6113
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6114
            else
 
6115
              # Exported symbols can be pulled into shared objects from archives
 
6116
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6117
            fi
5627
6118
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5628
6119
            # This is similar to how AIX traditionally builds its shared
5629
6120
            # libraries.
5653
6144
        ;;
5654
6145
 
5655
6146
      cygwin* | mingw* | pw32* | cegcc*)
5656
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5657
 
        # as there is no search path for DLLs.
5658
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5659
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5660
 
        _LT_TAGVAR(always_export_symbols, $1)=no
5661
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6147
        case $GXX,$cc_basename in
 
6148
        ,cl* | no,cl*)
 
6149
          # Native MSVC
 
6150
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6151
          # no search path for DLLs.
 
6152
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6153
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6154
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6155
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6156
          # Tell ltmain to make .lib files, not .a files.
 
6157
          libext=lib
 
6158
          # Tell ltmain to make .dll files, not .so files.
 
6159
          shrext_cmds=".dll"
 
6160
          # FIXME: Setting linknames here is a bad hack.
 
6161
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6162
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6163
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6164
            else
 
6165
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6166
            fi~
 
6167
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6168
            linknames='
 
6169
          # The linker will not automatically build a static lib if we build a DLL.
 
6170
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6171
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6172
          # Don't use ranlib
 
6173
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6174
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6175
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6176
            case $lt_outputfile in
 
6177
              *.exe|*.EXE) ;;
 
6178
              *)
 
6179
                lt_outputfile="$lt_outputfile.exe"
 
6180
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6181
                ;;
 
6182
            esac~
 
6183
            func_to_tool_file "$lt_outputfile"~
 
6184
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6185
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6186
              $RM "$lt_outputfile.manifest";
 
6187
            fi'
 
6188
          ;;
 
6189
        *)
 
6190
          # g++
 
6191
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6192
          # as there is no search path for DLLs.
 
6193
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6194
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6195
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6196
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6197
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5662
6198
 
5663
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5664
 
          _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'
5665
 
          # If the export-symbols file already is a .def file (1st line
5666
 
          # is EXPORTS), use it as is; otherwise, prepend...
5667
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5668
 
            cp $export_symbols $output_objdir/$soname.def;
5669
 
          else
5670
 
            echo EXPORTS > $output_objdir/$soname.def;
5671
 
            cat $export_symbols >> $output_objdir/$soname.def;
5672
 
          fi~
5673
 
          $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'
5674
 
        else
5675
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5676
 
        fi
5677
 
        ;;
 
6199
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6200
            _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'
 
6201
            # If the export-symbols file already is a .def file (1st line
 
6202
            # is EXPORTS), use it as is; otherwise, prepend...
 
6203
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6204
              cp $export_symbols $output_objdir/$soname.def;
 
6205
            else
 
6206
              echo EXPORTS > $output_objdir/$soname.def;
 
6207
              cat $export_symbols >> $output_objdir/$soname.def;
 
6208
            fi~
 
6209
            $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'
 
6210
          else
 
6211
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6212
          fi
 
6213
          ;;
 
6214
        esac
 
6215
        ;;
5678
6216
      darwin* | rhapsody*)
5679
6217
        _LT_DARWIN_LINKER_FEATURES($1)
5680
6218
        ;;
5697
6235
        esac
5698
6236
        ;;
5699
6237
 
5700
 
      freebsd[[12]]*)
 
6238
      freebsd2.*)
5701
6239
        # C++ shared libraries reported to be fairly broken before
5702
6240
        # switch to ELF
5703
6241
        _LT_TAGVAR(ld_shlibs, $1)=no
5716
6254
      gnu*)
5717
6255
        ;;
5718
6256
 
 
6257
      haiku*)
 
6258
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6259
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6260
        ;;
 
6261
 
5719
6262
      hpux9*)
5720
6263
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5721
6264
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5740
6283
            # explicitly linking system object files so we need to strip them
5741
6284
            # from the output so that they don't get included in the library
5742
6285
            # dependencies.
5743
 
            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'
 
6286
            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"'
5744
6287
            ;;
5745
6288
          *)
5746
6289
            if test "$GXX" = yes; then
5747
 
              _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'
 
6290
              _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'
5748
6291
            else
5749
6292
              # FIXME: insert proper C++ library support
5750
6293
              _LT_TAGVAR(ld_shlibs, $1)=no
5805
6348
            # explicitly linking system object files so we need to strip them
5806
6349
            # from the output so that they don't get included in the library
5807
6350
            # dependencies.
5808
 
            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'
 
6351
            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"'
5809
6352
            ;;
5810
6353
          *)
5811
6354
            if test "$GXX" = yes; then
5815
6358
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5816
6359
                    ;;
5817
6360
                  ia64*)
5818
 
                    _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'
 
6361
                    _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'
5819
6362
                    ;;
5820
6363
                  *)
5821
 
                    _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'
 
6364
                    _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'
5822
6365
                    ;;
5823
6366
                esac
5824
6367
              fi
5848
6391
        case $cc_basename in
5849
6392
          CC*)
5850
6393
            # SGI C++
5851
 
            _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'
 
6394
            _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'
5852
6395
 
5853
6396
            # Archives containing C++ object files must be created using
5854
6397
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5859
6402
          *)
5860
6403
            if test "$GXX" = yes; then
5861
6404
              if test "$with_gnu_ld" = no; then
5862
 
                _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'
 
6405
                _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'
5863
6406
              else
5864
 
                _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'
 
6407
                _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'
5865
6408
              fi
5866
6409
            fi
5867
6410
            _LT_TAGVAR(link_all_deplibs, $1)=yes
5890
6433
            # explicitly linking system object files so we need to strip them
5891
6434
            # from the output so that they don't get included in the library
5892
6435
            # dependencies.
5893
 
            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'
 
6436
            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"'
5894
6437
 
5895
6438
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5896
6439
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5927
6470
          pgCC* | pgcpp*)
5928
6471
            # Portland Group C++ compiler
5929
6472
            case `$CC -V` in
5930
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6473
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5931
6474
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5932
6475
                rm -rf $tpldir~
5933
6476
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5934
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6477
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5935
6478
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5936
6479
                rm -rf $tpldir~
5937
6480
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5938
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6481
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5939
6482
                $RANLIB $oldlib'
5940
6483
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5941
6484
                rm -rf $tpldir~
5942
6485
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5943
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6486
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5944
6487
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5945
6488
                rm -rf $tpldir~
5946
6489
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5947
 
                $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'
 
6490
                $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'
5948
6491
              ;;
5949
 
            *) # Version 6 will use weak symbols
 
6492
            *) # Version 6 and above use weak symbols
5950
6493
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5951
6494
              _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'
5952
6495
              ;;
5954
6497
 
5955
6498
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5956
6499
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5957
 
            _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'
 
6500
            _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'
5958
6501
            ;;
5959
6502
          cxx*)
5960
6503
            # Compaq C++
5973
6516
            # explicitly linking system object files so we need to strip them
5974
6517
            # from the output so that they don't get included in the library
5975
6518
            # dependencies.
5976
 
            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'
 
6519
            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'
5977
6520
            ;;
5978
 
          xl*)
 
6521
          xl* | mpixl* | bgxl*)
5979
6522
            # IBM XL 8.0 on PPC, with GNU ld
5980
6523
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5981
6524
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5995
6538
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5996
6539
              _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'
5997
6540
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5998
 
              _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'
 
6541
              _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'
5999
6542
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6000
6543
 
6001
6544
              # Not sure whether something based on
6002
6545
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6003
6546
              # would be better.
6004
 
              output_verbose_link_cmd='echo'
 
6547
              output_verbose_link_cmd='func_echo_all'
6005
6548
 
6006
6549
              # Archives containing C++ object files must be created using
6007
6550
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6070
6613
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6071
6614
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6072
6615
          fi
6073
 
          output_verbose_link_cmd=echo
 
6616
          output_verbose_link_cmd=func_echo_all
6074
6617
        else
6075
6618
          _LT_TAGVAR(ld_shlibs, $1)=no
6076
6619
        fi
6105
6648
            case $host in
6106
6649
              osf3*)
6107
6650
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6108
 
                _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'
 
6651
                _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'
6109
6652
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6110
6653
                ;;
6111
6654
              *)
6112
6655
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6113
 
                _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'
 
6656
                _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'
6114
6657
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6115
6658
                  echo "-hidden">> $lib.exp~
6116
 
                  $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~
 
6659
                  $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~
6117
6660
                  $RM $lib.exp'
6118
6661
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6119
6662
                ;;
6129
6672
            # explicitly linking system object files so we need to strip them
6130
6673
            # from the output so that they don't get included in the library
6131
6674
            # dependencies.
6132
 
            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'
 
6675
            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"'
6133
6676
            ;;
6134
6677
          *)
6135
6678
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6136
6679
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6137
6680
              case $host in
6138
6681
                osf3*)
6139
 
                  _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'
 
6682
                  _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'
6140
6683
                  ;;
6141
6684
                *)
6142
 
                  _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'
 
6685
                  _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'
6143
6686
                  ;;
6144
6687
              esac
6145
6688
 
6149
6692
              # Commands to make compiler produce verbose output that lists
6150
6693
              # what "hidden" libraries, object files and flags are used when
6151
6694
              # linking a shared library.
6152
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6695
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6153
6696
 
6154
6697
            else
6155
6698
              # FIXME: insert proper C++ library support
6185
6728
 
6186
6729
      solaris*)
6187
6730
        case $cc_basename in
6188
 
          CC*)
 
6731
          CC* | sunCC*)
6189
6732
            # Sun C++ 4.2, 5.x and Centerline C++
6190
6733
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6191
6734
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6206
6749
            esac
6207
6750
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6208
6751
 
6209
 
            output_verbose_link_cmd='echo'
 
6752
            output_verbose_link_cmd='func_echo_all'
6210
6753
 
6211
6754
            # Archives containing C++ object files must be created using
6212
6755
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6226
6769
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6227
6770
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6228
6771
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6229
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6772
                _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'
6230
6773
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6231
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6774
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6232
6775
 
6233
6776
                # Commands to make compiler produce verbose output that lists
6234
6777
                # what "hidden" libraries, object files and flags are used when
6235
6778
                # linking a shared library.
6236
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6779
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6237
6780
              else
6238
6781
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6239
6782
                # platform.
6244
6787
                # Commands to make compiler produce verbose output that lists
6245
6788
                # what "hidden" libraries, object files and flags are used when
6246
6789
                # linking a shared library.
6247
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6790
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6248
6791
              fi
6249
6792
 
6250
6793
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6298
6841
          CC*)
6299
6842
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6300
6843
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6844
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
6845
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
6846
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
6847
              '"$_LT_TAGVAR(reload_cmds, $1)"
6301
6848
            ;;
6302
6849
          *)
6303
6850
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6353
6900
  fi # test -n "$compiler"
6354
6901
 
6355
6902
  CC=$lt_save_CC
 
6903
  CFLAGS=$lt_save_CFLAGS
6356
6904
  LDCXX=$LD
6357
6905
  LD=$lt_save_LD
6358
6906
  GCC=$lt_save_GCC
6367
6915
])# _LT_LANG_CXX_CONFIG
6368
6916
 
6369
6917
 
 
6918
# _LT_FUNC_STRIPNAME_CNF
 
6919
# ----------------------
 
6920
# func_stripname_cnf prefix suffix name
 
6921
# strip PREFIX and SUFFIX off of NAME.
 
6922
# PREFIX and SUFFIX must not contain globbing or regex special
 
6923
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
6924
# dot (in which case that matches only a dot).
 
6925
#
 
6926
# This function is identical to the (non-XSI) version of func_stripname,
 
6927
# except this one can be used by m4 code that may be executed by configure,
 
6928
# rather than the libtool script.
 
6929
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
6930
AC_REQUIRE([_LT_DECL_SED])
 
6931
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
6932
func_stripname_cnf ()
 
6933
{
 
6934
  case ${2} in
 
6935
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
6936
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
6937
  esac
 
6938
} # func_stripname_cnf
 
6939
])# _LT_FUNC_STRIPNAME_CNF
 
6940
 
6370
6941
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6371
6942
# ---------------------------------
6372
6943
# Figure out "hidden" library dependencies from verbose
6375
6946
# objects, libraries and library flags.
6376
6947
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6377
6948
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6949
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6378
6950
# Dependencies to place before and after the object being linked:
6379
6951
_LT_TAGVAR(predep_objects, $1)=
6380
6952
_LT_TAGVAR(postdep_objects, $1)=
6424
6996
  }
6425
6997
};
6426
6998
_LT_EOF
 
6999
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
7000
package foo
 
7001
func foo() {
 
7002
}
 
7003
_LT_EOF
6427
7004
])
 
7005
 
 
7006
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7007
case "$CC $CFLAGS " in #(
 
7008
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7009
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7010
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
7011
esac
 
7012
 
6428
7013
dnl Parse the compiler output and extract the necessary
6429
7014
dnl objects, libraries and library flags.
6430
7015
if AC_TRY_EVAL(ac_compile); then
6436
7021
  pre_test_object_deps_done=no
6437
7022
 
6438
7023
  for p in `eval "$output_verbose_link_cmd"`; do
6439
 
    case $p in
 
7024
    case ${prev}${p} in
6440
7025
 
6441
7026
    -L* | -R* | -l*)
6442
7027
       # Some compilers place space between "-{L,R}" and the path.
6445
7030
          test $p = "-R"; then
6446
7031
         prev=$p
6447
7032
         continue
6448
 
       else
6449
 
         prev=
6450
7033
       fi
6451
7034
 
 
7035
       # Expand the sysroot to ease extracting the directories later.
 
7036
       if test -z "$prev"; then
 
7037
         case $p in
 
7038
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7039
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7040
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7041
         esac
 
7042
       fi
 
7043
       case $p in
 
7044
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7045
       esac
6452
7046
       if test "$pre_test_object_deps_done" = no; then
6453
 
         case $p in
6454
 
         -L* | -R*)
 
7047
         case ${prev} in
 
7048
         -L | -R)
6455
7049
           # Internal compiler library paths should come after those
6456
7050
           # provided the user.  The postdeps already come after the
6457
7051
           # user supplied libs so there is no need to process them.
6471
7065
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6472
7066
         fi
6473
7067
       fi
 
7068
       prev=
6474
7069
       ;;
6475
7070
 
 
7071
    *.lto.$objext) ;; # Ignore GCC LTO objects
6476
7072
    *.$objext)
6477
7073
       # This assumes that the test object file only shows up
6478
7074
       # once in the compiler output.
6508
7104
fi
6509
7105
 
6510
7106
$RM -f confest.$objext
 
7107
CFLAGS=$_lt_libdeps_save_CFLAGS
6511
7108
 
6512
7109
# PORTME: override above test on systems where it is broken
6513
7110
m4_if([$1], [CXX],
6544
7141
 
6545
7142
solaris*)
6546
7143
  case $cc_basename in
6547
 
  CC*)
 
7144
  CC* | sunCC*)
6548
7145
    # The more standards-conforming stlport4 library is
6549
7146
    # incompatible with the Cstd library. Avoid specifying
6550
7147
    # it if it's in CXXFLAGS. Ignore libCrun as
6588
7185
])# _LT_SYS_HIDDEN_LIBDEPS
6589
7186
 
6590
7187
 
6591
 
# _LT_PROG_F77
6592
 
# ------------
6593
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6594
 
# if there is no fortran compiler, we have our own version here.
6595
 
m4_defun([_LT_PROG_F77],
6596
 
[
6597
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6598
 
AC_PROG_F77
6599
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6600
 
  _lt_disable_F77=yes
6601
 
fi
6602
 
popdef([AC_MSG_ERROR])
6603
 
])# _LT_PROG_F77
6604
 
 
6605
 
dnl aclocal-1.4 backwards compatibility:
6606
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6607
 
 
6608
 
 
6609
7188
# _LT_LANG_F77_CONFIG([TAG])
6610
7189
# --------------------------
6611
7190
# Ensure that the configuration variables for a Fortran 77 compiler are
6612
7191
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6613
7192
# to write the compiler configuration to `libtool'.
6614
7193
m4_defun([_LT_LANG_F77_CONFIG],
6615
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6616
 
AC_LANG_PUSH(Fortran 77)
 
7194
[AC_LANG_PUSH(Fortran 77)
 
7195
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7196
  _lt_disable_F77=yes
 
7197
fi
6617
7198
 
6618
7199
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6619
7200
_LT_TAGVAR(allow_undefined_flag, $1)=
6623
7204
_LT_TAGVAR(hardcode_direct, $1)=no
6624
7205
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6625
7206
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6626
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6627
7207
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6628
7208
_LT_TAGVAR(hardcode_minus_L, $1)=no
6629
7209
_LT_TAGVAR(hardcode_automatic, $1)=no
6632
7212
_LT_TAGVAR(module_expsym_cmds, $1)=
6633
7213
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6634
7214
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7215
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7216
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6635
7217
_LT_TAGVAR(no_undefined_flag, $1)=
6636
7218
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6637
7219
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6671
7253
  # Allow CC to be a program name with arguments.
6672
7254
  lt_save_CC="$CC"
6673
7255
  lt_save_GCC=$GCC
 
7256
  lt_save_CFLAGS=$CFLAGS
6674
7257
  CC=${F77-"f77"}
 
7258
  CFLAGS=$FFLAGS
6675
7259
  compiler=$CC
6676
7260
  _LT_TAGVAR(compiler, $1)=$CC
6677
7261
  _LT_CC_BASENAME([$compiler])
6725
7309
 
6726
7310
  GCC=$lt_save_GCC
6727
7311
  CC="$lt_save_CC"
 
7312
  CFLAGS="$lt_save_CFLAGS"
6728
7313
fi # test "$_lt_disable_F77" != yes
6729
7314
 
6730
7315
AC_LANG_POP
6731
7316
])# _LT_LANG_F77_CONFIG
6732
7317
 
6733
7318
 
6734
 
# _LT_PROG_FC
6735
 
# -----------
6736
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6737
 
# if there is no fortran compiler, we have our own version here.
6738
 
m4_defun([_LT_PROG_FC],
6739
 
[
6740
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6741
 
AC_PROG_FC
6742
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6743
 
  _lt_disable_FC=yes
6744
 
fi
6745
 
popdef([AC_MSG_ERROR])
6746
 
])# _LT_PROG_FC
6747
 
 
6748
 
dnl aclocal-1.4 backwards compatibility:
6749
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6750
 
 
6751
 
 
6752
7319
# _LT_LANG_FC_CONFIG([TAG])
6753
7320
# -------------------------
6754
7321
# Ensure that the configuration variables for a Fortran compiler are
6755
7322
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6756
7323
# to write the compiler configuration to `libtool'.
6757
7324
m4_defun([_LT_LANG_FC_CONFIG],
6758
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6759
 
AC_LANG_PUSH(Fortran)
 
7325
[AC_LANG_PUSH(Fortran)
 
7326
 
 
7327
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7328
  _lt_disable_FC=yes
 
7329
fi
6760
7330
 
6761
7331
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6762
7332
_LT_TAGVAR(allow_undefined_flag, $1)=
6766
7336
_LT_TAGVAR(hardcode_direct, $1)=no
6767
7337
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6768
7338
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6769
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6770
7339
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6771
7340
_LT_TAGVAR(hardcode_minus_L, $1)=no
6772
7341
_LT_TAGVAR(hardcode_automatic, $1)=no
6775
7344
_LT_TAGVAR(module_expsym_cmds, $1)=
6776
7345
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6777
7346
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7347
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7348
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6778
7349
_LT_TAGVAR(no_undefined_flag, $1)=
6779
7350
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6780
7351
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6814
7385
  # Allow CC to be a program name with arguments.
6815
7386
  lt_save_CC="$CC"
6816
7387
  lt_save_GCC=$GCC
 
7388
  lt_save_CFLAGS=$CFLAGS
6817
7389
  CC=${FC-"f95"}
 
7390
  CFLAGS=$FCFLAGS
6818
7391
  compiler=$CC
6819
7392
  GCC=$ac_cv_fc_compiler_gnu
6820
7393
 
6870
7443
  fi # test -n "$compiler"
6871
7444
 
6872
7445
  GCC=$lt_save_GCC
6873
 
  CC="$lt_save_CC"
 
7446
  CC=$lt_save_CC
 
7447
  CFLAGS=$lt_save_CFLAGS
6874
7448
fi # test "$_lt_disable_FC" != yes
6875
7449
 
6876
7450
AC_LANG_POP
6907
7481
_LT_LINKER_BOILERPLATE
6908
7482
 
6909
7483
# Allow CC to be a program name with arguments.
6910
 
lt_save_CC="$CC"
 
7484
lt_save_CC=$CC
 
7485
lt_save_CFLAGS=$CFLAGS
6911
7486
lt_save_GCC=$GCC
6912
7487
GCC=yes
6913
7488
CC=${GCJ-"gcj"}
 
7489
CFLAGS=$GCJFLAGS
6914
7490
compiler=$CC
6915
7491
_LT_TAGVAR(compiler, $1)=$CC
6916
7492
_LT_TAGVAR(LD, $1)="$LD"
6920
7496
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6921
7497
 
6922
7498
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7499
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7500
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6923
7501
 
6924
7502
if test -n "$compiler"; then
6925
7503
  _LT_COMPILER_NO_RTTI($1)
6935
7513
AC_LANG_RESTORE
6936
7514
 
6937
7515
GCC=$lt_save_GCC
6938
 
CC="$lt_save_CC"
 
7516
CC=$lt_save_CC
 
7517
CFLAGS=$lt_save_CFLAGS
6939
7518
])# _LT_LANG_GCJ_CONFIG
6940
7519
 
6941
7520
 
 
7521
# _LT_LANG_GO_CONFIG([TAG])
 
7522
# --------------------------
 
7523
# Ensure that the configuration variables for the GNU Go compiler
 
7524
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7525
# to write the compiler configuration to `libtool'.
 
7526
m4_defun([_LT_LANG_GO_CONFIG],
 
7527
[AC_REQUIRE([LT_PROG_GO])dnl
 
7528
AC_LANG_SAVE
 
7529
 
 
7530
# Source file extension for Go test sources.
 
7531
ac_ext=go
 
7532
 
 
7533
# Object file extension for compiled Go test sources.
 
7534
objext=o
 
7535
_LT_TAGVAR(objext, $1)=$objext
 
7536
 
 
7537
# Code to be used in simple compile tests
 
7538
lt_simple_compile_test_code="package main; func main() { }"
 
7539
 
 
7540
# Code to be used in simple link tests
 
7541
lt_simple_link_test_code='package main; func main() { }'
 
7542
 
 
7543
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7544
_LT_TAG_COMPILER
 
7545
 
 
7546
# save warnings/boilerplate of simple test code
 
7547
_LT_COMPILER_BOILERPLATE
 
7548
_LT_LINKER_BOILERPLATE
 
7549
 
 
7550
# Allow CC to be a program name with arguments.
 
7551
lt_save_CC=$CC
 
7552
lt_save_CFLAGS=$CFLAGS
 
7553
lt_save_GCC=$GCC
 
7554
GCC=yes
 
7555
CC=${GOC-"gccgo"}
 
7556
CFLAGS=$GOFLAGS
 
7557
compiler=$CC
 
7558
_LT_TAGVAR(compiler, $1)=$CC
 
7559
_LT_TAGVAR(LD, $1)="$LD"
 
7560
_LT_CC_BASENAME([$compiler])
 
7561
 
 
7562
# Go did not exist at the time GCC didn't implicitly link libc in.
 
7563
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7564
 
 
7565
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7566
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7567
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
7568
 
 
7569
if test -n "$compiler"; then
 
7570
  _LT_COMPILER_NO_RTTI($1)
 
7571
  _LT_COMPILER_PIC($1)
 
7572
  _LT_COMPILER_C_O($1)
 
7573
  _LT_COMPILER_FILE_LOCKS($1)
 
7574
  _LT_LINKER_SHLIBS($1)
 
7575
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7576
 
 
7577
  _LT_CONFIG($1)
 
7578
fi
 
7579
 
 
7580
AC_LANG_RESTORE
 
7581
 
 
7582
GCC=$lt_save_GCC
 
7583
CC=$lt_save_CC
 
7584
CFLAGS=$lt_save_CFLAGS
 
7585
])# _LT_LANG_GO_CONFIG
 
7586
 
 
7587
 
6942
7588
# _LT_LANG_RC_CONFIG([TAG])
6943
7589
# -------------------------
6944
7590
# Ensure that the configuration variables for the Windows resource compiler
6970
7616
 
6971
7617
# Allow CC to be a program name with arguments.
6972
7618
lt_save_CC="$CC"
 
7619
lt_save_CFLAGS=$CFLAGS
6973
7620
lt_save_GCC=$GCC
6974
7621
GCC=
6975
7622
CC=${RC-"windres"}
 
7623
CFLAGS=
6976
7624
compiler=$CC
6977
7625
_LT_TAGVAR(compiler, $1)=$CC
6978
7626
_LT_CC_BASENAME([$compiler])
6985
7633
 
6986
7634
GCC=$lt_save_GCC
6987
7635
AC_LANG_RESTORE
6988
 
CC="$lt_save_CC"
 
7636
CC=$lt_save_CC
 
7637
CFLAGS=$lt_save_CFLAGS
6989
7638
])# _LT_LANG_RC_CONFIG
6990
7639
 
6991
7640
 
7005
7654
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7006
7655
 
7007
7656
 
 
7657
# LT_PROG_GO
 
7658
# ----------
 
7659
AC_DEFUN([LT_PROG_GO],
 
7660
[AC_CHECK_TOOL(GOC, gccgo,)
 
7661
])
 
7662
 
 
7663
 
7008
7664
# LT_PROG_RC
7009
7665
# ----------
7010
7666
AC_DEFUN([LT_PROG_RC],
7044
7700
AC_SUBST([OBJDUMP])
7045
7701
])
7046
7702
 
 
7703
# _LT_DECL_DLLTOOL
 
7704
# ----------------
 
7705
# Ensure DLLTOOL variable is set.
 
7706
m4_defun([_LT_DECL_DLLTOOL],
 
7707
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7708
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7709
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
7710
AC_SUBST([DLLTOOL])
 
7711
])
7047
7712
 
7048
7713
# _LT_DECL_SED
7049
7714
# ------------
7135
7800
# Try some XSI features
7136
7801
xsi_shell=no
7137
7802
( _lt_dummy="a/b/c"
7138
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7139
 
      = c,a/b,, \
 
7803
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
7804
      = c,a/b,b/c, \
7140
7805
    && eval 'test $(( 1 + 1 )) -eq 2 \
7141
7806
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7142
7807
  && xsi_shell=yes
7175
7840
])# _LT_CHECK_SHELL_FEATURES
7176
7841
 
7177
7842
 
7178
 
# _LT_PROG_XSI_SHELLFNS
7179
 
# ---------------------
7180
 
# Bourne and XSI compatible variants of some useful shell functions.
7181
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7182
 
[case $xsi_shell in
7183
 
  yes)
7184
 
    cat << \_LT_EOF >> "$cfgfile"
7185
 
 
7186
 
# func_dirname file append nondir_replacement
7187
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7188
 
# otherwise set result to NONDIR_REPLACEMENT.
7189
 
func_dirname ()
7190
 
{
7191
 
  case ${1} in
7192
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7193
 
    *  ) func_dirname_result="${3}" ;;
7194
 
  esac
7195
 
}
7196
 
 
7197
 
# func_basename file
7198
 
func_basename ()
7199
 
{
7200
 
  func_basename_result="${1##*/}"
7201
 
}
7202
 
 
7203
 
# func_dirname_and_basename file append nondir_replacement
7204
 
# perform func_basename and func_dirname in a single function
7205
 
# call:
7206
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7207
 
#             add APPEND to the result, otherwise set result
7208
 
#             to NONDIR_REPLACEMENT.
7209
 
#             value returned in "$func_dirname_result"
7210
 
#   basename: Compute filename of FILE.
7211
 
#             value retuned in "$func_basename_result"
7212
 
# Implementation must be kept synchronized with func_dirname
7213
 
# and func_basename. For efficiency, we do not delegate to
7214
 
# those functions but instead duplicate the functionality here.
7215
 
func_dirname_and_basename ()
7216
 
{
7217
 
  case ${1} in
7218
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7219
 
    *  ) func_dirname_result="${3}" ;;
7220
 
  esac
7221
 
  func_basename_result="${1##*/}"
7222
 
}
7223
 
 
7224
 
# func_stripname prefix suffix name
7225
 
# strip PREFIX and SUFFIX off of NAME.
7226
 
# PREFIX and SUFFIX must not contain globbing or regex special
7227
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7228
 
# dot (in which case that matches only a dot).
7229
 
func_stripname ()
7230
 
{
7231
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7232
 
  # positional parameters, so assign one to ordinary parameter first.
7233
 
  func_stripname_result=${3}
7234
 
  func_stripname_result=${func_stripname_result#"${1}"}
7235
 
  func_stripname_result=${func_stripname_result%"${2}"}
7236
 
}
7237
 
 
7238
 
# func_opt_split
7239
 
func_opt_split ()
7240
 
{
7241
 
  func_opt_split_opt=${1%%=*}
7242
 
  func_opt_split_arg=${1#*=}
7243
 
}
7244
 
 
7245
 
# func_lo2o object
7246
 
func_lo2o ()
7247
 
{
7248
 
  case ${1} in
7249
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7250
 
    *)    func_lo2o_result=${1} ;;
7251
 
  esac
7252
 
}
7253
 
 
7254
 
# func_xform libobj-or-source
7255
 
func_xform ()
7256
 
{
7257
 
  func_xform_result=${1%.*}.lo
7258
 
}
7259
 
 
7260
 
# func_arith arithmetic-term...
7261
 
func_arith ()
7262
 
{
7263
 
  func_arith_result=$(( $[*] ))
7264
 
}
7265
 
 
7266
 
# func_len string
7267
 
# STRING may not start with a hyphen.
7268
 
func_len ()
7269
 
{
7270
 
  func_len_result=${#1}
7271
 
}
7272
 
 
7273
 
_LT_EOF
7274
 
    ;;
7275
 
  *) # Bourne compatible functions.
7276
 
    cat << \_LT_EOF >> "$cfgfile"
7277
 
 
7278
 
# func_dirname file append nondir_replacement
7279
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7280
 
# otherwise set result to NONDIR_REPLACEMENT.
7281
 
func_dirname ()
7282
 
{
7283
 
  # Extract subdirectory from the argument.
7284
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7285
 
  if test "X$func_dirname_result" = "X${1}"; then
7286
 
    func_dirname_result="${3}"
7287
 
  else
7288
 
    func_dirname_result="$func_dirname_result${2}"
7289
 
  fi
7290
 
}
7291
 
 
7292
 
# func_basename file
7293
 
func_basename ()
7294
 
{
7295
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7296
 
}
7297
 
 
7298
 
dnl func_dirname_and_basename
7299
 
dnl A portable version of this function is already defined in general.m4sh
7300
 
dnl so there is no need for it here.
7301
 
 
7302
 
# func_stripname prefix suffix name
7303
 
# strip PREFIX and SUFFIX off of NAME.
7304
 
# PREFIX and SUFFIX must not contain globbing or regex special
7305
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7306
 
# dot (in which case that matches only a dot).
7307
 
# func_strip_suffix prefix name
7308
 
func_stripname ()
7309
 
{
7310
 
  case ${2} in
7311
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7312
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7313
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7314
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7315
 
  esac
7316
 
}
7317
 
 
7318
 
# sed scripts:
7319
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7320
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7321
 
 
7322
 
# func_opt_split
7323
 
func_opt_split ()
7324
 
{
7325
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7326
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7327
 
}
7328
 
 
7329
 
# func_lo2o object
7330
 
func_lo2o ()
7331
 
{
7332
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7333
 
}
7334
 
 
7335
 
# func_xform libobj-or-source
7336
 
func_xform ()
7337
 
{
7338
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7339
 
}
7340
 
 
7341
 
# func_arith arithmetic-term...
7342
 
func_arith ()
7343
 
{
7344
 
  func_arith_result=`expr "$[@]"`
7345
 
}
7346
 
 
7347
 
# func_len string
7348
 
# STRING may not start with a hyphen.
7349
 
func_len ()
7350
 
{
7351
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7352
 
}
7353
 
 
7354
 
_LT_EOF
7355
 
esac
7356
 
 
7357
 
case $lt_shell_append in
7358
 
  yes)
7359
 
    cat << \_LT_EOF >> "$cfgfile"
7360
 
 
7361
 
# func_append var value
7362
 
# Append VALUE to the end of shell variable VAR.
7363
 
func_append ()
7364
 
{
7365
 
  eval "$[1]+=\$[2]"
7366
 
}
7367
 
_LT_EOF
7368
 
    ;;
7369
 
  *)
7370
 
    cat << \_LT_EOF >> "$cfgfile"
7371
 
 
7372
 
# func_append var value
7373
 
# Append VALUE to the end of shell variable VAR.
7374
 
func_append ()
7375
 
{
7376
 
  eval "$[1]=\$$[1]\$[2]"
7377
 
}
7378
 
 
7379
 
_LT_EOF
7380
 
    ;;
7381
 
  esac
7382
 
])
 
7843
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
7844
# ------------------------------------------------------
 
7845
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
7846
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
7847
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
7848
[dnl {
 
7849
sed -e '/^$1 ()$/,/^} # $1 /c\
 
7850
$1 ()\
 
7851
{\
 
7852
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
7853
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
7854
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7855
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7856
test 0 -eq $? || _lt_function_replace_fail=:
 
7857
])
 
7858
 
 
7859
 
 
7860
# _LT_PROG_REPLACE_SHELLFNS
 
7861
# -------------------------
 
7862
# Replace existing portable implementations of several shell functions with
 
7863
# equivalent extended shell implementations where those features are available..
 
7864
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
7865
[if test x"$xsi_shell" = xyes; then
 
7866
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
7867
    case ${1} in
 
7868
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7869
      *  ) func_dirname_result="${3}" ;;
 
7870
    esac])
 
7871
 
 
7872
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
7873
    func_basename_result="${1##*/}"])
 
7874
 
 
7875
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
7876
    case ${1} in
 
7877
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7878
      *  ) func_dirname_result="${3}" ;;
 
7879
    esac
 
7880
    func_basename_result="${1##*/}"])
 
7881
 
 
7882
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
7883
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7884
    # positional parameters, so assign one to ordinary parameter first.
 
7885
    func_stripname_result=${3}
 
7886
    func_stripname_result=${func_stripname_result#"${1}"}
 
7887
    func_stripname_result=${func_stripname_result%"${2}"}])
 
7888
 
 
7889
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
7890
    func_split_long_opt_name=${1%%=*}
 
7891
    func_split_long_opt_arg=${1#*=}])
 
7892
 
 
7893
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
7894
    func_split_short_opt_arg=${1#??}
 
7895
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
7896
 
 
7897
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
7898
    case ${1} in
 
7899
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7900
      *)    func_lo2o_result=${1} ;;
 
7901
    esac])
 
7902
 
 
7903
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
7904
 
 
7905
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
7906
 
 
7907
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
7908
fi
 
7909
 
 
7910
if test x"$lt_shell_append" = xyes; then
 
7911
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
7912
 
 
7913
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
7914
    func_quote_for_eval "${2}"
 
7915
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
7916
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
7917
 
 
7918
  # Save a `func_append' function call where possible by direct use of '+='
 
7919
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
7920
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7921
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7922
  test 0 -eq $? || _lt_function_replace_fail=:
 
7923
else
 
7924
  # Save a `func_append' function call even when '+=' is not available
 
7925
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
7926
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7927
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7928
  test 0 -eq $? || _lt_function_replace_fail=:
 
7929
fi
 
7930
 
 
7931
if test x"$_lt_function_replace_fail" = x":"; then
 
7932
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
7933
fi
 
7934
])
 
7935
 
 
7936
# _LT_PATH_CONVERSION_FUNCTIONS
 
7937
# -----------------------------
 
7938
# Determine which file name conversion functions should be used by
 
7939
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
7940
# for certain cross-compile configurations and native mingw.
 
7941
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
7942
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7943
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
7944
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
7945
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
7946
[case $host in
 
7947
  *-*-mingw* )
 
7948
    case $build in
 
7949
      *-*-mingw* ) # actually msys
 
7950
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
7951
        ;;
 
7952
      *-*-cygwin* )
 
7953
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
7954
        ;;
 
7955
      * ) # otherwise, assume *nix
 
7956
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
7957
        ;;
 
7958
    esac
 
7959
    ;;
 
7960
  *-*-cygwin* )
 
7961
    case $build in
 
7962
      *-*-mingw* ) # actually msys
 
7963
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
7964
        ;;
 
7965
      *-*-cygwin* )
 
7966
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
7967
        ;;
 
7968
      * ) # otherwise, assume *nix
 
7969
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
7970
        ;;
 
7971
    esac
 
7972
    ;;
 
7973
  * ) # unhandled hosts (and "normal" native builds)
 
7974
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
7975
    ;;
 
7976
esac
 
7977
])
 
7978
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
7979
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
7980
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
7981
         [0], [convert $build file names to $host format])dnl
 
7982
 
 
7983
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
7984
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
7985
[#assume ordinary cross tools, or native build.
 
7986
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
7987
case $host in
 
7988
  *-*-mingw* )
 
7989
    case $build in
 
7990
      *-*-mingw* ) # actually msys
 
7991
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
7992
        ;;
 
7993
    esac
 
7994
    ;;
 
7995
esac
 
7996
])
 
7997
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
7998
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
7999
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8000
         [0], [convert $build files to toolchain format])dnl
 
8001
])# _LT_PATH_CONVERSION_FUNCTIONS
7383
8002
 
7384
8003
# Helper functions for option handling.                    -*- Autoconf -*-
7385
8004
#
7386
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8005
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
8006
#   Inc.
7387
8007
#   Written by Gary V. Vaughan, 2004
7388
8008
#
7389
8009
# This file is free software; the Free Software Foundation gives
7390
8010
# unlimited permission to copy and/or distribute it, with or without
7391
8011
# modifications, as long as this notice is preserved.
7392
8012
 
7393
 
# serial 6 ltoptions.m4
 
8013
# serial 7 ltoptions.m4
7394
8014
 
7395
8015
# This is to help aclocal find these macros, as it can't see m4_define.
7396
8016
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7505
8125
[enable_win32_dll=yes
7506
8126
 
7507
8127
case $host in
7508
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8128
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7509
8129
  AC_CHECK_TOOL(AS, as, false)
7510
8130
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7511
8131
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7513
8133
esac
7514
8134
 
7515
8135
test -z "$AS" && AS=as
7516
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8136
_LT_DECL([], [AS],      [1], [Assembler program])dnl
7517
8137
 
7518
8138
test -z "$DLLTOOL" && DLLTOOL=dlltool
7519
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8139
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
7520
8140
 
7521
8141
test -z "$OBJDUMP" && OBJDUMP=objdump
7522
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8142
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7523
8143
])# win32-dll
7524
8144
 
7525
8145
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7705
8325
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
7706
8326
m4_define([_LT_WITH_PIC],
7707
8327
[AC_ARG_WITH([pic],
7708
 
    [AS_HELP_STRING([--with-pic],
 
8328
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
7709
8329
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7710
 
    [pic_mode="$withval"],
 
8330
    [lt_p=${PACKAGE-default}
 
8331
    case $withval in
 
8332
    yes|no) pic_mode=$withval ;;
 
8333
    *)
 
8334
      pic_mode=default
 
8335
      # Look at the argument we got.  We use all the common list separators.
 
8336
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8337
      for lt_pkg in $withval; do
 
8338
        IFS="$lt_save_ifs"
 
8339
        if test "X$lt_pkg" = "X$lt_p"; then
 
8340
          pic_mode=yes
 
8341
        fi
 
8342
      done
 
8343
      IFS="$lt_save_ifs"
 
8344
      ;;
 
8345
    esac],
7711
8346
    [pic_mode=default])
7712
8347
 
7713
8348
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7877
8512
# unlimited permission to copy and/or distribute it, with or without
7878
8513
# modifications, as long as this notice is preserved.
7879
8514
 
7880
 
# Generated from ltversion.in.
 
8515
# @configure_input@
7881
8516
 
7882
 
# serial 3017 ltversion.m4
 
8517
# serial 3337 ltversion.m4
7883
8518
# This file is part of GNU Libtool
7884
8519
 
7885
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7886
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
8520
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
8521
m4_define([LT_PACKAGE_REVISION], [1.3337])
7887
8522
 
7888
8523
AC_DEFUN([LTVERSION_VERSION],
7889
 
[macro_version='2.2.6b'
7890
 
macro_revision='1.3017'
 
8524
[macro_version='2.4.2'
 
8525
macro_revision='1.3337'
7891
8526
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7892
8527
_LT_DECL(, macro_revision, 0)
7893
8528
])
7894
8529
 
7895
8530
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
7896
8531
#
7897
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8532
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7898
8533
#   Written by Scott James Remnant, 2004.
7899
8534
#
7900
8535
# This file is free software; the Free Software Foundation gives
7901
8536
# unlimited permission to copy and/or distribute it, with or without
7902
8537
# modifications, as long as this notice is preserved.
7903
8538
 
7904
 
# serial 4 lt~obsolete.m4
 
8539
# serial 5 lt~obsolete.m4
7905
8540
 
7906
8541
# These exist entirely to fool aclocal when bootstrapping libtool.
7907
8542
#
7971
8606
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
7972
8607
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
7973
8608
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
7974
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
7975
8609
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7976
8610
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7977
8611
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7984
8618
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7985
8619
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7986
8620
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8621
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
8622
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
8623
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
8624
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
8625
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
8626
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
8627
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
7987
8628
 
7988
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
8629
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
8630
# Foundation, Inc.
7989
8631
#
7990
8632
# This file is free software; the Free Software Foundation
7991
8633
# gives unlimited permission to copy and/or distribute it,
7992
8634
# with or without modifications, as long as this notice is preserved.
7993
8635
 
 
8636
# serial 1
 
8637
 
7994
8638
# AM_AUTOMAKE_VERSION(VERSION)
7995
8639
# ----------------------------
7996
8640
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8000
8644
[am__api_version='1.11'
8001
8645
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8002
8646
dnl require some minimum version.  Point them to the right macro.
8003
 
m4_if([$1], [1.11.1], [],
 
8647
m4_if([$1], [1.11.5], [],
8004
8648
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8005
8649
])
8006
8650
 
8016
8660
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8017
8661
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8018
8662
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8019
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
8663
[AM_AUTOMAKE_VERSION([1.11.5])dnl
8020
8664
m4_ifndef([AC_AUTOCONF_VERSION],
8021
8665
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8022
8666
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8023
8667
 
8024
8668
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8025
8669
 
8026
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8670
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8027
8671
#
8028
8672
# This file is free software; the Free Software Foundation
8029
8673
# gives unlimited permission to copy and/or distribute it,
8030
8674
# with or without modifications, as long as this notice is preserved.
8031
8675
 
 
8676
# serial 1
 
8677
 
8032
8678
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8033
8679
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8034
8680
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8110
8756
Usually this means the macro was only invoked conditionally.]])
8111
8757
fi])])
8112
8758
 
8113
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8114
 
# Free Software Foundation, Inc.
 
8759
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
8760
# 2010, 2011 Free Software Foundation, Inc.
8115
8761
#
8116
8762
# This file is free software; the Free Software Foundation
8117
8763
# gives unlimited permission to copy and/or distribute it,
8118
8764
# with or without modifications, as long as this notice is preserved.
8119
8765
 
8120
 
# serial 10
 
8766
# serial 12
8121
8767
 
8122
8768
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8123
8769
# written in clear, in which case automake, when reading aclocal.m4,
8157
8803
  # instance it was reported that on HP-UX the gcc test will end up
8158
8804
  # making a dummy file named `D' -- because `-MD' means `put the output
8159
8805
  # in D'.
 
8806
  rm -rf conftest.dir
8160
8807
  mkdir conftest.dir
8161
8808
  # Copy depcomp to subdir because otherwise we won't find it if we're
8162
8809
  # using a relative directory.
8221
8868
        break
8222
8869
      fi
8223
8870
      ;;
8224
 
    msvisualcpp | msvcmsys)
 
8871
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8225
8872
      # This compiler won't grok `-c -o', but also, the minuso test has
8226
8873
      # not run yet.  These depmodes are late enough in the game, and
8227
8874
      # so weak that their functioning should not be impacted.
8286
8933
if test "x$enable_dependency_tracking" != xno; then
8287
8934
  am_depcomp="$ac_aux_dir/depcomp"
8288
8935
  AMDEPBACKSLASH='\'
 
8936
  am__nodep='_no'
8289
8937
fi
8290
8938
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8291
8939
AC_SUBST([AMDEPBACKSLASH])dnl
8292
8940
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
8941
AC_SUBST([am__nodep])dnl
 
8942
_AM_SUBST_NOTMAKE([am__nodep])dnl
8293
8943
])
8294
8944
 
8295
8945
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8511
9161
done
8512
9162
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8513
9163
 
8514
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9164
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
9165
# Inc.
8515
9166
#
8516
9167
# This file is free software; the Free Software Foundation
8517
9168
# gives unlimited permission to copy and/or distribute it,
8518
9169
# with or without modifications, as long as this notice is preserved.
8519
9170
 
 
9171
# serial 1
 
9172
 
8520
9173
# AM_PROG_INSTALL_SH
8521
9174
# ------------------
8522
9175
# Define $install_sh.
8556
9209
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
8557
9210
# From Jim Meyering
8558
9211
 
8559
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8560
 
# Free Software Foundation, Inc.
 
9212
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
9213
# 2011 Free Software Foundation, Inc.
8561
9214
#
8562
9215
# This file is free software; the Free Software Foundation
8563
9216
# gives unlimited permission to copy and/or distribute it,
8577
9230
       [disable], [m4_define([am_maintainer_other], [enable])],
8578
9231
       [m4_define([am_maintainer_other], [enable])
8579
9232
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
8580
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
9233
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8581
9234
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
8582
9235
  AC_ARG_ENABLE([maintainer-mode],
8583
9236
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
8688
9341
fi
8689
9342
])
8690
9343
 
8691
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
9344
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
9345
# Inc.
8692
9346
#
8693
9347
# This file is free software; the Free Software Foundation
8694
9348
# gives unlimited permission to copy and/or distribute it,
8695
9349
# with or without modifications, as long as this notice is preserved.
8696
9350
 
 
9351
# serial 1
 
9352
 
8697
9353
# AM_PROG_MKDIR_P
8698
9354
# ---------------
8699
9355
# Check for `mkdir -p'.
8716
9372
 
8717
9373
# Helper functions for option handling.                     -*- Autoconf -*-
8718
9374
 
8719
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9375
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
9376
# Foundation, Inc.
8720
9377
#
8721
9378
# This file is free software; the Free Software Foundation
8722
9379
# gives unlimited permission to copy and/or distribute it,
8723
9380
# with or without modifications, as long as this notice is preserved.
8724
9381
 
8725
 
# serial 4
 
9382
# serial 5
8726
9383
 
8727
9384
# _AM_MANGLE_OPTION(NAME)
8728
9385
# -----------------------
8730
9387
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8731
9388
 
8732
9389
# _AM_SET_OPTION(NAME)
8733
 
# ------------------------------
 
9390
# --------------------
8734
9391
# Set option NAME.  Presently that only means defining a flag for this option.
8735
9392
AC_DEFUN([_AM_SET_OPTION],
8736
9393
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8737
9394
 
8738
9395
# _AM_SET_OPTIONS(OPTIONS)
8739
 
# ----------------------------------
 
9396
# ------------------------
8740
9397
# OPTIONS is a space-separated list of Automake options.
8741
9398
AC_DEFUN([_AM_SET_OPTIONS],
8742
9399
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8812
9469
fi
8813
9470
AC_MSG_RESULT(yes)])
8814
9471
 
8815
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9472
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8816
9473
#
8817
9474
# This file is free software; the Free Software Foundation
8818
9475
# gives unlimited permission to copy and/or distribute it,
8819
9476
# with or without modifications, as long as this notice is preserved.
8820
9477
 
 
9478
# serial 1
 
9479
 
8821
9480
# AM_PROG_INSTALL_STRIP
8822
9481
# ---------------------
8823
9482
# One issue with vendor `install' (even GNU) is that you can't
8840
9499
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8841
9500
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8842
9501
 
8843
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
9502
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
8844
9503
#
8845
9504
# This file is free software; the Free Software Foundation
8846
9505
# gives unlimited permission to copy and/or distribute it,
8847
9506
# with or without modifications, as long as this notice is preserved.
8848
9507
 
8849
 
# serial 2
 
9508
# serial 3
8850
9509
 
8851
9510
# _AM_SUBST_NOTMAKE(VARIABLE)
8852
9511
# ---------------------------
8855
9514
AC_DEFUN([_AM_SUBST_NOTMAKE])
8856
9515
 
8857
9516
# AM_SUBST_NOTMAKE(VARIABLE)
8858
 
# ---------------------------
 
9517
# --------------------------
8859
9518
# Public sister of _AM_SUBST_NOTMAKE.
8860
9519
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
8861
9520
 
8862
9521
# Check how to create a tarball.                            -*- Autoconf -*-
8863
9522
 
8864
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
9523
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
8865
9524
#
8866
9525
# This file is free software; the Free Software Foundation
8867
9526
# gives unlimited permission to copy and/or distribute it,
8883
9542
# a tarball read from stdin.
8884
9543
#     $(am__untar) < result.tar
8885
9544
AC_DEFUN([_AM_PROG_TAR],
8886
 
[# Always define AMTAR for backward compatibility.
8887
 
AM_MISSING_PROG([AMTAR], [tar])
 
9545
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
9546
# in the wild :-(  We should find a proper way to deprecate it ...
 
9547
AC_SUBST([AMTAR], ['$${TAR-tar}'])
8888
9548
m4_if([$1], [v7],
8889
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
9549
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
8890
9550
     [m4_case([$1], [ustar],, [pax],,
8891
9551
              [m4_fatal([Unknown tar format])])
8892
9552
AC_MSG_CHECKING([how to create a $1 tar archive])