|
Lines 1-28
Link Here
|
| 1 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 2 |
## Copyright 1996, 1997, 1998, 1999, 2000, 2001 |
2 |
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 |
| 3 |
## Free Software Foundation, Inc. |
3 |
## Free Software Foundation, Inc. |
| 4 |
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
4 |
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 5 |
## |
5 |
## |
| 6 |
## This program is free software; you can redistribute it and/or modify |
6 |
## This file is free software; the Free Software Foundation gives |
| 7 |
## it under the terms of the GNU General Public License as published by |
7 |
## unlimited permission to copy and/or distribute it, with or without |
| 8 |
## the Free Software Foundation; either version 2 of the License, or |
8 |
## modifications, as long as this notice is preserved. |
| 9 |
## (at your option) any later version. |
|
|
| 10 |
## |
| 11 |
## This program is distributed in the hope that it will be useful, but |
| 12 |
## WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
## General Public License for more details. |
| 15 |
## |
| 16 |
## You should have received a copy of the GNU General Public License |
| 17 |
## along with this program; if not, write to the Free Software |
| 18 |
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19 |
## |
| 20 |
## As a special exception to the GNU General Public License, if you |
| 21 |
## distribute this file as part of a program that contains a |
| 22 |
## configuration script generated by Autoconf, you may include it under |
| 23 |
## the same distribution terms that you use for the rest of that program. |
| 24 |
|
9 |
|
| 25 |
# serial 47 AC_PROG_LIBTOOL |
10 |
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL |
| 26 |
|
11 |
|
| 27 |
|
12 |
|
| 28 |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
13 |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
|
Lines 82-88
Link Here
|
| 82 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
67 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 83 |
|
68 |
|
| 84 |
# Always use our own libtool. |
69 |
# Always use our own libtool. |
| 85 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' |
70 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 86 |
AC_SUBST(LIBTOOL)dnl |
71 |
AC_SUBST(LIBTOOL)dnl |
| 87 |
|
72 |
|
| 88 |
# Prevent multiple expansion |
73 |
# Prevent multiple expansion |
|
Lines 132-138
Link Here
|
| 132 |
|
117 |
|
| 133 |
# Sed substitution that helps us do robust quoting. It backslashifies |
118 |
# Sed substitution that helps us do robust quoting. It backslashifies |
| 134 |
# metacharacters that are still active within double-quoted strings. |
119 |
# metacharacters that are still active within double-quoted strings. |
| 135 |
Xsed='sed -e s/^X//' |
120 |
Xsed='sed -e 1s/^X//' |
| 136 |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
121 |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| 137 |
|
122 |
|
| 138 |
# Same as above, but do not quote variable references. |
123 |
# Same as above, but do not quote variable references. |
|
Lines 152-158
Link Here
|
| 152 |
default_ofile=libtool |
137 |
default_ofile=libtool |
| 153 |
can_build_shared=yes |
138 |
can_build_shared=yes |
| 154 |
|
139 |
|
| 155 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
140 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
| 156 |
# which needs '.lib'). |
141 |
# which needs '.lib'). |
| 157 |
libext=a |
142 |
libext=a |
| 158 |
ltmain="$ac_aux_dir/ltmain.sh" |
143 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
Lines 172-177
Link Here
|
| 172 |
test -z "$AS" && AS=as |
157 |
test -z "$AS" && AS=as |
| 173 |
test -z "$CC" && CC=cc |
158 |
test -z "$CC" && CC=cc |
| 174 |
test -z "$LTCC" && LTCC=$CC |
159 |
test -z "$LTCC" && LTCC=$CC |
|
|
160 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 175 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
161 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 176 |
test -z "$LD" && LD=ld |
162 |
test -z "$LD" && LD=ld |
| 177 |
test -z "$LN_S" && LN_S="ln -s" |
163 |
test -z "$LN_S" && LN_S="ln -s" |
|
Lines 191-205
Link Here
|
| 191 |
if test -n "$RANLIB"; then |
177 |
if test -n "$RANLIB"; then |
| 192 |
case $host_os in |
178 |
case $host_os in |
| 193 |
openbsd*) |
179 |
openbsd*) |
| 194 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
180 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 195 |
;; |
181 |
;; |
| 196 |
*) |
182 |
*) |
| 197 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
183 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 198 |
;; |
184 |
;; |
| 199 |
esac |
185 |
esac |
| 200 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
186 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 201 |
fi |
187 |
fi |
| 202 |
|
188 |
|
|
|
189 |
_LT_CC_BASENAME([$compiler]) |
| 190 |
|
| 203 |
# Only perform the check for file, if the check method requires it |
191 |
# Only perform the check for file, if the check method requires it |
| 204 |
case $deplibs_check_method in |
192 |
case $deplibs_check_method in |
| 205 |
file_magic*) |
193 |
file_magic*) |
|
Lines 240-250
Link Here
|
| 240 |
# If no C compiler was specified, use CC. |
228 |
# If no C compiler was specified, use CC. |
| 241 |
LTCC=${LTCC-"$CC"} |
229 |
LTCC=${LTCC-"$CC"} |
| 242 |
|
230 |
|
|
|
231 |
# If no C compiler flags were specified, use CFLAGS. |
| 232 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 233 |
|
| 243 |
# Allow CC to be a program name with arguments. |
234 |
# Allow CC to be a program name with arguments. |
| 244 |
compiler=$CC |
235 |
compiler=$CC |
| 245 |
])# _LT_AC_SYS_COMPILER |
236 |
])# _LT_AC_SYS_COMPILER |
| 246 |
|
237 |
|
| 247 |
|
238 |
|
|
|
239 |
# _LT_CC_BASENAME(CC) |
| 240 |
# ------------------- |
| 241 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 242 |
AC_DEFUN([_LT_CC_BASENAME], |
| 243 |
[for cc_temp in $1""; do |
| 244 |
case $cc_temp in |
| 245 |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 246 |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 247 |
\-*) ;; |
| 248 |
*) break;; |
| 249 |
esac |
| 250 |
done |
| 251 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 252 |
]) |
| 253 |
|
| 254 |
|
| 255 |
# _LT_COMPILER_BOILERPLATE |
| 256 |
# ------------------------ |
| 257 |
# Check for compiler boilerplate output or warnings with |
| 258 |
# the simple compiler test code. |
| 259 |
AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
| 260 |
[ac_outfile=conftest.$ac_objext |
| 261 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 262 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 263 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 264 |
$rm conftest* |
| 265 |
])# _LT_COMPILER_BOILERPLATE |
| 266 |
|
| 267 |
|
| 268 |
# _LT_LINKER_BOILERPLATE |
| 269 |
# ---------------------- |
| 270 |
# Check for linker boilerplate output or warnings with |
| 271 |
# the simple link test code. |
| 272 |
AC_DEFUN([_LT_LINKER_BOILERPLATE], |
| 273 |
[ac_outfile=conftest.$ac_objext |
| 274 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 275 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 276 |
_lt_linker_boilerplate=`cat conftest.err` |
| 277 |
$rm conftest* |
| 278 |
])# _LT_LINKER_BOILERPLATE |
| 279 |
|
| 280 |
|
| 248 |
# _LT_AC_SYS_LIBPATH_AIX |
281 |
# _LT_AC_SYS_LIBPATH_AIX |
| 249 |
# ---------------------- |
282 |
# ---------------------- |
| 250 |
# Links a minimal program and checks the executable |
283 |
# Links a minimal program and checks the executable |
|
Lines 317-331
Link Here
|
| 317 |
|
350 |
|
| 318 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
351 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 319 |
# if CDPATH is set. |
352 |
# if CDPATH is set. |
| 320 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
353 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 321 |
|
354 |
|
| 322 |
if test -z "$ECHO"; then |
355 |
if test -z "$ECHO"; then |
| 323 |
if test "X${echo_test_string+set}" != Xset; then |
356 |
if test "X${echo_test_string+set}" != Xset; then |
| 324 |
# find a string as large as possible, as long as the shell can cope with it |
357 |
# find a string as large as possible, as long as the shell can cope with it |
| 325 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
358 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 326 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
359 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 327 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
360 |
if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 328 |
echo_test_string="`eval $cmd`" && |
361 |
echo_test_string=`eval $cmd` && |
| 329 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
362 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 330 |
then |
363 |
then |
| 331 |
break |
364 |
break |
|
Lines 494-507
Link Here
|
| 494 |
# Find out which ABI we are using. |
527 |
# Find out which ABI we are using. |
| 495 |
echo 'int i;' > conftest.$ac_ext |
528 |
echo 'int i;' > conftest.$ac_ext |
| 496 |
if AC_TRY_EVAL(ac_compile); then |
529 |
if AC_TRY_EVAL(ac_compile); then |
| 497 |
case "`/usr/bin/file conftest.o`" in |
530 |
case `/usr/bin/file conftest.o` in |
| 498 |
*32-bit*) |
531 |
*32-bit*) |
| 499 |
LINUX_64_MODE="32" |
|
|
| 500 |
case $host in |
532 |
case $host in |
| 501 |
x86_64-*linux*) |
533 |
x86_64-*linux*) |
| 502 |
LD="${LD-ld} -m elf_i386" |
534 |
LD="${LD-ld} -m elf_i386" |
| 503 |
;; |
535 |
;; |
| 504 |
ppc64-*linux*) |
536 |
ppc64-*linux*|powerpc64-*linux*) |
| 505 |
LD="${LD-ld} -m elf32ppclinux" |
537 |
LD="${LD-ld} -m elf32ppclinux" |
| 506 |
;; |
538 |
;; |
| 507 |
s390x-*linux*) |
539 |
s390x-*linux*) |
|
Lines 513-519
Link Here
|
| 513 |
esac |
545 |
esac |
| 514 |
;; |
546 |
;; |
| 515 |
*64-bit*) |
547 |
*64-bit*) |
| 516 |
LINUX_64_MODE="64" |
|
|
| 517 |
case $host in |
548 |
case $host in |
| 518 |
x86_64-*linux*) |
549 |
x86_64-*linux*) |
| 519 |
LD="${LD-ld} -m elf_x86_64" |
550 |
LD="${LD-ld} -m elf_x86_64" |
|
Lines 547-552
Link Here
|
| 547 |
CFLAGS="$SAVE_CFLAGS" |
578 |
CFLAGS="$SAVE_CFLAGS" |
| 548 |
fi |
579 |
fi |
| 549 |
;; |
580 |
;; |
|
|
581 |
sparc*-*solaris*) |
| 582 |
# Find out which ABI we are using. |
| 583 |
echo 'int i;' > conftest.$ac_ext |
| 584 |
if AC_TRY_EVAL(ac_compile); then |
| 585 |
case `/usr/bin/file conftest.o` in |
| 586 |
*64-bit*) |
| 587 |
case $lt_cv_prog_gnu_ld in |
| 588 |
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 589 |
*) LD="${LD-ld} -64" ;; |
| 590 |
esac |
| 591 |
;; |
| 592 |
esac |
| 593 |
fi |
| 594 |
rm -rf conftest* |
| 595 |
;; |
| 596 |
|
| 550 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
597 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 551 |
[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
598 |
[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 552 |
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
599 |
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
|
Lines 578-584
Link Here
|
| 578 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
625 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 579 |
# The option is referenced via a variable to avoid confusing sed. |
626 |
# The option is referenced via a variable to avoid confusing sed. |
| 580 |
lt_compile=`echo "$ac_compile" | $SED \ |
627 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 581 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
628 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 582 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
629 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 583 |
-e 's:$: $lt_compiler_flag:'` |
630 |
-e 's:$: $lt_compiler_flag:'` |
| 584 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
631 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
|
Lines 588-595
Link Here
|
| 588 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
635 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 589 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
636 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 590 |
# The compiler can only warn and ignore the option if not recognized |
637 |
# The compiler can only warn and ignore the option if not recognized |
| 591 |
# So say no if there are warnings |
638 |
# So say no if there are warnings other than the usual output. |
| 592 |
if test ! -s conftest.err; then |
639 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
640 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 641 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 593 |
$2=yes |
642 |
$2=yes |
| 594 |
fi |
643 |
fi |
| 595 |
fi |
644 |
fi |
|
Lines 615-625
Link Here
|
| 615 |
LDFLAGS="$LDFLAGS $3" |
664 |
LDFLAGS="$LDFLAGS $3" |
| 616 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
665 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 617 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
666 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 618 |
# The compiler can only warn and ignore the option if not recognized |
667 |
# The linker can only warn and ignore the option if not recognized |
| 619 |
# So say no if there are warnings |
668 |
# So say no if there are warnings |
| 620 |
if test -s conftest.err; then |
669 |
if test -s conftest.err; then |
| 621 |
# Append any errors to the config.log. |
670 |
# Append any errors to the config.log. |
| 622 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
671 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
|
|
672 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 673 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 674 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 675 |
$2=yes |
| 676 |
fi |
| 623 |
else |
677 |
else |
| 624 |
$2=yes |
678 |
$2=yes |
| 625 |
fi |
679 |
fi |
|
Lines 643-649
Link Here
|
| 643 |
AC_MSG_CHECKING([the maximum length of command line arguments]) |
697 |
AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 644 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
698 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 645 |
i=0 |
699 |
i=0 |
| 646 |
testring="ABCD" |
700 |
teststring="ABCD" |
| 647 |
|
701 |
|
| 648 |
case $build_os in |
702 |
case $build_os in |
| 649 |
msdosdjgpp*) |
703 |
msdosdjgpp*) |
|
Lines 672-691
Link Here
|
| 672 |
lt_cv_sys_max_cmd_len=8192; |
726 |
lt_cv_sys_max_cmd_len=8192; |
| 673 |
;; |
727 |
;; |
| 674 |
|
728 |
|
| 675 |
*) |
729 |
amigaos*) |
|
|
730 |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 731 |
# So we just punt and use a minimum line length of 8192. |
| 732 |
lt_cv_sys_max_cmd_len=8192; |
| 733 |
;; |
| 734 |
|
| 735 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 736 |
# This has been around since 386BSD, at least. Likely further. |
| 737 |
if test -x /sbin/sysctl; then |
| 738 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 739 |
elif test -x /usr/sbin/sysctl; then |
| 740 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 741 |
else |
| 742 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 743 |
fi |
| 744 |
# And add a safety zone |
| 745 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 746 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 747 |
;; |
| 748 |
|
| 749 |
interix*) |
| 750 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 751 |
lt_cv_sys_max_cmd_len=196608 |
| 752 |
;; |
| 753 |
|
| 754 |
osf*) |
| 755 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 756 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 757 |
# nice to cause kernel panics so lets avoid the loop below. |
| 758 |
# First set a reasonable default. |
| 759 |
lt_cv_sys_max_cmd_len=16384 |
| 760 |
# |
| 761 |
if test -x /sbin/sysconfig; then |
| 762 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 763 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 764 |
esac |
| 765 |
fi |
| 766 |
;; |
| 767 |
sco3.2v5*) |
| 768 |
lt_cv_sys_max_cmd_len=102400 |
| 769 |
;; |
| 770 |
sysv5* | sco5v6* | sysv4.2uw2*) |
| 771 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 772 |
if test -n "$kargmax"; then |
| 773 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
| 774 |
else |
| 775 |
lt_cv_sys_max_cmd_len=32768 |
| 776 |
fi |
| 777 |
;; |
| 778 |
*) |
| 676 |
# If test is not a shell built-in, we'll probably end up computing a |
779 |
# If test is not a shell built-in, we'll probably end up computing a |
| 677 |
# maximum length that is only half of the actual maximum length, but |
780 |
# maximum length that is only half of the actual maximum length, but |
| 678 |
# we can't tell. |
781 |
# we can't tell. |
| 679 |
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
782 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 680 |
= "XX$testring") >/dev/null 2>&1 && |
783 |
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 681 |
new_result=`expr "X$testring" : ".*" 2>&1` && |
784 |
= "XX$teststring") >/dev/null 2>&1 && |
|
|
785 |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 682 |
lt_cv_sys_max_cmd_len=$new_result && |
786 |
lt_cv_sys_max_cmd_len=$new_result && |
| 683 |
test $i != 17 # 1/2 MB should be enough |
787 |
test $i != 17 # 1/2 MB should be enough |
| 684 |
do |
788 |
do |
| 685 |
i=`expr $i + 1` |
789 |
i=`expr $i + 1` |
| 686 |
testring=$testring$testring |
790 |
teststring=$teststring$teststring |
| 687 |
done |
791 |
done |
| 688 |
testring= |
792 |
teststring= |
| 689 |
# Add a significant safety factor because C++ compilers can tack on massive |
793 |
# Add a significant safety factor because C++ compilers can tack on massive |
| 690 |
# amounts of additional arguments before passing them to the linker. |
794 |
# amounts of additional arguments before passing them to the linker. |
| 691 |
# It appears as though 1/2 is a usable value. |
795 |
# It appears as though 1/2 is a usable value. |
|
Lines 702-708
Link Here
|
| 702 |
|
806 |
|
| 703 |
|
807 |
|
| 704 |
# _LT_AC_CHECK_DLFCN |
808 |
# _LT_AC_CHECK_DLFCN |
| 705 |
# -------------------- |
809 |
# ------------------ |
| 706 |
AC_DEFUN([_LT_AC_CHECK_DLFCN], |
810 |
AC_DEFUN([_LT_AC_CHECK_DLFCN], |
| 707 |
[AC_CHECK_HEADERS(dlfcn.h)dnl |
811 |
[AC_CHECK_HEADERS(dlfcn.h)dnl |
| 708 |
])# _LT_AC_CHECK_DLFCN |
812 |
])# _LT_AC_CHECK_DLFCN |
|
Lines 710-716
Link Here
|
| 710 |
|
814 |
|
| 711 |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
815 |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 712 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
816 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 713 |
# ------------------------------------------------------------------ |
817 |
# --------------------------------------------------------------------- |
| 714 |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
818 |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
| 715 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
819 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 716 |
if test "$cross_compiling" = yes; then : |
820 |
if test "$cross_compiling" = yes; then : |
|
Lines 776-792
Link Here
|
| 776 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
880 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 777 |
/* dlclose (self); */ |
881 |
/* dlclose (self); */ |
| 778 |
} |
882 |
} |
|
|
883 |
else |
| 884 |
puts (dlerror ()); |
| 779 |
|
885 |
|
| 780 |
exit (status); |
886 |
exit (status); |
| 781 |
}] |
887 |
}] |
| 782 |
EOF |
888 |
EOF |
| 783 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
889 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 784 |
(./conftest; exit; ) 2>/dev/null |
890 |
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
| 785 |
lt_status=$? |
891 |
lt_status=$? |
| 786 |
case x$lt_status in |
892 |
case x$lt_status in |
| 787 |
x$lt_dlno_uscore) $1 ;; |
893 |
x$lt_dlno_uscore) $1 ;; |
| 788 |
x$lt_dlneed_uscore) $2 ;; |
894 |
x$lt_dlneed_uscore) $2 ;; |
| 789 |
x$lt_unknown|x*) $3 ;; |
895 |
x$lt_dlunknown|x*) $3 ;; |
| 790 |
esac |
896 |
esac |
| 791 |
else : |
897 |
else : |
| 792 |
# compilation failed |
898 |
# compilation failed |
|
Lines 798-804
Link Here
|
| 798 |
|
904 |
|
| 799 |
|
905 |
|
| 800 |
# AC_LIBTOOL_DLOPEN_SELF |
906 |
# AC_LIBTOOL_DLOPEN_SELF |
| 801 |
# ------------------- |
907 |
# ---------------------- |
| 802 |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
908 |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
| 803 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
909 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 804 |
if test "x$enable_dlopen" != xyes; then |
910 |
if test "x$enable_dlopen" != xyes; then |
|
Lines 835-841
Link Here
|
| 835 |
lt_cv_dlopen_self=yes |
941 |
lt_cv_dlopen_self=yes |
| 836 |
]) |
942 |
]) |
| 837 |
;; |
943 |
;; |
| 838 |
|
944 |
|
| 839 |
*) |
945 |
*) |
| 840 |
AC_CHECK_FUNC([shl_load], |
946 |
AC_CHECK_FUNC([shl_load], |
| 841 |
[lt_cv_dlopen="shl_load"], |
947 |
[lt_cv_dlopen="shl_load"], |
|
Lines 869-875
Link Here
|
| 869 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
975 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 870 |
|
976 |
|
| 871 |
save_LDFLAGS="$LDFLAGS" |
977 |
save_LDFLAGS="$LDFLAGS" |
| 872 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
978 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 873 |
|
979 |
|
| 874 |
save_LIBS="$LIBS" |
980 |
save_LIBS="$LIBS" |
| 875 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
981 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
Lines 882-888
Link Here
|
| 882 |
]) |
988 |
]) |
| 883 |
|
989 |
|
| 884 |
if test "x$lt_cv_dlopen_self" = xyes; then |
990 |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 885 |
LDFLAGS="$LDFLAGS $link_static_flag" |
991 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 886 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
992 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 887 |
lt_cv_dlopen_self_static, [dnl |
993 |
lt_cv_dlopen_self_static, [dnl |
| 888 |
_LT_AC_TRY_DLOPEN_SELF( |
994 |
_LT_AC_TRY_DLOPEN_SELF( |
|
Lines 924-943
Link Here
|
| 924 |
mkdir out |
1030 |
mkdir out |
| 925 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
1031 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 926 |
|
1032 |
|
| 927 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
| 928 |
# that will create temporary files in the current directory regardless of |
| 929 |
# the output directory. Thus, making CWD read-only will cause this test |
| 930 |
# to fail, enabling locking or at least warning the user not to do parallel |
| 931 |
# builds. |
| 932 |
chmod -w . |
| 933 |
|
| 934 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
1033 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 935 |
# Insert the option either (1) after the last *FLAGS variable, or |
1034 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 936 |
# (2) before a word containing "conftest.", or (3) at the end. |
1035 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 937 |
# Note that $ac_compile itself does not contain backslashes and begins |
1036 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 938 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
1037 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 939 |
lt_compile=`echo "$ac_compile" | $SED \ |
1038 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 940 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
1039 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 941 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1040 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 942 |
-e 's:$: $lt_compiler_flag:'` |
1041 |
-e 's:$: $lt_compiler_flag:'` |
| 943 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1042 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
|
Lines 949-961
Link Here
|
| 949 |
then |
1048 |
then |
| 950 |
# The compiler can only warn and ignore the option if not recognized |
1049 |
# The compiler can only warn and ignore the option if not recognized |
| 951 |
# So say no if there are warnings |
1050 |
# So say no if there are warnings |
| 952 |
if test ! -s out/conftest.err; then |
1051 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
1052 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 1053 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 953 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1054 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 954 |
fi |
1055 |
fi |
| 955 |
fi |
1056 |
fi |
| 956 |
chmod u+w . |
1057 |
chmod u+w . 2>&AS_MESSAGE_LOG_FD |
| 957 |
$rm conftest* out/* |
1058 |
$rm conftest* |
| 958 |
rmdir out |
1059 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
|
1060 |
# template instantiation |
| 1061 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 1062 |
$rm out/* && rmdir out |
| 959 |
cd .. |
1063 |
cd .. |
| 960 |
rmdir conftest |
1064 |
rmdir conftest |
| 961 |
$rm conftest* |
1065 |
$rm conftest* |
|
Lines 1014-1021
Link Here
|
| 1014 |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1118 |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 1015 |
_LT_AC_TAGVAR(hardcode_action, $1)= |
1119 |
_LT_AC_TAGVAR(hardcode_action, $1)= |
| 1016 |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1120 |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
| 1017 |
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
1121 |
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
| 1018 |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
1122 |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| 1019 |
|
1123 |
|
| 1020 |
# We can hardcode non-existant directories. |
1124 |
# We can hardcode non-existant directories. |
| 1021 |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1125 |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
|
Lines 1072-1078
Link Here
|
| 1072 |
*) |
1176 |
*) |
| 1073 |
AC_MSG_RESULT([no]) |
1177 |
AC_MSG_RESULT([no]) |
| 1074 |
;; |
1178 |
;; |
| 1075 |
esac |
1179 |
esac |
| 1076 |
fi |
1180 |
fi |
| 1077 |
])# AC_LIBTOOL_SYS_LIB_STRIP |
1181 |
])# AC_LIBTOOL_SYS_LIB_STRIP |
| 1078 |
|
1182 |
|
|
Lines 1085-1091
Link Here
|
| 1085 |
library_names_spec= |
1189 |
library_names_spec= |
| 1086 |
libname_spec='lib$name' |
1190 |
libname_spec='lib$name' |
| 1087 |
soname_spec= |
1191 |
soname_spec= |
| 1088 |
shrext=".so" |
1192 |
shrext_cmds=".so" |
| 1089 |
postinstall_cmds= |
1193 |
postinstall_cmds= |
| 1090 |
postuninstall_cmds= |
1194 |
postuninstall_cmds= |
| 1091 |
finish_cmds= |
1195 |
finish_cmds= |
|
Lines 1095-1101
Link Here
|
| 1095 |
version_type=none |
1199 |
version_type=none |
| 1096 |
dynamic_linker="$host_os ld.so" |
1200 |
dynamic_linker="$host_os ld.so" |
| 1097 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
1201 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 1098 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
1202 |
if test "$GCC" = yes; then |
|
|
1203 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 1204 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 1205 |
# if the path contains ";" then we assume it to be the separator |
| 1206 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 1207 |
# assumed that no part of a normal pathname contains ";" but that should |
| 1208 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 1209 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 1210 |
else |
| 1211 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 1212 |
fi |
| 1213 |
else |
| 1214 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 1215 |
fi |
| 1099 |
need_lib_prefix=unknown |
1216 |
need_lib_prefix=unknown |
| 1100 |
hardcode_into_libs=no |
1217 |
hardcode_into_libs=no |
| 1101 |
|
1218 |
|
|
Lines 1160-1166
Link Here
|
| 1160 |
amigaos*) |
1277 |
amigaos*) |
| 1161 |
library_names_spec='$libname.ixlibrary $libname.a' |
1278 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 1162 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
1279 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 1163 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
1280 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 1164 |
;; |
1281 |
;; |
| 1165 |
|
1282 |
|
| 1166 |
beos*) |
1283 |
beos*) |
|
Lines 1169-1175
Link Here
|
| 1169 |
shlibpath_var=LIBRARY_PATH |
1286 |
shlibpath_var=LIBRARY_PATH |
| 1170 |
;; |
1287 |
;; |
| 1171 |
|
1288 |
|
| 1172 |
bsdi4*) |
1289 |
bsdi[[45]]*) |
| 1173 |
version_type=linux |
1290 |
version_type=linux |
| 1174 |
need_version=no |
1291 |
need_version=no |
| 1175 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1292 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
Lines 1185-1191
Link Here
|
| 1185 |
|
1302 |
|
| 1186 |
cygwin* | mingw* | pw32*) |
1303 |
cygwin* | mingw* | pw32*) |
| 1187 |
version_type=windows |
1304 |
version_type=windows |
| 1188 |
shrext=".dll" |
1305 |
shrext_cmds=".dll" |
| 1189 |
need_version=no |
1306 |
need_version=no |
| 1190 |
need_lib_prefix=no |
1307 |
need_lib_prefix=no |
| 1191 |
|
1308 |
|
|
Lines 1197-1203
Link Here
|
| 1197 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
1314 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 1198 |
dldir=$destdir/`dirname \$dlpath`~ |
1315 |
dldir=$destdir/`dirname \$dlpath`~ |
| 1199 |
test -d \$dldir || mkdir -p \$dldir~ |
1316 |
test -d \$dldir || mkdir -p \$dldir~ |
| 1200 |
$install_prog $dir/$dlname \$dldir/$dlname' |
1317 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
1318 |
chmod a+x \$dldir/$dlname' |
| 1201 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
1319 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 1202 |
dlpath=$dir/\$dldll~ |
1320 |
dlpath=$dir/\$dldll~ |
| 1203 |
$rm \$dlpath' |
1321 |
$rm \$dlpath' |
|
Lines 1227-1233
Link Here
|
| 1227 |
;; |
1345 |
;; |
| 1228 |
pw32*) |
1346 |
pw32*) |
| 1229 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
1347 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 1230 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
1348 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 1231 |
;; |
1349 |
;; |
| 1232 |
esac |
1350 |
esac |
| 1233 |
;; |
1351 |
;; |
|
Lines 1250-1256
Link Here
|
| 1250 |
soname_spec='${libname}${release}${major}$shared_ext' |
1368 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 1251 |
shlibpath_overrides_runpath=yes |
1369 |
shlibpath_overrides_runpath=yes |
| 1252 |
shlibpath_var=DYLD_LIBRARY_PATH |
1370 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 1253 |
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
1371 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 1254 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
1372 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 1255 |
if test "$GCC" = yes; then |
1373 |
if test "$GCC" = yes; then |
| 1256 |
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"` |
1374 |
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"` |
|
Lines 1273-1292
Link Here
|
| 1273 |
dynamic_linker=no |
1391 |
dynamic_linker=no |
| 1274 |
;; |
1392 |
;; |
| 1275 |
|
1393 |
|
| 1276 |
kfreebsd*-gnu*) |
1394 |
freebsd* | dragonfly*) |
| 1277 |
version_type=linux |
1395 |
# DragonFly does not have aout. When/if they implement a new |
| 1278 |
need_lib_prefix=no |
1396 |
# versioning mechanism, adjust this. |
| 1279 |
need_version=no |
1397 |
if test -x /usr/bin/objformat; then |
| 1280 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
1398 |
objformat=`/usr/bin/objformat` |
| 1281 |
soname_spec='${libname}${release}${shared_ext}$major' |
1399 |
else |
| 1282 |
shlibpath_var=LD_LIBRARY_PATH |
1400 |
case $host_os in |
| 1283 |
shlibpath_overrides_runpath=no |
1401 |
freebsd[[123]]*) objformat=aout ;; |
| 1284 |
hardcode_into_libs=yes |
1402 |
*) objformat=elf ;; |
| 1285 |
dynamic_linker='GNU ld.so' |
1403 |
esac |
| 1286 |
;; |
1404 |
fi |
| 1287 |
|
|
|
| 1288 |
freebsd*) |
| 1289 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 1290 |
version_type=freebsd-$objformat |
1405 |
version_type=freebsd-$objformat |
| 1291 |
case $version_type in |
1406 |
case $version_type in |
| 1292 |
freebsd-elf*) |
1407 |
freebsd-elf*) |
|
Lines 1304-1317
Link Here
|
| 1304 |
freebsd2*) |
1419 |
freebsd2*) |
| 1305 |
shlibpath_overrides_runpath=yes |
1420 |
shlibpath_overrides_runpath=yes |
| 1306 |
;; |
1421 |
;; |
| 1307 |
freebsd3.[01]* | freebsdelf3.[01]*) |
1422 |
freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 1308 |
shlibpath_overrides_runpath=yes |
1423 |
shlibpath_overrides_runpath=yes |
| 1309 |
hardcode_into_libs=yes |
1424 |
hardcode_into_libs=yes |
| 1310 |
;; |
1425 |
;; |
| 1311 |
*) # from 3.2 on |
1426 |
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
|
|
1427 |
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
| 1312 |
shlibpath_overrides_runpath=no |
1428 |
shlibpath_overrides_runpath=no |
| 1313 |
hardcode_into_libs=yes |
1429 |
hardcode_into_libs=yes |
| 1314 |
;; |
1430 |
;; |
|
|
1431 |
freebsd*) # from 4.6 on |
| 1432 |
shlibpath_overrides_runpath=yes |
| 1433 |
hardcode_into_libs=yes |
| 1434 |
;; |
| 1315 |
esac |
1435 |
esac |
| 1316 |
;; |
1436 |
;; |
| 1317 |
|
1437 |
|
|
Lines 1331-1339
Link Here
|
| 1331 |
version_type=sunos |
1451 |
version_type=sunos |
| 1332 |
need_lib_prefix=no |
1452 |
need_lib_prefix=no |
| 1333 |
need_version=no |
1453 |
need_version=no |
| 1334 |
case "$host_cpu" in |
1454 |
case $host_cpu in |
| 1335 |
ia64*) |
1455 |
ia64*) |
| 1336 |
shrext='.so' |
1456 |
shrext_cmds='.so' |
| 1337 |
hardcode_into_libs=yes |
1457 |
hardcode_into_libs=yes |
| 1338 |
dynamic_linker="$host_os dld.so" |
1458 |
dynamic_linker="$host_os dld.so" |
| 1339 |
shlibpath_var=LD_LIBRARY_PATH |
1459 |
shlibpath_var=LD_LIBRARY_PATH |
|
Lines 1348-1354
Link Here
|
| 1348 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1468 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 1349 |
;; |
1469 |
;; |
| 1350 |
hppa*64*) |
1470 |
hppa*64*) |
| 1351 |
shrext='.sl' |
1471 |
shrext_cmds='.sl' |
| 1352 |
hardcode_into_libs=yes |
1472 |
hardcode_into_libs=yes |
| 1353 |
dynamic_linker="$host_os dld.sl" |
1473 |
dynamic_linker="$host_os dld.sl" |
| 1354 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
1474 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
Lines 1359-1365
Link Here
|
| 1359 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1479 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 1360 |
;; |
1480 |
;; |
| 1361 |
*) |
1481 |
*) |
| 1362 |
shrext='.sl' |
1482 |
shrext_cmds='.sl' |
| 1363 |
dynamic_linker="$host_os dld.sl" |
1483 |
dynamic_linker="$host_os dld.sl" |
| 1364 |
shlibpath_var=SHLIB_PATH |
1484 |
shlibpath_var=SHLIB_PATH |
| 1365 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
1485 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
Lines 1371-1376
Link Here
|
| 1371 |
postinstall_cmds='chmod 555 $lib' |
1491 |
postinstall_cmds='chmod 555 $lib' |
| 1372 |
;; |
1492 |
;; |
| 1373 |
|
1493 |
|
|
|
1494 |
interix3*) |
| 1495 |
version_type=linux |
| 1496 |
need_lib_prefix=no |
| 1497 |
need_version=no |
| 1498 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 1499 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 1500 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 1501 |
shlibpath_var=LD_LIBRARY_PATH |
| 1502 |
shlibpath_overrides_runpath=no |
| 1503 |
hardcode_into_libs=yes |
| 1504 |
;; |
| 1505 |
|
| 1374 |
irix5* | irix6* | nonstopux*) |
1506 |
irix5* | irix6* | nonstopux*) |
| 1375 |
case $host_os in |
1507 |
case $host_os in |
| 1376 |
nonstopux*) version_type=nonstopux ;; |
1508 |
nonstopux*) version_type=nonstopux ;; |
|
Lines 1414-1442
Link Here
|
| 1414 |
;; |
1546 |
;; |
| 1415 |
|
1547 |
|
| 1416 |
# This must be Linux ELF. |
1548 |
# This must be Linux ELF. |
| 1417 |
linux*) |
1549 |
linux* | k*bsd*-gnu) |
| 1418 |
version_type=linux |
1550 |
version_type=linux |
| 1419 |
need_lib_prefix=no |
1551 |
need_lib_prefix=no |
| 1420 |
need_version=no |
1552 |
need_version=no |
| 1421 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1553 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 1422 |
soname_spec='${libname}${release}${shared_ext}$major' |
1554 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 1423 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
1555 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 1424 |
libsuff= |
|
|
| 1425 |
if test "x$LINUX_64_MODE" = x64; then |
| 1426 |
# Some platforms are per default 64-bit, so there's no /lib64 |
| 1427 |
if test -d /lib64 -a ! -h /lib64; then |
| 1428 |
libsuff=64 |
| 1429 |
fi |
| 1430 |
fi |
| 1431 |
shlibpath_var=LD_LIBRARY_PATH |
1556 |
shlibpath_var=LD_LIBRARY_PATH |
| 1432 |
shlibpath_overrides_runpath=no |
1557 |
shlibpath_overrides_runpath=no |
| 1433 |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
|
|
| 1434 |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| 1435 |
# This implies no fast_install, which is unacceptable. |
1558 |
# This implies no fast_install, which is unacceptable. |
| 1436 |
# Some rework will be needed to allow for fast_install |
1559 |
# Some rework will be needed to allow for fast_install |
| 1437 |
# before this can be enabled. |
1560 |
# before this can be enabled. |
| 1438 |
hardcode_into_libs=yes |
1561 |
hardcode_into_libs=yes |
| 1439 |
|
1562 |
|
|
|
1563 |
# Append ld.so.conf contents to the search path |
| 1564 |
if test -f /etc/ld.so.conf; then |
| 1565 |
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' ' '` |
| 1566 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 1567 |
fi |
| 1568 |
|
| 1440 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
1569 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 1441 |
# powerpc, because MkLinux only supported shared libraries with the |
1570 |
# powerpc, because MkLinux only supported shared libraries with the |
| 1442 |
# GNU dynamic linker. Since this was broken with cross compilers, |
1571 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
Lines 1446-1451
Link Here
|
| 1446 |
dynamic_linker='GNU/Linux ld.so' |
1575 |
dynamic_linker='GNU/Linux ld.so' |
| 1447 |
;; |
1576 |
;; |
| 1448 |
|
1577 |
|
|
|
1578 |
netbsdelf*-gnu) |
| 1579 |
version_type=linux |
| 1580 |
need_lib_prefix=no |
| 1581 |
need_version=no |
| 1582 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 1583 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 1584 |
shlibpath_var=LD_LIBRARY_PATH |
| 1585 |
shlibpath_overrides_runpath=no |
| 1586 |
hardcode_into_libs=yes |
| 1587 |
dynamic_linker='NetBSD ld.elf_so' |
| 1588 |
;; |
| 1589 |
|
| 1449 |
netbsd*) |
1590 |
netbsd*) |
| 1450 |
version_type=sunos |
1591 |
version_type=sunos |
| 1451 |
need_lib_prefix=no |
1592 |
need_lib_prefix=no |
|
Lines 1455-1461
Link Here
|
| 1455 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1596 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 1456 |
dynamic_linker='NetBSD (a.out) ld.so' |
1597 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 1457 |
else |
1598 |
else |
| 1458 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
1599 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 1459 |
soname_spec='${libname}${release}${shared_ext}$major' |
1600 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 1460 |
dynamic_linker='NetBSD ld.elf_so' |
1601 |
dynamic_linker='NetBSD ld.elf_so' |
| 1461 |
fi |
1602 |
fi |
|
Lines 1483-1490
Link Here
|
| 1483 |
|
1624 |
|
| 1484 |
openbsd*) |
1625 |
openbsd*) |
| 1485 |
version_type=sunos |
1626 |
version_type=sunos |
|
|
1627 |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 1486 |
need_lib_prefix=no |
1628 |
need_lib_prefix=no |
| 1487 |
need_version=no |
1629 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
1630 |
case $host_os in |
| 1631 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 1632 |
*) need_version=no ;; |
| 1633 |
esac |
| 1488 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1634 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 1489 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1635 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 1490 |
shlibpath_var=LD_LIBRARY_PATH |
1636 |
shlibpath_var=LD_LIBRARY_PATH |
|
Lines 1504-1510
Link Here
|
| 1504 |
|
1650 |
|
| 1505 |
os2*) |
1651 |
os2*) |
| 1506 |
libname_spec='$name' |
1652 |
libname_spec='$name' |
| 1507 |
shrext=".dll" |
1653 |
shrext_cmds=".dll" |
| 1508 |
need_lib_prefix=no |
1654 |
need_lib_prefix=no |
| 1509 |
library_names_spec='$libname${shared_ext} $libname.a' |
1655 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 1510 |
dynamic_linker='OS/2 ld.exe' |
1656 |
dynamic_linker='OS/2 ld.exe' |
|
Lines 1522-1534
Link Here
|
| 1522 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
1668 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 1523 |
;; |
1669 |
;; |
| 1524 |
|
1670 |
|
| 1525 |
sco3.2v5*) |
|
|
| 1526 |
version_type=osf |
| 1527 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 1528 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 1529 |
shlibpath_var=LD_LIBRARY_PATH |
| 1530 |
;; |
| 1531 |
|
| 1532 |
solaris*) |
1671 |
solaris*) |
| 1533 |
version_type=linux |
1672 |
version_type=linux |
| 1534 |
need_lib_prefix=no |
1673 |
need_lib_prefix=no |
|
Lines 1554-1560
Link Here
|
| 1554 |
need_version=yes |
1693 |
need_version=yes |
| 1555 |
;; |
1694 |
;; |
| 1556 |
|
1695 |
|
| 1557 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
1696 |
sysv4 | sysv4.3*) |
| 1558 |
version_type=linux |
1697 |
version_type=linux |
| 1559 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1698 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 1560 |
soname_spec='${libname}${release}${shared_ext}$major' |
1699 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
Lines 1587-1592
Link Here
|
| 1587 |
fi |
1726 |
fi |
| 1588 |
;; |
1727 |
;; |
| 1589 |
|
1728 |
|
|
|
1729 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 1730 |
version_type=freebsd-elf |
| 1731 |
need_lib_prefix=no |
| 1732 |
need_version=no |
| 1733 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 1734 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 1735 |
shlibpath_var=LD_LIBRARY_PATH |
| 1736 |
hardcode_into_libs=yes |
| 1737 |
if test "$with_gnu_ld" = yes; then |
| 1738 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 1739 |
shlibpath_overrides_runpath=no |
| 1740 |
else |
| 1741 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 1742 |
shlibpath_overrides_runpath=yes |
| 1743 |
case $host_os in |
| 1744 |
sco3.2v5*) |
| 1745 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 1746 |
;; |
| 1747 |
esac |
| 1748 |
fi |
| 1749 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 1750 |
;; |
| 1751 |
|
| 1590 |
uts4*) |
1752 |
uts4*) |
| 1591 |
version_type=linux |
1753 |
version_type=linux |
| 1592 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1754 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
Lines 1600-1605
Link Here
|
| 1600 |
esac |
1762 |
esac |
| 1601 |
AC_MSG_RESULT([$dynamic_linker]) |
1763 |
AC_MSG_RESULT([$dynamic_linker]) |
| 1602 |
test "$dynamic_linker" = no && can_build_shared=no |
1764 |
test "$dynamic_linker" = no && can_build_shared=no |
|
|
1765 |
|
| 1766 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 1767 |
if test "$GCC" = yes; then |
| 1768 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 1769 |
fi |
| 1603 |
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1770 |
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 1604 |
|
1771 |
|
| 1605 |
|
1772 |
|
|
Lines 1624-1629
Link Here
|
| 1624 |
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
1791 |
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
| 1625 |
fi |
1792 |
fi |
| 1626 |
fi |
1793 |
fi |
|
|
1794 |
if test -z "$LTCFLAGS"; then |
| 1795 |
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 1796 |
fi |
| 1627 |
|
1797 |
|
| 1628 |
# Extract list of available tagged configurations in $ofile. |
1798 |
# Extract list of available tagged configurations in $ofile. |
| 1629 |
# Note that this assumes the entire list is on one line. |
1799 |
# Note that this assumes the entire list is on one line. |
|
Lines 1650-1656
Link Here
|
| 1650 |
|
1820 |
|
| 1651 |
case $tagname in |
1821 |
case $tagname in |
| 1652 |
CXX) |
1822 |
CXX) |
| 1653 |
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
1823 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
1824 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 1825 |
(test "X$CXX" != "Xg++"))) ; then |
| 1654 |
AC_LIBTOOL_LANG_CXX_CONFIG |
1826 |
AC_LIBTOOL_LANG_CXX_CONFIG |
| 1655 |
else |
1827 |
else |
| 1656 |
tagname="" |
1828 |
tagname="" |
|
Lines 1712-1718
Link Here
|
| 1712 |
|
1884 |
|
| 1713 |
# AC_LIBTOOL_WIN32_DLL |
1885 |
# AC_LIBTOOL_WIN32_DLL |
| 1714 |
# -------------------- |
1886 |
# -------------------- |
| 1715 |
# declare package support for building win32 dll's |
1887 |
# declare package support for building win32 DLLs |
| 1716 |
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
1888 |
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
| 1717 |
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
1889 |
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
| 1718 |
])# AC_LIBTOOL_WIN32_DLL |
1890 |
])# AC_LIBTOOL_WIN32_DLL |
|
Lines 1750-1756
Link Here
|
| 1750 |
|
1922 |
|
| 1751 |
# AC_DISABLE_SHARED |
1923 |
# AC_DISABLE_SHARED |
| 1752 |
# ----------------- |
1924 |
# ----------------- |
| 1753 |
#- set the default shared flag to --disable-shared |
1925 |
# set the default shared flag to --disable-shared |
| 1754 |
AC_DEFUN([AC_DISABLE_SHARED], |
1926 |
AC_DEFUN([AC_DISABLE_SHARED], |
| 1755 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
1927 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 1756 |
AC_ENABLE_SHARED(no) |
1928 |
AC_ENABLE_SHARED(no) |
|
Lines 1886-1892
Link Here
|
| 1886 |
if test -n "$file_magic_test_file"; then |
2058 |
if test -n "$file_magic_test_file"; then |
| 1887 |
case $deplibs_check_method in |
2059 |
case $deplibs_check_method in |
| 1888 |
"file_magic "*) |
2060 |
"file_magic "*) |
| 1889 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
2061 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 1890 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2062 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 1891 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2063 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 1892 |
$EGREP "$file_magic_regex" > /dev/null; then |
2064 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
Lines 1996-2002
Link Here
|
| 1996 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
2168 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 1997 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
2169 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 1998 |
# Check to see if the program is GNU ld. I'd rather use --version, |
2170 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 1999 |
# but apparently some GNU ld's only accept -v. |
2171 |
# but apparently some variants of GNU ld only accept -v. |
| 2000 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
2172 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 2001 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
2173 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2002 |
*GNU* | *'with BFD'*) |
2174 |
*GNU* | *'with BFD'*) |
|
Lines 2028-2034
Link Here
|
| 2028 |
AC_DEFUN([AC_PROG_LD_GNU], |
2200 |
AC_DEFUN([AC_PROG_LD_GNU], |
| 2029 |
[AC_REQUIRE([AC_PROG_EGREP])dnl |
2201 |
[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 2030 |
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
2202 |
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 2031 |
[# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
2203 |
[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 2032 |
case `$LD -v 2>&1 </dev/null` in |
2204 |
case `$LD -v 2>&1 </dev/null` in |
| 2033 |
*GNU* | *'with BFD'*) |
2205 |
*GNU* | *'with BFD'*) |
| 2034 |
lt_cv_prog_gnu_ld=yes |
2206 |
lt_cv_prog_gnu_ld=yes |
|
Lines 2055-2060
Link Here
|
| 2055 |
*) reload_flag=" $reload_flag" ;; |
2227 |
*) reload_flag=" $reload_flag" ;; |
| 2056 |
esac |
2228 |
esac |
| 2057 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2229 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
2230 |
case $host_os in |
| 2231 |
darwin*) |
| 2232 |
if test "$GCC" = yes; then |
| 2233 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 2234 |
else |
| 2235 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 2236 |
fi |
| 2237 |
;; |
| 2238 |
esac |
| 2058 |
])# AC_PROG_LD_RELOAD_FLAG |
2239 |
])# AC_PROG_LD_RELOAD_FLAG |
| 2059 |
|
2240 |
|
| 2060 |
|
2241 |
|
|
Lines 2088-2131
Link Here
|
| 2088 |
lt_cv_deplibs_check_method=pass_all |
2269 |
lt_cv_deplibs_check_method=pass_all |
| 2089 |
;; |
2270 |
;; |
| 2090 |
|
2271 |
|
| 2091 |
bsdi4*) |
2272 |
bsdi[[45]]*) |
| 2092 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
2273 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 2093 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
2274 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2094 |
lt_cv_file_magic_test_file=/shlib/libc.so |
2275 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 2095 |
;; |
2276 |
;; |
| 2096 |
|
2277 |
|
| 2097 |
cygwin*) |
2278 |
cygwin*) |
| 2098 |
lt_cv_deplibs_check_method=pass_all |
2279 |
# func_win32_libid is a shell function defined in ltmain.sh |
|
|
2280 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 2281 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 2099 |
;; |
2282 |
;; |
| 2100 |
|
2283 |
|
| 2101 |
mingw* | pw32*) |
2284 |
mingw* | pw32*) |
| 2102 |
# win32_libid is a shell function defined in ltmain.sh |
2285 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 2103 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2286 |
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 2104 |
lt_cv_file_magic_cmd='win32_libid' |
2287 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
2288 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2105 |
;; |
2289 |
;; |
| 2106 |
|
2290 |
|
| 2107 |
darwin* | rhapsody*) |
2291 |
darwin* | rhapsody*) |
| 2108 |
# this will be overwritten by pass_all, but leave it in just in case |
|
|
| 2109 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 2110 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2111 |
case "$host_os" in |
| 2112 |
rhapsody* | darwin1.[[012]]) |
| 2113 |
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 2114 |
;; |
| 2115 |
*) # Darwin 1.3 on |
| 2116 |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 2117 |
;; |
| 2118 |
esac |
| 2119 |
lt_cv_deplibs_check_method=pass_all |
2292 |
lt_cv_deplibs_check_method=pass_all |
| 2120 |
;; |
2293 |
;; |
| 2121 |
|
2294 |
|
| 2122 |
freebsd* | kfreebsd*-gnu) |
2295 |
freebsd* | dragonfly*) |
| 2123 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2296 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2124 |
case $host_cpu in |
2297 |
case $host_cpu in |
| 2125 |
i*86 ) |
2298 |
i*86 ) |
| 2126 |
# Not sure whether the presence of OpenBSD here was a mistake. |
2299 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 2127 |
# Let's accept both of them until this is cleared up. |
2300 |
# Let's accept both of them until this is cleared up. |
| 2128 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
2301 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
| 2129 |
lt_cv_file_magic_cmd=/usr/bin/file |
2302 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 2130 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2303 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2131 |
;; |
2304 |
;; |
|
Lines 2141-2147
Link Here
|
| 2141 |
|
2314 |
|
| 2142 |
hpux10.20* | hpux11*) |
2315 |
hpux10.20* | hpux11*) |
| 2143 |
lt_cv_file_magic_cmd=/usr/bin/file |
2316 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 2144 |
case "$host_cpu" in |
2317 |
case $host_cpu in |
| 2145 |
ia64*) |
2318 |
ia64*) |
| 2146 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
2319 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 2147 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
2320 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
Lines 2157-2199
Link Here
|
| 2157 |
esac |
2330 |
esac |
| 2158 |
;; |
2331 |
;; |
| 2159 |
|
2332 |
|
|
|
2333 |
interix3*) |
| 2334 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 2335 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 2336 |
;; |
| 2337 |
|
| 2160 |
irix5* | irix6* | nonstopux*) |
2338 |
irix5* | irix6* | nonstopux*) |
| 2161 |
case $host_os in |
2339 |
case $LD in |
| 2162 |
irix5* | nonstopux*) |
2340 |
*-32|*"-32 ") libmagic=32-bit;; |
| 2163 |
# this will be overridden with pass_all, but let us keep it just in case |
2341 |
*-n32|*"-n32 ") libmagic=N32;; |
| 2164 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
2342 |
*-64|*"-64 ") libmagic=64-bit;; |
| 2165 |
;; |
2343 |
*) libmagic=never-match;; |
| 2166 |
*) |
|
|
| 2167 |
case $LD in |
| 2168 |
*-32|*"-32 ") libmagic=32-bit;; |
| 2169 |
*-n32|*"-n32 ") libmagic=N32;; |
| 2170 |
*-64|*"-64 ") libmagic=64-bit;; |
| 2171 |
*) libmagic=never-match;; |
| 2172 |
esac |
| 2173 |
# this will be overridden with pass_all, but let us keep it just in case |
| 2174 |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
| 2175 |
;; |
| 2176 |
esac |
2344 |
esac |
| 2177 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
| 2178 |
lt_cv_deplibs_check_method=pass_all |
2345 |
lt_cv_deplibs_check_method=pass_all |
| 2179 |
;; |
2346 |
;; |
| 2180 |
|
2347 |
|
| 2181 |
# This must be Linux ELF. |
2348 |
# This must be Linux ELF. |
| 2182 |
linux*) |
2349 |
linux* | k*bsd*-gnu) |
| 2183 |
case $host_cpu in |
2350 |
lt_cv_deplibs_check_method=pass_all |
| 2184 |
alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) |
|
|
| 2185 |
lt_cv_deplibs_check_method=pass_all ;; |
| 2186 |
# the debian people say, arm and glibc 2.3.1 works for them with pass_all |
| 2187 |
arm* ) |
| 2188 |
lt_cv_deplibs_check_method=pass_all ;; |
| 2189 |
*) |
| 2190 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
| 2191 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
| 2192 |
esac |
| 2193 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 2194 |
;; |
2351 |
;; |
| 2195 |
|
2352 |
|
| 2196 |
netbsd*) |
2353 |
netbsd* | netbsdelf*-gnu) |
| 2197 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2354 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2198 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2355 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 2199 |
else |
2356 |
else |
|
Lines 2212-2243
Link Here
|
| 2212 |
;; |
2369 |
;; |
| 2213 |
|
2370 |
|
| 2214 |
openbsd*) |
2371 |
openbsd*) |
| 2215 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
|
| 2216 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2217 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2372 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2218 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
2373 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
| 2219 |
else |
2374 |
else |
| 2220 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
2375 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 2221 |
fi |
2376 |
fi |
| 2222 |
;; |
2377 |
;; |
| 2223 |
|
2378 |
|
| 2224 |
osf3* | osf4* | osf5*) |
2379 |
osf3* | osf4* | osf5*) |
| 2225 |
# this will be overridden with pass_all, but let us keep it just in case |
|
|
| 2226 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 2227 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 2228 |
lt_cv_deplibs_check_method=pass_all |
| 2229 |
;; |
| 2230 |
|
| 2231 |
sco3.2v5*) |
| 2232 |
lt_cv_deplibs_check_method=pass_all |
2380 |
lt_cv_deplibs_check_method=pass_all |
| 2233 |
;; |
2381 |
;; |
| 2234 |
|
2382 |
|
| 2235 |
solaris*) |
2383 |
solaris*) |
| 2236 |
lt_cv_deplibs_check_method=pass_all |
2384 |
lt_cv_deplibs_check_method=pass_all |
| 2237 |
lt_cv_file_magic_test_file=/lib/libc.so |
|
|
| 2238 |
;; |
2385 |
;; |
| 2239 |
|
2386 |
|
| 2240 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
2387 |
sysv4 | sysv4.3*) |
| 2241 |
case $host_vendor in |
2388 |
case $host_vendor in |
| 2242 |
motorola) |
2389 |
motorola) |
| 2243 |
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]]' |
2390 |
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]]' |
|
Lines 2258-2267
Link Here
|
| 2258 |
siemens) |
2405 |
siemens) |
| 2259 |
lt_cv_deplibs_check_method=pass_all |
2406 |
lt_cv_deplibs_check_method=pass_all |
| 2260 |
;; |
2407 |
;; |
|
|
2408 |
pc) |
| 2409 |
lt_cv_deplibs_check_method=pass_all |
| 2410 |
;; |
| 2261 |
esac |
2411 |
esac |
| 2262 |
;; |
2412 |
;; |
| 2263 |
|
2413 |
|
| 2264 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
2414 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 2265 |
lt_cv_deplibs_check_method=pass_all |
2415 |
lt_cv_deplibs_check_method=pass_all |
| 2266 |
;; |
2416 |
;; |
| 2267 |
esac |
2417 |
esac |
|
Lines 2281-2316
Link Here
|
| 2281 |
# Let the user override the test. |
2431 |
# Let the user override the test. |
| 2282 |
lt_cv_path_NM="$NM" |
2432 |
lt_cv_path_NM="$NM" |
| 2283 |
else |
2433 |
else |
| 2284 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2434 |
lt_nm_to_check="${ac_tool_prefix}nm" |
| 2285 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
2435 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 2286 |
IFS="$lt_save_ifs" |
2436 |
lt_nm_to_check="$lt_nm_to_check nm" |
| 2287 |
test -z "$ac_dir" && ac_dir=. |
2437 |
fi |
| 2288 |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
2438 |
for lt_tmp_nm in $lt_nm_to_check; do |
| 2289 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
2439 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2290 |
# Check to see if the nm accepts a BSD-compat flag. |
2440 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 2291 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
2441 |
IFS="$lt_save_ifs" |
| 2292 |
# nm: unknown option "B" ignored |
2442 |
test -z "$ac_dir" && ac_dir=. |
| 2293 |
# Tru64's nm complains that /dev/null is an invalid object file |
2443 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
| 2294 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
2444 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 2295 |
*/dev/null* | *'Invalid file or object type'*) |
2445 |
# Check to see if the nm accepts a BSD-compat flag. |
| 2296 |
lt_cv_path_NM="$tmp_nm -B" |
2446 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2297 |
break |
2447 |
# nm: unknown option "B" ignored |
| 2298 |
;; |
2448 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 2299 |
*) |
2449 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 2300 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
2450 |
*/dev/null* | *'Invalid file or object type'*) |
| 2301 |
*/dev/null*) |
2451 |
lt_cv_path_NM="$tmp_nm -B" |
| 2302 |
lt_cv_path_NM="$tmp_nm -p" |
|
|
| 2303 |
break |
2452 |
break |
| 2304 |
;; |
2453 |
;; |
| 2305 |
*) |
2454 |
*) |
| 2306 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
2455 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 2307 |
continue # so that we can try to find one that supports BSD flags |
2456 |
*/dev/null*) |
|
|
2457 |
lt_cv_path_NM="$tmp_nm -p" |
| 2458 |
break |
| 2459 |
;; |
| 2460 |
*) |
| 2461 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2462 |
continue # so that we can try to find one that supports BSD flags |
| 2463 |
;; |
| 2464 |
esac |
| 2308 |
;; |
2465 |
;; |
| 2309 |
esac |
2466 |
esac |
| 2310 |
esac |
2467 |
fi |
| 2311 |
fi |
2468 |
done |
|
|
2469 |
IFS="$lt_save_ifs" |
| 2312 |
done |
2470 |
done |
| 2313 |
IFS="$lt_save_ifs" |
|
|
| 2314 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
2471 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 2315 |
fi]) |
2472 |
fi]) |
| 2316 |
NM="$lt_cv_path_NM" |
2473 |
NM="$lt_cv_path_NM" |
|
Lines 2342-2354
Link Here
|
| 2342 |
# ----------------------------------- |
2499 |
# ----------------------------------- |
| 2343 |
# sets LIBLTDL to the link flags for the libltdl convenience library and |
2500 |
# sets LIBLTDL to the link flags for the libltdl convenience library and |
| 2344 |
# LTDLINCL to the include flags for the libltdl header and adds |
2501 |
# LTDLINCL to the include flags for the libltdl header and adds |
| 2345 |
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
2502 |
# --enable-ltdl-convenience to the configure arguments. Note that |
| 2346 |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
2503 |
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 2347 |
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
2504 |
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
| 2348 |
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
2505 |
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
| 2349 |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
2506 |
# (note the single quotes!). If your package is not flat and you're not |
| 2350 |
# flat and you're not using automake, define top_builddir and |
2507 |
# using automake, define top_builddir and top_srcdir appropriately in |
| 2351 |
# top_srcdir appropriately in the Makefiles. |
2508 |
# the Makefiles. |
| 2352 |
AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
2509 |
AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
| 2353 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2510 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 2354 |
case $enable_ltdl_convenience in |
2511 |
case $enable_ltdl_convenience in |
|
Lines 2367-2379
Link Here
|
| 2367 |
# ----------------------------------- |
2524 |
# ----------------------------------- |
| 2368 |
# sets LIBLTDL to the link flags for the libltdl installable library and |
2525 |
# sets LIBLTDL to the link flags for the libltdl installable library and |
| 2369 |
# LTDLINCL to the include flags for the libltdl header and adds |
2526 |
# LTDLINCL to the include flags for the libltdl header and adds |
| 2370 |
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
2527 |
# --enable-ltdl-install to the configure arguments. Note that |
| 2371 |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
2528 |
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 2372 |
# DIRECTORY is not provided and an installed libltdl is not found, it is |
2529 |
# and an installed libltdl is not found, it is assumed to be `libltdl'. |
| 2373 |
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
2530 |
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
| 2374 |
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
2531 |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
| 2375 |
# quotes!). If your package is not flat and you're not using automake, |
2532 |
# flat and you're not using automake, define top_builddir and top_srcdir |
| 2376 |
# define top_builddir and top_srcdir appropriately in the Makefiles. |
2533 |
# appropriately in the Makefiles. |
| 2377 |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
2534 |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
| 2378 |
AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
2535 |
AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
| 2379 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2536 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
|
Lines 2411-2420
Link Here
|
| 2411 |
# --------------- |
2568 |
# --------------- |
| 2412 |
AC_DEFUN([_LT_AC_LANG_CXX], |
2569 |
AC_DEFUN([_LT_AC_LANG_CXX], |
| 2413 |
[AC_REQUIRE([AC_PROG_CXX]) |
2570 |
[AC_REQUIRE([AC_PROG_CXX]) |
| 2414 |
AC_REQUIRE([AC_PROG_CXXCPP]) |
2571 |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 2415 |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
2572 |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
| 2416 |
])# _LT_AC_LANG_CXX |
2573 |
])# _LT_AC_LANG_CXX |
| 2417 |
|
2574 |
|
|
|
2575 |
# _LT_AC_PROG_CXXCPP |
| 2576 |
# ------------------ |
| 2577 |
AC_DEFUN([_LT_AC_PROG_CXXCPP], |
| 2578 |
[ |
| 2579 |
AC_REQUIRE([AC_PROG_CXX]) |
| 2580 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 2581 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 2582 |
(test "X$CXX" != "Xg++"))) ; then |
| 2583 |
AC_PROG_CXXCPP |
| 2584 |
fi |
| 2585 |
])# _LT_AC_PROG_CXXCPP |
| 2418 |
|
2586 |
|
| 2419 |
# AC_LIBTOOL_F77 |
2587 |
# AC_LIBTOOL_F77 |
| 2420 |
# -------------- |
2588 |
# -------------- |
|
Lines 2454-2460
Link Here
|
| 2454 |
|
2622 |
|
| 2455 |
|
2623 |
|
| 2456 |
# AC_LIBTOOL_RC |
2624 |
# AC_LIBTOOL_RC |
| 2457 |
# -------------- |
2625 |
# ------------- |
| 2458 |
# enable support for Windows resource files |
2626 |
# enable support for Windows resource files |
| 2459 |
AC_DEFUN([AC_LIBTOOL_RC], |
2627 |
AC_DEFUN([AC_LIBTOOL_RC], |
| 2460 |
[AC_REQUIRE([LT_AC_PROG_RC]) |
2628 |
[AC_REQUIRE([LT_AC_PROG_RC]) |
|
Lines 2487-2522
Link Here
|
| 2487 |
|
2655 |
|
| 2488 |
_LT_AC_SYS_COMPILER |
2656 |
_LT_AC_SYS_COMPILER |
| 2489 |
|
2657 |
|
| 2490 |
# |
2658 |
# save warnings/boilerplate of simple test code |
| 2491 |
# Check for any special shared library compilation flags. |
2659 |
_LT_COMPILER_BOILERPLATE |
| 2492 |
# |
2660 |
_LT_LINKER_BOILERPLATE |
| 2493 |
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
|
|
| 2494 |
if test "$GCC" = no; then |
| 2495 |
case $host_os in |
| 2496 |
sco3.2v5*) |
| 2497 |
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
| 2498 |
;; |
| 2499 |
esac |
| 2500 |
fi |
| 2501 |
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
| 2502 |
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
| 2503 |
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : |
| 2504 |
else |
| 2505 |
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
| 2506 |
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
| 2507 |
fi |
| 2508 |
fi |
| 2509 |
|
| 2510 |
|
| 2511 |
# |
| 2512 |
# Check to make sure the static flag actually works. |
| 2513 |
# |
| 2514 |
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
| 2515 |
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 2516 |
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
| 2517 |
[], |
| 2518 |
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 2519 |
|
| 2520 |
|
2661 |
|
| 2521 |
## CAVEAT EMPTOR: |
2662 |
## CAVEAT EMPTOR: |
| 2522 |
## There is no encapsulation within the following macros, do not change |
2663 |
## There is no encapsulation within the following macros, do not change |
|
Lines 2530-2538
Link Here
|
| 2530 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
2671 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 2531 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
2672 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 2532 |
AC_LIBTOOL_SYS_LIB_STRIP |
2673 |
AC_LIBTOOL_SYS_LIB_STRIP |
| 2533 |
AC_LIBTOOL_DLOPEN_SELF($1) |
2674 |
AC_LIBTOOL_DLOPEN_SELF |
| 2534 |
|
2675 |
|
| 2535 |
# Report which librarie types wil actually be built |
2676 |
# Report which library types will actually be built |
| 2536 |
AC_MSG_CHECKING([if libtool supports shared libraries]) |
2677 |
AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 2537 |
AC_MSG_RESULT([$can_build_shared]) |
2678 |
AC_MSG_RESULT([$can_build_shared]) |
| 2538 |
|
2679 |
|
|
Lines 2541-2547
Link Here
|
| 2541 |
|
2682 |
|
| 2542 |
# On AIX, shared libraries and static libraries use the same namespace, and |
2683 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 2543 |
# are all built from PIC. |
2684 |
# are all built from PIC. |
| 2544 |
case "$host_os" in |
2685 |
case $host_os in |
| 2545 |
aix3*) |
2686 |
aix3*) |
| 2546 |
test "$enable_shared" = yes && enable_static=no |
2687 |
test "$enable_shared" = yes && enable_static=no |
| 2547 |
if test -n "$RANLIB"; then |
2688 |
if test -n "$RANLIB"; then |
|
Lines 2550-2597
Link Here
|
| 2550 |
fi |
2691 |
fi |
| 2551 |
;; |
2692 |
;; |
| 2552 |
|
2693 |
|
| 2553 |
aix4*) |
2694 |
aix4* | aix5*) |
| 2554 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
2695 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 2555 |
test "$enable_shared" = yes && enable_static=no |
2696 |
test "$enable_shared" = yes && enable_static=no |
| 2556 |
fi |
2697 |
fi |
| 2557 |
;; |
2698 |
;; |
| 2558 |
darwin* | rhapsody*) |
|
|
| 2559 |
if test "$GCC" = yes; then |
| 2560 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 2561 |
case "$host_os" in |
| 2562 |
rhapsody* | darwin1.[[012]]) |
| 2563 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
| 2564 |
;; |
| 2565 |
*) # Darwin 1.3 on |
| 2566 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 2567 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 2568 |
else |
| 2569 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 2570 |
10.[012]) |
| 2571 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 2572 |
;; |
| 2573 |
10.*) |
| 2574 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' |
| 2575 |
;; |
| 2576 |
esac |
| 2577 |
fi |
| 2578 |
;; |
| 2579 |
esac |
| 2580 |
output_verbose_link_cmd='echo' |
| 2581 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 2582 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 2583 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 2584 |
_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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 2585 |
_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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 2586 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 2587 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 2588 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 2589 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 2590 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 2591 |
else |
| 2592 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2593 |
fi |
| 2594 |
;; |
| 2595 |
esac |
2699 |
esac |
| 2596 |
AC_MSG_RESULT([$enable_shared]) |
2700 |
AC_MSG_RESULT([$enable_shared]) |
| 2597 |
|
2701 |
|
|
Lines 2616-2622
Link Here
|
| 2616 |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
2720 |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
| 2617 |
[AC_LANG_PUSH(C++) |
2721 |
[AC_LANG_PUSH(C++) |
| 2618 |
AC_REQUIRE([AC_PROG_CXX]) |
2722 |
AC_REQUIRE([AC_PROG_CXX]) |
| 2619 |
AC_REQUIRE([AC_PROG_CXXCPP]) |
2723 |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 2620 |
|
2724 |
|
| 2621 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2725 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 2622 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
2726 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
|
Lines 2628-2633
Link Here
|
| 2628 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
2732 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 2629 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2733 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 2630 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
2734 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
|
|
2735 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 2631 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
2736 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 2632 |
_LT_AC_TAGVAR(module_cmds, $1)= |
2737 |
_LT_AC_TAGVAR(module_cmds, $1)= |
| 2633 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
2738 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
|
Lines 2645-2651
Link Here
|
| 2645 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
2750 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| 2646 |
|
2751 |
|
| 2647 |
# Source file extension for C++ test sources. |
2752 |
# Source file extension for C++ test sources. |
| 2648 |
ac_ext=cc |
2753 |
ac_ext=cpp |
| 2649 |
|
2754 |
|
| 2650 |
# Object file extension for compiled C++ test sources. |
2755 |
# Object file extension for compiled C++ test sources. |
| 2651 |
objext=o |
2756 |
objext=o |
|
Lines 2655-2665
Link Here
|
| 2655 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
2760 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 2656 |
|
2761 |
|
| 2657 |
# Code to be used in simple link tests |
2762 |
# Code to be used in simple link tests |
| 2658 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
2763 |
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' |
| 2659 |
|
2764 |
|
| 2660 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
2765 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 2661 |
_LT_AC_SYS_COMPILER |
2766 |
_LT_AC_SYS_COMPILER |
| 2662 |
|
2767 |
|
|
|
2768 |
# save warnings/boilerplate of simple test code |
| 2769 |
_LT_COMPILER_BOILERPLATE |
| 2770 |
_LT_LINKER_BOILERPLATE |
| 2771 |
|
| 2663 |
# Allow CC to be a program name with arguments. |
2772 |
# Allow CC to be a program name with arguments. |
| 2664 |
lt_save_CC=$CC |
2773 |
lt_save_CC=$CC |
| 2665 |
lt_save_LD=$LD |
2774 |
lt_save_LD=$LD |
|
Lines 2670-2687
Link Here
|
| 2670 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
2779 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 2671 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
2780 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 2672 |
else |
2781 |
else |
| 2673 |
unset lt_cv_prog_gnu_ld |
2782 |
$as_unset lt_cv_prog_gnu_ld |
| 2674 |
fi |
2783 |
fi |
| 2675 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
2784 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
| 2676 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
2785 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
| 2677 |
else |
2786 |
else |
| 2678 |
unset lt_cv_path_LD |
2787 |
$as_unset lt_cv_path_LD |
| 2679 |
fi |
2788 |
fi |
| 2680 |
test -z "${LDCXX+set}" || LD=$LDCXX |
2789 |
test -z "${LDCXX+set}" || LD=$LDCXX |
| 2681 |
CC=${CXX-"c++"} |
2790 |
CC=${CXX-"c++"} |
| 2682 |
compiler=$CC |
2791 |
compiler=$CC |
| 2683 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
2792 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
| 2684 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
2793 |
_LT_CC_BASENAME([$compiler]) |
| 2685 |
|
2794 |
|
| 2686 |
# We don't want -fno-exception wen compiling C++ code, so set the |
2795 |
# We don't want -fno-exception wen compiling C++ code, so set the |
| 2687 |
# no_builtin_flag separately |
2796 |
# no_builtin_flag separately |
|
Lines 2699-2706
Link Here
|
| 2699 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
2808 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 2700 |
# archiving commands below assume that GNU ld is being used. |
2809 |
# archiving commands below assume that GNU ld is being used. |
| 2701 |
if test "$with_gnu_ld" = yes; then |
2810 |
if test "$with_gnu_ld" = yes; then |
| 2702 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
2811 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 2703 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
2812 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 2704 |
|
2813 |
|
| 2705 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
2814 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 2706 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
2815 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
Lines 2726-2732
Link Here
|
| 2726 |
# linker, instead of GNU ld. If possible, this setting should |
2835 |
# linker, instead of GNU ld. If possible, this setting should |
| 2727 |
# overridden to take advantage of the native linker features on |
2836 |
# overridden to take advantage of the native linker features on |
| 2728 |
# the platform it is being used on. |
2837 |
# the platform it is being used on. |
| 2729 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib' |
2838 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 2730 |
fi |
2839 |
fi |
| 2731 |
|
2840 |
|
| 2732 |
# Commands to make compiler produce verbose output that lists |
2841 |
# Commands to make compiler produce verbose output that lists |
|
Lines 2756-2763
Link Here
|
| 2756 |
exp_sym_flag='-Bexport' |
2865 |
exp_sym_flag='-Bexport' |
| 2757 |
no_entry_flag="" |
2866 |
no_entry_flag="" |
| 2758 |
else |
2867 |
else |
| 2759 |
# KDE requires run time linking. Make it the default. |
2868 |
aix_use_runtimelinking=no |
| 2760 |
aix_use_runtimelinking=yes |
2869 |
|
|
|
2870 |
# Test if we are trying to use run time linking or normal |
| 2871 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 2872 |
# need to do runtime linking. |
| 2873 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 2874 |
for ld_flag in $LDFLAGS; do |
| 2875 |
case $ld_flag in |
| 2876 |
*-brtl*) |
| 2877 |
aix_use_runtimelinking=yes |
| 2878 |
break |
| 2879 |
;; |
| 2880 |
esac |
| 2881 |
done |
| 2882 |
;; |
| 2883 |
esac |
| 2884 |
|
| 2761 |
exp_sym_flag='-bexport' |
2885 |
exp_sym_flag='-bexport' |
| 2762 |
no_entry_flag='-bnoentry' |
2886 |
no_entry_flag='-bnoentry' |
| 2763 |
fi |
2887 |
fi |
|
Lines 2774-2780
Link Here
|
| 2774 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2898 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 2775 |
|
2899 |
|
| 2776 |
if test "$GXX" = yes; then |
2900 |
if test "$GXX" = yes; then |
| 2777 |
case $host_os in aix4.[012]|aix4.[012].*) |
2901 |
case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 2778 |
# We only want to do this on AIX 4.2 and lower, the check |
2902 |
# We only want to do this on AIX 4.2 and lower, the check |
| 2779 |
# below for broken collect2 doesn't work under 4.3+ |
2903 |
# below for broken collect2 doesn't work under 4.3+ |
| 2780 |
collect2name=`${CC} -print-prog-name=collect2` |
2904 |
collect2name=`${CC} -print-prog-name=collect2` |
|
Lines 2793-2800
Link Here
|
| 2793 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2917 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 2794 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2918 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 2795 |
fi |
2919 |
fi |
|
|
2920 |
;; |
| 2796 |
esac |
2921 |
esac |
| 2797 |
shared_flag='-shared' |
2922 |
shared_flag='-shared' |
|
|
2923 |
if test "$aix_use_runtimelinking" = yes; then |
| 2924 |
shared_flag="$shared_flag "'${wl}-G' |
| 2925 |
fi |
| 2798 |
else |
2926 |
else |
| 2799 |
# not using gcc |
2927 |
# not using gcc |
| 2800 |
if test "$host_cpu" = ia64; then |
2928 |
if test "$host_cpu" = ia64; then |
|
Lines 2803-2817
Link Here
|
| 2803 |
shared_flag='-G' |
2931 |
shared_flag='-G' |
| 2804 |
else |
2932 |
else |
| 2805 |
if test "$aix_use_runtimelinking" = yes; then |
2933 |
if test "$aix_use_runtimelinking" = yes; then |
| 2806 |
shared_flag='-qmkshrobj ${wl}-G' |
2934 |
shared_flag='${wl}-G' |
| 2807 |
else |
2935 |
else |
| 2808 |
shared_flag='-qmkshrobj' |
2936 |
shared_flag='${wl}-bM:SRE' |
| 2809 |
fi |
2937 |
fi |
| 2810 |
fi |
2938 |
fi |
| 2811 |
fi |
2939 |
fi |
| 2812 |
|
2940 |
|
| 2813 |
# Let the compiler handle the export list. |
2941 |
# It seems that -bexpall does not export symbols beginning with |
| 2814 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
2942 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
|
2943 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 2815 |
if test "$aix_use_runtimelinking" = yes; then |
2944 |
if test "$aix_use_runtimelinking" = yes; then |
| 2816 |
# Warning - without using the other runtime loading flags (-brtl), |
2945 |
# Warning - without using the other runtime loading flags (-brtl), |
| 2817 |
# -berok will link without error, but may produce a broken library. |
2946 |
# -berok will link without error, but may produce a broken library. |
|
Lines 2820-2832
Link Here
|
| 2820 |
_LT_AC_SYS_LIBPATH_AIX |
2949 |
_LT_AC_SYS_LIBPATH_AIX |
| 2821 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2950 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 2822 |
|
2951 |
|
| 2823 |
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
2952 |
_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" |
| 2824 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
| 2825 |
else |
2953 |
else |
| 2826 |
if test "$host_cpu" = ia64; then |
2954 |
if test "$host_cpu" = ia64; then |
| 2827 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
2955 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 2828 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
2956 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 2829 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
2957 |
_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" |
| 2830 |
else |
2958 |
else |
| 2831 |
# Determine the default libpath from the value encoded in an empty executable. |
2959 |
# Determine the default libpath from the value encoded in an empty executable. |
| 2832 |
_LT_AC_SYS_LIBPATH_AIX |
2960 |
_LT_AC_SYS_LIBPATH_AIX |
|
Lines 2835-2850
Link Here
|
| 2835 |
# -berok will link without error, but may produce a broken library. |
2963 |
# -berok will link without error, but may produce a broken library. |
| 2836 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2964 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 2837 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2965 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 2838 |
# -bexpall does not export symbols beginning with underscore (_) |
|
|
| 2839 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 2840 |
# Exported symbols can be pulled into shared objects from archives |
2966 |
# Exported symbols can be pulled into shared objects from archives |
| 2841 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
2967 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 2842 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
2968 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 2843 |
# This is similar to how AIX traditionally builds it's shared libraries. |
2969 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 2844 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
2970 |
_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' |
| 2845 |
fi |
2971 |
fi |
| 2846 |
fi |
2972 |
fi |
| 2847 |
;; |
2973 |
;; |
|
|
2974 |
|
| 2975 |
beos*) |
| 2976 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 2977 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 2978 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 2979 |
# support --undefined. This deserves some investigation. FIXME |
| 2980 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 2981 |
else |
| 2982 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2983 |
fi |
| 2984 |
;; |
| 2985 |
|
| 2848 |
chorus*) |
2986 |
chorus*) |
| 2849 |
case $cc_basename in |
2987 |
case $cc_basename in |
| 2850 |
*) |
2988 |
*) |
|
Lines 2858-2869
Link Here
|
| 2858 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
2996 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 2859 |
# as there is no search path for DLLs. |
2997 |
# as there is no search path for DLLs. |
| 2860 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2998 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 2861 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
2999 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 2862 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
3000 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 2863 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
3001 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 2864 |
|
3002 |
|
| 2865 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
3003 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 2866 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
3004 |
_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' |
| 2867 |
# If the export-symbols file already is a .def file (1st line |
3005 |
# If the export-symbols file already is a .def file (1st line |
| 2868 |
# is EXPORTS), use it as is; otherwise, prepend... |
3006 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 2869 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
3007 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
Lines 2872-2941
Link Here
|
| 2872 |
echo EXPORTS > $output_objdir/$soname.def; |
3010 |
echo EXPORTS > $output_objdir/$soname.def; |
| 2873 |
cat $export_symbols >> $output_objdir/$soname.def; |
3011 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 2874 |
fi~ |
3012 |
fi~ |
| 2875 |
$CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
3013 |
$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' |
| 2876 |
else |
3014 |
else |
| 2877 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3015 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2878 |
fi |
3016 |
fi |
| 2879 |
;; |
3017 |
;; |
|
|
3018 |
darwin* | rhapsody*) |
| 3019 |
case $host_os in |
| 3020 |
rhapsody* | darwin1.[[012]]) |
| 3021 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 3022 |
;; |
| 3023 |
*) # Darwin 1.3 on |
| 3024 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 3025 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 3026 |
else |
| 3027 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 3028 |
10.[[012]]) |
| 3029 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 3030 |
;; |
| 3031 |
10.*) |
| 3032 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 3033 |
;; |
| 3034 |
esac |
| 3035 |
fi |
| 3036 |
;; |
| 3037 |
esac |
| 3038 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3039 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3040 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 3041 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 3042 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 3043 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 2880 |
|
3044 |
|
| 2881 |
darwin* | rhapsody*) |
3045 |
if test "$GXX" = yes ; then |
| 2882 |
if test "$GXX" = yes; then |
3046 |
lt_int_apple_cc_single_mod=no |
| 2883 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3047 |
output_verbose_link_cmd='echo' |
| 2884 |
case "$host_os" in |
3048 |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 2885 |
rhapsody* | darwin1.[[012]]) |
3049 |
lt_int_apple_cc_single_mod=yes |
| 2886 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
3050 |
fi |
| 2887 |
;; |
3051 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 2888 |
*) # Darwin 1.3 on |
3052 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 2889 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
3053 |
else |
| 2890 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
3054 |
_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' |
| 2891 |
else |
3055 |
fi |
| 2892 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
3056 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 2893 |
10.[012]) |
3057 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 2894 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
3058 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 2895 |
;; |
3059 |
_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}' |
| 2896 |
10.*) |
3060 |
else |
| 2897 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' |
3061 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}' |
| 2898 |
;; |
3062 |
fi |
| 2899 |
esac |
3063 |
_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}' |
| 2900 |
fi |
3064 |
else |
| 2901 |
;; |
3065 |
case $cc_basename in |
| 2902 |
esac |
3066 |
xlc*) |
| 2903 |
lt_int_apple_cc_single_mod=no |
3067 |
output_verbose_link_cmd='echo' |
| 2904 |
output_verbose_link_cmd='echo' |
3068 |
_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' |
| 2905 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
3069 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 2906 |
lt_int_apple_cc_single_mod=yes |
3070 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 2907 |
fi |
3071 |
_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}' |
| 2908 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
3072 |
_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}' |
| 2909 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
3073 |
;; |
| 2910 |
else |
3074 |
*) |
| 2911 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
3075 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2912 |
fi |
3076 |
;; |
| 2913 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
3077 |
esac |
| 2914 |
|
3078 |
fi |
| 2915 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
3079 |
;; |
| 2916 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
| 2917 |
_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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 2918 |
else |
| 2919 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 2920 |
fi |
| 2921 |
_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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 2922 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 2923 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 2924 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 2925 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 2926 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 2927 |
else |
| 2928 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2929 |
fi |
| 2930 |
;; |
| 2931 |
|
3080 |
|
| 2932 |
dgux*) |
3081 |
dgux*) |
| 2933 |
case $cc_basename in |
3082 |
case $cc_basename in |
| 2934 |
ec++) |
3083 |
ec++*) |
| 2935 |
# FIXME: insert proper C++ library support |
3084 |
# FIXME: insert proper C++ library support |
| 2936 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3085 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2937 |
;; |
3086 |
;; |
| 2938 |
ghcx) |
3087 |
ghcx*) |
| 2939 |
# Green Hills C++ Compiler |
3088 |
# Green Hills C++ Compiler |
| 2940 |
# FIXME: insert proper C++ library support |
3089 |
# FIXME: insert proper C++ library support |
| 2941 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3090 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
Lines 2946-2959
Link Here
|
| 2946 |
;; |
3095 |
;; |
| 2947 |
esac |
3096 |
esac |
| 2948 |
;; |
3097 |
;; |
| 2949 |
freebsd[12]*) |
3098 |
freebsd[[12]]*) |
| 2950 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
3099 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
| 2951 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3100 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2952 |
;; |
3101 |
;; |
| 2953 |
freebsd-elf*) |
3102 |
freebsd-elf*) |
| 2954 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3103 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 2955 |
;; |
3104 |
;; |
| 2956 |
freebsd* | kfreebsd*-gnu) |
3105 |
freebsd* | dragonfly*) |
| 2957 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
3106 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 2958 |
# conventions |
3107 |
# conventions |
| 2959 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
3108 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
|
Lines 2970-2981
Link Here
|
| 2970 |
# location of the library. |
3119 |
# location of the library. |
| 2971 |
|
3120 |
|
| 2972 |
case $cc_basename in |
3121 |
case $cc_basename in |
| 2973 |
CC) |
3122 |
CC*) |
| 2974 |
# FIXME: insert proper C++ library support |
3123 |
# FIXME: insert proper C++ library support |
| 2975 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3124 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2976 |
;; |
3125 |
;; |
| 2977 |
aCC) |
3126 |
aCC*) |
| 2978 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
3127 |
_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' |
| 2979 |
# Commands to make compiler produce verbose output that lists |
3128 |
# Commands to make compiler produce verbose output that lists |
| 2980 |
# what "hidden" libraries, object files and flags are used when |
3129 |
# what "hidden" libraries, object files and flags are used when |
| 2981 |
# linking a shared library. |
3130 |
# linking a shared library. |
|
Lines 2984-2994
Link Here
|
| 2984 |
# explicitly linking system object files so we need to strip them |
3133 |
# explicitly linking system object files so we need to strip them |
| 2985 |
# from the output so that they don't get included in the library |
3134 |
# from the output so that they don't get included in the library |
| 2986 |
# dependencies. |
3135 |
# dependencies. |
| 2987 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
3136 |
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' |
| 2988 |
;; |
3137 |
;; |
| 2989 |
*) |
3138 |
*) |
| 2990 |
if test "$GXX" = yes; then |
3139 |
if test "$GXX" = yes; then |
| 2991 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
3140 |
_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' |
| 2992 |
else |
3141 |
else |
| 2993 |
# FIXME: insert proper C++ library support |
3142 |
# FIXME: insert proper C++ library support |
| 2994 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3143 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
Lines 2998-3030
Link Here
|
| 2998 |
;; |
3147 |
;; |
| 2999 |
hpux10*|hpux11*) |
3148 |
hpux10*|hpux11*) |
| 3000 |
if test $with_gnu_ld = no; then |
3149 |
if test $with_gnu_ld = no; then |
| 3001 |
case "$host_cpu" in |
3150 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3002 |
hppa*64*) |
3151 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3003 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
3152 |
|
|
|
3153 |
case $host_cpu in |
| 3154 |
hppa*64*|ia64*) |
| 3004 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
3155 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 3005 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
| 3006 |
;; |
| 3007 |
ia64*) |
| 3008 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3009 |
;; |
3156 |
;; |
| 3010 |
*) |
3157 |
*) |
| 3011 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
| 3012 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3013 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
3158 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3014 |
;; |
3159 |
;; |
| 3015 |
esac |
3160 |
esac |
| 3016 |
fi |
3161 |
fi |
| 3017 |
case "$host_cpu" in |
3162 |
case $host_cpu in |
| 3018 |
hppa*64*) |
3163 |
hppa*64*|ia64*) |
| 3019 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
| 3020 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3021 |
;; |
| 3022 |
ia64*) |
| 3023 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
3164 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3024 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3165 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3025 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
|
|
| 3026 |
# but as the default |
| 3027 |
# location of the library. |
| 3028 |
;; |
3166 |
;; |
| 3029 |
*) |
3167 |
*) |
| 3030 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3168 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
Lines 3035-3051
Link Here
|
| 3035 |
esac |
3173 |
esac |
| 3036 |
|
3174 |
|
| 3037 |
case $cc_basename in |
3175 |
case $cc_basename in |
| 3038 |
CC) |
3176 |
CC*) |
| 3039 |
# FIXME: insert proper C++ library support |
3177 |
# FIXME: insert proper C++ library support |
| 3040 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3178 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3041 |
;; |
3179 |
;; |
| 3042 |
aCC) |
3180 |
aCC*) |
| 3043 |
case "$host_cpu" in |
3181 |
case $host_cpu in |
| 3044 |
hppa*64*|ia64*) |
3182 |
hppa*64*) |
| 3045 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
3183 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
3184 |
;; |
| 3185 |
ia64*) |
| 3186 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 3046 |
;; |
3187 |
;; |
| 3047 |
*) |
3188 |
*) |
| 3048 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
3189 |
_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' |
| 3049 |
;; |
3190 |
;; |
| 3050 |
esac |
3191 |
esac |
| 3051 |
# Commands to make compiler produce verbose output that lists |
3192 |
# Commands to make compiler produce verbose output that lists |
|
Lines 3061-3072
Link Here
|
| 3061 |
*) |
3202 |
*) |
| 3062 |
if test "$GXX" = yes; then |
3203 |
if test "$GXX" = yes; then |
| 3063 |
if test $with_gnu_ld = no; then |
3204 |
if test $with_gnu_ld = no; then |
| 3064 |
case "$host_cpu" in |
3205 |
case $host_cpu in |
| 3065 |
ia64*|hppa*64*) |
3206 |
hppa*64*) |
| 3066 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
3207 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
3208 |
;; |
| 3209 |
ia64*) |
| 3210 |
_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' |
| 3067 |
;; |
3211 |
;; |
| 3068 |
*) |
3212 |
*) |
| 3069 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
3213 |
_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' |
| 3070 |
;; |
3214 |
;; |
| 3071 |
esac |
3215 |
esac |
| 3072 |
fi |
3216 |
fi |
|
Lines 3077-3087
Link Here
|
| 3077 |
;; |
3221 |
;; |
| 3078 |
esac |
3222 |
esac |
| 3079 |
;; |
3223 |
;; |
|
|
3224 |
interix3*) |
| 3225 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3226 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3227 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3228 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3229 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 3230 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 3231 |
# default) and relocated if they conflict, which is a slow very memory |
| 3232 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 3233 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 3234 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 3235 |
_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' |
| 3236 |
_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' |
| 3237 |
;; |
| 3080 |
irix5* | irix6*) |
3238 |
irix5* | irix6*) |
| 3081 |
case $cc_basename in |
3239 |
case $cc_basename in |
| 3082 |
CC) |
3240 |
CC*) |
| 3083 |
# SGI C++ |
3241 |
# SGI C++ |
| 3084 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
3242 |
_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' |
| 3085 |
|
3243 |
|
| 3086 |
# Archives containing C++ object files must be created using |
3244 |
# Archives containing C++ object files must be created using |
| 3087 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
3245 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
Lines 3092-3100
Link Here
|
| 3092 |
*) |
3250 |
*) |
| 3093 |
if test "$GXX" = yes; then |
3251 |
if test "$GXX" = yes; then |
| 3094 |
if test "$with_gnu_ld" = no; then |
3252 |
if test "$with_gnu_ld" = no; then |
| 3095 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
3253 |
_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' |
| 3096 |
else |
3254 |
else |
| 3097 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
3255 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 3098 |
fi |
3256 |
fi |
| 3099 |
fi |
3257 |
fi |
| 3100 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
3258 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
Lines 3103-3118
Link Here
|
| 3103 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3261 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 3104 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3262 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3105 |
;; |
3263 |
;; |
| 3106 |
linux*) |
3264 |
linux* | k*bsd*-gnu) |
| 3107 |
case $cc_basename in |
3265 |
case $cc_basename in |
| 3108 |
KCC) |
3266 |
KCC*) |
| 3109 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
3267 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 3110 |
|
3268 |
|
| 3111 |
# KCC will only create a shared library if the output file |
3269 |
# KCC will only create a shared library if the output file |
| 3112 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
3270 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 3113 |
# to its proper name (with version) after linking. |
3271 |
# to its proper name (with version) after linking. |
| 3114 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
3272 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 3115 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
3273 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 3116 |
# Commands to make compiler produce verbose output that lists |
3274 |
# Commands to make compiler produce verbose output that lists |
| 3117 |
# what "hidden" libraries, object files and flags are used when |
3275 |
# what "hidden" libraries, object files and flags are used when |
| 3118 |
# linking a shared library. |
3276 |
# linking a shared library. |
|
Lines 3130-3149
Link Here
|
| 3130 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
3288 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 3131 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3289 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 3132 |
;; |
3290 |
;; |
| 3133 |
icpc) |
3291 |
icpc*) |
| 3134 |
# Intel C++ |
3292 |
# Intel C++ |
| 3135 |
with_gnu_ld=yes |
3293 |
with_gnu_ld=yes |
|
|
3294 |
# version 8.0 and above of icpc choke on multiply defined symbols |
| 3295 |
# if we add $predep_objects and $postdep_objects, however 7.1 and |
| 3296 |
# earlier do not add the objects themselves. |
| 3297 |
case `$CC -V 2>&1` in |
| 3298 |
*"Version 7."*) |
| 3299 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3300 |
_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' |
| 3301 |
;; |
| 3302 |
*) # Version 8.0 or newer |
| 3303 |
tmp_idyn= |
| 3304 |
case $host_cpu in |
| 3305 |
ia64*) tmp_idyn=' -i_dynamic';; |
| 3306 |
esac |
| 3307 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3308 |
_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' |
| 3309 |
;; |
| 3310 |
esac |
| 3136 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3311 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3137 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
|
|
| 3138 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3139 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3312 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3140 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3313 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 3141 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
3314 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 3142 |
;; |
3315 |
;; |
| 3143 |
cxx) |
3316 |
pgCC*) |
|
|
3317 |
# Portland Group C++ compiler |
| 3318 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 3319 |
_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' |
| 3320 |
|
| 3321 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 3322 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 3323 |
_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' |
| 3324 |
;; |
| 3325 |
cxx*) |
| 3144 |
# Compaq C++ |
3326 |
# Compaq C++ |
| 3145 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
3327 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3146 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
3328 |
_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' |
| 3147 |
|
3329 |
|
| 3148 |
runpath_var=LD_RUN_PATH |
3330 |
runpath_var=LD_RUN_PATH |
| 3149 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
3331 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
|
Lines 3171-3177
Link Here
|
| 3171 |
;; |
3353 |
;; |
| 3172 |
mvs*) |
3354 |
mvs*) |
| 3173 |
case $cc_basename in |
3355 |
case $cc_basename in |
| 3174 |
cxx) |
3356 |
cxx*) |
| 3175 |
# FIXME: insert proper C++ library support |
3357 |
# FIXME: insert proper C++ library support |
| 3176 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3358 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3177 |
;; |
3359 |
;; |
|
Lines 3181-3187
Link Here
|
| 3181 |
;; |
3363 |
;; |
| 3182 |
esac |
3364 |
esac |
| 3183 |
;; |
3365 |
;; |
| 3184 |
netbsd*) |
3366 |
netbsd* | netbsdelf*-gnu) |
| 3185 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
3367 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3186 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
3368 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 3187 |
wlarc= |
3369 |
wlarc= |
|
Lines 3192-3206
Link Here
|
| 3192 |
# Workaround some broken pre-1.5 toolchains |
3374 |
# Workaround some broken pre-1.5 toolchains |
| 3193 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
3375 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 3194 |
;; |
3376 |
;; |
|
|
3377 |
openbsd2*) |
| 3378 |
# C++ shared libraries are fairly broken |
| 3379 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3380 |
;; |
| 3381 |
openbsd*) |
| 3382 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3383 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3384 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 3385 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3386 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3387 |
_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' |
| 3388 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3389 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 3390 |
fi |
| 3391 |
output_verbose_link_cmd='echo' |
| 3392 |
;; |
| 3195 |
osf3*) |
3393 |
osf3*) |
| 3196 |
case $cc_basename in |
3394 |
case $cc_basename in |
| 3197 |
KCC) |
3395 |
KCC*) |
| 3198 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
3396 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 3199 |
|
3397 |
|
| 3200 |
# KCC will only create a shared library if the output file |
3398 |
# KCC will only create a shared library if the output file |
| 3201 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
3399 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 3202 |
# to its proper name (with version) after linking. |
3400 |
# to its proper name (with version) after linking. |
| 3203 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
3401 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 3204 |
|
3402 |
|
| 3205 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3403 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3206 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3404 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
Lines 3210-3223
Link Here
|
| 3210 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3408 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 3211 |
|
3409 |
|
| 3212 |
;; |
3410 |
;; |
| 3213 |
RCC) |
3411 |
RCC*) |
| 3214 |
# Rational C++ 2.4.1 |
3412 |
# Rational C++ 2.4.1 |
| 3215 |
# FIXME: insert proper C++ library support |
3413 |
# FIXME: insert proper C++ library support |
| 3216 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3414 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3217 |
;; |
3415 |
;; |
| 3218 |
cxx) |
3416 |
cxx*) |
| 3219 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3417 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 3220 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
3418 |
_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' |
| 3221 |
|
3419 |
|
| 3222 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3420 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 3223 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3421 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
Lines 3235-3241
Link Here
|
| 3235 |
*) |
3433 |
*) |
| 3236 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3434 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 3237 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3435 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 3238 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
3436 |
_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' |
| 3239 |
|
3437 |
|
| 3240 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3438 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 3241 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3439 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
Lines 3254-3266
Link Here
|
| 3254 |
;; |
3452 |
;; |
| 3255 |
osf4* | osf5*) |
3453 |
osf4* | osf5*) |
| 3256 |
case $cc_basename in |
3454 |
case $cc_basename in |
| 3257 |
KCC) |
3455 |
KCC*) |
| 3258 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
3456 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 3259 |
|
3457 |
|
| 3260 |
# KCC will only create a shared library if the output file |
3458 |
# KCC will only create a shared library if the output file |
| 3261 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
3459 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 3262 |
# to its proper name (with version) after linking. |
3460 |
# to its proper name (with version) after linking. |
| 3263 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
3461 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 3264 |
|
3462 |
|
| 3265 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3463 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3266 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3464 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
Lines 3269-3285
Link Here
|
| 3269 |
# the KAI C++ compiler. |
3467 |
# the KAI C++ compiler. |
| 3270 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
3468 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
| 3271 |
;; |
3469 |
;; |
| 3272 |
RCC) |
3470 |
RCC*) |
| 3273 |
# Rational C++ 2.4.1 |
3471 |
# Rational C++ 2.4.1 |
| 3274 |
# FIXME: insert proper C++ library support |
3472 |
# FIXME: insert proper C++ library support |
| 3275 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3473 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3276 |
;; |
3474 |
;; |
| 3277 |
cxx) |
3475 |
cxx*) |
| 3278 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
3476 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 3279 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
3477 |
_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' |
| 3280 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
3478 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 3281 |
echo "-hidden">> $lib.exp~ |
3479 |
echo "-hidden">> $lib.exp~ |
| 3282 |
$CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
3480 |
$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~ |
| 3283 |
$rm $lib.exp' |
3481 |
$rm $lib.exp' |
| 3284 |
|
3482 |
|
| 3285 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
3483 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
|
Lines 3298-3304
Link Here
|
| 3298 |
*) |
3496 |
*) |
| 3299 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3497 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 3300 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3498 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 3301 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
3499 |
_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' |
| 3302 |
|
3500 |
|
| 3303 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3501 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 3304 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3502 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
Lines 3319-3345
Link Here
|
| 3319 |
# FIXME: insert proper C++ library support |
3517 |
# FIXME: insert proper C++ library support |
| 3320 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3518 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3321 |
;; |
3519 |
;; |
| 3322 |
sco*) |
|
|
| 3323 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3324 |
case $cc_basename in |
| 3325 |
CC) |
| 3326 |
# FIXME: insert proper C++ library support |
| 3327 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3328 |
;; |
| 3329 |
*) |
| 3330 |
# FIXME: insert proper C++ library support |
| 3331 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3332 |
;; |
| 3333 |
esac |
| 3334 |
;; |
| 3335 |
sunos4*) |
3520 |
sunos4*) |
| 3336 |
case $cc_basename in |
3521 |
case $cc_basename in |
| 3337 |
CC) |
3522 |
CC*) |
| 3338 |
# Sun C++ 4.x |
3523 |
# Sun C++ 4.x |
| 3339 |
# FIXME: insert proper C++ library support |
3524 |
# FIXME: insert proper C++ library support |
| 3340 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3525 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3341 |
;; |
3526 |
;; |
| 3342 |
lcc) |
3527 |
lcc*) |
| 3343 |
# Lucid |
3528 |
# Lucid |
| 3344 |
# FIXME: insert proper C++ library support |
3529 |
# FIXME: insert proper C++ library support |
| 3345 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3530 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
Lines 3352-3387
Link Here
|
| 3352 |
;; |
3537 |
;; |
| 3353 |
solaris*) |
3538 |
solaris*) |
| 3354 |
case $cc_basename in |
3539 |
case $cc_basename in |
| 3355 |
CC) |
3540 |
CC*) |
| 3356 |
# Sun C++ 4.2, 5.x and Centerline C++ |
3541 |
# Sun C++ 4.2, 5.x and Centerline C++ |
|
|
3542 |
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes |
| 3357 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
3543 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 3358 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
3544 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 3359 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
3545 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3360 |
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
3546 |
$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' |
| 3361 |
|
3547 |
|
| 3362 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
3548 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 3363 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3549 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3364 |
case $host_os in |
3550 |
case $host_os in |
| 3365 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
3551 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 3366 |
*) |
3552 |
*) |
| 3367 |
# The C++ compiler is used as linker so we must use $wl |
3553 |
# The C++ compiler is used as linker so we must use $wl |
| 3368 |
# flag to pass the commands to the underlying system |
3554 |
# flag to pass the commands to the underlying system |
| 3369 |
# linker. |
3555 |
# linker. We must also pass each convience library through |
|
|
3556 |
# to the system linker between allextract/defaultextract. |
| 3557 |
# The C++ compiler will combine linker options so we |
| 3558 |
# cannot just pass the convience library names through |
| 3559 |
# without $wl. |
| 3370 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
3560 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 3371 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
3561 |
_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' |
| 3372 |
;; |
3562 |
;; |
| 3373 |
esac |
3563 |
esac |
| 3374 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
3564 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3375 |
|
3565 |
|
| 3376 |
# Commands to make compiler produce verbose output that lists |
3566 |
output_verbose_link_cmd='echo' |
| 3377 |
# what "hidden" libraries, object files and flags are used when |
|
|
| 3378 |
# linking a shared library. |
| 3379 |
# |
| 3380 |
# There doesn't appear to be a way to prevent this compiler from |
| 3381 |
# explicitly linking system object files so we need to strip them |
| 3382 |
# from the output so that they don't get included in the library |
| 3383 |
# dependencies. |
| 3384 |
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' |
| 3385 |
|
3567 |
|
| 3386 |
# Archives containing C++ object files must be created using |
3568 |
# Archives containing C++ object files must be created using |
| 3387 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
3569 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
Lines 3389-3397
Link Here
|
| 3389 |
# in the archive. |
3571 |
# in the archive. |
| 3390 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
3572 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 3391 |
;; |
3573 |
;; |
| 3392 |
gcx) |
3574 |
gcx*) |
| 3393 |
# Green Hills C++ Compiler |
3575 |
# Green Hills C++ Compiler |
| 3394 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
3576 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 3395 |
|
3577 |
|
| 3396 |
# The C++ compiler must be used to create the archive. |
3578 |
# The C++ compiler must be used to create the archive. |
| 3397 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
3579 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
Lines 3401-3409
Link Here
|
| 3401 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3583 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 3402 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
3584 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 3403 |
if $CC --version | grep -v '^2\.7' > /dev/null; then |
3585 |
if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 3404 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
3586 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 3405 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
3587 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3406 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
3588 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 3407 |
|
3589 |
|
| 3408 |
# Commands to make compiler produce verbose output that lists |
3590 |
# Commands to make compiler produce verbose output that lists |
| 3409 |
# what "hidden" libraries, object files and flags are used when |
3591 |
# what "hidden" libraries, object files and flags are used when |
|
Lines 3412-3420
Link Here
|
| 3412 |
else |
3594 |
else |
| 3413 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
3595 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 3414 |
# platform. |
3596 |
# platform. |
| 3415 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
3597 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 3416 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
3598 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3417 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
3599 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 3418 |
|
3600 |
|
| 3419 |
# Commands to make compiler produce verbose output that lists |
3601 |
# Commands to make compiler produce verbose output that lists |
| 3420 |
# what "hidden" libraries, object files and flags are used when |
3602 |
# what "hidden" libraries, object files and flags are used when |
|
Lines 3427-3438
Link Here
|
| 3427 |
;; |
3609 |
;; |
| 3428 |
esac |
3610 |
esac |
| 3429 |
;; |
3611 |
;; |
| 3430 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
3612 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
|
|
3613 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 3614 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3615 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3616 |
runpath_var='LD_RUN_PATH' |
| 3617 |
|
| 3618 |
case $cc_basename in |
| 3619 |
CC*) |
| 3620 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3621 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3622 |
;; |
| 3623 |
*) |
| 3624 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3625 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3626 |
;; |
| 3627 |
esac |
| 3628 |
;; |
| 3629 |
sysv5* | sco3.2v5* | sco5v6*) |
| 3630 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 3631 |
# link with -lc, and that would cause any symbols used from libc to |
| 3632 |
# always be unresolved, which means just about no library would |
| 3633 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 3634 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 3635 |
# as -z defs. |
| 3636 |
# For security reasons, it is highly recommended that you always |
| 3637 |
# use absolute paths for naming shared libraries, and exclude the |
| 3638 |
# DT_RUNPATH tag from executables and libraries. But doing so |
| 3639 |
# requires that you compile everything twice, which is a pain. |
| 3640 |
# So that behaviour is only enabled if SCOABSPATH is set to a |
| 3641 |
# non-empty value in the environment. Most likely only useful for |
| 3642 |
# creating official distributions of packages. |
| 3643 |
# This is a hack until libtool officially supports absolute path |
| 3644 |
# names for shared libraries. |
| 3645 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 3646 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 3431 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3647 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
3648 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3649 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 3650 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 3651 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3652 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 3653 |
runpath_var='LD_RUN_PATH' |
| 3654 |
|
| 3655 |
case $cc_basename in |
| 3656 |
CC*) |
| 3657 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3658 |
_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' |
| 3659 |
;; |
| 3660 |
*) |
| 3661 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3662 |
_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' |
| 3663 |
;; |
| 3664 |
esac |
| 3432 |
;; |
3665 |
;; |
| 3433 |
tandem*) |
3666 |
tandem*) |
| 3434 |
case $cc_basename in |
3667 |
case $cc_basename in |
| 3435 |
NCC) |
3668 |
NCC*) |
| 3436 |
# NonStop-UX NCC 3.20 |
3669 |
# NonStop-UX NCC 3.20 |
| 3437 |
# FIXME: insert proper C++ library support |
3670 |
# FIXME: insert proper C++ library support |
| 3438 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3671 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
Lines 3469-3476
Link Here
|
| 3469 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3702 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 3470 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3703 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 3471 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3704 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 3472 |
AC_LIBTOOL_SYS_LIB_STRIP |
|
|
| 3473 |
AC_LIBTOOL_DLOPEN_SELF($1) |
| 3474 |
|
3705 |
|
| 3475 |
AC_LIBTOOL_CONFIG($1) |
3706 |
AC_LIBTOOL_CONFIG($1) |
| 3476 |
|
3707 |
|
|
Lines 3488-3494
Link Here
|
| 3488 |
])# AC_LIBTOOL_LANG_CXX_CONFIG |
3719 |
])# AC_LIBTOOL_LANG_CXX_CONFIG |
| 3489 |
|
3720 |
|
| 3490 |
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
3721 |
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
| 3491 |
# ------------------------ |
3722 |
# ------------------------------------ |
| 3492 |
# Figure out "hidden" library dependencies from verbose |
3723 |
# Figure out "hidden" library dependencies from verbose |
| 3493 |
# compiler output when linking a shared library. |
3724 |
# compiler output when linking a shared library. |
| 3494 |
# Parse the compiler output and extract the necessary |
3725 |
# Parse the compiler output and extract the necessary |
|
Lines 3542-3548
Link Here
|
| 3542 |
# The `*' in the case matches for architectures that use `case' in |
3773 |
# The `*' in the case matches for architectures that use `case' in |
| 3543 |
# $output_verbose_cmd can trigger glob expansion during the loop |
3774 |
# $output_verbose_cmd can trigger glob expansion during the loop |
| 3544 |
# eval without this substitution. |
3775 |
# eval without this substitution. |
| 3545 |
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
3776 |
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 3546 |
|
3777 |
|
| 3547 |
for p in `eval $output_verbose_link_cmd`; do |
3778 |
for p in `eval $output_verbose_link_cmd`; do |
| 3548 |
case $p in |
3779 |
case $p in |
|
Lines 3582-3588
Link Here
|
| 3582 |
fi |
3813 |
fi |
| 3583 |
;; |
3814 |
;; |
| 3584 |
|
3815 |
|
| 3585 |
*.$objext|*.$libext) |
3816 |
*.$objext) |
| 3586 |
# This assumes that the test object file only shows up |
3817 |
# This assumes that the test object file only shows up |
| 3587 |
# once in the compiler output. |
3818 |
# once in the compiler output. |
| 3588 |
if test "$p" = "conftest.$objext"; then |
3819 |
if test "$p" = "conftest.$objext"; then |
|
Lines 3618-3630
Link Here
|
| 3618 |
|
3849 |
|
| 3619 |
$rm -f confest.$objext |
3850 |
$rm -f confest.$objext |
| 3620 |
|
3851 |
|
|
|
3852 |
# PORTME: override above test on systems where it is broken |
| 3853 |
ifelse([$1],[CXX], |
| 3854 |
[case $host_os in |
| 3855 |
interix3*) |
| 3856 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 3857 |
# hack all around it, let's just trust "g++" to DTRT. |
| 3858 |
_LT_AC_TAGVAR(predep_objects,$1)= |
| 3859 |
_LT_AC_TAGVAR(postdep_objects,$1)= |
| 3860 |
_LT_AC_TAGVAR(postdeps,$1)= |
| 3861 |
;; |
| 3862 |
|
| 3863 |
solaris*) |
| 3864 |
case $cc_basename in |
| 3865 |
CC*) |
| 3866 |
# Adding this requires a known-good setup of shared libraries for |
| 3867 |
# Sun compiler versions before 5.6, else PIC objects from an old |
| 3868 |
# archive will be linked into the output, leading to subtle bugs. |
| 3869 |
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
| 3870 |
;; |
| 3871 |
esac |
| 3872 |
;; |
| 3873 |
esac |
| 3874 |
]) |
| 3875 |
|
| 3621 |
case " $_LT_AC_TAGVAR(postdeps, $1) " in |
3876 |
case " $_LT_AC_TAGVAR(postdeps, $1) " in |
| 3622 |
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
3877 |
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 3623 |
esac |
3878 |
esac |
| 3624 |
])# AC_LIBTOOL_POSTDEP_PREDEP |
3879 |
])# AC_LIBTOOL_POSTDEP_PREDEP |
| 3625 |
|
3880 |
|
| 3626 |
# AC_LIBTOOL_LANG_F77_CONFIG |
3881 |
# AC_LIBTOOL_LANG_F77_CONFIG |
| 3627 |
# ------------------------ |
3882 |
# -------------------------- |
| 3628 |
# Ensure that the configuration vars for the C compiler are |
3883 |
# Ensure that the configuration vars for the C compiler are |
| 3629 |
# suitably defined. Those variables are subsequently used by |
3884 |
# suitably defined. Those variables are subsequently used by |
| 3630 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3885 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
|
Lines 3668-3679
Link Here
|
| 3668 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3923 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 3669 |
_LT_AC_SYS_COMPILER |
3924 |
_LT_AC_SYS_COMPILER |
| 3670 |
|
3925 |
|
|
|
3926 |
# save warnings/boilerplate of simple test code |
| 3927 |
_LT_COMPILER_BOILERPLATE |
| 3928 |
_LT_LINKER_BOILERPLATE |
| 3929 |
|
| 3671 |
# Allow CC to be a program name with arguments. |
3930 |
# Allow CC to be a program name with arguments. |
| 3672 |
lt_save_CC="$CC" |
3931 |
lt_save_CC="$CC" |
| 3673 |
CC=${F77-"f77"} |
3932 |
CC=${F77-"f77"} |
| 3674 |
compiler=$CC |
3933 |
compiler=$CC |
| 3675 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
3934 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
| 3676 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
3935 |
_LT_CC_BASENAME([$compiler]) |
| 3677 |
|
3936 |
|
| 3678 |
AC_MSG_CHECKING([if libtool supports shared libraries]) |
3937 |
AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 3679 |
AC_MSG_RESULT([$can_build_shared]) |
3938 |
AC_MSG_RESULT([$can_build_shared]) |
|
Lines 3683-3689
Link Here
|
| 3683 |
|
3942 |
|
| 3684 |
# On AIX, shared libraries and static libraries use the same namespace, and |
3943 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 3685 |
# are all built from PIC. |
3944 |
# are all built from PIC. |
| 3686 |
case "$host_os" in |
3945 |
case $host_os in |
| 3687 |
aix3*) |
3946 |
aix3*) |
| 3688 |
test "$enable_shared" = yes && enable_static=no |
3947 |
test "$enable_shared" = yes && enable_static=no |
| 3689 |
if test -n "$RANLIB"; then |
3948 |
if test -n "$RANLIB"; then |
|
Lines 3691-3698
Link Here
|
| 3691 |
postinstall_cmds='$RANLIB $lib' |
3950 |
postinstall_cmds='$RANLIB $lib' |
| 3692 |
fi |
3951 |
fi |
| 3693 |
;; |
3952 |
;; |
| 3694 |
aix4*) |
3953 |
aix4* | aix5*) |
| 3695 |
test "$enable_shared" = yes && enable_static=no |
3954 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
3955 |
test "$enable_shared" = yes && enable_static=no |
| 3956 |
fi |
| 3696 |
;; |
3957 |
;; |
| 3697 |
esac |
3958 |
esac |
| 3698 |
AC_MSG_RESULT([$enable_shared]) |
3959 |
AC_MSG_RESULT([$enable_shared]) |
|
Lines 3702-3709
Link Here
|
| 3702 |
test "$enable_shared" = yes || enable_static=yes |
3963 |
test "$enable_shared" = yes || enable_static=yes |
| 3703 |
AC_MSG_RESULT([$enable_static]) |
3964 |
AC_MSG_RESULT([$enable_static]) |
| 3704 |
|
3965 |
|
| 3705 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
|
|
| 3706 |
|
| 3707 |
_LT_AC_TAGVAR(GCC, $1)="$G77" |
3966 |
_LT_AC_TAGVAR(GCC, $1)="$G77" |
| 3708 |
_LT_AC_TAGVAR(LD, $1)="$LD" |
3967 |
_LT_AC_TAGVAR(LD, $1)="$LD" |
| 3709 |
|
3968 |
|
|
Lines 3713-3720
Link Here
|
| 3713 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3972 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 3714 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3973 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 3715 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3974 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 3716 |
AC_LIBTOOL_SYS_LIB_STRIP |
|
|
| 3717 |
|
| 3718 |
|
3975 |
|
| 3719 |
AC_LIBTOOL_CONFIG($1) |
3976 |
AC_LIBTOOL_CONFIG($1) |
| 3720 |
|
3977 |
|
|
Lines 3743-3762
Link Here
|
| 3743 |
lt_simple_compile_test_code="class foo {}\n" |
4000 |
lt_simple_compile_test_code="class foo {}\n" |
| 3744 |
|
4001 |
|
| 3745 |
# Code to be used in simple link tests |
4002 |
# Code to be used in simple link tests |
| 3746 |
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
4003 |
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' |
| 3747 |
|
4004 |
|
| 3748 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
4005 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 3749 |
_LT_AC_SYS_COMPILER |
4006 |
_LT_AC_SYS_COMPILER |
| 3750 |
|
4007 |
|
|
|
4008 |
# save warnings/boilerplate of simple test code |
| 4009 |
_LT_COMPILER_BOILERPLATE |
| 4010 |
_LT_LINKER_BOILERPLATE |
| 4011 |
|
| 3751 |
# Allow CC to be a program name with arguments. |
4012 |
# Allow CC to be a program name with arguments. |
| 3752 |
lt_save_CC="$CC" |
4013 |
lt_save_CC="$CC" |
| 3753 |
CC=${GCJ-"gcj"} |
4014 |
CC=${GCJ-"gcj"} |
| 3754 |
compiler=$CC |
4015 |
compiler=$CC |
| 3755 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
4016 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
4017 |
_LT_CC_BASENAME([$compiler]) |
| 3756 |
|
4018 |
|
| 3757 |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
4019 |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 3758 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4020 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3759 |
|
4021 |
|
|
|
4022 |
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 4023 |
|
| 3760 |
## CAVEAT EMPTOR: |
4024 |
## CAVEAT EMPTOR: |
| 3761 |
## There is no encapsulation within the following macros, do not change |
4025 |
## There is no encapsulation within the following macros, do not change |
| 3762 |
## the running order or otherwise move them around unless you know exactly |
4026 |
## the running order or otherwise move them around unless you know exactly |
|
Lines 3768-3775
Link Here
|
| 3768 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
4032 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 3769 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
4033 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 3770 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
4034 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 3771 |
AC_LIBTOOL_SYS_LIB_STRIP |
|
|
| 3772 |
AC_LIBTOOL_DLOPEN_SELF($1) |
| 3773 |
|
4035 |
|
| 3774 |
AC_LIBTOOL_CONFIG($1) |
4036 |
AC_LIBTOOL_CONFIG($1) |
| 3775 |
|
4037 |
|
|
Lines 3779-3785
Link Here
|
| 3779 |
|
4041 |
|
| 3780 |
|
4042 |
|
| 3781 |
# AC_LIBTOOL_LANG_RC_CONFIG |
4043 |
# AC_LIBTOOL_LANG_RC_CONFIG |
| 3782 |
# -------------------------- |
4044 |
# ------------------------- |
| 3783 |
# Ensure that the configuration vars for the Windows resource compiler are |
4045 |
# Ensure that the configuration vars for the Windows resource compiler are |
| 3784 |
# suitably defined. Those variables are subsequently used by |
4046 |
# suitably defined. Those variables are subsequently used by |
| 3785 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
4047 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
|
Lines 3803-3813
Link Here
|
| 3803 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
4065 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 3804 |
_LT_AC_SYS_COMPILER |
4066 |
_LT_AC_SYS_COMPILER |
| 3805 |
|
4067 |
|
|
|
4068 |
# save warnings/boilerplate of simple test code |
| 4069 |
_LT_COMPILER_BOILERPLATE |
| 4070 |
_LT_LINKER_BOILERPLATE |
| 4071 |
|
| 3806 |
# Allow CC to be a program name with arguments. |
4072 |
# Allow CC to be a program name with arguments. |
| 3807 |
lt_save_CC="$CC" |
4073 |
lt_save_CC="$CC" |
| 3808 |
CC=${RC-"windres"} |
4074 |
CC=${RC-"windres"} |
| 3809 |
compiler=$CC |
4075 |
compiler=$CC |
| 3810 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
4076 |
_LT_AC_TAGVAR(compiler, $1)=$CC |
|
|
4077 |
_LT_CC_BASENAME([$compiler]) |
| 3811 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
4078 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 3812 |
|
4079 |
|
| 3813 |
AC_LIBTOOL_CONFIG($1) |
4080 |
AC_LIBTOOL_CONFIG($1) |
|
Lines 3833-3843
Link Here
|
| 3833 |
# without removal of \ escapes. |
4100 |
# without removal of \ escapes. |
| 3834 |
if test -n "${ZSH_VERSION+set}" ; then |
4101 |
if test -n "${ZSH_VERSION+set}" ; then |
| 3835 |
setopt NO_GLOB_SUBST |
4102 |
setopt NO_GLOB_SUBST |
| 3836 |
fi |
4103 |
fi |
| 3837 |
# Now quote all the things that may contain metacharacters while being |
4104 |
# Now quote all the things that may contain metacharacters while being |
| 3838 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
4105 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 3839 |
# variables and quote the copies for generation of the libtool script. |
4106 |
# variables and quote the copies for generation of the libtool script. |
| 3840 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
4107 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
4108 |
SED SHELL STRIP \ |
| 3841 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
4109 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 3842 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
4110 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 3843 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
4111 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
Lines 3887-3893
Link Here
|
| 3887 |
_LT_AC_TAGVAR(archive_cmds, $1) | \ |
4155 |
_LT_AC_TAGVAR(archive_cmds, $1) | \ |
| 3888 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
4156 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
| 3889 |
_LT_AC_TAGVAR(module_cmds, $1) | \ |
4157 |
_LT_AC_TAGVAR(module_cmds, $1) | \ |
| 3890 |
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
4158 |
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
| 3891 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
4159 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
| 3892 |
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
4160 |
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
| 3893 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
4161 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
Lines 3953-3963
Link Here
|
| 3953 |
SED=$lt_SED |
4221 |
SED=$lt_SED |
| 3954 |
|
4222 |
|
| 3955 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
4223 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 3956 |
Xsed="$SED -e s/^X//" |
4224 |
Xsed="$SED -e 1s/^X//" |
| 3957 |
|
4225 |
|
| 3958 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
4226 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 3959 |
# if CDPATH is set. |
4227 |
# if CDPATH is set. |
| 3960 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
4228 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 3961 |
|
4229 |
|
| 3962 |
# The names of the tagged configurations supported by this script. |
4230 |
# The names of the tagged configurations supported by this script. |
| 3963 |
available_tags= |
4231 |
available_tags= |
|
Lines 3988-3993
Link Here
|
| 3988 |
# The host system. |
4256 |
# The host system. |
| 3989 |
host_alias=$host_alias |
4257 |
host_alias=$host_alias |
| 3990 |
host=$host |
4258 |
host=$host |
|
|
4259 |
host_os=$host_os |
| 4260 |
|
| 4261 |
# The build system. |
| 4262 |
build_alias=$build_alias |
| 4263 |
build=$build |
| 4264 |
build_os=$build_os |
| 3991 |
|
4265 |
|
| 3992 |
# An echo program that does not interpret backslashes. |
4266 |
# An echo program that does not interpret backslashes. |
| 3993 |
echo=$lt_echo |
4267 |
echo=$lt_echo |
|
Lines 3999-4004
Link Here
|
| 3999 |
# A C compiler. |
4273 |
# A C compiler. |
| 4000 |
LTCC=$lt_LTCC |
4274 |
LTCC=$lt_LTCC |
| 4001 |
|
4275 |
|
|
|
4276 |
# LTCC compiler flags. |
| 4277 |
LTCFLAGS=$lt_LTCFLAGS |
| 4278 |
|
| 4002 |
# A language-specific compiler. |
4279 |
# A language-specific compiler. |
| 4003 |
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
4280 |
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
| 4004 |
|
4281 |
|
|
Lines 4018-4024
Link Here
|
| 4018 |
NM=$lt_NM |
4295 |
NM=$lt_NM |
| 4019 |
|
4296 |
|
| 4020 |
# A symbol stripping program |
4297 |
# A symbol stripping program |
| 4021 |
STRIP=$STRIP |
4298 |
STRIP=$lt_STRIP |
| 4022 |
|
4299 |
|
| 4023 |
# Used to examine libraries when file_magic_cmd begins "file" |
4300 |
# Used to examine libraries when file_magic_cmd begins "file" |
| 4024 |
MAGIC_CMD=$MAGIC_CMD |
4301 |
MAGIC_CMD=$MAGIC_CMD |
|
Lines 4049-4055
Link Here
|
| 4049 |
libext="$libext" |
4326 |
libext="$libext" |
| 4050 |
|
4327 |
|
| 4051 |
# Shared library suffix (normally ".so"). |
4328 |
# Shared library suffix (normally ".so"). |
| 4052 |
shrext='$shrext' |
4329 |
shrext_cmds='$shrext_cmds' |
| 4053 |
|
4330 |
|
| 4054 |
# Executable file suffix (normally ""). |
4331 |
# Executable file suffix (normally ""). |
| 4055 |
exeext="$exeext" |
4332 |
exeext="$exeext" |
|
Lines 4064-4070
Link Here
|
| 4064 |
# Does compiler simultaneously support -c and -o options? |
4341 |
# Does compiler simultaneously support -c and -o options? |
| 4065 |
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
4342 |
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
| 4066 |
|
4343 |
|
| 4067 |
# Must we lock files when doing compilation ? |
4344 |
# Must we lock files when doing compilation? |
| 4068 |
need_locks=$lt_need_locks |
4345 |
need_locks=$lt_need_locks |
| 4069 |
|
4346 |
|
| 4070 |
# Do we need the lib prefix for modules? |
4347 |
# Do we need the lib prefix for modules? |
|
Lines 4293-4299
Link Here
|
| 4293 |
# If there is no Makefile yet, we rely on a make rule to execute |
4570 |
# If there is no Makefile yet, we rely on a make rule to execute |
| 4294 |
# `config.status --recheck' to rerun these tests and create the |
4571 |
# `config.status --recheck' to rerun these tests and create the |
| 4295 |
# libtool script then. |
4572 |
# libtool script then. |
| 4296 |
test -f Makefile && make "$ltmain" |
4573 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
4574 |
if test -f "$ltmain_in"; then |
| 4575 |
test -f Makefile && make "$ltmain" |
| 4576 |
fi |
| 4297 |
fi |
4577 |
fi |
| 4298 |
])# AC_LIBTOOL_CONFIG |
4578 |
])# AC_LIBTOOL_CONFIG |
| 4299 |
|
4579 |
|
|
Lines 4335-4343
Link Here
|
| 4335 |
# Regexp to match symbols that can be accessed directly from C. |
4615 |
# Regexp to match symbols that can be accessed directly from C. |
| 4336 |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
4616 |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 4337 |
|
4617 |
|
| 4338 |
# Transform the above into a raw symbol and a C symbol. |
|
|
| 4339 |
symxfrm='\1 \2\3 \3' |
| 4340 |
|
| 4341 |
# Transform an extracted symbol line into a proper C declaration |
4618 |
# Transform an extracted symbol line into a proper C declaration |
| 4342 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
4619 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 4343 |
|
4620 |
|
|
Lines 4359-4372
Link Here
|
| 4359 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4636 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4360 |
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'" |
4637 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 4361 |
;; |
4638 |
;; |
|
|
4639 |
linux* | k*bsd*-gnu) |
| 4640 |
if test "$host_cpu" = ia64; then |
| 4641 |
symcode='[[ABCDGIRSTW]]' |
| 4642 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4643 |
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'" |
| 4644 |
fi |
| 4645 |
;; |
| 4362 |
irix* | nonstopux*) |
4646 |
irix* | nonstopux*) |
| 4363 |
symcode='[[BCDEGRST]]' |
4647 |
symcode='[[BCDEGRST]]' |
| 4364 |
;; |
4648 |
;; |
| 4365 |
osf*) |
4649 |
osf*) |
| 4366 |
symcode='[[BCDEGQRST]]' |
4650 |
symcode='[[BCDEGQRST]]' |
| 4367 |
;; |
4651 |
;; |
| 4368 |
solaris* | sysv5*) |
4652 |
solaris*) |
| 4369 |
symcode='[[BDT]]' |
4653 |
symcode='[[BDRT]]' |
|
|
4654 |
;; |
| 4655 |
sco3.2v5*) |
| 4656 |
symcode='[[DT]]' |
| 4657 |
;; |
| 4658 |
sysv4.2uw2*) |
| 4659 |
symcode='[[DT]]' |
| 4660 |
;; |
| 4661 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 4662 |
symcode='[[ABDT]]' |
| 4370 |
;; |
4663 |
;; |
| 4371 |
sysv4) |
4664 |
sysv4) |
| 4372 |
symcode='[[DFNSTU]]' |
4665 |
symcode='[[DFNSTU]]' |
|
Lines 4384-4397
Link Here
|
| 4384 |
# If we're using GNU nm, then use its standard symbol codes. |
4677 |
# If we're using GNU nm, then use its standard symbol codes. |
| 4385 |
case `$NM -V 2>&1` in |
4678 |
case `$NM -V 2>&1` in |
| 4386 |
*GNU* | *'with BFD'*) |
4679 |
*GNU* | *'with BFD'*) |
| 4387 |
symcode='[[ABCDGISTW]]' ;; |
4680 |
symcode='[[ABCDGIRSTW]]' ;; |
| 4388 |
esac |
4681 |
esac |
| 4389 |
|
4682 |
|
| 4390 |
# Try without a prefix undercore, then with it. |
4683 |
# Try without a prefix undercore, then with it. |
| 4391 |
for ac_symprfx in "" "_"; do |
4684 |
for ac_symprfx in "" "_"; do |
| 4392 |
|
4685 |
|
|
|
4686 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 4687 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 4688 |
|
| 4393 |
# Write the raw and C identifiers. |
4689 |
# Write the raw and C identifiers. |
| 4394 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
4690 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 4395 |
|
4691 |
|
| 4396 |
# Check to see that the pipe works correctly. |
4692 |
# Check to see that the pipe works correctly. |
| 4397 |
pipe_works=no |
4693 |
pipe_works=no |
|
Lines 4547-4552
Link Here
|
| 4547 |
# DJGPP does not support shared libraries at all |
4843 |
# DJGPP does not support shared libraries at all |
| 4548 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4844 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4549 |
;; |
4845 |
;; |
|
|
4846 |
interix3*) |
| 4847 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 4848 |
# Instead, we relocate shared libraries at runtime. |
| 4849 |
;; |
| 4550 |
sysv4*MP*) |
4850 |
sysv4*MP*) |
| 4551 |
if test -d /usr/nec; then |
4851 |
if test -d /usr/nec; then |
| 4552 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4852 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
|
Lines 4555-4561
Link Here
|
| 4555 |
hpux*) |
4855 |
hpux*) |
| 4556 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4856 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 4557 |
# not for PA HP-UX. |
4857 |
# not for PA HP-UX. |
| 4558 |
case "$host_cpu" in |
4858 |
case $host_cpu in |
| 4559 |
hppa*64*|ia64*) |
4859 |
hppa*64*|ia64*) |
| 4560 |
;; |
4860 |
;; |
| 4561 |
*) |
4861 |
*) |
|
Lines 4580-4597
Link Here
|
| 4580 |
;; |
4880 |
;; |
| 4581 |
chorus*) |
4881 |
chorus*) |
| 4582 |
case $cc_basename in |
4882 |
case $cc_basename in |
| 4583 |
cxch68) |
4883 |
cxch68*) |
| 4584 |
# Green Hills C++ Compiler |
4884 |
# Green Hills C++ Compiler |
| 4585 |
# _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" |
4885 |
# _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" |
| 4586 |
;; |
4886 |
;; |
| 4587 |
esac |
4887 |
esac |
| 4588 |
;; |
4888 |
;; |
|
|
4889 |
darwin*) |
| 4890 |
# PIC is the default on this platform |
| 4891 |
# Common symbols not allowed in MH_DYLIB files |
| 4892 |
case $cc_basename in |
| 4893 |
xlc*) |
| 4894 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 4895 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4896 |
;; |
| 4897 |
esac |
| 4898 |
;; |
| 4589 |
dgux*) |
4899 |
dgux*) |
| 4590 |
case $cc_basename in |
4900 |
case $cc_basename in |
| 4591 |
ec++) |
4901 |
ec++*) |
| 4592 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4902 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4593 |
;; |
4903 |
;; |
| 4594 |
ghcx) |
4904 |
ghcx*) |
| 4595 |
# Green Hills C++ Compiler |
4905 |
# Green Hills C++ Compiler |
| 4596 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4906 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4597 |
;; |
4907 |
;; |
|
Lines 4599-4620
Link Here
|
| 4599 |
;; |
4909 |
;; |
| 4600 |
esac |
4910 |
esac |
| 4601 |
;; |
4911 |
;; |
| 4602 |
freebsd* | kfreebsd*-gnu) |
4912 |
freebsd* | dragonfly*) |
| 4603 |
# FreeBSD uses GNU C++ |
4913 |
# FreeBSD uses GNU C++ |
| 4604 |
;; |
4914 |
;; |
| 4605 |
hpux9* | hpux10* | hpux11*) |
4915 |
hpux9* | hpux10* | hpux11*) |
| 4606 |
case $cc_basename in |
4916 |
case $cc_basename in |
| 4607 |
CC) |
4917 |
CC*) |
| 4608 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4918 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4609 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
4919 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 4610 |
if test "$host_cpu" != ia64; then |
4920 |
if test "$host_cpu" != ia64; then |
| 4611 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4921 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 4612 |
fi |
4922 |
fi |
| 4613 |
;; |
4923 |
;; |
| 4614 |
aCC) |
4924 |
aCC*) |
| 4615 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4925 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4616 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
4926 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 4617 |
case "$host_cpu" in |
4927 |
case $host_cpu in |
| 4618 |
hppa*64*|ia64*) |
4928 |
hppa*64*|ia64*) |
| 4619 |
# +Z the default |
4929 |
# +Z the default |
| 4620 |
;; |
4930 |
;; |
|
Lines 4627-4635
Link Here
|
| 4627 |
;; |
4937 |
;; |
| 4628 |
esac |
4938 |
esac |
| 4629 |
;; |
4939 |
;; |
|
|
4940 |
interix*) |
| 4941 |
# This is c89, which is MS Visual C++ (no shared libs) |
| 4942 |
# Anyone wants to do a port? |
| 4943 |
;; |
| 4630 |
irix5* | irix6* | nonstopux*) |
4944 |
irix5* | irix6* | nonstopux*) |
| 4631 |
case $cc_basename in |
4945 |
case $cc_basename in |
| 4632 |
CC) |
4946 |
CC*) |
| 4633 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4947 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4634 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4948 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4635 |
# CC pic flag -KPIC is the default. |
4949 |
# CC pic flag -KPIC is the default. |
|
Lines 4638-4657
Link Here
|
| 4638 |
;; |
4952 |
;; |
| 4639 |
esac |
4953 |
esac |
| 4640 |
;; |
4954 |
;; |
| 4641 |
linux*) |
4955 |
linux* | k*bsd*-gnu) |
| 4642 |
case $cc_basename in |
4956 |
case $cc_basename in |
| 4643 |
KCC) |
4957 |
KCC*) |
| 4644 |
# KAI C++ Compiler |
4958 |
# KAI C++ Compiler |
| 4645 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4959 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 4646 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4960 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4647 |
;; |
4961 |
;; |
| 4648 |
icpc) |
4962 |
icpc* | ecpc*) |
| 4649 |
# Intel C++ |
4963 |
# Intel C++ |
| 4650 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4964 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4651 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4965 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4652 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4966 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4653 |
;; |
4967 |
;; |
| 4654 |
cxx) |
4968 |
pgCC*) |
|
|
4969 |
# Portland Group C++ compiler. |
| 4970 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4971 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 4972 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4973 |
;; |
| 4974 |
cxx*) |
| 4655 |
# Compaq C++ |
4975 |
# Compaq C++ |
| 4656 |
# Make sure the PIC flag is empty. It appears that all Alpha |
4976 |
# Make sure the PIC flag is empty. It appears that all Alpha |
| 4657 |
# Linux and Compaq Tru64 Unix objects are PIC. |
4977 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
Lines 4668-4692
Link Here
|
| 4668 |
;; |
4988 |
;; |
| 4669 |
mvs*) |
4989 |
mvs*) |
| 4670 |
case $cc_basename in |
4990 |
case $cc_basename in |
| 4671 |
cxx) |
4991 |
cxx*) |
| 4672 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
4992 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 4673 |
;; |
4993 |
;; |
| 4674 |
*) |
4994 |
*) |
| 4675 |
;; |
4995 |
;; |
| 4676 |
esac |
4996 |
esac |
| 4677 |
;; |
4997 |
;; |
| 4678 |
netbsd*) |
4998 |
netbsd* | netbsdelf*-gnu) |
| 4679 |
;; |
4999 |
;; |
| 4680 |
osf3* | osf4* | osf5*) |
5000 |
osf3* | osf4* | osf5*) |
| 4681 |
case $cc_basename in |
5001 |
case $cc_basename in |
| 4682 |
KCC) |
5002 |
KCC*) |
| 4683 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
5003 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 4684 |
;; |
5004 |
;; |
| 4685 |
RCC) |
5005 |
RCC*) |
| 4686 |
# Rational C++ 2.4.1 |
5006 |
# Rational C++ 2.4.1 |
| 4687 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5007 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4688 |
;; |
5008 |
;; |
| 4689 |
cxx) |
5009 |
cxx*) |
| 4690 |
# Digital/Compaq C++ |
5010 |
# Digital/Compaq C++ |
| 4691 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5011 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4692 |
# Make sure the PIC flag is empty. It appears that all Alpha |
5012 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
Lines 4700-4723
Link Here
|
| 4700 |
;; |
5020 |
;; |
| 4701 |
psos*) |
5021 |
psos*) |
| 4702 |
;; |
5022 |
;; |
| 4703 |
sco*) |
|
|
| 4704 |
case $cc_basename in |
| 4705 |
CC) |
| 4706 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4707 |
;; |
| 4708 |
*) |
| 4709 |
;; |
| 4710 |
esac |
| 4711 |
;; |
| 4712 |
solaris*) |
5023 |
solaris*) |
| 4713 |
case $cc_basename in |
5024 |
case $cc_basename in |
| 4714 |
CC) |
5025 |
CC*) |
| 4715 |
# Sun C++ 4.2, 5.x and Centerline C++ |
5026 |
# Sun C++ 4.2, 5.x and Centerline C++ |
| 4716 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5027 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4717 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5028 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4718 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
5029 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 4719 |
;; |
5030 |
;; |
| 4720 |
gcx) |
5031 |
gcx*) |
| 4721 |
# Green Hills C++ Compiler |
5032 |
# Green Hills C++ Compiler |
| 4722 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
5033 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4723 |
;; |
5034 |
;; |
|
Lines 4727-4738
Link Here
|
| 4727 |
;; |
5038 |
;; |
| 4728 |
sunos4*) |
5039 |
sunos4*) |
| 4729 |
case $cc_basename in |
5040 |
case $cc_basename in |
| 4730 |
CC) |
5041 |
CC*) |
| 4731 |
# Sun C++ 4.x |
5042 |
# Sun C++ 4.x |
| 4732 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5043 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4733 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5044 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4734 |
;; |
5045 |
;; |
| 4735 |
lcc) |
5046 |
lcc*) |
| 4736 |
# Lucid |
5047 |
# Lucid |
| 4737 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5048 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4738 |
;; |
5049 |
;; |
|
Lines 4742-4748
Link Here
|
| 4742 |
;; |
5053 |
;; |
| 4743 |
tandem*) |
5054 |
tandem*) |
| 4744 |
case $cc_basename in |
5055 |
case $cc_basename in |
| 4745 |
NCC) |
5056 |
NCC*) |
| 4746 |
# NonStop-UX NCC 3.20 |
5057 |
# NonStop-UX NCC 3.20 |
| 4747 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5058 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4748 |
;; |
5059 |
;; |
|
Lines 4750-4756
Link Here
|
| 4750 |
;; |
5061 |
;; |
| 4751 |
esac |
5062 |
esac |
| 4752 |
;; |
5063 |
;; |
| 4753 |
unixware*) |
5064 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
5065 |
case $cc_basename in |
| 5066 |
CC*) |
| 5067 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5068 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 5069 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5070 |
;; |
| 5071 |
esac |
| 4754 |
;; |
5072 |
;; |
| 4755 |
vxworks*) |
5073 |
vxworks*) |
| 4756 |
;; |
5074 |
;; |
|
Lines 4797-4802
Link Here
|
| 4797 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
5115 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 4798 |
;; |
5116 |
;; |
| 4799 |
|
5117 |
|
|
|
5118 |
interix3*) |
| 5119 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 5120 |
# Instead, we relocate shared libraries at runtime. |
| 5121 |
;; |
| 5122 |
|
| 4800 |
msdosdjgpp*) |
5123 |
msdosdjgpp*) |
| 4801 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
5124 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 4802 |
# on systems that don't support them. |
5125 |
# on systems that don't support them. |
|
Lines 4813-4819
Link Here
|
| 4813 |
hpux*) |
5136 |
hpux*) |
| 4814 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
5137 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 4815 |
# not for PA HP-UX. |
5138 |
# not for PA HP-UX. |
| 4816 |
case "$host_cpu" in |
5139 |
case $host_cpu in |
| 4817 |
hppa*64*|ia64*) |
5140 |
hppa*64*|ia64*) |
| 4818 |
# +Z the default |
5141 |
# +Z the default |
| 4819 |
;; |
5142 |
;; |
|
Lines 4839-4844
Link Here
|
| 4839 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
5162 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 4840 |
fi |
5163 |
fi |
| 4841 |
;; |
5164 |
;; |
|
|
5165 |
darwin*) |
| 5166 |
# PIC is the default on this platform |
| 5167 |
# Common symbols not allowed in MH_DYLIB files |
| 5168 |
case $cc_basename in |
| 5169 |
xlc*) |
| 5170 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 5171 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5172 |
;; |
| 5173 |
esac |
| 5174 |
;; |
| 4842 |
|
5175 |
|
| 4843 |
mingw* | pw32* | os2*) |
5176 |
mingw* | pw32* | os2*) |
| 4844 |
# This hack is so that the source file can tell whether it is being |
5177 |
# This hack is so that the source file can tell whether it is being |
|
Lines 4850-4856
Link Here
|
| 4850 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5183 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4851 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
5184 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 4852 |
# not for PA HP-UX. |
5185 |
# not for PA HP-UX. |
| 4853 |
case "$host_cpu" in |
5186 |
case $host_cpu in |
| 4854 |
hppa*64*|ia64*) |
5187 |
hppa*64*|ia64*) |
| 4855 |
# +Z the default |
5188 |
# +Z the default |
| 4856 |
;; |
5189 |
;; |
|
Lines 4873-4885
Link Here
|
| 4873 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5206 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4874 |
;; |
5207 |
;; |
| 4875 |
|
5208 |
|
| 4876 |
linux*) |
5209 |
linux* | k*bsd*-gnu) |
| 4877 |
case $CC in |
5210 |
case $cc_basename in |
| 4878 |
icc* | ecc*) |
5211 |
icc* | ecc*) |
| 4879 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5212 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4880 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5213 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4881 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
5214 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4882 |
;; |
5215 |
;; |
|
|
5216 |
pgcc* | pgf77* | pgf90* | pgf95*) |
| 5217 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 5218 |
# which looks to be a dead project) |
| 5219 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5220 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 5221 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5222 |
;; |
| 4883 |
ccc*) |
5223 |
ccc*) |
| 4884 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5224 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4885 |
# All Alpha code is PIC. |
5225 |
# All Alpha code is PIC. |
|
Lines 4894-4908
Link Here
|
| 4894 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5234 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4895 |
;; |
5235 |
;; |
| 4896 |
|
5236 |
|
| 4897 |
sco3.2v5*) |
|
|
| 4898 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' |
| 4899 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' |
| 4900 |
;; |
| 4901 |
|
| 4902 |
solaris*) |
5237 |
solaris*) |
| 4903 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
| 4904 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5238 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4905 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5239 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
|
5240 |
case $cc_basename in |
| 5241 |
f77* | f90* | f95*) |
| 5242 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 5243 |
*) |
| 5244 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 5245 |
esac |
| 4906 |
;; |
5246 |
;; |
| 4907 |
|
5247 |
|
| 4908 |
sunos4*) |
5248 |
sunos4*) |
|
Lines 4911-4917
Link Here
|
| 4911 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5251 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4912 |
;; |
5252 |
;; |
| 4913 |
|
5253 |
|
| 4914 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
5254 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 4915 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5255 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4916 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5256 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4917 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5257 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
Lines 4924-4929
Link Here
|
| 4924 |
fi |
5264 |
fi |
| 4925 |
;; |
5265 |
;; |
| 4926 |
|
5266 |
|
|
|
5267 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 5268 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5269 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 5270 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5271 |
;; |
| 5272 |
|
| 5273 |
unicos*) |
| 5274 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5275 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 5276 |
;; |
| 5277 |
|
| 4927 |
uts4*) |
5278 |
uts4*) |
| 4928 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5279 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4929 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5280 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
Lines 4951-4957
Link Here
|
| 4951 |
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
5302 |
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4952 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
5303 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 4953 |
fi |
5304 |
fi |
| 4954 |
case "$host_os" in |
5305 |
case $host_os in |
| 4955 |
# For platforms which do not support PIC, -DPIC is meaningless: |
5306 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 4956 |
*djgpp*) |
5307 |
*djgpp*) |
| 4957 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
5308 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
|
Lines 4960-4965
Link Here
|
| 4960 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
5311 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
| 4961 |
;; |
5312 |
;; |
| 4962 |
esac |
5313 |
esac |
|
|
5314 |
|
| 5315 |
# |
| 5316 |
# Check to make sure the static flag actually works. |
| 5317 |
# |
| 5318 |
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" |
| 5319 |
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 5320 |
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 5321 |
$lt_tmp_static_flag, |
| 5322 |
[], |
| 5323 |
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 4963 |
]) |
5324 |
]) |
| 4964 |
|
5325 |
|
| 4965 |
|
5326 |
|
|
Lines 4984-4990
Link Here
|
| 4984 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
5345 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 4985 |
;; |
5346 |
;; |
| 4986 |
cygwin* | mingw*) |
5347 |
cygwin* | mingw*) |
| 4987 |
_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' |
5348 |
_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' |
|
|
5349 |
;; |
| 5350 |
linux* | k*bsd*-gnu) |
| 5351 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| 4988 |
;; |
5352 |
;; |
| 4989 |
*) |
5353 |
*) |
| 4990 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5354 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
Lines 5010-5016
Link Here
|
| 5010 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
5374 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 5011 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
5375 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 5012 |
_LT_AC_TAGVAR(module_cmds, $1)= |
5376 |
_LT_AC_TAGVAR(module_cmds, $1)= |
| 5013 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
5377 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 5014 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
5378 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 5015 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5379 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5016 |
# include_expsyms should be a list of space-separated symbols to be *always* |
5380 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
Lines 5027-5033
Link Here
|
| 5027 |
# rely on this symbol name, it's probably fine to never include it in |
5391 |
# rely on this symbol name, it's probably fine to never include it in |
| 5028 |
# preloaded symbol tables. |
5392 |
# preloaded symbol tables. |
| 5029 |
extract_expsyms_cmds= |
5393 |
extract_expsyms_cmds= |
| 5030 |
|
5394 |
# Just being paranoid about ensuring that cc_basename is set. |
|
|
5395 |
_LT_CC_BASENAME([$compiler]) |
| 5031 |
case $host_os in |
5396 |
case $host_os in |
| 5032 |
cygwin* | mingw* | pw32*) |
5397 |
cygwin* | mingw* | pw32*) |
| 5033 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
5398 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
Lines 5037-5042
Link Here
|
| 5037 |
with_gnu_ld=no |
5402 |
with_gnu_ld=no |
| 5038 |
fi |
5403 |
fi |
| 5039 |
;; |
5404 |
;; |
|
|
5405 |
interix*) |
| 5406 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 5407 |
with_gnu_ld=yes |
| 5408 |
;; |
| 5040 |
openbsd*) |
5409 |
openbsd*) |
| 5041 |
with_gnu_ld=no |
5410 |
with_gnu_ld=no |
| 5042 |
;; |
5411 |
;; |
|
Lines 5047-5052
Link Here
|
| 5047 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
5416 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 5048 |
wlarc='${wl}' |
5417 |
wlarc='${wl}' |
| 5049 |
|
5418 |
|
|
|
5419 |
# Set some defaults for GNU ld with shared library support. These |
| 5420 |
# are reset later if shared libraries are not supported. Putting them |
| 5421 |
# here allows them to be overridden if necessary. |
| 5422 |
runpath_var=LD_RUN_PATH |
| 5423 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 5424 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 5425 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 5426 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 5427 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5428 |
else |
| 5429 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5430 |
fi |
| 5431 |
supports_anon_versioning=no |
| 5432 |
case `$LD -v 2>/dev/null` in |
| 5433 |
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 5434 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 5435 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 5436 |
*\ 2.11.*) ;; # other 2.11 versions |
| 5437 |
*) supports_anon_versioning=yes ;; |
| 5438 |
esac |
| 5439 |
|
| 5050 |
# See if GNU ld supports shared libraries. |
5440 |
# See if GNU ld supports shared libraries. |
| 5051 |
case $host_os in |
5441 |
case $host_os in |
| 5052 |
aix3* | aix4* | aix5*) |
5442 |
aix3* | aix4* | aix5*) |
|
Lines 5084-5090
Link Here
|
| 5084 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5474 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5085 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
5475 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5086 |
# support --undefined. This deserves some investigation. FIXME |
5476 |
# support --undefined. This deserves some investigation. FIXME |
| 5087 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
5477 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5088 |
else |
5478 |
else |
| 5089 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
5479 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5090 |
fi |
5480 |
fi |
|
Lines 5094-5106
Link Here
|
| 5094 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5484 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 5095 |
# as there is no search path for DLLs. |
5485 |
# as there is no search path for DLLs. |
| 5096 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5486 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5097 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
5487 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5098 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
5488 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 5099 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5489 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5100 |
_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' |
5490 |
_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' |
| 5101 |
|
5491 |
|
| 5102 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
5492 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 5103 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
5493 |
_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' |
| 5104 |
# If the export-symbols file already is a .def file (1st line |
5494 |
# If the export-symbols file already is a .def file (1st line |
| 5105 |
# is EXPORTS), use it as is; otherwise, prepend... |
5495 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 5106 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
5496 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
Lines 5109-5131
Link Here
|
| 5109 |
echo EXPORTS > $output_objdir/$soname.def; |
5499 |
echo EXPORTS > $output_objdir/$soname.def; |
| 5110 |
cat $export_symbols >> $output_objdir/$soname.def; |
5500 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 5111 |
fi~ |
5501 |
fi~ |
| 5112 |
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
5502 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
5503 |
else |
| 5504 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5505 |
fi |
| 5506 |
;; |
| 5507 |
|
| 5508 |
interix3*) |
| 5509 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5510 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5511 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5512 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5513 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 5514 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 5515 |
# default) and relocated if they conflict, which is a slow very memory |
| 5516 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 5517 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 5518 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 5519 |
_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' |
| 5520 |
_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' |
| 5521 |
;; |
| 5522 |
|
| 5523 |
linux* | k*bsd*-gnu) |
| 5524 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5525 |
tmp_addflag= |
| 5526 |
case $cc_basename,$host_cpu in |
| 5527 |
pgcc*) # Portland Group C compiler |
| 5528 |
_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' |
| 5529 |
tmp_addflag=' $pic_flag' |
| 5530 |
;; |
| 5531 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 5532 |
_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' |
| 5533 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 5534 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 5535 |
tmp_addflag=' -i_dynamic' ;; |
| 5536 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 5537 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 5538 |
ifc* | ifort*) # Intel Fortran compiler |
| 5539 |
tmp_addflag=' -nofor_main' ;; |
| 5540 |
esac |
| 5541 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5542 |
|
| 5543 |
if test $supports_anon_versioning = yes; then |
| 5544 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 5545 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 5546 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 5547 |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 5548 |
fi |
| 5549 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| 5113 |
else |
5550 |
else |
| 5114 |
ld_shlibs=no |
5551 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5115 |
fi |
5552 |
fi |
| 5116 |
;; |
5553 |
;; |
| 5117 |
|
5554 |
|
| 5118 |
netbsd*) |
5555 |
netbsd* | netbsdelf*-gnu) |
| 5119 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5556 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5120 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5557 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5121 |
wlarc= |
5558 |
wlarc= |
| 5122 |
else |
5559 |
else |
| 5123 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
5560 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5124 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5561 |
_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' |
| 5125 |
fi |
5562 |
fi |
| 5126 |
;; |
5563 |
;; |
| 5127 |
|
5564 |
|
| 5128 |
solaris* | sysv5*) |
5565 |
solaris*) |
| 5129 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
5566 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 5130 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
5567 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5131 |
cat <<EOF 1>&2 |
5568 |
cat <<EOF 1>&2 |
|
Lines 5139-5151
Link Here
|
| 5139 |
|
5576 |
|
| 5140 |
EOF |
5577 |
EOF |
| 5141 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5578 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5142 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
5579 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5143 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5580 |
_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' |
| 5144 |
else |
5581 |
else |
| 5145 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
5582 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5146 |
fi |
5583 |
fi |
| 5147 |
;; |
5584 |
;; |
| 5148 |
|
5585 |
|
|
|
5586 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 5587 |
case `$LD -v 2>&1` in |
| 5588 |
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 5589 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5590 |
cat <<_LT_EOF 1>&2 |
| 5591 |
|
| 5592 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 5593 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 5594 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 5595 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 5596 |
*** your PATH or compiler configuration so that the native linker is |
| 5597 |
*** used, and then restart. |
| 5598 |
|
| 5599 |
_LT_EOF |
| 5600 |
;; |
| 5601 |
*) |
| 5602 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5603 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 5604 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 5605 |
_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' |
| 5606 |
else |
| 5607 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5608 |
fi |
| 5609 |
;; |
| 5610 |
esac |
| 5611 |
;; |
| 5612 |
|
| 5149 |
sunos4*) |
5613 |
sunos4*) |
| 5150 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5614 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5151 |
wlarc= |
5615 |
wlarc= |
|
Lines 5155-5178
Link Here
|
| 5155 |
|
5619 |
|
| 5156 |
*) |
5620 |
*) |
| 5157 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5621 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5158 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
5622 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5159 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5623 |
_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' |
| 5160 |
else |
5624 |
else |
| 5161 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
5625 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5162 |
fi |
5626 |
fi |
| 5163 |
;; |
5627 |
;; |
| 5164 |
esac |
5628 |
esac |
| 5165 |
|
5629 |
|
| 5166 |
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
5630 |
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then |
| 5167 |
runpath_var=LD_RUN_PATH |
5631 |
runpath_var= |
| 5168 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
5632 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 5169 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5633 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 5170 |
# ancient GNU ld didn't support --whole-archive et. al. |
5634 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5171 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
| 5172 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5173 |
else |
| 5174 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5175 |
fi |
| 5176 |
fi |
5635 |
fi |
| 5177 |
else |
5636 |
else |
| 5178 |
# PORTME fill in a description of your system's linker (not GNU ld) |
5637 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
Lines 5184-5190
Link Here
|
| 5184 |
# Note: this linker hardcodes the directories in LIBPATH if there |
5643 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 5185 |
# are no directories specified by -L. |
5644 |
# are no directories specified by -L. |
| 5186 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5645 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5187 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
5646 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 5188 |
# Neither direct hardcoding nor static linking is supported with a |
5647 |
# Neither direct hardcoding nor static linking is supported with a |
| 5189 |
# broken collect2. |
5648 |
# broken collect2. |
| 5190 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
5649 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
|
Lines 5206-5214
Link Here
|
| 5206 |
else |
5665 |
else |
| 5207 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
5666 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
| 5208 |
fi |
5667 |
fi |
|
|
5668 |
aix_use_runtimelinking=no |
| 5669 |
|
| 5670 |
# Test if we are trying to use run time linking or normal |
| 5671 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5672 |
# need to do runtime linking. |
| 5673 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 5674 |
for ld_flag in $LDFLAGS; do |
| 5675 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 5676 |
aix_use_runtimelinking=yes |
| 5677 |
break |
| 5678 |
fi |
| 5679 |
done |
| 5680 |
;; |
| 5681 |
esac |
| 5209 |
|
5682 |
|
| 5210 |
# KDE requires run time linking. Make it the default. |
|
|
| 5211 |
aix_use_runtimelinking=yes |
| 5212 |
exp_sym_flag='-bexport' |
5683 |
exp_sym_flag='-bexport' |
| 5213 |
no_entry_flag='-bnoentry' |
5684 |
no_entry_flag='-bnoentry' |
| 5214 |
fi |
5685 |
fi |
|
Lines 5225-5231
Link Here
|
| 5225 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5696 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5226 |
|
5697 |
|
| 5227 |
if test "$GCC" = yes; then |
5698 |
if test "$GCC" = yes; then |
| 5228 |
case $host_os in aix4.[012]|aix4.[012].*) |
5699 |
case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 5229 |
# We only want to do this on AIX 4.2 and lower, the check |
5700 |
# We only want to do this on AIX 4.2 and lower, the check |
| 5230 |
# below for broken collect2 doesn't work under 4.3+ |
5701 |
# below for broken collect2 doesn't work under 4.3+ |
| 5231 |
collect2name=`${CC} -print-prog-name=collect2` |
5702 |
collect2name=`${CC} -print-prog-name=collect2` |
|
Lines 5244-5251
Link Here
|
| 5244 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5715 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5245 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
5716 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 5246 |
fi |
5717 |
fi |
|
|
5718 |
;; |
| 5247 |
esac |
5719 |
esac |
| 5248 |
shared_flag='-shared' |
5720 |
shared_flag='-shared' |
|
|
5721 |
if test "$aix_use_runtimelinking" = yes; then |
| 5722 |
shared_flag="$shared_flag "'${wl}-G' |
| 5723 |
fi |
| 5249 |
else |
5724 |
else |
| 5250 |
# not using gcc |
5725 |
# not using gcc |
| 5251 |
if test "$host_cpu" = ia64; then |
5726 |
if test "$host_cpu" = ia64; then |
|
Lines 5253-5282
Link Here
|
| 5253 |
# chokes on -Wl,-G. The following line is correct: |
5728 |
# chokes on -Wl,-G. The following line is correct: |
| 5254 |
shared_flag='-G' |
5729 |
shared_flag='-G' |
| 5255 |
else |
5730 |
else |
| 5256 |
if test "$aix_use_runtimelinking" = yes; then |
5731 |
if test "$aix_use_runtimelinking" = yes; then |
| 5257 |
shared_flag='-qmkshrobj ${wl}-G' |
5732 |
shared_flag='${wl}-G' |
| 5258 |
else |
5733 |
else |
| 5259 |
shared_flag='-qmkshrobj' |
5734 |
shared_flag='${wl}-bM:SRE' |
| 5260 |
fi |
5735 |
fi |
| 5261 |
fi |
5736 |
fi |
| 5262 |
fi |
5737 |
fi |
| 5263 |
|
5738 |
|
| 5264 |
# Let the compiler handle the export list. |
5739 |
# It seems that -bexpall does not export symbols beginning with |
| 5265 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
5740 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
|
5741 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 5266 |
if test "$aix_use_runtimelinking" = yes; then |
5742 |
if test "$aix_use_runtimelinking" = yes; then |
| 5267 |
# Warning - without using the other runtime loading flags (-brtl), |
5743 |
# Warning - without using the other runtime loading flags (-brtl), |
| 5268 |
# -berok will link without error, but may produce a broken library. |
5744 |
# -berok will link without error, but may produce a broken library. |
| 5269 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
5745 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 5270 |
# Determine the default libpath from the value encoded in an empty executable. |
5746 |
# Determine the default libpath from the value encoded in an empty executable. |
| 5271 |
_LT_AC_SYS_LIBPATH_AIX |
5747 |
_LT_AC_SYS_LIBPATH_AIX |
| 5272 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5748 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 5273 |
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
5749 |
_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" |
| 5274 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
| 5275 |
else |
5750 |
else |
| 5276 |
if test "$host_cpu" = ia64; then |
5751 |
if test "$host_cpu" = ia64; then |
| 5277 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5752 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 5278 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5753 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 5279 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
5754 |
_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" |
| 5280 |
else |
5755 |
else |
| 5281 |
# Determine the default libpath from the value encoded in an empty executable. |
5756 |
# Determine the default libpath from the value encoded in an empty executable. |
| 5282 |
_LT_AC_SYS_LIBPATH_AIX |
5757 |
_LT_AC_SYS_LIBPATH_AIX |
|
Lines 5285-5297
Link Here
|
| 5285 |
# -berok will link without error, but may produce a broken library. |
5760 |
# -berok will link without error, but may produce a broken library. |
| 5286 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5761 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 5287 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5762 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 5288 |
# -bexpall does not export symbols beginning with underscore (_) |
|
|
| 5289 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 5290 |
# Exported symbols can be pulled into shared objects from archives |
5763 |
# Exported symbols can be pulled into shared objects from archives |
| 5291 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
5764 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 5292 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5765 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5293 |
# This is similar to how AIX traditionally builds it's shared libraries. |
5766 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 5294 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
5767 |
_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' |
| 5295 |
fi |
5768 |
fi |
| 5296 |
fi |
5769 |
fi |
| 5297 |
;; |
5770 |
;; |
|
Lines 5304-5310
Link Here
|
| 5304 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
5777 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5305 |
;; |
5778 |
;; |
| 5306 |
|
5779 |
|
| 5307 |
bsdi4*) |
5780 |
bsdi[[45]]*) |
| 5308 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
5781 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 5309 |
;; |
5782 |
;; |
| 5310 |
|
5783 |
|
|
Lines 5314-5382
Link Here
|
| 5314 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
5787 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5315 |
# no search path for DLLs. |
5788 |
# no search path for DLLs. |
| 5316 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
5789 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 5317 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
5790 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5318 |
# Tell ltmain to make .lib files, not .a files. |
5791 |
# Tell ltmain to make .lib files, not .a files. |
| 5319 |
libext=lib |
5792 |
libext=lib |
| 5320 |
# Tell ltmain to make .dll files, not .so files. |
5793 |
# Tell ltmain to make .dll files, not .so files. |
| 5321 |
shrext=".dll" |
5794 |
shrext_cmds=".dll" |
| 5322 |
# FIXME: Setting linknames here is a bad hack. |
5795 |
# FIXME: Setting linknames here is a bad hack. |
| 5323 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
5796 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5324 |
# The linker will automatically build a .lib file if we build a DLL. |
5797 |
# The linker will automatically build a .lib file if we build a DLL. |
| 5325 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
5798 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
| 5326 |
# FIXME: Should let the user specify the lib program. |
5799 |
# FIXME: Should let the user specify the lib program. |
| 5327 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
5800 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5328 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
5801 |
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| 5329 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5802 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5330 |
;; |
5803 |
;; |
| 5331 |
|
5804 |
|
| 5332 |
darwin* | rhapsody*) |
5805 |
darwin* | rhapsody*) |
| 5333 |
if test "$GXX" = yes ; then |
5806 |
case $host_os in |
| 5334 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5807 |
rhapsody* | darwin1.[[012]]) |
| 5335 |
case "$host_os" in |
5808 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 5336 |
rhapsody* | darwin1.[[012]]) |
5809 |
;; |
| 5337 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
5810 |
*) # Darwin 1.3 on |
| 5338 |
;; |
5811 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 5339 |
*) # Darwin 1.3 on |
5812 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 5340 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
5813 |
else |
| 5341 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
5814 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 5342 |
else |
5815 |
10.[[012]]) |
| 5343 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
5816 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 5344 |
10.[012]) |
5817 |
;; |
| 5345 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
5818 |
10.*) |
| 5346 |
;; |
5819 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 5347 |
10.*) |
5820 |
;; |
| 5348 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' |
5821 |
esac |
| 5349 |
;; |
5822 |
fi |
| 5350 |
esac |
5823 |
;; |
| 5351 |
fi |
|
|
| 5352 |
;; |
| 5353 |
esac |
5824 |
esac |
| 5354 |
lt_int_apple_cc_single_mod=no |
5825 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5355 |
output_verbose_link_cmd='echo' |
|
|
| 5356 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 5357 |
lt_int_apple_cc_single_mod=yes |
| 5358 |
fi |
| 5359 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 5360 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 5361 |
else |
| 5362 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
| 5363 |
fi |
| 5364 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 5365 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 5366 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 5367 |
_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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5368 |
else |
| 5369 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5370 |
fi |
| 5371 |
_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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5372 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
5826 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5373 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
5827 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 5374 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5828 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 5375 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
5829 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 5376 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5830 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5377 |
else |
5831 |
if test "$GCC" = yes ; then |
| 5378 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
5832 |
output_verbose_link_cmd='echo' |
| 5379 |
fi |
5833 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
5834 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 5835 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 5836 |
_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}' |
| 5837 |
_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}' |
| 5838 |
else |
| 5839 |
case $cc_basename in |
| 5840 |
xlc*) |
| 5841 |
output_verbose_link_cmd='echo' |
| 5842 |
_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' |
| 5843 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 5844 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 5845 |
_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}' |
| 5846 |
_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}' |
| 5847 |
;; |
| 5848 |
*) |
| 5849 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5850 |
;; |
| 5851 |
esac |
| 5852 |
fi |
| 5380 |
;; |
5853 |
;; |
| 5381 |
|
5854 |
|
| 5382 |
dgux*) |
5855 |
dgux*) |
|
Lines 5409-5416
Link Here
|
| 5409 |
;; |
5882 |
;; |
| 5410 |
|
5883 |
|
| 5411 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5884 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5412 |
freebsd* | kfreebsd*-gnu) |
5885 |
freebsd* | dragonfly*) |
| 5413 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
5886 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5414 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5887 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5415 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5888 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5416 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5889 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
Lines 5418-5424
Link Here
|
| 5418 |
|
5891 |
|
| 5419 |
hpux9*) |
5892 |
hpux9*) |
| 5420 |
if test "$GCC" = yes; then |
5893 |
if test "$GCC" = yes; then |
| 5421 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
5894 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 5422 |
else |
5895 |
else |
| 5423 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
5896 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 5424 |
fi |
5897 |
fi |
|
Lines 5432-5478
Link Here
|
| 5432 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5905 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5433 |
;; |
5906 |
;; |
| 5434 |
|
5907 |
|
| 5435 |
hpux10* | hpux11*) |
5908 |
hpux10*) |
| 5436 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
5909 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 5437 |
case "$host_cpu" in |
5910 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 5438 |
hppa*64*|ia64*) |
5911 |
else |
| 5439 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
5912 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
5913 |
fi |
| 5914 |
if test "$with_gnu_ld" = no; then |
| 5915 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 5916 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5917 |
|
| 5918 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5919 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5920 |
|
| 5921 |
# hardcode_minus_L: Not really in the search PATH, |
| 5922 |
# but as the default location of the library. |
| 5923 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5924 |
fi |
| 5925 |
;; |
| 5926 |
|
| 5927 |
hpux11*) |
| 5928 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 5929 |
case $host_cpu in |
| 5930 |
hppa*64*) |
| 5931 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5932 |
;; |
| 5933 |
ia64*) |
| 5934 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 5440 |
;; |
5935 |
;; |
| 5441 |
*) |
5936 |
*) |
| 5442 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
5937 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 5443 |
;; |
5938 |
;; |
| 5444 |
esac |
5939 |
esac |
| 5445 |
else |
5940 |
else |
| 5446 |
case "$host_cpu" in |
5941 |
case $host_cpu in |
| 5447 |
hppa*64*|ia64*) |
5942 |
hppa*64*) |
| 5448 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
5943 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
5944 |
;; |
| 5945 |
ia64*) |
| 5946 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 5449 |
;; |
5947 |
;; |
| 5450 |
*) |
5948 |
*) |
| 5451 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
5949 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 5452 |
;; |
5950 |
;; |
| 5453 |
esac |
5951 |
esac |
| 5454 |
fi |
5952 |
fi |
| 5455 |
if test "$with_gnu_ld" = no; then |
5953 |
if test "$with_gnu_ld" = no; then |
| 5456 |
case "$host_cpu" in |
5954 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 5457 |
hppa*64*) |
5955 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5458 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5956 |
|
|
|
5957 |
case $host_cpu in |
| 5958 |
hppa*64*|ia64*) |
| 5459 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
5959 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 5460 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
| 5461 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
5960 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5462 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5961 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5463 |
;; |
5962 |
;; |
| 5464 |
ia64*) |
|
|
| 5465 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5466 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5467 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5468 |
|
| 5469 |
# hardcode_minus_L: Not really in the search PATH, |
| 5470 |
# but as the default location of the library. |
| 5471 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5472 |
;; |
| 5473 |
*) |
5963 |
*) |
| 5474 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
|
|
| 5475 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5476 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5964 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5477 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5965 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5478 |
|
5966 |
|
|
Lines 5486-5492
Link Here
|
| 5486 |
|
5974 |
|
| 5487 |
irix5* | irix6* | nonstopux*) |
5975 |
irix5* | irix6* | nonstopux*) |
| 5488 |
if test "$GCC" = yes; then |
5976 |
if test "$GCC" = yes; then |
| 5489 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
5977 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $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' |
| 5490 |
else |
5978 |
else |
| 5491 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
5979 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5492 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
5980 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
|
Lines 5496-5502
Link Here
|
| 5496 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5984 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5497 |
;; |
5985 |
;; |
| 5498 |
|
5986 |
|
| 5499 |
netbsd*) |
5987 |
netbsd* | netbsdelf*-gnu) |
| 5500 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5988 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5501 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
5989 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5502 |
else |
5990 |
else |
|
Lines 5519-5525
Link Here
|
| 5519 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
6007 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5520 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6008 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5521 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6009 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5522 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
6010 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6011 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 5523 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
6012 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5524 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6013 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5525 |
else |
6014 |
else |
|
Lines 5529-5535
Link Here
|
| 5529 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6018 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5530 |
;; |
6019 |
;; |
| 5531 |
*) |
6020 |
*) |
| 5532 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
6021 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5533 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
6022 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5534 |
;; |
6023 |
;; |
| 5535 |
esac |
6024 |
esac |
|
Lines 5540-5553
Link Here
|
| 5540 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6029 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5541 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
6030 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5542 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
6031 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5543 |
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' |
6032 |
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 5544 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6033 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5545 |
;; |
6034 |
;; |
| 5546 |
|
6035 |
|
| 5547 |
osf3*) |
6036 |
osf3*) |
| 5548 |
if test "$GCC" = yes; then |
6037 |
if test "$GCC" = yes; then |
| 5549 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6038 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 5550 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6039 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
| 5551 |
else |
6040 |
else |
| 5552 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6041 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 5553 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
6042 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
Lines 5559-5571
Link Here
|
| 5559 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
6048 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5560 |
if test "$GCC" = yes; then |
6049 |
if test "$GCC" = yes; then |
| 5561 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6050 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 5562 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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' |
6051 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
| 5563 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6052 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5564 |
else |
6053 |
else |
| 5565 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6054 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 5566 |
_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' |
6055 |
_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' |
| 5567 |
_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~ |
6056 |
_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~ |
| 5568 |
$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' |
6057 |
$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' |
| 5569 |
|
6058 |
|
| 5570 |
# Both c and cxx compiler support -rpath directly |
6059 |
# Both c and cxx compiler support -rpath directly |
| 5571 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6060 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
|
Lines 5573-5593
Link Here
|
| 5573 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
6062 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5574 |
;; |
6063 |
;; |
| 5575 |
|
6064 |
|
| 5576 |
sco3.2v5*) |
|
|
| 5577 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5578 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5579 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 5580 |
runpath_var=LD_RUN_PATH |
| 5581 |
hardcode_runpath_var=yes |
| 5582 |
;; |
| 5583 |
|
| 5584 |
solaris*) |
6065 |
solaris*) |
| 5585 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
6066 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 5586 |
if test "$GCC" = yes; then |
6067 |
if test "$GCC" = yes; then |
| 5587 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
6068 |
wlarc='${wl}' |
|
|
6069 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5588 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6070 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5589 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
6071 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 5590 |
else |
6072 |
else |
|
|
6073 |
wlarc='' |
| 5591 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6074 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5592 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6075 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5593 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
6076 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
Lines 5596-5603
Link Here
|
| 5596 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6079 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5597 |
case $host_os in |
6080 |
case $host_os in |
| 5598 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6081 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 5599 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
6082 |
*) |
| 5600 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
6083 |
# The compiler driver will combine linker options so we |
|
|
6084 |
# cannot just pass the convience library names through |
| 6085 |
# without $wl, iff we do not link with $LD. |
| 6086 |
# Luckily, gcc supports the same syntax we need for Sun Studio. |
| 6087 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6088 |
case $wlarc in |
| 6089 |
'') |
| 6090 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
| 6091 |
*) |
| 6092 |
_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' ;; |
| 6093 |
esac ;; |
| 5601 |
esac |
6094 |
esac |
| 5602 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
6095 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5603 |
;; |
6096 |
;; |
|
Lines 5606-5612
Link Here
|
| 5606 |
if test "x$host_vendor" = xsequent; then |
6099 |
if test "x$host_vendor" = xsequent; then |
| 5607 |
# Use $CC to link under sequent, because it throws in some extra .o |
6100 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 5608 |
# files that make .init and .fini sections work. |
6101 |
# files that make .init and .fini sections work. |
| 5609 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
6102 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5610 |
else |
6103 |
else |
| 5611 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
6104 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5612 |
fi |
6105 |
fi |
|
Lines 5654-5689
Link Here
|
| 5654 |
fi |
6147 |
fi |
| 5655 |
;; |
6148 |
;; |
| 5656 |
|
6149 |
|
| 5657 |
sysv4.2uw2*) |
6150 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) |
| 5658 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
6151 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 5659 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
6152 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5660 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
|
|
| 5661 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6153 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5662 |
hardcode_runpath_var=yes |
6154 |
runpath_var='LD_RUN_PATH' |
| 5663 |
runpath_var=LD_RUN_PATH |
|
|
| 5664 |
;; |
| 5665 |
|
6155 |
|
| 5666 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
|
|
| 5667 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
| 5668 |
if test "$GCC" = yes; then |
6156 |
if test "$GCC" = yes; then |
| 5669 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
6157 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6158 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5670 |
else |
6159 |
else |
| 5671 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
6160 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6161 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5672 |
fi |
6162 |
fi |
| 5673 |
runpath_var='LD_RUN_PATH' |
|
|
| 5674 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5675 |
;; |
6163 |
;; |
| 5676 |
|
6164 |
|
| 5677 |
sysv5*) |
6165 |
sysv5* | sco3.2v5* | sco5v6*) |
| 5678 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
6166 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 5679 |
# $CC -shared without GNU ld will not create a library from C++ |
6167 |
# link with -lc, and that would cause any symbols used from libc to |
| 5680 |
# object files and a static libstdc++, better avoid it by now |
6168 |
# always be unresolved, which means just about no library would |
| 5681 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6169 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 5682 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6170 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 5683 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
6171 |
# as -z defs. |
| 5684 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6172 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
|
|
6173 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 6174 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5685 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6175 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
6176 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 6177 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 6178 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 6179 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 5686 |
runpath_var='LD_RUN_PATH' |
6180 |
runpath_var='LD_RUN_PATH' |
|
|
6181 |
|
| 6182 |
if test "$GCC" = yes; then |
| 6183 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6184 |
_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' |
| 6185 |
else |
| 6186 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6187 |
_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' |
| 6188 |
fi |
| 5687 |
;; |
6189 |
;; |
| 5688 |
|
6190 |
|
| 5689 |
uts4*) |
6191 |
uts4*) |
|
Lines 5701-5711
Link Here
|
| 5701 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
6203 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 5702 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
6204 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 5703 |
|
6205 |
|
| 5704 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
| 5705 |
if test "$GCC" = yes; then |
| 5706 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 5707 |
fi |
| 5708 |
|
| 5709 |
# |
6206 |
# |
| 5710 |
# Do we need to explicitly link libc? |
6207 |
# Do we need to explicitly link libc? |
| 5711 |
# |
6208 |
# |
|
Lines 5726-5738
Link Here
|
| 5726 |
AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
6223 |
AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 5727 |
$rm conftest* |
6224 |
$rm conftest* |
| 5728 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6225 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5729 |
|
6226 |
|
| 5730 |
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
6227 |
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 5731 |
soname=conftest |
6228 |
soname=conftest |
| 5732 |
lib=conftest |
6229 |
lib=conftest |
| 5733 |
libobjs=conftest.$ac_objext |
6230 |
libobjs=conftest.$ac_objext |
| 5734 |
deplibs= |
6231 |
deplibs= |
| 5735 |
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
6232 |
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
|
|
6233 |
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
| 5736 |
compiler_flags=-v |
6234 |
compiler_flags=-v |
| 5737 |
linker_flags=-v |
6235 |
linker_flags=-v |
| 5738 |
verstring= |
6236 |
verstring= |
|
Lines 5860-5866
Link Here
|
| 5860 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
6358 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 5861 |
# along with /bin/sed that truncates output. |
6359 |
# along with /bin/sed that truncates output. |
| 5862 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
6360 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 5863 |
test ! -f $lt_ac_sed && break |
6361 |
test ! -f $lt_ac_sed && continue |
| 5864 |
cat /dev/null > conftest.in |
6362 |
cat /dev/null > conftest.in |
| 5865 |
lt_ac_count=0 |
6363 |
lt_ac_count=0 |
| 5866 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
6364 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |