~ubuntu-branches/ubuntu/trusty/apr-util/trusty

« back to all changes in this revision

Viewing changes to xml/expat/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-03-26 22:25:48 UTC
  • mto: (4.1.1 squeeze) (20.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20090326222548-v103269kb84vo0ub
Tags: upstream-1.3.4+dfsg
ImportĀ upstreamĀ versionĀ 1.3.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh
2
2
dnl edits here will be lost
3
3
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
4
 
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5
 
## Free Software Foundation, Inc.
 
4
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
 
5
## 2008  Free Software Foundation, Inc.
6
6
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
7
##
8
8
## This file is free software; the Free Software Foundation gives
9
9
## unlimited permission to copy and/or distribute it, with or without
10
10
## modifications, as long as this notice is preserved.
11
11
 
12
 
# serial 47 AC_PROG_LIBTOOL
 
12
# serial 52 AC_PROG_LIBTOOL
13
13
 
14
14
 
15
15
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
97
97
AC_REQUIRE([AC_OBJEXT])dnl
98
98
AC_REQUIRE([AC_EXEEXT])dnl
99
99
dnl
100
 
 
101
100
AC_LIBTOOL_SYS_MAX_CMD_LEN
102
101
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
103
102
AC_LIBTOOL_OBJDIR
159
158
test -z "$AS" && AS=as
160
159
test -z "$CC" && CC=cc
161
160
test -z "$LTCC" && LTCC=$CC
 
161
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
162
162
test -z "$DLLTOOL" && DLLTOOL=dlltool
163
163
test -z "$LD" && LD=ld
164
164
test -z "$LN_S" && LN_S="ln -s"
171
171
test -z "$ac_objext" && ac_objext=o
172
172
 
173
173
# Determine commands to create old-style static archives.
174
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
174
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
175
175
old_postinstall_cmds='chmod 644 $oldlib'
176
176
old_postuninstall_cmds=
177
177
 
178
178
if test -n "$RANLIB"; then
179
179
  case $host_os in
180
180
  openbsd*)
181
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
181
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
182
182
    ;;
183
183
  *)
184
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
184
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
185
185
    ;;
186
186
  esac
187
187
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
198
198
  ;;
199
199
esac
200
200
 
 
201
_LT_REQUIRED_DARWIN_CHECKS
 
202
 
201
203
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
202
204
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
203
205
enable_win32_dll=yes, enable_win32_dll=no)
229
231
# If no C compiler was specified, use CC.
230
232
LTCC=${LTCC-"$CC"}
231
233
 
 
234
# If no C compiler flags were specified, use CFLAGS.
 
235
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
236
 
232
237
# Allow CC to be a program name with arguments.
233
238
compiler=$CC
234
239
])# _LT_AC_SYS_COMPILER
255
260
# Check for compiler boilerplate output or warnings with
256
261
# the simple compiler test code.
257
262
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
258
 
[ac_outfile=conftest.$ac_objext
259
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
260
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
263
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
264
ac_outfile=conftest.$ac_objext
 
265
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
266
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
261
267
_lt_compiler_boilerplate=`cat conftest.err`
262
268
$rm conftest*
263
269
])# _LT_COMPILER_BOILERPLATE
268
274
# Check for linker boilerplate output or warnings with
269
275
# the simple link test code.
270
276
AC_DEFUN([_LT_LINKER_BOILERPLATE],
271
 
[ac_outfile=conftest.$ac_objext
272
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
273
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
277
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
278
ac_outfile=conftest.$ac_objext
 
279
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
280
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
281
_lt_linker_boilerplate=`cat conftest.err`
275
 
$rm conftest*
 
282
$rm -r conftest*
276
283
])# _LT_LINKER_BOILERPLATE
277
284
 
 
285
# _LT_REQUIRED_DARWIN_CHECKS
 
286
# --------------------------
 
287
# Check for some things on darwin
 
288
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
289
  case $host_os in
 
290
    rhapsody* | darwin*)
 
291
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
292
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
293
 
 
294
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
295
      [lt_cv_apple_cc_single_mod=no
 
296
      if test -z "${LT_MULTI_MODULE}"; then
 
297
   # By default we will add the -single_module flag. You can override
 
298
   # by either setting the environment variable LT_MULTI_MODULE
 
299
   # non-empty at configure time, or by adding -multi_module to the
 
300
   # link flags.
 
301
   echo "int foo(void){return 1;}" > conftest.c
 
302
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
303
     -dynamiclib ${wl}-single_module conftest.c
 
304
   if test -f libconftest.dylib; then
 
305
     lt_cv_apple_cc_single_mod=yes
 
306
     rm -rf libconftest.dylib*
 
307
   fi
 
308
   rm conftest.c
 
309
      fi])
 
310
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
311
      [lt_cv_ld_exported_symbols_list],
 
312
      [lt_cv_ld_exported_symbols_list=no
 
313
      save_LDFLAGS=$LDFLAGS
 
314
      echo "_main" > conftest.sym
 
315
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
316
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
317
   [lt_cv_ld_exported_symbols_list=yes],
 
318
   [lt_cv_ld_exported_symbols_list=no])
 
319
   LDFLAGS="$save_LDFLAGS"
 
320
    ])
 
321
    case $host_os in
 
322
    rhapsody* | darwin1.[[0123]])
 
323
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
324
    darwin1.*)
 
325
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
326
    darwin*)
 
327
      # if running on 10.5 or later, the deployment target defaults
 
328
      # to the OS version, if on x86, and 10.4, the deployment
 
329
      # target defaults to 10.4. Don't you love it?
 
330
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
331
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
332
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
333
   10.[[012]]*)
 
334
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
335
   10.*)
 
336
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
337
      esac
 
338
    ;;
 
339
  esac
 
340
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
341
      _lt_dar_single_mod='$single_module'
 
342
    fi
 
343
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
344
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
345
    else
 
346
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
347
    fi
 
348
    if test "$DSYMUTIL" != ":"; then
 
349
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
350
    else
 
351
      _lt_dsymutil=
 
352
    fi
 
353
    ;;
 
354
  esac
 
355
])
278
356
 
279
357
# _LT_AC_SYS_LIBPATH_AIX
280
358
# ----------------------
285
363
# If we don't find anything, use the default library path according
286
364
# to the aix ld manual.
287
365
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
288
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
289
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
290
 
}'`
 
366
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
367
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
368
lt_aix_libpath_sed='
 
369
    /Import File Strings/,/^$/ {
 
370
        /^0/ {
 
371
            s/^0  *\(.*\)$/\1/
 
372
            p
 
373
        }
 
374
    }'
 
375
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
291
376
# Check for a 64-bit object if we didn't find anything.
292
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
293
 
}'`; fi],[])
 
377
if test -z "$aix_libpath"; then
 
378
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
379
fi],[])
294
380
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
295
381
])# _LT_AC_SYS_LIBPATH_AIX
296
382
 
521
607
  rm -rf conftest*
522
608
  ;;
523
609
 
524
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
610
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
611
s390*-*linux*|sparc*-*linux*)
525
612
  # Find out which ABI we are using.
526
613
  echo 'int i;' > conftest.$ac_ext
527
614
  if AC_TRY_EVAL(ac_compile); then
528
615
    case `/usr/bin/file conftest.o` in
529
616
    *32-bit*)
530
617
      case $host in
 
618
        x86_64-*kfreebsd*-gnu)
 
619
          LD="${LD-ld} -m elf_i386_fbsd"
 
620
          ;;
531
621
        x86_64-*linux*)
532
622
          LD="${LD-ld} -m elf_i386"
533
623
          ;;
544
634
      ;;
545
635
    *64-bit*)
546
636
      case $host in
 
637
        x86_64-*kfreebsd*-gnu)
 
638
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
639
          ;;
547
640
        x86_64-*linux*)
548
641
          LD="${LD-ld} -m elf_x86_64"
549
642
          ;;
576
669
    CFLAGS="$SAVE_CFLAGS"
577
670
  fi
578
671
  ;;
 
672
sparc*-*solaris*)
 
673
  # Find out which ABI we are using.
 
674
  echo 'int i;' > conftest.$ac_ext
 
675
  if AC_TRY_EVAL(ac_compile); then
 
676
    case `/usr/bin/file conftest.o` in
 
677
    *64-bit*)
 
678
      case $lt_cv_prog_gnu_ld in
 
679
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
680
      *)
 
681
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
682
          LD="${LD-ld} -64"
 
683
        fi
 
684
        ;;
 
685
      esac
 
686
      ;;
 
687
    esac
 
688
  fi
 
689
  rm -rf conftest*
 
690
  ;;
 
691
 
579
692
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
580
693
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
581
694
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
599
712
AC_CACHE_CHECK([$1], [$2],
600
713
  [$2=no
601
714
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
602
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
715
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
603
716
   lt_compiler_flag="$3"
604
717
   # Insert the option either (1) after the last *FLAGS variable, or
605
718
   # (2) before a word containing "conftest.", or (3) at the end.
618
731
   if (exit $ac_status) && test -s "$ac_outfile"; then
619
732
     # The compiler can only warn and ignore the option if not recognized
620
733
     # So say no if there are warnings other than the usual output.
621
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
622
 
     $SED '/^$/d' conftest.err >conftest.er2
623
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
734
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
735
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
736
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
624
737
       $2=yes
625
738
     fi
626
739
   fi
640
753
# ------------------------------------------------------------
641
754
# Check whether the given compiler option works
642
755
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
643
 
[AC_CACHE_CHECK([$1], [$2],
 
756
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
757
AC_CACHE_CHECK([$1], [$2],
644
758
  [$2=no
645
759
   save_LDFLAGS="$LDFLAGS"
646
760
   LDFLAGS="$LDFLAGS $3"
647
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
761
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
648
762
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
649
763
     # The linker can only warn and ignore the option if not recognized
650
764
     # So say no if there are warnings
651
765
     if test -s conftest.err; then
652
766
       # Append any errors to the config.log.
653
767
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
654
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
655
 
       $SED '/^$/d' conftest.err >conftest.er2
 
768
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
769
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
656
770
       if diff conftest.exp conftest.er2 >/dev/null; then
657
771
         $2=yes
658
772
       fi
660
774
       $2=yes
661
775
     fi
662
776
   fi
663
 
   $rm conftest*
 
777
   $rm -r conftest*
664
778
   LDFLAGS="$save_LDFLAGS"
665
779
])
666
780
 
727
841
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
728
842
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
729
843
    ;;
 
844
 
 
845
  interix*)
 
846
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
847
    lt_cv_sys_max_cmd_len=196608
 
848
    ;;
 
849
 
730
850
  osf*)
731
851
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
732
852
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
740
860
      esac
741
861
    fi
742
862
    ;;
 
863
  sco3.2v5*)
 
864
    lt_cv_sys_max_cmd_len=102400
 
865
    ;;
 
866
  sysv5* | sco5v6* | sysv4.2uw2*)
 
867
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
868
    if test -n "$kargmax"; then
 
869
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
870
    else
 
871
      lt_cv_sys_max_cmd_len=32768
 
872
    fi
 
873
    ;;
743
874
  *)
744
 
    # If test is not a shell built-in, we'll probably end up computing a
745
 
    # maximum length that is only half of the actual maximum length, but
746
 
    # we can't tell.
747
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
748
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
875
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
876
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
877
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
878
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
879
    else
 
880
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
881
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
749
882
               = "XX$teststring") >/dev/null 2>&1 &&
750
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
751
 
            lt_cv_sys_max_cmd_len=$new_result &&
752
 
            test $i != 17 # 1/2 MB should be enough
753
 
    do
754
 
      i=`expr $i + 1`
755
 
      teststring=$teststring$teststring
756
 
    done
757
 
    teststring=
758
 
    # Add a significant safety factor because C++ compilers can tack on massive
759
 
    # amounts of additional arguments before passing them to the linker.
760
 
    # It appears as though 1/2 is a usable value.
761
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
883
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
884
              lt_cv_sys_max_cmd_len=$new_result &&
 
885
              test $i != 17 # 1/2 MB should be enough
 
886
      do
 
887
        i=`expr $i + 1`
 
888
        teststring=$teststring$teststring
 
889
      done
 
890
      teststring=
 
891
      # Add a significant safety factor because C++ compilers can tack on massive
 
892
      # amounts of additional arguments before passing them to the linker.
 
893
      # It appears as though 1/2 is a usable value.
 
894
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
895
    fi
762
896
    ;;
763
897
  esac
764
898
])
771
905
 
772
906
 
773
907
# _LT_AC_CHECK_DLFCN
774
 
# --------------------
 
908
# ------------------
775
909
AC_DEFUN([_LT_AC_CHECK_DLFCN],
776
910
[AC_CHECK_HEADERS(dlfcn.h)dnl
777
911
])# _LT_AC_CHECK_DLFCN
779
913
 
780
914
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
781
915
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
782
 
# ------------------------------------------------------------------
 
916
# ---------------------------------------------------------------------
783
917
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
784
918
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
785
919
if test "$cross_compiling" = yes; then :
845
979
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
846
980
      /* dlclose (self); */
847
981
    }
 
982
  else
 
983
    puts (dlerror ());
848
984
 
849
985
    exit (status);
850
986
}]
855
991
    case x$lt_status in
856
992
      x$lt_dlno_uscore) $1 ;;
857
993
      x$lt_dlneed_uscore) $2 ;;
858
 
      x$lt_unknown|x*) $3 ;;
 
994
      x$lt_dlunknown|x*) $3 ;;
859
995
    esac
860
996
  else :
861
997
    # compilation failed
867
1003
 
868
1004
 
869
1005
# AC_LIBTOOL_DLOPEN_SELF
870
 
# -------------------
 
1006
# ----------------------
871
1007
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
872
1008
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
873
1009
if test "x$enable_dlopen" != xyes; then
909
1045
    AC_CHECK_FUNC([shl_load],
910
1046
          [lt_cv_dlopen="shl_load"],
911
1047
      [AC_CHECK_LIB([dld], [shl_load],
912
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1048
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
913
1049
        [AC_CHECK_FUNC([dlopen],
914
1050
              [lt_cv_dlopen="dlopen"],
915
1051
          [AC_CHECK_LIB([dl], [dlopen],
917
1053
            [AC_CHECK_LIB([svld], [dlopen],
918
1054
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
919
1055
              [AC_CHECK_LIB([dld], [dld_link],
920
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1056
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
921
1057
              ])
922
1058
            ])
923
1059
          ])
938
1074
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
939
1075
 
940
1076
    save_LDFLAGS="$LDFLAGS"
941
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
1077
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
942
1078
 
943
1079
    save_LIBS="$LIBS"
944
1080
    LIBS="$lt_cv_dlopen_libs $LIBS"
951
1087
    ])
952
1088
 
953
1089
    if test "x$lt_cv_dlopen_self" = xyes; then
954
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
1090
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
955
1091
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
956
1092
          lt_cv_dlopen_self_static, [dnl
957
1093
          _LT_AC_TRY_DLOPEN_SELF(
983
1119
# ---------------------------------
984
1120
# Check to see if options -c and -o are simultaneously supported by compiler
985
1121
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
986
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1122
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1123
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
987
1124
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
988
1125
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
989
1126
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
991
1128
   mkdir conftest
992
1129
   cd conftest
993
1130
   mkdir out
994
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1131
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
995
1132
 
996
1133
   lt_compiler_flag="-o out/conftest2.$ac_objext"
997
1134
   # Insert the option either (1) after the last *FLAGS variable, or
1011
1148
   then
1012
1149
     # The compiler can only warn and ignore the option if not recognized
1013
1150
     # So say no if there are warnings
1014
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1015
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
1016
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1151
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1152
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1153
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1017
1154
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1018
1155
     fi
1019
1156
   fi
1131
1268
   darwin*)
1132
1269
       if test -n "$STRIP" ; then
1133
1270
         striplib="$STRIP -x"
 
1271
         old_striplib="$STRIP -S"
1134
1272
         AC_MSG_RESULT([yes])
1135
1273
       else
1136
1274
  AC_MSG_RESULT([no])
1148
1286
# -----------------------------
1149
1287
# PORTME Fill in your ld.so characteristics
1150
1288
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1151
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1290
AC_MSG_CHECKING([dynamic linker characteristics])
1152
1291
library_names_spec=
1153
1292
libname_spec='lib$name'
1154
1293
soname_spec=
1162
1301
version_type=none
1163
1302
dynamic_linker="$host_os ld.so"
1164
1303
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1304
m4_if($1,[],[
1165
1305
if test "$GCC" = yes; then
1166
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1167
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1306
  case $host_os in
 
1307
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1308
    *) lt_awk_arg="/^libraries:/" ;;
 
1309
  esac
 
1310
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1311
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1168
1312
    # if the path contains ";" then we assume it to be the separator
1169
1313
    # otherwise default to the standard path separator (i.e. ":") - it is
1170
1314
    # assumed that no part of a normal pathname contains ";" but that should
1171
1315
    # okay in the real world where ";" in dirpaths is itself problematic.
1172
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1316
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1173
1317
  else
1174
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1318
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1175
1319
  fi
 
1320
  # Ok, now we have the path, separated by spaces, we can step through it
 
1321
  # and add multilib dir if necessary.
 
1322
  lt_tmp_lt_search_path_spec=
 
1323
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1324
  for lt_sys_path in $lt_search_path_spec; do
 
1325
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1326
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1327
    else
 
1328
      test -d "$lt_sys_path" && \
 
1329
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1330
    fi
 
1331
  done
 
1332
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1333
BEGIN {RS=" "; FS="/|\n";} {
 
1334
  lt_foo="";
 
1335
  lt_count=0;
 
1336
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1337
    if ($lt_i != "" && $lt_i != ".") {
 
1338
      if ($lt_i == "..") {
 
1339
        lt_count++;
 
1340
      } else {
 
1341
        if (lt_count == 0) {
 
1342
          lt_foo="/" $lt_i lt_foo;
 
1343
        } else {
 
1344
          lt_count--;
 
1345
        }
 
1346
      }
 
1347
    }
 
1348
  }
 
1349
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1350
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1351
}'`
 
1352
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1176
1353
else
1177
1354
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1178
 
fi
 
1355
fi])
1179
1356
need_lib_prefix=unknown
1180
1357
hardcode_into_libs=no
1181
1358
 
1193
1370
  soname_spec='${libname}${release}${shared_ext}$major'
1194
1371
  ;;
1195
1372
 
1196
 
aix4* | aix5*)
 
1373
aix[[4-9]]*)
1197
1374
  version_type=linux
1198
1375
  need_lib_prefix=no
1199
1376
  need_version=no
1332
1509
  shlibpath_overrides_runpath=yes
1333
1510
  shlibpath_var=DYLD_LIBRARY_PATH
1334
1511
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1335
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1336
 
  if test "$GCC" = yes; then
1337
 
    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"`
1338
 
  else
1339
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1340
 
  fi
 
1512
  m4_if([$1], [],[
 
1513
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1341
1514
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1342
1515
  ;;
1343
1516
 
1354
1527
  dynamic_linker=no
1355
1528
  ;;
1356
1529
 
1357
 
kfreebsd*-gnu)
1358
 
  version_type=linux
1359
 
  need_lib_prefix=no
1360
 
  need_version=no
1361
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1362
 
  soname_spec='${libname}${release}${shared_ext}$major'
1363
 
  shlibpath_var=LD_LIBRARY_PATH
1364
 
  shlibpath_overrides_runpath=no
1365
 
  hardcode_into_libs=yes
1366
 
  dynamic_linker='GNU ld.so'
1367
 
  ;;
1368
 
 
1369
1530
freebsd* | dragonfly*)
1370
1531
  # DragonFly does not have aout.  When/if they implement a new
1371
1532
  # versioning mechanism, adjust this.
1398
1559
    shlibpath_overrides_runpath=yes
1399
1560
    hardcode_into_libs=yes
1400
1561
    ;;
1401
 
  *) # from 3.2 on
 
1562
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1563
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1402
1564
    shlibpath_overrides_runpath=no
1403
1565
    hardcode_into_libs=yes
1404
1566
    ;;
 
1567
  *) # from 4.6 on, and DragonFly
 
1568
    shlibpath_overrides_runpath=yes
 
1569
    hardcode_into_libs=yes
 
1570
    ;;
1405
1571
  esac
1406
1572
  ;;
1407
1573
 
1461
1627
  postinstall_cmds='chmod 555 $lib'
1462
1628
  ;;
1463
1629
 
 
1630
interix[[3-9]]*)
 
1631
  version_type=linux
 
1632
  need_lib_prefix=no
 
1633
  need_version=no
 
1634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1635
  soname_spec='${libname}${release}${shared_ext}$major'
 
1636
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1637
  shlibpath_var=LD_LIBRARY_PATH
 
1638
  shlibpath_overrides_runpath=no
 
1639
  hardcode_into_libs=yes
 
1640
  ;;
 
1641
 
1464
1642
irix5* | irix6* | nonstopux*)
1465
1643
  case $host_os in
1466
1644
    nonstopux*) version_type=nonstopux ;;
1504
1682
  ;;
1505
1683
 
1506
1684
# This must be Linux ELF.
1507
 
linux*)
 
1685
linux* | k*bsd*-gnu)
1508
1686
  version_type=linux
1509
1687
  need_lib_prefix=no
1510
1688
  need_version=no
1520
1698
 
1521
1699
  # Append ld.so.conf contents to the search path
1522
1700
  if test -f /etc/ld.so.conf; then
1523
 
    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' ' '`
 
1701
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1524
1702
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1525
1703
  fi
1526
1704
 
1533
1711
  dynamic_linker='GNU/Linux ld.so'
1534
1712
  ;;
1535
1713
 
1536
 
knetbsd*-gnu)
1537
 
  version_type=linux
1538
 
  need_lib_prefix=no
1539
 
  need_version=no
1540
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1541
 
  soname_spec='${libname}${release}${shared_ext}$major'
1542
 
  shlibpath_var=LD_LIBRARY_PATH
1543
 
  shlibpath_overrides_runpath=no
1544
 
  hardcode_into_libs=yes
1545
 
  dynamic_linker='GNU ld.so'
1546
 
  ;;
1547
 
 
1548
1714
netbsd*)
1549
1715
  version_type=sunos
1550
1716
  need_lib_prefix=no
1582
1748
 
1583
1749
openbsd*)
1584
1750
  version_type=sunos
 
1751
  sys_lib_dlsearch_path_spec="/usr/lib"
1585
1752
  need_lib_prefix=no
1586
1753
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1587
1754
  case $host_os in
1625
1792
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1626
1793
  ;;
1627
1794
 
1628
 
sco3.2v5*)
1629
 
  version_type=osf
1630
 
  soname_spec='${libname}${release}${shared_ext}$major'
1631
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1632
 
  shlibpath_var=LD_LIBRARY_PATH
 
1795
rdos*)
 
1796
  dynamic_linker=no
1633
1797
  ;;
1634
1798
 
1635
1799
solaris*)
1657
1821
  need_version=yes
1658
1822
  ;;
1659
1823
 
1660
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1824
sysv4 | sysv4.3*)
1661
1825
  version_type=linux
1662
1826
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1663
1827
  soname_spec='${libname}${release}${shared_ext}$major'
1690
1854
  fi
1691
1855
  ;;
1692
1856
 
 
1857
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1858
  version_type=freebsd-elf
 
1859
  need_lib_prefix=no
 
1860
  need_version=no
 
1861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1862
  soname_spec='${libname}${release}${shared_ext}$major'
 
1863
  shlibpath_var=LD_LIBRARY_PATH
 
1864
  hardcode_into_libs=yes
 
1865
  if test "$with_gnu_ld" = yes; then
 
1866
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1867
    shlibpath_overrides_runpath=no
 
1868
  else
 
1869
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1870
    shlibpath_overrides_runpath=yes
 
1871
    case $host_os in
 
1872
      sco3.2v5*)
 
1873
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1874
        ;;
 
1875
    esac
 
1876
  fi
 
1877
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1878
  ;;
 
1879
 
1693
1880
uts4*)
1694
1881
  version_type=linux
1695
1882
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1703
1890
esac
1704
1891
AC_MSG_RESULT([$dynamic_linker])
1705
1892
test "$dynamic_linker" = no && can_build_shared=no
 
1893
 
 
1894
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1895
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1896
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1897
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1898
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1899
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1900
 
 
1901
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1902
if test "$GCC" = yes; then
 
1903
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1904
fi
1706
1905
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1707
1906
 
1708
1907
 
1709
1908
# _LT_AC_TAGCONFIG
1710
1909
# ----------------
1711
1910
AC_DEFUN([_LT_AC_TAGCONFIG],
1712
 
[AC_ARG_WITH([tags],
 
1911
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1912
AC_ARG_WITH([tags],
1713
1913
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1714
1914
        [include additional configurations @<:@automatic@:>@])],
1715
1915
    [tagnames="$withval"])
1727
1927
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1728
1928
    fi
1729
1929
  fi
 
1930
  if test -z "$LTCFLAGS"; then
 
1931
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1932
  fi
1730
1933
 
1731
1934
  # Extract list of available tagged configurations in $ofile.
1732
1935
  # Note that this assumes the entire list is on one line.
1855
2058
 
1856
2059
# AC_DISABLE_SHARED
1857
2060
# -----------------
1858
 
#- set the default shared flag to --disable-shared
 
2061
# set the default shared flag to --disable-shared
1859
2062
AC_DEFUN([AC_DISABLE_SHARED],
1860
2063
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1861
2064
AC_ENABLE_SHARED(no)
1967
2170
 
1968
2171
# AC_PATH_TOOL_PREFIX
1969
2172
# -------------------
1970
 
# find a file program which can recognise shared library
 
2173
# find a file program which can recognize shared library
1971
2174
AC_DEFUN([AC_PATH_TOOL_PREFIX],
1972
2175
[AC_REQUIRE([AC_PROG_EGREP])dnl
1973
2176
AC_MSG_CHECKING([for $1])
2030
2233
 
2031
2234
# AC_PATH_MAGIC
2032
2235
# -------------
2033
 
# find a file program which can recognise a shared library
 
2236
# find a file program which can recognize a shared library
2034
2237
AC_DEFUN([AC_PATH_MAGIC],
2035
2238
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2036
2239
if test -z "$lt_cv_path_MAGIC_CMD"; then
2163
2366
case $host_os in
2164
2367
  darwin*)
2165
2368
    if test "$GCC" = yes; then
2166
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2369
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2167
2370
    else
2168
2371
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2169
2372
    fi
2177
2380
# how to check for library dependencies
2178
2381
#  -- PORTME fill in with the dynamic library characteristics
2179
2382
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2180
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2383
[AC_CACHE_CHECK([how to recognize dependent libraries],
2181
2384
lt_cv_deplibs_check_method,
2182
2385
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2183
2386
lt_cv_file_magic_test_file=
2194
2397
# whether `pass_all' will *always* work, you probably want this one.
2195
2398
 
2196
2399
case $host_os in
2197
 
aix4* | aix5*)
 
2400
aix[[4-9]]*)
2198
2401
  lt_cv_deplibs_check_method=pass_all
2199
2402
  ;;
2200
2403
 
2216
2419
 
2217
2420
mingw* | pw32*)
2218
2421
  # Base MSYS/MinGW do not provide the 'file' command needed by
2219
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2220
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2221
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2422
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2423
  # unless we find 'file', for example because we are cross-compiling.
 
2424
  if ( file / ) >/dev/null 2>&1; then
 
2425
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2426
    lt_cv_file_magic_cmd='func_win32_libid'
 
2427
  else
 
2428
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2429
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2430
  fi
2222
2431
  ;;
2223
2432
 
2224
2433
darwin* | rhapsody*)
2225
2434
  lt_cv_deplibs_check_method=pass_all
2226
2435
  ;;
2227
2436
 
2228
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2437
freebsd* | dragonfly*)
2229
2438
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2230
2439
    case $host_cpu in
2231
2440
    i*86 )
2263
2472
  esac
2264
2473
  ;;
2265
2474
 
 
2475
interix[[3-9]]*)
 
2476
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2477
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2478
  ;;
 
2479
 
2266
2480
irix5* | irix6* | nonstopux*)
2267
2481
  case $LD in
2268
2482
  *-32|*"-32 ") libmagic=32-bit;;
2274
2488
  ;;
2275
2489
 
2276
2490
# This must be Linux ELF.
2277
 
linux*)
 
2491
linux* | k*bsd*-gnu)
2278
2492
  lt_cv_deplibs_check_method=pass_all
2279
2493
  ;;
2280
2494
 
2308
2522
  lt_cv_deplibs_check_method=pass_all
2309
2523
  ;;
2310
2524
 
2311
 
sco3.2v5*)
 
2525
rdos*)
2312
2526
  lt_cv_deplibs_check_method=pass_all
2313
2527
  ;;
2314
2528
 
2316
2530
  lt_cv_deplibs_check_method=pass_all
2317
2531
  ;;
2318
2532
 
2319
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2533
sysv4 | sysv4.3*)
2320
2534
  case $host_vendor in
2321
2535
  motorola)
2322
2536
    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]]'
2337
2551
  siemens)
2338
2552
    lt_cv_deplibs_check_method=pass_all
2339
2553
    ;;
 
2554
  pc)
 
2555
    lt_cv_deplibs_check_method=pass_all
 
2556
    ;;
2340
2557
  esac
2341
2558
  ;;
2342
2559
 
2343
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2560
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2344
2561
  lt_cv_deplibs_check_method=pass_all
2345
2562
  ;;
2346
2563
esac
2360
2577
  # Let the user override the test.
2361
2578
  lt_cv_path_NM="$NM"
2362
2579
else
2363
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2364
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2365
 
    IFS="$lt_save_ifs"
2366
 
    test -z "$ac_dir" && ac_dir=.
2367
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2368
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2369
 
      # Check to see if the nm accepts a BSD-compat flag.
2370
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2371
 
      #   nm: unknown option "B" ignored
2372
 
      # Tru64's nm complains that /dev/null is an invalid object file
2373
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2374
 
      */dev/null* | *'Invalid file or object type'*)
2375
 
        lt_cv_path_NM="$tmp_nm -B"
2376
 
        break
2377
 
        ;;
2378
 
      *)
2379
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2380
 
        */dev/null*)
2381
 
          lt_cv_path_NM="$tmp_nm -p"
 
2580
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2581
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
2582
    lt_nm_to_check="$lt_nm_to_check nm"
 
2583
  fi
 
2584
  for lt_tmp_nm in $lt_nm_to_check; do
 
2585
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2586
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2587
      IFS="$lt_save_ifs"
 
2588
      test -z "$ac_dir" && ac_dir=.
 
2589
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2590
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2591
        # Check to see if the nm accepts a BSD-compat flag.
 
2592
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2593
        #   nm: unknown option "B" ignored
 
2594
        # Tru64's nm complains that /dev/null is an invalid object file
 
2595
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2596
        */dev/null* | *'Invalid file or object type'*)
 
2597
          lt_cv_path_NM="$tmp_nm -B"
2382
2598
          break
2383
2599
          ;;
2384
2600
        *)
2385
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2386
 
          continue # so that we can try to find one that supports BSD flags
 
2601
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2602
          */dev/null*)
 
2603
            lt_cv_path_NM="$tmp_nm -p"
 
2604
            break
 
2605
            ;;
 
2606
          *)
 
2607
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2608
            continue # so that we can try to find one that supports BSD flags
 
2609
            ;;
 
2610
          esac
2387
2611
          ;;
2388
2612
        esac
2389
 
      esac
2390
 
    fi
 
2613
      fi
 
2614
    done
 
2615
    IFS="$lt_save_ifs"
2391
2616
  done
2392
 
  IFS="$lt_save_ifs"
2393
2617
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2394
2618
fi])
2395
2619
NM="$lt_cv_path_NM"
2495
2719
])# _LT_AC_LANG_CXX
2496
2720
 
2497
2721
# _LT_AC_PROG_CXXCPP
2498
 
# ---------------
 
2722
# ------------------
2499
2723
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2500
2724
[
2501
2725
AC_REQUIRE([AC_PROG_CXX])
2544
2768
 
2545
2769
 
2546
2770
# AC_LIBTOOL_RC
2547
 
# --------------
 
2771
# -------------
2548
2772
# enable support for Windows resource files
2549
2773
AC_DEFUN([AC_LIBTOOL_RC],
2550
2774
[AC_REQUIRE([LT_AC_PROG_RC])
2570
2794
_LT_AC_TAGVAR(objext, $1)=$objext
2571
2795
 
2572
2796
# Code to be used in simple compile tests
2573
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2797
lt_simple_compile_test_code="int some_variable = 0;"
2574
2798
 
2575
2799
# Code to be used in simple link tests
2576
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2800
lt_simple_link_test_code='int main(){return(0);}'
2577
2801
 
2578
2802
_LT_AC_SYS_COMPILER
2579
2803
 
2581
2805
_LT_COMPILER_BOILERPLATE
2582
2806
_LT_LINKER_BOILERPLATE
2583
2807
 
2584
 
#
2585
 
# Check for any special shared library compilation flags.
2586
 
#
2587
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2588
 
if test "$GCC" = no; then
2589
 
  case $host_os in
2590
 
  sco3.2v5*)
2591
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2592
 
    ;;
2593
 
  esac
2594
 
fi
2595
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2596
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2597
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2598
 
  else
2599
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2600
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2601
 
  fi
2602
 
fi
2603
 
 
2604
 
 
2605
 
#
2606
 
# Check to make sure the static flag actually works.
2607
 
#
2608
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2609
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2610
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2611
 
  [],
2612
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2613
 
 
2614
 
 
2615
2808
## CAVEAT EMPTOR:
2616
2809
## There is no encapsulation within the following macros, do not change
2617
2810
## the running order or otherwise move them around unless you know exactly
2624
2817
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2625
2818
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2626
2819
AC_LIBTOOL_SYS_LIB_STRIP
2627
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2820
AC_LIBTOOL_DLOPEN_SELF
2628
2821
 
2629
 
# Report which librarie types wil actually be built
 
2822
# Report which library types will actually be built
2630
2823
AC_MSG_CHECKING([if libtool supports shared libraries])
2631
2824
AC_MSG_RESULT([$can_build_shared])
2632
2825
 
2644
2837
  fi
2645
2838
  ;;
2646
2839
 
2647
 
aix4* | aix5*)
 
2840
aix[[4-9]]*)
2648
2841
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2649
2842
    test "$enable_shared" = yes && enable_static=no
2650
2843
  fi
2685
2878
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2686
2879
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2687
2880
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2881
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2688
2882
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2689
2883
_LT_AC_TAGVAR(module_cmds, $1)=
2690
2884
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2700
2894
_LT_AC_TAGVAR(predeps, $1)=
2701
2895
_LT_AC_TAGVAR(postdeps, $1)=
2702
2896
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2897
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2703
2898
 
2704
2899
# Source file extension for C++ test sources.
2705
2900
ac_ext=cpp
2709
2904
_LT_AC_TAGVAR(objext, $1)=$objext
2710
2905
 
2711
2906
# Code to be used in simple compile tests
2712
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2907
lt_simple_compile_test_code="int some_variable = 0;"
2713
2908
 
2714
2909
# Code to be used in simple link tests
2715
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2910
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2716
2911
 
2717
2912
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2718
2913
_LT_AC_SYS_COMPILER
2731
2926
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2732
2927
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2733
2928
else
2734
 
  unset lt_cv_prog_gnu_ld
 
2929
  $as_unset lt_cv_prog_gnu_ld
2735
2930
fi
2736
2931
if test -n "${lt_cv_path_LDCXX+set}"; then
2737
2932
  lt_cv_path_LD=$lt_cv_path_LDCXX
2738
2933
else
2739
 
  unset lt_cv_path_LD
 
2934
  $as_unset lt_cv_path_LD
2740
2935
fi
2741
2936
test -z "${LDCXX+set}" || LD=$LDCXX
2742
2937
CC=${CXX-"c++"}
2809
3004
    # FIXME: insert proper C++ library support
2810
3005
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2811
3006
    ;;
2812
 
  aix4* | aix5*)
 
3007
  aix[[4-9]]*)
2813
3008
    if test "$host_cpu" = ia64; then
2814
3009
      # On IA64, the linker does run time linking by default, so we don't
2815
3010
      # have to do anything special.
2822
3017
      # Test if we are trying to use run time linking or normal
2823
3018
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2824
3019
      # need to do runtime linking.
2825
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3020
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2826
3021
        for ld_flag in $LDFLAGS; do
2827
3022
          case $ld_flag in
2828
3023
          *-brtl*)
2831
3026
            ;;
2832
3027
          esac
2833
3028
        done
 
3029
        ;;
2834
3030
      esac
2835
3031
 
2836
3032
      exp_sym_flag='-bexport'
2857
3053
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2858
3054
        then
2859
3055
          # We have reworked collect2
2860
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3056
          :
2861
3057
        else
2862
3058
          # We have old collect2
2863
3059
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2868
3064
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2869
3065
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2870
3066
        fi
 
3067
        ;;
2871
3068
      esac
2872
3069
      shared_flag='-shared'
2873
3070
      if test "$aix_use_runtimelinking" = yes; then
2899
3096
      _LT_AC_SYS_LIBPATH_AIX
2900
3097
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2901
3098
 
2902
 
      _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"
 
3099
      _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"
2903
3100
     else
2904
3101
      if test "$host_cpu" = ia64; then
2905
3102
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2906
3103
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2907
 
        _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"
 
3104
        _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"
2908
3105
      else
2909
3106
        # Determine the default libpath from the value encoded in an empty executable.
2910
3107
        _LT_AC_SYS_LIBPATH_AIX
2913
3110
        # -berok will link without error, but may produce a broken library.
2914
3111
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2915
3112
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2916
 
        # -bexpall does not export symbols beginning with underscore (_)
2917
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2918
3113
        # Exported symbols can be pulled into shared objects from archives
2919
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
3114
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2920
3115
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2921
3116
        # This is similar to how AIX traditionally builds its shared libraries.
2922
 
        _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'
 
3117
        _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'
2923
3118
      fi
2924
3119
    fi
2925
3120
    ;;
 
3121
 
 
3122
  beos*)
 
3123
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3124
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3125
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3126
      # support --undefined.  This deserves some investigation.  FIXME
 
3127
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3128
    else
 
3129
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3130
    fi
 
3131
    ;;
 
3132
 
2926
3133
  chorus*)
2927
3134
    case $cc_basename in
2928
3135
      *)
2932
3139
    esac
2933
3140
    ;;
2934
3141
 
2935
 
 
2936
3142
  cygwin* | mingw* | pw32*)
2937
3143
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2938
3144
    # as there is no search path for DLLs.
2942
3148
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2943
3149
 
2944
3150
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2945
 
      _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'
 
3151
      _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'
2946
3152
      # If the export-symbols file already is a .def file (1st line
2947
3153
      # is EXPORTS), use it as is; otherwise, prepend...
2948
3154
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2951
3157
        echo EXPORTS > $output_objdir/$soname.def;
2952
3158
        cat $export_symbols >> $output_objdir/$soname.def;
2953
3159
      fi~
2954
 
      $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'
 
3160
      $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'
2955
3161
    else
2956
3162
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2957
3163
    fi
2958
3164
  ;;
2959
3165
      darwin* | rhapsody*)
2960
 
        case $host_os in
2961
 
        rhapsody* | darwin1.[[012]])
2962
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2963
 
         ;;
2964
 
       *) # Darwin 1.3 on
2965
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2966
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2967
 
         else
2968
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
2969
 
             10.[[012]])
2970
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2971
 
               ;;
2972
 
             10.*)
2973
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2974
 
               ;;
2975
 
           esac
2976
 
         fi
2977
 
         ;;
2978
 
        esac
2979
3166
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2980
3167
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
2981
3168
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2982
3169
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2983
3170
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2984
3171
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2985
 
 
2986
 
    if test "$GXX" = yes ; then
2987
 
      lt_int_apple_cc_single_mod=no
 
3172
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3173
      if test "$GXX" = yes ; then
2988
3174
      output_verbose_link_cmd='echo'
2989
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2990
 
       lt_int_apple_cc_single_mod=yes
 
3175
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3176
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3177
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3178
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3179
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3180
        _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${_lt_dsymutil}"
 
3181
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
2991
3182
      fi
2992
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2993
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2994
 
      else
2995
 
          _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'
2996
 
        fi
2997
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2998
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2999
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3000
 
            _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}'
3001
 
          else
3002
 
            _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}'
3003
 
          fi
3004
 
            _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}'
3005
3183
      else
3006
3184
      case $cc_basename in
3007
3185
        xlc*)
3008
3186
         output_verbose_link_cmd='echo'
3009
 
          _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'
 
3187
          _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` $xlcverstring'
3010
3188
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3011
3189
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3012
 
          _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}'
 
3190
          _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3013
3191
          _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}'
3014
3192
          ;;
3015
3193
       *)
3043
3221
  freebsd-elf*)
3044
3222
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3045
3223
    ;;
3046
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3224
  freebsd* | dragonfly*)
3047
3225
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3048
3226
    # conventions
3049
3227
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3088
3266
    ;;
3089
3267
  hpux10*|hpux11*)
3090
3268
    if test $with_gnu_ld = no; then
 
3269
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3270
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3271
 
3091
3272
      case $host_cpu in
3092
 
      hppa*64*)
3093
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3094
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3095
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3096
 
        ;;
3097
 
      ia64*)
3098
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3099
 
        ;;
 
3273
      hppa*64*|ia64*) ;;
3100
3274
      *)
3101
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3102
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3103
3275
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3104
3276
        ;;
3105
3277
      esac
3106
3278
    fi
3107
3279
    case $host_cpu in
3108
 
    hppa*64*)
3109
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3110
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3111
 
      ;;
3112
 
    ia64*)
3113
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3114
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3115
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3116
 
                                              # but as the default
3117
 
                                              # location of the library.
 
3280
    hppa*64*|ia64*)
 
3281
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3282
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3118
3283
      ;;
3119
3284
    *)
3120
3285
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3131
3296
        ;;
3132
3297
      aCC*)
3133
3298
        case $host_cpu in
3134
 
        hppa*64*|ia64*)
3135
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3299
        hppa*64*)
 
3300
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3301
          ;;
 
3302
        ia64*)
 
3303
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3136
3304
          ;;
3137
3305
        *)
3138
3306
          _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'
3152
3320
        if test "$GXX" = yes; then
3153
3321
          if test $with_gnu_ld = no; then
3154
3322
            case $host_cpu in
3155
 
            ia64*|hppa*64*)
3156
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3323
            hppa*64*)
 
3324
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3325
              ;;
 
3326
            ia64*)
 
3327
              _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'
3157
3328
              ;;
3158
3329
            *)
3159
3330
              _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'
3167
3338
        ;;
3168
3339
    esac
3169
3340
    ;;
 
3341
  interix[[3-9]]*)
 
3342
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3343
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3344
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3345
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3346
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3347
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3348
    # default) and relocated if they conflict, which is a slow very memory
 
3349
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3350
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3351
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3352
    _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'
 
3353
    _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'
 
3354
    ;;
3170
3355
  irix5* | irix6*)
3171
3356
    case $cc_basename in
3172
3357
      CC*)
3193
3378
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3194
3379
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3195
3380
    ;;
3196
 
  linux*)
 
3381
  linux* | k*bsd*-gnu)
3197
3382
    case $cc_basename in
3198
3383
      KCC*)
3199
3384
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3245
3430
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3246
3431
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3247
3432
        ;;
3248
 
      pgCC*)
 
3433
      pgCC* | pgcpp*)
3249
3434
        # Portland Group C++ compiler
3250
3435
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3251
3436
        _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'
3273
3458
        # dependencies.
3274
3459
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3275
3460
        ;;
 
3461
      *)
 
3462
        case `$CC -V 2>&1 | sed 5q` in
 
3463
        *Sun\ C*)
 
3464
          # Sun C++ 5.9
 
3465
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3466
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3467
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3468
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3469
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3470
 
 
3471
          # Not sure whether something based on
 
3472
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3473
          # would be better.
 
3474
          output_verbose_link_cmd='echo'
 
3475
 
 
3476
          # Archives containing C++ object files must be created using
 
3477
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3478
          # necessary to make sure instantiated templates are included
 
3479
          # in the archive.
 
3480
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3481
          ;;
 
3482
        esac
 
3483
        ;;
3276
3484
    esac
3277
3485
    ;;
3278
3486
  lynxos*)
3311
3519
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3312
3520
    ;;
3313
3521
  openbsd*)
3314
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3315
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3316
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3317
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3318
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3319
 
      _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'
3320
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3321
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3522
    if test -f /usr/libexec/ld.so; then
 
3523
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3524
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3525
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3526
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3527
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3528
        _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'
 
3529
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3530
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3531
      fi
 
3532
      output_verbose_link_cmd='echo'
 
3533
    else
 
3534
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3322
3535
    fi
3323
 
    output_verbose_link_cmd='echo'
3324
3536
    ;;
3325
3537
  osf3*)
3326
3538
    case $cc_basename in
3449
3661
    # FIXME: insert proper C++ library support
3450
3662
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3451
3663
    ;;
3452
 
  sco*)
3453
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3454
 
    case $cc_basename in
3455
 
      CC*)
3456
 
        # FIXME: insert proper C++ library support
3457
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3458
 
        ;;
3459
 
      *)
3460
 
        # FIXME: insert proper C++ library support
3461
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3462
 
        ;;
3463
 
    esac
3464
 
    ;;
3465
3664
  sunos4*)
3466
3665
    case $cc_basename in
3467
3666
      CC*)
3495
3694
        case $host_os in
3496
3695
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3497
3696
          *)
3498
 
            # The C++ compiler is used as linker so we must use $wl
3499
 
            # flag to pass the commands to the underlying system
3500
 
            # linker. We must also pass each convience library through
3501
 
            # to the system linker between allextract/defaultextract.
3502
 
            # The C++ compiler will combine linker options so we
3503
 
            # cannot just pass the convience library names through
3504
 
            # without $wl.
 
3697
            # The compiler driver will combine and reorder linker options,
 
3698
            # but understands `-z linker_flag'.
3505
3699
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3506
 
            _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'
 
3700
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3507
3701
            ;;
3508
3702
        esac
3509
3703
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3550
3744
          fi
3551
3745
 
3552
3746
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3747
          case $host_os in
 
3748
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3749
          *)
 
3750
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3751
            ;;
 
3752
          esac
3553
3753
        fi
3554
3754
        ;;
3555
3755
    esac
3556
3756
    ;;
3557
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3558
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3757
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3758
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3759
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3760
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3761
    runpath_var='LD_RUN_PATH'
 
3762
 
 
3763
    case $cc_basename in
 
3764
      CC*)
 
3765
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3766
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3767
        ;;
 
3768
      *)
 
3769
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3770
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3771
        ;;
 
3772
    esac
 
3773
    ;;
 
3774
  sysv5* | sco3.2v5* | sco5v6*)
 
3775
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3776
    # link with -lc, and that would cause any symbols used from libc to
 
3777
    # always be unresolved, which means just about no library would
 
3778
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3779
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3780
    # as -z defs.
 
3781
    # For security reasons, it is highly recommended that you always
 
3782
    # use absolute paths for naming shared libraries, and exclude the
 
3783
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3784
    # requires that you compile everything twice, which is a pain.
 
3785
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3786
    # non-empty value in the environment.  Most likely only useful for
 
3787
    # creating official distributions of packages.
 
3788
    # This is a hack until libtool officially supports absolute path
 
3789
    # names for shared libraries.
 
3790
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3791
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3792
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3793
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3794
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3795
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3796
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3797
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3798
    runpath_var='LD_RUN_PATH'
 
3799
 
 
3800
    case $cc_basename in
 
3801
      CC*)
 
3802
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3803
        _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'
 
3804
        ;;
 
3805
      *)
 
3806
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3807
        _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'
 
3808
        ;;
 
3809
    esac
3559
3810
    ;;
3560
3811
  tandem*)
3561
3812
    case $cc_basename in
3596
3847
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3597
3848
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3598
3849
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3599
 
AC_LIBTOOL_SYS_LIB_STRIP
3600
 
AC_LIBTOOL_DLOPEN_SELF($1)
3601
3850
 
3602
3851
AC_LIBTOOL_CONFIG($1)
3603
3852
 
3615
3864
])# AC_LIBTOOL_LANG_CXX_CONFIG
3616
3865
 
3617
3866
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3618
 
# ------------------------
 
3867
# ------------------------------------
3619
3868
# Figure out "hidden" library dependencies from verbose
3620
3869
# compiler output when linking a shared library.
3621
3870
# Parse the compiler output and extract the necessary
3622
3871
# objects, libraries and library flags.
3623
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3872
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3873
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3624
3874
dnl we can't use the lt_simple_compile_test_code here,
3625
3875
dnl because it contains code intended for an executable,
3626
3876
dnl not a library.  It's possible we should let each
3745
3995
 
3746
3996
$rm -f confest.$objext
3747
3997
 
 
3998
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
3999
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4000
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4001
fi
 
4002
 
3748
4003
# PORTME: override above test on systems where it is broken
3749
4004
ifelse([$1],[CXX],
3750
4005
[case $host_os in
 
4006
interix[[3-9]]*)
 
4007
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
4008
  # hack all around it, let's just trust "g++" to DTRT.
 
4009
  _LT_AC_TAGVAR(predep_objects,$1)=
 
4010
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
4011
  _LT_AC_TAGVAR(postdeps,$1)=
 
4012
  ;;
 
4013
 
 
4014
linux*)
 
4015
  case `$CC -V 2>&1 | sed 5q` in
 
4016
  *Sun\ C*)
 
4017
    # Sun C++ 5.9
 
4018
    #
 
4019
    # The more standards-conforming stlport4 library is
 
4020
    # incompatible with the Cstd library. Avoid specifying
 
4021
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4022
    # -library=stlport4 depends on it.
 
4023
    case " $CXX $CXXFLAGS " in
 
4024
    *" -library=stlport4 "*)
 
4025
      solaris_use_stlport4=yes
 
4026
      ;;
 
4027
    esac
 
4028
    if test "$solaris_use_stlport4" != yes; then
 
4029
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4030
    fi
 
4031
    ;;
 
4032
  esac
 
4033
  ;;
 
4034
 
3751
4035
solaris*)
3752
4036
  case $cc_basename in
3753
4037
  CC*)
 
4038
    # The more standards-conforming stlport4 library is
 
4039
    # incompatible with the Cstd library. Avoid specifying
 
4040
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4041
    # -library=stlport4 depends on it.
 
4042
    case " $CXX $CXXFLAGS " in
 
4043
    *" -library=stlport4 "*)
 
4044
      solaris_use_stlport4=yes
 
4045
      ;;
 
4046
    esac
 
4047
 
3754
4048
    # Adding this requires a known-good setup of shared libraries for
3755
4049
    # Sun compiler versions before 5.6, else PIC objects from an old
3756
4050
    # archive will be linked into the output, leading to subtle bugs.
3757
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4051
    if test "$solaris_use_stlport4" != yes; then
 
4052
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4053
    fi
3758
4054
    ;;
3759
4055
  esac
 
4056
  ;;
3760
4057
esac
3761
4058
])
3762
 
 
3763
4059
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3764
4060
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3765
4061
esac
3766
4062
])# AC_LIBTOOL_POSTDEP_PREDEP
3767
4063
 
3768
4064
# AC_LIBTOOL_LANG_F77_CONFIG
3769
 
# ------------------------
 
4065
# --------------------------
3770
4066
# Ensure that the configuration vars for the C compiler are
3771
4067
# suitably defined.  Those variables are subsequently used by
3772
4068
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3802
4098
_LT_AC_TAGVAR(objext, $1)=$objext
3803
4099
 
3804
4100
# Code to be used in simple compile tests
3805
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4101
lt_simple_compile_test_code="\
 
4102
      subroutine t
 
4103
      return
 
4104
      end
 
4105
"
3806
4106
 
3807
4107
# Code to be used in simple link tests
3808
 
lt_simple_link_test_code="      program t\n      end\n"
 
4108
lt_simple_link_test_code="\
 
4109
      program t
 
4110
      end
 
4111
"
3809
4112
 
3810
4113
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3811
4114
_LT_AC_SYS_COMPILER
3837
4140
    postinstall_cmds='$RANLIB $lib'
3838
4141
  fi
3839
4142
  ;;
3840
 
aix4* | aix5*)
 
4143
aix[[4-9]]*)
3841
4144
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3842
4145
    test "$enable_shared" = yes && enable_static=no
3843
4146
  fi
3850
4153
test "$enable_shared" = yes || enable_static=yes
3851
4154
AC_MSG_RESULT([$enable_static])
3852
4155
 
3853
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3854
 
 
3855
4156
_LT_AC_TAGVAR(GCC, $1)="$G77"
3856
4157
_LT_AC_TAGVAR(LD, $1)="$LD"
3857
4158
 
3861
4162
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3862
4163
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3863
4164
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3864
 
AC_LIBTOOL_SYS_LIB_STRIP
3865
 
 
3866
4165
 
3867
4166
AC_LIBTOOL_CONFIG($1)
3868
4167
 
3888
4187
_LT_AC_TAGVAR(objext, $1)=$objext
3889
4188
 
3890
4189
# Code to be used in simple compile tests
3891
 
lt_simple_compile_test_code="class foo {}\n"
 
4190
lt_simple_compile_test_code="class foo {}"
3892
4191
 
3893
4192
# Code to be used in simple link tests
3894
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4193
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
3895
4194
 
3896
4195
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3897
4196
_LT_AC_SYS_COMPILER
3923
4222
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3924
4223
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3925
4224
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3926
 
AC_LIBTOOL_SYS_LIB_STRIP
3927
 
AC_LIBTOOL_DLOPEN_SELF($1)
3928
4225
 
3929
4226
AC_LIBTOOL_CONFIG($1)
3930
4227
 
3934
4231
 
3935
4232
 
3936
4233
# AC_LIBTOOL_LANG_RC_CONFIG
3937
 
# --------------------------
 
4234
# -------------------------
3938
4235
# Ensure that the configuration vars for the Windows resource compiler are
3939
4236
# suitably defined.  Those variables are subsequently used by
3940
4237
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3950
4247
_LT_AC_TAGVAR(objext, $1)=$objext
3951
4248
 
3952
4249
# Code to be used in simple compile tests
3953
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4250
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
3954
4251
 
3955
4252
# Code to be used in simple link tests
3956
4253
lt_simple_link_test_code="$lt_simple_compile_test_code"
3997
4294
  # Now quote all the things that may contain metacharacters while being
3998
4295
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3999
4296
  # variables and quote the copies for generation of the libtool script.
4000
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4297
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4001
4298
    SED SHELL STRIP \
4002
4299
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4003
4300
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4024
4321
    _LT_AC_TAGVAR(predeps, $1) \
4025
4322
    _LT_AC_TAGVAR(postdeps, $1) \
4026
4323
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4324
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4027
4325
    _LT_AC_TAGVAR(archive_cmds, $1) \
4028
4326
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4029
4327
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4039
4337
    _LT_AC_TAGVAR(module_cmds, $1) \
4040
4338
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4041
4339
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4340
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4042
4341
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4043
4342
    _LT_AC_TAGVAR(include_expsyms, $1); do
4044
4343
 
4085
4384
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4086
4385
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4087
4386
#
4088
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4387
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4089
4388
# Free Software Foundation, Inc.
4090
4389
#
4091
4390
# This file is part of GNU Libtool:
4166
4465
# A C compiler.
4167
4466
LTCC=$lt_LTCC
4168
4467
 
 
4468
# LTCC compiler flags.
 
4469
LTCFLAGS=$lt_LTCFLAGS
 
4470
 
4169
4471
# A language-specific compiler.
4170
4472
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4171
4473
 
4319
4621
# shared library.
4320
4622
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4321
4623
 
 
4624
# The directories searched by this compiler when creating a shared
 
4625
# library
 
4626
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4627
 
4322
4628
# The library search path used internally by the compiler when linking
4323
4629
# a shared library.
4324
4630
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4407
4713
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4408
4714
 
4409
4715
# Fix the shell variable \$srcfile for the compiler.
4410
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4716
fix_srcfile_path=$lt_fix_srcfile_path
4411
4717
 
4412
4718
# Set to yes if exported symbols are required.
4413
4719
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4490
4796
# ---------------------------------
4491
4797
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4492
4798
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4799
AC_REQUIRE([LT_AC_PROG_SED])
4493
4800
AC_REQUIRE([AC_PROG_NM])
4494
4801
AC_REQUIRE([AC_OBJEXT])
4495
4802
# Check for command to grab the raw symbol name followed by C symbol from nm.
4526
4833
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4527
4834
  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'"
4528
4835
  ;;
4529
 
linux*)
 
4836
linux* | k*bsd*-gnu)
4530
4837
  if test "$host_cpu" = ia64; then
4531
4838
    symcode='[[ABCDGIRSTW]]'
4532
4839
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4539
4846
osf*)
4540
4847
  symcode='[[BCDEGQRST]]'
4541
4848
  ;;
4542
 
solaris* | sysv5*)
 
4849
solaris*)
4543
4850
  symcode='[[BDRT]]'
4544
4851
  ;;
 
4852
sco3.2v5*)
 
4853
  symcode='[[DT]]'
 
4854
  ;;
 
4855
sysv4.2uw2*)
 
4856
  symcode='[[DT]]'
 
4857
  ;;
 
4858
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4859
  symcode='[[ABDT]]'
 
4860
  ;;
4545
4861
sysv4)
4546
4862
  symcode='[[DFNSTU]]'
4547
4863
  ;;
4658
4974
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4659
4975
    cat conftest.$ac_ext >&5
4660
4976
  fi
4661
 
  rm -f conftest* conftst*
 
4977
  rm -rf conftest* conftst*
4662
4978
 
4663
4979
  # Do not use the global_symbol_pipe unless it works.
4664
4980
  if test "$pipe_works" = yes; then
4707
5023
      # like `-m68040'.
4708
5024
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4709
5025
      ;;
4710
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5026
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4711
5027
      # PIC is the default for these OSes.
4712
5028
      ;;
4713
 
    mingw* | os2* | pw32*)
 
5029
    mingw* | cygwin* | os2* | pw32*)
4714
5030
      # This hack is so that the source file can tell whether it is being
4715
5031
      # built for inclusion in a dll (and should export symbols for example).
4716
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5032
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5033
      # (--disable-auto-import) libraries
 
5034
      m4_if([$1], [GCJ], [],
 
5035
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4717
5036
      ;;
4718
5037
    darwin* | rhapsody*)
4719
5038
      # PIC is the default on this platform
4724
5043
      # DJGPP does not support shared libraries at all
4725
5044
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4726
5045
      ;;
 
5046
    interix[[3-9]]*)
 
5047
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5048
      # Instead, we relocate shared libraries at runtime.
 
5049
      ;;
4727
5050
    sysv4*MP*)
4728
5051
      if test -d /usr/nec; then
4729
5052
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4746
5069
    esac
4747
5070
  else
4748
5071
    case $host_os in
4749
 
      aix4* | aix5*)
 
5072
      aix[[4-9]]*)
4750
5073
        # All AIX code is PIC.
4751
5074
        if test "$host_cpu" = ia64; then
4752
5075
          # AIX 5 now supports IA64 processor
4786
5109
            ;;
4787
5110
        esac
4788
5111
        ;;
4789
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5112
      freebsd* | dragonfly*)
4790
5113
        # FreeBSD uses GNU C++
4791
5114
        ;;
4792
5115
      hpux9* | hpux10* | hpux11*)
4793
5116
        case $cc_basename in
4794
5117
          CC*)
4795
5118
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5119
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4797
5120
            if test "$host_cpu" != ia64; then
4798
5121
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4799
5122
            fi
4800
5123
            ;;
4801
5124
          aCC*)
4802
5125
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4803
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5126
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4804
5127
            case $host_cpu in
4805
5128
            hppa*64*|ia64*)
4806
5129
              # +Z the default
4814
5137
            ;;
4815
5138
        esac
4816
5139
        ;;
 
5140
      interix*)
 
5141
        # This is c89, which is MS Visual C++ (no shared libs)
 
5142
        # Anyone wants to do a port?
 
5143
        ;;
4817
5144
      irix5* | irix6* | nonstopux*)
4818
5145
        case $cc_basename in
4819
5146
          CC*)
4825
5152
            ;;
4826
5153
        esac
4827
5154
        ;;
4828
 
      linux*)
 
5155
      linux* | k*bsd*-gnu)
4829
5156
        case $cc_basename in
4830
5157
          KCC*)
4831
5158
            # KAI C++ Compiler
4838
5165
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4839
5166
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4840
5167
            ;;
4841
 
          pgCC*)
 
5168
          pgCC* | pgcpp*)
4842
5169
            # Portland Group C++ compiler.
4843
5170
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4844
5171
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4852
5179
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4853
5180
            ;;
4854
5181
          *)
 
5182
            case `$CC -V 2>&1 | sed 5q` in
 
5183
            *Sun\ C*)
 
5184
              # Sun C++ 5.9
 
5185
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5186
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5187
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5188
              ;;
 
5189
            esac
4855
5190
            ;;
4856
5191
        esac
4857
5192
        ;;
4893
5228
        ;;
4894
5229
      psos*)
4895
5230
        ;;
4896
 
      sco*)
4897
 
        case $cc_basename in
4898
 
          CC*)
4899
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4900
 
            ;;
4901
 
          *)
4902
 
            ;;
4903
 
        esac
4904
 
        ;;
4905
5231
      solaris*)
4906
5232
        case $cc_basename in
4907
5233
          CC*)
4943
5269
            ;;
4944
5270
        esac
4945
5271
        ;;
4946
 
      unixware*)
 
5272
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5273
        case $cc_basename in
 
5274
          CC*)
 
5275
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5276
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5277
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5278
            ;;
 
5279
        esac
4947
5280
        ;;
4948
5281
      vxworks*)
4949
5282
        ;;
4974
5307
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4975
5308
      ;;
4976
5309
 
4977
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5310
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4978
5311
      # PIC is the default for these OSes.
4979
5312
      ;;
4980
5313
 
4981
 
    mingw* | pw32* | os2*)
 
5314
    mingw* | cygwin* | pw32* | os2*)
4982
5315
      # This hack is so that the source file can tell whether it is being
4983
5316
      # built for inclusion in a dll (and should export symbols for example).
4984
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5317
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5318
      # (--disable-auto-import) libraries
 
5319
      m4_if([$1], [GCJ], [],
 
5320
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4985
5321
      ;;
4986
5322
 
4987
5323
    darwin* | rhapsody*)
4990
5326
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4991
5327
      ;;
4992
5328
 
 
5329
    interix[[3-9]]*)
 
5330
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5331
      # Instead, we relocate shared libraries at runtime.
 
5332
      ;;
 
5333
 
4993
5334
    msdosdjgpp*)
4994
5335
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4995
5336
      # on systems that don't support them.
5043
5384
       esac
5044
5385
       ;;
5045
5386
 
5046
 
    mingw* | pw32* | os2*)
 
5387
    mingw* | cygwin* | pw32* | os2*)
5047
5388
      # This hack is so that the source file can tell whether it is being
5048
5389
      # built for inclusion in a dll (and should export symbols for example).
5049
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5390
      m4_if([$1], [GCJ], [],
 
5391
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5050
5392
      ;;
5051
5393
 
5052
5394
    hpux9* | hpux10* | hpux11*)
5076
5418
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5077
5419
      ;;
5078
5420
 
5079
 
    linux*)
 
5421
    linux* | k*bsd*-gnu)
5080
5422
      case $cc_basename in
5081
5423
      icc* | ecc*)
5082
5424
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5095
5437
        # All Alpha code is PIC.
5096
5438
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5097
5439
        ;;
 
5440
      *)
 
5441
        case `$CC -V 2>&1 | sed 5q` in
 
5442
        *Sun\ C*)
 
5443
          # Sun C 5.9
 
5444
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5445
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5446
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5447
          ;;
 
5448
        *Sun\ F*)
 
5449
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5450
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5451
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5452
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5453
          ;;
 
5454
        esac
 
5455
        ;;
5098
5456
      esac
5099
5457
      ;;
5100
5458
 
5104
5462
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5105
5463
      ;;
5106
5464
 
5107
 
    sco3.2v5*)
5108
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5109
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
5465
    rdos*)
 
5466
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5110
5467
      ;;
5111
5468
 
5112
5469
    solaris*)
5126
5483
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5127
5484
      ;;
5128
5485
 
5129
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5486
    sysv4 | sysv4.2uw2* | sysv4.3*)
5130
5487
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5131
5488
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5132
5489
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5139
5496
      fi
5140
5497
      ;;
5141
5498
 
 
5499
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5500
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5501
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5502
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5503
      ;;
 
5504
 
5142
5505
    unicos*)
5143
5506
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5144
5507
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5162
5525
#
5163
5526
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5164
5527
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5165
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5528
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5166
5529
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5167
5530
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5168
5531
     "" | " "*) ;;
5180
5543
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5181
5544
    ;;
5182
5545
esac
 
5546
 
 
5547
#
 
5548
# Check to make sure the static flag actually works.
 
5549
#
 
5550
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5551
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5552
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5553
  $lt_tmp_static_flag,
 
5554
  [],
 
5555
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5183
5556
])
5184
5557
 
5185
5558
 
5187
5560
# ------------------------------------
5188
5561
# See if the linker supports building shared libraries.
5189
5562
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5190
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5563
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5564
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5191
5565
ifelse([$1],[CXX],[
5192
5566
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5193
5567
  case $host_os in
5194
 
  aix4* | aix5*)
 
5568
  aix[[4-9]]*)
5195
5569
    # If we're using GNU nm, then we don't want the "-C" option.
5196
5570
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5197
5571
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5204
5578
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5205
5579
  ;;
5206
5580
  cygwin* | mingw*)
5207
 
    _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'
 
5581
    _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'
5208
5582
  ;;
5209
5583
  *)
5210
5584
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5211
5585
  ;;
5212
5586
  esac
 
5587
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5213
5588
],[
5214
5589
  runpath_var=
5215
5590
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5240
5615
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5241
5616
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5242
5617
  # as well as any symbol that contains `d'.
5243
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5618
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5244
5619
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5245
5620
  # platforms (ab)use it in PIC code, but their linkers get confused if
5246
5621
  # the symbol is explicitly referenced.  Since portable code cannot
5247
5622
  # rely on this symbol name, it's probably fine to never include it in
5248
5623
  # preloaded symbol tables.
 
5624
  # Exclude shared library initialization/finalization symbols.
 
5625
dnl Note also adjust exclude_expsyms for C++ above.
5249
5626
  extract_expsyms_cmds=
5250
5627
  # Just being paranoid about ensuring that cc_basename is set.
5251
5628
  _LT_CC_BASENAME([$compiler])
5258
5635
      with_gnu_ld=no
5259
5636
    fi
5260
5637
    ;;
 
5638
  interix*)
 
5639
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5640
    with_gnu_ld=yes
 
5641
    ;;
5261
5642
  openbsd*)
5262
5643
    with_gnu_ld=no
5263
5644
    ;;
5291
5672
 
5292
5673
    # See if GNU ld supports shared libraries.
5293
5674
    case $host_os in
5294
 
    aix3* | aix4* | aix5*)
 
5675
    aix[[3-9]]*)
5295
5676
      # On AIX/PPC, the GNU linker is very broken
5296
5677
      if test "$host_cpu" != ia64; then
5297
5678
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5339
5720
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5340
5721
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5341
5722
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5342
 
      _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'
 
5723
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5343
5724
 
5344
5725
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5345
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5726
        _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'
5346
5727
        # If the export-symbols file already is a .def file (1st line
5347
5728
        # is EXPORTS), use it as is; otherwise, prepend...
5348
5729
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5351
5732
          echo EXPORTS > $output_objdir/$soname.def;
5352
5733
          cat $export_symbols >> $output_objdir/$soname.def;
5353
5734
        fi~
5354
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5735
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5355
5736
      else
5356
5737
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5357
5738
      fi
5358
5739
      ;;
5359
5740
 
5360
 
    linux*)
 
5741
    interix[[3-9]]*)
 
5742
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5743
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5744
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5745
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5746
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5747
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5748
      # default) and relocated if they conflict, which is a slow very memory
 
5749
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5750
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5751
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5752
      _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'
 
5753
      _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'
 
5754
      ;;
 
5755
 
 
5756
    gnu* | linux* | k*bsd*-gnu)
5361
5757
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5362
5758
        tmp_addflag=
5363
5759
        case $cc_basename,$host_cpu in
5375
5771
        ifc* | ifort*)                  # Intel Fortran compiler
5376
5772
          tmp_addflag=' -nofor_main' ;;
5377
5773
        esac
5378
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5774
        case `$CC -V 2>&1 | sed 5q` in
 
5775
        *Sun\ C*)                       # Sun C 5.9
 
5776
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5777
          tmp_sharedflag='-G' ;;
 
5778
        *Sun\ F*)                       # Sun Fortran 8.3
 
5779
          tmp_sharedflag='-G' ;;
 
5780
        *)
 
5781
          tmp_sharedflag='-shared' ;;
 
5782
        esac
 
5783
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5379
5784
 
5380
5785
        if test $supports_anon_versioning = yes; then
5381
5786
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5382
5787
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5383
5788
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5384
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5789
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5385
5790
        fi
5386
5791
      else
5387
5792
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5398
5803
      fi
5399
5804
      ;;
5400
5805
 
5401
 
    solaris* | sysv5*)
 
5806
    solaris*)
5402
5807
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5403
5808
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5404
5809
        cat <<EOF 1>&2
5419
5824
      fi
5420
5825
      ;;
5421
5826
 
 
5827
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5828
      case `$LD -v 2>&1` in
 
5829
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5830
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5831
        cat <<_LT_EOF 1>&2
 
5832
 
 
5833
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5834
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5835
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5836
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5837
*** your PATH or compiler configuration so that the native linker is
 
5838
*** used, and then restart.
 
5839
 
 
5840
_LT_EOF
 
5841
        ;;
 
5842
        *)
 
5843
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5844
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5845
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5846
            _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'
 
5847
          else
 
5848
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5849
          fi
 
5850
        ;;
 
5851
      esac
 
5852
      ;;
 
5853
 
5422
5854
    sunos4*)
5423
5855
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5424
5856
      wlarc=
5452
5884
      # Note: this linker hardcodes the directories in LIBPATH if there
5453
5885
      # are no directories specified by -L.
5454
5886
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5455
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5887
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5456
5888
        # Neither direct hardcoding nor static linking is supported with a
5457
5889
        # broken collect2.
5458
5890
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5459
5891
      fi
5460
5892
      ;;
5461
5893
 
5462
 
    aix4* | aix5*)
 
5894
    aix[[4-9]]*)
5463
5895
      if test "$host_cpu" = ia64; then
5464
5896
        # On IA64, the linker does run time linking by default, so we don't
5465
5897
        # have to do anything special.
5479
5911
        # Test if we are trying to use run time linking or normal
5480
5912
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5481
5913
        # need to do runtime linking.
5482
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5914
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5483
5915
          for ld_flag in $LDFLAGS; do
5484
5916
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5485
5917
            aix_use_runtimelinking=yes
5486
5918
            break
5487
5919
          fi
5488
5920
          done
 
5921
          ;;
5489
5922
        esac
5490
5923
 
5491
5924
        exp_sym_flag='-bexport'
5512
5945
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5513
5946
          then
5514
5947
          # We have reworked collect2
5515
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5948
          :
5516
5949
          else
5517
5950
          # We have old collect2
5518
5951
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5523
5956
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5524
5957
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5525
5958
          fi
 
5959
          ;;
5526
5960
        esac
5527
5961
        shared_flag='-shared'
5528
5962
        if test "$aix_use_runtimelinking" = yes; then
5535
5969
        # chokes on -Wl,-G. The following line is correct:
5536
5970
          shared_flag='-G'
5537
5971
        else
5538
 
        if test "$aix_use_runtimelinking" = yes; then
 
5972
          if test "$aix_use_runtimelinking" = yes; then
5539
5973
            shared_flag='${wl}-G'
5540
5974
          else
5541
5975
            shared_flag='${wl}-bM:SRE'
5542
 
        fi
 
5976
          fi
5543
5977
        fi
5544
5978
      fi
5545
5979
 
5553
5987
       # Determine the default libpath from the value encoded in an empty executable.
5554
5988
       _LT_AC_SYS_LIBPATH_AIX
5555
5989
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5556
 
        _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"
 
5990
        _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"
5557
5991
       else
5558
5992
        if test "$host_cpu" = ia64; then
5559
5993
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5560
5994
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5561
 
          _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"
 
5995
          _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"
5562
5996
        else
5563
5997
         # Determine the default libpath from the value encoded in an empty executable.
5564
5998
         _LT_AC_SYS_LIBPATH_AIX
5567
6001
          # -berok will link without error, but may produce a broken library.
5568
6002
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5569
6003
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5570
 
          # -bexpall does not export symbols beginning with underscore (_)
5571
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5572
6004
          # Exported symbols can be pulled into shared objects from archives
5573
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
6005
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5574
6006
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5575
6007
          # This is similar to how AIX traditionally builds its shared libraries.
5576
 
          _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'
 
6008
          _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'
5577
6009
        fi
5578
6010
      fi
5579
6011
      ;;
5606
6038
      # The linker will automatically build a .lib file if we build a DLL.
5607
6039
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5608
6040
      # FIXME: Should let the user specify the lib program.
5609
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6041
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5610
6042
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5611
6043
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5612
6044
      ;;
5639
6071
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5640
6072
    if test "$GCC" = yes ; then
5641
6073
        output_verbose_link_cmd='echo'
5642
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5643
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5644
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5645
 
      _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}'
5646
 
      _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}'
 
6074
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6075
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6076
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6077
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
5647
6078
    else
5648
6079
      case $cc_basename in
5649
6080
        xlc*)
5650
6081
         output_verbose_link_cmd='echo'
5651
 
         _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'
 
6082
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5652
6083
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5653
6084
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5654
 
         _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}'
 
6085
         _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5655
6086
          _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}'
5656
6087
          ;;
5657
6088
       *)
5691
6122
      ;;
5692
6123
 
5693
6124
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5694
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6125
    freebsd* | dragonfly*)
5695
6126
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5696
6127
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5697
6128
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5714
6145
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5715
6146
      ;;
5716
6147
 
5717
 
    hpux10* | hpux11*)
 
6148
    hpux10*)
 
6149
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6150
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6151
      else
 
6152
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6153
      fi
 
6154
      if test "$with_gnu_ld" = no; then
 
6155
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6156
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6157
 
 
6158
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6159
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6160
 
 
6161
        # hardcode_minus_L: Not really in the search PATH,
 
6162
        # but as the default location of the library.
 
6163
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6164
      fi
 
6165
      ;;
 
6166
 
 
6167
    hpux11*)
5718
6168
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5719
6169
        case $host_cpu in
5720
 
        hppa*64*|ia64*)
 
6170
        hppa*64*)
5721
6171
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5722
6172
          ;;
 
6173
        ia64*)
 
6174
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6175
          ;;
5723
6176
        *)
5724
6177
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5725
6178
          ;;
5726
6179
        esac
5727
6180
      else
5728
6181
        case $host_cpu in
5729
 
        hppa*64*|ia64*)
5730
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6182
        hppa*64*)
 
6183
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6184
          ;;
 
6185
        ia64*)
 
6186
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5731
6187
          ;;
5732
6188
        *)
5733
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6189
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5734
6190
          ;;
5735
6191
        esac
5736
6192
      fi
5737
6193
      if test "$with_gnu_ld" = no; then
 
6194
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6195
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6196
 
5738
6197
        case $host_cpu in
5739
 
        hppa*64*)
5740
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6198
        hppa*64*|ia64*)
5741
6199
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5742
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5743
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5744
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5745
 
          ;;
5746
 
        ia64*)
5747
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5748
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5749
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5750
 
 
5751
 
          # hardcode_minus_L: Not really in the search PATH,
5752
 
          # but as the default location of the library.
5753
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6200
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6201
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5754
6202
          ;;
5755
6203
        *)
5756
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5757
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5758
6204
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5759
6205
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5760
6206
 
5798
6244
      ;;
5799
6245
 
5800
6246
    openbsd*)
5801
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5802
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5803
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5804
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5805
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5806
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5807
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6247
      if test -f /usr/libexec/ld.so; then
 
6248
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6249
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6250
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6251
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6252
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6253
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6254
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6255
        else
 
6256
          case $host_os in
 
6257
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6258
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6259
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6260
             ;;
 
6261
           *)
 
6262
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6263
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6264
             ;;
 
6265
          esac
 
6266
        fi
5808
6267
      else
5809
 
       case $host_os in
5810
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5811
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5812
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5813
 
           ;;
5814
 
         *)
5815
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5816
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5817
 
           ;;
5818
 
       esac
 
6268
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5819
6269
      fi
5820
6270
      ;;
5821
6271
 
5856
6306
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5857
6307
      ;;
5858
6308
 
5859
 
    sco3.2v5*)
5860
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5861
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5862
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5863
 
      runpath_var=LD_RUN_PATH
5864
 
      hardcode_runpath_var=yes
5865
 
      ;;
5866
 
 
5867
6309
    solaris*)
5868
6310
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5869
6311
      if test "$GCC" = yes; then
5882
6324
      case $host_os in
5883
6325
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5884
6326
      *)
5885
 
        # The compiler driver will combine linker options so we
5886
 
        # cannot just pass the convience library names through
5887
 
        # without $wl, iff we do not link with $LD.
5888
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6327
        # The compiler driver will combine and reorder linker options,
 
6328
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6329
        # but is careful enough not to reorder.
5889
6330
        # Supported since Solaris 2.6 (maybe 2.5.1?)
5890
 
        case $wlarc in
5891
 
        '')
5892
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5893
 
        *)
5894
 
          _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' ;;
5895
 
        esac ;;
 
6331
        if test "$GCC" = yes; then
 
6332
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6333
        else
 
6334
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6335
        fi
 
6336
        ;;
5896
6337
      esac
5897
6338
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5898
6339
      ;;
5949
6390
      fi
5950
6391
      ;;
5951
6392
 
5952
 
    sysv4.2uw2*)
5953
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5954
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5955
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5956
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5957
 
      hardcode_runpath_var=yes
5958
 
      runpath_var=LD_RUN_PATH
5959
 
      ;;
5960
 
 
5961
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5962
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5963
 
      if test "$GCC" = yes; then
5964
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5965
 
      else
5966
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5967
 
      fi
5968
 
      runpath_var='LD_RUN_PATH'
5969
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5970
 
      ;;
5971
 
 
5972
 
    sysv5*)
5973
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5974
 
      # $CC -shared without GNU ld will not create a library from C++
5975
 
      # object files and a static libstdc++, better avoid it by now
5976
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5978
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5979
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5980
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5981
 
      runpath_var='LD_RUN_PATH'
 
6393
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6394
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6395
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6396
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6397
      runpath_var='LD_RUN_PATH'
 
6398
 
 
6399
      if test "$GCC" = yes; then
 
6400
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6401
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6402
      else
 
6403
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6404
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6405
      fi
 
6406
      ;;
 
6407
 
 
6408
    sysv5* | sco3.2v5* | sco5v6*)
 
6409
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6410
      # link with -lc, and that would cause any symbols used from libc to
 
6411
      # always be unresolved, which means just about no library would
 
6412
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6413
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6414
      # as -z defs.
 
6415
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6416
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6417
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6418
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6419
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6420
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6421
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6422
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6423
      runpath_var='LD_RUN_PATH'
 
6424
 
 
6425
      if test "$GCC" = yes; then
 
6426
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6427
        _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'
 
6428
      else
 
6429
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6430
        _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'
 
6431
      fi
5982
6432
      ;;
5983
6433
 
5984
6434
    uts4*)
5996
6446
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5997
6447
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5998
6448
 
5999
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6000
 
if test "$GCC" = yes; then
6001
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6002
 
fi
6003
 
 
6004
6449
#
6005
6450
# Do we need to explicitly link libc?
6006
6451
#
6020
6465
      # to ld, don't add -lc before -lgcc.
6021
6466
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6022
6467
      $rm conftest*
6023
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6468
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6024
6469
 
6025
6470
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6026
6471
        soname=conftest
6028
6473
        libobjs=conftest.$ac_objext
6029
6474
        deplibs=
6030
6475
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6476
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6031
6477
        compiler_flags=-v
6032
6478
        linker_flags=-v
6033
6479
        verstring=
6122
6568
[AC_CHECK_TOOL(RC, windres, no)
6123
6569
])
6124
6570
 
 
6571
 
 
6572
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6573
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6574
 
 
6575
# _AS_TEST_PREPARE
 
6576
# ----------------
 
6577
m4_ifndef([_AS_TEST_PREPARE],
 
6578
[m4_defun([_AS_TEST_PREPARE],
 
6579
[if test -x / >/dev/null 2>&1; then
 
6580
  as_executable_p='test -x'
 
6581
else
 
6582
  as_executable_p='test -f'
 
6583
fi
 
6584
])])# _AS_TEST_PREPARE
 
6585
 
 
6586
# AS_EXECUTABLE_P
 
6587
# ---------------
 
6588
# Check whether a file is executable.
 
6589
m4_ifndef([AS_EXECUTABLE_P],
 
6590
[m4_defun([AS_EXECUTABLE_P],
 
6591
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6592
$as_executable_p $1[]dnl
 
6593
])])# AS_EXECUTABLE_P
 
6594
 
6125
6595
############################################################
6126
6596
# NOTE: This macro has been submitted for inclusion into   #
6127
6597
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6144
6614
  test -z "$as_dir" && as_dir=.
6145
6615
  for lt_ac_prog in sed gsed; do
6146
6616
    for ac_exec_ext in '' $ac_executable_extensions; do
6147
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6617
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6148
6618
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6149
6619
      fi
6150
6620
    done
6151
6621
  done
6152
6622
done
 
6623
IFS=$as_save_IFS
6153
6624
lt_ac_max=0
6154
6625
lt_ac_count=0
6155
6626
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6182
6653
done
6183
6654
])
6184
6655
SED=$lt_cv_path_SED
 
6656
AC_SUBST([SED])
6185
6657
AC_MSG_RESULT([$SED])
6186
6658
])