~ubuntu-branches/ubuntu/trusty/styx/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Frederik Schüler
  • Date: 2007-07-01 23:06:53 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070701230653-8tcr3ow0d49alwj2
Tags: 1.7.5-1
* New upstream version.
* Bump standard to 2.7.2, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl aclocal.m4 generated automatically by aclocal 1.4-p5
 
1
dnl aclocal.m4 generated automatically by aclocal 1.4-p6
2
2
 
3
3
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4
4
dnl This file is free software; the Free Software Foundation
10
10
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
11
dnl PARTICULAR PURPOSE.
12
12
 
13
 
# lib-prefix.m4 serial 3 (gettext-0.13)
14
 
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
15
 
dnl This file is free software, distributed under the terms of the GNU
16
 
dnl General Public License.  As a special exception to the GNU General
17
 
dnl Public License, this file may be distributed as part of a program
18
 
dnl that contains a configuration script generated by Autoconf, under
19
 
dnl the same distribution terms as the rest of that program.
 
13
# lib-prefix.m4 serial 5 (gettext-0.15)
 
14
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
 
15
dnl This file is free software; the Free Software Foundation
 
16
dnl gives unlimited permission to copy and/or distribute it,
 
17
dnl with or without modifications, as long as this notice is preserved.
20
18
 
21
19
dnl From Bruno Haible.
22
20
 
38
36
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
39
37
  AC_REQUIRE([AC_PROG_CC])
40
38
  AC_REQUIRE([AC_CANONICAL_HOST])
 
39
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
41
40
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
42
41
  dnl By default, look in $includedir and $libdir.
43
42
  use_additional=yes
59
58
        ])
60
59
      else
61
60
        additional_includedir="$withval/include"
62
 
        additional_libdir="$withval/lib"
 
61
        additional_libdir="$withval/$acl_libdirstem"
63
62
      fi
64
63
    fi
65
64
])
83
82
        if test "X$additional_includedir" = "X/usr/local/include"; then
84
83
          if test -n "$GCC"; then
85
84
            case $host_os in
86
 
              linux*) haveit=yes;;
 
85
              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
87
86
            esac
88
87
          fi
89
88
        fi
101
100
    dnl   2. if it's already present in $LDFLAGS,
102
101
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
103
102
    dnl   4. if it doesn't exist as a directory.
104
 
    if test "X$additional_libdir" != "X/usr/lib"; then
 
103
    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
105
104
      haveit=
106
105
      for x in $LDFLAGS; do
107
106
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
111
110
        fi
112
111
      done
113
112
      if test -z "$haveit"; then
114
 
        if test "X$additional_libdir" = "X/usr/local/lib"; then
 
113
        if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
115
114
          if test -n "$GCC"; then
116
115
            case $host_os in
117
116
              linux*) haveit=yes;;
166
165
  prefix="$acl_save_prefix"
167
166
])
168
167
 
169
 
# lib-link.m4 serial 4 (gettext-0.12)
170
 
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
171
 
dnl This file is free software, distributed under the terms of the GNU
172
 
dnl General Public License.  As a special exception to the GNU General
173
 
dnl Public License, this file may be distributed as part of a program
174
 
dnl that contains a configuration script generated by Autoconf, under
175
 
dnl the same distribution terms as the rest of that program.
 
168
dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
 
169
dnl the basename of the libdir, either "lib" or "lib64".
 
170
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
 
171
[
 
172
  dnl There is no formal standard regarding lib and lib64. The current
 
173
  dnl practice is that on a system supporting 32-bit and 64-bit instruction
 
174
  dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
 
175
  dnl libraries go under $prefix/lib. We determine the compiler's default
 
176
  dnl mode by looking at the compiler's library search path. If at least
 
177
  dnl of its elements ends in /lib64 or points to a directory whose absolute
 
178
  dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
 
179
  dnl default, namely "lib".
 
180
  acl_libdirstem=lib
 
181
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
182
  if test -n "$searchpath"; then
 
183
    acl_save_IFS="${IFS=        }"; IFS=":"
 
184
    for searchdir in $searchpath; do
 
185
      if test -d "$searchdir"; then
 
186
        case "$searchdir" in
 
187
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
188
          *) searchdir=`cd "$searchdir" && pwd`
 
189
             case "$searchdir" in
 
190
               */lib64 ) acl_libdirstem=lib64 ;;
 
191
             esac ;;
 
192
        esac
 
193
      fi
 
194
    done
 
195
    IFS="$acl_save_IFS"
 
196
  fi
 
197
])
 
198
 
 
199
# lib-link.m4 serial 9 (gettext-0.16)
 
200
dnl Copyright (C) 2001-2006 Free Software Foundation, Inc.
 
201
dnl This file is free software; the Free Software Foundation
 
202
dnl gives unlimited permission to copy and/or distribute it,
 
203
dnl with or without modifications, as long as this notice is preserved.
176
204
 
177
205
dnl From Bruno Haible.
178
206
 
 
207
AC_PREREQ(2.50)
 
208
 
179
209
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
180
210
dnl the libraries corresponding to explicit and implicit dependencies.
181
211
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
263
293
dnl hardcode_direct, hardcode_minus_L.
264
294
AC_DEFUN([AC_LIB_RPATH],
265
295
[
 
296
  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
 
297
  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
266
298
  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
267
299
  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
268
300
  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
292
324
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
293
325
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
294
326
[
 
327
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
295
328
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
296
329
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
297
330
  dnl By default, look in $includedir and $libdir.
314
347
        ])
315
348
      else
316
349
        additional_includedir="$withval/include"
317
 
        additional_libdir="$withval/lib"
 
350
        additional_libdir="$withval/$acl_libdirstem"
318
351
      fi
319
352
    fi
320
353
])
363
396
          found_so=
364
397
          found_a=
365
398
          if test $use_additional = yes; then
366
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
399
            if test -n "$shlibext" \
 
400
               && { test -f "$additional_libdir/lib$name.$shlibext" \
 
401
                    || { test "$shlibext" = dll \
 
402
                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
367
403
              found_dir="$additional_libdir"
368
 
              found_so="$additional_libdir/lib$name.$shlibext"
 
404
              if test -f "$additional_libdir/lib$name.$shlibext"; then
 
405
                found_so="$additional_libdir/lib$name.$shlibext"
 
406
              else
 
407
                found_so="$additional_libdir/lib$name.dll.a"
 
408
              fi
369
409
              if test -f "$additional_libdir/lib$name.la"; then
370
410
                found_la="$additional_libdir/lib$name.la"
371
411
              fi
385
425
              case "$x" in
386
426
                -L*)
387
427
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
388
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
428
                  if test -n "$shlibext" \
 
429
                     && { test -f "$dir/lib$name.$shlibext" \
 
430
                          || { test "$shlibext" = dll \
 
431
                               && test -f "$dir/lib$name.dll.a"; }; }; then
389
432
                    found_dir="$dir"
390
 
                    found_so="$dir/lib$name.$shlibext"
 
433
                    if test -f "$dir/lib$name.$shlibext"; then
 
434
                      found_so="$dir/lib$name.$shlibext"
 
435
                    else
 
436
                      found_so="$dir/lib$name.dll.a"
 
437
                    fi
391
438
                    if test -f "$dir/lib$name.la"; then
392
439
                      found_la="$dir/lib$name.la"
393
440
                    fi
414
461
              dnl Linking with a shared library. We attempt to hardcode its
415
462
              dnl directory into the executable's runpath, unless it's the
416
463
              dnl standard /usr/lib.
417
 
              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
464
              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
418
465
                dnl No hardcoding is needed.
419
466
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
420
467
              else
500
547
            dnl Assume the include files are nearby.
501
548
            additional_includedir=
502
549
            case "$found_dir" in
503
 
              */lib | */lib/)
504
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
550
              */$acl_libdirstem | */$acl_libdirstem/)
 
551
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
505
552
                additional_includedir="$basedir/include"
506
553
                ;;
507
554
            esac
518
565
                if test "X$additional_includedir" = "X/usr/local/include"; then
519
566
                  if test -n "$GCC"; then
520
567
                    case $host_os in
521
 
                      linux*) haveit=yes;;
 
568
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
522
569
                    esac
523
570
                  fi
524
571
                fi
562
609
                    dnl   3. if it's already present in $LDFLAGS or the already
563
610
                    dnl      constructed $LIBNAME,
564
611
                    dnl   4. if it doesn't exist as a directory.
565
 
                    if test "X$additional_libdir" != "X/usr/lib"; then
 
612
                    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
566
613
                      haveit=
567
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
614
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
568
615
                        if test -n "$GCC"; then
569
616
                          case $host_os in
570
 
                            linux*) haveit=yes;;
 
617
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
571
618
                          esac
572
619
                        fi
573
620
                      fi
718
765
  done
719
766
])
720
767
 
 
768
dnl For those cases where a variable contains several -L and -l options
 
769
dnl referring to unknown libraries and directories, this macro determines the
 
770
dnl necessary additional linker options for the runtime path.
 
771
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
 
772
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
 
773
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
 
774
dnl otherwise linking without libtool is assumed.
 
775
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
 
776
[
 
777
  AC_REQUIRE([AC_LIB_RPATH])
 
778
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 
779
  $1=
 
780
  if test "$enable_rpath" != no; then
 
781
    if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
782
      dnl Use an explicit option to hardcode directories into the resulting
 
783
      dnl binary.
 
784
      rpathdirs=
 
785
      next=
 
786
      for opt in $2; do
 
787
        if test -n "$next"; then
 
788
          dir="$next"
 
789
          dnl No need to hardcode the standard /usr/lib.
 
790
          if test "X$dir" != "X/usr/$acl_libdirstem"; then
 
791
            rpathdirs="$rpathdirs $dir"
 
792
          fi
 
793
          next=
 
794
        else
 
795
          case $opt in
 
796
            -L) next=yes ;;
 
797
            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
 
798
                 dnl No need to hardcode the standard /usr/lib.
 
799
                 if test "X$dir" != "X/usr/$acl_libdirstem"; then
 
800
                   rpathdirs="$rpathdirs $dir"
 
801
                 fi
 
802
                 next= ;;
 
803
            *) next= ;;
 
804
          esac
 
805
        fi
 
806
      done
 
807
      if test "X$rpathdirs" != "X"; then
 
808
        if test -n ""$3""; then
 
809
          dnl libtool is used for linking. Use -R options.
 
810
          for dir in $rpathdirs; do
 
811
            $1="${$1}${$1:+ }-R$dir"
 
812
          done
 
813
        else
 
814
          dnl The linker is used for linking directly.
 
815
          if test -n "$hardcode_libdir_separator"; then
 
816
            dnl Weird platform: only the last -rpath option counts, the user
 
817
            dnl must pass all path elements in one option.
 
818
            alldirs=
 
819
            for dir in $rpathdirs; do
 
820
              alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir"
 
821
            done
 
822
            acl_save_libdir="$libdir"
 
823
            libdir="$alldirs"
 
824
            eval flag=\"$hardcode_libdir_flag_spec\"
 
825
            libdir="$acl_save_libdir"
 
826
            $1="$flag"
 
827
          else
 
828
            dnl The -rpath options are cumulative.
 
829
            for dir in $rpathdirs; do
 
830
              acl_save_libdir="$libdir"
 
831
              libdir="$dir"
 
832
              eval flag=\"$hardcode_libdir_flag_spec\"
 
833
              libdir="$acl_save_libdir"
 
834
              $1="${$1}${$1:+ }$flag"
 
835
            done
 
836
          fi
 
837
        fi
 
838
      fi
 
839
    fi
 
840
  fi
 
841
  AC_SUBST([$1])
 
842
])
 
843
 
721
844
# lib-ld.m4 serial 3 (gettext-0.13)
722
845
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
723
 
dnl This file is free software, distributed under the terms of the GNU
724
 
dnl General Public License.  As a special exception to the GNU General
725
 
dnl Public License, this file may be distributed as part of a program
726
 
dnl that contains a configuration script generated by Autoconf, under
727
 
dnl the same distribution terms as the rest of that program.
 
846
dnl This file is free software; the Free Software Foundation
 
847
dnl gives unlimited permission to copy and/or distribute it,
 
848
dnl with or without modifications, as long as this notice is preserved.
728
849
 
729
850
dnl Subroutines of libtool.m4,
730
851
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
841
962
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
842
963
 
843
964
AC_DEFUN([AM_INIT_AUTOMAKE],
844
 
[AC_REQUIRE([AC_PROG_INSTALL])
 
965
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
966
AC_REQUIRE([AC_PROG_INSTALL])
845
967
PACKAGE=[$1]
846
968
AC_SUBST(PACKAGE)
847
969
VERSION=[$2]
857
979
AC_REQUIRE([AC_ARG_PROGRAM])
858
980
dnl FIXME This is truly gross.
859
981
missing_dir=`cd $ac_aux_dir && pwd`
860
 
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
 
982
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
861
983
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
862
 
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
 
984
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
863
985
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
864
986
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
865
987
AC_REQUIRE([AC_PROG_MAKE_SET])])
866
988
 
 
989
# Copyright 2002  Free Software Foundation, Inc.
 
990
 
 
991
# This program is free software; you can redistribute it and/or modify
 
992
# it under the terms of the GNU General Public License as published by
 
993
# the Free Software Foundation; either version 2, or (at your option)
 
994
# any later version.
 
995
 
 
996
# This program is distributed in the hope that it will be useful,
 
997
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
998
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
999
# GNU General Public License for more details.
 
1000
 
 
1001
# You should have received a copy of the GNU General Public License
 
1002
# along with this program; if not, write to the Free Software
 
1003
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
1004
 
 
1005
# AM_AUTOMAKE_VERSION(VERSION)
 
1006
# ----------------------------
 
1007
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
1008
# generated from the m4 files accompanying Automake X.Y.
 
1009
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
 
1010
 
 
1011
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
1012
# -------------------------------
 
1013
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
1014
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
1015
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
1016
         [AM_AUTOMAKE_VERSION([1.4-p6])])
 
1017
 
867
1018
#
868
1019
# Check to make sure that the build environment is sane.
869
1020
#
948
1099
 
949
1100
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
950
1101
 
951
 
# serial 47 AC_PROG_LIBTOOL
952
 
# Debian $Rev: 214 $
 
1102
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
953
1103
 
954
1104
 
955
1105
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1059
1209
 
1060
1210
# Sed substitution that helps us do robust quoting.  It backslashifies
1061
1211
# metacharacters that are still active within double-quoted strings.
1062
 
Xsed='sed -e s/^X//'
 
1212
Xsed='sed -e 1s/^X//'
1063
1213
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1064
1214
 
1065
1215
# Same as above, but do not quote variable references.
1079
1229
default_ofile=libtool
1080
1230
can_build_shared=yes
1081
1231
 
1082
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
1232
# All known linkers require a `.a' archive for static linking (except MSVC,
1083
1233
# which needs '.lib').
1084
1234
libext=a
1085
1235
ltmain="$ac_aux_dir/ltmain.sh"
1099
1249
test -z "$AS" && AS=as
1100
1250
test -z "$CC" && CC=cc
1101
1251
test -z "$LTCC" && LTCC=$CC
 
1252
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1102
1253
test -z "$DLLTOOL" && DLLTOOL=dlltool
1103
1254
test -z "$LD" && LD=ld
1104
1255
test -z "$LN_S" && LN_S="ln -s"
1118
1269
if test -n "$RANLIB"; then
1119
1270
  case $host_os in
1120
1271
  openbsd*)
1121
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
1272
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1122
1273
    ;;
1123
1274
  *)
1124
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
1275
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1125
1276
    ;;
1126
1277
  esac
1127
1278
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1128
1279
fi
1129
1280
 
 
1281
_LT_CC_BASENAME([$compiler])
 
1282
 
1130
1283
# Only perform the check for file, if the check method requires it
1131
1284
case $deplibs_check_method in
1132
1285
file_magic*)
1167
1320
# If no C compiler was specified, use CC.
1168
1321
LTCC=${LTCC-"$CC"}
1169
1322
 
 
1323
# If no C compiler flags were specified, use CFLAGS.
 
1324
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
1325
 
1170
1326
# Allow CC to be a program name with arguments.
1171
1327
compiler=$CC
1172
1328
])# _LT_AC_SYS_COMPILER
1173
1329
 
1174
1330
 
 
1331
# _LT_CC_BASENAME(CC)
 
1332
# -------------------
 
1333
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1334
AC_DEFUN([_LT_CC_BASENAME],
 
1335
[for cc_temp in $1""; do
 
1336
  case $cc_temp in
 
1337
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1338
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1339
    \-*) ;;
 
1340
    *) break;;
 
1341
  esac
 
1342
done
 
1343
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1344
])
 
1345
 
 
1346
 
 
1347
# _LT_COMPILER_BOILERPLATE
 
1348
# ------------------------
 
1349
# Check for compiler boilerplate output or warnings with
 
1350
# the simple compiler test code.
 
1351
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
1352
[ac_outfile=conftest.$ac_objext
 
1353
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1354
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1355
_lt_compiler_boilerplate=`cat conftest.err`
 
1356
$rm conftest*
 
1357
])# _LT_COMPILER_BOILERPLATE
 
1358
 
 
1359
 
 
1360
# _LT_LINKER_BOILERPLATE
 
1361
# ----------------------
 
1362
# Check for linker boilerplate output or warnings with
 
1363
# the simple link test code.
 
1364
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
1365
[ac_outfile=conftest.$ac_objext
 
1366
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
1367
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1368
_lt_linker_boilerplate=`cat conftest.err`
 
1369
$rm conftest*
 
1370
])# _LT_LINKER_BOILERPLATE
 
1371
 
 
1372
 
1175
1373
# _LT_AC_SYS_LIBPATH_AIX
1176
1374
# ----------------------
1177
1375
# Links a minimal program and checks the executable
1244
1442
 
1245
1443
# The HP-UX ksh and POSIX shell print the target directory to stdout
1246
1444
# if CDPATH is set.
1247
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
1445
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1248
1446
 
1249
1447
if test -z "$ECHO"; then
1250
1448
if test "X${echo_test_string+set}" != Xset; then
1251
1449
# find a string as large as possible, as long as the shell can cope with it
1252
1450
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1253
1451
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1254
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1255
 
       echo_test_string="`eval $cmd`" &&
 
1452
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
1453
       echo_test_string=`eval $cmd` &&
1256
1454
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1257
1455
    then
1258
1456
      break
1421
1619
  # Find out which ABI we are using.
1422
1620
  echo 'int i;' > conftest.$ac_ext
1423
1621
  if AC_TRY_EVAL(ac_compile); then
1424
 
    case "`/usr/bin/file conftest.o`" in
 
1622
    case `/usr/bin/file conftest.o` in
1425
1623
    *32-bit*)
1426
1624
      case $host in
1427
1625
        x86_64-*linux*)
1472
1670
    CFLAGS="$SAVE_CFLAGS"
1473
1671
  fi
1474
1672
  ;;
 
1673
sparc*-*solaris*)
 
1674
  # Find out which ABI we are using.
 
1675
  echo 'int i;' > conftest.$ac_ext
 
1676
  if AC_TRY_EVAL(ac_compile); then
 
1677
    case `/usr/bin/file conftest.o` in
 
1678
    *64-bit*)
 
1679
      case $lt_cv_prog_gnu_ld in
 
1680
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
1681
      *)    LD="${LD-ld} -64" ;;
 
1682
      esac
 
1683
      ;;
 
1684
    esac
 
1685
  fi
 
1686
  rm -rf conftest*
 
1687
  ;;
 
1688
 
1475
1689
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1476
1690
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1477
1691
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1503
1717
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1504
1718
   # The option is referenced via a variable to avoid confusing sed.
1505
1719
   lt_compile=`echo "$ac_compile" | $SED \
1506
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1720
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1507
1721
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1508
1722
   -e 's:$: $lt_compiler_flag:'`
1509
1723
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1513
1727
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1514
1728
   if (exit $ac_status) && test -s "$ac_outfile"; then
1515
1729
     # The compiler can only warn and ignore the option if not recognized
1516
 
     # So say no if there are warnings
1517
 
     if test ! -s conftest.err; then
 
1730
     # So say no if there are warnings other than the usual output.
 
1731
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1732
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
1733
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1518
1734
       $2=yes
1519
1735
     fi
1520
1736
   fi
1540
1756
   LDFLAGS="$LDFLAGS $3"
1541
1757
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1542
1758
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1543
 
     # The compiler can only warn and ignore the option if not recognized
 
1759
     # The linker can only warn and ignore the option if not recognized
1544
1760
     # So say no if there are warnings
1545
1761
     if test -s conftest.err; then
1546
1762
       # Append any errors to the config.log.
1547
1763
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
1764
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1765
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
1766
       if diff conftest.exp conftest.er2 >/dev/null; then
 
1767
         $2=yes
 
1768
       fi
1548
1769
     else
1549
1770
       $2=yes
1550
1771
     fi
1603
1824
    lt_cv_sys_max_cmd_len=8192;
1604
1825
    ;;
1605
1826
 
1606
 
 *)
 
1827
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
1828
    # This has been around since 386BSD, at least.  Likely further.
 
1829
    if test -x /sbin/sysctl; then
 
1830
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
1831
    elif test -x /usr/sbin/sysctl; then
 
1832
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
1833
    else
 
1834
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
1835
    fi
 
1836
    # And add a safety zone
 
1837
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1838
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1839
    ;;
 
1840
 
 
1841
  interix*)
 
1842
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
1843
    lt_cv_sys_max_cmd_len=196608
 
1844
    ;;
 
1845
 
 
1846
  osf*)
 
1847
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
1848
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
1849
    # nice to cause kernel panics so lets avoid the loop below.
 
1850
    # First set a reasonable default.
 
1851
    lt_cv_sys_max_cmd_len=16384
 
1852
    #
 
1853
    if test -x /sbin/sysconfig; then
 
1854
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
1855
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
1856
      esac
 
1857
    fi
 
1858
    ;;
 
1859
  sco3.2v5*)
 
1860
    lt_cv_sys_max_cmd_len=102400
 
1861
    ;;
 
1862
  sysv5* | sco5v6* | sysv4.2uw2*)
 
1863
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
1864
    if test -n "$kargmax"; then
 
1865
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
1866
    else
 
1867
      lt_cv_sys_max_cmd_len=32768
 
1868
    fi
 
1869
    ;;
 
1870
  *)
1607
1871
    # If test is not a shell built-in, we'll probably end up computing a
1608
1872
    # maximum length that is only half of the actual maximum length, but
1609
1873
    # we can't tell.
1610
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1874
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1875
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1611
1876
               = "XX$teststring") >/dev/null 2>&1 &&
1612
1877
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1613
1878
            lt_cv_sys_max_cmd_len=$new_result &&
1633
1898
 
1634
1899
 
1635
1900
# _LT_AC_CHECK_DLFCN
1636
 
# --------------------
 
1901
# ------------------
1637
1902
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1638
1903
[AC_CHECK_HEADERS(dlfcn.h)dnl
1639
1904
])# _LT_AC_CHECK_DLFCN
1641
1906
 
1642
1907
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1643
1908
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1644
 
# ------------------------------------------------------------------
 
1909
# ---------------------------------------------------------------------
1645
1910
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1646
1911
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1647
1912
if test "$cross_compiling" = yes; then :
1707
1972
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1708
1973
      /* dlclose (self); */
1709
1974
    }
 
1975
  else
 
1976
    puts (dlerror ());
1710
1977
 
1711
1978
    exit (status);
1712
1979
}]
1713
1980
EOF
1714
1981
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1715
 
    (./conftest; exit; ) 2>/dev/null
 
1982
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1716
1983
    lt_status=$?
1717
1984
    case x$lt_status in
1718
1985
      x$lt_dlno_uscore) $1 ;;
1719
1986
      x$lt_dlneed_uscore) $2 ;;
1720
 
      x$lt_unknown|x*) $3 ;;
 
1987
      x$lt_dlunknown|x*) $3 ;;
1721
1988
    esac
1722
1989
  else :
1723
1990
    # compilation failed
1729
1996
 
1730
1997
 
1731
1998
# AC_LIBTOOL_DLOPEN_SELF
1732
 
# -------------------
 
1999
# ----------------------
1733
2000
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1734
2001
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1735
2002
if test "x$enable_dlopen" != xyes; then
1800
2067
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1801
2068
 
1802
2069
    save_LDFLAGS="$LDFLAGS"
1803
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
2070
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1804
2071
 
1805
2072
    save_LIBS="$LIBS"
1806
2073
    LIBS="$lt_cv_dlopen_libs $LIBS"
1813
2080
    ])
1814
2081
 
1815
2082
    if test "x$lt_cv_dlopen_self" = xyes; then
1816
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
2083
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1817
2084
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1818
2085
          lt_cv_dlopen_self_static, [dnl
1819
2086
          _LT_AC_TRY_DLOPEN_SELF(
1861
2128
   # Note that $ac_compile itself does not contain backslashes and begins
1862
2129
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1863
2130
   lt_compile=`echo "$ac_compile" | $SED \
1864
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
2131
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1865
2132
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1866
2133
   -e 's:$: $lt_compiler_flag:'`
1867
2134
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1873
2140
   then
1874
2141
     # The compiler can only warn and ignore the option if not recognized
1875
2142
     # So say no if there are warnings
1876
 
     if test ! -s out/conftest.err; then
 
2143
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2144
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
2145
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1877
2146
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1878
2147
     fi
1879
2148
   fi
1880
 
   chmod u+w .
 
2149
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1881
2150
   $rm conftest*
1882
2151
   # SGI C++ compiler will create directory out/ii_files/ for
1883
2152
   # template instantiation
1941
2210
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1942
2211
_LT_AC_TAGVAR(hardcode_action, $1)=
1943
2212
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1944
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1945
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
2213
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
2214
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1946
2215
 
1947
2216
  # We can hardcode non-existant directories.
1948
2217
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2109
2378
  shlibpath_var=LIBRARY_PATH
2110
2379
  ;;
2111
2380
 
2112
 
bsdi4*)
 
2381
bsdi[[45]]*)
2113
2382
  version_type=linux
2114
2383
  need_version=no
2115
2384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2137
2406
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2138
2407
      dldir=$destdir/`dirname \$dlpath`~
2139
2408
      test -d \$dldir || mkdir -p \$dldir~
2140
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2409
      $install_prog $dir/$dlname \$dldir/$dlname~
 
2410
      chmod a+x \$dldir/$dlname'
2141
2411
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2142
2412
      dlpath=$dir/\$dldll~
2143
2413
       $rm \$dlpath'
2167
2437
      ;;
2168
2438
    pw32*)
2169
2439
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2170
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
2440
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2171
2441
      ;;
2172
2442
    esac
2173
2443
    ;;
2190
2460
  soname_spec='${libname}${release}${major}$shared_ext'
2191
2461
  shlibpath_overrides_runpath=yes
2192
2462
  shlibpath_var=DYLD_LIBRARY_PATH
2193
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
2463
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2194
2464
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2195
2465
  if test "$GCC" = yes; then
2196
2466
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2213
2483
  dynamic_linker=no
2214
2484
  ;;
2215
2485
 
2216
 
kfreebsd*-gnu)
2217
 
  version_type=linux
2218
 
  need_lib_prefix=no
2219
 
  need_version=no
2220
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2221
 
  soname_spec='${libname}${release}${shared_ext}$major'
2222
 
  shlibpath_var=LD_LIBRARY_PATH
2223
 
  shlibpath_overrides_runpath=no
2224
 
  hardcode_into_libs=yes
2225
 
  dynamic_linker='GNU ld.so'
2226
 
  ;;
2227
 
 
2228
 
freebsd*)
2229
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
2486
freebsd* | dragonfly*)
 
2487
  # DragonFly does not have aout.  When/if they implement a new
 
2488
  # versioning mechanism, adjust this.
 
2489
  if test -x /usr/bin/objformat; then
 
2490
    objformat=`/usr/bin/objformat`
 
2491
  else
 
2492
    case $host_os in
 
2493
    freebsd[[123]]*) objformat=aout ;;
 
2494
    *) objformat=elf ;;
 
2495
    esac
 
2496
  fi
2230
2497
  version_type=freebsd-$objformat
2231
2498
  case $version_type in
2232
2499
    freebsd-elf*)
2244
2511
  freebsd2*)
2245
2512
    shlibpath_overrides_runpath=yes
2246
2513
    ;;
2247
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
2514
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2248
2515
    shlibpath_overrides_runpath=yes
2249
2516
    hardcode_into_libs=yes
2250
2517
    ;;
2251
 
  *) # from 3.2 on
 
2518
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
2519
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2252
2520
    shlibpath_overrides_runpath=no
2253
2521
    hardcode_into_libs=yes
2254
2522
    ;;
 
2523
  freebsd*) # from 4.6 on
 
2524
    shlibpath_overrides_runpath=yes
 
2525
    hardcode_into_libs=yes
 
2526
    ;;
2255
2527
  esac
2256
2528
  ;;
2257
2529
 
2271
2543
  version_type=sunos
2272
2544
  need_lib_prefix=no
2273
2545
  need_version=no
2274
 
  case "$host_cpu" in
 
2546
  case $host_cpu in
2275
2547
  ia64*)
2276
2548
    shrext_cmds='.so'
2277
2549
    hardcode_into_libs=yes
2311
2583
  postinstall_cmds='chmod 555 $lib'
2312
2584
  ;;
2313
2585
 
 
2586
interix3*)
 
2587
  version_type=linux
 
2588
  need_lib_prefix=no
 
2589
  need_version=no
 
2590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2591
  soname_spec='${libname}${release}${shared_ext}$major'
 
2592
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
2593
  shlibpath_var=LD_LIBRARY_PATH
 
2594
  shlibpath_overrides_runpath=no
 
2595
  hardcode_into_libs=yes
 
2596
  ;;
 
2597
 
2314
2598
irix5* | irix6* | nonstopux*)
2315
2599
  case $host_os in
2316
2600
    nonstopux*) version_type=nonstopux ;;
2354
2638
  ;;
2355
2639
 
2356
2640
# This must be Linux ELF.
2357
 
linux*)
 
2641
linux* | k*bsd*-gnu)
2358
2642
  version_type=linux
2359
2643
  need_lib_prefix=no
2360
2644
  need_version=no
2370
2654
 
2371
2655
  # Append ld.so.conf contents to the search path
2372
2656
  if test -f /etc/ld.so.conf; then
2373
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
2657
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2374
2658
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2375
2659
  fi
2376
2660
 
2395
2679
  dynamic_linker='NetBSD ld.elf_so'
2396
2680
  ;;
2397
2681
 
2398
 
knetbsd*-gnu)
2399
 
  version_type=linux
2400
 
  need_lib_prefix=no
2401
 
  need_version=no
2402
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2403
 
  soname_spec='${libname}${release}${shared_ext}$major'
2404
 
  shlibpath_var=LD_LIBRARY_PATH
2405
 
  shlibpath_overrides_runpath=no
2406
 
  hardcode_into_libs=yes
2407
 
  dynamic_linker='GNU ld.so'
2408
 
  ;;
2409
 
 
2410
2682
netbsd*)
2411
2683
  version_type=sunos
2412
2684
  need_lib_prefix=no
2444
2716
 
2445
2717
openbsd*)
2446
2718
  version_type=sunos
 
2719
  sys_lib_dlsearch_path_spec="/usr/lib"
2447
2720
  need_lib_prefix=no
2448
 
  need_version=yes
 
2721
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
2722
  case $host_os in
 
2723
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
2724
    *)                         need_version=no  ;;
 
2725
  esac
2449
2726
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2450
2727
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2451
2728
  shlibpath_var=LD_LIBRARY_PATH
2483
2760
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2484
2761
  ;;
2485
2762
 
2486
 
sco3.2v5*)
2487
 
  version_type=osf
2488
 
  soname_spec='${libname}${release}${shared_ext}$major'
2489
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2490
 
  shlibpath_var=LD_LIBRARY_PATH
2491
 
  ;;
2492
 
 
2493
2763
solaris*)
2494
2764
  version_type=linux
2495
2765
  need_lib_prefix=no
2515
2785
  need_version=yes
2516
2786
  ;;
2517
2787
 
2518
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2788
sysv4 | sysv4.3*)
2519
2789
  version_type=linux
2520
2790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2521
2791
  soname_spec='${libname}${release}${shared_ext}$major'
2548
2818
  fi
2549
2819
  ;;
2550
2820
 
 
2821
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
2822
  version_type=freebsd-elf
 
2823
  need_lib_prefix=no
 
2824
  need_version=no
 
2825
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
2826
  soname_spec='${libname}${release}${shared_ext}$major'
 
2827
  shlibpath_var=LD_LIBRARY_PATH
 
2828
  hardcode_into_libs=yes
 
2829
  if test "$with_gnu_ld" = yes; then
 
2830
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
2831
    shlibpath_overrides_runpath=no
 
2832
  else
 
2833
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
2834
    shlibpath_overrides_runpath=yes
 
2835
    case $host_os in
 
2836
      sco3.2v5*)
 
2837
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
2838
        ;;
 
2839
    esac
 
2840
  fi
 
2841
  sys_lib_dlsearch_path_spec='/usr/lib'
 
2842
  ;;
 
2843
 
2551
2844
uts4*)
2552
2845
  version_type=linux
2553
2846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2561
2854
esac
2562
2855
AC_MSG_RESULT([$dynamic_linker])
2563
2856
test "$dynamic_linker" = no && can_build_shared=no
 
2857
 
 
2858
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
2859
if test "$GCC" = yes; then
 
2860
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
2861
fi
2564
2862
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2565
2863
 
2566
2864
 
2585
2883
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2586
2884
    fi
2587
2885
  fi
 
2886
  if test -z "$LTCFLAGS"; then
 
2887
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
2888
  fi
2588
2889
 
2589
2890
  # Extract list of available tagged configurations in $ofile.
2590
2891
  # Note that this assumes the entire list is on one line.
2611
2912
 
2612
2913
      case $tagname in
2613
2914
      CXX)
2614
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
2915
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2916
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2917
            (test "X$CXX" != "Xg++"))) ; then
2615
2918
          AC_LIBTOOL_LANG_CXX_CONFIG
2616
2919
        else
2617
2920
          tagname=""
2673
2976
 
2674
2977
# AC_LIBTOOL_WIN32_DLL
2675
2978
# --------------------
2676
 
# declare package support for building win32 dll's
 
2979
# declare package support for building win32 DLLs
2677
2980
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2678
2981
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2679
2982
])# AC_LIBTOOL_WIN32_DLL
2711
3014
 
2712
3015
# AC_DISABLE_SHARED
2713
3016
# -----------------
2714
 
#- set the default shared flag to --disable-shared
 
3017
# set the default shared flag to --disable-shared
2715
3018
AC_DEFUN([AC_DISABLE_SHARED],
2716
3019
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2717
3020
AC_ENABLE_SHARED(no)
2847
3150
      if test -n "$file_magic_test_file"; then
2848
3151
        case $deplibs_check_method in
2849
3152
        "file_magic "*)
2850
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
3153
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2851
3154
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2852
3155
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2853
3156
            $EGREP "$file_magic_regex" > /dev/null; then
2957
3260
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2958
3261
      lt_cv_path_LD="$ac_dir/$ac_prog"
2959
3262
      # Check to see if the program is GNU ld.  I'd rather use --version,
2960
 
      # but apparently some GNU ld's only accept -v.
 
3263
      # but apparently some variants of GNU ld only accept -v.
2961
3264
      # Break only if it was the GNU/non-GNU ld that we prefer.
2962
3265
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2963
3266
      *GNU* | *'with BFD'*)
2989
3292
AC_DEFUN([AC_PROG_LD_GNU],
2990
3293
[AC_REQUIRE([AC_PROG_EGREP])dnl
2991
3294
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2992
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3295
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2993
3296
case `$LD -v 2>&1 </dev/null` in
2994
3297
*GNU* | *'with BFD'*)
2995
3298
  lt_cv_prog_gnu_ld=yes
3016
3319
*) reload_flag=" $reload_flag" ;;
3017
3320
esac
3018
3321
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3322
case $host_os in
 
3323
  darwin*)
 
3324
    if test "$GCC" = yes; then
 
3325
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3326
    else
 
3327
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3328
    fi
 
3329
    ;;
 
3330
esac
3019
3331
])# AC_PROG_LD_RELOAD_FLAG
3020
3332
 
3021
3333
 
3049
3361
  lt_cv_deplibs_check_method=pass_all
3050
3362
  ;;
3051
3363
 
3052
 
bsdi4*)
 
3364
bsdi[[45]]*)
3053
3365
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3054
3366
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3055
3367
  lt_cv_file_magic_test_file=/shlib/libc.so
3072
3384
  lt_cv_deplibs_check_method=pass_all
3073
3385
  ;;
3074
3386
 
3075
 
freebsd* | kfreebsd*-gnu)
 
3387
freebsd* | dragonfly*)
3076
3388
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3077
3389
    case $host_cpu in
3078
3390
    i*86 )
3079
3391
      # Not sure whether the presence of OpenBSD here was a mistake.
3080
3392
      # Let's accept both of them until this is cleared up.
3081
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
3393
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3082
3394
      lt_cv_file_magic_cmd=/usr/bin/file
3083
3395
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3084
3396
      ;;
3094
3406
 
3095
3407
hpux10.20* | hpux11*)
3096
3408
  lt_cv_file_magic_cmd=/usr/bin/file
3097
 
  case "$host_cpu" in
 
3409
  case $host_cpu in
3098
3410
  ia64*)
3099
3411
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3100
3412
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3110
3422
  esac
3111
3423
  ;;
3112
3424
 
 
3425
interix3*)
 
3426
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3427
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
3428
  ;;
 
3429
 
3113
3430
irix5* | irix6* | nonstopux*)
3114
3431
  case $LD in
3115
3432
  *-32|*"-32 ") libmagic=32-bit;;
3121
3438
  ;;
3122
3439
 
3123
3440
# This must be Linux ELF.
3124
 
linux*)
 
3441
linux* | k*bsd*-gnu)
3125
3442
  lt_cv_deplibs_check_method=pass_all
3126
3443
  ;;
3127
3444
 
3128
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3445
netbsd* | netbsdelf*-gnu)
3129
3446
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3130
3447
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3131
3448
  else
3144
3461
  ;;
3145
3462
 
3146
3463
openbsd*)
3147
 
  lt_cv_file_magic_cmd=/usr/bin/file
3148
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3149
3464
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3150
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
3465
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3151
3466
  else
3152
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3467
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3153
3468
  fi
3154
3469
  ;;
3155
3470
 
3157
3472
  lt_cv_deplibs_check_method=pass_all
3158
3473
  ;;
3159
3474
 
3160
 
sco3.2v5*)
3161
 
  lt_cv_deplibs_check_method=pass_all
3162
 
  ;;
3163
 
 
3164
3475
solaris*)
3165
3476
  lt_cv_deplibs_check_method=pass_all
3166
3477
  ;;
3167
3478
 
3168
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3479
sysv4 | sysv4.3*)
3169
3480
  case $host_vendor in
3170
3481
  motorola)
3171
3482
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3186
3497
  siemens)
3187
3498
    lt_cv_deplibs_check_method=pass_all
3188
3499
    ;;
 
3500
  pc)
 
3501
    lt_cv_deplibs_check_method=pass_all
 
3502
    ;;
3189
3503
  esac
3190
3504
  ;;
3191
3505
 
3192
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
3506
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3193
3507
  lt_cv_deplibs_check_method=pass_all
3194
3508
  ;;
3195
3509
esac
3209
3523
  # Let the user override the test.
3210
3524
  lt_cv_path_NM="$NM"
3211
3525
else
3212
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3213
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3214
 
    IFS="$lt_save_ifs"
3215
 
    test -z "$ac_dir" && ac_dir=.
3216
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3217
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3218
 
      # Check to see if the nm accepts a BSD-compat flag.
3219
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3220
 
      #   nm: unknown option "B" ignored
3221
 
      # Tru64's nm complains that /dev/null is an invalid object file
3222
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3223
 
      */dev/null* | *'Invalid file or object type'*)
3224
 
        lt_cv_path_NM="$tmp_nm -B"
3225
 
        break
3226
 
        ;;
3227
 
      *)
3228
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3229
 
        */dev/null*)
3230
 
          lt_cv_path_NM="$tmp_nm -p"
 
3526
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3527
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
3528
    lt_nm_to_check="$lt_nm_to_check nm"
 
3529
  fi
 
3530
  for lt_tmp_nm in $lt_nm_to_check; do
 
3531
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3532
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3533
      IFS="$lt_save_ifs"
 
3534
      test -z "$ac_dir" && ac_dir=.
 
3535
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3536
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3537
        # Check to see if the nm accepts a BSD-compat flag.
 
3538
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3539
        #   nm: unknown option "B" ignored
 
3540
        # Tru64's nm complains that /dev/null is an invalid object file
 
3541
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3542
        */dev/null* | *'Invalid file or object type'*)
 
3543
          lt_cv_path_NM="$tmp_nm -B"
3231
3544
          break
3232
3545
          ;;
3233
3546
        *)
3234
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3235
 
          continue # so that we can try to find one that supports BSD flags
 
3547
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3548
          */dev/null*)
 
3549
            lt_cv_path_NM="$tmp_nm -p"
 
3550
            break
 
3551
            ;;
 
3552
          *)
 
3553
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3554
            continue # so that we can try to find one that supports BSD flags
 
3555
            ;;
 
3556
          esac
3236
3557
          ;;
3237
3558
        esac
3238
 
      esac
3239
 
    fi
 
3559
      fi
 
3560
    done
 
3561
    IFS="$lt_save_ifs"
3240
3562
  done
3241
 
  IFS="$lt_save_ifs"
3242
3563
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3243
3564
fi])
3244
3565
NM="$lt_cv_path_NM"
3270
3591
# -----------------------------------
3271
3592
# sets LIBLTDL to the link flags for the libltdl convenience library and
3272
3593
# LTDLINCL to the include flags for the libltdl header and adds
3273
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3274
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3275
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3276
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3277
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3278
 
# flat and you're not using automake, define top_builddir and
3279
 
# top_srcdir appropriately in the Makefiles.
 
3594
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3595
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3596
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3597
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3598
# (note the single quotes!).  If your package is not flat and you're not
 
3599
# using automake, define top_builddir and top_srcdir appropriately in
 
3600
# the Makefiles.
3280
3601
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3281
3602
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3282
3603
  case $enable_ltdl_convenience in
3295
3616
# -----------------------------------
3296
3617
# sets LIBLTDL to the link flags for the libltdl installable library and
3297
3618
# LTDLINCL to the include flags for the libltdl header and adds
3298
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3299
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3300
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
3301
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3302
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3303
 
# quotes!).  If your package is not flat and you're not using automake,
3304
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
3619
# --enable-ltdl-install to the configure arguments.  Note that
 
3620
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3621
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3622
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3623
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3624
# flat and you're not using automake, define top_builddir and top_srcdir
 
3625
# appropriately in the Makefiles.
3305
3626
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3306
3627
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3307
3628
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3339
3660
# ---------------
3340
3661
AC_DEFUN([_LT_AC_LANG_CXX],
3341
3662
[AC_REQUIRE([AC_PROG_CXX])
3342
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
3663
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3343
3664
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3344
3665
])# _LT_AC_LANG_CXX
3345
3666
 
 
3667
# _LT_AC_PROG_CXXCPP
 
3668
# ------------------
 
3669
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
3670
[
 
3671
AC_REQUIRE([AC_PROG_CXX])
 
3672
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3673
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3674
    (test "X$CXX" != "Xg++"))) ; then
 
3675
  AC_PROG_CXXCPP
 
3676
fi
 
3677
])# _LT_AC_PROG_CXXCPP
3346
3678
 
3347
3679
# AC_LIBTOOL_F77
3348
3680
# --------------
3382
3714
 
3383
3715
 
3384
3716
# AC_LIBTOOL_RC
3385
 
# --------------
 
3717
# -------------
3386
3718
# enable support for Windows resource files
3387
3719
AC_DEFUN([AC_LIBTOOL_RC],
3388
3720
[AC_REQUIRE([LT_AC_PROG_RC])
3415
3747
 
3416
3748
_LT_AC_SYS_COMPILER
3417
3749
 
3418
 
#
3419
 
# Check for any special shared library compilation flags.
3420
 
#
3421
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3422
 
if test "$GCC" = no; then
3423
 
  case $host_os in
3424
 
  sco3.2v5*)
3425
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3426
 
    ;;
3427
 
  esac
3428
 
fi
3429
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3430
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3431
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
3432
 
  else
3433
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3434
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3435
 
  fi
3436
 
fi
3437
 
 
3438
 
 
3439
 
#
3440
 
# Check to make sure the static flag actually works.
3441
 
#
3442
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3443
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3444
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3445
 
  [],
3446
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3447
 
 
 
3750
# save warnings/boilerplate of simple test code
 
3751
_LT_COMPILER_BOILERPLATE
 
3752
_LT_LINKER_BOILERPLATE
3448
3753
 
3449
3754
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3450
3755
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3454
3759
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3455
3760
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3456
3761
AC_LIBTOOL_SYS_LIB_STRIP
3457
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
3762
AC_LIBTOOL_DLOPEN_SELF
3458
3763
 
3459
 
# Report which librarie types wil actually be built
 
3764
# Report which library types will actually be built
3460
3765
AC_MSG_CHECKING([if libtool supports shared libraries])
3461
3766
AC_MSG_RESULT([$can_build_shared])
3462
3767
 
3465
3770
 
3466
3771
# On AIX, shared libraries and static libraries use the same namespace, and
3467
3772
# are all built from PIC.
3468
 
case "$host_os" in
 
3773
case $host_os in
3469
3774
aix3*)
3470
3775
  test "$enable_shared" = yes && enable_static=no
3471
3776
  if test -n "$RANLIB"; then
3478
3783
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3479
3784
    test "$enable_shared" = yes && enable_static=no
3480
3785
  fi
3481
 
  ;;
3482
 
  darwin* | rhapsody*)
3483
 
  if test "$GCC" = yes; then
3484
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3485
 
    case "$host_os" in
3486
 
    rhapsody* | darwin1.[[012]])
3487
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3488
 
      ;;
3489
 
    *) # Darwin 1.3 on
3490
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3491
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3492
 
      else
3493
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3494
 
          10.[[012]])
3495
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3496
 
            ;;
3497
 
          10.*)
3498
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3499
 
            ;;
3500
 
        esac
3501
 
      fi
3502
 
      ;;
3503
 
    esac
3504
 
    output_verbose_link_cmd='echo'
3505
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3506
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3507
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3508
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3509
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3510
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3511
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3512
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3513
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3514
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3515
 
  else
3516
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3517
 
  fi
3518
3786
    ;;
3519
3787
esac
3520
3788
AC_MSG_RESULT([$enable_shared])
3540
3808
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3541
3809
[AC_LANG_PUSH(C++)
3542
3810
AC_REQUIRE([AC_PROG_CXX])
3543
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
3811
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3544
3812
 
3545
3813
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3546
3814
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3552
3820
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3553
3821
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3554
3822
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3823
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3555
3824
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3556
3825
_LT_AC_TAGVAR(module_cmds, $1)=
3557
3826
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3569
3838
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3570
3839
 
3571
3840
# Source file extension for C++ test sources.
3572
 
ac_ext=cc
 
3841
ac_ext=cpp
3573
3842
 
3574
3843
# Object file extension for compiled C++ test sources.
3575
3844
objext=o
3579
3848
lt_simple_compile_test_code="int some_variable = 0;\n"
3580
3849
 
3581
3850
# Code to be used in simple link tests
3582
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
3851
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3583
3852
 
3584
3853
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3585
3854
_LT_AC_SYS_COMPILER
3586
3855
 
 
3856
# save warnings/boilerplate of simple test code
 
3857
_LT_COMPILER_BOILERPLATE
 
3858
_LT_LINKER_BOILERPLATE
 
3859
 
3587
3860
# Allow CC to be a program name with arguments.
3588
3861
lt_save_CC=$CC
3589
3862
lt_save_LD=$LD
3594
3867
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3595
3868
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3596
3869
else
3597
 
  unset lt_cv_prog_gnu_ld
 
3870
  $as_unset lt_cv_prog_gnu_ld
3598
3871
fi
3599
3872
if test -n "${lt_cv_path_LDCXX+set}"; then
3600
3873
  lt_cv_path_LD=$lt_cv_path_LDCXX
3601
3874
else
3602
 
  unset lt_cv_path_LD
 
3875
  $as_unset lt_cv_path_LD
3603
3876
fi
3604
3877
test -z "${LDCXX+set}" || LD=$LDCXX
3605
3878
CC=${CXX-"c++"}
3606
3879
compiler=$CC
3607
3880
_LT_AC_TAGVAR(compiler, $1)=$CC
3608
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3881
_LT_CC_BASENAME([$compiler])
3609
3882
 
3610
3883
# We don't want -fno-exception wen compiling C++ code, so set the
3611
3884
# no_builtin_flag separately
3694
3967
            ;;
3695
3968
          esac
3696
3969
        done
 
3970
        ;;
3697
3971
      esac
3698
3972
 
3699
3973
      exp_sym_flag='-bexport'
3712
3986
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3713
3987
 
3714
3988
    if test "$GXX" = yes; then
3715
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
3989
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3716
3990
      # We only want to do this on AIX 4.2 and lower, the check
3717
3991
      # below for broken collect2 doesn't work under 4.3+
3718
3992
        collect2name=`${CC} -print-prog-name=collect2`
3731
4005
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3732
4006
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3733
4007
        fi
 
4008
        ;;
3734
4009
      esac
3735
4010
      shared_flag='-shared'
 
4011
      if test "$aix_use_runtimelinking" = yes; then
 
4012
        shared_flag="$shared_flag "'${wl}-G'
 
4013
      fi
3736
4014
    else
3737
4015
      # not using gcc
3738
4016
      if test "$host_cpu" = ia64; then
3759
4037
      _LT_AC_SYS_LIBPATH_AIX
3760
4038
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3761
4039
 
3762
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
4040
      _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3763
4041
     else
3764
4042
      if test "$host_cpu" = ia64; then
3765
4043
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3766
4044
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3767
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
4045
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3768
4046
      else
3769
4047
        # Determine the default libpath from the value encoded in an empty executable.
3770
4048
        _LT_AC_SYS_LIBPATH_AIX
3773
4051
        # -berok will link without error, but may produce a broken library.
3774
4052
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3775
4053
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3776
 
        # -bexpall does not export symbols beginning with underscore (_)
3777
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3778
4054
        # Exported symbols can be pulled into shared objects from archives
3779
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
4055
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3780
4056
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3781
 
        # This is similar to how AIX traditionally builds it's shared libraries.
3782
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
4057
        # This is similar to how AIX traditionally builds its shared libraries.
 
4058
        _LT_AC_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'
3783
4059
      fi
3784
4060
    fi
3785
4061
    ;;
 
4062
 
 
4063
  beos*)
 
4064
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
4065
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4066
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
4067
      # support --undefined.  This deserves some investigation.  FIXME
 
4068
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4069
    else
 
4070
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4071
    fi
 
4072
    ;;
 
4073
 
3786
4074
  chorus*)
3787
4075
    case $cc_basename in
3788
4076
      *)
3801
4089
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3802
4090
 
3803
4091
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3804
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
4092
      _LT_AC_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'
3805
4093
      # If the export-symbols file already is a .def file (1st line
3806
4094
      # is EXPORTS), use it as is; otherwise, prepend...
3807
4095
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3810
4098
        echo EXPORTS > $output_objdir/$soname.def;
3811
4099
        cat $export_symbols >> $output_objdir/$soname.def;
3812
4100
      fi~
3813
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
4101
      $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'
3814
4102
    else
3815
4103
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3816
4104
    fi
3817
4105
  ;;
3818
 
 
3819
 
  darwin* | rhapsody*)
3820
 
  if test "$GXX" = yes; then
3821
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3822
 
    case "$host_os" in
3823
 
    rhapsody* | darwin1.[[012]])
3824
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3825
 
      ;;
3826
 
    *) # Darwin 1.3 on
3827
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3828
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3829
 
      else
3830
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3831
 
          10.[[012]])
3832
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3833
 
            ;;
3834
 
          10.*)
3835
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3836
 
            ;;
 
4106
      darwin* | rhapsody*)
 
4107
        case $host_os in
 
4108
        rhapsody* | darwin1.[[012]])
 
4109
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
4110
         ;;
 
4111
       *) # Darwin 1.3 on
 
4112
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
4113
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4114
         else
 
4115
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
4116
             10.[[012]])
 
4117
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4118
               ;;
 
4119
             10.*)
 
4120
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
4121
               ;;
 
4122
           esac
 
4123
         fi
 
4124
         ;;
3837
4125
        esac
3838
 
      fi
3839
 
      ;;
3840
 
    esac
3841
 
    lt_int_apple_cc_single_mod=no
3842
 
    output_verbose_link_cmd='echo'
3843
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3844
 
      lt_int_apple_cc_single_mod=yes
3845
 
    fi
3846
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3847
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3848
 
    else
3849
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3850
 
    fi
3851
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4126
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4127
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4128
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
4129
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4130
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
4131
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3852
4132
 
3853
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3854
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3855
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3856
 
    else
3857
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3858
 
    fi
3859
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3860
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3861
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3862
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3863
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3864
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3865
 
  else
3866
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3867
 
  fi
3868
 
    ;;
 
4133
    if test "$GXX" = yes ; then
 
4134
      lt_int_apple_cc_single_mod=no
 
4135
      output_verbose_link_cmd='echo'
 
4136
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
4137
       lt_int_apple_cc_single_mod=yes
 
4138
      fi
 
4139
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4140
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
4141
      else
 
4142
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
4143
        fi
 
4144
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4145
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4146
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4147
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4148
          else
 
4149
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4150
          fi
 
4151
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4152
      else
 
4153
      case $cc_basename in
 
4154
        xlc*)
 
4155
         output_verbose_link_cmd='echo'
 
4156
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
4157
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4158
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4159
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4160
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4161
          ;;
 
4162
       *)
 
4163
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4164
          ;;
 
4165
      esac
 
4166
      fi
 
4167
        ;;
3869
4168
 
3870
4169
  dgux*)
3871
4170
    case $cc_basename in
3872
 
      ec++)
 
4171
      ec++*)
3873
4172
        # FIXME: insert proper C++ library support
3874
4173
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3875
4174
        ;;
3876
 
      ghcx)
 
4175
      ghcx*)
3877
4176
        # Green Hills C++ Compiler
3878
4177
        # FIXME: insert proper C++ library support
3879
4178
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3884
4183
        ;;
3885
4184
    esac
3886
4185
    ;;
3887
 
  freebsd[12]*)
 
4186
  freebsd[[12]]*)
3888
4187
    # C++ shared libraries reported to be fairly broken before switch to ELF
3889
4188
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3890
4189
    ;;
3891
4190
  freebsd-elf*)
3892
4191
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3893
4192
    ;;
3894
 
  freebsd* | kfreebsd*-gnu)
 
4193
  freebsd* | dragonfly*)
3895
4194
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3896
4195
    # conventions
3897
4196
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3908
4207
                                # location of the library.
3909
4208
 
3910
4209
    case $cc_basename in
3911
 
    CC)
 
4210
    CC*)
3912
4211
      # FIXME: insert proper C++ library support
3913
4212
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3914
4213
      ;;
3915
 
    aCC)
 
4214
    aCC*)
3916
4215
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${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'
3917
4216
      # Commands to make compiler produce verbose output that lists
3918
4217
      # what "hidden" libraries, object files and flags are used when
3922
4221
      # explicitly linking system object files so we need to strip them
3923
4222
      # from the output so that they don't get included in the library
3924
4223
      # dependencies.
3925
 
      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 $list'
 
4224
      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 $list'
3926
4225
      ;;
3927
4226
    *)
3928
4227
      if test "$GXX" = yes; then
3936
4235
    ;;
3937
4236
  hpux10*|hpux11*)
3938
4237
    if test $with_gnu_ld = no; then
3939
 
      case "$host_cpu" in
3940
 
      hppa*64*)
3941
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4238
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4239
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4240
 
 
4241
      case $host_cpu in
 
4242
      hppa*64*|ia64*)
3942
4243
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3943
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3944
 
        ;;
3945
 
      ia64*)
3946
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3947
4244
        ;;
3948
4245
      *)
3949
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3950
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3951
4246
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3952
4247
        ;;
3953
4248
      esac
3954
4249
    fi
3955
 
    case "$host_cpu" in
3956
 
    hppa*64*)
3957
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3958
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3959
 
      ;;
3960
 
    ia64*)
3961
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3962
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3963
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3964
 
                                              # but as the default
3965
 
                                              # location of the library.
 
4250
    case $host_cpu in
 
4251
    hppa*64*|ia64*)
 
4252
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4253
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3966
4254
      ;;
3967
4255
    *)
3968
4256
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3973
4261
    esac
3974
4262
 
3975
4263
    case $cc_basename in
3976
 
      CC)
 
4264
      CC*)
3977
4265
        # FIXME: insert proper C++ library support
3978
4266
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3979
4267
        ;;
3980
 
      aCC)
3981
 
        case "$host_cpu" in
3982
 
        hppa*64*|ia64*)
3983
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
4268
      aCC*)
 
4269
        case $host_cpu in
 
4270
        hppa*64*)
 
4271
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4272
          ;;
 
4273
        ia64*)
 
4274
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3984
4275
          ;;
3985
4276
        *)
3986
4277
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3999
4290
      *)
4000
4291
        if test "$GXX" = yes; then
4001
4292
          if test $with_gnu_ld = no; then
4002
 
            case "$host_cpu" in
4003
 
            ia64*|hppa*64*)
4004
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
4293
            case $host_cpu in
 
4294
            hppa*64*)
 
4295
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4296
              ;;
 
4297
            ia64*)
 
4298
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4005
4299
              ;;
4006
4300
            *)
4007
4301
              _LT_AC_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'
4015
4309
        ;;
4016
4310
    esac
4017
4311
    ;;
 
4312
  interix3*)
 
4313
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4314
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4315
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4316
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4317
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
4318
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
4319
    # default) and relocated if they conflict, which is a slow very memory
 
4320
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
4321
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
4322
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
4323
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
4324
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
4325
    ;;
4018
4326
  irix5* | irix6*)
4019
4327
    case $cc_basename in
4020
 
      CC)
 
4328
      CC*)
4021
4329
        # SGI C++
4022
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4330
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4023
4331
 
4024
4332
        # Archives containing C++ object files must be created using
4025
4333
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4030
4338
      *)
4031
4339
        if test "$GXX" = yes; then
4032
4340
          if test "$with_gnu_ld" = no; then
4033
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4341
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4034
4342
          else
4035
4343
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4036
4344
          fi
4041
4349
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4042
4350
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4043
4351
    ;;
4044
 
  linux*)
 
4352
  linux* | k*bsd*-gnu)
4045
4353
    case $cc_basename in
4046
 
      KCC)
 
4354
      KCC*)
4047
4355
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4048
4356
 
4049
4357
        # KCC will only create a shared library if the output file
4068
4376
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4069
4377
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4070
4378
        ;;
4071
 
      icpc)
 
4379
      icpc*)
4072
4380
        # Intel C++
4073
4381
        with_gnu_ld=yes
 
4382
        # version 8.0 and above of icpc choke on multiply defined symbols
 
4383
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
4384
        # earlier do not add the objects themselves.
 
4385
        case `$CC -V 2>&1` in
 
4386
        *"Version 7."*)
 
4387
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4388
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4389
          ;;
 
4390
        *)  # Version 8.0 or newer
 
4391
          tmp_idyn=
 
4392
          case $host_cpu in
 
4393
            ia64*) tmp_idyn=' -i_dynamic';;
 
4394
          esac
 
4395
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4396
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4397
          ;;
 
4398
        esac
4074
4399
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4075
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4076
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4077
4400
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4078
4401
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4079
4402
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4080
4403
        ;;
4081
 
      cxx)
 
4404
      pgCC*)
 
4405
        # Portland Group C++ compiler
 
4406
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4407
        _LT_AC_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'
 
4408
 
 
4409
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4410
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4411
        _LT_AC_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'
 
4412
        ;;
 
4413
      cxx*)
4082
4414
        # Compaq C++
4083
4415
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4084
4416
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4109
4441
    ;;
4110
4442
  mvs*)
4111
4443
    case $cc_basename in
4112
 
      cxx)
 
4444
      cxx*)
4113
4445
        # FIXME: insert proper C++ library support
4114
4446
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4115
4447
        ;;
4119
4451
        ;;
4120
4452
    esac
4121
4453
    ;;
4122
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
4454
  netbsd* | netbsdelf*-gnu)
4123
4455
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4124
4456
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4125
4457
      wlarc=
4130
4462
    # Workaround some broken pre-1.5 toolchains
4131
4463
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4132
4464
    ;;
 
4465
  openbsd2*)
 
4466
    # C++ shared libraries are fairly broken
 
4467
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4468
    ;;
 
4469
  openbsd*)
 
4470
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4471
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4472
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4473
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4474
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4475
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
4476
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4477
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4478
    fi
 
4479
    output_verbose_link_cmd='echo'
 
4480
    ;;
4133
4481
  osf3*)
4134
4482
    case $cc_basename in
4135
 
      KCC)
 
4483
      KCC*)
4136
4484
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4137
4485
 
4138
4486
        # KCC will only create a shared library if the output file
4148
4496
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4149
4497
 
4150
4498
        ;;
4151
 
      RCC)
 
4499
      RCC*)
4152
4500
        # Rational C++ 2.4.1
4153
4501
        # FIXME: insert proper C++ library support
4154
4502
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4155
4503
        ;;
4156
 
      cxx)
 
4504
      cxx*)
4157
4505
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4158
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4506
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4159
4507
 
4160
4508
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4161
4509
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4173
4521
      *)
4174
4522
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4175
4523
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4176
 
          _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4524
          _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4177
4525
 
4178
4526
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4179
4527
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4192
4540
    ;;
4193
4541
  osf4* | osf5*)
4194
4542
    case $cc_basename in
4195
 
      KCC)
 
4543
      KCC*)
4196
4544
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4197
4545
 
4198
4546
        # KCC will only create a shared library if the output file
4207
4555
        # the KAI C++ compiler.
4208
4556
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4209
4557
        ;;
4210
 
      RCC)
 
4558
      RCC*)
4211
4559
        # Rational C++ 2.4.1
4212
4560
        # FIXME: insert proper C++ library support
4213
4561
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4214
4562
        ;;
4215
 
      cxx)
 
4563
      cxx*)
4216
4564
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4217
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4565
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4218
4566
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4219
4567
          echo "-hidden">> $lib.exp~
4220
 
          $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 $objdir/so_locations -o $lib~
 
4568
          $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~
4221
4569
          $rm $lib.exp'
4222
4570
 
4223
4571
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4236
4584
      *)
4237
4585
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4238
4586
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4239
 
         _LT_AC_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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4587
         _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4240
4588
 
4241
4589
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4242
4590
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4257
4605
    # FIXME: insert proper C++ library support
4258
4606
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4259
4607
    ;;
4260
 
  sco*)
4261
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4262
 
    case $cc_basename in
4263
 
      CC)
4264
 
        # FIXME: insert proper C++ library support
4265
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4266
 
        ;;
4267
 
      *)
4268
 
        # FIXME: insert proper C++ library support
4269
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4270
 
        ;;
4271
 
    esac
4272
 
    ;;
4273
4608
  sunos4*)
4274
4609
    case $cc_basename in
4275
 
      CC)
 
4610
      CC*)
4276
4611
        # Sun C++ 4.x
4277
4612
        # FIXME: insert proper C++ library support
4278
4613
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4279
4614
        ;;
4280
 
      lcc)
 
4615
      lcc*)
4281
4616
        # Lucid
4282
4617
        # FIXME: insert proper C++ library support
4283
4618
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4290
4625
    ;;
4291
4626
  solaris*)
4292
4627
    case $cc_basename in
4293
 
      CC)
 
4628
      CC*)
4294
4629
        # Sun C++ 4.2, 5.x and Centerline C++
 
4630
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4295
4631
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4296
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4632
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4297
4633
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4298
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4634
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4299
4635
 
4300
4636
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4301
4637
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4302
4638
        case $host_os in
4303
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
4639
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4304
4640
          *)
4305
4641
            # The C++ compiler is used as linker so we must use $wl
4306
4642
            # flag to pass the commands to the underlying system
4307
 
            # linker.
 
4643
            # linker. We must also pass each convience library through
 
4644
            # to the system linker between allextract/defaultextract.
 
4645
            # The C++ compiler will combine linker options so we
 
4646
            # cannot just pass the convience library names through
 
4647
            # without $wl.
4308
4648
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4309
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4649
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4310
4650
            ;;
4311
4651
        esac
4312
4652
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4313
4653
 
4314
 
        # Commands to make compiler produce verbose output that lists
4315
 
        # what "hidden" libraries, object files and flags are used when
4316
 
        # linking a shared library.
4317
 
        #
4318
 
        # There doesn't appear to be a way to prevent this compiler from
4319
 
        # explicitly linking system object files so we need to strip them
4320
 
        # from the output so that they don't get included in the library
4321
 
        # dependencies.
4322
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4654
        output_verbose_link_cmd='echo'
4323
4655
 
4324
4656
        # Archives containing C++ object files must be created using
4325
4657
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4327
4659
        # in the archive.
4328
4660
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4329
4661
        ;;
4330
 
      gcx)
 
4662
      gcx*)
4331
4663
        # Green Hills C++ Compiler
4332
4664
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4333
4665
 
4365
4697
        ;;
4366
4698
    esac
4367
4699
    ;;
4368
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4369
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4700
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
4701
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4702
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4703
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4704
    runpath_var='LD_RUN_PATH'
 
4705
 
 
4706
    case $cc_basename in
 
4707
      CC*)
 
4708
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4709
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4710
        ;;
 
4711
      *)
 
4712
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4713
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4714
        ;;
 
4715
    esac
 
4716
    ;;
 
4717
  sysv5* | sco3.2v5* | sco5v6*)
 
4718
    # Note: We can NOT use -z defs as we might desire, because we do not
 
4719
    # link with -lc, and that would cause any symbols used from libc to
 
4720
    # always be unresolved, which means just about no library would
 
4721
    # ever link correctly.  If we're not using GNU ld we use -z text
 
4722
    # though, which does catch some bad symbols but isn't as heavy-handed
 
4723
    # as -z defs.
 
4724
    # For security reasons, it is highly recommended that you always
 
4725
    # use absolute paths for naming shared libraries, and exclude the
 
4726
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
4727
    # requires that you compile everything twice, which is a pain.
 
4728
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
4729
    # non-empty value in the environment.  Most likely only useful for
 
4730
    # creating official distributions of packages.
 
4731
    # This is a hack until libtool officially supports absolute path
 
4732
    # names for shared libraries.
 
4733
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4734
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
4735
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4736
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4737
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
4738
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4739
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4740
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
4741
    runpath_var='LD_RUN_PATH'
 
4742
 
 
4743
    case $cc_basename in
 
4744
      CC*)
 
4745
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4746
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4747
        ;;
 
4748
      *)
 
4749
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4750
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4751
        ;;
 
4752
    esac
4370
4753
    ;;
4371
4754
  tandem*)
4372
4755
    case $cc_basename in
4373
 
      NCC)
 
4756
      NCC*)
4374
4757
        # NonStop-UX NCC 3.20
4375
4758
        # FIXME: insert proper C++ library support
4376
4759
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4403
4786
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4404
4787
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4405
4788
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4406
 
AC_LIBTOOL_SYS_LIB_STRIP
4407
 
AC_LIBTOOL_DLOPEN_SELF($1)
4408
4789
 
4409
4790
AC_LIBTOOL_CONFIG($1)
4410
4791
 
4422
4803
])# AC_LIBTOOL_LANG_CXX_CONFIG
4423
4804
 
4424
4805
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4425
 
# ------------------------
 
4806
# ------------------------------------
4426
4807
# Figure out "hidden" library dependencies from verbose
4427
4808
# compiler output when linking a shared library.
4428
4809
# Parse the compiler output and extract the necessary
4476
4857
  # The `*' in the case matches for architectures that use `case' in
4477
4858
  # $output_verbose_cmd can trigger glob expansion during the loop
4478
4859
  # eval without this substitution.
4479
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
4860
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4480
4861
 
4481
4862
  for p in `eval $output_verbose_link_cmd`; do
4482
4863
    case $p in
4552
4933
 
4553
4934
$rm -f confest.$objext
4554
4935
 
 
4936
# PORTME: override above test on systems where it is broken
 
4937
ifelse([$1],[CXX],
 
4938
[case $host_os in
 
4939
interix3*)
 
4940
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
4941
  # hack all around it, let's just trust "g++" to DTRT.
 
4942
  _LT_AC_TAGVAR(predep_objects,$1)=
 
4943
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
4944
  _LT_AC_TAGVAR(postdeps,$1)=
 
4945
  ;;
 
4946
 
 
4947
solaris*)
 
4948
  case $cc_basename in
 
4949
  CC*)
 
4950
    # Adding this requires a known-good setup of shared libraries for
 
4951
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4952
    # archive will be linked into the output, leading to subtle bugs.
 
4953
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4954
    ;;
 
4955
  esac
 
4956
  ;;
 
4957
esac
 
4958
])
 
4959
 
4555
4960
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4556
4961
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4557
4962
esac
4558
4963
])# AC_LIBTOOL_POSTDEP_PREDEP
4559
4964
 
4560
4965
# AC_LIBTOOL_LANG_F77_CONFIG
4561
 
# ------------------------
 
4966
# --------------------------
4562
4967
# Ensure that the configuration vars for the C compiler are
4563
4968
# suitably defined.  Those variables are subsequently used by
4564
4969
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4602
5007
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4603
5008
_LT_AC_SYS_COMPILER
4604
5009
 
 
5010
# save warnings/boilerplate of simple test code
 
5011
_LT_COMPILER_BOILERPLATE
 
5012
_LT_LINKER_BOILERPLATE
 
5013
 
4605
5014
# Allow CC to be a program name with arguments.
4606
5015
lt_save_CC="$CC"
4607
5016
CC=${F77-"f77"}
4608
5017
compiler=$CC
4609
5018
_LT_AC_TAGVAR(compiler, $1)=$CC
4610
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
5019
_LT_CC_BASENAME([$compiler])
4611
5020
 
4612
5021
AC_MSG_CHECKING([if libtool supports shared libraries])
4613
5022
AC_MSG_RESULT([$can_build_shared])
4617
5026
 
4618
5027
# On AIX, shared libraries and static libraries use the same namespace, and
4619
5028
# are all built from PIC.
4620
 
case "$host_os" in
 
5029
case $host_os in
4621
5030
aix3*)
4622
5031
  test "$enable_shared" = yes && enable_static=no
4623
5032
  if test -n "$RANLIB"; then
4626
5035
  fi
4627
5036
  ;;
4628
5037
aix4* | aix5*)
4629
 
  test "$enable_shared" = yes && enable_static=no
 
5038
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5039
    test "$enable_shared" = yes && enable_static=no
 
5040
  fi
4630
5041
  ;;
4631
5042
esac
4632
5043
AC_MSG_RESULT([$enable_shared])
4636
5047
test "$enable_shared" = yes || enable_static=yes
4637
5048
AC_MSG_RESULT([$enable_static])
4638
5049
 
4639
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4640
 
 
4641
5050
_LT_AC_TAGVAR(GCC, $1)="$G77"
4642
5051
_LT_AC_TAGVAR(LD, $1)="$LD"
4643
5052
 
4647
5056
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4648
5057
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4649
5058
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4650
 
AC_LIBTOOL_SYS_LIB_STRIP
4651
 
 
4652
5059
 
4653
5060
AC_LIBTOOL_CONFIG($1)
4654
5061
 
4677
5084
lt_simple_compile_test_code="class foo {}\n"
4678
5085
 
4679
5086
# Code to be used in simple link tests
4680
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
5087
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4681
5088
 
4682
5089
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4683
5090
_LT_AC_SYS_COMPILER
4684
5091
 
 
5092
# save warnings/boilerplate of simple test code
 
5093
_LT_COMPILER_BOILERPLATE
 
5094
_LT_LINKER_BOILERPLATE
 
5095
 
4685
5096
# Allow CC to be a program name with arguments.
4686
5097
lt_save_CC="$CC"
4687
5098
CC=${GCJ-"gcj"}
4688
5099
compiler=$CC
4689
5100
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5101
_LT_CC_BASENAME([$compiler])
4690
5102
 
4691
5103
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4692
5104
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4693
5105
 
 
5106
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5107
 
4694
5108
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4695
5109
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4696
5110
AC_LIBTOOL_PROG_CC_C_O($1)
4698
5112
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4699
5113
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4700
5114
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4701
 
AC_LIBTOOL_SYS_LIB_STRIP
4702
 
AC_LIBTOOL_DLOPEN_SELF($1)
4703
5115
 
4704
5116
AC_LIBTOOL_CONFIG($1)
4705
5117
 
4709
5121
 
4710
5122
 
4711
5123
# AC_LIBTOOL_LANG_RC_CONFIG
4712
 
# --------------------------
 
5124
# -------------------------
4713
5125
# Ensure that the configuration vars for the Windows resource compiler are
4714
5126
# suitably defined.  Those variables are subsequently used by
4715
5127
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4733
5145
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4734
5146
_LT_AC_SYS_COMPILER
4735
5147
 
 
5148
# save warnings/boilerplate of simple test code
 
5149
_LT_COMPILER_BOILERPLATE
 
5150
_LT_LINKER_BOILERPLATE
 
5151
 
4736
5152
# Allow CC to be a program name with arguments.
4737
5153
lt_save_CC="$CC"
4738
5154
CC=${RC-"windres"}
4739
5155
compiler=$CC
4740
5156
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5157
_LT_CC_BASENAME([$compiler])
4741
5158
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4742
5159
 
4743
5160
AC_LIBTOOL_CONFIG($1)
4767
5184
  # Now quote all the things that may contain metacharacters while being
4768
5185
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4769
5186
  # variables and quote the copies for generation of the libtool script.
4770
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
5187
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4771
5188
    SED SHELL STRIP \
4772
5189
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4773
5190
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4873
5290
#
4874
5291
# You should have received a copy of the GNU General Public License
4875
5292
# along with this program; if not, write to the Free Software
4876
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
5293
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4877
5294
#
4878
5295
# As a special exception to the GNU General Public License, if you
4879
5296
# distribute this file as part of a program that contains a
4884
5301
SED=$lt_SED
4885
5302
 
4886
5303
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4887
 
Xsed="$SED -e s/^X//"
 
5304
Xsed="$SED -e 1s/^X//"
4888
5305
 
4889
5306
# The HP-UX ksh and POSIX shell print the target directory to stdout
4890
5307
# if CDPATH is set.
4891
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
5308
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4892
5309
 
4893
5310
# The names of the tagged configurations supported by this script.
4894
5311
available_tags=
4919
5336
# The host system.
4920
5337
host_alias=$host_alias
4921
5338
host=$host
 
5339
host_os=$host_os
 
5340
 
 
5341
# The build system.
 
5342
build_alias=$build_alias
 
5343
build=$build
 
5344
build_os=$build_os
4922
5345
 
4923
5346
# An echo program that does not interpret backslashes.
4924
5347
echo=$lt_echo
4930
5353
# A C compiler.
4931
5354
LTCC=$lt_LTCC
4932
5355
 
 
5356
# LTCC compiler flags.
 
5357
LTCFLAGS=$lt_LTCFLAGS
 
5358
 
4933
5359
# A language-specific compiler.
4934
5360
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4935
5361
 
4995
5421
# Does compiler simultaneously support -c and -o options?
4996
5422
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4997
5423
 
4998
 
# Must we lock files when doing compilation ?
 
5424
# Must we lock files when doing compilation?
4999
5425
need_locks=$lt_need_locks
5000
5426
 
5001
5427
# Do we need the lib prefix for modules?
5269
5695
# Regexp to match symbols that can be accessed directly from C.
5270
5696
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5271
5697
 
5272
 
# Transform the above into a raw symbol and a C symbol.
5273
 
symxfrm='\1 \2\3 \3'
5274
 
 
5275
5698
# Transform an extracted symbol line into a proper C declaration
5276
5699
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5277
5700
 
5293
5716
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5294
5717
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5295
5718
  ;;
 
5719
linux* | k*bsd*-gnu)
 
5720
  if test "$host_cpu" = ia64; then
 
5721
    symcode='[[ABCDGIRSTW]]'
 
5722
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5723
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5724
  fi
 
5725
  ;;
5296
5726
irix* | nonstopux*)
5297
5727
  symcode='[[BCDEGRST]]'
5298
5728
  ;;
5299
5729
osf*)
5300
5730
  symcode='[[BCDEGQRST]]'
5301
5731
  ;;
5302
 
solaris* | sysv5*)
 
5732
solaris*)
5303
5733
  symcode='[[BDRT]]'
5304
5734
  ;;
 
5735
sco3.2v5*)
 
5736
  symcode='[[DT]]'
 
5737
  ;;
 
5738
sysv4.2uw2*)
 
5739
  symcode='[[DT]]'
 
5740
  ;;
 
5741
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5742
  symcode='[[ABDT]]'
 
5743
  ;;
5305
5744
sysv4)
5306
5745
  symcode='[[DFNSTU]]'
5307
5746
  ;;
5324
5763
# Try without a prefix undercore, then with it.
5325
5764
for ac_symprfx in "" "_"; do
5326
5765
 
 
5766
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5767
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5768
 
5327
5769
  # Write the raw and C identifiers.
5328
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5770
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5329
5771
 
5330
5772
  # Check to see that the pipe works correctly.
5331
5773
  pipe_works=no
5481
5923
      # DJGPP does not support shared libraries at all
5482
5924
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5483
5925
      ;;
 
5926
    interix3*)
 
5927
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5928
      # Instead, we relocate shared libraries at runtime.
 
5929
      ;;
5484
5930
    sysv4*MP*)
5485
5931
      if test -d /usr/nec; then
5486
5932
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5489
5935
    hpux*)
5490
5936
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5491
5937
      # not for PA HP-UX.
5492
 
      case "$host_cpu" in
 
5938
      case $host_cpu in
5493
5939
      hppa*64*|ia64*)
5494
5940
        ;;
5495
5941
      *)
5514
5960
        ;;
5515
5961
      chorus*)
5516
5962
        case $cc_basename in
5517
 
        cxch68)
 
5963
        cxch68*)
5518
5964
          # Green Hills C++ Compiler
5519
5965
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5520
5966
          ;;
5521
5967
        esac
5522
5968
        ;;
 
5969
       darwin*)
 
5970
         # PIC is the default on this platform
 
5971
         # Common symbols not allowed in MH_DYLIB files
 
5972
         case $cc_basename in
 
5973
           xlc*)
 
5974
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5975
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5976
           ;;
 
5977
         esac
 
5978
       ;;
5523
5979
      dgux*)
5524
5980
        case $cc_basename in
5525
 
          ec++)
 
5981
          ec++*)
5526
5982
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5527
5983
            ;;
5528
 
          ghcx)
 
5984
          ghcx*)
5529
5985
            # Green Hills C++ Compiler
5530
5986
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5531
5987
            ;;
5533
5989
            ;;
5534
5990
        esac
5535
5991
        ;;
5536
 
      freebsd* | kfreebsd*-gnu)
 
5992
      freebsd* | dragonfly*)
5537
5993
        # FreeBSD uses GNU C++
5538
5994
        ;;
5539
5995
      hpux9* | hpux10* | hpux11*)
5540
5996
        case $cc_basename in
5541
 
          CC)
 
5997
          CC*)
5542
5998
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5543
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5999
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5544
6000
            if test "$host_cpu" != ia64; then
5545
6001
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5546
6002
            fi
5547
6003
            ;;
5548
 
          aCC)
 
6004
          aCC*)
5549
6005
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5550
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5551
 
            case "$host_cpu" in
 
6006
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6007
            case $host_cpu in
5552
6008
            hppa*64*|ia64*)
5553
6009
              # +Z the default
5554
6010
              ;;
5561
6017
            ;;
5562
6018
        esac
5563
6019
        ;;
 
6020
      interix*)
 
6021
        # This is c89, which is MS Visual C++ (no shared libs)
 
6022
        # Anyone wants to do a port?
 
6023
        ;;
5564
6024
      irix5* | irix6* | nonstopux*)
5565
6025
        case $cc_basename in
5566
 
          CC)
 
6026
          CC*)
5567
6027
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5568
6028
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5569
6029
            # CC pic flag -KPIC is the default.
5572
6032
            ;;
5573
6033
        esac
5574
6034
        ;;
5575
 
      linux*)
 
6035
      linux* | k*bsd*-gnu)
5576
6036
        case $cc_basename in
5577
 
          KCC)
 
6037
          KCC*)
5578
6038
            # KAI C++ Compiler
5579
6039
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5580
6040
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5581
6041
            ;;
5582
 
          icpc)
 
6042
          icpc* | ecpc*)
5583
6043
            # Intel C++
5584
6044
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5585
6045
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5586
6046
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5587
6047
            ;;
5588
 
          cxx)
 
6048
          pgCC*)
 
6049
            # Portland Group C++ compiler.
 
6050
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6051
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6052
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6053
            ;;
 
6054
          cxx*)
5589
6055
            # Compaq C++
5590
6056
            # Make sure the PIC flag is empty.  It appears that all Alpha
5591
6057
            # Linux and Compaq Tru64 Unix objects are PIC.
5602
6068
        ;;
5603
6069
      mvs*)
5604
6070
        case $cc_basename in
5605
 
          cxx)
 
6071
          cxx*)
5606
6072
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5607
6073
            ;;
5608
6074
          *)
5609
6075
            ;;
5610
6076
        esac
5611
6077
        ;;
5612
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6078
      netbsd* | netbsdelf*-gnu)
5613
6079
        ;;
5614
6080
      osf3* | osf4* | osf5*)
5615
6081
        case $cc_basename in
5616
 
          KCC)
 
6082
          KCC*)
5617
6083
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5618
6084
            ;;
5619
 
          RCC)
 
6085
          RCC*)
5620
6086
            # Rational C++ 2.4.1
5621
6087
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5622
6088
            ;;
5623
 
          cxx)
 
6089
          cxx*)
5624
6090
            # Digital/Compaq C++
5625
6091
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5626
6092
            # Make sure the PIC flag is empty.  It appears that all Alpha
5634
6100
        ;;
5635
6101
      psos*)
5636
6102
        ;;
5637
 
      sco*)
5638
 
        case $cc_basename in
5639
 
          CC)
5640
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5641
 
            ;;
5642
 
          *)
5643
 
            ;;
5644
 
        esac
5645
 
        ;;
5646
6103
      solaris*)
5647
6104
        case $cc_basename in
5648
 
          CC)
 
6105
          CC*)
5649
6106
            # Sun C++ 4.2, 5.x and Centerline C++
5650
6107
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5651
6108
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5652
6109
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5653
6110
            ;;
5654
 
          gcx)
 
6111
          gcx*)
5655
6112
            # Green Hills C++ Compiler
5656
6113
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5657
6114
            ;;
5661
6118
        ;;
5662
6119
      sunos4*)
5663
6120
        case $cc_basename in
5664
 
          CC)
 
6121
          CC*)
5665
6122
            # Sun C++ 4.x
5666
6123
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5667
6124
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5668
6125
            ;;
5669
 
          lcc)
 
6126
          lcc*)
5670
6127
            # Lucid
5671
6128
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5672
6129
            ;;
5676
6133
        ;;
5677
6134
      tandem*)
5678
6135
        case $cc_basename in
5679
 
          NCC)
 
6136
          NCC*)
5680
6137
            # NonStop-UX NCC 3.20
5681
6138
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5682
6139
            ;;
5684
6141
            ;;
5685
6142
        esac
5686
6143
        ;;
5687
 
      unixware*)
 
6144
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6145
        case $cc_basename in
 
6146
          CC*)
 
6147
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6148
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6149
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6150
            ;;
 
6151
        esac
5688
6152
        ;;
5689
6153
      vxworks*)
5690
6154
        ;;
5731
6195
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5732
6196
      ;;
5733
6197
 
 
6198
    interix3*)
 
6199
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6200
      # Instead, we relocate shared libraries at runtime.
 
6201
      ;;
 
6202
 
5734
6203
    msdosdjgpp*)
5735
6204
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5736
6205
      # on systems that don't support them.
5747
6216
    hpux*)
5748
6217
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5749
6218
      # not for PA HP-UX.
5750
 
      case "$host_cpu" in
 
6219
      case $host_cpu in
5751
6220
      hppa*64*|ia64*)
5752
6221
        # +Z the default
5753
6222
        ;;
5773
6242
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5774
6243
      fi
5775
6244
      ;;
 
6245
      darwin*)
 
6246
        # PIC is the default on this platform
 
6247
        # Common symbols not allowed in MH_DYLIB files
 
6248
       case $cc_basename in
 
6249
         xlc*)
 
6250
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6251
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6252
         ;;
 
6253
       esac
 
6254
       ;;
5776
6255
 
5777
6256
    mingw* | pw32* | os2*)
5778
6257
      # This hack is so that the source file can tell whether it is being
5784
6263
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5785
6264
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5786
6265
      # not for PA HP-UX.
5787
 
      case "$host_cpu" in
 
6266
      case $host_cpu in
5788
6267
      hppa*64*|ia64*)
5789
6268
        # +Z the default
5790
6269
        ;;
5807
6286
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5808
6287
      ;;
5809
6288
 
5810
 
    linux*)
5811
 
      case $CC in
 
6289
    linux* | k*bsd*-gnu)
 
6290
      case $cc_basename in
5812
6291
      icc* | ecc*)
5813
6292
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5814
6293
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5815
6294
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5816
6295
        ;;
 
6296
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6297
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6298
        # which looks to be a dead project)
 
6299
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6300
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6301
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6302
        ;;
5817
6303
      ccc*)
5818
6304
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5819
6305
        # All Alpha code is PIC.
5828
6314
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5829
6315
      ;;
5830
6316
 
5831
 
    sco3.2v5*)
5832
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5833
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5834
 
      ;;
5835
 
 
5836
6317
    solaris*)
5837
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5838
6318
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5839
6319
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6320
      case $cc_basename in
 
6321
      f77* | f90* | f95*)
 
6322
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6323
      *)
 
6324
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6325
      esac
5840
6326
      ;;
5841
6327
 
5842
6328
    sunos4*)
5845
6331
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5846
6332
      ;;
5847
6333
 
5848
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6334
    sysv4 | sysv4.2uw2* | sysv4.3*)
5849
6335
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5850
6336
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5851
6337
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5858
6344
      fi
5859
6345
      ;;
5860
6346
 
 
6347
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6348
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6349
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6350
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6351
      ;;
 
6352
 
 
6353
    unicos*)
 
6354
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6355
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6356
      ;;
 
6357
 
5861
6358
    uts4*)
5862
6359
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5863
6360
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5885
6382
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5886
6383
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5887
6384
fi
5888
 
case "$host_os" in
 
6385
case $host_os in
5889
6386
  # For platforms which do not support PIC, -DPIC is meaningless:
5890
6387
  *djgpp*)
5891
6388
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5894
6391
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5895
6392
    ;;
5896
6393
esac
 
6394
 
 
6395
#
 
6396
# Check to make sure the static flag actually works.
 
6397
#
 
6398
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
6399
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
6400
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6401
  $lt_tmp_static_flag,
 
6402
  [],
 
6403
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5897
6404
])
5898
6405
 
5899
6406
 
5918
6425
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5919
6426
  ;;
5920
6427
  cygwin* | mingw*)
5921
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6428
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5922
6429
  ;;
5923
 
  linux*)
 
6430
  linux* | k*bsd*-gnu)
5924
6431
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5925
6432
  ;;
5926
6433
  *)
5964
6471
  # rely on this symbol name, it's probably fine to never include it in
5965
6472
  # preloaded symbol tables.
5966
6473
  extract_expsyms_cmds=
5967
 
 
 
6474
  # Just being paranoid about ensuring that cc_basename is set.
 
6475
  _LT_CC_BASENAME([$compiler])
5968
6476
  case $host_os in
5969
6477
  cygwin* | mingw* | pw32*)
5970
6478
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5974
6482
      with_gnu_ld=no
5975
6483
    fi
5976
6484
    ;;
 
6485
  interix*)
 
6486
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6487
    with_gnu_ld=yes
 
6488
    ;;
5977
6489
  openbsd*)
5978
6490
    with_gnu_ld=no
5979
6491
    ;;
5984
6496
    # If archive_cmds runs LD, not CC, wlarc should be empty
5985
6497
    wlarc='${wl}'
5986
6498
 
 
6499
    # Set some defaults for GNU ld with shared library support. These
 
6500
    # are reset later if shared libraries are not supported. Putting them
 
6501
    # here allows them to be overridden if necessary.
 
6502
    runpath_var=LD_RUN_PATH
 
6503
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6504
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6505
    # ancient GNU ld didn't support --whole-archive et. al.
 
6506
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6507
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6508
      else
 
6509
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6510
    fi
 
6511
    supports_anon_versioning=no
 
6512
    case `$LD -v 2>/dev/null` in
 
6513
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6514
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6515
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6516
      *\ 2.11.*) ;; # other 2.11 versions
 
6517
      *) supports_anon_versioning=yes ;;
 
6518
    esac
 
6519
 
5987
6520
    # See if GNU ld supports shared libraries.
5988
6521
    case $host_os in
5989
6522
    aix3* | aix4* | aix5*)
6034
6567
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6035
6568
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6036
6569
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6037
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6570
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6038
6571
 
6039
6572
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6040
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6573
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6041
6574
        # If the export-symbols file already is a .def file (1st line
6042
6575
        # is EXPORTS), use it as is; otherwise, prepend...
6043
6576
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6046
6579
          echo EXPORTS > $output_objdir/$soname.def;
6047
6580
          cat $export_symbols >> $output_objdir/$soname.def;
6048
6581
        fi~
6049
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6050
 
      else
6051
 
        ld_shlibs=no
6052
 
      fi
6053
 
      ;;
6054
 
 
6055
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6582
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6583
      else
 
6584
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6585
      fi
 
6586
      ;;
 
6587
 
 
6588
    interix3*)
 
6589
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6590
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6591
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6592
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6593
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6594
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6595
      # default) and relocated if they conflict, which is a slow very memory
 
6596
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6597
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6598
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6599
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6600
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6601
      ;;
 
6602
 
 
6603
    linux* | k*bsd*-gnu)
 
6604
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6605
        tmp_addflag=
 
6606
        case $cc_basename,$host_cpu in
 
6607
        pgcc*)                          # Portland Group C compiler
 
6608
          _LT_AC_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'
 
6609
          tmp_addflag=' $pic_flag'
 
6610
          ;;
 
6611
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6612
          _LT_AC_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'
 
6613
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6614
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6615
          tmp_addflag=' -i_dynamic' ;;
 
6616
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6617
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6618
        ifc* | ifort*)                  # Intel Fortran compiler
 
6619
          tmp_addflag=' -nofor_main' ;;
 
6620
        esac
 
6621
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6622
 
 
6623
        if test $supports_anon_versioning = yes; then
 
6624
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6625
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6626
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6627
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6628
        fi
 
6629
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
6630
      else
 
6631
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6632
      fi
 
6633
      ;;
 
6634
 
 
6635
    netbsd* | netbsdelf*-gnu)
6056
6636
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6057
6637
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6058
6638
        wlarc=
6062
6642
      fi
6063
6643
      ;;
6064
6644
 
6065
 
    solaris* | sysv5*)
 
6645
    solaris*)
6066
6646
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6067
6647
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6068
6648
        cat <<EOF 1>&2
6083
6663
      fi
6084
6664
      ;;
6085
6665
 
 
6666
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
6667
      case `$LD -v 2>&1` in
 
6668
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6669
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6670
        cat <<_LT_EOF 1>&2
 
6671
 
 
6672
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
6673
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
6674
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6675
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
6676
*** your PATH or compiler configuration so that the native linker is
 
6677
*** used, and then restart.
 
6678
 
 
6679
_LT_EOF
 
6680
        ;;
 
6681
        *)
 
6682
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6683
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
6684
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
6685
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
6686
          else
 
6687
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6688
          fi
 
6689
        ;;
 
6690
      esac
 
6691
      ;;
 
6692
 
6086
6693
    sunos4*)
6087
6694
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6088
6695
      wlarc=
6090
6697
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6091
6698
      ;;
6092
6699
 
6093
 
  linux*)
6094
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6095
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6096
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6097
 
      supports_anon_versioning=no
6098
 
      case `$LD -v 2>/dev/null` in
6099
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6100
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6101
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6102
 
        *\ 2.11.*) ;; # other 2.11 versions
6103
 
        *) supports_anon_versioning=yes ;;
6104
 
      esac
6105
 
      if test $supports_anon_versioning = yes; then
6106
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6107
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6108
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6109
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6110
 
      else
6111
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6112
 
      fi
6113
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6114
 
    else
6115
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6116
 
    fi
6117
 
    ;;
6118
 
 
6119
6700
    *)
6120
6701
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6121
6702
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6126
6707
      ;;
6127
6708
    esac
6128
6709
 
6129
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6130
 
      runpath_var=LD_RUN_PATH
6131
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6132
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6133
 
      # ancient GNU ld didn't support --whole-archive et. al.
6134
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6135
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6136
 
      else
6137
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6138
 
      fi
 
6710
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
6711
      runpath_var=
 
6712
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6713
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6714
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6139
6715
    fi
6140
6716
  else
6141
6717
    # PORTME fill in a description of your system's linker (not GNU ld)
6147
6723
      # Note: this linker hardcodes the directories in LIBPATH if there
6148
6724
      # are no directories specified by -L.
6149
6725
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6150
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6726
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6151
6727
        # Neither direct hardcoding nor static linking is supported with a
6152
6728
        # broken collect2.
6153
6729
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6181
6757
            break
6182
6758
          fi
6183
6759
          done
 
6760
          ;;
6184
6761
        esac
6185
6762
 
6186
6763
        exp_sym_flag='-bexport'
6199
6776
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6200
6777
 
6201
6778
      if test "$GCC" = yes; then
6202
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
6779
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6203
6780
        # We only want to do this on AIX 4.2 and lower, the check
6204
6781
        # below for broken collect2 doesn't work under 4.3+
6205
6782
          collect2name=`${CC} -print-prog-name=collect2`
6218
6795
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6219
6796
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6220
6797
          fi
 
6798
          ;;
6221
6799
        esac
6222
6800
        shared_flag='-shared'
 
6801
        if test "$aix_use_runtimelinking" = yes; then
 
6802
          shared_flag="$shared_flag "'${wl}-G'
 
6803
        fi
6223
6804
      else
6224
6805
        # not using gcc
6225
6806
        if test "$host_cpu" = ia64; then
6227
6808
        # chokes on -Wl,-G. The following line is correct:
6228
6809
          shared_flag='-G'
6229
6810
        else
6230
 
        if test "$aix_use_runtimelinking" = yes; then
 
6811
          if test "$aix_use_runtimelinking" = yes; then
6231
6812
            shared_flag='${wl}-G'
6232
6813
          else
6233
6814
            shared_flag='${wl}-bM:SRE'
6234
 
        fi
 
6815
          fi
6235
6816
        fi
6236
6817
      fi
6237
6818
 
6245
6826
       # Determine the default libpath from the value encoded in an empty executable.
6246
6827
       _LT_AC_SYS_LIBPATH_AIX
6247
6828
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6248
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6829
        _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6249
6830
       else
6250
6831
        if test "$host_cpu" = ia64; then
6251
6832
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6252
6833
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6253
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6834
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6254
6835
        else
6255
6836
         # Determine the default libpath from the value encoded in an empty executable.
6256
6837
         _LT_AC_SYS_LIBPATH_AIX
6259
6840
          # -berok will link without error, but may produce a broken library.
6260
6841
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6261
6842
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6262
 
          # -bexpall does not export symbols beginning with underscore (_)
6263
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6264
6843
          # Exported symbols can be pulled into shared objects from archives
6265
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
6844
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6266
6845
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6267
 
          # This is similar to how AIX traditionally builds it's shared libraries.
6268
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6846
          # This is similar to how AIX traditionally builds its shared libraries.
 
6847
          _LT_AC_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'
6269
6848
        fi
6270
6849
      fi
6271
6850
      ;;
6278
6857
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6279
6858
      ;;
6280
6859
 
6281
 
    bsdi4*)
 
6860
    bsdi[[45]]*)
6282
6861
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6283
6862
      ;;
6284
6863
 
6299
6878
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6300
6879
      # FIXME: Should let the user specify the lib program.
6301
6880
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6302
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6881
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6303
6882
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6304
6883
      ;;
6305
6884
 
6306
6885
    darwin* | rhapsody*)
6307
 
    if test "$GXX" = yes ; then
 
6886
      case $host_os in
 
6887
        rhapsody* | darwin1.[[012]])
 
6888
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
6889
         ;;
 
6890
       *) # Darwin 1.3 on
 
6891
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6892
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6893
         else
 
6894
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6895
             10.[[012]])
 
6896
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6897
               ;;
 
6898
             10.*)
 
6899
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
6900
               ;;
 
6901
           esac
 
6902
         fi
 
6903
         ;;
 
6904
      esac
6308
6905
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6309
 
      case "$host_os" in
6310
 
      rhapsody* | darwin1.[[012]])
6311
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6312
 
        ;;
6313
 
      *) # Darwin 1.3 on
6314
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6315
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6316
 
      else
6317
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
6318
 
          10.[[012]])
6319
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6320
 
            ;;
6321
 
          10.*)
6322
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6323
 
            ;;
6324
 
        esac
6325
 
      fi
6326
 
        ;;
6327
 
      esac
6328
 
        lt_int_apple_cc_single_mod=no
 
6906
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6907
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6908
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6909
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
6910
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6911
    if test "$GCC" = yes ; then
6329
6912
        output_verbose_link_cmd='echo'
6330
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6331
 
          lt_int_apple_cc_single_mod=yes
6332
 
        fi
6333
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6334
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6335
 
        else
6336
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6337
 
      fi
6338
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6339
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6340
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6341
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6342
 
        else
6343
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6344
 
        fi
 
6913
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6914
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6915
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6916
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6917
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6918
    else
 
6919
      case $cc_basename in
 
6920
        xlc*)
 
6921
         output_verbose_link_cmd='echo'
 
6922
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6923
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6924
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6925
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6345
6926
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6346
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6347
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6348
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6349
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6350
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6351
 
    else
6352
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6927
          ;;
 
6928
       *)
 
6929
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6930
          ;;
 
6931
      esac
6353
6932
    fi
6354
6933
      ;;
6355
6934
 
6383
6962
      ;;
6384
6963
 
6385
6964
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6386
 
    freebsd* | kfreebsd*-gnu)
 
6965
    freebsd* | dragonfly*)
6387
6966
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6388
6967
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6389
6968
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6406
6985
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6407
6986
      ;;
6408
6987
 
6409
 
    hpux10* | hpux11*)
6410
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6411
 
        case "$host_cpu" in
6412
 
        hppa*64*|ia64*)
 
6988
    hpux10*)
 
6989
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6990
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6991
      else
 
6992
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6993
      fi
 
6994
      if test "$with_gnu_ld" = no; then
 
6995
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6996
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6997
 
 
6998
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6999
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7000
 
 
7001
        # hardcode_minus_L: Not really in the search PATH,
 
7002
        # but as the default location of the library.
 
7003
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7004
      fi
 
7005
      ;;
 
7006
 
 
7007
    hpux11*)
 
7008
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7009
        case $host_cpu in
 
7010
        hppa*64*)
6413
7011
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6414
7012
          ;;
 
7013
        ia64*)
 
7014
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7015
          ;;
6415
7016
        *)
6416
7017
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6417
7018
          ;;
6418
7019
        esac
6419
7020
      else
6420
 
        case "$host_cpu" in
6421
 
        hppa*64*|ia64*)
6422
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7021
        case $host_cpu in
 
7022
        hppa*64*)
 
7023
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7024
          ;;
 
7025
        ia64*)
 
7026
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6423
7027
          ;;
6424
7028
        *)
6425
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7029
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6426
7030
          ;;
6427
7031
        esac
6428
7032
      fi
6429
7033
      if test "$with_gnu_ld" = no; then
6430
 
        case "$host_cpu" in
6431
 
        hppa*64*)
6432
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7034
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7035
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7036
 
 
7037
        case $host_cpu in
 
7038
        hppa*64*|ia64*)
6433
7039
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6434
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6435
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6436
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6437
 
          ;;
6438
 
        ia64*)
6439
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6440
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6441
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6442
 
 
6443
 
          # hardcode_minus_L: Not really in the search PATH,
6444
 
          # but as the default location of the library.
6445
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7040
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7041
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6446
7042
          ;;
6447
7043
        *)
6448
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6449
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6450
7044
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6451
7045
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6452
7046
 
6470
7064
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6471
7065
      ;;
6472
7066
 
6473
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7067
    netbsd* | netbsdelf*-gnu)
6474
7068
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6475
7069
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6476
7070
      else
6494
7088
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6495
7089
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6496
7090
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7091
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6497
7092
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6498
7093
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6499
7094
      else
6539
7134
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6540
7135
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6541
7136
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6542
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7137
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6543
7138
 
6544
7139
        # Both c and cxx compiler support -rpath directly
6545
7140
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6547
7142
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6548
7143
      ;;
6549
7144
 
6550
 
    sco3.2v5*)
6551
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6552
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6553
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6554
 
      runpath_var=LD_RUN_PATH
6555
 
      hardcode_runpath_var=yes
6556
 
      ;;
6557
 
 
6558
7145
    solaris*)
6559
7146
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6560
7147
      if test "$GCC" = yes; then
 
7148
        wlarc='${wl}'
6561
7149
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6562
7150
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6563
7151
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6564
7152
      else
 
7153
        wlarc=''
6565
7154
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6566
7155
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6567
7156
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6570
7159
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6571
7160
      case $host_os in
6572
7161
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6573
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6574
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
7162
      *)
 
7163
        # The compiler driver will combine linker options so we
 
7164
        # cannot just pass the convience library names through
 
7165
        # without $wl, iff we do not link with $LD.
 
7166
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7167
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7168
        case $wlarc in
 
7169
        '')
 
7170
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
7171
        *)
 
7172
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7173
        esac ;;
6575
7174
      esac
6576
7175
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6577
7176
      ;;
6628
7227
      fi
6629
7228
      ;;
6630
7229
 
6631
 
    sysv4.2uw2*)
6632
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6633
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6634
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6635
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6636
 
      hardcode_runpath_var=yes
6637
 
      runpath_var=LD_RUN_PATH
6638
 
      ;;
6639
 
 
6640
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
6641
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6642
 
      if test "$GCC" = yes; then
6643
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6644
 
      else
6645
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6646
 
      fi
6647
 
      runpath_var='LD_RUN_PATH'
6648
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6649
 
      ;;
6650
 
 
6651
 
    sysv5*)
6652
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6653
 
      # $CC -shared without GNU ld will not create a library from C++
6654
 
      # object files and a static libstdc++, better avoid it by now
6655
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6656
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6657
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6658
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6659
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6660
 
      runpath_var='LD_RUN_PATH'
 
7230
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
7231
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7232
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7233
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7234
      runpath_var='LD_RUN_PATH'
 
7235
 
 
7236
      if test "$GCC" = yes; then
 
7237
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7238
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7239
      else
 
7240
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7241
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7242
      fi
 
7243
      ;;
 
7244
 
 
7245
    sysv5* | sco3.2v5* | sco5v6*)
 
7246
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7247
      # link with -lc, and that would cause any symbols used from libc to
 
7248
      # always be unresolved, which means just about no library would
 
7249
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7250
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7251
      # as -z defs.
 
7252
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7253
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7254
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7255
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7256
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7257
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7258
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7259
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7260
      runpath_var='LD_RUN_PATH'
 
7261
 
 
7262
      if test "$GCC" = yes; then
 
7263
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7264
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7265
      else
 
7266
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7267
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7268
      fi
6661
7269
      ;;
6662
7270
 
6663
7271
    uts4*)
6675
7283
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6676
7284
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6677
7285
 
6678
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6679
 
if test "$GCC" = yes; then
6680
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6681
 
fi
6682
 
 
6683
7286
#
6684
7287
# Do we need to explicitly link libc?
6685
7288
#
6707
7310
        libobjs=conftest.$ac_objext
6708
7311
        deplibs=
6709
7312
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
7313
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6710
7314
        compiler_flags=-v
6711
7315
        linker_flags=-v
6712
7316
        verstring=
6832
7436
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6833
7437
# along with /bin/sed that truncates output.
6834
7438
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6835
 
  test ! -f $lt_ac_sed && break
 
7439
  test ! -f $lt_ac_sed && continue
6836
7440
  cat /dev/null > conftest.in
6837
7441
  lt_ac_count=0
6838
7442
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6857
7461
    fi
6858
7462
  done
6859
7463
done
 
7464
])
6860
7465
SED=$lt_cv_path_SED
6861
 
])
6862
7466
AC_MSG_RESULT([$SED])
6863
7467
])
6864
7468