aboutsummaryrefslogtreecommitdiff
path: root/libltdl/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libltdl/aclocal.m4')
-rw-r--r--libltdl/aclocal.m41662
1 files changed, 1060 insertions, 602 deletions
diff --git a/libltdl/aclocal.m4 b/libltdl/aclocal.m4
index f83c9b74..4f3077ba 100644
--- a/libltdl/aclocal.m4
+++ b/libltdl/aclocal.m4
@@ -13,8 +13,7 @@
13 13
14# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 14# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15 15
16# serial 47 AC_PROG_LIBTOOL 16# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
17# Debian $Rev: 214 $
18 17
19 18
20# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 19# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
@@ -124,7 +123,7 @@ esac
124 123
125# Sed substitution that helps us do robust quoting. It backslashifies 124# Sed substitution that helps us do robust quoting. It backslashifies
126# metacharacters that are still active within double-quoted strings. 125# metacharacters that are still active within double-quoted strings.
127Xsed='sed -e s/^X//' 126Xsed='sed -e 1s/^X//'
128[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 127[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129 128
130# Same as above, but do not quote variable references. 129# Same as above, but do not quote variable references.
@@ -144,7 +143,7 @@ rm="rm -f"
144default_ofile=libtool 143default_ofile=libtool
145can_build_shared=yes 144can_build_shared=yes
146 145
147# All known linkers require a `.a' archive for static linking (except M$VC, 146# All known linkers require a `.a' archive for static linking (except MSVC,
148# which needs '.lib'). 147# which needs '.lib').
149libext=a 148libext=a
150ltmain="$ac_aux_dir/ltmain.sh" 149ltmain="$ac_aux_dir/ltmain.sh"
@@ -164,6 +163,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
164test -z "$AS" && AS=as 163test -z "$AS" && AS=as
165test -z "$CC" && CC=cc 164test -z "$CC" && CC=cc
166test -z "$LTCC" && LTCC=$CC 165test -z "$LTCC" && LTCC=$CC
166test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167test -z "$DLLTOOL" && DLLTOOL=dlltool 167test -z "$DLLTOOL" && DLLTOOL=dlltool
168test -z "$LD" && LD=ld 168test -z "$LD" && LD=ld
169test -z "$LN_S" && LN_S="ln -s" 169test -z "$LN_S" && LN_S="ln -s"
@@ -183,15 +183,17 @@ old_postuninstall_cmds=
183if test -n "$RANLIB"; then 183if test -n "$RANLIB"; then
184 case $host_os in 184 case $host_os in
185 openbsd*) 185 openbsd*)
186 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
187 ;; 187 ;;
188 *) 188 *)
189 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
190 ;; 190 ;;
191 esac 191 esac
192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193fi 193fi
194 194
195_LT_CC_BASENAME([$compiler])
196
195# Only perform the check for file, if the check method requires it 197# Only perform the check for file, if the check method requires it
196case $deplibs_check_method in 198case $deplibs_check_method in
197file_magic*) 199file_magic*)
@@ -232,11 +234,56 @@ AC_DEFUN([_LT_AC_SYS_COMPILER],
232# If no C compiler was specified, use CC. 234# If no C compiler was specified, use CC.
233LTCC=${LTCC-"$CC"} 235LTCC=${LTCC-"$CC"}
234 236
237# If no C compiler flags were specified, use CFLAGS.
238LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
239
235# Allow CC to be a program name with arguments. 240# Allow CC to be a program name with arguments.
236compiler=$CC 241compiler=$CC
237])# _LT_AC_SYS_COMPILER 242])# _LT_AC_SYS_COMPILER
238 243
239 244
245# _LT_CC_BASENAME(CC)
246# -------------------
247# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
248AC_DEFUN([_LT_CC_BASENAME],
249[for cc_temp in $1""; do
250 case $cc_temp in
251 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
252 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
253 \-*) ;;
254 *) break;;
255 esac
256done
257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
258])
259
260
261# _LT_COMPILER_BOILERPLATE
262# ------------------------
263# Check for compiler boilerplate output or warnings with
264# the simple compiler test code.
265AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266[ac_outfile=conftest.$ac_objext
267printf "$lt_simple_compile_test_code" >conftest.$ac_ext
268eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269_lt_compiler_boilerplate=`cat conftest.err`
270$rm conftest*
271])# _LT_COMPILER_BOILERPLATE
272
273
274# _LT_LINKER_BOILERPLATE
275# ----------------------
276# Check for linker boilerplate output or warnings with
277# the simple link test code.
278AC_DEFUN([_LT_LINKER_BOILERPLATE],
279[ac_outfile=conftest.$ac_objext
280printf "$lt_simple_link_test_code" >conftest.$ac_ext
281eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282_lt_linker_boilerplate=`cat conftest.err`
283$rm conftest*
284])# _LT_LINKER_BOILERPLATE
285
286
240# _LT_AC_SYS_LIBPATH_AIX 287# _LT_AC_SYS_LIBPATH_AIX
241# ---------------------- 288# ----------------------
242# Links a minimal program and checks the executable 289# Links a minimal program and checks the executable
@@ -309,15 +356,15 @@ fi
309 356
310# The HP-UX ksh and POSIX shell print the target directory to stdout 357# The HP-UX ksh and POSIX shell print the target directory to stdout
311# if CDPATH is set. 358# if CDPATH is set.
312if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 359(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
313 360
314if test -z "$ECHO"; then 361if test -z "$ECHO"; then
315if test "X${echo_test_string+set}" != Xset; then 362if test "X${echo_test_string+set}" != Xset; then
316# find a string as large as possible, as long as the shell can cope with it 363# find a string as large as possible, as long as the shell can cope with it
317 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 364 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
318 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 365 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
319 if (echo_test_string="`eval $cmd`") 2>/dev/null && 366 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
320 echo_test_string="`eval $cmd`" && 367 echo_test_string=`eval $cmd` &&
321 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 368 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
322 then 369 then
323 break 370 break
@@ -486,7 +533,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
486 # Find out which ABI we are using. 533 # Find out which ABI we are using.
487 echo 'int i;' > conftest.$ac_ext 534 echo 'int i;' > conftest.$ac_ext
488 if AC_TRY_EVAL(ac_compile); then 535 if AC_TRY_EVAL(ac_compile); then
489 case "`/usr/bin/file conftest.o`" in 536 case `/usr/bin/file conftest.o` in
490 *32-bit*) 537 *32-bit*)
491 case $host in 538 case $host in
492 x86_64-*linux*) 539 x86_64-*linux*)
@@ -537,6 +584,22 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
537 CFLAGS="$SAVE_CFLAGS" 584 CFLAGS="$SAVE_CFLAGS"
538 fi 585 fi
539 ;; 586 ;;
587sparc*-*solaris*)
588 # Find out which ABI we are using.
589 echo 'int i;' > conftest.$ac_ext
590 if AC_TRY_EVAL(ac_compile); then
591 case `/usr/bin/file conftest.o` in
592 *64-bit*)
593 case $lt_cv_prog_gnu_ld in
594 yes*) LD="${LD-ld} -m elf64_sparc" ;;
595 *) LD="${LD-ld} -64" ;;
596 esac
597 ;;
598 esac
599 fi
600 rm -rf conftest*
601 ;;
602
540AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 603AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
541[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 604[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
542 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 605 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
@@ -568,7 +631,7 @@ AC_CACHE_CHECK([$1], [$2],
568 # with a dollar sign (not a hyphen), so the echo should work correctly. 631 # with a dollar sign (not a hyphen), so the echo should work correctly.
569 # The option is referenced via a variable to avoid confusing sed. 632 # The option is referenced via a variable to avoid confusing sed.
570 lt_compile=`echo "$ac_compile" | $SED \ 633 lt_compile=`echo "$ac_compile" | $SED \
571 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
572 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 635 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
573 -e 's:$: $lt_compiler_flag:'` 636 -e 's:$: $lt_compiler_flag:'`
574 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 637 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
@@ -578,8 +641,10 @@ AC_CACHE_CHECK([$1], [$2],
578 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 641 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
579 if (exit $ac_status) && test -s "$ac_outfile"; then 642 if (exit $ac_status) && test -s "$ac_outfile"; then
580 # The compiler can only warn and ignore the option if not recognized 643 # The compiler can only warn and ignore the option if not recognized
581 # So say no if there are warnings 644 # So say no if there are warnings other than the usual output.
582 if test ! -s conftest.err; then 645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
583 $2=yes 648 $2=yes
584 fi 649 fi
585 fi 650 fi
@@ -605,11 +670,16 @@ AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
605 LDFLAGS="$LDFLAGS $3" 670 LDFLAGS="$LDFLAGS $3"
606 printf "$lt_simple_link_test_code" > conftest.$ac_ext 671 printf "$lt_simple_link_test_code" > conftest.$ac_ext
607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
608 # The compiler can only warn and ignore the option if not recognized 673 # The linker can only warn and ignore the option if not recognized
609 # So say no if there are warnings 674 # So say no if there are warnings
610 if test -s conftest.err; then 675 if test -s conftest.err; then
611 # Append any errors to the config.log. 676 # Append any errors to the config.log.
612 cat conftest.err 1>&AS_MESSAGE_LOG_FD 677 cat conftest.err 1>&AS_MESSAGE_LOG_FD
678 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
680 if diff conftest.exp conftest.er2 >/dev/null; then
681 $2=yes
682 fi
613 else 683 else
614 $2=yes 684 $2=yes
615 fi 685 fi
@@ -668,11 +738,55 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
668 lt_cv_sys_max_cmd_len=8192; 738 lt_cv_sys_max_cmd_len=8192;
669 ;; 739 ;;
670 740
671 *) 741 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
742 # This has been around since 386BSD, at least. Likely further.
743 if test -x /sbin/sysctl; then
744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
745 elif test -x /usr/sbin/sysctl; then
746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
747 else
748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
749 fi
750 # And add a safety zone
751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
753 ;;
754
755 interix*)
756 # We know the value 262144 and hardcode it with a safety zone (like BSD)
757 lt_cv_sys_max_cmd_len=196608
758 ;;
759
760 osf*)
761 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
762 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
763 # nice to cause kernel panics so lets avoid the loop below.
764 # First set a reasonable default.
765 lt_cv_sys_max_cmd_len=16384
766 #
767 if test -x /sbin/sysconfig; then
768 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
769 *1*) lt_cv_sys_max_cmd_len=-1 ;;
770 esac
771 fi
772 ;;
773 sco3.2v5*)
774 lt_cv_sys_max_cmd_len=102400
775 ;;
776 sysv5* | sco5v6* | sysv4.2uw2*)
777 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
778 if test -n "$kargmax"; then
779 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
780 else
781 lt_cv_sys_max_cmd_len=32768
782 fi
783 ;;
784 *)
672 # If test is not a shell built-in, we'll probably end up computing a 785 # If test is not a shell built-in, we'll probably end up computing a
673 # maximum length that is only half of the actual maximum length, but 786 # maximum length that is only half of the actual maximum length, but
674 # we can't tell. 787 # we can't tell.
675 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676 = "XX$teststring") >/dev/null 2>&1 && 790 = "XX$teststring") >/dev/null 2>&1 &&
677 new_result=`expr "X$teststring" : ".*" 2>&1` && 791 new_result=`expr "X$teststring" : ".*" 2>&1` &&
678 lt_cv_sys_max_cmd_len=$new_result && 792 lt_cv_sys_max_cmd_len=$new_result &&
@@ -698,7 +812,7 @@ fi
698 812
699 813
700# _LT_AC_CHECK_DLFCN 814# _LT_AC_CHECK_DLFCN
701# -------------------- 815# ------------------
702AC_DEFUN([_LT_AC_CHECK_DLFCN], 816AC_DEFUN([_LT_AC_CHECK_DLFCN],
703[AC_CHECK_HEADERS(dlfcn.h)dnl 817[AC_CHECK_HEADERS(dlfcn.h)dnl
704])# _LT_AC_CHECK_DLFCN 818])# _LT_AC_CHECK_DLFCN
@@ -706,7 +820,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN],
706 820
707# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 821# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
708# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 822# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
709# ------------------------------------------------------------------ 823# ---------------------------------------------------------------------
710AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 824AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
711[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 825[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
712if test "$cross_compiling" = yes; then : 826if test "$cross_compiling" = yes; then :
@@ -772,17 +886,19 @@ int main ()
772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
773 /* dlclose (self); */ 887 /* dlclose (self); */
774 } 888 }
889 else
890 puts (dlerror ());
775 891
776 exit (status); 892 exit (status);
777}] 893}]
778EOF 894EOF
779 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 895 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
780 (./conftest; exit; ) 2>/dev/null 896 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
781 lt_status=$? 897 lt_status=$?
782 case x$lt_status in 898 case x$lt_status in
783 x$lt_dlno_uscore) $1 ;; 899 x$lt_dlno_uscore) $1 ;;
784 x$lt_dlneed_uscore) $2 ;; 900 x$lt_dlneed_uscore) $2 ;;
785 x$lt_unknown|x*) $3 ;; 901 x$lt_dlunknown|x*) $3 ;;
786 esac 902 esac
787 else : 903 else :
788 # compilation failed 904 # compilation failed
@@ -794,7 +910,7 @@ rm -fr conftest*
794 910
795 911
796# AC_LIBTOOL_DLOPEN_SELF 912# AC_LIBTOOL_DLOPEN_SELF
797# ------------------- 913# ----------------------
798AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 914AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
799[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 915[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
800if test "x$enable_dlopen" != xyes; then 916if test "x$enable_dlopen" != xyes; then
@@ -865,7 +981,7 @@ else
865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 981 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
866 982
867 save_LDFLAGS="$LDFLAGS" 983 save_LDFLAGS="$LDFLAGS"
868 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
869 985
870 save_LIBS="$LIBS" 986 save_LIBS="$LIBS"
871 LIBS="$lt_cv_dlopen_libs $LIBS" 987 LIBS="$lt_cv_dlopen_libs $LIBS"
@@ -878,7 +994,7 @@ else
878 ]) 994 ])
879 995
880 if test "x$lt_cv_dlopen_self" = xyes; then 996 if test "x$lt_cv_dlopen_self" = xyes; then
881 LDFLAGS="$LDFLAGS $link_static_flag" 997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
882 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 998 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
883 lt_cv_dlopen_self_static, [dnl 999 lt_cv_dlopen_self_static, [dnl
884 _LT_AC_TRY_DLOPEN_SELF( 1000 _LT_AC_TRY_DLOPEN_SELF(
@@ -926,7 +1042,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
926 # Note that $ac_compile itself does not contain backslashes and begins 1042 # Note that $ac_compile itself does not contain backslashes and begins
927 # with a dollar sign (not a hyphen), so the echo should work correctly. 1043 # with a dollar sign (not a hyphen), so the echo should work correctly.
928 lt_compile=`echo "$ac_compile" | $SED \ 1044 lt_compile=`echo "$ac_compile" | $SED \
929 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 1045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
930 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1046 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
931 -e 's:$: $lt_compiler_flag:'` 1047 -e 's:$: $lt_compiler_flag:'`
932 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1048 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
@@ -938,11 +1054,13 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
938 then 1054 then
939 # The compiler can only warn and ignore the option if not recognized 1055 # The compiler can only warn and ignore the option if not recognized
940 # So say no if there are warnings 1056 # So say no if there are warnings
941 if test ! -s out/conftest.err; then 1057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
942 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1060 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
943 fi 1061 fi
944 fi 1062 fi
945 chmod u+w . 1063 chmod u+w . 2>&AS_MESSAGE_LOG_FD
946 $rm conftest* 1064 $rm conftest*
947 # SGI C++ compiler will create directory out/ii_files/ for 1065 # SGI C++ compiler will create directory out/ii_files/ for
948 # template instantiation 1066 # template instantiation
@@ -1006,8 +1124,8 @@ AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1006[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1124[AC_MSG_CHECKING([how to hardcode library paths into programs])
1007_LT_AC_TAGVAR(hardcode_action, $1)= 1125_LT_AC_TAGVAR(hardcode_action, $1)=
1008if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1126if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1009 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ 1127 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1010 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then 1128 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1011 1129
1012 # We can hardcode non-existant directories. 1130 # We can hardcode non-existant directories.
1013 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1131 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
@@ -1174,7 +1292,7 @@ beos*)
1174 shlibpath_var=LIBRARY_PATH 1292 shlibpath_var=LIBRARY_PATH
1175 ;; 1293 ;;
1176 1294
1177bsdi4*) 1295bsdi[[45]]*)
1178 version_type=linux 1296 version_type=linux
1179 need_version=no 1297 need_version=no
1180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -1202,7 +1320,8 @@ cygwin* | mingw* | pw32*)
1202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1203 dldir=$destdir/`dirname \$dlpath`~ 1321 dldir=$destdir/`dirname \$dlpath`~
1204 test -d \$dldir || mkdir -p \$dldir~ 1322 test -d \$dldir || mkdir -p \$dldir~
1205 $install_prog $dir/$dlname \$dldir/$dlname' 1323 $install_prog $dir/$dlname \$dldir/$dlname~
1324 chmod a+x \$dldir/$dlname'
1206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1207 dlpath=$dir/\$dldll~ 1326 dlpath=$dir/\$dldll~
1208 $rm \$dlpath' 1327 $rm \$dlpath'
@@ -1232,7 +1351,7 @@ cygwin* | mingw* | pw32*)
1232 ;; 1351 ;;
1233 pw32*) 1352 pw32*)
1234 # pw32 DLLs use 'pw' prefix rather than 'lib' 1353 # pw32 DLLs use 'pw' prefix rather than 'lib'
1235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 1354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1236 ;; 1355 ;;
1237 esac 1356 esac
1238 ;; 1357 ;;
@@ -1255,7 +1374,7 @@ darwin* | rhapsody*)
1255 soname_spec='${libname}${release}${major}$shared_ext' 1374 soname_spec='${libname}${release}${major}$shared_ext'
1256 shlibpath_overrides_runpath=yes 1375 shlibpath_overrides_runpath=yes
1257 shlibpath_var=DYLD_LIBRARY_PATH 1376 shlibpath_var=DYLD_LIBRARY_PATH
1258 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 1377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1259 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1378 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1260 if test "$GCC" = yes; then 1379 if test "$GCC" = yes; then
1261 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"` 1380 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"`
@@ -1278,20 +1397,17 @@ freebsd1*)
1278 dynamic_linker=no 1397 dynamic_linker=no
1279 ;; 1398 ;;
1280 1399
1281kfreebsd*-gnu) 1400freebsd* | dragonfly*)
1282 version_type=linux 1401 # DragonFly does not have aout. When/if they implement a new
1283 need_lib_prefix=no 1402 # versioning mechanism, adjust this.
1284 need_version=no 1403 if test -x /usr/bin/objformat; then
1285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1404 objformat=`/usr/bin/objformat`
1286 soname_spec='${libname}${release}${shared_ext}$major' 1405 else
1287 shlibpath_var=LD_LIBRARY_PATH 1406 case $host_os in
1288 shlibpath_overrides_runpath=no 1407 freebsd[[123]]*) objformat=aout ;;
1289 hardcode_into_libs=yes 1408 *) objformat=elf ;;
1290 dynamic_linker='GNU ld.so' 1409 esac
1291 ;; 1410 fi
1292
1293freebsd*)
1294 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1295 version_type=freebsd-$objformat 1411 version_type=freebsd-$objformat
1296 case $version_type in 1412 case $version_type in
1297 freebsd-elf*) 1413 freebsd-elf*)
@@ -1309,14 +1425,19 @@ freebsd*)
1309 freebsd2*) 1425 freebsd2*)
1310 shlibpath_overrides_runpath=yes 1426 shlibpath_overrides_runpath=yes
1311 ;; 1427 ;;
1312 freebsd3.[01]* | freebsdelf3.[01]*) 1428 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1313 shlibpath_overrides_runpath=yes 1429 shlibpath_overrides_runpath=yes
1314 hardcode_into_libs=yes 1430 hardcode_into_libs=yes
1315 ;; 1431 ;;
1316 *) # from 3.2 on 1432 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1433 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1317 shlibpath_overrides_runpath=no 1434 shlibpath_overrides_runpath=no
1318 hardcode_into_libs=yes 1435 hardcode_into_libs=yes
1319 ;; 1436 ;;
1437 freebsd*) # from 4.6 on
1438 shlibpath_overrides_runpath=yes
1439 hardcode_into_libs=yes
1440 ;;
1320 esac 1441 esac
1321 ;; 1442 ;;
1322 1443
@@ -1336,7 +1457,7 @@ hpux9* | hpux10* | hpux11*)
1336 version_type=sunos 1457 version_type=sunos
1337 need_lib_prefix=no 1458 need_lib_prefix=no
1338 need_version=no 1459 need_version=no
1339 case "$host_cpu" in 1460 case $host_cpu in
1340 ia64*) 1461 ia64*)
1341 shrext_cmds='.so' 1462 shrext_cmds='.so'
1342 hardcode_into_libs=yes 1463 hardcode_into_libs=yes
@@ -1376,6 +1497,18 @@ hpux9* | hpux10* | hpux11*)
1376 postinstall_cmds='chmod 555 $lib' 1497 postinstall_cmds='chmod 555 $lib'
1377 ;; 1498 ;;
1378 1499
1500interix3*)
1501 version_type=linux
1502 need_lib_prefix=no
1503 need_version=no
1504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1505 soname_spec='${libname}${release}${shared_ext}$major'
1506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1507 shlibpath_var=LD_LIBRARY_PATH
1508 shlibpath_overrides_runpath=no
1509 hardcode_into_libs=yes
1510 ;;
1511
1379irix5* | irix6* | nonstopux*) 1512irix5* | irix6* | nonstopux*)
1380 case $host_os in 1513 case $host_os in
1381 nonstopux*) version_type=nonstopux ;; 1514 nonstopux*) version_type=nonstopux ;;
@@ -1419,7 +1552,7 @@ linux*oldld* | linux*aout* | linux*coff*)
1419 ;; 1552 ;;
1420 1553
1421# This must be Linux ELF. 1554# This must be Linux ELF.
1422linux*) 1555linux* | k*bsd*-gnu)
1423 version_type=linux 1556 version_type=linux
1424 need_lib_prefix=no 1557 need_lib_prefix=no
1425 need_version=no 1558 need_version=no
@@ -1435,7 +1568,7 @@ linux*)
1435 1568
1436 # Append ld.so.conf contents to the search path 1569 # Append ld.so.conf contents to the search path
1437 if test -f /etc/ld.so.conf; then 1570 if test -f /etc/ld.so.conf; then
1438 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` 1571 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' ' '`
1439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1440 fi 1573 fi
1441 1574
@@ -1460,18 +1593,6 @@ netbsdelf*-gnu)
1460 dynamic_linker='NetBSD ld.elf_so' 1593 dynamic_linker='NetBSD ld.elf_so'
1461 ;; 1594 ;;
1462 1595
1463knetbsd*-gnu)
1464 version_type=linux
1465 need_lib_prefix=no
1466 need_version=no
1467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1468 soname_spec='${libname}${release}${shared_ext}$major'
1469 shlibpath_var=LD_LIBRARY_PATH
1470 shlibpath_overrides_runpath=no
1471 hardcode_into_libs=yes
1472 dynamic_linker='GNU ld.so'
1473 ;;
1474
1475netbsd*) 1596netbsd*)
1476 version_type=sunos 1597 version_type=sunos
1477 need_lib_prefix=no 1598 need_lib_prefix=no
@@ -1509,8 +1630,13 @@ nto-qnx*)
1509 1630
1510openbsd*) 1631openbsd*)
1511 version_type=sunos 1632 version_type=sunos
1633 sys_lib_dlsearch_path_spec="/usr/lib"
1512 need_lib_prefix=no 1634 need_lib_prefix=no
1513 need_version=yes 1635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1636 case $host_os in
1637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1638 *) need_version=no ;;
1639 esac
1514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1516 shlibpath_var=LD_LIBRARY_PATH 1642 shlibpath_var=LD_LIBRARY_PATH
@@ -1548,13 +1674,6 @@ osf3* | osf4* | osf5*)
1548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 1674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1549 ;; 1675 ;;
1550 1676
1551sco3.2v5*)
1552 version_type=osf
1553 soname_spec='${libname}${release}${shared_ext}$major'
1554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1555 shlibpath_var=LD_LIBRARY_PATH
1556 ;;
1557
1558solaris*) 1677solaris*)
1559 version_type=linux 1678 version_type=linux
1560 need_lib_prefix=no 1679 need_lib_prefix=no
@@ -1580,7 +1699,7 @@ sunos4*)
1580 need_version=yes 1699 need_version=yes
1581 ;; 1700 ;;
1582 1701
1583sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1702sysv4 | sysv4.3*)
1584 version_type=linux 1703 version_type=linux
1585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1586 soname_spec='${libname}${release}${shared_ext}$major' 1705 soname_spec='${libname}${release}${shared_ext}$major'
@@ -1613,6 +1732,29 @@ sysv4*MP*)
1613 fi 1732 fi
1614 ;; 1733 ;;
1615 1734
1735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1736 version_type=freebsd-elf
1737 need_lib_prefix=no
1738 need_version=no
1739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1740 soname_spec='${libname}${release}${shared_ext}$major'
1741 shlibpath_var=LD_LIBRARY_PATH
1742 hardcode_into_libs=yes
1743 if test "$with_gnu_ld" = yes; then
1744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1745 shlibpath_overrides_runpath=no
1746 else
1747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1748 shlibpath_overrides_runpath=yes
1749 case $host_os in
1750 sco3.2v5*)
1751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1752 ;;
1753 esac
1754 fi
1755 sys_lib_dlsearch_path_spec='/usr/lib'
1756 ;;
1757
1616uts4*) 1758uts4*)
1617 version_type=linux 1759 version_type=linux
1618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -1626,6 +1768,11 @@ uts4*)
1626esac 1768esac
1627AC_MSG_RESULT([$dynamic_linker]) 1769AC_MSG_RESULT([$dynamic_linker])
1628test "$dynamic_linker" = no && can_build_shared=no 1770test "$dynamic_linker" = no && can_build_shared=no
1771
1772variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1773if test "$GCC" = yes; then
1774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1775fi
1629])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1776])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1630 1777
1631 1778
@@ -1650,6 +1797,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1650 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 1797 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1651 fi 1798 fi
1652 fi 1799 fi
1800 if test -z "$LTCFLAGS"; then
1801 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1802 fi
1653 1803
1654 # Extract list of available tagged configurations in $ofile. 1804 # Extract list of available tagged configurations in $ofile.
1655 # Note that this assumes the entire list is on one line. 1805 # Note that this assumes the entire list is on one line.
@@ -1676,7 +1826,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1676 1826
1677 case $tagname in 1827 case $tagname in
1678 CXX) 1828 CXX)
1679 if test -n "$CXX" && test "X$CXX" != "Xno"; then 1829 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1830 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1831 (test "X$CXX" != "Xg++"))) ; then
1680 AC_LIBTOOL_LANG_CXX_CONFIG 1832 AC_LIBTOOL_LANG_CXX_CONFIG
1681 else 1833 else
1682 tagname="" 1834 tagname=""
@@ -1738,7 +1890,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN],
1738 1890
1739# AC_LIBTOOL_WIN32_DLL 1891# AC_LIBTOOL_WIN32_DLL
1740# -------------------- 1892# --------------------
1741# declare package support for building win32 dll's 1893# declare package support for building win32 DLLs
1742AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 1894AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1743[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 1895[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1744])# AC_LIBTOOL_WIN32_DLL 1896])# AC_LIBTOOL_WIN32_DLL
@@ -1776,7 +1928,7 @@ AC_ARG_ENABLE([shared],
1776 1928
1777# AC_DISABLE_SHARED 1929# AC_DISABLE_SHARED
1778# ----------------- 1930# -----------------
1779#- set the default shared flag to --disable-shared 1931# set the default shared flag to --disable-shared
1780AC_DEFUN([AC_DISABLE_SHARED], 1932AC_DEFUN([AC_DISABLE_SHARED],
1781[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 1933[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1782AC_ENABLE_SHARED(no) 1934AC_ENABLE_SHARED(no)
@@ -1912,7 +2064,7 @@ dnl not every word. This closes a longstanding sh security hole.
1912 if test -n "$file_magic_test_file"; then 2064 if test -n "$file_magic_test_file"; then
1913 case $deplibs_check_method in 2065 case $deplibs_check_method in
1914 "file_magic "*) 2066 "file_magic "*)
1915 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 2067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1918 $EGREP "$file_magic_regex" > /dev/null; then 2070 $EGREP "$file_magic_regex" > /dev/null; then
@@ -2022,7 +2174,7 @@ AC_CACHE_VAL(lt_cv_path_LD,
2022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2023 lt_cv_path_LD="$ac_dir/$ac_prog" 2175 lt_cv_path_LD="$ac_dir/$ac_prog"
2024 # Check to see if the program is GNU ld. I'd rather use --version, 2176 # Check to see if the program is GNU ld. I'd rather use --version,
2025 # but apparently some GNU ld's only accept -v. 2177 # but apparently some variants of GNU ld only accept -v.
2026 # Break only if it was the GNU/non-GNU ld that we prefer. 2178 # Break only if it was the GNU/non-GNU ld that we prefer.
2027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2028 *GNU* | *'with BFD'*) 2180 *GNU* | *'with BFD'*)
@@ -2054,7 +2206,7 @@ AC_PROG_LD_GNU
2054AC_DEFUN([AC_PROG_LD_GNU], 2206AC_DEFUN([AC_PROG_LD_GNU],
2055[AC_REQUIRE([AC_PROG_EGREP])dnl 2207[AC_REQUIRE([AC_PROG_EGREP])dnl
2056AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2208AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2057[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2209[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2058case `$LD -v 2>&1 </dev/null` in 2210case `$LD -v 2>&1 </dev/null` in
2059*GNU* | *'with BFD'*) 2211*GNU* | *'with BFD'*)
2060 lt_cv_prog_gnu_ld=yes 2212 lt_cv_prog_gnu_ld=yes
@@ -2081,6 +2233,15 @@ case $reload_flag in
2081*) reload_flag=" $reload_flag" ;; 2233*) reload_flag=" $reload_flag" ;;
2082esac 2234esac
2083reload_cmds='$LD$reload_flag -o $output$reload_objs' 2235reload_cmds='$LD$reload_flag -o $output$reload_objs'
2236case $host_os in
2237 darwin*)
2238 if test "$GCC" = yes; then
2239 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2240 else
2241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2242 fi
2243 ;;
2244esac
2084])# AC_PROG_LD_RELOAD_FLAG 2245])# AC_PROG_LD_RELOAD_FLAG
2085 2246
2086 2247
@@ -2114,7 +2275,7 @@ beos*)
2114 lt_cv_deplibs_check_method=pass_all 2275 lt_cv_deplibs_check_method=pass_all
2115 ;; 2276 ;;
2116 2277
2117bsdi4*) 2278bsdi[[45]]*)
2118 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2279 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2119 lt_cv_file_magic_cmd='/usr/bin/file -L' 2280 lt_cv_file_magic_cmd='/usr/bin/file -L'
2120 lt_cv_file_magic_test_file=/shlib/libc.so 2281 lt_cv_file_magic_test_file=/shlib/libc.so
@@ -2137,13 +2298,13 @@ darwin* | rhapsody*)
2137 lt_cv_deplibs_check_method=pass_all 2298 lt_cv_deplibs_check_method=pass_all
2138 ;; 2299 ;;
2139 2300
2140freebsd* | kfreebsd*-gnu) 2301freebsd* | dragonfly*)
2141 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2142 case $host_cpu in 2303 case $host_cpu in
2143 i*86 ) 2304 i*86 )
2144 # Not sure whether the presence of OpenBSD here was a mistake. 2305 # Not sure whether the presence of OpenBSD here was a mistake.
2145 # Let's accept both of them until this is cleared up. 2306 # Let's accept both of them until this is cleared up.
2146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 2307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2147 lt_cv_file_magic_cmd=/usr/bin/file 2308 lt_cv_file_magic_cmd=/usr/bin/file
2148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2149 ;; 2310 ;;
@@ -2159,7 +2320,7 @@ gnu*)
2159 2320
2160hpux10.20* | hpux11*) 2321hpux10.20* | hpux11*)
2161 lt_cv_file_magic_cmd=/usr/bin/file 2322 lt_cv_file_magic_cmd=/usr/bin/file
2162 case "$host_cpu" in 2323 case $host_cpu in
2163 ia64*) 2324 ia64*)
2164 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 2325 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2165 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
@@ -2175,6 +2336,11 @@ hpux10.20* | hpux11*)
2175 esac 2336 esac
2176 ;; 2337 ;;
2177 2338
2339interix3*)
2340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2341 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2342 ;;
2343
2178irix5* | irix6* | nonstopux*) 2344irix5* | irix6* | nonstopux*)
2179 case $LD in 2345 case $LD in
2180 *-32|*"-32 ") libmagic=32-bit;; 2346 *-32|*"-32 ") libmagic=32-bit;;
@@ -2186,11 +2352,11 @@ irix5* | irix6* | nonstopux*)
2186 ;; 2352 ;;
2187 2353
2188# This must be Linux ELF. 2354# This must be Linux ELF.
2189linux*) 2355linux* | k*bsd*-gnu)
2190 lt_cv_deplibs_check_method=pass_all 2356 lt_cv_deplibs_check_method=pass_all
2191 ;; 2357 ;;
2192 2358
2193netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 2359netbsd* | netbsdelf*-gnu)
2194 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2360 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2195 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2361 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2196 else 2362 else
@@ -2209,12 +2375,10 @@ nto-qnx*)
2209 ;; 2375 ;;
2210 2376
2211openbsd*) 2377openbsd*)
2212 lt_cv_file_magic_cmd=/usr/bin/file
2213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2215 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 2379 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2216 else 2380 else
2217 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 2381 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2218 fi 2382 fi
2219 ;; 2383 ;;
2220 2384
@@ -2222,15 +2386,11 @@ osf3* | osf4* | osf5*)
2222 lt_cv_deplibs_check_method=pass_all 2386 lt_cv_deplibs_check_method=pass_all
2223 ;; 2387 ;;
2224 2388
2225sco3.2v5*)
2226 lt_cv_deplibs_check_method=pass_all
2227 ;;
2228
2229solaris*) 2389solaris*)
2230 lt_cv_deplibs_check_method=pass_all 2390 lt_cv_deplibs_check_method=pass_all
2231 ;; 2391 ;;
2232 2392
2233sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2393sysv4 | sysv4.3*)
2234 case $host_vendor in 2394 case $host_vendor in
2235 motorola) 2395 motorola)
2236 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]]' 2396 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]]'
@@ -2251,10 +2411,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2251 siemens) 2411 siemens)
2252 lt_cv_deplibs_check_method=pass_all 2412 lt_cv_deplibs_check_method=pass_all
2253 ;; 2413 ;;
2414 pc)
2415 lt_cv_deplibs_check_method=pass_all
2416 ;;
2254 esac 2417 esac
2255 ;; 2418 ;;
2256 2419
2257sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 2420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2258 lt_cv_deplibs_check_method=pass_all 2421 lt_cv_deplibs_check_method=pass_all
2259 ;; 2422 ;;
2260esac 2423esac
@@ -2274,36 +2437,43 @@ AC_DEFUN([AC_PROG_NM],
2274 # Let the user override the test. 2437 # Let the user override the test.
2275 lt_cv_path_NM="$NM" 2438 lt_cv_path_NM="$NM"
2276else 2439else
2277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2440 lt_nm_to_check="${ac_tool_prefix}nm"
2278 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2279 IFS="$lt_save_ifs" 2442 lt_nm_to_check="$lt_nm_to_check nm"
2280 test -z "$ac_dir" && ac_dir=. 2443 fi
2281 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2444 for lt_tmp_nm in $lt_nm_to_check; do
2282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2283 # Check to see if the nm accepts a BSD-compat flag. 2446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2284 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2447 IFS="$lt_save_ifs"
2285 # nm: unknown option "B" ignored 2448 test -z "$ac_dir" && ac_dir=.
2286 # Tru64's nm complains that /dev/null is an invalid object file 2449 tmp_nm="$ac_dir/$lt_tmp_nm"
2287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2288 */dev/null* | *'Invalid file or object type'*) 2451 # Check to see if the nm accepts a BSD-compat flag.
2289 lt_cv_path_NM="$tmp_nm -B" 2452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2290 break 2453 # nm: unknown option "B" ignored
2291 ;; 2454 # Tru64's nm complains that /dev/null is an invalid object file
2292 *) 2455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2456 */dev/null* | *'Invalid file or object type'*)
2294 */dev/null*) 2457 lt_cv_path_NM="$tmp_nm -B"
2295 lt_cv_path_NM="$tmp_nm -p"
2296 break 2458 break
2297 ;; 2459 ;;
2298 *) 2460 *)
2299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2300 continue # so that we can try to find one that supports BSD flags 2462 */dev/null*)
2463 lt_cv_path_NM="$tmp_nm -p"
2464 break
2465 ;;
2466 *)
2467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2468 continue # so that we can try to find one that supports BSD flags
2469 ;;
2470 esac
2301 ;; 2471 ;;
2302 esac 2472 esac
2303 esac 2473 fi
2304 fi 2474 done
2475 IFS="$lt_save_ifs"
2305 done 2476 done
2306 IFS="$lt_save_ifs"
2307 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2477 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2308fi]) 2478fi])
2309NM="$lt_cv_path_NM" 2479NM="$lt_cv_path_NM"
@@ -2335,13 +2505,13 @@ esac
2335# ----------------------------------- 2505# -----------------------------------
2336# sets LIBLTDL to the link flags for the libltdl convenience library and 2506# sets LIBLTDL to the link flags for the libltdl convenience library and
2337# LTDLINCL to the include flags for the libltdl header and adds 2507# LTDLINCL to the include flags for the libltdl header and adds
2338# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL 2508# --enable-ltdl-convenience to the configure arguments. Note that
2339# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2509# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2340# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will 2510# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2341# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with 2511# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2342# '${top_srcdir}/' (note the single quotes!). If your package is not 2512# (note the single quotes!). If your package is not flat and you're not
2343# flat and you're not using automake, define top_builddir and 2513# using automake, define top_builddir and top_srcdir appropriately in
2344# top_srcdir appropriately in the Makefiles. 2514# the Makefiles.
2345AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2515AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2346[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2516[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2347 case $enable_ltdl_convenience in 2517 case $enable_ltdl_convenience in
@@ -2360,13 +2530,13 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2360# ----------------------------------- 2530# -----------------------------------
2361# sets LIBLTDL to the link flags for the libltdl installable library and 2531# sets LIBLTDL to the link flags for the libltdl installable library and
2362# LTDLINCL to the include flags for the libltdl header and adds 2532# LTDLINCL to the include flags for the libltdl header and adds
2363# --enable-ltdl-install to the configure arguments. Note that LIBLTDL 2533# --enable-ltdl-install to the configure arguments. Note that
2364# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2534# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2365# DIRECTORY is not provided and an installed libltdl is not found, it is 2535# and an installed libltdl is not found, it is assumed to be `libltdl'.
2366# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' 2536# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2367# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single 2537# '${top_srcdir}/' (note the single quotes!). If your package is not
2368# quotes!). If your package is not flat and you're not using automake, 2538# flat and you're not using automake, define top_builddir and top_srcdir
2369# define top_builddir and top_srcdir appropriately in the Makefiles. 2539# appropriately in the Makefiles.
2370# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2540# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2371AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 2541AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2372[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2542[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
@@ -2404,10 +2574,21 @@ AC_DEFUN([AC_LIBTOOL_CXX],
2404# --------------- 2574# ---------------
2405AC_DEFUN([_LT_AC_LANG_CXX], 2575AC_DEFUN([_LT_AC_LANG_CXX],
2406[AC_REQUIRE([AC_PROG_CXX]) 2576[AC_REQUIRE([AC_PROG_CXX])
2407AC_REQUIRE([AC_PROG_CXXCPP]) 2577AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2408_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2578_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2409])# _LT_AC_LANG_CXX 2579])# _LT_AC_LANG_CXX
2410 2580
2581# _LT_AC_PROG_CXXCPP
2582# ------------------
2583AC_DEFUN([_LT_AC_PROG_CXXCPP],
2584[
2585AC_REQUIRE([AC_PROG_CXX])
2586if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2587 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2588 (test "X$CXX" != "Xg++"))) ; then
2589 AC_PROG_CXXCPP
2590fi
2591])# _LT_AC_PROG_CXXCPP
2411 2592
2412# AC_LIBTOOL_F77 2593# AC_LIBTOOL_F77
2413# -------------- 2594# --------------
@@ -2447,7 +2628,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2447 2628
2448 2629
2449# AC_LIBTOOL_RC 2630# AC_LIBTOOL_RC
2450# -------------- 2631# -------------
2451# enable support for Windows resource files 2632# enable support for Windows resource files
2452AC_DEFUN([AC_LIBTOOL_RC], 2633AC_DEFUN([AC_LIBTOOL_RC],
2453[AC_REQUIRE([LT_AC_PROG_RC]) 2634[AC_REQUIRE([LT_AC_PROG_RC])
@@ -2480,36 +2661,9 @@ lt_simple_link_test_code='int main(){return(0);}\n'
2480 2661
2481_LT_AC_SYS_COMPILER 2662_LT_AC_SYS_COMPILER
2482 2663
2483# 2664# save warnings/boilerplate of simple test code
2484# Check for any special shared library compilation flags. 2665_LT_COMPILER_BOILERPLATE
2485# 2666_LT_LINKER_BOILERPLATE
2486_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2487if test "$GCC" = no; then
2488 case $host_os in
2489 sco3.2v5*)
2490 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2491 ;;
2492 esac
2493fi
2494if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2495 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2496 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2497 else
2498 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2499 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2500 fi
2501fi
2502
2503
2504#
2505# Check to make sure the static flag actually works.
2506#
2507AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2508 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2509 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2510 [],
2511 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2512
2513 2667
2514AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2668AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2515AC_LIBTOOL_PROG_COMPILER_PIC($1) 2669AC_LIBTOOL_PROG_COMPILER_PIC($1)
@@ -2519,9 +2673,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1)
2519AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2673AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2520AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2674AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2521AC_LIBTOOL_SYS_LIB_STRIP 2675AC_LIBTOOL_SYS_LIB_STRIP
2522AC_LIBTOOL_DLOPEN_SELF($1) 2676AC_LIBTOOL_DLOPEN_SELF
2523 2677
2524# Report which librarie types wil actually be built 2678# Report which library types will actually be built
2525AC_MSG_CHECKING([if libtool supports shared libraries]) 2679AC_MSG_CHECKING([if libtool supports shared libraries])
2526AC_MSG_RESULT([$can_build_shared]) 2680AC_MSG_RESULT([$can_build_shared])
2527 2681
@@ -2530,7 +2684,7 @@ test "$can_build_shared" = "no" && enable_shared=no
2530 2684
2531# On AIX, shared libraries and static libraries use the same namespace, and 2685# On AIX, shared libraries and static libraries use the same namespace, and
2532# are all built from PIC. 2686# are all built from PIC.
2533case "$host_os" in 2687case $host_os in
2534aix3*) 2688aix3*)
2535 test "$enable_shared" = yes && enable_static=no 2689 test "$enable_shared" = yes && enable_static=no
2536 if test -n "$RANLIB"; then 2690 if test -n "$RANLIB"; then
@@ -2543,43 +2697,6 @@ aix4* | aix5*)
2543 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2544 test "$enable_shared" = yes && enable_static=no 2698 test "$enable_shared" = yes && enable_static=no
2545 fi 2699 fi
2546 ;;
2547 darwin* | rhapsody*)
2548 if test "$GCC" = yes; then
2549 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2550 case "$host_os" in
2551 rhapsody* | darwin1.[[012]])
2552 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2553 ;;
2554 *) # Darwin 1.3 on
2555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2556 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2557 else
2558 case ${MACOSX_DEPLOYMENT_TARGET} in
2559 10.[[012]])
2560 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2561 ;;
2562 10.*)
2563 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2564 ;;
2565 esac
2566 fi
2567 ;;
2568 esac
2569 output_verbose_link_cmd='echo'
2570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2571 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2573 _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}'
2574 _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}'
2575 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2576 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2577 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2578 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2579 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2580 else
2581 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2582 fi
2583 ;; 2700 ;;
2584esac 2701esac
2585AC_MSG_RESULT([$enable_shared]) 2702AC_MSG_RESULT([$enable_shared])
@@ -2605,7 +2722,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2605AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 2722AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2606[AC_LANG_PUSH(C++) 2723[AC_LANG_PUSH(C++)
2607AC_REQUIRE([AC_PROG_CXX]) 2724AC_REQUIRE([AC_PROG_CXX])
2608AC_REQUIRE([AC_PROG_CXXCPP]) 2725AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2609 2726
2610_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2727_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2611_LT_AC_TAGVAR(allow_undefined_flag, $1)= 2728_LT_AC_TAGVAR(allow_undefined_flag, $1)=
@@ -2617,6 +2734,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2617_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 2734_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2618_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2735_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2619_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2736_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2737_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2620_LT_AC_TAGVAR(hardcode_automatic, $1)=no 2738_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2621_LT_AC_TAGVAR(module_cmds, $1)= 2739_LT_AC_TAGVAR(module_cmds, $1)=
2622_LT_AC_TAGVAR(module_expsym_cmds, $1)= 2740_LT_AC_TAGVAR(module_expsym_cmds, $1)=
@@ -2634,7 +2752,7 @@ _LT_AC_TAGVAR(postdeps, $1)=
2634_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 2752_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2635 2753
2636# Source file extension for C++ test sources. 2754# Source file extension for C++ test sources.
2637ac_ext=cc 2755ac_ext=cpp
2638 2756
2639# Object file extension for compiled C++ test sources. 2757# Object file extension for compiled C++ test sources.
2640objext=o 2758objext=o
@@ -2644,11 +2762,15 @@ _LT_AC_TAGVAR(objext, $1)=$objext
2644lt_simple_compile_test_code="int some_variable = 0;\n" 2762lt_simple_compile_test_code="int some_variable = 0;\n"
2645 2763
2646# Code to be used in simple link tests 2764# Code to be used in simple link tests
2647lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 2765lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2648 2766
2649# ltmain only uses $CC for tagged configurations so make sure $CC is set. 2767# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2650_LT_AC_SYS_COMPILER 2768_LT_AC_SYS_COMPILER
2651 2769
2770# save warnings/boilerplate of simple test code
2771_LT_COMPILER_BOILERPLATE
2772_LT_LINKER_BOILERPLATE
2773
2652# Allow CC to be a program name with arguments. 2774# Allow CC to be a program name with arguments.
2653lt_save_CC=$CC 2775lt_save_CC=$CC
2654lt_save_LD=$LD 2776lt_save_LD=$LD
@@ -2659,18 +2781,18 @@ lt_save_path_LD=$lt_cv_path_LD
2659if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 2781if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2660 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2782 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2661else 2783else
2662 unset lt_cv_prog_gnu_ld 2784 $as_unset lt_cv_prog_gnu_ld
2663fi 2785fi
2664if test -n "${lt_cv_path_LDCXX+set}"; then 2786if test -n "${lt_cv_path_LDCXX+set}"; then
2665 lt_cv_path_LD=$lt_cv_path_LDCXX 2787 lt_cv_path_LD=$lt_cv_path_LDCXX
2666else 2788else
2667 unset lt_cv_path_LD 2789 $as_unset lt_cv_path_LD
2668fi 2790fi
2669test -z "${LDCXX+set}" || LD=$LDCXX 2791test -z "${LDCXX+set}" || LD=$LDCXX
2670CC=${CXX-"c++"} 2792CC=${CXX-"c++"}
2671compiler=$CC 2793compiler=$CC
2672_LT_AC_TAGVAR(compiler, $1)=$CC 2794_LT_AC_TAGVAR(compiler, $1)=$CC
2673cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 2795_LT_CC_BASENAME([$compiler])
2674 2796
2675# We don't want -fno-exception wen compiling C++ code, so set the 2797# We don't want -fno-exception wen compiling C++ code, so set the
2676# no_builtin_flag separately 2798# no_builtin_flag separately
@@ -2759,6 +2881,7 @@ case $host_os in
2759 ;; 2881 ;;
2760 esac 2882 esac
2761 done 2883 done
2884 ;;
2762 esac 2885 esac
2763 2886
2764 exp_sym_flag='-bexport' 2887 exp_sym_flag='-bexport'
@@ -2777,7 +2900,7 @@ case $host_os in
2777 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2900 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2778 2901
2779 if test "$GXX" = yes; then 2902 if test "$GXX" = yes; then
2780 case $host_os in aix4.[012]|aix4.[012].*) 2903 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2781 # We only want to do this on AIX 4.2 and lower, the check 2904 # We only want to do this on AIX 4.2 and lower, the check
2782 # below for broken collect2 doesn't work under 4.3+ 2905 # below for broken collect2 doesn't work under 4.3+
2783 collect2name=`${CC} -print-prog-name=collect2` 2906 collect2name=`${CC} -print-prog-name=collect2`
@@ -2796,8 +2919,12 @@ case $host_os in
2796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2919 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2797 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2920 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2798 fi 2921 fi
2922 ;;
2799 esac 2923 esac
2800 shared_flag='-shared' 2924 shared_flag='-shared'
2925 if test "$aix_use_runtimelinking" = yes; then
2926 shared_flag="$shared_flag "'${wl}-G'
2927 fi
2801 else 2928 else
2802 # not using gcc 2929 # not using gcc
2803 if test "$host_cpu" = ia64; then 2930 if test "$host_cpu" = ia64; then
@@ -2824,12 +2951,12 @@ case $host_os in
2824 _LT_AC_SYS_LIBPATH_AIX 2951 _LT_AC_SYS_LIBPATH_AIX
2825 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 2952 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2826 2953
2827 _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" 2954 _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"
2828 else 2955 else
2829 if test "$host_cpu" = ia64; then 2956 if test "$host_cpu" = ia64; then
2830 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 2957 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2831 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 2958 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2832 _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" 2959 _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"
2833 else 2960 else
2834 # Determine the default libpath from the value encoded in an empty executable. 2961 # Determine the default libpath from the value encoded in an empty executable.
2835 _LT_AC_SYS_LIBPATH_AIX 2962 _LT_AC_SYS_LIBPATH_AIX
@@ -2838,16 +2965,26 @@ case $host_os in
2838 # -berok will link without error, but may produce a broken library. 2965 # -berok will link without error, but may produce a broken library.
2839 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 2966 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2840 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 2967 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2841 # -bexpall does not export symbols beginning with underscore (_)
2842 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2843 # Exported symbols can be pulled into shared objects from archives 2968 # Exported symbols can be pulled into shared objects from archives
2844 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 2969 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2845 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2970 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2846 # This is similar to how AIX traditionally builds it's shared libraries. 2971 # This is similar to how AIX traditionally builds its shared libraries.
2847 _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' 2972 _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'
2848 fi 2973 fi
2849 fi 2974 fi
2850 ;; 2975 ;;
2976
2977 beos*)
2978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2979 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2981 # support --undefined. This deserves some investigation. FIXME
2982 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2983 else
2984 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2985 fi
2986 ;;
2987
2851 chorus*) 2988 chorus*)
2852 case $cc_basename in 2989 case $cc_basename in
2853 *) 2990 *)
@@ -2866,7 +3003,7 @@ case $host_os in
2866 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3003 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2867 3004
2868 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2869 _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' 3006 _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'
2870 # If the export-symbols file already is a .def file (1st line 3007 # If the export-symbols file already is a .def file (1st line
2871 # is EXPORTS), use it as is; otherwise, prepend... 3008 # is EXPORTS), use it as is; otherwise, prepend...
2872 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3009 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -2875,70 +3012,81 @@ case $host_os in
2875 echo EXPORTS > $output_objdir/$soname.def; 3012 echo EXPORTS > $output_objdir/$soname.def;
2876 cat $export_symbols >> $output_objdir/$soname.def; 3013 cat $export_symbols >> $output_objdir/$soname.def;
2877 fi~ 3014 fi~
2878 $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' 3015 $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'
2879 else 3016 else
2880 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3017 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2881 fi 3018 fi
2882 ;; 3019 ;;
3020 darwin* | rhapsody*)
3021 case $host_os in
3022 rhapsody* | darwin1.[[012]])
3023 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3024 ;;
3025 *) # Darwin 1.3 on
3026 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3027 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3028 else
3029 case ${MACOSX_DEPLOYMENT_TARGET} in
3030 10.[[012]])
3031 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3032 ;;
3033 10.*)
3034 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3035 ;;
3036 esac
3037 fi
3038 ;;
3039 esac
3040 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3041 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3042 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3043 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3044 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3045 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2883 3046
2884 darwin* | rhapsody*) 3047 if test "$GXX" = yes ; then
2885 if test "$GXX" = yes; then 3048 lt_int_apple_cc_single_mod=no
2886 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3049 output_verbose_link_cmd='echo'
2887 case "$host_os" in 3050 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2888 rhapsody* | darwin1.[[012]]) 3051 lt_int_apple_cc_single_mod=yes
2889 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 3052 fi
2890 ;; 3053 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2891 *) # Darwin 1.3 on 3054 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2892 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2893 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2894 else 3055 else
2895 case ${MACOSX_DEPLOYMENT_TARGET} in 3056 _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'
2896 10.[[012]]) 3057 fi
2897 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3058 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2898 ;; 3059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2899 10.*) 3060 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2900 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3061 _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}'
2901 ;; 3062 else
2902 esac 3063 _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}'
3064 fi
3065 _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}'
3066 else
3067 case $cc_basename in
3068 xlc*)
3069 output_verbose_link_cmd='echo'
3070 _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'
3071 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073 _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}'
3074 _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}'
3075 ;;
3076 *)
3077 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3078 ;;
3079 esac
2903 fi 3080 fi
2904 ;; 3081 ;;
2905 esac
2906 lt_int_apple_cc_single_mod=no
2907 output_verbose_link_cmd='echo'
2908 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2909 lt_int_apple_cc_single_mod=yes
2910 fi
2911 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2913 else
2914 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2915 fi
2916 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2917
2918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2920 _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}'
2921 else
2922 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2923 fi
2924 _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}'
2925 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2926 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2927 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2928 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2929 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2930 else
2931 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2932 fi
2933 ;;
2934 3082
2935 dgux*) 3083 dgux*)
2936 case $cc_basename in 3084 case $cc_basename in
2937 ec++) 3085 ec++*)
2938 # FIXME: insert proper C++ library support 3086 # FIXME: insert proper C++ library support
2939 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3087 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2940 ;; 3088 ;;
2941 ghcx) 3089 ghcx*)
2942 # Green Hills C++ Compiler 3090 # Green Hills C++ Compiler
2943 # FIXME: insert proper C++ library support 3091 # FIXME: insert proper C++ library support
2944 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3092 _LT_AC_TAGVAR(ld_shlibs, $1)=no
@@ -2949,14 +3097,14 @@ case $host_os in
2949 ;; 3097 ;;
2950 esac 3098 esac
2951 ;; 3099 ;;
2952 freebsd[12]*) 3100 freebsd[[12]]*)
2953 # C++ shared libraries reported to be fairly broken before switch to ELF 3101 # C++ shared libraries reported to be fairly broken before switch to ELF
2954 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3102 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2955 ;; 3103 ;;
2956 freebsd-elf*) 3104 freebsd-elf*)
2957 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3105 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2958 ;; 3106 ;;
2959 freebsd* | kfreebsd*-gnu) 3107 freebsd* | dragonfly*)
2960 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3108 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2961 # conventions 3109 # conventions
2962 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3110 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
@@ -2973,11 +3121,11 @@ case $host_os in
2973 # location of the library. 3121 # location of the library.
2974 3122
2975 case $cc_basename in 3123 case $cc_basename in
2976 CC) 3124 CC*)
2977 # FIXME: insert proper C++ library support 3125 # FIXME: insert proper C++ library support
2978 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3126 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2979 ;; 3127 ;;
2980 aCC) 3128 aCC*)
2981 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3129 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2982 # Commands to make compiler produce verbose output that lists 3130 # Commands to make compiler produce verbose output that lists
2983 # what "hidden" libraries, object files and flags are used when 3131 # what "hidden" libraries, object files and flags are used when
@@ -2987,7 +3135,7 @@ case $host_os in
2987 # explicitly linking system object files so we need to strip them 3135 # explicitly linking system object files so we need to strip them
2988 # from the output so that they don't get included in the library 3136 # from the output so that they don't get included in the library
2989 # dependencies. 3137 # dependencies.
2990 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3138 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2991 ;; 3139 ;;
2992 *) 3140 *)
2993 if test "$GXX" = yes; then 3141 if test "$GXX" = yes; then
@@ -3001,33 +3149,22 @@ case $host_os in
3001 ;; 3149 ;;
3002 hpux10*|hpux11*) 3150 hpux10*|hpux11*)
3003 if test $with_gnu_ld = no; then 3151 if test $with_gnu_ld = no; then
3004 case "$host_cpu" in 3152 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3005 hppa*64*) 3153 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3154
3155 case $host_cpu in
3156 hppa*64*|ia64*)
3007 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3157 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3008 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3009 ;;
3010 ia64*)
3011 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3012 ;; 3158 ;;
3013 *) 3159 *)
3014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3015 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3016 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3160 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3017 ;; 3161 ;;
3018 esac 3162 esac
3019 fi 3163 fi
3020 case "$host_cpu" in 3164 case $host_cpu in
3021 hppa*64*) 3165 hppa*64*|ia64*)
3022 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3023 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3024 ;;
3025 ia64*)
3026 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3166 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3027 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3167 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3028 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3029 # but as the default
3030 # location of the library.
3031 ;; 3168 ;;
3032 *) 3169 *)
3033 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3170 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
@@ -3038,14 +3175,17 @@ case $host_os in
3038 esac 3175 esac
3039 3176
3040 case $cc_basename in 3177 case $cc_basename in
3041 CC) 3178 CC*)
3042 # FIXME: insert proper C++ library support 3179 # FIXME: insert proper C++ library support
3043 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3180 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3044 ;; 3181 ;;
3045 aCC) 3182 aCC*)
3046 case "$host_cpu" in 3183 case $host_cpu in
3047 hppa*64*|ia64*) 3184 hppa*64*)
3048 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3185 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3186 ;;
3187 ia64*)
3188 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3049 ;; 3189 ;;
3050 *) 3190 *)
3051 _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' 3191 _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'
@@ -3064,9 +3204,12 @@ case $host_os in
3064 *) 3204 *)
3065 if test "$GXX" = yes; then 3205 if test "$GXX" = yes; then
3066 if test $with_gnu_ld = no; then 3206 if test $with_gnu_ld = no; then
3067 case "$host_cpu" in 3207 case $host_cpu in
3068 ia64*|hppa*64*) 3208 hppa*64*)
3069 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3209 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3210 ;;
3211 ia64*)
3212 _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'
3070 ;; 3213 ;;
3071 *) 3214 *)
3072 _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' 3215 _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'
@@ -3080,11 +3223,25 @@ case $host_os in
3080 ;; 3223 ;;
3081 esac 3224 esac
3082 ;; 3225 ;;
3226 interix3*)
3227 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3228 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3230 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3232 # Instead, shared libraries are loaded at an image base (0x10000000 by
3233 # default) and relocated if they conflict, which is a slow very memory
3234 # consuming and fragmenting process. To avoid this, we pick a random,
3235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3236 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3237 _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'
3238 _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'
3239 ;;
3083 irix5* | irix6*) 3240 irix5* | irix6*)
3084 case $cc_basename in 3241 case $cc_basename in
3085 CC) 3242 CC*)
3086 # SGI C++ 3243 # SGI C++
3087 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 3244 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3088 3245
3089 # Archives containing C++ object files must be created using 3246 # Archives containing C++ object files must be created using
3090 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3247 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -3095,7 +3252,7 @@ case $host_os in
3095 *) 3252 *)
3096 if test "$GXX" = yes; then 3253 if test "$GXX" = yes; then
3097 if test "$with_gnu_ld" = no; then 3254 if test "$with_gnu_ld" = no; then
3098 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 3255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3099 else 3256 else
3100 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 3257 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3101 fi 3258 fi
@@ -3106,9 +3263,9 @@ case $host_os in
3106 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3263 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3107 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3264 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108 ;; 3265 ;;
3109 linux*) 3266 linux* | k*bsd*-gnu)
3110 case $cc_basename in 3267 case $cc_basename in
3111 KCC) 3268 KCC*)
3112 # Kuck and Associates, Inc. (KAI) C++ Compiler 3269 # Kuck and Associates, Inc. (KAI) C++ Compiler
3113 3270
3114 # KCC will only create a shared library if the output file 3271 # KCC will only create a shared library if the output file
@@ -3133,17 +3290,41 @@ case $host_os in
3133 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3290 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3134 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3291 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3135 ;; 3292 ;;
3136 icpc) 3293 icpc*)
3137 # Intel C++ 3294 # Intel C++
3138 with_gnu_ld=yes 3295 with_gnu_ld=yes
3296 # version 8.0 and above of icpc choke on multiply defined symbols
3297 # if we add $predep_objects and $postdep_objects, however 7.1 and
3298 # earlier do not add the objects themselves.
3299 case `$CC -V 2>&1` in
3300 *"Version 7."*)
3301 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3302 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3303 ;;
3304 *) # Version 8.0 or newer
3305 tmp_idyn=
3306 case $host_cpu in
3307 ia64*) tmp_idyn=' -i_dynamic';;
3308 esac
3309 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3310 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3311 ;;
3312 esac
3139 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3313 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3141 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3314 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3143 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3315 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3144 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3316 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3145 ;; 3317 ;;
3146 cxx) 3318 pgCC*)
3319 # Portland Group C++ compiler
3320 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3321 _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'
3322
3323 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3324 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3325 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3326 ;;
3327 cxx*)
3147 # Compaq C++ 3328 # Compaq C++
3148 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3329 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 3330 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
@@ -3174,7 +3355,7 @@ case $host_os in
3174 ;; 3355 ;;
3175 mvs*) 3356 mvs*)
3176 case $cc_basename in 3357 case $cc_basename in
3177 cxx) 3358 cxx*)
3178 # FIXME: insert proper C++ library support 3359 # FIXME: insert proper C++ library support
3179 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3360 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3180 ;; 3361 ;;
@@ -3184,7 +3365,7 @@ case $host_os in
3184 ;; 3365 ;;
3185 esac 3366 esac
3186 ;; 3367 ;;
3187 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3368 netbsd* | netbsdelf*-gnu)
3188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3189 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 3370 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3190 wlarc= 3371 wlarc=
@@ -3195,9 +3376,25 @@ case $host_os in
3195 # Workaround some broken pre-1.5 toolchains 3376 # Workaround some broken pre-1.5 toolchains
3196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3197 ;; 3378 ;;
3379 openbsd2*)
3380 # C++ shared libraries are fairly broken
3381 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3382 ;;
3383 openbsd*)
3384 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3385 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3386 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3387 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3389 _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'
3390 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3391 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3392 fi
3393 output_verbose_link_cmd='echo'
3394 ;;
3198 osf3*) 3395 osf3*)
3199 case $cc_basename in 3396 case $cc_basename in
3200 KCC) 3397 KCC*)
3201 # Kuck and Associates, Inc. (KAI) C++ Compiler 3398 # Kuck and Associates, Inc. (KAI) C++ Compiler
3202 3399
3203 # KCC will only create a shared library if the output file 3400 # KCC will only create a shared library if the output file
@@ -3213,14 +3410,14 @@ case $host_os in
3213 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3410 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3214 3411
3215 ;; 3412 ;;
3216 RCC) 3413 RCC*)
3217 # Rational C++ 2.4.1 3414 # Rational C++ 2.4.1
3218 # FIXME: insert proper C++ library support 3415 # FIXME: insert proper C++ library support
3219 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3416 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3220 ;; 3417 ;;
3221 cxx) 3418 cxx*)
3222 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3419 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3223 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 3420 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3224 3421
3225 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3422 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3226 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3423 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -3238,7 +3435,7 @@ case $host_os in
3238 *) 3435 *)
3239 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3436 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3240 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3437 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3241 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 3438 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3242 3439
3243 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3440 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3244 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3441 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -3257,7 +3454,7 @@ case $host_os in
3257 ;; 3454 ;;
3258 osf4* | osf5*) 3455 osf4* | osf5*)
3259 case $cc_basename in 3456 case $cc_basename in
3260 KCC) 3457 KCC*)
3261 # Kuck and Associates, Inc. (KAI) C++ Compiler 3458 # Kuck and Associates, Inc. (KAI) C++ Compiler
3262 3459
3263 # KCC will only create a shared library if the output file 3460 # KCC will only create a shared library if the output file
@@ -3272,17 +3469,17 @@ case $host_os in
3272 # the KAI C++ compiler. 3469 # the KAI C++ compiler.
3273 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3470 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3274 ;; 3471 ;;
3275 RCC) 3472 RCC*)
3276 # Rational C++ 2.4.1 3473 # Rational C++ 2.4.1
3277 # FIXME: insert proper C++ library support 3474 # FIXME: insert proper C++ library support
3278 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3475 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3279 ;; 3476 ;;
3280 cxx) 3477 cxx*)
3281 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3478 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3282 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 3479 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3283 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3480 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3284 echo "-hidden">> $lib.exp~ 3481 echo "-hidden">> $lib.exp~
3285 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 3482 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3286 $rm $lib.exp' 3483 $rm $lib.exp'
3287 3484
3288 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3485 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -3301,7 +3498,7 @@ case $host_os in
3301 *) 3498 *)
3302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3303 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3500 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3304 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 3501 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3305 3502
3306 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3503 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3307 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3504 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -3322,27 +3519,14 @@ case $host_os in
3322 # FIXME: insert proper C++ library support 3519 # FIXME: insert proper C++ library support
3323 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3520 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3324 ;; 3521 ;;
3325 sco*)
3326 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3327 case $cc_basename in
3328 CC)
3329 # FIXME: insert proper C++ library support
3330 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3331 ;;
3332 *)
3333 # FIXME: insert proper C++ library support
3334 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3335 ;;
3336 esac
3337 ;;
3338 sunos4*) 3522 sunos4*)
3339 case $cc_basename in 3523 case $cc_basename in
3340 CC) 3524 CC*)
3341 # Sun C++ 4.x 3525 # Sun C++ 4.x
3342 # FIXME: insert proper C++ library support 3526 # FIXME: insert proper C++ library support
3343 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3527 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3344 ;; 3528 ;;
3345 lcc) 3529 lcc*)
3346 # Lucid 3530 # Lucid
3347 # FIXME: insert proper C++ library support 3531 # FIXME: insert proper C++ library support
3348 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3532 _LT_AC_TAGVAR(ld_shlibs, $1)=no
@@ -3355,36 +3539,33 @@ case $host_os in
3355 ;; 3539 ;;
3356 solaris*) 3540 solaris*)
3357 case $cc_basename in 3541 case $cc_basename in
3358 CC) 3542 CC*)
3359 # Sun C++ 4.2, 5.x and Centerline C++ 3543 # Sun C++ 4.2, 5.x and Centerline C++
3544 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3360 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3545 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3361 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3546 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3362 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3363 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3548 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3364 3549
3365 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3550 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3366 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3551 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3367 case $host_os in 3552 case $host_os in
3368 solaris2.[0-5] | solaris2.[0-5].*) ;; 3553 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3369 *) 3554 *)
3370 # The C++ compiler is used as linker so we must use $wl 3555 # The C++ compiler is used as linker so we must use $wl
3371 # flag to pass the commands to the underlying system 3556 # flag to pass the commands to the underlying system
3372 # linker. 3557 # linker. We must also pass each convience library through
3558 # to the system linker between allextract/defaultextract.
3559 # The C++ compiler will combine linker options so we
3560 # cannot just pass the convience library names through
3561 # without $wl.
3373 # Supported since Solaris 2.6 (maybe 2.5.1?) 3562 # Supported since Solaris 2.6 (maybe 2.5.1?)
3374 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3563 _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'
3375 ;; 3564 ;;
3376 esac 3565 esac
3377 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3566 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3378 3567
3379 # Commands to make compiler produce verbose output that lists 3568 output_verbose_link_cmd='echo'
3380 # what "hidden" libraries, object files and flags are used when
3381 # linking a shared library.
3382 #
3383 # There doesn't appear to be a way to prevent this compiler from
3384 # explicitly linking system object files so we need to strip them
3385 # from the output so that they don't get included in the library
3386 # dependencies.
3387 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3388 3569
3389 # Archives containing C++ object files must be created using 3570 # Archives containing C++ object files must be created using
3390 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3571 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -3392,7 +3573,7 @@ case $host_os in
3392 # in the archive. 3573 # in the archive.
3393 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3574 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3394 ;; 3575 ;;
3395 gcx) 3576 gcx*)
3396 # Green Hills C++ Compiler 3577 # Green Hills C++ Compiler
3397 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3578 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3398 3579
@@ -3430,12 +3611,63 @@ case $host_os in
3430 ;; 3611 ;;
3431 esac 3612 esac
3432 ;; 3613 ;;
3433 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 3614 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3615 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3434 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3616 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3617 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3618 runpath_var='LD_RUN_PATH'
3619
3620 case $cc_basename in
3621 CC*)
3622 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3623 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3624 ;;
3625 *)
3626 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3627 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3628 ;;
3629 esac
3630 ;;
3631 sysv5* | sco3.2v5* | sco5v6*)
3632 # Note: We can NOT use -z defs as we might desire, because we do not
3633 # link with -lc, and that would cause any symbols used from libc to
3634 # always be unresolved, which means just about no library would
3635 # ever link correctly. If we're not using GNU ld we use -z text
3636 # though, which does catch some bad symbols but isn't as heavy-handed
3637 # as -z defs.
3638 # For security reasons, it is highly recommended that you always
3639 # use absolute paths for naming shared libraries, and exclude the
3640 # DT_RUNPATH tag from executables and libraries. But doing so
3641 # requires that you compile everything twice, which is a pain.
3642 # So that behaviour is only enabled if SCOABSPATH is set to a
3643 # non-empty value in the environment. Most likely only useful for
3644 # creating official distributions of packages.
3645 # This is a hack until libtool officially supports absolute path
3646 # names for shared libraries.
3647 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3648 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3649 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3650 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3651 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3652 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3653 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3654 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3655 runpath_var='LD_RUN_PATH'
3656
3657 case $cc_basename in
3658 CC*)
3659 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3660 _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'
3661 ;;
3662 *)
3663 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3664 _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'
3665 ;;
3666 esac
3435 ;; 3667 ;;
3436 tandem*) 3668 tandem*)
3437 case $cc_basename in 3669 case $cc_basename in
3438 NCC) 3670 NCC*)
3439 # NonStop-UX NCC 3.20 3671 # NonStop-UX NCC 3.20
3440 # FIXME: insert proper C++ library support 3672 # FIXME: insert proper C++ library support
3441 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3673 _LT_AC_TAGVAR(ld_shlibs, $1)=no
@@ -3468,8 +3700,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3468AC_LIBTOOL_PROG_LD_SHLIBS($1) 3700AC_LIBTOOL_PROG_LD_SHLIBS($1)
3469AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3701AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3470AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3702AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3471AC_LIBTOOL_SYS_LIB_STRIP
3472AC_LIBTOOL_DLOPEN_SELF($1)
3473 3703
3474AC_LIBTOOL_CONFIG($1) 3704AC_LIBTOOL_CONFIG($1)
3475 3705
@@ -3487,7 +3717,7 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3487])# AC_LIBTOOL_LANG_CXX_CONFIG 3717])# AC_LIBTOOL_LANG_CXX_CONFIG
3488 3718
3489# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3719# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3490# ------------------------ 3720# ------------------------------------
3491# Figure out "hidden" library dependencies from verbose 3721# Figure out "hidden" library dependencies from verbose
3492# compiler output when linking a shared library. 3722# compiler output when linking a shared library.
3493# Parse the compiler output and extract the necessary 3723# Parse the compiler output and extract the necessary
@@ -3541,7 +3771,7 @@ if AC_TRY_EVAL(ac_compile); then
3541 # The `*' in the case matches for architectures that use `case' in 3771 # The `*' in the case matches for architectures that use `case' in
3542 # $output_verbose_cmd can trigger glob expansion during the loop 3772 # $output_verbose_cmd can trigger glob expansion during the loop
3543 # eval without this substitution. 3773 # eval without this substitution.
3544 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 3774 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3545 3775
3546 for p in `eval $output_verbose_link_cmd`; do 3776 for p in `eval $output_verbose_link_cmd`; do
3547 case $p in 3777 case $p in
@@ -3617,13 +3847,37 @@ fi
3617 3847
3618$rm -f confest.$objext 3848$rm -f confest.$objext
3619 3849
3850# PORTME: override above test on systems where it is broken
3851ifelse([$1],[CXX],
3852[case $host_os in
3853interix3*)
3854 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3855 # hack all around it, let's just trust "g++" to DTRT.
3856 _LT_AC_TAGVAR(predep_objects,$1)=
3857 _LT_AC_TAGVAR(postdep_objects,$1)=
3858 _LT_AC_TAGVAR(postdeps,$1)=
3859 ;;
3860
3861solaris*)
3862 case $cc_basename in
3863 CC*)
3864 # Adding this requires a known-good setup of shared libraries for
3865 # Sun compiler versions before 5.6, else PIC objects from an old
3866 # archive will be linked into the output, leading to subtle bugs.
3867 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3868 ;;
3869 esac
3870 ;;
3871esac
3872])
3873
3620case " $_LT_AC_TAGVAR(postdeps, $1) " in 3874case " $_LT_AC_TAGVAR(postdeps, $1) " in
3621*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 3875*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3622esac 3876esac
3623])# AC_LIBTOOL_POSTDEP_PREDEP 3877])# AC_LIBTOOL_POSTDEP_PREDEP
3624 3878
3625# AC_LIBTOOL_LANG_F77_CONFIG 3879# AC_LIBTOOL_LANG_F77_CONFIG
3626# ------------------------ 3880# --------------------------
3627# Ensure that the configuration vars for the C compiler are 3881# Ensure that the configuration vars for the C compiler are
3628# suitably defined. Those variables are subsequently used by 3882# suitably defined. Those variables are subsequently used by
3629# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3883# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
@@ -3667,12 +3921,16 @@ lt_simple_link_test_code=" program t\n end\n"
3667# ltmain only uses $CC for tagged configurations so make sure $CC is set. 3921# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3668_LT_AC_SYS_COMPILER 3922_LT_AC_SYS_COMPILER
3669 3923
3924# save warnings/boilerplate of simple test code
3925_LT_COMPILER_BOILERPLATE
3926_LT_LINKER_BOILERPLATE
3927
3670# Allow CC to be a program name with arguments. 3928# Allow CC to be a program name with arguments.
3671lt_save_CC="$CC" 3929lt_save_CC="$CC"
3672CC=${F77-"f77"} 3930CC=${F77-"f77"}
3673compiler=$CC 3931compiler=$CC
3674_LT_AC_TAGVAR(compiler, $1)=$CC 3932_LT_AC_TAGVAR(compiler, $1)=$CC
3675cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 3933_LT_CC_BASENAME([$compiler])
3676 3934
3677AC_MSG_CHECKING([if libtool supports shared libraries]) 3935AC_MSG_CHECKING([if libtool supports shared libraries])
3678AC_MSG_RESULT([$can_build_shared]) 3936AC_MSG_RESULT([$can_build_shared])
@@ -3682,7 +3940,7 @@ test "$can_build_shared" = "no" && enable_shared=no
3682 3940
3683# On AIX, shared libraries and static libraries use the same namespace, and 3941# On AIX, shared libraries and static libraries use the same namespace, and
3684# are all built from PIC. 3942# are all built from PIC.
3685case "$host_os" in 3943case $host_os in
3686aix3*) 3944aix3*)
3687 test "$enable_shared" = yes && enable_static=no 3945 test "$enable_shared" = yes && enable_static=no
3688 if test -n "$RANLIB"; then 3946 if test -n "$RANLIB"; then
@@ -3691,7 +3949,9 @@ aix3*)
3691 fi 3949 fi
3692 ;; 3950 ;;
3693aix4* | aix5*) 3951aix4* | aix5*)
3694 test "$enable_shared" = yes && enable_static=no 3952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3953 test "$enable_shared" = yes && enable_static=no
3954 fi
3695 ;; 3955 ;;
3696esac 3956esac
3697AC_MSG_RESULT([$enable_shared]) 3957AC_MSG_RESULT([$enable_shared])
@@ -3701,8 +3961,6 @@ AC_MSG_CHECKING([whether to build static libraries])
3701test "$enable_shared" = yes || enable_static=yes 3961test "$enable_shared" = yes || enable_static=yes
3702AC_MSG_RESULT([$enable_static]) 3962AC_MSG_RESULT([$enable_static])
3703 3963
3704test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3705
3706_LT_AC_TAGVAR(GCC, $1)="$G77" 3964_LT_AC_TAGVAR(GCC, $1)="$G77"
3707_LT_AC_TAGVAR(LD, $1)="$LD" 3965_LT_AC_TAGVAR(LD, $1)="$LD"
3708 3966
@@ -3712,8 +3970,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3712AC_LIBTOOL_PROG_LD_SHLIBS($1) 3970AC_LIBTOOL_PROG_LD_SHLIBS($1)
3713AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3971AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3714AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3972AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3715AC_LIBTOOL_SYS_LIB_STRIP
3716
3717 3973
3718AC_LIBTOOL_CONFIG($1) 3974AC_LIBTOOL_CONFIG($1)
3719 3975
@@ -3742,20 +3998,27 @@ _LT_AC_TAGVAR(objext, $1)=$objext
3742lt_simple_compile_test_code="class foo {}\n" 3998lt_simple_compile_test_code="class foo {}\n"
3743 3999
3744# Code to be used in simple link tests 4000# Code to be used in simple link tests
3745lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 4001lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3746 4002
3747# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4003# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3748_LT_AC_SYS_COMPILER 4004_LT_AC_SYS_COMPILER
3749 4005
4006# save warnings/boilerplate of simple test code
4007_LT_COMPILER_BOILERPLATE
4008_LT_LINKER_BOILERPLATE
4009
3750# Allow CC to be a program name with arguments. 4010# Allow CC to be a program name with arguments.
3751lt_save_CC="$CC" 4011lt_save_CC="$CC"
3752CC=${GCJ-"gcj"} 4012CC=${GCJ-"gcj"}
3753compiler=$CC 4013compiler=$CC
3754_LT_AC_TAGVAR(compiler, $1)=$CC 4014_LT_AC_TAGVAR(compiler, $1)=$CC
4015_LT_CC_BASENAME([$compiler])
3755 4016
3756# GCJ did not exist at the time GCC didn't implicitly link libc in. 4017# GCJ did not exist at the time GCC didn't implicitly link libc in.
3757_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4018_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3758 4019
4020_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4021
3759AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4022AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3760AC_LIBTOOL_PROG_COMPILER_PIC($1) 4023AC_LIBTOOL_PROG_COMPILER_PIC($1)
3761AC_LIBTOOL_PROG_CC_C_O($1) 4024AC_LIBTOOL_PROG_CC_C_O($1)
@@ -3763,8 +4026,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3763AC_LIBTOOL_PROG_LD_SHLIBS($1) 4026AC_LIBTOOL_PROG_LD_SHLIBS($1)
3764AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4027AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3765AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4028AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3766AC_LIBTOOL_SYS_LIB_STRIP
3767AC_LIBTOOL_DLOPEN_SELF($1)
3768 4029
3769AC_LIBTOOL_CONFIG($1) 4030AC_LIBTOOL_CONFIG($1)
3770 4031
@@ -3774,7 +4035,7 @@ CC="$lt_save_CC"
3774 4035
3775 4036
3776# AC_LIBTOOL_LANG_RC_CONFIG 4037# AC_LIBTOOL_LANG_RC_CONFIG
3777# -------------------------- 4038# -------------------------
3778# Ensure that the configuration vars for the Windows resource compiler are 4039# Ensure that the configuration vars for the Windows resource compiler are
3779# suitably defined. Those variables are subsequently used by 4040# suitably defined. Those variables are subsequently used by
3780# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4041# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
@@ -3798,11 +4059,16 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
3798# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4059# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3799_LT_AC_SYS_COMPILER 4060_LT_AC_SYS_COMPILER
3800 4061
4062# save warnings/boilerplate of simple test code
4063_LT_COMPILER_BOILERPLATE
4064_LT_LINKER_BOILERPLATE
4065
3801# Allow CC to be a program name with arguments. 4066# Allow CC to be a program name with arguments.
3802lt_save_CC="$CC" 4067lt_save_CC="$CC"
3803CC=${RC-"windres"} 4068CC=${RC-"windres"}
3804compiler=$CC 4069compiler=$CC
3805_LT_AC_TAGVAR(compiler, $1)=$CC 4070_LT_AC_TAGVAR(compiler, $1)=$CC
4071_LT_CC_BASENAME([$compiler])
3806_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4072_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3807 4073
3808AC_LIBTOOL_CONFIG($1) 4074AC_LIBTOOL_CONFIG($1)
@@ -3832,7 +4098,7 @@ if test -f "$ltmain"; then
3832 # Now quote all the things that may contain metacharacters while being 4098 # Now quote all the things that may contain metacharacters while being
3833 # careful not to overquote the AC_SUBSTed values. We take copies of the 4099 # careful not to overquote the AC_SUBSTed values. We take copies of the
3834 # variables and quote the copies for generation of the libtool script. 4100 # variables and quote the copies for generation of the libtool script.
3835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 4101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3836 SED SHELL STRIP \ 4102 SED SHELL STRIP \
3837 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3838 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -3938,7 +4204,7 @@ ifelse([$1], [],
3938# 4204#
3939# You should have received a copy of the GNU General Public License 4205# You should have received a copy of the GNU General Public License
3940# along with this program; if not, write to the Free Software 4206# along with this program; if not, write to the Free Software
3941# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 4207# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3942# 4208#
3943# As a special exception to the GNU General Public License, if you 4209# As a special exception to the GNU General Public License, if you
3944# distribute this file as part of a program that contains a 4210# distribute this file as part of a program that contains a
@@ -3949,11 +4215,11 @@ ifelse([$1], [],
3949SED=$lt_SED 4215SED=$lt_SED
3950 4216
3951# Sed that helps us avoid accidentally triggering echo(1) options like -n. 4217# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3952Xsed="$SED -e s/^X//" 4218Xsed="$SED -e 1s/^X//"
3953 4219
3954# The HP-UX ksh and POSIX shell print the target directory to stdout 4220# The HP-UX ksh and POSIX shell print the target directory to stdout
3955# if CDPATH is set. 4221# if CDPATH is set.
3956if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 4222(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3957 4223
3958# The names of the tagged configurations supported by this script. 4224# The names of the tagged configurations supported by this script.
3959available_tags= 4225available_tags=
@@ -3984,6 +4250,12 @@ fast_install=$enable_fast_install
3984# The host system. 4250# The host system.
3985host_alias=$host_alias 4251host_alias=$host_alias
3986host=$host 4252host=$host
4253host_os=$host_os
4254
4255# The build system.
4256build_alias=$build_alias
4257build=$build
4258build_os=$build_os
3987 4259
3988# An echo program that does not interpret backslashes. 4260# An echo program that does not interpret backslashes.
3989echo=$lt_echo 4261echo=$lt_echo
@@ -3995,6 +4267,9 @@ AR_FLAGS=$lt_AR_FLAGS
3995# A C compiler. 4267# A C compiler.
3996LTCC=$lt_LTCC 4268LTCC=$lt_LTCC
3997 4269
4270# LTCC compiler flags.
4271LTCFLAGS=$lt_LTCFLAGS
4272
3998# A language-specific compiler. 4273# A language-specific compiler.
3999CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4274CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4000 4275
@@ -4060,7 +4335,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
4060# Does compiler simultaneously support -c and -o options? 4335# Does compiler simultaneously support -c and -o options?
4061compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4336compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4062 4337
4063# Must we lock files when doing compilation ? 4338# Must we lock files when doing compilation?
4064need_locks=$lt_need_locks 4339need_locks=$lt_need_locks
4065 4340
4066# Do we need the lib prefix for modules? 4341# Do we need the lib prefix for modules?
@@ -4334,9 +4609,6 @@ symcode='[[BCDEGRST]]'
4334# Regexp to match symbols that can be accessed directly from C. 4609# Regexp to match symbols that can be accessed directly from C.
4335sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4610sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4336 4611
4337# Transform the above into a raw symbol and a C symbol.
4338symxfrm='\1 \2\3 \3'
4339
4340# Transform an extracted symbol line into a proper C declaration 4612# Transform an extracted symbol line into a proper C declaration
4341lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4613lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4342 4614
@@ -4358,15 +4630,31 @@ hpux*) # Its linker distinguishes data from code symbols
4358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4359 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'" 4631 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'"
4360 ;; 4632 ;;
4633linux* | k*bsd*-gnu)
4634 if test "$host_cpu" = ia64; then
4635 symcode='[[ABCDGIRSTW]]'
4636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4637 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'"
4638 fi
4639 ;;
4361irix* | nonstopux*) 4640irix* | nonstopux*)
4362 symcode='[[BCDEGRST]]' 4641 symcode='[[BCDEGRST]]'
4363 ;; 4642 ;;
4364osf*) 4643osf*)
4365 symcode='[[BCDEGQRST]]' 4644 symcode='[[BCDEGQRST]]'
4366 ;; 4645 ;;
4367solaris* | sysv5*) 4646solaris*)
4368 symcode='[[BDRT]]' 4647 symcode='[[BDRT]]'
4369 ;; 4648 ;;
4649sco3.2v5*)
4650 symcode='[[DT]]'
4651 ;;
4652sysv4.2uw2*)
4653 symcode='[[DT]]'
4654 ;;
4655sysv5* | sco5v6* | unixware* | OpenUNIX*)
4656 symcode='[[ABDT]]'
4657 ;;
4370sysv4) 4658sysv4)
4371 symcode='[[DFNSTU]]' 4659 symcode='[[DFNSTU]]'
4372 ;; 4660 ;;
@@ -4389,8 +4677,11 @@ esac
4389# Try without a prefix undercore, then with it. 4677# Try without a prefix undercore, then with it.
4390for ac_symprfx in "" "_"; do 4678for ac_symprfx in "" "_"; do
4391 4679
4680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4681 symxfrm="\\1 $ac_symprfx\\2 \\2"
4682
4392 # Write the raw and C identifiers. 4683 # Write the raw and C identifiers.
4393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4684 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4394 4685
4395 # Check to see that the pipe works correctly. 4686 # Check to see that the pipe works correctly.
4396 pipe_works=no 4687 pipe_works=no
@@ -4546,6 +4837,10 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4546 # DJGPP does not support shared libraries at all 4837 # DJGPP does not support shared libraries at all
4547 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4838 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4548 ;; 4839 ;;
4840 interix3*)
4841 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4842 # Instead, we relocate shared libraries at runtime.
4843 ;;
4549 sysv4*MP*) 4844 sysv4*MP*)
4550 if test -d /usr/nec; then 4845 if test -d /usr/nec; then
4551 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4846 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
@@ -4554,7 +4849,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4554 hpux*) 4849 hpux*)
4555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4556 # not for PA HP-UX. 4851 # not for PA HP-UX.
4557 case "$host_cpu" in 4852 case $host_cpu in
4558 hppa*64*|ia64*) 4853 hppa*64*|ia64*)
4559 ;; 4854 ;;
4560 *) 4855 *)
@@ -4579,18 +4874,28 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4579 ;; 4874 ;;
4580 chorus*) 4875 chorus*)
4581 case $cc_basename in 4876 case $cc_basename in
4582 cxch68) 4877 cxch68*)
4583 # Green Hills C++ Compiler 4878 # Green Hills C++ Compiler
4584 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 4879 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4585 ;; 4880 ;;
4586 esac 4881 esac
4587 ;; 4882 ;;
4883 darwin*)
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 case $cc_basename in
4887 xlc*)
4888 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4889 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4890 ;;
4891 esac
4892 ;;
4588 dgux*) 4893 dgux*)
4589 case $cc_basename in 4894 case $cc_basename in
4590 ec++) 4895 ec++*)
4591 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4896 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4592 ;; 4897 ;;
4593 ghcx) 4898 ghcx*)
4594 # Green Hills C++ Compiler 4899 # Green Hills C++ Compiler
4595 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4900 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4596 ;; 4901 ;;
@@ -4598,22 +4903,22 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4598 ;; 4903 ;;
4599 esac 4904 esac
4600 ;; 4905 ;;
4601 freebsd* | kfreebsd*-gnu) 4906 freebsd* | dragonfly*)
4602 # FreeBSD uses GNU C++ 4907 # FreeBSD uses GNU C++
4603 ;; 4908 ;;
4604 hpux9* | hpux10* | hpux11*) 4909 hpux9* | hpux10* | hpux11*)
4605 case $cc_basename in 4910 case $cc_basename in
4606 CC) 4911 CC*)
4607 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4912 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 4913 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4609 if test "$host_cpu" != ia64; then 4914 if test "$host_cpu" != ia64; then
4610 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4915 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4611 fi 4916 fi
4612 ;; 4917 ;;
4613 aCC) 4918 aCC*)
4614 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4919 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4615 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 4920 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4616 case "$host_cpu" in 4921 case $host_cpu in
4617 hppa*64*|ia64*) 4922 hppa*64*|ia64*)
4618 # +Z the default 4923 # +Z the default
4619 ;; 4924 ;;
@@ -4626,9 +4931,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4626 ;; 4931 ;;
4627 esac 4932 esac
4628 ;; 4933 ;;
4934 interix*)
4935 # This is c89, which is MS Visual C++ (no shared libs)
4936 # Anyone wants to do a port?
4937 ;;
4629 irix5* | irix6* | nonstopux*) 4938 irix5* | irix6* | nonstopux*)
4630 case $cc_basename in 4939 case $cc_basename in
4631 CC) 4940 CC*)
4632 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4941 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4633 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4942 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4634 # CC pic flag -KPIC is the default. 4943 # CC pic flag -KPIC is the default.
@@ -4637,20 +4946,26 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4637 ;; 4946 ;;
4638 esac 4947 esac
4639 ;; 4948 ;;
4640 linux*) 4949 linux* | k*bsd*-gnu)
4641 case $cc_basename in 4950 case $cc_basename in
4642 KCC) 4951 KCC*)
4643 # KAI C++ Compiler 4952 # KAI C++ Compiler
4644 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4953 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4645 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4954 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4646 ;; 4955 ;;
4647 icpc) 4956 icpc* | ecpc*)
4648 # Intel C++ 4957 # Intel C++
4649 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4958 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4650 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4959 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4651 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4960 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4652 ;; 4961 ;;
4653 cxx) 4962 pgCC*)
4963 # Portland Group C++ compiler.
4964 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4966 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4967 ;;
4968 cxx*)
4654 # Compaq C++ 4969 # Compaq C++
4655 # Make sure the PIC flag is empty. It appears that all Alpha 4970 # Make sure the PIC flag is empty. It appears that all Alpha
4656 # Linux and Compaq Tru64 Unix objects are PIC. 4971 # Linux and Compaq Tru64 Unix objects are PIC.
@@ -4667,25 +4982,25 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4667 ;; 4982 ;;
4668 mvs*) 4983 mvs*)
4669 case $cc_basename in 4984 case $cc_basename in
4670 cxx) 4985 cxx*)
4671 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4986 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4672 ;; 4987 ;;
4673 *) 4988 *)
4674 ;; 4989 ;;
4675 esac 4990 esac
4676 ;; 4991 ;;
4677 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 4992 netbsd* | netbsdelf*-gnu)
4678 ;; 4993 ;;
4679 osf3* | osf4* | osf5*) 4994 osf3* | osf4* | osf5*)
4680 case $cc_basename in 4995 case $cc_basename in
4681 KCC) 4996 KCC*)
4682 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4997 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4683 ;; 4998 ;;
4684 RCC) 4999 RCC*)
4685 # Rational C++ 2.4.1 5000 # Rational C++ 2.4.1
4686 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5001 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4687 ;; 5002 ;;
4688 cxx) 5003 cxx*)
4689 # Digital/Compaq C++ 5004 # Digital/Compaq C++
4690 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5005 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4691 # Make sure the PIC flag is empty. It appears that all Alpha 5006 # Make sure the PIC flag is empty. It appears that all Alpha
@@ -4699,24 +5014,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4699 ;; 5014 ;;
4700 psos*) 5015 psos*)
4701 ;; 5016 ;;
4702 sco*)
4703 case $cc_basename in
4704 CC)
4705 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4706 ;;
4707 *)
4708 ;;
4709 esac
4710 ;;
4711 solaris*) 5017 solaris*)
4712 case $cc_basename in 5018 case $cc_basename in
4713 CC) 5019 CC*)
4714 # Sun C++ 4.2, 5.x and Centerline C++ 5020 # Sun C++ 4.2, 5.x and Centerline C++
4715 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4716 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5022 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4717 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5023 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4718 ;; 5024 ;;
4719 gcx) 5025 gcx*)
4720 # Green Hills C++ Compiler 5026 # Green Hills C++ Compiler
4721 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5027 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4722 ;; 5028 ;;
@@ -4726,12 +5032,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4726 ;; 5032 ;;
4727 sunos4*) 5033 sunos4*)
4728 case $cc_basename in 5034 case $cc_basename in
4729 CC) 5035 CC*)
4730 # Sun C++ 4.x 5036 # Sun C++ 4.x
4731 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5037 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4732 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5038 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4733 ;; 5039 ;;
4734 lcc) 5040 lcc*)
4735 # Lucid 5041 # Lucid
4736 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5042 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4737 ;; 5043 ;;
@@ -4741,7 +5047,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4741 ;; 5047 ;;
4742 tandem*) 5048 tandem*)
4743 case $cc_basename in 5049 case $cc_basename in
4744 NCC) 5050 NCC*)
4745 # NonStop-UX NCC 3.20 5051 # NonStop-UX NCC 3.20
4746 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5052 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4747 ;; 5053 ;;
@@ -4749,7 +5055,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4749 ;; 5055 ;;
4750 esac 5056 esac
4751 ;; 5057 ;;
4752 unixware*) 5058 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5059 case $cc_basename in
5060 CC*)
5061 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5062 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5063 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5064 ;;
5065 esac
4753 ;; 5066 ;;
4754 vxworks*) 5067 vxworks*)
4755 ;; 5068 ;;
@@ -4796,6 +5109,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4796 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5109 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4797 ;; 5110 ;;
4798 5111
5112 interix3*)
5113 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5114 # Instead, we relocate shared libraries at runtime.
5115 ;;
5116
4799 msdosdjgpp*) 5117 msdosdjgpp*)
4800 # Just because we use GCC doesn't mean we suddenly get shared libraries 5118 # Just because we use GCC doesn't mean we suddenly get shared libraries
4801 # on systems that don't support them. 5119 # on systems that don't support them.
@@ -4812,7 +5130,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4812 hpux*) 5130 hpux*)
4813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4814 # not for PA HP-UX. 5132 # not for PA HP-UX.
4815 case "$host_cpu" in 5133 case $host_cpu in
4816 hppa*64*|ia64*) 5134 hppa*64*|ia64*)
4817 # +Z the default 5135 # +Z the default
4818 ;; 5136 ;;
@@ -4838,6 +5156,16 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4838 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5156 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4839 fi 5157 fi
4840 ;; 5158 ;;
5159 darwin*)
5160 # PIC is the default on this platform
5161 # Common symbols not allowed in MH_DYLIB files
5162 case $cc_basename in
5163 xlc*)
5164 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5165 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5166 ;;
5167 esac
5168 ;;
4841 5169
4842 mingw* | pw32* | os2*) 5170 mingw* | pw32* | os2*)
4843 # This hack is so that the source file can tell whether it is being 5171 # This hack is so that the source file can tell whether it is being
@@ -4849,7 +5177,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4849 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5177 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4851 # not for PA HP-UX. 5179 # not for PA HP-UX.
4852 case "$host_cpu" in 5180 case $host_cpu in
4853 hppa*64*|ia64*) 5181 hppa*64*|ia64*)
4854 # +Z the default 5182 # +Z the default
4855 ;; 5183 ;;
@@ -4872,13 +5200,20 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4872 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5200 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4873 ;; 5201 ;;
4874 5202
4875 linux*) 5203 linux* | k*bsd*-gnu)
4876 case $CC in 5204 case $cc_basename in
4877 icc* | ecc*) 5205 icc* | ecc*)
4878 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5206 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4879 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5207 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4880 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5208 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4881 ;; 5209 ;;
5210 pgcc* | pgf77* | pgf90* | pgf95*)
5211 # Portland Group compilers (*not* the Pentium gcc compiler,
5212 # which looks to be a dead project)
5213 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5214 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5216 ;;
4882 ccc*) 5217 ccc*)
4883 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5218 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4884 # All Alpha code is PIC. 5219 # All Alpha code is PIC.
@@ -4893,15 +5228,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4893 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5228 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4894 ;; 5229 ;;
4895 5230
4896 sco3.2v5*)
4897 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4898 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4899 ;;
4900
4901 solaris*) 5231 solaris*)
4902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5232 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4904 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5233 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5234 case $cc_basename in
5235 f77* | f90* | f95*)
5236 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5237 *)
5238 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5239 esac
4905 ;; 5240 ;;
4906 5241
4907 sunos4*) 5242 sunos4*)
@@ -4910,7 +5245,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4910 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5245 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911 ;; 5246 ;;
4912 5247
4913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5248 sysv4 | sysv4.2uw2* | sysv4.3*)
4914 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5249 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4915 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5250 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4916 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5251 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -4923,6 +5258,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4923 fi 5258 fi
4924 ;; 5259 ;;
4925 5260
5261 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5262 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5263 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5264 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265 ;;
5266
5267 unicos*)
5268 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5269 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5270 ;;
5271
4926 uts4*) 5272 uts4*)
4927 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5273 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4928 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5274 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -4950,7 +5296,7 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
4950 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5296 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4951 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5297 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4952fi 5298fi
4953case "$host_os" in 5299case $host_os in
4954 # For platforms which do not support PIC, -DPIC is meaningless: 5300 # For platforms which do not support PIC, -DPIC is meaningless:
4955 *djgpp*) 5301 *djgpp*)
4956 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5302 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
@@ -4959,6 +5305,16 @@ case "$host_os" in
4959 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 5305 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4960 ;; 5306 ;;
4961esac 5307esac
5308
5309#
5310# Check to make sure the static flag actually works.
5311#
5312wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5313AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5314 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5315 $lt_tmp_static_flag,
5316 [],
5317 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4962]) 5318])
4963 5319
4964 5320
@@ -4983,9 +5339,9 @@ ifelse([$1],[CXX],[
4983 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5339 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4984 ;; 5340 ;;
4985 cygwin* | mingw*) 5341 cygwin* | mingw*)
4986 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5342 _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'
4987 ;; 5343 ;;
4988 linux*) 5344 linux* | k*bsd*-gnu)
4989 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 5345 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4990 ;; 5346 ;;
4991 *) 5347 *)
@@ -5029,7 +5385,8 @@ ifelse([$1],[CXX],[
5029 # rely on this symbol name, it's probably fine to never include it in 5385 # rely on this symbol name, it's probably fine to never include it in
5030 # preloaded symbol tables. 5386 # preloaded symbol tables.
5031 extract_expsyms_cmds= 5387 extract_expsyms_cmds=
5032 5388 # Just being paranoid about ensuring that cc_basename is set.
5389 _LT_CC_BASENAME([$compiler])
5033 case $host_os in 5390 case $host_os in
5034 cygwin* | mingw* | pw32*) 5391 cygwin* | mingw* | pw32*)
5035 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
@@ -5039,6 +5396,10 @@ ifelse([$1],[CXX],[
5039 with_gnu_ld=no 5396 with_gnu_ld=no
5040 fi 5397 fi
5041 ;; 5398 ;;
5399 interix*)
5400 # we just hope/assume this is gcc and not c89 (= MSVC++)
5401 with_gnu_ld=yes
5402 ;;
5042 openbsd*) 5403 openbsd*)
5043 with_gnu_ld=no 5404 with_gnu_ld=no
5044 ;; 5405 ;;
@@ -5049,6 +5410,27 @@ ifelse([$1],[CXX],[
5049 # If archive_cmds runs LD, not CC, wlarc should be empty 5410 # If archive_cmds runs LD, not CC, wlarc should be empty
5050 wlarc='${wl}' 5411 wlarc='${wl}'
5051 5412
5413 # Set some defaults for GNU ld with shared library support. These
5414 # are reset later if shared libraries are not supported. Putting them
5415 # here allows them to be overridden if necessary.
5416 runpath_var=LD_RUN_PATH
5417 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5418 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5419 # ancient GNU ld didn't support --whole-archive et. al.
5420 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5421 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5422 else
5423 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5424 fi
5425 supports_anon_versioning=no
5426 case `$LD -v 2>/dev/null` in
5427 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5430 *\ 2.11.*) ;; # other 2.11 versions
5431 *) supports_anon_versioning=yes ;;
5432 esac
5433
5052 # See if GNU ld supports shared libraries. 5434 # See if GNU ld supports shared libraries.
5053 case $host_os in 5435 case $host_os in
5054 aix3* | aix4* | aix5*) 5436 aix3* | aix4* | aix5*)
@@ -5099,10 +5481,10 @@ EOF
5099 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5481 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5100 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5482 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5101 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5483 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5102 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5484 _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'
5103 5485
5104 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5486 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5487 _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'
5106 # If the export-symbols file already is a .def file (1st line 5488 # If the export-symbols file already is a .def file (1st line
5107 # is EXPORTS), use it as is; otherwise, prepend... 5489 # is EXPORTS), use it as is; otherwise, prepend...
5108 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5490 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -5111,13 +5493,60 @@ EOF
5111 echo EXPORTS > $output_objdir/$soname.def; 5493 echo EXPORTS > $output_objdir/$soname.def;
5112 cat $export_symbols >> $output_objdir/$soname.def; 5494 cat $export_symbols >> $output_objdir/$soname.def;
5113 fi~ 5495 fi~
5114 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5115 else 5497 else
5116 ld_shlibs=no 5498 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5117 fi 5499 fi
5118 ;; 5500 ;;
5119 5501
5120 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5502 interix3*)
5503 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5504 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5506 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5508 # Instead, shared libraries are loaded at an image base (0x10000000 by
5509 # default) and relocated if they conflict, which is a slow very memory
5510 # consuming and fragmenting process. To avoid this, we pick a random,
5511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5513 _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'
5514 _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'
5515 ;;
5516
5517 linux* | k*bsd*-gnu)
5518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5519 tmp_addflag=
5520 case $cc_basename,$host_cpu in
5521 pgcc*) # Portland Group C compiler
5522 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5523 tmp_addflag=' $pic_flag'
5524 ;;
5525 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5526 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5527 tmp_addflag=' $pic_flag -Mnomain' ;;
5528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5529 tmp_addflag=' -i_dynamic' ;;
5530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5531 tmp_addflag=' -i_dynamic -nofor_main' ;;
5532 ifc* | ifort*) # Intel Fortran compiler
5533 tmp_addflag=' -nofor_main' ;;
5534 esac
5535 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536
5537 if test $supports_anon_versioning = yes; then
5538 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540 $echo "local: *; };" >> $output_objdir/$libname.ver~
5541 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5542 fi
5543 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5544 else
5545 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5546 fi
5547 ;;
5548
5549 netbsd* | netbsdelf*-gnu)
5121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5122 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5551 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5123 wlarc= 5552 wlarc=
@@ -5127,7 +5556,7 @@ EOF
5127 fi 5556 fi
5128 ;; 5557 ;;
5129 5558
5130 solaris* | sysv5*) 5559 solaris*)
5131 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5560 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5132 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5561 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5133 cat <<EOF 1>&2 5562 cat <<EOF 1>&2
@@ -5148,6 +5577,33 @@ EOF
5148 fi 5577 fi
5149 ;; 5578 ;;
5150 5579
5580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5581 case `$LD -v 2>&1` in
5582 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5583 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5584 cat <<_LT_EOF 1>&2
5585
5586*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5587*** reliably create shared libraries on SCO systems. Therefore, libtool
5588*** is disabling shared libraries support. We urge you to upgrade GNU
5589*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5590*** your PATH or compiler configuration so that the native linker is
5591*** used, and then restart.
5592
5593_LT_EOF
5594 ;;
5595 *)
5596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5597 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5598 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5599 _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'
5600 else
5601 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5602 fi
5603 ;;
5604 esac
5605 ;;
5606
5151 sunos4*) 5607 sunos4*)
5152 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5608 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5153 wlarc= 5609 wlarc=
@@ -5155,32 +5611,6 @@ EOF
5155 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5611 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5156 ;; 5612 ;;
5157 5613
5158 linux*)
5159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5160 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5161 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5162 supports_anon_versioning=no
5163 case `$LD -v 2>/dev/null` in
5164 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5167 *\ 2.11.*) ;; # other 2.11 versions
5168 *) supports_anon_versioning=yes ;;
5169 esac
5170 if test $supports_anon_versioning = yes; then
5171 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5172cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5173$echo "local: *; };" >> $output_objdir/$libname.ver~
5174 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5175 else
5176 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5177 fi
5178 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5179 else
5180 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5181 fi
5182 ;;
5183
5184 *) 5614 *)
5185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5186 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5616 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -5191,16 +5621,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5191 ;; 5621 ;;
5192 esac 5622 esac
5193 5623
5194 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 5624 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5195 runpath_var=LD_RUN_PATH 5625 runpath_var=
5196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5626 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5197 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5198 # ancient GNU ld didn't support --whole-archive et. al. 5628 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5200 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5201 else
5202 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5203 fi
5204 fi 5629 fi
5205 else 5630 else
5206 # PORTME fill in a description of your system's linker (not GNU ld) 5631 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -5212,7 +5637,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5212 # Note: this linker hardcodes the directories in LIBPATH if there 5637 # Note: this linker hardcodes the directories in LIBPATH if there
5213 # are no directories specified by -L. 5638 # are no directories specified by -L.
5214 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5639 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5215 if test "$GCC" = yes && test -z "$link_static_flag"; then 5640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5216 # Neither direct hardcoding nor static linking is supported with a 5641 # Neither direct hardcoding nor static linking is supported with a
5217 # broken collect2. 5642 # broken collect2.
5218 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5643 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
@@ -5246,6 +5671,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5246 break 5671 break
5247 fi 5672 fi
5248 done 5673 done
5674 ;;
5249 esac 5675 esac
5250 5676
5251 exp_sym_flag='-bexport' 5677 exp_sym_flag='-bexport'
@@ -5264,7 +5690,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5264 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5690 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5265 5691
5266 if test "$GCC" = yes; then 5692 if test "$GCC" = yes; then
5267 case $host_os in aix4.[012]|aix4.[012].*) 5693 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5268 # We only want to do this on AIX 4.2 and lower, the check 5694 # We only want to do this on AIX 4.2 and lower, the check
5269 # below for broken collect2 doesn't work under 4.3+ 5695 # below for broken collect2 doesn't work under 4.3+
5270 collect2name=`${CC} -print-prog-name=collect2` 5696 collect2name=`${CC} -print-prog-name=collect2`
@@ -5283,8 +5709,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5283 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5709 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5284 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5710 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5285 fi 5711 fi
5712 ;;
5286 esac 5713 esac
5287 shared_flag='-shared' 5714 shared_flag='-shared'
5715 if test "$aix_use_runtimelinking" = yes; then
5716 shared_flag="$shared_flag "'${wl}-G'
5717 fi
5288 else 5718 else
5289 # not using gcc 5719 # not using gcc
5290 if test "$host_cpu" = ia64; then 5720 if test "$host_cpu" = ia64; then
@@ -5292,11 +5722,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5292 # chokes on -Wl,-G. The following line is correct: 5722 # chokes on -Wl,-G. The following line is correct:
5293 shared_flag='-G' 5723 shared_flag='-G'
5294 else 5724 else
5295 if test "$aix_use_runtimelinking" = yes; then 5725 if test "$aix_use_runtimelinking" = yes; then
5296 shared_flag='${wl}-G' 5726 shared_flag='${wl}-G'
5297 else 5727 else
5298 shared_flag='${wl}-bM:SRE' 5728 shared_flag='${wl}-bM:SRE'
5299 fi 5729 fi
5300 fi 5730 fi
5301 fi 5731 fi
5302 5732
@@ -5310,12 +5740,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5310 # Determine the default libpath from the value encoded in an empty executable. 5740 # Determine the default libpath from the value encoded in an empty executable.
5311 _LT_AC_SYS_LIBPATH_AIX 5741 _LT_AC_SYS_LIBPATH_AIX
5312 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5742 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5313 _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" 5743 _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"
5314 else 5744 else
5315 if test "$host_cpu" = ia64; then 5745 if test "$host_cpu" = ia64; then
5316 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5746 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5317 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5747 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5318 _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" 5748 _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"
5319 else 5749 else
5320 # Determine the default libpath from the value encoded in an empty executable. 5750 # Determine the default libpath from the value encoded in an empty executable.
5321 _LT_AC_SYS_LIBPATH_AIX 5751 _LT_AC_SYS_LIBPATH_AIX
@@ -5324,13 +5754,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5324 # -berok will link without error, but may produce a broken library. 5754 # -berok will link without error, but may produce a broken library.
5325 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5755 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5326 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5756 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5327 # -bexpall does not export symbols beginning with underscore (_)
5328 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5329 # Exported symbols can be pulled into shared objects from archives 5757 # Exported symbols can be pulled into shared objects from archives
5330 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 5758 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5331 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5759 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5332 # This is similar to how AIX traditionally builds it's shared libraries. 5760 # This is similar to how AIX traditionally builds its shared libraries.
5333 _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' 5761 _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'
5334 fi 5762 fi
5335 fi 5763 fi
5336 ;; 5764 ;;
@@ -5343,7 +5771,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5343 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5771 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5344 ;; 5772 ;;
5345 5773
5346 bsdi4*) 5774 bsdi[[45]]*)
5347 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5775 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5348 ;; 5776 ;;
5349 5777
@@ -5364,57 +5792,57 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5364 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5792 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5365 # FIXME: Should let the user specify the lib program. 5793 # FIXME: Should let the user specify the lib program.
5366 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 5794 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5367 fix_srcfile_path='`cygpath -w "$srcfile"`' 5795 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5368 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5796 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5369 ;; 5797 ;;
5370 5798
5371 darwin* | rhapsody*) 5799 darwin* | rhapsody*)
5372 if test "$GXX" = yes ; then 5800 case $host_os in
5373 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5801 rhapsody* | darwin1.[[012]])
5374 case "$host_os" in 5802 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5375 rhapsody* | darwin1.[[012]]) 5803 ;;
5376 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 5804 *) # Darwin 1.3 on
5377 ;; 5805 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5378 *) # Darwin 1.3 on 5806 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5807 else
5380 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5808 case ${MACOSX_DEPLOYMENT_TARGET} in
5381 else 5809 10.[[012]])
5382 case ${MACOSX_DEPLOYMENT_TARGET} in 5810 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5383 10.[[012]]) 5811 ;;
5384 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5812 10.*)
5385 ;; 5813 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5386 10.*) 5814 ;;
5387 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 5815 esac
5388 ;; 5816 fi
5389 esac 5817 ;;
5390 fi
5391 ;;
5392 esac 5818 esac
5393 lt_int_apple_cc_single_mod=no 5819 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5394 output_verbose_link_cmd='echo'
5395 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5396 lt_int_apple_cc_single_mod=yes
5397 fi
5398 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5400 else
5401 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5402 fi
5403 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5405 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5406 _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}'
5407 else
5408 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5409 fi
5410 _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}'
5411 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5820 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5412 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5821 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5413 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5822 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5414 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 5823 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5415 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5824 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5825 if test "$GCC" = yes ; then
5826 output_verbose_link_cmd='echo'
5827 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5828 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5830 _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}'
5831 _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}'
5416 else 5832 else
5417 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5833 case $cc_basename in
5834 xlc*)
5835 output_verbose_link_cmd='echo'
5836 _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'
5837 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839 _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}'
5840 _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}'
5841 ;;
5842 *)
5843 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5844 ;;
5845 esac
5418 fi 5846 fi
5419 ;; 5847 ;;
5420 5848
@@ -5448,7 +5876,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5448 ;; 5876 ;;
5449 5877
5450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5878 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5451 freebsd* | kfreebsd*-gnu) 5879 freebsd* | dragonfly*)
5452 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5880 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5453 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5881 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5454 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5882 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
@@ -5471,47 +5899,62 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5471 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5899 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5472 ;; 5900 ;;
5473 5901
5474 hpux10* | hpux11*) 5902 hpux10*)
5475 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5476 case "$host_cpu" in 5904 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5477 hppa*64*|ia64*) 5905 else
5906 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5907 fi
5908 if test "$with_gnu_ld" = no; then
5909 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5910 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5911
5912 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5913 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5914
5915 # hardcode_minus_L: Not really in the search PATH,
5916 # but as the default location of the library.
5917 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5918 fi
5919 ;;
5920
5921 hpux11*)
5922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5923 case $host_cpu in
5924 hppa*64*)
5478 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5479 ;; 5926 ;;
5927 ia64*)
5928 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5929 ;;
5480 *) 5930 *)
5481 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5931 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5482 ;; 5932 ;;
5483 esac 5933 esac
5484 else 5934 else
5485 case "$host_cpu" in 5935 case $host_cpu in
5486 hppa*64*|ia64*) 5936 hppa*64*)
5487 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 5937 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5938 ;;
5939 ia64*)
5940 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5488 ;; 5941 ;;
5489 *) 5942 *)
5490 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5943 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5491 ;; 5944 ;;
5492 esac 5945 esac
5493 fi 5946 fi
5494 if test "$with_gnu_ld" = no; then 5947 if test "$with_gnu_ld" = no; then
5495 case "$host_cpu" in 5948 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5496 hppa*64*) 5949 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5497 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5950
5951 case $host_cpu in
5952 hppa*64*|ia64*)
5498 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5953 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5499 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5500 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5954 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5501 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5955 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5502 ;; 5956 ;;
5503 ia64*)
5504 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5505 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5506 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5507
5508 # hardcode_minus_L: Not really in the search PATH,
5509 # but as the default location of the library.
5510 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5511 ;;
5512 *) 5957 *)
5513 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5514 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5515 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5958 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5516 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5959 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5517 5960
@@ -5535,7 +5978,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5535 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5978 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5536 ;; 5979 ;;
5537 5980
5538 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5981 netbsd* | netbsdelf*-gnu)
5539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5540 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5983 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5541 else 5984 else
@@ -5559,6 +6002,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5559 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6002 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5561 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6005 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5562 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5563 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6007 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5564 else 6008 else
@@ -5604,7 +6048,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5604 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6048 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5605 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6049 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5606 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6050 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5607 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6051 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5608 6052
5609 # Both c and cxx compiler support -rpath directly 6053 # Both c and cxx compiler support -rpath directly
5610 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6054 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -5612,21 +6056,15 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5612 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6056 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5613 ;; 6057 ;;
5614 6058
5615 sco3.2v5*)
5616 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5617 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5618 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5619 runpath_var=LD_RUN_PATH
5620 hardcode_runpath_var=yes
5621 ;;
5622
5623 solaris*) 6059 solaris*)
5624 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6060 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5625 if test "$GCC" = yes; then 6061 if test "$GCC" = yes; then
6062 wlarc='${wl}'
5626 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6063 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5627 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6064 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5628 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6065 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5629 else 6066 else
6067 wlarc=''
5630 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6068 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5631 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6069 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6070 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
@@ -5635,8 +6073,18 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5635 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6073 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5636 case $host_os in 6074 case $host_os in
5637 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6075 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5638 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6076 *)
5639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6077 # The compiler driver will combine linker options so we
6078 # cannot just pass the convience library names through
6079 # without $wl, iff we do not link with $LD.
6080 # Luckily, gcc supports the same syntax we need for Sun Studio.
6081 # Supported since Solaris 2.6 (maybe 2.5.1?)
6082 case $wlarc in
6083 '')
6084 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6085 *)
6086 _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' ;;
6087 esac ;;
5640 esac 6088 esac
5641 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6089 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5642 ;; 6090 ;;
@@ -5693,36 +6141,45 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5693 fi 6141 fi
5694 ;; 6142 ;;
5695 6143
5696 sysv4.2uw2*) 6144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
5697 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6145 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5698 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6146 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5699 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5700 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6147 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5701 hardcode_runpath_var=yes 6148 runpath_var='LD_RUN_PATH'
5702 runpath_var=LD_RUN_PATH
5703 ;;
5704 6149
5705 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5706 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5707 if test "$GCC" = yes; then 6150 if test "$GCC" = yes; then
5708 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6151 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6152 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5709 else 6153 else
5710 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6154 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6155 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5711 fi 6156 fi
5712 runpath_var='LD_RUN_PATH'
5713 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5714 ;; 6157 ;;
5715 6158
5716 sysv5*) 6159 sysv5* | sco3.2v5* | sco5v6*)
5717 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6160 # Note: We can NOT use -z defs as we might desire, because we do not
5718 # $CC -shared without GNU ld will not create a library from C++ 6161 # link with -lc, and that would cause any symbols used from libc to
5719 # object files and a static libstdc++, better avoid it by now 6162 # always be unresolved, which means just about no library would
5720 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6163 # ever link correctly. If we're not using GNU ld we use -z text
5721 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6164 # though, which does catch some bad symbols but isn't as heavy-handed
5722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6165 # as -z defs.
5723 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6166 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6167 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6168 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5724 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6169 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6170 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6171 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6172 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6173 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5725 runpath_var='LD_RUN_PATH' 6174 runpath_var='LD_RUN_PATH'
6175
6176 if test "$GCC" = yes; then
6177 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6178 _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'
6179 else
6180 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6181 _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'
6182 fi
5726 ;; 6183 ;;
5727 6184
5728 uts4*) 6185 uts4*)
@@ -5740,11 +6197,6 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5740AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6197AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5741test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6198test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5742 6199
5743variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5744if test "$GCC" = yes; then
5745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5746fi
5747
5748# 6200#
5749# Do we need to explicitly link libc? 6201# Do we need to explicitly link libc?
5750# 6202#
@@ -5772,6 +6224,7 @@ x|xyes)
5772 libobjs=conftest.$ac_objext 6224 libobjs=conftest.$ac_objext
5773 deplibs= 6225 deplibs=
5774 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6226 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6227 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5775 compiler_flags=-v 6228 compiler_flags=-v
5776 linker_flags=-v 6229 linker_flags=-v
5777 verstring= 6230 verstring=
@@ -5897,7 +6350,7 @@ lt_ac_count=0
5897# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6350# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5898# along with /bin/sed that truncates output. 6351# along with /bin/sed that truncates output.
5899for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6352for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5900 test ! -f $lt_ac_sed && break 6353 test ! -f $lt_ac_sed && continue
5901 cat /dev/null > conftest.in 6354 cat /dev/null > conftest.in
5902 lt_ac_count=0 6355 lt_ac_count=0
5903 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
@@ -5922,14 +6375,13 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5922 fi 6375 fi
5923 done 6376 done
5924done 6377done
5925SED=$lt_cv_path_SED
5926]) 6378])
6379SED=$lt_cv_path_SED
5927AC_MSG_RESULT([$SED]) 6380AC_MSG_RESULT([$SED])
5928]) 6381])
5929 6382
5930 6383
5931# serial 6 AC_LIB_LTDL 6384# serial 7 AC_LIB_LTDL
5932# Debian $Rev: 214 $
5933 6385
5934# AC_WITH_LTDL 6386# AC_WITH_LTDL
5935# ------------ 6387# ------------
@@ -5966,7 +6418,7 @@ fi
5966if test "x$with_included_ltdl" = xno; then 6418if test "x$with_included_ltdl" = xno; then
5967 # If the included ltdl is not to be used. then Use the 6419 # If the included ltdl is not to be used. then Use the
5968 # preinstalled libltdl we found. 6420 # preinstalled libltdl we found.
5969 AC_DEFINE([HAVE_LTDL], 1, 6421 AC_DEFINE([HAVE_LTDL], [1],
5970 [Define this if a modern libltdl is already installed]) 6422 [Define this if a modern libltdl is already installed])
5971 LIBLTDL=-lltdl 6423 LIBLTDL=-lltdl
5972fi 6424fi
@@ -6023,7 +6475,7 @@ AC_DEFUN([AC_LTDL_ENABLE_INSTALL],
6023 6475
6024AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) 6476AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
6025AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) 6477AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)
6026])])# AC_LTDL_ENABLE_INSTALL 6478])# AC_LTDL_ENABLE_INSTALL
6027 6479
6028 6480
6029# AC_LTDL_SYS_DLOPEN_DEPLIBS 6481# AC_LTDL_SYS_DLOPEN_DEPLIBS
@@ -6050,14 +6502,17 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
6050 # Assuming the user has installed a libdl from somewhere, this is true 6502 # Assuming the user has installed a libdl from somewhere, this is true
6051 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 6503 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
6052 libltdl_cv_sys_dlopen_deplibs=yes 6504 libltdl_cv_sys_dlopen_deplibs=yes
6053 ;; 6505 ;;
6054 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 6506 gnu* | linux* | k*bsd*-gnu)
6055 # GNU and its variants, using gnu ld.so (Glibc) 6507 # GNU and its variants, using gnu ld.so (Glibc)
6056 libltdl_cv_sys_dlopen_deplibs=yes 6508 libltdl_cv_sys_dlopen_deplibs=yes
6057 ;; 6509 ;;
6058 hpux10*|hpux11*) 6510 hpux10*|hpux11*)
6059 libltdl_cv_sys_dlopen_deplibs=yes 6511 libltdl_cv_sys_dlopen_deplibs=yes
6060 ;; 6512 ;;
6513 interix*)
6514 libltdl_cv_sys_dlopen_deplibs=yes
6515 ;;
6061 irix[[12345]]*|irix6.[[01]]*) 6516 irix[[12345]]*|irix6.[[01]]*)
6062 # Catch all versions of IRIX before 6.2, and indicate that we don't 6517 # Catch all versions of IRIX before 6.2, and indicate that we don't
6063 # know how it worked for any of those versions. 6518 # know how it worked for any of those versions.
@@ -6099,6 +6554,9 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
6099 solaris*) 6554 solaris*)
6100 libltdl_cv_sys_dlopen_deplibs=yes 6555 libltdl_cv_sys_dlopen_deplibs=yes
6101 ;; 6556 ;;
6557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6558 libltdl_cv_sys_dlopen_deplibs=yes
6559 ;;
6102 esac 6560 esac
6103 ]) 6561 ])
6104if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 6562if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
@@ -6119,7 +6577,7 @@ module=yes
6119eval libltdl_cv_shlibext=$shrext_cmds 6577eval libltdl_cv_shlibext=$shrext_cmds
6120 ]) 6578 ])
6121if test -n "$libltdl_cv_shlibext"; then 6579if test -n "$libltdl_cv_shlibext"; then
6122 AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext", 6580 AC_DEFINE_UNQUOTED([LTDL_SHLIB_EXT], ["$libltdl_cv_shlibext"],
6123 [Define to the extension used for shared libraries, say, ".so".]) 6581 [Define to the extension used for shared libraries, say, ".so".])
6124fi 6582fi
6125])# AC_LTDL_SHLIBEXT 6583])# AC_LTDL_SHLIBEXT
@@ -6132,7 +6590,7 @@ AC_DEFUN([AC_LTDL_SHLIBPATH],
6132AC_CACHE_CHECK([which variable specifies run-time library path], 6590AC_CACHE_CHECK([which variable specifies run-time library path],
6133 [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) 6591 [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"])
6134if test -n "$libltdl_cv_shlibpath_var"; then 6592if test -n "$libltdl_cv_shlibpath_var"; then
6135 AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var", 6593 AC_DEFINE_UNQUOTED([LTDL_SHLIBPATH_VAR], ["$libltdl_cv_shlibpath_var"],
6136 [Define to the name of the environment variable that determines the dynamic library search path.]) 6594 [Define to the name of the environment variable that determines the dynamic library search path.])
6137fi 6595fi
6138])# AC_LTDL_SHLIBPATH 6596])# AC_LTDL_SHLIBPATH
@@ -6154,7 +6612,7 @@ if test -n "$libltdl_cv_sys_search_path"; then
6154 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 6612 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
6155 fi 6613 fi
6156 done 6614 done
6157 AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path", 6615 AC_DEFINE_UNQUOTED([LTDL_SYSSEARCHPATH], ["$sys_search_path"],
6158 [Define to the system default library search path.]) 6616 [Define to the system default library search path.])
6159fi 6617fi
6160])# AC_LTDL_SYSSEARCHPATH 6618])# AC_LTDL_SYSSEARCHPATH
@@ -6180,7 +6638,7 @@ AC_DEFUN([AC_LTDL_OBJDIR],
6180 rmdir .libs 2>/dev/null 6638 rmdir .libs 2>/dev/null
6181 fi 6639 fi
6182 ]) 6640 ])
6183AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/", 6641AC_DEFINE_UNQUOTED([LTDL_OBJDIR], ["$libltdl_cv_objdir/"],
6184 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 6642 [Define to the sub-directory in which libtool stores uninstalled libraries.])
6185])# AC_LTDL_OBJDIR 6643])# AC_LTDL_OBJDIR
6186 6644
@@ -6198,7 +6656,7 @@ AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
6198 fi 6656 fi
6199 ]) 6657 ])
6200if test x"$libltdl_cv_preloaded_symbols" = xyes; then 6658if test x"$libltdl_cv_preloaded_symbols" = xyes; then
6201 AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1, 6659 AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
6202 [Define if libtool can extract symbol lists from object files.]) 6660 [Define if libtool can extract symbol lists from object files.])
6203fi 6661fi
6204])# AC_LTDL_DLPREOPEN 6662])# AC_LTDL_DLPREOPEN
@@ -6317,7 +6775,7 @@ if test x"$ac_cv_sys_symbol_underscore" = xyes; then
6317fi 6775fi
6318 6776
6319if test x"$libltdl_cv_need_uscore" = xyes; then 6777if test x"$libltdl_cv_need_uscore" = xyes; then
6320 AC_DEFINE(NEED_USCORE, 1, 6778 AC_DEFINE([NEED_USCORE], [1],
6321 [Define if dlsym() requires a leading underscore in symbol names.]) 6779 [Define if dlsym() requires a leading underscore in symbol names.])
6322fi 6780fi
6323])# AC_LTDL_DLSYM_USCORE 6781])# AC_LTDL_DLSYM_USCORE