comparison acinclude.m4 @ 1570:a740bca2a1b1

Updated to libtool-1.5.22
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Mar 2006 10:20:44 +0000
parents 19418e4422cb
children 2095da6364c9
comparison
equal deleted inserted replaced
1569:50d9888d201d 1570:a740bca2a1b1
312 AC_SUBST(ESD_LIBS) 312 AC_SUBST(ESD_LIBS)
313 rm -f conf.esdtest 313 rm -f conf.esdtest
314 ]) 314 ])
315 315
316 ############################################################################## 316 ##############################################################################
317 # Based on libtool-1.5.8 317 # Based on libtool-1.5.22
318 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 318 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
319 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 319 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
320 ## Free Software Foundation, Inc. 320 ## Free Software Foundation, Inc.
321 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 321 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
322 ## 322 ##
323 ## This program is free software; you can redistribute it and/or modify 323 ## This file is free software; the Free Software Foundation gives
324 ## it under the terms of the GNU General Public License as published by 324 ## unlimited permission to copy and/or distribute it, with or without
325 ## the Free Software Foundation; either version 2 of the License, or 325 ## modifications, as long as this notice is preserved.
326 ## (at your option) any later version. 326
327 ## 327 # serial 48 AC_PROG_LIBTOOL
328 ## This program is distributed in the hope that it will be useful, but
329 ## WITHOUT ANY WARRANTY; without even the implied warranty of
330 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
331 ## General Public License for more details.
332 ##
333 ## You should have received a copy of the GNU General Public License
334 ## along with this program; if not, write to the Free Software
335 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
336 ##
337 ## As a special exception to the GNU General Public License, if you
338 ## distribute this file as part of a program that contains a
339 ## configuration script generated by Autoconf, you may include it under
340 ## the same distribution terms that you use for the rest of that program.
341
342 # serial 47 AC_PROG_LIBTOOL
343 328
344 329
345 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 330 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
346 # ----------------------------------------------------------- 331 # -----------------------------------------------------------
347 # If this macro is not defined by Autoconf, define it here. 332 # If this macro is not defined by Autoconf, define it here.
447 ;; 432 ;;
448 esac 433 esac
449 434
450 # Sed substitution that helps us do robust quoting. It backslashifies 435 # Sed substitution that helps us do robust quoting. It backslashifies
451 # metacharacters that are still active within double-quoted strings. 436 # metacharacters that are still active within double-quoted strings.
452 Xsed='sed -e s/^X//' 437 Xsed='sed -e 1s/^X//'
453 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 438 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
454 439
455 # Same as above, but do not quote variable references. 440 # Same as above, but do not quote variable references.
456 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 441 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
457 442
467 452
468 # Global variables: 453 # Global variables:
469 default_ofile=libtool 454 default_ofile=libtool
470 can_build_shared=yes 455 can_build_shared=yes
471 456
472 # All known linkers require a `.a' archive for static linking (except M$VC, 457 # All known linkers require a `.a' archive for static linking (except MSVC,
473 # which needs '.lib'). 458 # which needs '.lib').
474 libext=a 459 libext=a
475 ltmain="$ac_aux_dir/ltmain.sh" 460 ltmain="$ac_aux_dir/ltmain.sh"
476 ofile="$default_ofile" 461 ofile="$default_ofile"
477 with_gnu_ld="$lt_cv_prog_gnu_ld" 462 with_gnu_ld="$lt_cv_prog_gnu_ld"
487 test -z "$AR" && AR=ar 472 test -z "$AR" && AR=ar
488 test -z "$AR_FLAGS" && AR_FLAGS=cru 473 test -z "$AR_FLAGS" && AR_FLAGS=cru
489 test -z "$AS" && AS=as 474 test -z "$AS" && AS=as
490 test -z "$CC" && CC=cc 475 test -z "$CC" && CC=cc
491 test -z "$LTCC" && LTCC=$CC 476 test -z "$LTCC" && LTCC=$CC
477 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
492 test -z "$DLLTOOL" && DLLTOOL=dlltool 478 test -z "$DLLTOOL" && DLLTOOL=dlltool
493 test -z "$LD" && LD=ld 479 test -z "$LD" && LD=ld
494 test -z "$LN_S" && LN_S="ln -s" 480 test -z "$LN_S" && LN_S="ln -s"
495 test -z "$MAGIC_CMD" && MAGIC_CMD=file 481 test -z "$MAGIC_CMD" && MAGIC_CMD=file
496 test -z "$NM" && NM=nm 482 test -z "$NM" && NM=nm
506 old_postuninstall_cmds= 492 old_postuninstall_cmds=
507 493
508 if test -n "$RANLIB"; then 494 if test -n "$RANLIB"; then
509 case $host_os in 495 case $host_os in
510 openbsd*) 496 openbsd*)
511 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
512 ;; 498 ;;
513 *) 499 *)
514 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
515 ;; 501 ;;
516 esac 502 esac
517 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 503 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
518 fi 504 fi
519 505
520 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 506 _LT_CC_BASENAME([$compiler])
521 507
522 # Only perform the check for file, if the check method requires it 508 # Only perform the check for file, if the check method requires it
523 case $deplibs_check_method in 509 case $deplibs_check_method in
524 file_magic*) 510 file_magic*)
525 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
557 [AC_REQUIRE([AC_PROG_CC])dnl 543 [AC_REQUIRE([AC_PROG_CC])dnl
558 544
559 # If no C compiler was specified, use CC. 545 # If no C compiler was specified, use CC.
560 LTCC=${LTCC-"$CC"} 546 LTCC=${LTCC-"$CC"}
561 547
548 # If no C compiler flags were specified, use CFLAGS.
549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
550
562 # Allow CC to be a program name with arguments. 551 # Allow CC to be a program name with arguments.
563 compiler=$CC 552 compiler=$CC
564 ])# _LT_AC_SYS_COMPILER 553 ])# _LT_AC_SYS_COMPILER
554
555
556 # _LT_CC_BASENAME(CC)
557 # -------------------
558 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
559 AC_DEFUN([_LT_CC_BASENAME],
560 [for cc_temp in $1""; do
561 case $cc_temp in
562 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
563 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
564 \-*) ;;
565 *) break;;
566 esac
567 done
568 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
569 ])
570
571
572 # _LT_COMPILER_BOILERPLATE
573 # ------------------------
574 # Check for compiler boilerplate output or warnings with
575 # the simple compiler test code.
576 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
577 [ac_outfile=conftest.$ac_objext
578 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
580 _lt_compiler_boilerplate=`cat conftest.err`
581 $rm conftest*
582 ])# _LT_COMPILER_BOILERPLATE
583
584
585 # _LT_LINKER_BOILERPLATE
586 # ----------------------
587 # Check for linker boilerplate output or warnings with
588 # the simple link test code.
589 AC_DEFUN([_LT_LINKER_BOILERPLATE],
590 [ac_outfile=conftest.$ac_objext
591 printf "$lt_simple_link_test_code" >conftest.$ac_ext
592 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
593 _lt_linker_boilerplate=`cat conftest.err`
594 $rm conftest*
595 ])# _LT_LINKER_BOILERPLATE
565 596
566 597
567 # _LT_AC_SYS_LIBPATH_AIX 598 # _LT_AC_SYS_LIBPATH_AIX
568 # ---------------------- 599 # ----------------------
569 # Links a minimal program and checks the executable 600 # Links a minimal program and checks the executable
641 if test -z "$ECHO"; then 672 if test -z "$ECHO"; then
642 if test "X${echo_test_string+set}" != Xset; then 673 if test "X${echo_test_string+set}" != Xset; then
643 # find a string as large as possible, as long as the shell can cope with it 674 # find a string as large as possible, as long as the shell can cope with it
644 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 675 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
645 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 676 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
646 if (echo_test_string="`eval $cmd`") 2>/dev/null && 677 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
647 echo_test_string="`eval $cmd`" && 678 echo_test_string=`eval $cmd` &&
648 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 679 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
649 then 680 then
650 break 681 break
651 fi 682 fi
652 done 683 done
811 842
812 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 843 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
813 # Find out which ABI we are using. 844 # Find out which ABI we are using.
814 echo 'int i;' > conftest.$ac_ext 845 echo 'int i;' > conftest.$ac_ext
815 if AC_TRY_EVAL(ac_compile); then 846 if AC_TRY_EVAL(ac_compile); then
816 case "`/usr/bin/file conftest.o`" in 847 case `/usr/bin/file conftest.o` in
817 *32-bit*) 848 *32-bit*)
818 case $host in 849 case $host in
819 x86_64-*linux*) 850 x86_64-*linux*)
820 LD="${LD-ld} -m elf_i386" 851 LD="${LD-ld} -m elf_i386"
821 ;; 852 ;;
862 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
863 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
864 CFLAGS="$SAVE_CFLAGS" 895 CFLAGS="$SAVE_CFLAGS"
865 fi 896 fi
866 ;; 897 ;;
898 sparc*-*solaris*)
899 # Find out which ABI we are using.
900 echo 'int i;' > conftest.$ac_ext
901 if AC_TRY_EVAL(ac_compile); then
902 case `/usr/bin/file conftest.o` in
903 *64-bit*)
904 case $lt_cv_prog_gnu_ld in
905 yes*) LD="${LD-ld} -m elf64_sparc" ;;
906 *) LD="${LD-ld} -64" ;;
907 esac
908 ;;
909 esac
910 fi
911 rm -rf conftest*
912 ;;
913
867 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 914 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
868 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) 915 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
869 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 916 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
870 AC_CHECK_TOOL(AS, as, false) 917 AC_CHECK_TOOL(AS, as, false)
871 AC_CHECK_TOOL(OBJDUMP, objdump, false) 918 AC_CHECK_TOOL(OBJDUMP, objdump, false)
893 # (2) before a word containing "conftest.", or (3) at the end. 940 # (2) before a word containing "conftest.", or (3) at the end.
894 # Note that $ac_compile itself does not contain backslashes and begins 941 # Note that $ac_compile itself does not contain backslashes and begins
895 # with a dollar sign (not a hyphen), so the echo should work correctly. 942 # with a dollar sign (not a hyphen), so the echo should work correctly.
896 # The option is referenced via a variable to avoid confusing sed. 943 # The option is referenced via a variable to avoid confusing sed.
897 lt_compile=`echo "$ac_compile" | $SED \ 944 lt_compile=`echo "$ac_compile" | $SED \
898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
899 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 946 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
900 -e 's:$: $lt_compiler_flag:'` 947 -e 's:$: $lt_compiler_flag:'`
901 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 948 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
902 (eval "$lt_compile" 2>conftest.err) 949 (eval "$lt_compile" 2>conftest.err)
903 ac_status=$? 950 ac_status=$?
904 cat conftest.err >&AS_MESSAGE_LOG_FD 951 cat conftest.err >&AS_MESSAGE_LOG_FD
905 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 952 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
906 if (exit $ac_status) && test -s "$ac_outfile"; then 953 if (exit $ac_status) && test -s "$ac_outfile"; then
907 # The compiler can only warn and ignore the option if not recognized 954 # The compiler can only warn and ignore the option if not recognized
908 # So say no if there are warnings 955 # So say no if there are warnings other than the usual output.
909 if test ! -s conftest.err; then 956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
910 $2=yes 959 $2=yes
911 fi 960 fi
912 fi 961 fi
913 $rm conftest* 962 $rm conftest*
914 ]) 963 ])
930 [$2=no 979 [$2=no
931 save_LDFLAGS="$LDFLAGS" 980 save_LDFLAGS="$LDFLAGS"
932 LDFLAGS="$LDFLAGS $3" 981 LDFLAGS="$LDFLAGS $3"
933 printf "$lt_simple_link_test_code" > conftest.$ac_ext 982 printf "$lt_simple_link_test_code" > conftest.$ac_ext
934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
935 # The compiler can only warn and ignore the option if not recognized 984 # The linker can only warn and ignore the option if not recognized
936 # So say no if there are warnings 985 # So say no if there are warnings
937 if test -s conftest.err; then 986 if test -s conftest.err; then
938 # Append any errors to the config.log. 987 # Append any errors to the config.log.
939 cat conftest.err 1>&AS_MESSAGE_LOG_FD 988 cat conftest.err 1>&AS_MESSAGE_LOG_FD
989 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
991 if diff conftest.exp conftest.er2 >/dev/null; then
992 $2=yes
993 fi
940 else 994 else
941 $2=yes 995 $2=yes
942 fi 996 fi
943 fi 997 fi
944 $rm conftest* 998 $rm conftest*
999 # On AmigaOS with pdksh, this test takes hours, literally. 1053 # On AmigaOS with pdksh, this test takes hours, literally.
1000 # So we just punt and use a minimum line length of 8192. 1054 # So we just punt and use a minimum line length of 8192.
1001 lt_cv_sys_max_cmd_len=8192; 1055 lt_cv_sys_max_cmd_len=8192;
1002 ;; 1056 ;;
1003 1057
1004 netbsd* | freebsd* | openbsd* | darwin* ) 1058 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1005 # This has been around since 386BSD, at least. Likely further. 1059 # This has been around since 386BSD, at least. Likely further.
1006 if test -x /sbin/sysctl; then 1060 if test -x /sbin/sysctl; then
1007 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1061 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1008 elif test -x /usr/sbin/sysctl; then 1062 elif test -x /usr/sbin/sysctl; then
1009 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1063 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1010 else 1064 else
1011 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 1065 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1012 fi 1066 fi
1013 # And add a safety zone 1067 # And add a safety zone
1014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1015 ;; 1069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1016 1070 ;;
1017 *) 1071
1072 interix*)
1073 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1074 lt_cv_sys_max_cmd_len=196608
1075 ;;
1076
1077 osf*)
1078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1080 # nice to cause kernel panics so lets avoid the loop below.
1081 # First set a reasonable default.
1082 lt_cv_sys_max_cmd_len=16384
1083 #
1084 if test -x /sbin/sysconfig; then
1085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1087 esac
1088 fi
1089 ;;
1090 sco3.2v5*)
1091 lt_cv_sys_max_cmd_len=102400
1092 ;;
1093 sysv5* | sco5v6* | sysv4.2uw2*)
1094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1095 if test -n "$kargmax"; then
1096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1097 else
1098 lt_cv_sys_max_cmd_len=32768
1099 fi
1100 ;;
1101 *)
1018 # If test is not a shell built-in, we'll probably end up computing a 1102 # If test is not a shell built-in, we'll probably end up computing a
1019 # maximum length that is only half of the actual maximum length, but 1103 # maximum length that is only half of the actual maximum length, but
1020 # we can't tell. 1104 # we can't tell.
1021 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1022 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 1106 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1043 fi 1127 fi
1044 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN 1128 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1045 1129
1046 1130
1047 # _LT_AC_CHECK_DLFCN 1131 # _LT_AC_CHECK_DLFCN
1048 # -------------------- 1132 # ------------------
1049 AC_DEFUN([_LT_AC_CHECK_DLFCN], 1133 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1050 [AC_CHECK_HEADERS(dlfcn.h)dnl 1134 [AC_CHECK_HEADERS(dlfcn.h)dnl
1051 ])# _LT_AC_CHECK_DLFCN 1135 ])# _LT_AC_CHECK_DLFCN
1052 1136
1053 1137
1054 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1138 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1055 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1139 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1056 # ------------------------------------------------------------------ 1140 # ---------------------------------------------------------------------
1057 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1141 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1058 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1142 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1059 if test "$cross_compiling" = yes; then : 1143 if test "$cross_compiling" = yes; then :
1060 [$4] 1144 [$4]
1061 else 1145 else
1117 { 1201 {
1118 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1119 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1120 /* dlclose (self); */ 1204 /* dlclose (self); */
1121 } 1205 }
1206 else
1207 puts (dlerror ());
1122 1208
1123 exit (status); 1209 exit (status);
1124 }] 1210 }]
1125 EOF 1211 EOF
1126 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1212 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1127 (./conftest; exit; ) 2>/dev/null 1213 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1128 lt_status=$? 1214 lt_status=$?
1129 case x$lt_status in 1215 case x$lt_status in
1130 x$lt_dlno_uscore) $1 ;; 1216 x$lt_dlno_uscore) $1 ;;
1131 x$lt_dlneed_uscore) $2 ;; 1217 x$lt_dlneed_uscore) $2 ;;
1132 x$lt_unknown|x*) $3 ;; 1218 x$lt_dlunknown|x*) $3 ;;
1133 esac 1219 esac
1134 else : 1220 else :
1135 # compilation failed 1221 # compilation failed
1136 $3 1222 $3
1137 fi 1223 fi
1139 rm -fr conftest* 1225 rm -fr conftest*
1140 ])# _LT_AC_TRY_DLOPEN_SELF 1226 ])# _LT_AC_TRY_DLOPEN_SELF
1141 1227
1142 1228
1143 # AC_LIBTOOL_DLOPEN_SELF 1229 # AC_LIBTOOL_DLOPEN_SELF
1144 # ------------------- 1230 # ----------------------
1145 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1231 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1146 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1232 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1147 if test "x$enable_dlopen" != xyes; then 1233 if test "x$enable_dlopen" != xyes; then
1148 enable_dlopen=unknown 1234 enable_dlopen=unknown
1149 enable_dlopen_self=unknown 1235 enable_dlopen_self=unknown
1210 dlopen) 1296 dlopen)
1211 save_CPPFLAGS="$CPPFLAGS" 1297 save_CPPFLAGS="$CPPFLAGS"
1212 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1213 1299
1214 save_LDFLAGS="$LDFLAGS" 1300 save_LDFLAGS="$LDFLAGS"
1215 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1216 1302
1217 save_LIBS="$LIBS" 1303 save_LIBS="$LIBS"
1218 LIBS="$lt_cv_dlopen_libs $LIBS" 1304 LIBS="$lt_cv_dlopen_libs $LIBS"
1219 1305
1220 AC_CACHE_CHECK([whether a program can dlopen itself], 1306 AC_CACHE_CHECK([whether a program can dlopen itself],
1223 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1309 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1224 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1310 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1225 ]) 1311 ])
1226 1312
1227 if test "x$lt_cv_dlopen_self" = xyes; then 1313 if test "x$lt_cv_dlopen_self" = xyes; then
1228 LDFLAGS="$LDFLAGS $link_static_flag" 1314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1229 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1315 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1230 lt_cv_dlopen_self_static, [dnl 1316 lt_cv_dlopen_self_static, [dnl
1231 _LT_AC_TRY_DLOPEN_SELF( 1317 _LT_AC_TRY_DLOPEN_SELF(
1232 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1318 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1233 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1319 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1271 # Insert the option either (1) after the last *FLAGS variable, or 1357 # Insert the option either (1) after the last *FLAGS variable, or
1272 # (2) before a word containing "conftest.", or (3) at the end. 1358 # (2) before a word containing "conftest.", or (3) at the end.
1273 # Note that $ac_compile itself does not contain backslashes and begins 1359 # Note that $ac_compile itself does not contain backslashes and begins
1274 # with a dollar sign (not a hyphen), so the echo should work correctly. 1360 # with a dollar sign (not a hyphen), so the echo should work correctly.
1275 lt_compile=`echo "$ac_compile" | $SED \ 1361 lt_compile=`echo "$ac_compile" | $SED \
1276 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 1362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1277 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1363 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1278 -e 's:$: $lt_compiler_flag:'` 1364 -e 's:$: $lt_compiler_flag:'`
1279 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1365 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1280 (eval "$lt_compile" 2>out/conftest.err) 1366 (eval "$lt_compile" 2>out/conftest.err)
1281 ac_status=$? 1367 ac_status=$?
1283 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1369 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1284 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1285 then 1371 then
1286 # The compiler can only warn and ignore the option if not recognized 1372 # The compiler can only warn and ignore the option if not recognized
1287 # So say no if there are warnings 1373 # So say no if there are warnings
1288 if test ! -s out/conftest.err; then 1374 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1289 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1377 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1290 fi 1378 fi
1291 fi 1379 fi
1292 chmod u+w . 1380 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1293 $rm conftest* 1381 $rm conftest*
1294 # SGI C++ compiler will create directory out/ii_files/ for 1382 # SGI C++ compiler will create directory out/ii_files/ for
1295 # template instantiation 1383 # template instantiation
1296 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 1384 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1297 $rm out/* && rmdir out 1385 $rm out/* && rmdir out
1547 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1548 postinstall_cmds='base_file=`basename \${file}`~ 1636 postinstall_cmds='base_file=`basename \${file}`~
1549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1550 dldir=$destdir/`dirname \$dlpath`~ 1638 dldir=$destdir/`dirname \$dlpath`~
1551 test -d \$dldir || mkdir -p \$dldir~ 1639 test -d \$dldir || mkdir -p \$dldir~
1552 $install_prog $dir/$dlname \$dldir/$dlname' 1640 $install_prog $dir/$dlname \$dldir/$dlname~
1641 chmod a+x \$dldir/$dlname'
1553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1554 dlpath=$dir/\$dldll~ 1643 dlpath=$dir/\$dldll~
1555 $rm \$dlpath' 1644 $rm \$dlpath'
1556 shlibpath_overrides_runpath=yes 1645 shlibpath_overrides_runpath=yes
1557 1646
1579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1580 fi 1669 fi
1581 ;; 1670 ;;
1582 pw32*) 1671 pw32*)
1583 # pw32 DLLs use 'pw' prefix rather than 'lib' 1672 # pw32 DLLs use 'pw' prefix rather than 'lib'
1584 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 1673 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1585 ;; 1674 ;;
1586 esac 1675 esac
1587 ;; 1676 ;;
1588 1677
1589 *) 1678 *)
1602 need_version=no 1691 need_version=no
1603 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 1692 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1604 soname_spec='${libname}${release}${major}$shared_ext' 1693 soname_spec='${libname}${release}${major}$shared_ext'
1605 shlibpath_overrides_runpath=yes 1694 shlibpath_overrides_runpath=yes
1606 shlibpath_var=DYLD_LIBRARY_PATH 1695 shlibpath_var=DYLD_LIBRARY_PATH
1607 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 1696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1608 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1697 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1609 if test "$GCC" = yes; then 1698 if test "$GCC" = yes; then
1610 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"` 1699 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"`
1611 else 1700 else
1612 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1701 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1637 shlibpath_overrides_runpath=no 1726 shlibpath_overrides_runpath=no
1638 hardcode_into_libs=yes 1727 hardcode_into_libs=yes
1639 dynamic_linker='GNU ld.so' 1728 dynamic_linker='GNU ld.so'
1640 ;; 1729 ;;
1641 1730
1642 freebsd*) 1731 freebsd* | dragonfly*)
1643 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1732 # DragonFly does not have aout. When/if they implement a new
1733 # versioning mechanism, adjust this.
1734 if test -x /usr/bin/objformat; then
1735 objformat=`/usr/bin/objformat`
1736 else
1737 case $host_os in
1738 freebsd[[123]]*) objformat=aout ;;
1739 *) objformat=elf ;;
1740 esac
1741 fi
1644 version_type=freebsd-$objformat 1742 version_type=freebsd-$objformat
1645 case $version_type in 1743 case $version_type in
1646 freebsd-elf*) 1744 freebsd-elf*)
1647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1648 need_version=no 1746 need_version=no
1656 shlibpath_var=LD_LIBRARY_PATH 1754 shlibpath_var=LD_LIBRARY_PATH
1657 case $host_os in 1755 case $host_os in
1658 freebsd2*) 1756 freebsd2*)
1659 shlibpath_overrides_runpath=yes 1757 shlibpath_overrides_runpath=yes
1660 ;; 1758 ;;
1661 freebsd3.[01]* | freebsdelf3.[01]*) 1759 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1662 shlibpath_overrides_runpath=yes 1760 shlibpath_overrides_runpath=yes
1663 hardcode_into_libs=yes 1761 hardcode_into_libs=yes
1664 ;; 1762 ;;
1665 *) # from 3.2 on 1763 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1764 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1666 shlibpath_overrides_runpath=no 1765 shlibpath_overrides_runpath=no
1766 hardcode_into_libs=yes
1767 ;;
1768 freebsd*) # from 4.6 on
1769 shlibpath_overrides_runpath=yes
1667 hardcode_into_libs=yes 1770 hardcode_into_libs=yes
1668 ;; 1771 ;;
1669 esac 1772 esac
1670 ;; 1773 ;;
1671 1774
1683 # Give a soname corresponding to the major version so that dld.sl refuses to 1786 # Give a soname corresponding to the major version so that dld.sl refuses to
1684 # link against other versions. 1787 # link against other versions.
1685 version_type=sunos 1788 version_type=sunos
1686 need_lib_prefix=no 1789 need_lib_prefix=no
1687 need_version=no 1790 need_version=no
1688 case "$host_cpu" in 1791 case $host_cpu in
1689 ia64*) 1792 ia64*)
1690 shrext_cmds='.so' 1793 shrext_cmds='.so'
1691 hardcode_into_libs=yes 1794 hardcode_into_libs=yes
1692 dynamic_linker="$host_os dld.so" 1795 dynamic_linker="$host_os dld.so"
1693 shlibpath_var=LD_LIBRARY_PATH 1796 shlibpath_var=LD_LIBRARY_PATH
1723 esac 1826 esac
1724 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1725 postinstall_cmds='chmod 555 $lib' 1828 postinstall_cmds='chmod 555 $lib'
1726 ;; 1829 ;;
1727 1830
1831 interix3*)
1832 version_type=linux
1833 need_lib_prefix=no
1834 need_version=no
1835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1836 soname_spec='${libname}${release}${shared_ext}$major'
1837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1838 shlibpath_var=LD_LIBRARY_PATH
1839 shlibpath_overrides_runpath=no
1840 hardcode_into_libs=yes
1841 ;;
1842
1728 irix5* | irix6* | nonstopux*) 1843 irix5* | irix6* | nonstopux*)
1729 case $host_os in 1844 case $host_os in
1730 nonstopux*) version_type=nonstopux ;; 1845 nonstopux*) version_type=nonstopux ;;
1731 *) 1846 *)
1732 if test "$lt_cv_prog_gnu_ld" = yes; then 1847 if test "$lt_cv_prog_gnu_ld" = yes; then
1782 # before this can be enabled. 1897 # before this can be enabled.
1783 hardcode_into_libs=yes 1898 hardcode_into_libs=yes
1784 1899
1785 # Append ld.so.conf contents to the search path 1900 # Append ld.so.conf contents to the search path
1786 if test -f /etc/ld.so.conf; then 1901 if test -f /etc/ld.so.conf; then
1787 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` 1902 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' ' '`
1788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1789 fi 1904 fi
1790 1905
1791 # We used to test for /lib/ld.so.1 and disable shared libraries on 1906 # We used to test for /lib/ld.so.1 and disable shared libraries on
1792 # powerpc, because MkLinux only supported shared libraries with the 1907 # powerpc, because MkLinux only supported shared libraries with the
1844 shlibpath_overrides_runpath=yes 1959 shlibpath_overrides_runpath=yes
1845 ;; 1960 ;;
1846 1961
1847 openbsd*) 1962 openbsd*)
1848 version_type=sunos 1963 version_type=sunos
1964 sys_lib_dlsearch_path_spec="/usr/lib"
1849 need_lib_prefix=no 1965 need_lib_prefix=no
1850 need_version=no 1966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1967 case $host_os in
1968 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1969 *) need_version=no ;;
1970 esac
1851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1853 shlibpath_var=LD_LIBRARY_PATH 1973 shlibpath_var=LD_LIBRARY_PATH
1854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1855 case $host_os in 1975 case $host_os in
1881 soname_spec='${libname}${release}${shared_ext}$major' 2001 soname_spec='${libname}${release}${shared_ext}$major'
1882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1883 shlibpath_var=LD_LIBRARY_PATH 2003 shlibpath_var=LD_LIBRARY_PATH
1884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2005 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1886 ;;
1887
1888 sco3.2v5*)
1889 version_type=osf
1890 soname_spec='${libname}${release}${shared_ext}$major'
1891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1892 shlibpath_var=LD_LIBRARY_PATH
1893 ;; 2006 ;;
1894 2007
1895 solaris*) 2008 solaris*)
1896 version_type=linux 2009 version_type=linux
1897 need_lib_prefix=no 2010 need_lib_prefix=no
1915 need_lib_prefix=no 2028 need_lib_prefix=no
1916 fi 2029 fi
1917 need_version=yes 2030 need_version=yes
1918 ;; 2031 ;;
1919 2032
1920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2033 sysv4 | sysv4.3*)
1921 version_type=linux 2034 version_type=linux
1922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1923 soname_spec='${libname}${release}${shared_ext}$major' 2036 soname_spec='${libname}${release}${shared_ext}$major'
1924 shlibpath_var=LD_LIBRARY_PATH 2037 shlibpath_var=LD_LIBRARY_PATH
1925 case $host_vendor in 2038 case $host_vendor in
1948 soname_spec='$libname${shared_ext}.$major' 2061 soname_spec='$libname${shared_ext}.$major'
1949 shlibpath_var=LD_LIBRARY_PATH 2062 shlibpath_var=LD_LIBRARY_PATH
1950 fi 2063 fi
1951 ;; 2064 ;;
1952 2065
2066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2067 version_type=freebsd-elf
2068 need_lib_prefix=no
2069 need_version=no
2070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2071 soname_spec='${libname}${release}${shared_ext}$major'
2072 shlibpath_var=LD_LIBRARY_PATH
2073 hardcode_into_libs=yes
2074 if test "$with_gnu_ld" = yes; then
2075 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2076 shlibpath_overrides_runpath=no
2077 else
2078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2079 shlibpath_overrides_runpath=yes
2080 case $host_os in
2081 sco3.2v5*)
2082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2083 ;;
2084 esac
2085 fi
2086 sys_lib_dlsearch_path_spec='/usr/lib'
2087 ;;
2088
1953 uts4*) 2089 uts4*)
1954 version_type=linux 2090 version_type=linux
1955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1956 soname_spec='${libname}${release}${shared_ext}$major' 2092 soname_spec='${libname}${release}${shared_ext}$major'
1957 shlibpath_var=LD_LIBRARY_PATH 2093 shlibpath_var=LD_LIBRARY_PATH
1961 dynamic_linker=no 2097 dynamic_linker=no
1962 ;; 2098 ;;
1963 esac 2099 esac
1964 AC_MSG_RESULT([$dynamic_linker]) 2100 AC_MSG_RESULT([$dynamic_linker])
1965 test "$dynamic_linker" = no && can_build_shared=no 2101 test "$dynamic_linker" = no && can_build_shared=no
2102
2103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2104 if test "$GCC" = yes; then
2105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2106 fi
1966 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2107 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1967 2108
1968 2109
1969 # _LT_AC_TAGCONFIG 2110 # _LT_AC_TAGCONFIG
1970 # ---------------- 2111 # ----------------
1985 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 2126 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1986 else 2127 else
1987 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 2128 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1988 fi 2129 fi
1989 fi 2130 fi
2131 if test -z "$LTCFLAGS"; then
2132 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2133 fi
1990 2134
1991 # Extract list of available tagged configurations in $ofile. 2135 # Extract list of available tagged configurations in $ofile.
1992 # Note that this assumes the entire list is on one line. 2136 # Note that this assumes the entire list is on one line.
1993 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 2137 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1994 2138
2011 if test -n "$tagname"; then 2155 if test -n "$tagname"; then
2012 echo appending configuration tag \"$tagname\" to $ofile 2156 echo appending configuration tag \"$tagname\" to $ofile
2013 2157
2014 case $tagname in 2158 case $tagname in
2015 CXX) 2159 CXX)
2016 if test -n "$CXX" && test "X$CXX" != "Xno"; then 2160 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2161 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2162 (test "X$CXX" != "Xg++"))) ; then
2017 AC_LIBTOOL_LANG_CXX_CONFIG 2163 AC_LIBTOOL_LANG_CXX_CONFIG
2018 else 2164 else
2019 tagname="" 2165 tagname=""
2020 fi 2166 fi
2021 ;; 2167 ;;
2073 ])# AC_LIBTOOL_DLOPEN 2219 ])# AC_LIBTOOL_DLOPEN
2074 2220
2075 2221
2076 # AC_LIBTOOL_WIN32_DLL 2222 # AC_LIBTOOL_WIN32_DLL
2077 # -------------------- 2223 # --------------------
2078 # declare package support for building win32 dll's 2224 # declare package support for building win32 DLLs
2079 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2225 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2080 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2226 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2081 ])# AC_LIBTOOL_WIN32_DLL 2227 ])# AC_LIBTOOL_WIN32_DLL
2082 2228
2083 2229
2111 ])# AC_ENABLE_SHARED 2257 ])# AC_ENABLE_SHARED
2112 2258
2113 2259
2114 # AC_DISABLE_SHARED 2260 # AC_DISABLE_SHARED
2115 # ----------------- 2261 # -----------------
2116 #- set the default shared flag to --disable-shared 2262 # set the default shared flag to --disable-shared
2117 AC_DEFUN([AC_DISABLE_SHARED], 2263 AC_DEFUN([AC_DISABLE_SHARED],
2118 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2264 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2119 AC_ENABLE_SHARED(no) 2265 AC_ENABLE_SHARED(no)
2120 ])# AC_DISABLE_SHARED 2266 ])# AC_DISABLE_SHARED
2121 2267
2247 if test -f $ac_dir/$1; then 2393 if test -f $ac_dir/$1; then
2248 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2394 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2249 if test -n "$file_magic_test_file"; then 2395 if test -n "$file_magic_test_file"; then
2250 case $deplibs_check_method in 2396 case $deplibs_check_method in
2251 "file_magic "*) 2397 "file_magic "*)
2252 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 2398 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2400 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2255 $EGREP "$file_magic_regex" > /dev/null; then 2401 $EGREP "$file_magic_regex" > /dev/null; then
2256 : 2402 :
2257 else 2403 else
2357 IFS="$lt_save_ifs" 2503 IFS="$lt_save_ifs"
2358 test -z "$ac_dir" && ac_dir=. 2504 test -z "$ac_dir" && ac_dir=.
2359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2360 lt_cv_path_LD="$ac_dir/$ac_prog" 2506 lt_cv_path_LD="$ac_dir/$ac_prog"
2361 # Check to see if the program is GNU ld. I'd rather use --version, 2507 # Check to see if the program is GNU ld. I'd rather use --version,
2362 # but apparently some GNU ld's only accept -v. 2508 # but apparently some variants of GNU ld only accept -v.
2363 # Break only if it was the GNU/non-GNU ld that we prefer. 2509 # Break only if it was the GNU/non-GNU ld that we prefer.
2364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2365 *GNU* | *'with BFD'*) 2511 *GNU* | *'with BFD'*)
2366 test "$with_gnu_ld" != no && break 2512 test "$with_gnu_ld" != no && break
2367 ;; 2513 ;;
2389 # AC_PROG_LD_GNU 2535 # AC_PROG_LD_GNU
2390 # -------------- 2536 # --------------
2391 AC_DEFUN([AC_PROG_LD_GNU], 2537 AC_DEFUN([AC_PROG_LD_GNU],
2392 [AC_REQUIRE([AC_PROG_EGREP])dnl 2538 [AC_REQUIRE([AC_PROG_EGREP])dnl
2393 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2539 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2394 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2540 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2395 case `$LD -v 2>&1 </dev/null` in 2541 case `$LD -v 2>&1 </dev/null` in
2396 *GNU* | *'with BFD'*) 2542 *GNU* | *'with BFD'*)
2397 lt_cv_prog_gnu_ld=yes 2543 lt_cv_prog_gnu_ld=yes
2398 ;; 2544 ;;
2399 *) 2545 *)
2419 esac 2565 esac
2420 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2566 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2421 case $host_os in 2567 case $host_os in
2422 darwin*) 2568 darwin*)
2423 if test "$GCC" = yes; then 2569 if test "$GCC" = yes; then
2424 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 2570 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2425 else 2571 else
2426 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2572 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2427 fi 2573 fi
2428 ;; 2574 ;;
2429 esac 2575 esac
2466 lt_cv_file_magic_test_file=/shlib/libc.so 2612 lt_cv_file_magic_test_file=/shlib/libc.so
2467 ;; 2613 ;;
2468 2614
2469 cygwin*) 2615 cygwin*)
2470 # func_win32_libid is a shell function defined in ltmain.sh 2616 # func_win32_libid is a shell function defined in ltmain.sh
2471 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2472 lt_cv_deplibs_check_method=pass_all
2473 lt_cv_file_magic_cmd='func_win32_libid' 2618 lt_cv_file_magic_cmd='func_win32_libid'
2474 ;; 2619 ;;
2475 2620
2476 mingw* | pw32*) 2621 mingw* | pw32*)
2477 # Base MSYS/MinGW do not provide the 'file' command needed by 2622 # Base MSYS/MinGW do not provide the 'file' command needed by
2478 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2623 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2479 #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2624 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2480 lt_cv_deplibs_check_method=pass_all
2481 lt_cv_file_magic_cmd='$OBJDUMP -f' 2625 lt_cv_file_magic_cmd='$OBJDUMP -f'
2482 ;; 2626 ;;
2483 2627
2484 darwin* | rhapsody*) 2628 darwin* | rhapsody*)
2485 lt_cv_deplibs_check_method=pass_all 2629 lt_cv_deplibs_check_method=pass_all
2486 ;; 2630 ;;
2487 2631
2488 freebsd* | kfreebsd*-gnu) 2632 freebsd* | kfreebsd*-gnu | dragonfly*)
2489 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2490 case $host_cpu in 2634 case $host_cpu in
2491 i*86 ) 2635 i*86 )
2492 # Not sure whether the presence of OpenBSD here was a mistake. 2636 # Not sure whether the presence of OpenBSD here was a mistake.
2493 # Let's accept both of them until this is cleared up. 2637 # Let's accept both of them until this is cleared up.
2494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 2638 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2495 lt_cv_file_magic_cmd=/usr/bin/file 2639 lt_cv_file_magic_cmd=/usr/bin/file
2496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2497 ;; 2641 ;;
2498 esac 2642 esac
2499 else 2643 else
2505 lt_cv_deplibs_check_method=pass_all 2649 lt_cv_deplibs_check_method=pass_all
2506 ;; 2650 ;;
2507 2651
2508 hpux10.20* | hpux11*) 2652 hpux10.20* | hpux11*)
2509 lt_cv_file_magic_cmd=/usr/bin/file 2653 lt_cv_file_magic_cmd=/usr/bin/file
2510 case "$host_cpu" in 2654 case $host_cpu in
2511 ia64*) 2655 ia64*)
2512 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 2656 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2513 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2657 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2514 ;; 2658 ;;
2515 hppa*64*) 2659 hppa*64*)
2519 *) 2663 *)
2520 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 2664 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2521 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2665 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2522 ;; 2666 ;;
2523 esac 2667 esac
2668 ;;
2669
2670 interix3*)
2671 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2672 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2524 ;; 2673 ;;
2525 2674
2526 irix5* | irix6* | nonstopux*) 2675 irix5* | irix6* | nonstopux*)
2527 case $LD in 2676 case $LD in
2528 *-32|*"-32 ") libmagic=32-bit;; 2677 *-32|*"-32 ") libmagic=32-bit;;
2533 lt_cv_deplibs_check_method=pass_all 2682 lt_cv_deplibs_check_method=pass_all
2534 ;; 2683 ;;
2535 2684
2536 # This must be Linux ELF. 2685 # This must be Linux ELF.
2537 linux*) 2686 linux*)
2538 case $host_cpu in
2539 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
2540 lt_cv_deplibs_check_method=pass_all ;;
2541 *)
2542 # glibc up to 2.1.1 does not perform some relocations on ARM
2543 # this will be overridden with pass_all, but let us keep it just in case
2544 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
2545 esac
2546 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2547 lt_cv_deplibs_check_method=pass_all 2687 lt_cv_deplibs_check_method=pass_all
2548 ;; 2688 ;;
2549 2689
2550 netbsd*) 2690 netbsd*)
2551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2691 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2575 2715
2576 osf3* | osf4* | osf5*) 2716 osf3* | osf4* | osf5*)
2577 lt_cv_deplibs_check_method=pass_all 2717 lt_cv_deplibs_check_method=pass_all
2578 ;; 2718 ;;
2579 2719
2580 sco3.2v5*)
2581 lt_cv_deplibs_check_method=pass_all
2582 ;;
2583
2584 solaris*) 2720 solaris*)
2585 lt_cv_deplibs_check_method=pass_all 2721 lt_cv_deplibs_check_method=pass_all
2586 ;; 2722 ;;
2587 2723
2588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2724 sysv4 | sysv4.3*)
2589 case $host_vendor in 2725 case $host_vendor in
2590 motorola) 2726 motorola)
2591 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]]' 2727 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]]'
2592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2593 ;; 2729 ;;
2604 lt_cv_file_magic_test_file=/lib/libc.so 2740 lt_cv_file_magic_test_file=/lib/libc.so
2605 ;; 2741 ;;
2606 siemens) 2742 siemens)
2607 lt_cv_deplibs_check_method=pass_all 2743 lt_cv_deplibs_check_method=pass_all
2608 ;; 2744 ;;
2745 pc)
2746 lt_cv_deplibs_check_method=pass_all
2747 ;;
2609 esac 2748 esac
2610 ;; 2749 ;;
2611 2750
2612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 2751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2613 lt_cv_deplibs_check_method=pass_all 2752 lt_cv_deplibs_check_method=pass_all
2614 ;; 2753 ;;
2615 esac 2754 esac
2616 ]) 2755 ])
2617 file_magic_cmd=$lt_cv_file_magic_cmd 2756 file_magic_cmd=$lt_cv_file_magic_cmd
2627 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 2766 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2628 [if test -n "$NM"; then 2767 [if test -n "$NM"; then
2629 # Let the user override the test. 2768 # Let the user override the test.
2630 lt_cv_path_NM="$NM" 2769 lt_cv_path_NM="$NM"
2631 else 2770 else
2632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2771 lt_nm_to_check="${ac_tool_prefix}nm"
2633 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2772 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2634 IFS="$lt_save_ifs" 2773 lt_nm_to_check="$lt_nm_to_check nm"
2635 test -z "$ac_dir" && ac_dir=. 2774 fi
2636 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2775 for lt_tmp_nm in $lt_nm_to_check; do
2637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2638 # Check to see if the nm accepts a BSD-compat flag. 2777 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2639 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2778 IFS="$lt_save_ifs"
2640 # nm: unknown option "B" ignored 2779 test -z "$ac_dir" && ac_dir=.
2641 # Tru64's nm complains that /dev/null is an invalid object file 2780 tmp_nm="$ac_dir/$lt_tmp_nm"
2642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2781 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2643 */dev/null* | *'Invalid file or object type'*) 2782 # Check to see if the nm accepts a BSD-compat flag.
2644 lt_cv_path_NM="$tmp_nm -B" 2783 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2645 break 2784 # nm: unknown option "B" ignored
2646 ;; 2785 # Tru64's nm complains that /dev/null is an invalid object file
2647 *) 2786 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2787 */dev/null* | *'Invalid file or object type'*)
2649 */dev/null*) 2788 lt_cv_path_NM="$tmp_nm -B"
2650 lt_cv_path_NM="$tmp_nm -p"
2651 break 2789 break
2652 ;; 2790 ;;
2653 *) 2791 *)
2654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2792 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2655 continue # so that we can try to find one that supports BSD flags 2793 */dev/null*)
2794 lt_cv_path_NM="$tmp_nm -p"
2795 break
2796 ;;
2797 *)
2798 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2799 continue # so that we can try to find one that supports BSD flags
2800 ;;
2801 esac
2656 ;; 2802 ;;
2657 esac 2803 esac
2658 esac 2804 fi
2659 fi 2805 done
2806 IFS="$lt_save_ifs"
2660 done 2807 done
2661 IFS="$lt_save_ifs"
2662 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2808 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2663 fi]) 2809 fi])
2664 NM="$lt_cv_path_NM" 2810 NM="$lt_cv_path_NM"
2665 ])# AC_PROG_NM 2811 ])# AC_PROG_NM
2666 2812
2688 2834
2689 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 2835 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2690 # ----------------------------------- 2836 # -----------------------------------
2691 # sets LIBLTDL to the link flags for the libltdl convenience library and 2837 # sets LIBLTDL to the link flags for the libltdl convenience library and
2692 # LTDLINCL to the include flags for the libltdl header and adds 2838 # LTDLINCL to the include flags for the libltdl header and adds
2693 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL 2839 # --enable-ltdl-convenience to the configure arguments. Note that
2694 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2840 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2695 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will 2841 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2696 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with 2842 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2697 # '${top_srcdir}/' (note the single quotes!). If your package is not 2843 # (note the single quotes!). If your package is not flat and you're not
2698 # flat and you're not using automake, define top_builddir and 2844 # using automake, define top_builddir and top_srcdir appropriately in
2699 # top_srcdir appropriately in the Makefiles. 2845 # the Makefiles.
2700 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2846 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2701 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2847 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2702 case $enable_ltdl_convenience in 2848 case $enable_ltdl_convenience in
2703 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 2849 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2704 "") enable_ltdl_convenience=yes 2850 "") enable_ltdl_convenience=yes
2713 2859
2714 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 2860 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2715 # ----------------------------------- 2861 # -----------------------------------
2716 # sets LIBLTDL to the link flags for the libltdl installable library and 2862 # sets LIBLTDL to the link flags for the libltdl installable library and
2717 # LTDLINCL to the include flags for the libltdl header and adds 2863 # LTDLINCL to the include flags for the libltdl header and adds
2718 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL 2864 # --enable-ltdl-install to the configure arguments. Note that
2719 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2865 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2720 # DIRECTORY is not provided and an installed libltdl is not found, it is 2866 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2721 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' 2867 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2722 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single 2868 # '${top_srcdir}/' (note the single quotes!). If your package is not
2723 # quotes!). If your package is not flat and you're not using automake, 2869 # flat and you're not using automake, define top_builddir and top_srcdir
2724 # define top_builddir and top_srcdir appropriately in the Makefiles. 2870 # appropriately in the Makefiles.
2725 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2871 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2726 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 2872 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2727 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2873 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2728 AC_CHECK_LIB(ltdl, lt_dlinit, 2874 AC_CHECK_LIB(ltdl, lt_dlinit,
2729 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 2875 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2757 2903
2758 # _LT_AC_LANG_CXX 2904 # _LT_AC_LANG_CXX
2759 # --------------- 2905 # ---------------
2760 AC_DEFUN([_LT_AC_LANG_CXX], 2906 AC_DEFUN([_LT_AC_LANG_CXX],
2761 [AC_REQUIRE([AC_PROG_CXX]) 2907 [AC_REQUIRE([AC_PROG_CXX])
2762 AC_REQUIRE([AC_PROG_CXXCPP]) 2908 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2763 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2909 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2764 ])# _LT_AC_LANG_CXX 2910 ])# _LT_AC_LANG_CXX
2765 2911
2912 # _LT_AC_PROG_CXXCPP
2913 # ------------------
2914 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2915 [
2916 AC_REQUIRE([AC_PROG_CXX])
2917 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2918 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2919 (test "X$CXX" != "Xg++"))) ; then
2920 AC_PROG_CXXCPP
2921 fi
2922 ])# _LT_AC_PROG_CXXCPP
2766 2923
2767 # AC_LIBTOOL_F77 2924 # AC_LIBTOOL_F77
2768 # -------------- 2925 # --------------
2769 # enable support for Fortran 77 libraries 2926 # enable support for Fortran 77 libraries
2770 AC_DEFUN([AC_LIBTOOL_F77], 2927 AC_DEFUN([AC_LIBTOOL_F77],
2800 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 2957 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2801 ])# _LT_AC_LANG_GCJ 2958 ])# _LT_AC_LANG_GCJ
2802 2959
2803 2960
2804 # AC_LIBTOOL_RC 2961 # AC_LIBTOOL_RC
2805 # -------------- 2962 # -------------
2806 # enable support for Windows resource files 2963 # enable support for Windows resource files
2807 AC_DEFUN([AC_LIBTOOL_RC], 2964 AC_DEFUN([AC_LIBTOOL_RC],
2808 [AC_REQUIRE([LT_AC_PROG_RC]) 2965 [AC_REQUIRE([LT_AC_PROG_RC])
2809 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 2966 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2810 ])# AC_LIBTOOL_RC 2967 ])# AC_LIBTOOL_RC
2833 # Code to be used in simple link tests 2990 # Code to be used in simple link tests
2834 lt_simple_link_test_code='int main(){return(0);}\n' 2991 lt_simple_link_test_code='int main(){return(0);}\n'
2835 2992
2836 _LT_AC_SYS_COMPILER 2993 _LT_AC_SYS_COMPILER
2837 2994
2838 # 2995 # save warnings/boilerplate of simple test code
2839 # Check for any special shared library compilation flags. 2996 _LT_COMPILER_BOILERPLATE
2840 # 2997 _LT_LINKER_BOILERPLATE
2841 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2842 if test "$GCC" = no; then
2843 case $host_os in
2844 sco3.2v5*)
2845 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2846 ;;
2847 esac
2848 fi
2849 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2850 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2851 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2852 else
2853 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2854 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2855 fi
2856 fi
2857
2858
2859 #
2860 # Check to make sure the static flag actually works.
2861 #
2862 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2863 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2864 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2865 [],
2866 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2867
2868 2998
2869 ## CAVEAT EMPTOR: 2999 ## CAVEAT EMPTOR:
2870 ## There is no encapsulation within the following macros, do not change 3000 ## There is no encapsulation within the following macros, do not change
2871 ## the running order or otherwise move them around unless you know exactly 3001 ## the running order or otherwise move them around unless you know exactly
2872 ## what you are doing... 3002 ## what you are doing...
2876 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3006 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2877 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3007 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2878 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3008 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2879 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3009 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2880 AC_LIBTOOL_SYS_LIB_STRIP 3010 AC_LIBTOOL_SYS_LIB_STRIP
2881 AC_LIBTOOL_DLOPEN_SELF($1) 3011 AC_LIBTOOL_DLOPEN_SELF
2882 3012
2883 # Report which librarie types wil actually be built 3013 # Report which library types will actually be built
2884 AC_MSG_CHECKING([if libtool supports shared libraries]) 3014 AC_MSG_CHECKING([if libtool supports shared libraries])
2885 AC_MSG_RESULT([$can_build_shared]) 3015 AC_MSG_RESULT([$can_build_shared])
2886 3016
2887 AC_MSG_CHECKING([whether to build shared libraries]) 3017 AC_MSG_CHECKING([whether to build shared libraries])
2888 test "$can_build_shared" = "no" && enable_shared=no 3018 test "$can_build_shared" = "no" && enable_shared=no
2889 3019
2890 # On AIX, shared libraries and static libraries use the same namespace, and 3020 # On AIX, shared libraries and static libraries use the same namespace, and
2891 # are all built from PIC. 3021 # are all built from PIC.
2892 case "$host_os" in 3022 case $host_os in
2893 aix3*) 3023 aix3*)
2894 test "$enable_shared" = yes && enable_static=no 3024 test "$enable_shared" = yes && enable_static=no
2895 if test -n "$RANLIB"; then 3025 if test -n "$RANLIB"; then
2896 archive_cmds="$archive_cmds~\$RANLIB \$lib" 3026 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2897 postinstall_cmds='$RANLIB $lib' 3027 postinstall_cmds='$RANLIB $lib'
2925 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3055 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2926 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 3056 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2927 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 3057 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2928 [AC_LANG_PUSH(C++) 3058 [AC_LANG_PUSH(C++)
2929 AC_REQUIRE([AC_PROG_CXX]) 3059 AC_REQUIRE([AC_PROG_CXX])
2930 AC_REQUIRE([AC_PROG_CXXCPP]) 3060 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2931 3061
2932 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3062 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2933 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 3063 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2934 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3064 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2935 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 3065 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2937 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3067 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2938 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 3068 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2939 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 3069 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2940 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3070 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2941 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 3071 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3072 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2942 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 3073 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2943 _LT_AC_TAGVAR(module_cmds, $1)= 3074 _LT_AC_TAGVAR(module_cmds, $1)=
2944 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 3075 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2945 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 3076 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2946 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3077 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2954 _LT_AC_TAGVAR(predeps, $1)= 3085 _LT_AC_TAGVAR(predeps, $1)=
2955 _LT_AC_TAGVAR(postdeps, $1)= 3086 _LT_AC_TAGVAR(postdeps, $1)=
2956 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= 3087 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2957 3088
2958 # Source file extension for C++ test sources. 3089 # Source file extension for C++ test sources.
2959 ac_ext=cc 3090 ac_ext=cpp
2960 3091
2961 # Object file extension for compiled C++ test sources. 3092 # Object file extension for compiled C++ test sources.
2962 objext=o 3093 objext=o
2963 _LT_AC_TAGVAR(objext, $1)=$objext 3094 _LT_AC_TAGVAR(objext, $1)=$objext
2964 3095
2965 # Code to be used in simple compile tests 3096 # Code to be used in simple compile tests
2966 lt_simple_compile_test_code="int some_variable = 0;\n" 3097 lt_simple_compile_test_code="int some_variable = 0;\n"
2967 3098
2968 # Code to be used in simple link tests 3099 # Code to be used in simple link tests
2969 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 3100 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2970 3101
2971 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2972 _LT_AC_SYS_COMPILER 3103 _LT_AC_SYS_COMPILER
3104
3105 # save warnings/boilerplate of simple test code
3106 _LT_COMPILER_BOILERPLATE
3107 _LT_LINKER_BOILERPLATE
2973 3108
2974 # Allow CC to be a program name with arguments. 3109 # Allow CC to be a program name with arguments.
2975 lt_save_CC=$CC 3110 lt_save_CC=$CC
2976 lt_save_LD=$LD 3111 lt_save_LD=$LD
2977 lt_save_GCC=$GCC 3112 lt_save_GCC=$GCC
2979 lt_save_with_gnu_ld=$with_gnu_ld 3114 lt_save_with_gnu_ld=$with_gnu_ld
2980 lt_save_path_LD=$lt_cv_path_LD 3115 lt_save_path_LD=$lt_cv_path_LD
2981 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 3116 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2982 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 3117 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2983 else 3118 else
2984 unset lt_cv_prog_gnu_ld 3119 $as_unset lt_cv_prog_gnu_ld
2985 fi 3120 fi
2986 if test -n "${lt_cv_path_LDCXX+set}"; then 3121 if test -n "${lt_cv_path_LDCXX+set}"; then
2987 lt_cv_path_LD=$lt_cv_path_LDCXX 3122 lt_cv_path_LD=$lt_cv_path_LDCXX
2988 else 3123 else
2989 unset lt_cv_path_LD 3124 $as_unset lt_cv_path_LD
2990 fi 3125 fi
2991 test -z "${LDCXX+set}" || LD=$LDCXX 3126 test -z "${LDCXX+set}" || LD=$LDCXX
2992 CC=${CXX-"c++"} 3127 CC=${CXX-"c++"}
2993 compiler=$CC 3128 compiler=$CC
2994 _LT_AC_TAGVAR(compiler, $1)=$CC 3129 _LT_AC_TAGVAR(compiler, $1)=$CC
2995 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 3130 _LT_CC_BASENAME([$compiler])
2996 3131
2997 # We don't want -fno-exception wen compiling C++ code, so set the 3132 # We don't want -fno-exception wen compiling C++ code, so set the
2998 # no_builtin_flag separately 3133 # no_builtin_flag separately
2999 if test "$GXX" = yes; then 3134 if test "$GXX" = yes; then
3000 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3135 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3079 aix_use_runtimelinking=yes 3214 aix_use_runtimelinking=yes
3080 break 3215 break
3081 ;; 3216 ;;
3082 esac 3217 esac
3083 done 3218 done
3219 ;;
3084 esac 3220 esac
3085 3221
3086 exp_sym_flag='-bexport' 3222 exp_sym_flag='-bexport'
3087 no_entry_flag='-bnoentry' 3223 no_entry_flag='-bnoentry'
3088 fi 3224 fi
3097 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3233 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3098 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3234 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3099 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3235 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3100 3236
3101 if test "$GXX" = yes; then 3237 if test "$GXX" = yes; then
3102 case $host_os in aix4.[012]|aix4.[012].*) 3238 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3103 # We only want to do this on AIX 4.2 and lower, the check 3239 # We only want to do this on AIX 4.2 and lower, the check
3104 # below for broken collect2 doesn't work under 4.3+ 3240 # below for broken collect2 doesn't work under 4.3+
3105 collect2name=`${CC} -print-prog-name=collect2` 3241 collect2name=`${CC} -print-prog-name=collect2`
3106 if test -f "$collect2name" && \ 3242 if test -f "$collect2name" && \
3107 strings "$collect2name" | grep resolve_lib_name >/dev/null 3243 strings "$collect2name" | grep resolve_lib_name >/dev/null
3116 # to unsupported forces relinking 3252 # to unsupported forces relinking
3117 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 3253 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3118 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3254 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3119 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3255 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3120 fi 3256 fi
3257 ;;
3121 esac 3258 esac
3122 shared_flag='-shared' 3259 shared_flag='-shared'
3260 if test "$aix_use_runtimelinking" = yes; then
3261 shared_flag="$shared_flag "'${wl}-G'
3262 fi
3123 else 3263 else
3124 # not using gcc 3264 # not using gcc
3125 if test "$host_cpu" = ia64; then 3265 if test "$host_cpu" = ia64; then
3126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 3266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3127 # chokes on -Wl,-G. The following line is correct: 3267 # chokes on -Wl,-G. The following line is correct:
3144 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 3284 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3145 # Determine the default libpath from the value encoded in an empty executable. 3285 # Determine the default libpath from the value encoded in an empty executable.
3146 _LT_AC_SYS_LIBPATH_AIX 3286 _LT_AC_SYS_LIBPATH_AIX
3147 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3287 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3148 3288
3149 _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" 3289 _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"
3150 else 3290 else
3151 if test "$host_cpu" = ia64; then 3291 if test "$host_cpu" = ia64; then
3152 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 3292 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3153 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 3293 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3154 _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" 3294 _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"
3155 else 3295 else
3156 # Determine the default libpath from the value encoded in an empty executable. 3296 # Determine the default libpath from the value encoded in an empty executable.
3157 _LT_AC_SYS_LIBPATH_AIX 3297 _LT_AC_SYS_LIBPATH_AIX
3158 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3298 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3159 # Warning - without using the other run time loading flags, 3299 # Warning - without using the other run time loading flags,
3160 # -berok will link without error, but may produce a broken library. 3300 # -berok will link without error, but may produce a broken library.
3161 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 3301 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3162 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 3302 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3163 # -bexpall does not export symbols beginning with underscore (_)
3164 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3165 # Exported symbols can be pulled into shared objects from archives 3303 # Exported symbols can be pulled into shared objects from archives
3166 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 3304 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3167 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3305 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3168 # This is similar to how AIX traditionally builds it's shared libraries. 3306 # This is similar to how AIX traditionally builds its shared libraries.
3169 _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' 3307 _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'
3170 fi 3308 fi
3171 fi 3309 fi
3172 ;; 3310 ;;
3311
3312 beos*)
3313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3314 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3315 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3316 # support --undefined. This deserves some investigation. FIXME
3317 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3318 else
3319 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3320 fi
3321 ;;
3322
3173 chorus*) 3323 chorus*)
3174 case $cc_basename in 3324 case $cc_basename in
3175 *) 3325 *)
3176 # FIXME: insert proper C++ library support 3326 # FIXME: insert proper C++ library support
3177 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3327 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3178 ;; 3328 ;;
3179 esac 3329 esac
3180 ;; 3330 ;;
3181
3182 3331
3183 cygwin* | mingw* | pw32*) 3332 cygwin* | mingw* | pw32*)
3184 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 3333 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3185 # as there is no search path for DLLs. 3334 # as there is no search path for DLLs.
3186 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3335 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3187 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3336 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3188 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3337 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3189 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3338 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3190 3339
3191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3340 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3192 ## _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' 3341 _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'
3193 _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 ${wl}--out-implib,$lib'
3194 # If the export-symbols file already is a .def file (1st line 3342 # If the export-symbols file already is a .def file (1st line
3195 # is EXPORTS), use it as is; otherwise, prepend... 3343 # is EXPORTS), use it as is; otherwise, prepend...
3196 ## _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3197 ## cp $export_symbols $output_objdir/$soname.def;
3198 ## else
3199 ## echo EXPORTS > $output_objdir/$soname.def;
3200 ## cat $export_symbols >> $output_objdir/$soname.def;
3201 ## fi~
3202 ## $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'
3203 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3344 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3204 cp $export_symbols $output_objdir/$soname.def; 3345 cp $export_symbols $output_objdir/$soname.def;
3205 else 3346 else
3206 echo EXPORTS > $output_objdir/$soname.def; 3347 echo EXPORTS > $output_objdir/$soname.def;
3207 cat $export_symbols >> $output_objdir/$soname.def; 3348 cat $export_symbols >> $output_objdir/$soname.def;
3208 fi~ 3349 fi~
3209 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 3350 $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'
3210 else 3351 else
3211 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3352 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3212 fi 3353 fi
3213 ;; 3354 ;;
3214 darwin* | rhapsody*) 3355 darwin* | rhapsody*)
3215 case "$host_os" in 3356 case $host_os in
3216 rhapsody* | darwin1.[[012]]) 3357 rhapsody* | darwin1.[[012]])
3217 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 3358 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3218 ;; 3359 ;;
3219 *) # Darwin 1.3 on 3360 *) # Darwin 1.3 on
3220 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 3361 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3248 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3389 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3249 else 3390 else
3250 _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' 3391 _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'
3251 fi 3392 fi
3252 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3393 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3253 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 3394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3254 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3395 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3255 _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}' 3396 _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}'
3256 else 3397 else
3257 _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}' 3398 _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}'
3258 fi 3399 fi
3259 _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}' 3400 _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}'
3260 else 3401 else
3261 case "$cc_basename" in 3402 case $cc_basename in
3262 xlc*) 3403 xlc*)
3263 output_verbose_link_cmd='echo' 3404 output_verbose_link_cmd='echo'
3264 _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' 3405 _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'
3265 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3406 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 3407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3267 _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}' 3408 _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}'
3268 _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}' 3409 _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}'
3269 ;; 3410 ;;
3270 *) 3411 *)
3271 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3412 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3274 fi 3415 fi
3275 ;; 3416 ;;
3276 3417
3277 dgux*) 3418 dgux*)
3278 case $cc_basename in 3419 case $cc_basename in
3279 ec++) 3420 ec++*)
3280 # FIXME: insert proper C++ library support 3421 # FIXME: insert proper C++ library support
3281 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3422 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3282 ;; 3423 ;;
3283 ghcx) 3424 ghcx*)
3284 # Green Hills C++ Compiler 3425 # Green Hills C++ Compiler
3285 # FIXME: insert proper C++ library support 3426 # FIXME: insert proper C++ library support
3286 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3427 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3287 ;; 3428 ;;
3288 *) 3429 *)
3289 # FIXME: insert proper C++ library support 3430 # FIXME: insert proper C++ library support
3290 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3431 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3291 ;; 3432 ;;
3292 esac 3433 esac
3293 ;; 3434 ;;
3294 freebsd[12]*) 3435 freebsd[[12]]*)
3295 # C++ shared libraries reported to be fairly broken before switch to ELF 3436 # C++ shared libraries reported to be fairly broken before switch to ELF
3296 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3437 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3297 ;; 3438 ;;
3298 freebsd-elf*) 3439 freebsd-elf*)
3299 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3440 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3300 ;; 3441 ;;
3301 freebsd* | kfreebsd*-gnu) 3442 freebsd* | kfreebsd*-gnu | dragonfly*)
3302 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3443 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3303 # conventions 3444 # conventions
3304 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3445 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3305 ;; 3446 ;;
3306 gnu*) 3447 gnu*)
3313 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3454 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3314 # but as the default 3455 # but as the default
3315 # location of the library. 3456 # location of the library.
3316 3457
3317 case $cc_basename in 3458 case $cc_basename in
3318 CC) 3459 CC*)
3319 # FIXME: insert proper C++ library support 3460 # FIXME: insert proper C++ library support
3320 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3461 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3321 ;; 3462 ;;
3322 aCC) 3463 aCC*)
3323 _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' 3464 _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'
3324 # Commands to make compiler produce verbose output that lists 3465 # Commands to make compiler produce verbose output that lists
3325 # what "hidden" libraries, object files and flags are used when 3466 # what "hidden" libraries, object files and flags are used when
3326 # linking a shared library. 3467 # linking a shared library.
3327 # 3468 #
3328 # There doesn't appear to be a way to prevent this compiler from 3469 # There doesn't appear to be a way to prevent this compiler from
3329 # explicitly linking system object files so we need to strip them 3470 # explicitly linking system object files so we need to strip them
3330 # from the output so that they don't get included in the library 3471 # from the output so that they don't get included in the library
3331 # dependencies. 3472 # dependencies.
3332 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' 3473 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'
3333 ;; 3474 ;;
3334 *) 3475 *)
3335 if test "$GXX" = yes; then 3476 if test "$GXX" = yes; then
3336 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3477 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3337 else 3478 else
3341 ;; 3482 ;;
3342 esac 3483 esac
3343 ;; 3484 ;;
3344 hpux10*|hpux11*) 3485 hpux10*|hpux11*)
3345 if test $with_gnu_ld = no; then 3486 if test $with_gnu_ld = no; then
3346 case "$host_cpu" in 3487 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3347 hppa*64*) 3488 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3348 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3489
3490 case $host_cpu in
3491 hppa*64*|ia64*)
3349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3492 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3350 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3351 ;;
3352 ia64*)
3353 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3354 ;; 3493 ;;
3355 *) 3494 *)
3356 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3357 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3358 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3495 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3359 ;; 3496 ;;
3360 esac 3497 esac
3361 fi 3498 fi
3362 case "$host_cpu" in 3499 case $host_cpu in
3363 hppa*64*) 3500 hppa*64*|ia64*)
3364 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3501 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3365 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3502 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3366 ;;
3367 ia64*)
3368 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3369 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3370 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3371 # but as the default
3372 # location of the library.
3373 ;; 3503 ;;
3374 *) 3504 *)
3375 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3505 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3376 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3506 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3377 # but as the default 3507 # but as the default
3378 # location of the library. 3508 # location of the library.
3379 ;; 3509 ;;
3380 esac 3510 esac
3381 3511
3382 case $cc_basename in 3512 case $cc_basename in
3383 CC) 3513 CC*)
3384 # FIXME: insert proper C++ library support 3514 # FIXME: insert proper C++ library support
3385 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3515 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3386 ;; 3516 ;;
3387 aCC) 3517 aCC*)
3388 case "$host_cpu" in 3518 case $host_cpu in
3389 hppa*64*|ia64*) 3519 hppa*64*)
3390 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3520 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3521 ;;
3522 ia64*)
3523 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3391 ;; 3524 ;;
3392 *) 3525 *)
3393 _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' 3526 _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'
3394 ;; 3527 ;;
3395 esac 3528 esac
3404 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' 3537 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'
3405 ;; 3538 ;;
3406 *) 3539 *)
3407 if test "$GXX" = yes; then 3540 if test "$GXX" = yes; then
3408 if test $with_gnu_ld = no; then 3541 if test $with_gnu_ld = no; then
3409 case "$host_cpu" in 3542 case $host_cpu in
3410 ia64*|hppa*64*) 3543 hppa*64*)
3411 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3544 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3545 ;;
3546 ia64*)
3547 _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'
3412 ;; 3548 ;;
3413 *) 3549 *)
3414 _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' 3550 _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'
3415 ;; 3551 ;;
3416 esac 3552 esac
3420 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3556 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3421 fi 3557 fi
3422 ;; 3558 ;;
3423 esac 3559 esac
3424 ;; 3560 ;;
3561 interix3*)
3562 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3563 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3564 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3565 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3567 # Instead, shared libraries are loaded at an image base (0x10000000 by
3568 # default) and relocated if they conflict, which is a slow very memory
3569 # consuming and fragmenting process. To avoid this, we pick a random,
3570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3571 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3572 _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'
3573 _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'
3574 ;;
3425 irix5* | irix6*) 3575 irix5* | irix6*)
3426 case $cc_basename in 3576 case $cc_basename in
3427 CC) 3577 CC*)
3428 # SGI C++ 3578 # SGI C++
3429 _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' 3579 _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'
3430 3580
3431 # Archives containing C++ object files must be created using 3581 # Archives containing C++ object files must be created using
3432 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3582 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3433 # necessary to make sure instantiated templates are included 3583 # necessary to make sure instantiated templates are included
3434 # in the archive. 3584 # in the archive.
3435 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 3585 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3436 ;; 3586 ;;
3437 *) 3587 *)
3438 if test "$GXX" = yes; then 3588 if test "$GXX" = yes; then
3439 if test "$with_gnu_ld" = no; then 3589 if test "$with_gnu_ld" = no; then
3440 _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' 3590 _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'
3441 else 3591 else
3442 _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' 3592 _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'
3443 fi 3593 fi
3444 fi 3594 fi
3445 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3595 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3448 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3598 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3449 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3599 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3450 ;; 3600 ;;
3451 linux*) 3601 linux*)
3452 case $cc_basename in 3602 case $cc_basename in
3453 KCC) 3603 KCC*)
3454 # Kuck and Associates, Inc. (KAI) C++ Compiler 3604 # Kuck and Associates, Inc. (KAI) C++ Compiler
3455 3605
3456 # KCC will only create a shared library if the output file 3606 # KCC will only create a shared library if the output file
3457 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3607 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3458 # to its proper name (with version) after linking. 3608 # to its proper name (with version) after linking.
3473 3623
3474 # Archives containing C++ object files must be created using 3624 # Archives containing C++ object files must be created using
3475 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3625 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3476 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3626 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3477 ;; 3627 ;;
3478 icpc) 3628 icpc*)
3479 # Intel C++ 3629 # Intel C++
3480 with_gnu_ld=yes 3630 with_gnu_ld=yes
3481 # version 8.0 and above of icpc choke on multiply defined symbols 3631 # version 8.0 and above of icpc choke on multiply defined symbols
3482 # if we add $predep_objects and $postdep_objects, however 7.1 and 3632 # if we add $predep_objects and $postdep_objects, however 7.1 and
3483 # earlier do not add the objects themselves. 3633 # earlier do not add the objects themselves.
3485 *"Version 7."*) 3635 *"Version 7."*)
3486 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3636 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3487 _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' 3637 _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'
3488 ;; 3638 ;;
3489 *) # Version 8.0 or newer 3639 *) # Version 8.0 or newer
3490 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3640 tmp_idyn=
3491 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3641 case $host_cpu in
3642 ia64*) tmp_idyn=' -i_dynamic';;
3643 esac
3644 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3645 _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'
3492 ;; 3646 ;;
3493 esac 3647 esac
3494 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3648 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3495 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3649 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3496 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3650 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3497 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3651 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3498 ;; 3652 ;;
3499 cxx) 3653 pgCC*)
3654 # Portland Group C++ compiler
3655 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3656 _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'
3657
3658 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3659 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3660 _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'
3661 ;;
3662 cxx*)
3500 # Compaq C++ 3663 # Compaq C++
3501 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3664 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3502 _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' 3665 _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'
3503 3666
3504 runpath_var=LD_RUN_PATH 3667 runpath_var=LD_RUN_PATH
3525 # FIXME: insert proper C++ library support 3688 # FIXME: insert proper C++ library support
3526 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3689 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3527 ;; 3690 ;;
3528 mvs*) 3691 mvs*)
3529 case $cc_basename in 3692 case $cc_basename in
3530 cxx) 3693 cxx*)
3531 # FIXME: insert proper C++ library support 3694 # FIXME: insert proper C++ library support
3532 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3695 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3533 ;; 3696 ;;
3534 *) 3697 *)
3535 # FIXME: insert proper C++ library support 3698 # FIXME: insert proper C++ library support
3551 openbsd2*) 3714 openbsd2*)
3552 # C++ shared libraries are fairly broken 3715 # C++ shared libraries are fairly broken
3553 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3716 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3554 ;; 3717 ;;
3555 openbsd*) 3718 openbsd*)
3719 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3720 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3556 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3721 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3557 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3722 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3559 _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' 3724 _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'
3560 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3725 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3562 fi 3727 fi
3563 output_verbose_link_cmd='echo' 3728 output_verbose_link_cmd='echo'
3564 ;; 3729 ;;
3565 osf3*) 3730 osf3*)
3566 case $cc_basename in 3731 case $cc_basename in
3567 KCC) 3732 KCC*)
3568 # Kuck and Associates, Inc. (KAI) C++ Compiler 3733 # Kuck and Associates, Inc. (KAI) C++ Compiler
3569 3734
3570 # KCC will only create a shared library if the output file 3735 # KCC will only create a shared library if the output file
3571 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3736 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3572 # to its proper name (with version) after linking. 3737 # to its proper name (with version) after linking.
3578 # Archives containing C++ object files must be created using 3743 # Archives containing C++ object files must be created using
3579 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3744 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3580 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3745 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3581 3746
3582 ;; 3747 ;;
3583 RCC) 3748 RCC*)
3584 # Rational C++ 2.4.1 3749 # Rational C++ 2.4.1
3585 # FIXME: insert proper C++ library support 3750 # FIXME: insert proper C++ library support
3586 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3751 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3587 ;; 3752 ;;
3588 cxx) 3753 cxx*)
3589 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3754 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3590 _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' 3755 _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'
3591 3756
3592 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3757 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3593 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3758 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3594 3759
3595 # Commands to make compiler produce verbose output that lists 3760 # Commands to make compiler produce verbose output that lists
3603 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3768 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3604 ;; 3769 ;;
3605 *) 3770 *)
3606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3771 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3607 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3772 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3608 _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' 3773 _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'
3609 3774
3610 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3775 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3611 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3776 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3612 3777
3613 # Commands to make compiler produce verbose output that lists 3778 # Commands to make compiler produce verbose output that lists
3622 ;; 3787 ;;
3623 esac 3788 esac
3624 ;; 3789 ;;
3625 osf4* | osf5*) 3790 osf4* | osf5*)
3626 case $cc_basename in 3791 case $cc_basename in
3627 KCC) 3792 KCC*)
3628 # Kuck and Associates, Inc. (KAI) C++ Compiler 3793 # Kuck and Associates, Inc. (KAI) C++ Compiler
3629 3794
3630 # KCC will only create a shared library if the output file 3795 # KCC will only create a shared library if the output file
3631 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3632 # to its proper name (with version) after linking. 3797 # to its proper name (with version) after linking.
3637 3802
3638 # Archives containing C++ object files must be created using 3803 # Archives containing C++ object files must be created using
3639 # the KAI C++ compiler. 3804 # the KAI C++ compiler.
3640 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3805 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3641 ;; 3806 ;;
3642 RCC) 3807 RCC*)
3643 # Rational C++ 2.4.1 3808 # Rational C++ 2.4.1
3644 # FIXME: insert proper C++ library support 3809 # FIXME: insert proper C++ library support
3645 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3810 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3646 ;; 3811 ;;
3647 cxx) 3812 cxx*)
3648 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3813 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3649 _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' 3814 _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'
3650 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3815 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3651 echo "-hidden">> $lib.exp~ 3816 echo "-hidden">> $lib.exp~
3652 $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~ 3817 $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~
3653 $rm $lib.exp' 3818 $rm $lib.exp'
3654 3819
3655 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3820 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3656 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3821 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3657 3822
3666 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3831 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3667 ;; 3832 ;;
3668 *) 3833 *)
3669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3834 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3670 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3835 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3671 _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' 3836 _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'
3672 3837
3673 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3838 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3674 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3839 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3675 3840
3676 # Commands to make compiler produce verbose output that lists 3841 # Commands to make compiler produce verbose output that lists
3687 ;; 3852 ;;
3688 psos*) 3853 psos*)
3689 # FIXME: insert proper C++ library support 3854 # FIXME: insert proper C++ library support
3690 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3855 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3691 ;; 3856 ;;
3692 sco*) 3857 sunos4*)
3693 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3694 case $cc_basename in 3858 case $cc_basename in
3695 CC) 3859 CC*)
3860 # Sun C++ 4.x
3861 # FIXME: insert proper C++ library support
3862 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3863 ;;
3864 lcc*)
3865 # Lucid
3696 # FIXME: insert proper C++ library support 3866 # FIXME: insert proper C++ library support
3697 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3867 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3698 ;; 3868 ;;
3699 *) 3869 *)
3700 # FIXME: insert proper C++ library support 3870 # FIXME: insert proper C++ library support
3701 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3871 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3702 ;; 3872 ;;
3703 esac 3873 esac
3704 ;; 3874 ;;
3705 sunos4*)
3706 case $cc_basename in
3707 CC)
3708 # Sun C++ 4.x
3709 # FIXME: insert proper C++ library support
3710 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3711 ;;
3712 lcc)
3713 # Lucid
3714 # FIXME: insert proper C++ library support
3715 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3716 ;;
3717 *)
3718 # FIXME: insert proper C++ library support
3719 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3720 ;;
3721 esac
3722 ;;
3723 solaris*) 3875 solaris*)
3724 case $cc_basename in 3876 case $cc_basename in
3725 CC) 3877 CC*)
3726 # Sun C++ 4.2, 5.x and Centerline C++ 3878 # Sun C++ 4.2, 5.x and Centerline C++
3879 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3727 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3880 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3728 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3881 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3729 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3882 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3730 $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' 3883 $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'
3731 3884
3732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3885 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3733 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3886 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3734 case $host_os in 3887 case $host_os in
3735 solaris2.[0-5] | solaris2.[0-5].*) ;; 3888 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3736 *) 3889 *)
3737 # The C++ compiler is used as linker so we must use $wl 3890 # The C++ compiler is used as linker so we must use $wl
3738 # flag to pass the commands to the underlying system 3891 # flag to pass the commands to the underlying system
3739 # linker. 3892 # linker. We must also pass each convience library through
3893 # to the system linker between allextract/defaultextract.
3894 # The C++ compiler will combine linker options so we
3895 # cannot just pass the convience library names through
3896 # without $wl.
3740 # Supported since Solaris 2.6 (maybe 2.5.1?) 3897 # Supported since Solaris 2.6 (maybe 2.5.1?)
3741 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3898 _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'
3742 ;; 3899 ;;
3743 esac 3900 esac
3744 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3901 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3745 3902
3746 # Commands to make compiler produce verbose output that lists 3903 output_verbose_link_cmd='echo'
3747 # what "hidden" libraries, object files and flags are used when
3748 # linking a shared library.
3749 #
3750 # There doesn't appear to be a way to prevent this compiler from
3751 # explicitly linking system object files so we need to strip them
3752 # from the output so that they don't get included in the library
3753 # dependencies.
3754 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'
3755 3904
3756 # Archives containing C++ object files must be created using 3905 # Archives containing C++ object files must be created using
3757 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3906 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3758 # necessary to make sure instantiated templates are included 3907 # necessary to make sure instantiated templates are included
3759 # in the archive. 3908 # in the archive.
3760 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3909 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3761 ;; 3910 ;;
3762 gcx) 3911 gcx*)
3763 # Green Hills C++ Compiler 3912 # Green Hills C++ Compiler
3764 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3913 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3765 3914
3766 # The C++ compiler must be used to create the archive. 3915 # The C++ compiler must be used to create the archive.
3767 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 3916 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3795 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3944 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3796 fi 3945 fi
3797 ;; 3946 ;;
3798 esac 3947 esac
3799 ;; 3948 ;;
3800 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 3949 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3950 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3801 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3951 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3952 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3953 runpath_var='LD_RUN_PATH'
3954
3955 case $cc_basename in
3956 CC*)
3957 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3958 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3959 ;;
3960 *)
3961 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3962 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3963 ;;
3964 esac
3965 ;;
3966 sysv5* | sco3.2v5* | sco5v6*)
3967 # Note: We can NOT use -z defs as we might desire, because we do not
3968 # link with -lc, and that would cause any symbols used from libc to
3969 # always be unresolved, which means just about no library would
3970 # ever link correctly. If we're not using GNU ld we use -z text
3971 # though, which does catch some bad symbols but isn't as heavy-handed
3972 # as -z defs.
3973 # For security reasons, it is highly recommended that you always
3974 # use absolute paths for naming shared libraries, and exclude the
3975 # DT_RUNPATH tag from executables and libraries. But doing so
3976 # requires that you compile everything twice, which is a pain.
3977 # So that behaviour is only enabled if SCOABSPATH is set to a
3978 # non-empty value in the environment. Most likely only useful for
3979 # creating official distributions of packages.
3980 # This is a hack until libtool officially supports absolute path
3981 # names for shared libraries.
3982 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3983 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3984 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3985 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3986 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3987 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3988 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3989 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3990 runpath_var='LD_RUN_PATH'
3991
3992 case $cc_basename in
3993 CC*)
3994 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3995 _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'
3996 ;;
3997 *)
3998 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3999 _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'
4000 ;;
4001 esac
3802 ;; 4002 ;;
3803 tandem*) 4003 tandem*)
3804 case $cc_basename in 4004 case $cc_basename in
3805 NCC) 4005 NCC*)
3806 # NonStop-UX NCC 3.20 4006 # NonStop-UX NCC 3.20
3807 # FIXME: insert proper C++ library support 4007 # FIXME: insert proper C++ library support
3808 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4008 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3809 ;; 4009 ;;
3810 *) 4010 *)
3837 AC_LIBTOOL_PROG_CC_C_O($1) 4037 AC_LIBTOOL_PROG_CC_C_O($1)
3838 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4038 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3839 AC_LIBTOOL_PROG_LD_SHLIBS($1) 4039 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3840 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4040 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3841 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4041 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3842 AC_LIBTOOL_SYS_LIB_STRIP
3843 AC_LIBTOOL_DLOPEN_SELF($1)
3844 4042
3845 AC_LIBTOOL_CONFIG($1) 4043 AC_LIBTOOL_CONFIG($1)
3846 4044
3847 AC_LANG_POP 4045 AC_LANG_POP
3848 CC=$lt_save_CC 4046 CC=$lt_save_CC
3856 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 4054 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3857 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 4055 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3858 ])# AC_LIBTOOL_LANG_CXX_CONFIG 4056 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3859 4057
3860 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 4058 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3861 # ------------------------ 4059 # ------------------------------------
3862 # Figure out "hidden" library dependencies from verbose 4060 # Figure out "hidden" library dependencies from verbose
3863 # compiler output when linking a shared library. 4061 # compiler output when linking a shared library.
3864 # Parse the compiler output and extract the necessary 4062 # Parse the compiler output and extract the necessary
3865 # objects, libraries and library flags. 4063 # objects, libraries and library flags.
3866 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 4064 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3910 pre_test_object_deps_done=no 4108 pre_test_object_deps_done=no
3911 4109
3912 # The `*' in the case matches for architectures that use `case' in 4110 # The `*' in the case matches for architectures that use `case' in
3913 # $output_verbose_cmd can trigger glob expansion during the loop 4111 # $output_verbose_cmd can trigger glob expansion during the loop
3914 # eval without this substitution. 4112 # eval without this substitution.
3915 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 4113 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3916 4114
3917 for p in `eval $output_verbose_link_cmd`; do 4115 for p in `eval $output_verbose_link_cmd`; do
3918 case $p in 4116 case $p in
3919 4117
3920 -L* | -R* | -l*) 4118 -L* | -R* | -l*)
3986 echo "libtool.m4: error: problem compiling $1 test program" 4184 echo "libtool.m4: error: problem compiling $1 test program"
3987 fi 4185 fi
3988 4186
3989 $rm -f confest.$objext 4187 $rm -f confest.$objext
3990 4188
4189 # PORTME: override above test on systems where it is broken
4190 ifelse([$1],[CXX],
4191 [case $host_os in
4192 interix3*)
4193 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4194 # hack all around it, let's just trust "g++" to DTRT.
4195 _LT_AC_TAGVAR(predep_objects,$1)=
4196 _LT_AC_TAGVAR(postdep_objects,$1)=
4197 _LT_AC_TAGVAR(postdeps,$1)=
4198 ;;
4199
4200 solaris*)
4201 case $cc_basename in
4202 CC*)
4203 # Adding this requires a known-good setup of shared libraries for
4204 # Sun compiler versions before 5.6, else PIC objects from an old
4205 # archive will be linked into the output, leading to subtle bugs.
4206 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4207 ;;
4208 esac
4209 ;;
4210 esac
4211 ])
4212
3991 case " $_LT_AC_TAGVAR(postdeps, $1) " in 4213 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3992 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4214 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3993 esac 4215 esac
3994 ])# AC_LIBTOOL_POSTDEP_PREDEP 4216 ])# AC_LIBTOOL_POSTDEP_PREDEP
3995 4217
3996 # AC_LIBTOOL_LANG_F77_CONFIG 4218 # AC_LIBTOOL_LANG_F77_CONFIG
3997 # ------------------------ 4219 # --------------------------
3998 # Ensure that the configuration vars for the C compiler are 4220 # Ensure that the configuration vars for the C compiler are
3999 # suitably defined. Those variables are subsequently used by 4221 # suitably defined. Those variables are subsequently used by
4000 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4222 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4001 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 4223 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4002 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 4224 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4036 lt_simple_link_test_code=" program t\n end\n" 4258 lt_simple_link_test_code=" program t\n end\n"
4037 4259
4038 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4260 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4039 _LT_AC_SYS_COMPILER 4261 _LT_AC_SYS_COMPILER
4040 4262
4263 # save warnings/boilerplate of simple test code
4264 _LT_COMPILER_BOILERPLATE
4265 _LT_LINKER_BOILERPLATE
4266
4041 # Allow CC to be a program name with arguments. 4267 # Allow CC to be a program name with arguments.
4042 lt_save_CC="$CC" 4268 lt_save_CC="$CC"
4043 CC=${F77-"f77"} 4269 CC=${F77-"f77"}
4044 compiler=$CC 4270 compiler=$CC
4045 _LT_AC_TAGVAR(compiler, $1)=$CC 4271 _LT_AC_TAGVAR(compiler, $1)=$CC
4046 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 4272 _LT_CC_BASENAME([$compiler])
4047 4273
4048 AC_MSG_CHECKING([if libtool supports shared libraries]) 4274 AC_MSG_CHECKING([if libtool supports shared libraries])
4049 AC_MSG_RESULT([$can_build_shared]) 4275 AC_MSG_RESULT([$can_build_shared])
4050 4276
4051 AC_MSG_CHECKING([whether to build shared libraries]) 4277 AC_MSG_CHECKING([whether to build shared libraries])
4052 test "$can_build_shared" = "no" && enable_shared=no 4278 test "$can_build_shared" = "no" && enable_shared=no
4053 4279
4054 # On AIX, shared libraries and static libraries use the same namespace, and 4280 # On AIX, shared libraries and static libraries use the same namespace, and
4055 # are all built from PIC. 4281 # are all built from PIC.
4056 case "$host_os" in 4282 case $host_os in
4057 aix3*) 4283 aix3*)
4058 test "$enable_shared" = yes && enable_static=no 4284 test "$enable_shared" = yes && enable_static=no
4059 if test -n "$RANLIB"; then 4285 if test -n "$RANLIB"; then
4060 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4286 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4061 postinstall_cmds='$RANLIB $lib' 4287 postinstall_cmds='$RANLIB $lib'
4062 fi 4288 fi
4063 ;; 4289 ;;
4064 aix4* | aix5*) 4290 aix4* | aix5*)
4065 test "$enable_shared" = yes && enable_static=no 4291 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4292 test "$enable_shared" = yes && enable_static=no
4293 fi
4066 ;; 4294 ;;
4067 esac 4295 esac
4068 AC_MSG_RESULT([$enable_shared]) 4296 AC_MSG_RESULT([$enable_shared])
4069 4297
4070 AC_MSG_CHECKING([whether to build static libraries]) 4298 AC_MSG_CHECKING([whether to build static libraries])
4071 # Make sure either enable_shared or enable_static is yes. 4299 # Make sure either enable_shared or enable_static is yes.
4072 test "$enable_shared" = yes || enable_static=yes 4300 test "$enable_shared" = yes || enable_static=yes
4073 AC_MSG_RESULT([$enable_static]) 4301 AC_MSG_RESULT([$enable_static])
4074
4075 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4076 4302
4077 _LT_AC_TAGVAR(GCC, $1)="$G77" 4303 _LT_AC_TAGVAR(GCC, $1)="$G77"
4078 _LT_AC_TAGVAR(LD, $1)="$LD" 4304 _LT_AC_TAGVAR(LD, $1)="$LD"
4079 4305
4080 AC_LIBTOOL_PROG_COMPILER_PIC($1) 4306 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4081 AC_LIBTOOL_PROG_CC_C_O($1) 4307 AC_LIBTOOL_PROG_CC_C_O($1)
4082 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4308 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4083 AC_LIBTOOL_PROG_LD_SHLIBS($1) 4309 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4084 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4310 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4085 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4311 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4086 AC_LIBTOOL_SYS_LIB_STRIP
4087
4088 4312
4089 AC_LIBTOOL_CONFIG($1) 4313 AC_LIBTOOL_CONFIG($1)
4090 4314
4091 AC_LANG_POP 4315 AC_LANG_POP
4092 CC="$lt_save_CC" 4316 CC="$lt_save_CC"
4111 4335
4112 # Code to be used in simple compile tests 4336 # Code to be used in simple compile tests
4113 lt_simple_compile_test_code="class foo {}\n" 4337 lt_simple_compile_test_code="class foo {}\n"
4114 4338
4115 # Code to be used in simple link tests 4339 # Code to be used in simple link tests
4116 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 4340 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4117 4341
4118 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4119 _LT_AC_SYS_COMPILER 4343 _LT_AC_SYS_COMPILER
4344
4345 # save warnings/boilerplate of simple test code
4346 _LT_COMPILER_BOILERPLATE
4347 _LT_LINKER_BOILERPLATE
4120 4348
4121 # Allow CC to be a program name with arguments. 4349 # Allow CC to be a program name with arguments.
4122 lt_save_CC="$CC" 4350 lt_save_CC="$CC"
4123 CC=${GCJ-"gcj"} 4351 CC=${GCJ-"gcj"}
4124 compiler=$CC 4352 compiler=$CC
4125 _LT_AC_TAGVAR(compiler, $1)=$CC 4353 _LT_AC_TAGVAR(compiler, $1)=$CC
4354 _LT_CC_BASENAME([$compiler])
4126 4355
4127 # GCJ did not exist at the time GCC didn't implicitly link libc in. 4356 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4128 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4357 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4358
4359 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4129 4360
4130 ## CAVEAT EMPTOR: 4361 ## CAVEAT EMPTOR:
4131 ## There is no encapsulation within the following macros, do not change 4362 ## There is no encapsulation within the following macros, do not change
4132 ## the running order or otherwise move them around unless you know exactly 4363 ## the running order or otherwise move them around unless you know exactly
4133 ## what you are doing... 4364 ## what you are doing...
4136 AC_LIBTOOL_PROG_CC_C_O($1) 4367 AC_LIBTOOL_PROG_CC_C_O($1)
4137 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4368 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4138 AC_LIBTOOL_PROG_LD_SHLIBS($1) 4369 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4139 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4370 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4140 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4371 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4141 AC_LIBTOOL_SYS_LIB_STRIP
4142 AC_LIBTOOL_DLOPEN_SELF($1)
4143 4372
4144 AC_LIBTOOL_CONFIG($1) 4373 AC_LIBTOOL_CONFIG($1)
4145 4374
4146 AC_LANG_RESTORE 4375 AC_LANG_RESTORE
4147 CC="$lt_save_CC" 4376 CC="$lt_save_CC"
4148 ])# AC_LIBTOOL_LANG_GCJ_CONFIG 4377 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4149 4378
4150 4379
4151 # AC_LIBTOOL_LANG_RC_CONFIG 4380 # AC_LIBTOOL_LANG_RC_CONFIG
4152 # -------------------------- 4381 # -------------------------
4153 # Ensure that the configuration vars for the Windows resource compiler are 4382 # Ensure that the configuration vars for the Windows resource compiler are
4154 # suitably defined. Those variables are subsequently used by 4383 # suitably defined. Those variables are subsequently used by
4155 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4384 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4156 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 4385 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4157 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 4386 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4171 lt_simple_link_test_code="$lt_simple_compile_test_code" 4400 lt_simple_link_test_code="$lt_simple_compile_test_code"
4172 4401
4173 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4402 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4174 _LT_AC_SYS_COMPILER 4403 _LT_AC_SYS_COMPILER
4175 4404
4405 # save warnings/boilerplate of simple test code
4406 _LT_COMPILER_BOILERPLATE
4407 _LT_LINKER_BOILERPLATE
4408
4176 # Allow CC to be a program name with arguments. 4409 # Allow CC to be a program name with arguments.
4177 lt_save_CC="$CC" 4410 lt_save_CC="$CC"
4178 CC=${RC-"windres"} 4411 CC=${RC-"windres"}
4179 compiler=$CC 4412 compiler=$CC
4180 _LT_AC_TAGVAR(compiler, $1)=$CC 4413 _LT_AC_TAGVAR(compiler, $1)=$CC
4414 _LT_CC_BASENAME([$compiler])
4181 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4415 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4182 4416
4183 AC_LIBTOOL_CONFIG($1) 4417 AC_LIBTOOL_CONFIG($1)
4184 4418
4185 AC_LANG_RESTORE 4419 AC_LANG_RESTORE
4205 setopt NO_GLOB_SUBST 4439 setopt NO_GLOB_SUBST
4206 fi 4440 fi
4207 # Now quote all the things that may contain metacharacters while being 4441 # Now quote all the things that may contain metacharacters while being
4208 # careful not to overquote the AC_SUBSTed values. We take copies of the 4442 # careful not to overquote the AC_SUBSTed values. We take copies of the
4209 # variables and quote the copies for generation of the libtool script. 4443 # variables and quote the copies for generation of the libtool script.
4210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 4444 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4211 SED SHELL STRIP \ 4445 SED SHELL STRIP \
4212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4446 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4447 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4214 deplibs_check_method reload_flag reload_cmds need_locks \ 4448 deplibs_check_method reload_flag reload_cmds need_locks \
4215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 4449 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 4545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4312 # General Public License for more details. 4546 # General Public License for more details.
4313 # 4547 #
4314 # You should have received a copy of the GNU General Public License 4548 # You should have received a copy of the GNU General Public License
4315 # along with this program; if not, write to the Free Software 4549 # along with this program; if not, write to the Free Software
4316 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 4550 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4317 # 4551 #
4318 # As a special exception to the GNU General Public License, if you 4552 # As a special exception to the GNU General Public License, if you
4319 # distribute this file as part of a program that contains a 4553 # distribute this file as part of a program that contains a
4320 # configuration script generated by Autoconf, you may include it under 4554 # configuration script generated by Autoconf, you may include it under
4321 # the same distribution terms that you use for the rest of that program. 4555 # the same distribution terms that you use for the rest of that program.
4322 4556
4323 # A sed program that does not truncate output. 4557 # A sed program that does not truncate output.
4324 SED=$lt_SED 4558 SED=$lt_SED
4325 4559
4326 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 4560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4327 Xsed="$SED -e s/^X//" 4561 Xsed="$SED -e 1s/^X//"
4328 4562
4329 # The HP-UX ksh and POSIX shell print the target directory to stdout 4563 # The HP-UX ksh and POSIX shell print the target directory to stdout
4330 # if CDPATH is set. 4564 # if CDPATH is set.
4331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4332 4566
4357 fast_install=$enable_fast_install 4591 fast_install=$enable_fast_install
4358 4592
4359 # The host system. 4593 # The host system.
4360 host_alias=$host_alias 4594 host_alias=$host_alias
4361 host=$host 4595 host=$host
4596 host_os=$host_os
4597
4598 # The build system.
4599 build_alias=$build_alias
4600 build=$build
4601 build_os=$build_os
4362 4602
4363 # An echo program that does not interpret backslashes. 4603 # An echo program that does not interpret backslashes.
4364 echo=$lt_echo 4604 echo=$lt_echo
4365 4605
4366 # The archiver. 4606 # The archiver.
4368 AR_FLAGS=$lt_AR_FLAGS 4608 AR_FLAGS=$lt_AR_FLAGS
4369 4609
4370 # A C compiler. 4610 # A C compiler.
4371 LTCC=$lt_LTCC 4611 LTCC=$lt_LTCC
4372 4612
4613 # LTCC compiler flags.
4614 LTCFLAGS=$lt_LTCFLAGS
4615
4373 # A language-specific compiler. 4616 # A language-specific compiler.
4374 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4617 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4375 4618
4376 # Is the compiler the GNU C compiler? 4619 # Is the compiler the GNU C compiler?
4377 with_gcc=$_LT_AC_TAGVAR(GCC, $1) 4620 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4433 max_cmd_len=$lt_cv_sys_max_cmd_len 4676 max_cmd_len=$lt_cv_sys_max_cmd_len
4434 4677
4435 # Does compiler simultaneously support -c and -o options? 4678 # Does compiler simultaneously support -c and -o options?
4436 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4679 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4437 4680
4438 # Must we lock files when doing compilation ? 4681 # Must we lock files when doing compilation?
4439 need_locks=$lt_need_locks 4682 need_locks=$lt_need_locks
4440 4683
4441 # Do we need the lib prefix for modules? 4684 # Do we need the lib prefix for modules?
4442 need_lib_prefix=$need_lib_prefix 4685 need_lib_prefix=$need_lib_prefix
4443 4686
4707 symcode='[[BCDEGRST]]' 4950 symcode='[[BCDEGRST]]'
4708 4951
4709 # Regexp to match symbols that can be accessed directly from C. 4952 # Regexp to match symbols that can be accessed directly from C.
4710 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4953 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4711 4954
4712 # Transform the above into a raw symbol and a C symbol.
4713 symxfrm='\1 \2\3 \3'
4714
4715 # Transform an extracted symbol line into a proper C declaration 4955 # Transform an extracted symbol line into a proper C declaration
4716 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4717 4957
4718 # Transform an extracted symbol line into symbol name and symbol address 4958 # Transform an extracted symbol line into symbol name and symbol address
4719 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'" 4959 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'"
4731 symcode='[[ABCDEGRST]]' 4971 symcode='[[ABCDEGRST]]'
4732 fi 4972 fi
4733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4973 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4734 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'" 4974 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'"
4735 ;; 4975 ;;
4976 linux*)
4977 if test "$host_cpu" = ia64; then
4978 symcode='[[ABCDGIRSTW]]'
4979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4980 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'"
4981 fi
4982 ;;
4736 irix* | nonstopux*) 4983 irix* | nonstopux*)
4737 symcode='[[BCDEGRST]]' 4984 symcode='[[BCDEGRST]]'
4738 ;; 4985 ;;
4739 osf*) 4986 osf*)
4740 symcode='[[BCDEGQRST]]' 4987 symcode='[[BCDEGQRST]]'
4741 ;; 4988 ;;
4742 solaris* | sysv5*) 4989 solaris*)
4743 symcode='[[BDRT]]' 4990 symcode='[[BDRT]]'
4991 ;;
4992 sco3.2v5*)
4993 symcode='[[DT]]'
4994 ;;
4995 sysv4.2uw2*)
4996 symcode='[[DT]]'
4997 ;;
4998 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4999 symcode='[[ABDT]]'
4744 ;; 5000 ;;
4745 sysv4) 5001 sysv4)
4746 symcode='[[DFNSTU]]' 5002 symcode='[[DFNSTU]]'
4747 ;; 5003 ;;
4748 esac 5004 esac
4762 esac 5018 esac
4763 5019
4764 # Try without a prefix undercore, then with it. 5020 # Try without a prefix undercore, then with it.
4765 for ac_symprfx in "" "_"; do 5021 for ac_symprfx in "" "_"; do
4766 5022
5023 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5024 symxfrm="\\1 $ac_symprfx\\2 \\2"
5025
4767 # Write the raw and C identifiers. 5026 # Write the raw and C identifiers.
4768 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4769 5028
4770 # Check to see that the pipe works correctly. 5029 # Check to see that the pipe works correctly.
4771 pipe_works=no 5030 pipe_works=no
4772 5031
4773 rm -f conftest* 5032 rm -f conftest*
4919 ;; 5178 ;;
4920 *djgpp*) 5179 *djgpp*)
4921 # DJGPP does not support shared libraries at all 5180 # DJGPP does not support shared libraries at all
4922 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5181 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4923 ;; 5182 ;;
5183 interix3*)
5184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5185 # Instead, we relocate shared libraries at runtime.
5186 ;;
4924 sysv4*MP*) 5187 sysv4*MP*)
4925 if test -d /usr/nec; then 5188 if test -d /usr/nec; then
4926 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5189 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4927 fi 5190 fi
4928 ;; 5191 ;;
4929 hpux*) 5192 hpux*)
4930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4931 # not for PA HP-UX. 5194 # not for PA HP-UX.
4932 case "$host_cpu" in 5195 case $host_cpu in
4933 hppa*64*|ia64*) 5196 hppa*64*|ia64*)
4934 ;; 5197 ;;
4935 *) 5198 *)
4936 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5199 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4937 ;; 5200 ;;
4952 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4953 fi 5216 fi
4954 ;; 5217 ;;
4955 chorus*) 5218 chorus*)
4956 case $cc_basename in 5219 case $cc_basename in
4957 cxch68) 5220 cxch68*)
4958 # Green Hills C++ Compiler 5221 # Green Hills C++ Compiler
4959 # _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" 5222 # _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"
4960 ;; 5223 ;;
4961 esac 5224 esac
4962 ;; 5225 ;;
4963 darwin*) 5226 darwin*)
4964 # PIC is the default on this platform 5227 # PIC is the default on this platform
4965 # Common symbols not allowed in MH_DYLIB files 5228 # Common symbols not allowed in MH_DYLIB files
4966 case "$cc_basename" in 5229 case $cc_basename in
4967 xlc*) 5230 xlc*)
4968 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5231 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4969 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5232 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4970 ;; 5233 ;;
4971 esac 5234 esac
4972 ;; 5235 ;;
4973 dgux*) 5236 dgux*)
4974 case $cc_basename in 5237 case $cc_basename in
4975 ec++) 5238 ec++*)
4976 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5239 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4977 ;; 5240 ;;
4978 ghcx) 5241 ghcx*)
4979 # Green Hills C++ Compiler 5242 # Green Hills C++ Compiler
4980 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5243 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4981 ;; 5244 ;;
4982 *) 5245 *)
4983 ;; 5246 ;;
4984 esac 5247 esac
4985 ;; 5248 ;;
4986 freebsd* | kfreebsd*-gnu) 5249 freebsd* | kfreebsd*-gnu | dragonfly*)
4987 # FreeBSD uses GNU C++ 5250 # FreeBSD uses GNU C++
4988 ;; 5251 ;;
4989 hpux9* | hpux10* | hpux11*) 5252 hpux9* | hpux10* | hpux11*)
4990 case $cc_basename in 5253 case $cc_basename in
4991 CC) 5254 CC*)
4992 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5255 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4993 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5256 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4994 if test "$host_cpu" != ia64; then 5257 if test "$host_cpu" != ia64; then
4995 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5258 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4996 fi 5259 fi
4997 ;; 5260 ;;
4998 aCC) 5261 aCC*)
4999 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5262 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5000 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5263 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5001 case "$host_cpu" in 5264 case $host_cpu in
5002 hppa*64*|ia64*) 5265 hppa*64*|ia64*)
5003 # +Z the default 5266 # +Z the default
5004 ;; 5267 ;;
5005 *) 5268 *)
5006 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5269 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5009 ;; 5272 ;;
5010 *) 5273 *)
5011 ;; 5274 ;;
5012 esac 5275 esac
5013 ;; 5276 ;;
5277 interix*)
5278 # This is c89, which is MS Visual C++ (no shared libs)
5279 # Anyone wants to do a port?
5280 ;;
5014 irix5* | irix6* | nonstopux*) 5281 irix5* | irix6* | nonstopux*)
5015 case $cc_basename in 5282 case $cc_basename in
5016 CC) 5283 CC*)
5017 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5284 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5018 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5285 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5019 # CC pic flag -KPIC is the default. 5286 # CC pic flag -KPIC is the default.
5020 ;; 5287 ;;
5021 *) 5288 *)
5022 ;; 5289 ;;
5023 esac 5290 esac
5024 ;; 5291 ;;
5025 linux*) 5292 linux*)
5026 case $cc_basename in 5293 case $cc_basename in
5027 KCC) 5294 KCC*)
5028 # KAI C++ Compiler 5295 # KAI C++ Compiler
5029 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5296 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5297 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5031 ;; 5298 ;;
5032 icpc) 5299 icpc* | ecpc*)
5033 # Intel C++ 5300 # Intel C++
5034 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5301 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5035 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5302 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5036 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5303 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5037 ;; 5304 ;;
5038 cxx) 5305 pgCC*)
5306 # Portland Group C++ compiler.
5307 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5308 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5309 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5310 ;;
5311 cxx*)
5039 # Compaq C++ 5312 # Compaq C++
5040 # Make sure the PIC flag is empty. It appears that all Alpha 5313 # Make sure the PIC flag is empty. It appears that all Alpha
5041 # Linux and Compaq Tru64 Unix objects are PIC. 5314 # Linux and Compaq Tru64 Unix objects are PIC.
5042 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5315 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5043 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5316 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5050 ;; 5323 ;;
5051 m88k*) 5324 m88k*)
5052 ;; 5325 ;;
5053 mvs*) 5326 mvs*)
5054 case $cc_basename in 5327 case $cc_basename in
5055 cxx) 5328 cxx*)
5056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5329 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5057 ;; 5330 ;;
5058 *) 5331 *)
5059 ;; 5332 ;;
5060 esac 5333 esac
5061 ;; 5334 ;;
5062 netbsd*) 5335 netbsd*)
5063 ;; 5336 ;;
5064 osf3* | osf4* | osf5*) 5337 osf3* | osf4* | osf5*)
5065 case $cc_basename in 5338 case $cc_basename in
5066 KCC) 5339 KCC*)
5067 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5340 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5068 ;; 5341 ;;
5069 RCC) 5342 RCC*)
5070 # Rational C++ 2.4.1 5343 # Rational C++ 2.4.1
5071 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5344 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5072 ;; 5345 ;;
5073 cxx) 5346 cxx*)
5074 # Digital/Compaq C++ 5347 # Digital/Compaq C++
5075 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5348 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5076 # Make sure the PIC flag is empty. It appears that all Alpha 5349 # Make sure the PIC flag is empty. It appears that all Alpha
5077 # Linux and Compaq Tru64 Unix objects are PIC. 5350 # Linux and Compaq Tru64 Unix objects are PIC.
5078 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5351 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5082 ;; 5355 ;;
5083 esac 5356 esac
5084 ;; 5357 ;;
5085 psos*) 5358 psos*)
5086 ;; 5359 ;;
5087 sco*)
5088 case $cc_basename in
5089 CC)
5090 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5091 ;;
5092 *)
5093 ;;
5094 esac
5095 ;;
5096 solaris*) 5360 solaris*)
5097 case $cc_basename in 5361 case $cc_basename in
5098 CC) 5362 CC*)
5099 # Sun C++ 4.2, 5.x and Centerline C++ 5363 # Sun C++ 4.2, 5.x and Centerline C++
5100 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5364 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5101 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5365 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5102 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5366 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5103 ;; 5367 ;;
5104 gcx) 5368 gcx*)
5105 # Green Hills C++ Compiler 5369 # Green Hills C++ Compiler
5106 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5370 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5107 ;; 5371 ;;
5108 *) 5372 *)
5109 ;; 5373 ;;
5110 esac 5374 esac
5111 ;; 5375 ;;
5112 sunos4*) 5376 sunos4*)
5113 case $cc_basename in 5377 case $cc_basename in
5114 CC) 5378 CC*)
5115 # Sun C++ 4.x 5379 # Sun C++ 4.x
5116 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5380 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5117 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5381 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5118 ;; 5382 ;;
5119 lcc) 5383 lcc*)
5120 # Lucid 5384 # Lucid
5121 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5385 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5122 ;; 5386 ;;
5123 *) 5387 *)
5124 ;; 5388 ;;
5125 esac 5389 esac
5126 ;; 5390 ;;
5127 tandem*) 5391 tandem*)
5128 case $cc_basename in 5392 case $cc_basename in
5129 NCC) 5393 NCC*)
5130 # NonStop-UX NCC 3.20 5394 # NonStop-UX NCC 3.20
5131 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5395 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5132 ;; 5396 ;;
5133 *) 5397 *)
5134 ;; 5398 ;;
5135 esac 5399 esac
5136 ;; 5400 ;;
5137 unixware*) 5401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5402 case $cc_basename in
5403 CC*)
5404 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5405 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5406 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5407 ;;
5408 esac
5138 ;; 5409 ;;
5139 vxworks*) 5410 vxworks*)
5140 ;; 5411 ;;
5141 *) 5412 *)
5142 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5413 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5179 # PIC is the default on this platform 5450 # PIC is the default on this platform
5180 # Common symbols not allowed in MH_DYLIB files 5451 # Common symbols not allowed in MH_DYLIB files
5181 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5452 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5182 ;; 5453 ;;
5183 5454
5455 interix3*)
5456 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5457 # Instead, we relocate shared libraries at runtime.
5458 ;;
5459
5184 msdosdjgpp*) 5460 msdosdjgpp*)
5185 # Just because we use GCC doesn't mean we suddenly get shared libraries 5461 # Just because we use GCC doesn't mean we suddenly get shared libraries
5186 # on systems that don't support them. 5462 # on systems that don't support them.
5187 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5463 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5188 enable_shared=no 5464 enable_shared=no
5195 ;; 5471 ;;
5196 5472
5197 hpux*) 5473 hpux*)
5198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5199 # not for PA HP-UX. 5475 # not for PA HP-UX.
5200 case "$host_cpu" in 5476 case $host_cpu in
5201 hppa*64*|ia64*) 5477 hppa*64*|ia64*)
5202 # +Z the default 5478 # +Z the default
5203 ;; 5479 ;;
5204 *) 5480 *)
5205 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5481 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5224 fi 5500 fi
5225 ;; 5501 ;;
5226 darwin*) 5502 darwin*)
5227 # PIC is the default on this platform 5503 # PIC is the default on this platform
5228 # Common symbols not allowed in MH_DYLIB files 5504 # Common symbols not allowed in MH_DYLIB files
5229 case "$cc_basename" in 5505 case $cc_basename in
5230 xlc*) 5506 xlc*)
5231 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5507 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5232 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5508 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5233 ;; 5509 ;;
5234 esac 5510 esac
5242 5518
5243 hpux9* | hpux10* | hpux11*) 5519 hpux9* | hpux10* | hpux11*)
5244 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5520 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5246 # not for PA HP-UX. 5522 # not for PA HP-UX.
5247 case "$host_cpu" in 5523 case $host_cpu in
5248 hppa*64*|ia64*) 5524 hppa*64*|ia64*)
5249 # +Z the default 5525 # +Z the default
5250 ;; 5526 ;;
5251 *) 5527 *)
5252 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5528 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5266 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5542 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5267 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5543 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5268 ;; 5544 ;;
5269 5545
5270 linux*) 5546 linux*)
5271 case $CC in 5547 case $cc_basename in
5272 icc* | ecc*) 5548 icc* | ecc*)
5273 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5549 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5274 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5550 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5275 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5551 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5552 ;;
5553 pgcc* | pgf77* | pgf90* | pgf95*)
5554 # Portland Group compilers (*not* the Pentium gcc compiler,
5555 # which looks to be a dead project)
5556 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5557 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5558 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5276 ;; 5559 ;;
5277 ccc*) 5560 ccc*)
5278 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5561 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5279 # All Alpha code is PIC. 5562 # All Alpha code is PIC.
5280 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5563 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5286 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5569 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5287 # All OSF/1 code is PIC. 5570 # All OSF/1 code is PIC.
5288 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5571 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5289 ;; 5572 ;;
5290 5573
5291 sco3.2v5*)
5292 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5293 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5294 ;;
5295
5296 solaris*) 5574 solaris*)
5297 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5298 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5575 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5299 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5576 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5577 case $cc_basename in
5578 f77* | f90* | f95*)
5579 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5580 *)
5581 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5582 esac
5300 ;; 5583 ;;
5301 5584
5302 sunos4*) 5585 sunos4*)
5303 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5586 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5304 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5587 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5305 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5588 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5306 ;; 5589 ;;
5307 5590
5308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5591 sysv4 | sysv4.2uw2* | sysv4.3*)
5309 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5592 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5310 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5593 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5311 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5594 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5312 ;; 5595 ;;
5313 5596
5314 sysv4*MP*) 5597 sysv4*MP*)
5315 if test -d /usr/nec ;then 5598 if test -d /usr/nec ;then
5316 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5599 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5317 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5600 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5318 fi 5601 fi
5602 ;;
5603
5604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5605 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5606 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5607 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5608 ;;
5609
5610 unicos*)
5611 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5612 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5319 ;; 5613 ;;
5320 5614
5321 uts4*) 5615 uts4*)
5322 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5616 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5323 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5617 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5343 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5637 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5344 esac], 5638 esac],
5345 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5639 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5346 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5640 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5347 fi 5641 fi
5348 case "$host_os" in 5642 case $host_os in
5349 # For platforms which do not support PIC, -DPIC is meaningless: 5643 # For platforms which do not support PIC, -DPIC is meaningless:
5350 *djgpp*) 5644 *djgpp*)
5351 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5645 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5352 ;; 5646 ;;
5353 *) 5647 *)
5354 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 5648 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5355 ;; 5649 ;;
5356 esac 5650 esac
5651
5652 #
5653 # Check to make sure the static flag actually works.
5654 #
5655 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5656 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5657 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5658 $lt_tmp_static_flag,
5659 [],
5660 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5357 ]) 5661 ])
5358 5662
5359 5663
5360 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 5664 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5361 # ------------------------------------ 5665 # ------------------------------------
5376 ;; 5680 ;;
5377 pw32*) 5681 pw32*)
5378 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5682 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5379 ;; 5683 ;;
5380 cygwin* | mingw*) 5684 cygwin* | mingw*)
5381 _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' 5685 _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'
5382 ;; 5686 ;;
5383 *) 5687 *)
5384 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5688 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5385 ;; 5689 ;;
5386 esac 5690 esac
5419 # platforms (ab)use it in PIC code, but their linkers get confused if 5723 # platforms (ab)use it in PIC code, but their linkers get confused if
5420 # the symbol is explicitly referenced. Since portable code cannot 5724 # the symbol is explicitly referenced. Since portable code cannot
5421 # rely on this symbol name, it's probably fine to never include it in 5725 # rely on this symbol name, it's probably fine to never include it in
5422 # preloaded symbol tables. 5726 # preloaded symbol tables.
5423 extract_expsyms_cmds= 5727 extract_expsyms_cmds=
5424 5728 # Just being paranoid about ensuring that cc_basename is set.
5729 _LT_CC_BASENAME([$compiler])
5425 case $host_os in 5730 case $host_os in
5426 cygwin* | mingw* | pw32*) 5731 cygwin* | mingw* | pw32*)
5427 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5732 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5428 # When not using gcc, we currently assume that we are using 5733 # When not using gcc, we currently assume that we are using
5429 # Microsoft Visual C++. 5734 # Microsoft Visual C++.
5430 if test "$GCC" != yes; then 5735 if test "$GCC" != yes; then
5431 with_gnu_ld=no 5736 with_gnu_ld=no
5432 fi 5737 fi
5433 ;; 5738 ;;
5739 interix*)
5740 # we just hope/assume this is gcc and not c89 (= MSVC++)
5741 with_gnu_ld=yes
5742 ;;
5434 openbsd*) 5743 openbsd*)
5435 with_gnu_ld=no 5744 with_gnu_ld=no
5436 ;; 5745 ;;
5437 esac 5746 esac
5438 5747
5439 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 5748 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5440 if test "$with_gnu_ld" = yes; then 5749 if test "$with_gnu_ld" = yes; then
5441 # If archive_cmds runs LD, not CC, wlarc should be empty 5750 # If archive_cmds runs LD, not CC, wlarc should be empty
5442 wlarc='${wl}' 5751 wlarc='${wl}'
5752
5753 # Set some defaults for GNU ld with shared library support. These
5754 # are reset later if shared libraries are not supported. Putting them
5755 # here allows them to be overridden if necessary.
5756 runpath_var=LD_RUN_PATH
5757 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5758 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5759 # ancient GNU ld didn't support --whole-archive et. al.
5760 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5761 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5762 else
5763 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5764 fi
5765 supports_anon_versioning=no
5766 case `$LD -v 2>/dev/null` in
5767 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5768 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5769 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5770 *\ 2.11.*) ;; # other 2.11 versions
5771 *) supports_anon_versioning=yes ;;
5772 esac
5443 5773
5444 # See if GNU ld supports shared libraries. 5774 # See if GNU ld supports shared libraries.
5445 case $host_os in 5775 case $host_os in
5446 aix3* | aix4* | aix5*) 5776 aix3* | aix4* | aix5*)
5447 # On AIX/PPC, the GNU linker is very broken 5777 # On AIX/PPC, the GNU linker is very broken
5489 # as there is no search path for DLLs. 5819 # as there is no search path for DLLs.
5490 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5820 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5491 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5821 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5492 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5822 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5493 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5823 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5494 _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' 5824 _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'
5495 5825
5496 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5826 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5497 ## _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5827 _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'
5498 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
5499 # If the export-symbols file already is a .def file (1st line 5828 # If the export-symbols file already is a .def file (1st line
5500 # is EXPORTS), use it as is; otherwise, prepend... 5829 # is EXPORTS), use it as is; otherwise, prepend...
5501 ## _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5502 ## cp $export_symbols $output_objdir/$soname.def;
5503 ## else
5504 ## echo EXPORTS > $output_objdir/$soname.def;
5505 ## cat $export_symbols >> $output_objdir/$soname.def;
5506 ## fi~
5507 ## $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5508 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5830 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5509 cp $export_symbols $output_objdir/$soname.def; 5831 cp $export_symbols $output_objdir/$soname.def;
5510 else 5832 else
5511 echo EXPORTS > $output_objdir/$soname.def; 5833 echo EXPORTS > $output_objdir/$soname.def;
5512 cat $export_symbols >> $output_objdir/$soname.def; 5834 cat $export_symbols >> $output_objdir/$soname.def;
5513 fi~ 5835 fi~
5514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 5836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5515 else 5837 else
5516 ld_shlibs=no 5838 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5839 fi
5840 ;;
5841
5842 interix3*)
5843 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5844 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5845 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5846 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5848 # Instead, shared libraries are loaded at an image base (0x10000000 by
5849 # default) and relocated if they conflict, which is a slow very memory
5850 # consuming and fragmenting process. To avoid this, we pick a random,
5851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5852 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5853 _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'
5854 _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'
5855 ;;
5856
5857 linux*)
5858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5859 tmp_addflag=
5860 case $cc_basename,$host_cpu in
5861 pgcc*) # Portland Group C compiler
5862 _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'
5863 tmp_addflag=' $pic_flag'
5864 ;;
5865 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5866 _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'
5867 tmp_addflag=' $pic_flag -Mnomain' ;;
5868 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5869 tmp_addflag=' -i_dynamic' ;;
5870 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5871 tmp_addflag=' -i_dynamic -nofor_main' ;;
5872 ifc* | ifort*) # Intel Fortran compiler
5873 tmp_addflag=' -nofor_main' ;;
5874 esac
5875 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5876
5877 if test $supports_anon_versioning = yes; then
5878 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5880 $echo "local: *; };" >> $output_objdir/$libname.ver~
5881 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5882 fi
5883 else
5884 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5517 fi 5885 fi
5518 ;; 5886 ;;
5519 5887
5520 netbsd*) 5888 netbsd*)
5521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5525 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5893 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5526 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5894 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5527 fi 5895 fi
5528 ;; 5896 ;;
5529 5897
5530 solaris* | sysv5*) 5898 solaris*)
5531 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5899 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5532 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5900 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5533 cat <<EOF 1>&2 5901 cat <<EOF 1>&2
5534 5902
5535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 5903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5546 else 5914 else
5547 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5915 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5548 fi 5916 fi
5549 ;; 5917 ;;
5550 5918
5919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5920 case `$LD -v 2>&1` in
5921 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5922 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5923 cat <<_LT_EOF 1>&2
5924
5925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5926 *** reliably create shared libraries on SCO systems. Therefore, libtool
5927 *** is disabling shared libraries support. We urge you to upgrade GNU
5928 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5929 *** your PATH or compiler configuration so that the native linker is
5930 *** used, and then restart.
5931
5932 _LT_EOF
5933 ;;
5934 *)
5935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5936 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5937 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5938 _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'
5939 else
5940 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5941 fi
5942 ;;
5943 esac
5944 ;;
5945
5551 sunos4*) 5946 sunos4*)
5552 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5947 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5553 wlarc= 5948 wlarc=
5554 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5949 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5555 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5950 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5556 ;; 5951 ;;
5557
5558 linux*)
5559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5560 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5561 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5562 supports_anon_versioning=no
5563 case `$LD -v 2>/dev/null` in
5564 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5567 *\ 2.11.*) ;; # other 2.11 versions
5568 *) supports_anon_versioning=yes ;;
5569 esac
5570 if test $supports_anon_versioning = yes; then
5571 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5573 $echo "local: *; };" >> $output_objdir/$libname.ver~
5574 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5575 else
5576 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5577 fi
5578 else
5579 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5580 fi
5581 ;;
5582 5952
5583 *) 5953 *)
5584 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5585 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5955 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5586 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5956 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5588 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5958 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5589 fi 5959 fi
5590 ;; 5960 ;;
5591 esac 5961 esac
5592 5962
5593 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 5963 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5594 runpath_var=LD_RUN_PATH 5964 runpath_var=
5595 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5965 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5596 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5966 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5597 # ancient GNU ld didn't support --whole-archive et. al. 5967 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5598 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5599 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5600 else
5601 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5602 fi
5603 fi 5968 fi
5604 else 5969 else
5605 # PORTME fill in a description of your system's linker (not GNU ld) 5970 # PORTME fill in a description of your system's linker (not GNU ld)
5606 case $host_os in 5971 case $host_os in
5607 aix3*) 5972 aix3*)
5609 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5974 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5610 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 5975 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5611 # Note: this linker hardcodes the directories in LIBPATH if there 5976 # Note: this linker hardcodes the directories in LIBPATH if there
5612 # are no directories specified by -L. 5977 # are no directories specified by -L.
5613 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5978 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5614 if test "$GCC" = yes && test -z "$link_static_flag"; then 5979 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5615 # Neither direct hardcoding nor static linking is supported with a 5980 # Neither direct hardcoding nor static linking is supported with a
5616 # broken collect2. 5981 # broken collect2.
5617 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5982 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5618 fi 5983 fi
5619 ;; 5984 ;;
5643 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6008 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5644 aix_use_runtimelinking=yes 6009 aix_use_runtimelinking=yes
5645 break 6010 break
5646 fi 6011 fi
5647 done 6012 done
6013 ;;
5648 esac 6014 esac
5649 6015
5650 exp_sym_flag='-bexport' 6016 exp_sym_flag='-bexport'
5651 no_entry_flag='-bnoentry' 6017 no_entry_flag='-bnoentry'
5652 fi 6018 fi
5661 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6027 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5662 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6028 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5663 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6029 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5664 6030
5665 if test "$GCC" = yes; then 6031 if test "$GCC" = yes; then
5666 case $host_os in aix4.[012]|aix4.[012].*) 6032 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5667 # We only want to do this on AIX 4.2 and lower, the check 6033 # We only want to do this on AIX 4.2 and lower, the check
5668 # below for broken collect2 doesn't work under 4.3+ 6034 # below for broken collect2 doesn't work under 4.3+
5669 collect2name=`${CC} -print-prog-name=collect2` 6035 collect2name=`${CC} -print-prog-name=collect2`
5670 if test -f "$collect2name" && \ 6036 if test -f "$collect2name" && \
5671 strings "$collect2name" | grep resolve_lib_name >/dev/null 6037 strings "$collect2name" | grep resolve_lib_name >/dev/null
5680 # to unsupported forces relinking 6046 # to unsupported forces relinking
5681 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6047 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5682 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6048 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5683 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 6049 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5684 fi 6050 fi
6051 ;;
5685 esac 6052 esac
5686 shared_flag='-shared' 6053 shared_flag='-shared'
6054 if test "$aix_use_runtimelinking" = yes; then
6055 shared_flag="$shared_flag "'${wl}-G'
6056 fi
5687 else 6057 else
5688 # not using gcc 6058 # not using gcc
5689 if test "$host_cpu" = ia64; then 6059 if test "$host_cpu" = ia64; then
5690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5691 # chokes on -Wl,-G. The following line is correct: 6061 # chokes on -Wl,-G. The following line is correct:
5692 shared_flag='-G' 6062 shared_flag='-G'
5693 else 6063 else
5694 if test "$aix_use_runtimelinking" = yes; then 6064 if test "$aix_use_runtimelinking" = yes; then
5695 shared_flag='${wl}-G' 6065 shared_flag='${wl}-G'
5696 else 6066 else
5697 shared_flag='${wl}-bM:SRE' 6067 shared_flag='${wl}-bM:SRE'
5698 fi 6068 fi
5699 fi 6069 fi
5700 fi 6070 fi
5701 6071
5702 # It seems that -bexpall does not export symbols beginning with 6072 # It seems that -bexpall does not export symbols beginning with
5703 # underscore (_), so it is better to generate a list of symbols to export. 6073 # underscore (_), so it is better to generate a list of symbols to export.
5707 # -berok will link without error, but may produce a broken library. 6077 # -berok will link without error, but may produce a broken library.
5708 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 6078 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5709 # Determine the default libpath from the value encoded in an empty executable. 6079 # Determine the default libpath from the value encoded in an empty executable.
5710 _LT_AC_SYS_LIBPATH_AIX 6080 _LT_AC_SYS_LIBPATH_AIX
5711 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6081 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5712 _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" 6082 _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"
5713 else 6083 else
5714 if test "$host_cpu" = ia64; then 6084 if test "$host_cpu" = ia64; then
5715 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6085 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5716 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6086 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5717 _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" 6087 _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"
5718 else 6088 else
5719 # Determine the default libpath from the value encoded in an empty executable. 6089 # Determine the default libpath from the value encoded in an empty executable.
5720 _LT_AC_SYS_LIBPATH_AIX 6090 _LT_AC_SYS_LIBPATH_AIX
5721 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6091 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5722 # Warning - without using the other run time loading flags, 6092 # Warning - without using the other run time loading flags,
5723 # -berok will link without error, but may produce a broken library. 6093 # -berok will link without error, but may produce a broken library.
5724 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6094 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5725 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6095 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5726 # -bexpall does not export symbols beginning with underscore (_)
5727 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5728 # Exported symbols can be pulled into shared objects from archives 6096 # Exported symbols can be pulled into shared objects from archives
5729 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 6097 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5730 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6098 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5731 # This is similar to how AIX traditionally builds it's shared libraries. 6099 # This is similar to how AIX traditionally builds its shared libraries.
5732 _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' 6100 _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'
5733 fi 6101 fi
5734 fi 6102 fi
5735 ;; 6103 ;;
5736 6104
5737 amigaos*) 6105 amigaos*)
5761 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6129 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5762 # The linker will automatically build a .lib file if we build a DLL. 6130 # The linker will automatically build a .lib file if we build a DLL.
5763 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 6131 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5764 # FIXME: Should let the user specify the lib program. 6132 # FIXME: Should let the user specify the lib program.
5765 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 6133 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5766 fix_srcfile_path='`cygpath -w "$srcfile"`' 6134 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5767 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6135 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5768 ;; 6136 ;;
5769 6137
5770 darwin* | rhapsody*) 6138 darwin* | rhapsody*)
5771 case "$host_os" in 6139 case $host_os in
5772 rhapsody* | darwin1.[[012]]) 6140 rhapsody* | darwin1.[[012]])
5773 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 6141 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5774 ;; 6142 ;;
5775 *) # Darwin 1.3 on 6143 *) # Darwin 1.3 on
5776 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6144 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5795 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6163 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5796 if test "$GCC" = yes ; then 6164 if test "$GCC" = yes ; then
5797 output_verbose_link_cmd='echo' 6165 output_verbose_link_cmd='echo'
5798 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6166 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5799 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6167 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5800 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5801 _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}' 6169 _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}'
5802 _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}' 6170 _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}'
5803 else 6171 else
5804 case "$cc_basename" in 6172 case $cc_basename in
5805 xlc*) 6173 xlc*)
5806 output_verbose_link_cmd='echo' 6174 output_verbose_link_cmd='echo'
5807 _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' 6175 _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'
5808 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6176 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5810 _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}' 6178 _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}'
5811 _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}' 6179 _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}'
5812 ;; 6180 ;;
5813 *) 6181 *)
5814 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6182 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5845 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6213 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5846 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6214 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5847 ;; 6215 ;;
5848 6216
5849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5850 freebsd* | kfreebsd*-gnu) 6218 freebsd* | kfreebsd*-gnu | dragonfly*)
5851 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6219 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5852 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6220 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5853 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6221 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5854 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6222 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5855 ;; 6223 ;;
5868 # but as the default location of the library. 6236 # but as the default location of the library.
5869 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6237 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5870 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6238 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5871 ;; 6239 ;;
5872 6240
5873 hpux10* | hpux11*) 6241 hpux10*)
5874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5875 case "$host_cpu" in 6243 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5876 hppa*64*|ia64*) 6244 else
6245 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6246 fi
6247 if test "$with_gnu_ld" = no; then
6248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6249 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6250
6251 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6252 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6253
6254 # hardcode_minus_L: Not really in the search PATH,
6255 # but as the default location of the library.
6256 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6257 fi
6258 ;;
6259
6260 hpux11*)
6261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6262 case $host_cpu in
6263 hppa*64*)
5877 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6264 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6265 ;;
6266 ia64*)
6267 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5878 ;; 6268 ;;
5879 *) 6269 *)
5880 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6270 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5881 ;; 6271 ;;
5882 esac 6272 esac
5883 else 6273 else
5884 case "$host_cpu" in 6274 case $host_cpu in
5885 hppa*64*|ia64*) 6275 hppa*64*)
5886 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6276 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6277 ;;
6278 ia64*)
6279 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5887 ;; 6280 ;;
5888 *) 6281 *)
5889 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6282 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5890 ;; 6283 ;;
5891 esac 6284 esac
5892 fi 6285 fi
5893 if test "$with_gnu_ld" = no; then 6286 if test "$with_gnu_ld" = no; then
5894 case "$host_cpu" in 6287 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5895 hppa*64*) 6288 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5896 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6289
6290 case $host_cpu in
6291 hppa*64*|ia64*)
5897 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6292 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5898 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5899 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6293 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5900 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6294 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5901 ;; 6295 ;;
5902 ia64*)
5903 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5904 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5905 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5906
5907 # hardcode_minus_L: Not really in the search PATH,
5908 # but as the default location of the library.
5909 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5910 ;;
5911 *) 6296 *)
5912 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5913 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5914 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6297 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5915 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6298 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5916 6299
5917 # hardcode_minus_L: Not really in the search PATH, 6300 # hardcode_minus_L: Not really in the search PATH,
5918 # but as the default location of the library. 6301 # but as the default location of the library.
6002 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6385 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6003 else 6386 else
6004 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6387 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6005 _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' 6388 _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'
6006 _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~ 6389 _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~
6007 $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' 6390 $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'
6008 6391
6009 # Both c and cxx compiler support -rpath directly 6392 # Both c and cxx compiler support -rpath directly
6010 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6393 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6011 fi 6394 fi
6012 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6395 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6013 ;; 6396 ;;
6014 6397
6015 sco3.2v5*)
6016 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6017 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6018 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6019 runpath_var=LD_RUN_PATH
6020 hardcode_runpath_var=yes
6021 ;;
6022
6023 solaris*) 6398 solaris*)
6024 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6399 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6025 if test "$GCC" = yes; then 6400 if test "$GCC" = yes; then
6401 wlarc='${wl}'
6026 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6402 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6027 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6403 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6028 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6404 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6029 else 6405 else
6406 wlarc=''
6030 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6407 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6031 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6408 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6032 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6409 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6033 fi 6410 fi
6034 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6411 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6035 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6412 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6036 case $host_os in 6413 case $host_os in
6037 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6414 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6038 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6415 *)
6039 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6416 # The compiler driver will combine linker options so we
6417 # cannot just pass the convience library names through
6418 # without $wl, iff we do not link with $LD.
6419 # Luckily, gcc supports the same syntax we need for Sun Studio.
6420 # Supported since Solaris 2.6 (maybe 2.5.1?)
6421 case $wlarc in
6422 '')
6423 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6424 *)
6425 _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' ;;
6426 esac ;;
6040 esac 6427 esac
6041 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6428 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6042 ;; 6429 ;;
6043 6430
6044 sunos4*) 6431 sunos4*)
6091 hardcode_runpath_var=yes 6478 hardcode_runpath_var=yes
6092 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6479 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6093 fi 6480 fi
6094 ;; 6481 ;;
6095 6482
6096 sysv4.2uw2*) 6483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6097 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6484 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6098 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6485 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6099 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6100 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6101 hardcode_runpath_var=yes
6102 runpath_var=LD_RUN_PATH
6103 ;;
6104
6105 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6106 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6107 if test "$GCC" = yes; then
6108 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6109 else
6110 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6111 fi
6112 runpath_var='LD_RUN_PATH'
6113 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6114 ;;
6115
6116 sysv5*)
6117 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6118 # $CC -shared without GNU ld will not create a library from C++
6119 # object files and a static libstdc++, better avoid it by now
6120 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6121 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6122 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6123 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6124 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6486 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6125 runpath_var='LD_RUN_PATH' 6487 runpath_var='LD_RUN_PATH'
6488
6489 if test "$GCC" = yes; then
6490 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6491 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6492 else
6493 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6494 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6495 fi
6496 ;;
6497
6498 sysv5* | sco3.2v5* | sco5v6*)
6499 # Note: We can NOT use -z defs as we might desire, because we do not
6500 # link with -lc, and that would cause any symbols used from libc to
6501 # always be unresolved, which means just about no library would
6502 # ever link correctly. If we're not using GNU ld we use -z text
6503 # though, which does catch some bad symbols but isn't as heavy-handed
6504 # as -z defs.
6505 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6506 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6507 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6508 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6509 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6510 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6511 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6512 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6513 runpath_var='LD_RUN_PATH'
6514
6515 if test "$GCC" = yes; then
6516 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6517 _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'
6518 else
6519 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6520 _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'
6521 fi
6126 ;; 6522 ;;
6127 6523
6128 uts4*) 6524 uts4*)
6129 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6525 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6130 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6526 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6137 esac 6533 esac
6138 fi 6534 fi
6139 ]) 6535 ])
6140 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6536 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6141 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6537 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6142
6143 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6144 if test "$GCC" = yes; then
6145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6146 fi
6147 6538
6148 # 6539 #
6149 # Do we need to explicitly link libc? 6540 # Do we need to explicitly link libc?
6150 # 6541 #
6151 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 6542 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6170 soname=conftest 6561 soname=conftest
6171 lib=conftest 6562 lib=conftest
6172 libobjs=conftest.$ac_objext 6563 libobjs=conftest.$ac_objext
6173 deplibs= 6564 deplibs=
6174 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6565 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6566 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6175 compiler_flags=-v 6567 compiler_flags=-v
6176 linker_flags=-v 6568 linker_flags=-v
6177 verstring= 6569 verstring=
6178 output_objdir=. 6570 output_objdir=.
6179 libname=conftest 6571 libname=conftest
6297 lt_ac_max=0 6689 lt_ac_max=0
6298 lt_ac_count=0 6690 lt_ac_count=0
6299 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 6691 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6300 # along with /bin/sed that truncates output. 6692 # along with /bin/sed that truncates output.
6301 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6693 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6302 test ! -f $lt_ac_sed && break 6694 test ! -f $lt_ac_sed && continue
6303 cat /dev/null > conftest.in 6695 cat /dev/null > conftest.in
6304 lt_ac_count=0 6696 lt_ac_count=0
6305 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6697 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6306 # Check for GNU sed and select it if it is found. 6698 # Check for GNU sed and select it if it is found.
6307 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6699 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then