… | |
… | |
586 | exit 0 |
586 | exit 0 |
587 | fi |
587 | fi |
588 | |
588 | |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
590 | # if CDPATH is set. |
590 | # if CDPATH is set. |
591 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
592 | |
592 | |
593 | if test -z "$ECHO"; then |
593 | if test -z "$ECHO"; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
595 | # find a string as large as possible, as long as the shell can cope with it |
595 | # find a string as large as possible, as long as the shell can cope with it |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
598 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 | echo_test_string="`eval $cmd`" && |
599 | echo_test_string=`eval $cmd` && |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 | then |
601 | then |
602 | break |
602 | break |
603 | fi |
603 | fi |
604 | done |
604 | done |
… | |
… | |
4072 | lt_ac_max=0 |
4072 | lt_ac_max=0 |
4073 | lt_ac_count=0 |
4073 | lt_ac_count=0 |
4074 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
4074 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
4075 | # along with /bin/sed that truncates output. |
4075 | # along with /bin/sed that truncates output. |
4076 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
4076 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
4077 | test ! -f $lt_ac_sed && break |
4077 | test ! -f $lt_ac_sed && continue |
4078 | cat /dev/null > conftest.in |
4078 | cat /dev/null > conftest.in |
4079 | lt_ac_count=0 |
4079 | lt_ac_count=0 |
4080 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
4080 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
4081 | # Check for GNU sed and select it if it is found. |
4081 | # Check for GNU sed and select it if it is found. |
4082 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
4082 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
… | |
… | |
4097 | lt_ac_max=$lt_ac_count |
4097 | lt_ac_max=$lt_ac_count |
4098 | lt_cv_path_SED=$lt_ac_sed |
4098 | lt_cv_path_SED=$lt_ac_sed |
4099 | fi |
4099 | fi |
4100 | done |
4100 | done |
4101 | done |
4101 | done |
|
|
4102 | |
|
|
4103 | fi |
|
|
4104 | |
4102 | SED=$lt_cv_path_SED |
4105 | SED=$lt_cv_path_SED |
4103 | |
|
|
4104 | fi |
|
|
4105 | |
|
|
4106 | { echo "$as_me:$LINENO: result: $SED" >&5 |
4106 | { echo "$as_me:$LINENO: result: $SED" >&5 |
4107 | echo "${ECHO_T}$SED" >&6; } |
4107 | echo "${ECHO_T}$SED" >&6; } |
4108 | |
4108 | |
4109 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4109 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4110 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
4110 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
… | |
… | |
4324 | IFS="$lt_save_ifs" |
4324 | IFS="$lt_save_ifs" |
4325 | test -z "$ac_dir" && ac_dir=. |
4325 | test -z "$ac_dir" && ac_dir=. |
4326 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4326 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4327 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4327 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4328 | # Check to see if the program is GNU ld. I'd rather use --version, |
4328 | # Check to see if the program is GNU ld. I'd rather use --version, |
4329 | # but apparently some GNU ld's only accept -v. |
4329 | # but apparently some variants of GNU ld only accept -v. |
4330 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4330 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4331 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4331 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4332 | *GNU* | *'with BFD'*) |
4332 | *GNU* | *'with BFD'*) |
4333 | test "$with_gnu_ld" != no && break |
4333 | test "$with_gnu_ld" != no && break |
4334 | ;; |
4334 | ;; |
… | |
… | |
4358 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4358 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4359 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
4359 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
4360 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4360 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4362 | else |
4362 | else |
4363 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
4363 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4364 | case `$LD -v 2>&1 </dev/null` in |
4364 | case `$LD -v 2>&1 </dev/null` in |
4365 | *GNU* | *'with BFD'*) |
4365 | *GNU* | *'with BFD'*) |
4366 | lt_cv_prog_gnu_ld=yes |
4366 | lt_cv_prog_gnu_ld=yes |
4367 | ;; |
4367 | ;; |
4368 | *) |
4368 | *) |
… | |
… | |
4388 | case $reload_flag in |
4388 | case $reload_flag in |
4389 | "" | " "*) ;; |
4389 | "" | " "*) ;; |
4390 | *) reload_flag=" $reload_flag" ;; |
4390 | *) reload_flag=" $reload_flag" ;; |
4391 | esac |
4391 | esac |
4392 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4392 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
4393 | case $host_os in |
|
|
4394 | darwin*) |
|
|
4395 | if test "$GCC" = yes; then |
|
|
4396 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
|
|
4397 | else |
|
|
4398 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
4399 | fi |
|
|
4400 | ;; |
|
|
4401 | esac |
4393 | |
4402 | |
4394 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4403 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4395 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
4404 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
4396 | if test "${lt_cv_path_NM+set}" = set; then |
4405 | if test "${lt_cv_path_NM+set}" = set; then |
4397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4398 | else |
4407 | else |
4399 | if test -n "$NM"; then |
4408 | if test -n "$NM"; then |
4400 | # Let the user override the test. |
4409 | # Let the user override the test. |
4401 | lt_cv_path_NM="$NM" |
4410 | lt_cv_path_NM="$NM" |
4402 | else |
4411 | else |
|
|
4412 | lt_nm_to_check="${ac_tool_prefix}nm" |
|
|
4413 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
|
4414 | lt_nm_to_check="$lt_nm_to_check nm" |
|
|
4415 | fi |
|
|
4416 | for lt_tmp_nm in $lt_nm_to_check; do |
4403 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4417 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4404 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
4418 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4405 | IFS="$lt_save_ifs" |
4419 | IFS="$lt_save_ifs" |
4406 | test -z "$ac_dir" && ac_dir=. |
4420 | test -z "$ac_dir" && ac_dir=. |
4407 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
4421 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4408 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4422 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4409 | # Check to see if the nm accepts a BSD-compat flag. |
4423 | # Check to see if the nm accepts a BSD-compat flag. |
4410 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4424 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4411 | # nm: unknown option "B" ignored |
4425 | # nm: unknown option "B" ignored |
4412 | # Tru64's nm complains that /dev/null is an invalid object file |
4426 | # Tru64's nm complains that /dev/null is an invalid object file |
4413 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
|
4414 | */dev/null* | *'Invalid file or object type'*) |
|
|
4415 | lt_cv_path_NM="$tmp_nm -B" |
|
|
4416 | break |
|
|
4417 | ;; |
|
|
4418 | *) |
|
|
4419 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4427 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4420 | */dev/null*) |
4428 | */dev/null* | *'Invalid file or object type'*) |
4421 | lt_cv_path_NM="$tmp_nm -p" |
4429 | lt_cv_path_NM="$tmp_nm -B" |
4422 | break |
4430 | break |
4423 | ;; |
4431 | ;; |
4424 | *) |
4432 | *) |
|
|
4433 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
|
4434 | */dev/null*) |
|
|
4435 | lt_cv_path_NM="$tmp_nm -p" |
|
|
4436 | break |
|
|
4437 | ;; |
|
|
4438 | *) |
4425 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4439 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4426 | continue # so that we can try to find one that supports BSD flags |
4440 | continue # so that we can try to find one that supports BSD flags |
|
|
4441 | ;; |
|
|
4442 | esac |
4427 | ;; |
4443 | ;; |
4428 | esac |
4444 | esac |
4429 | esac |
|
|
4430 | fi |
4445 | fi |
|
|
4446 | done |
|
|
4447 | IFS="$lt_save_ifs" |
4431 | done |
4448 | done |
4432 | IFS="$lt_save_ifs" |
|
|
4433 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4449 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4434 | fi |
4450 | fi |
4435 | fi |
4451 | fi |
4436 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4452 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4437 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
4453 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
… | |
… | |
4463 | |
4479 | |
4464 | beos*) |
4480 | beos*) |
4465 | lt_cv_deplibs_check_method=pass_all |
4481 | lt_cv_deplibs_check_method=pass_all |
4466 | ;; |
4482 | ;; |
4467 | |
4483 | |
4468 | bsdi4*) |
4484 | bsdi[45]*) |
4469 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4485 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4470 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4486 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4471 | lt_cv_file_magic_test_file=/shlib/libc.so |
4487 | lt_cv_file_magic_test_file=/shlib/libc.so |
4472 | ;; |
4488 | ;; |
4473 | |
4489 | |
4474 | cygwin*) |
4490 | cygwin*) |
4475 | # win32_libid is a shell function defined in ltmain.sh |
4491 | # func_win32_libid is a shell function defined in ltmain.sh |
4476 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4492 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4477 | lt_cv_file_magic_cmd='win32_libid' |
4493 | lt_cv_file_magic_cmd='func_win32_libid' |
4478 | ;; |
4494 | ;; |
4479 | |
4495 | |
4480 | mingw* | pw32*) |
4496 | mingw* | pw32*) |
4481 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4497 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4482 | # win32_libid shell function, so use a weaker test based on 'objdump'. |
4498 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4483 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4499 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4484 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4500 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4485 | ;; |
4501 | ;; |
4486 | |
4502 | |
4487 | darwin* | rhapsody*) |
4503 | darwin* | rhapsody*) |
4488 | lt_cv_deplibs_check_method=pass_all |
4504 | lt_cv_deplibs_check_method=pass_all |
4489 | ;; |
4505 | ;; |
4490 | |
4506 | |
4491 | freebsd* | kfreebsd*-gnu) |
4507 | freebsd* | dragonfly*) |
4492 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4508 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4493 | case $host_cpu in |
4509 | case $host_cpu in |
4494 | i*86 ) |
4510 | i*86 ) |
4495 | # Not sure whether the presence of OpenBSD here was a mistake. |
4511 | # Not sure whether the presence of OpenBSD here was a mistake. |
4496 | # Let's accept both of them until this is cleared up. |
4512 | # Let's accept both of them until this is cleared up. |
4497 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
4513 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4498 | lt_cv_file_magic_cmd=/usr/bin/file |
4514 | lt_cv_file_magic_cmd=/usr/bin/file |
4499 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4515 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4500 | ;; |
4516 | ;; |
4501 | esac |
4517 | esac |
4502 | else |
4518 | else |
… | |
… | |
4508 | lt_cv_deplibs_check_method=pass_all |
4524 | lt_cv_deplibs_check_method=pass_all |
4509 | ;; |
4525 | ;; |
4510 | |
4526 | |
4511 | hpux10.20* | hpux11*) |
4527 | hpux10.20* | hpux11*) |
4512 | lt_cv_file_magic_cmd=/usr/bin/file |
4528 | lt_cv_file_magic_cmd=/usr/bin/file |
4513 | case "$host_cpu" in |
4529 | case $host_cpu in |
4514 | ia64*) |
4530 | ia64*) |
4515 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4531 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4516 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4532 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4517 | ;; |
4533 | ;; |
4518 | hppa*64*) |
4534 | hppa*64*) |
… | |
… | |
4524 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4540 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4525 | ;; |
4541 | ;; |
4526 | esac |
4542 | esac |
4527 | ;; |
4543 | ;; |
4528 | |
4544 | |
|
|
4545 | interix3*) |
|
|
4546 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
|
4547 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
|
4548 | ;; |
|
|
4549 | |
4529 | irix5* | irix6* | nonstopux*) |
4550 | irix5* | irix6* | nonstopux*) |
4530 | case $LD in |
4551 | case $LD in |
4531 | *-32|*"-32 ") libmagic=32-bit;; |
4552 | *-32|*"-32 ") libmagic=32-bit;; |
4532 | *-n32|*"-n32 ") libmagic=N32;; |
4553 | *-n32|*"-n32 ") libmagic=N32;; |
4533 | *-64|*"-64 ") libmagic=64-bit;; |
4554 | *-64|*"-64 ") libmagic=64-bit;; |
… | |
… | |
4535 | esac |
4556 | esac |
4536 | lt_cv_deplibs_check_method=pass_all |
4557 | lt_cv_deplibs_check_method=pass_all |
4537 | ;; |
4558 | ;; |
4538 | |
4559 | |
4539 | # This must be Linux ELF. |
4560 | # This must be Linux ELF. |
4540 | linux*) |
4561 | linux* | k*bsd*-gnu) |
4541 | case $host_cpu in |
|
|
4542 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
|
|
4543 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
4544 | *) |
|
|
4545 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
4546 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4547 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
4548 | esac |
|
|
4549 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
4550 | lt_cv_deplibs_check_method=pass_all |
4562 | lt_cv_deplibs_check_method=pass_all |
4551 | ;; |
4563 | ;; |
4552 | |
4564 | |
4553 | netbsd*) |
4565 | netbsd* | netbsdelf*-gnu) |
4554 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4566 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4555 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4567 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4556 | else |
4568 | else |
4557 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4569 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4558 | fi |
4570 | fi |
… | |
… | |
4567 | nto-qnx*) |
4579 | nto-qnx*) |
4568 | lt_cv_deplibs_check_method=unknown |
4580 | lt_cv_deplibs_check_method=unknown |
4569 | ;; |
4581 | ;; |
4570 | |
4582 | |
4571 | openbsd*) |
4583 | openbsd*) |
4572 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4573 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
4574 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4584 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4575 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
4585 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4576 | else |
4586 | else |
4577 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
4587 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4578 | fi |
4588 | fi |
4579 | ;; |
4589 | ;; |
4580 | |
4590 | |
4581 | osf3* | osf4* | osf5*) |
4591 | osf3* | osf4* | osf5*) |
4582 | lt_cv_deplibs_check_method=pass_all |
4592 | lt_cv_deplibs_check_method=pass_all |
4583 | ;; |
4593 | ;; |
4584 | |
4594 | |
4585 | sco3.2v5*) |
|
|
4586 | lt_cv_deplibs_check_method=pass_all |
|
|
4587 | ;; |
|
|
4588 | |
|
|
4589 | solaris*) |
4595 | solaris*) |
4590 | lt_cv_deplibs_check_method=pass_all |
4596 | lt_cv_deplibs_check_method=pass_all |
4591 | ;; |
4597 | ;; |
4592 | |
4598 | |
4593 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
4599 | sysv4 | sysv4.3*) |
4594 | case $host_vendor in |
4600 | case $host_vendor in |
4595 | motorola) |
4601 | motorola) |
4596 | 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]' |
4602 | 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]' |
4597 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4603 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4598 | ;; |
4604 | ;; |
… | |
… | |
4609 | lt_cv_file_magic_test_file=/lib/libc.so |
4615 | lt_cv_file_magic_test_file=/lib/libc.so |
4610 | ;; |
4616 | ;; |
4611 | siemens) |
4617 | siemens) |
4612 | lt_cv_deplibs_check_method=pass_all |
4618 | lt_cv_deplibs_check_method=pass_all |
4613 | ;; |
4619 | ;; |
|
|
4620 | pc) |
|
|
4621 | lt_cv_deplibs_check_method=pass_all |
|
|
4622 | ;; |
4614 | esac |
4623 | esac |
4615 | ;; |
4624 | ;; |
4616 | |
4625 | |
4617 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
4626 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4618 | lt_cv_deplibs_check_method=pass_all |
4627 | lt_cv_deplibs_check_method=pass_all |
4619 | ;; |
4628 | ;; |
4620 | esac |
4629 | esac |
4621 | |
4630 | |
4622 | fi |
4631 | fi |
… | |
… | |
4629 | |
4638 | |
4630 | |
4639 | |
4631 | |
4640 | |
4632 | # If no C compiler was specified, use CC. |
4641 | # If no C compiler was specified, use CC. |
4633 | LTCC=${LTCC-"$CC"} |
4642 | LTCC=${LTCC-"$CC"} |
|
|
4643 | |
|
|
4644 | # If no C compiler flags were specified, use CFLAGS. |
|
|
4645 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4634 | |
4646 | |
4635 | # Allow CC to be a program name with arguments. |
4647 | # Allow CC to be a program name with arguments. |
4636 | compiler=$CC |
4648 | compiler=$CC |
4637 | |
4649 | |
4638 | |
4650 | |
… | |
… | |
4665 | fi |
4677 | fi |
4666 | rm -rf conftest* |
4678 | rm -rf conftest* |
4667 | ;; |
4679 | ;; |
4668 | *-*-irix6*) |
4680 | *-*-irix6*) |
4669 | # Find out which ABI we are using. |
4681 | # Find out which ABI we are using. |
4670 | echo '#line 4670 "configure"' > conftest.$ac_ext |
4682 | echo '#line 4682 "configure"' > conftest.$ac_ext |
4671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4672 | (eval $ac_compile) 2>&5 |
4684 | (eval $ac_compile) 2>&5 |
4673 | ac_status=$? |
4685 | ac_status=$? |
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4675 | (exit $ac_status); }; then |
4687 | (exit $ac_status); }; then |
… | |
… | |
4708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4709 | (eval $ac_compile) 2>&5 |
4721 | (eval $ac_compile) 2>&5 |
4710 | ac_status=$? |
4722 | ac_status=$? |
4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4712 | (exit $ac_status); }; then |
4724 | (exit $ac_status); }; then |
4713 | case "`/usr/bin/file conftest.o`" in |
4725 | case `/usr/bin/file conftest.o` in |
4714 | *32-bit*) |
4726 | *32-bit*) |
4715 | case $host in |
4727 | case $host in |
4716 | x86_64-*linux*) |
4728 | x86_64-*linux*) |
4717 | LD="${LD-ld} -m elf_i386" |
4729 | LD="${LD-ld} -m elf_i386" |
4718 | ;; |
4730 | ;; |
… | |
… | |
4818 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4830 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4819 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4831 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4820 | CFLAGS="$SAVE_CFLAGS" |
4832 | CFLAGS="$SAVE_CFLAGS" |
4821 | fi |
4833 | fi |
4822 | ;; |
4834 | ;; |
|
|
4835 | sparc*-*solaris*) |
|
|
4836 | # Find out which ABI we are using. |
|
|
4837 | echo 'int i;' > conftest.$ac_ext |
|
|
4838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4839 | (eval $ac_compile) 2>&5 |
|
|
4840 | ac_status=$? |
|
|
4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4842 | (exit $ac_status); }; then |
|
|
4843 | case `/usr/bin/file conftest.o` in |
|
|
4844 | *64-bit*) |
|
|
4845 | case $lt_cv_prog_gnu_ld in |
|
|
4846 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
|
|
4847 | *) LD="${LD-ld} -64" ;; |
|
|
4848 | esac |
|
|
4849 | ;; |
|
|
4850 | esac |
|
|
4851 | fi |
|
|
4852 | rm -rf conftest* |
|
|
4853 | ;; |
|
|
4854 | |
4823 | |
4855 | |
4824 | esac |
4856 | esac |
4825 | |
4857 | |
4826 | need_locks="$enable_libtool_lock" |
4858 | need_locks="$enable_libtool_lock" |
4827 | |
4859 | |
… | |
… | |
5646 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5678 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5647 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
5679 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
5648 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5680 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5649 | |
5681 | |
5650 | |
5682 | |
|
|
5683 | |
|
|
5684 | |
|
|
5685 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
5686 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
5687 | (test "X$CXX" != "Xg++"))) ; then |
5651 | ac_ext=cpp |
5688 | ac_ext=cpp |
5652 | ac_cpp='$CXXCPP $CPPFLAGS' |
5689 | ac_cpp='$CXXCPP $CPPFLAGS' |
5653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5690 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5691 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5692 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5656 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5693 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
… | |
… | |
5871 | ac_ext=cpp |
5908 | ac_ext=cpp |
5872 | ac_cpp='$CXXCPP $CPPFLAGS' |
5909 | ac_cpp='$CXXCPP $CPPFLAGS' |
5873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5910 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5911 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5912 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5913 | |
|
|
5914 | fi |
5876 | |
5915 | |
5877 | |
5916 | |
5878 | ac_ext=f |
5917 | ac_ext=f |
5879 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5918 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5880 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5919 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
6144 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
6183 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
6145 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6184 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6147 | else |
6186 | else |
6148 | i=0 |
6187 | i=0 |
6149 | testring="ABCD" |
6188 | teststring="ABCD" |
6150 | |
6189 | |
6151 | case $build_os in |
6190 | case $build_os in |
6152 | msdosdjgpp*) |
6191 | msdosdjgpp*) |
6153 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6192 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6154 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6193 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
… | |
… | |
6179 | # On AmigaOS with pdksh, this test takes hours, literally. |
6218 | # On AmigaOS with pdksh, this test takes hours, literally. |
6180 | # So we just punt and use a minimum line length of 8192. |
6219 | # So we just punt and use a minimum line length of 8192. |
6181 | lt_cv_sys_max_cmd_len=8192; |
6220 | lt_cv_sys_max_cmd_len=8192; |
6182 | ;; |
6221 | ;; |
6183 | |
6222 | |
|
|
6223 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
|
|
6224 | # This has been around since 386BSD, at least. Likely further. |
|
|
6225 | if test -x /sbin/sysctl; then |
|
|
6226 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
|
6227 | elif test -x /usr/sbin/sysctl; then |
|
|
6228 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
|
6229 | else |
|
|
6230 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
|
|
6231 | fi |
|
|
6232 | # And add a safety zone |
|
|
6233 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
|
6234 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
|
6235 | ;; |
|
|
6236 | |
|
|
6237 | interix*) |
|
|
6238 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
|
6239 | lt_cv_sys_max_cmd_len=196608 |
|
|
6240 | ;; |
|
|
6241 | |
|
|
6242 | osf*) |
|
|
6243 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
|
6244 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
|
6245 | # nice to cause kernel panics so lets avoid the loop below. |
|
|
6246 | # First set a reasonable default. |
|
|
6247 | lt_cv_sys_max_cmd_len=16384 |
|
|
6248 | # |
|
|
6249 | if test -x /sbin/sysconfig; then |
|
|
6250 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
|
6251 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
|
6252 | esac |
|
|
6253 | fi |
|
|
6254 | ;; |
|
|
6255 | sco3.2v5*) |
|
|
6256 | lt_cv_sys_max_cmd_len=102400 |
|
|
6257 | ;; |
|
|
6258 | sysv5* | sco5v6* | sysv4.2uw2*) |
|
|
6259 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
|
6260 | if test -n "$kargmax"; then |
|
|
6261 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
|
6262 | else |
|
|
6263 | lt_cv_sys_max_cmd_len=32768 |
|
|
6264 | fi |
|
|
6265 | ;; |
6184 | *) |
6266 | *) |
6185 | # If test is not a shell built-in, we'll probably end up computing a |
6267 | # If test is not a shell built-in, we'll probably end up computing a |
6186 | # maximum length that is only half of the actual maximum length, but |
6268 | # maximum length that is only half of the actual maximum length, but |
6187 | # we can't tell. |
6269 | # we can't tell. |
|
|
6270 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6188 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
6271 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6189 | = "XX$testring") >/dev/null 2>&1 && |
6272 | = "XX$teststring") >/dev/null 2>&1 && |
6190 | new_result=`expr "X$testring" : ".*" 2>&1` && |
6273 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6191 | lt_cv_sys_max_cmd_len=$new_result && |
6274 | lt_cv_sys_max_cmd_len=$new_result && |
6192 | test $i != 17 # 1/2 MB should be enough |
6275 | test $i != 17 # 1/2 MB should be enough |
6193 | do |
6276 | do |
6194 | i=`expr $i + 1` |
6277 | i=`expr $i + 1` |
6195 | testring=$testring$testring |
6278 | teststring=$teststring$teststring |
6196 | done |
6279 | done |
6197 | testring= |
6280 | teststring= |
6198 | # Add a significant safety factor because C++ compilers can tack on massive |
6281 | # Add a significant safety factor because C++ compilers can tack on massive |
6199 | # amounts of additional arguments before passing them to the linker. |
6282 | # amounts of additional arguments before passing them to the linker. |
6200 | # It appears as though 1/2 is a usable value. |
6283 | # It appears as though 1/2 is a usable value. |
6201 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6284 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6202 | ;; |
6285 | ;; |
… | |
… | |
6228 | # Character class describing NM global symbol codes. |
6311 | # Character class describing NM global symbol codes. |
6229 | symcode='[BCDEGRST]' |
6312 | symcode='[BCDEGRST]' |
6230 | |
6313 | |
6231 | # Regexp to match symbols that can be accessed directly from C. |
6314 | # Regexp to match symbols that can be accessed directly from C. |
6232 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6315 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6233 | |
|
|
6234 | # Transform the above into a raw symbol and a C symbol. |
|
|
6235 | symxfrm='\1 \2\3 \3' |
|
|
6236 | |
6316 | |
6237 | # Transform an extracted symbol line into a proper C declaration |
6317 | # Transform an extracted symbol line into a proper C declaration |
6238 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6318 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6239 | |
6319 | |
6240 | # Transform an extracted symbol line into symbol name and symbol address |
6320 | # Transform an extracted symbol line into symbol name and symbol address |
… | |
… | |
6253 | symcode='[ABCDEGRST]' |
6333 | symcode='[ABCDEGRST]' |
6254 | fi |
6334 | fi |
6255 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6335 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6256 | 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'" |
6336 | 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'" |
6257 | ;; |
6337 | ;; |
|
|
6338 | linux* | k*bsd*-gnu) |
|
|
6339 | if test "$host_cpu" = ia64; then |
|
|
6340 | symcode='[ABCDGIRSTW]' |
|
|
6341 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
6342 | 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'" |
|
|
6343 | fi |
|
|
6344 | ;; |
6258 | irix* | nonstopux*) |
6345 | irix* | nonstopux*) |
6259 | symcode='[BCDEGRST]' |
6346 | symcode='[BCDEGRST]' |
6260 | ;; |
6347 | ;; |
6261 | osf*) |
6348 | osf*) |
6262 | symcode='[BCDEGQRST]' |
6349 | symcode='[BCDEGQRST]' |
6263 | ;; |
6350 | ;; |
6264 | solaris* | sysv5*) |
6351 | solaris*) |
6265 | symcode='[BDRT]' |
6352 | symcode='[BDRT]' |
|
|
6353 | ;; |
|
|
6354 | sco3.2v5*) |
|
|
6355 | symcode='[DT]' |
|
|
6356 | ;; |
|
|
6357 | sysv4.2uw2*) |
|
|
6358 | symcode='[DT]' |
|
|
6359 | ;; |
|
|
6360 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
6361 | symcode='[ABDT]' |
6266 | ;; |
6362 | ;; |
6267 | sysv4) |
6363 | sysv4) |
6268 | symcode='[DFNSTU]' |
6364 | symcode='[DFNSTU]' |
6269 | ;; |
6365 | ;; |
6270 | esac |
6366 | esac |
… | |
… | |
6284 | esac |
6380 | esac |
6285 | |
6381 | |
6286 | # Try without a prefix undercore, then with it. |
6382 | # Try without a prefix undercore, then with it. |
6287 | for ac_symprfx in "" "_"; do |
6383 | for ac_symprfx in "" "_"; do |
6288 | |
6384 | |
|
|
6385 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
|
|
6386 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
|
6387 | |
6289 | # Write the raw and C identifiers. |
6388 | # Write the raw and C identifiers. |
6290 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
6389 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6291 | |
6390 | |
6292 | # Check to see that the pipe works correctly. |
6391 | # Check to see that the pipe works correctly. |
6293 | pipe_works=no |
6392 | pipe_works=no |
6294 | |
6393 | |
6295 | rm -f conftest* |
6394 | rm -f conftest* |
… | |
… | |
6447 | ;; |
6546 | ;; |
6448 | esac |
6547 | esac |
6449 | |
6548 | |
6450 | # Sed substitution that helps us do robust quoting. It backslashifies |
6549 | # Sed substitution that helps us do robust quoting. It backslashifies |
6451 | # metacharacters that are still active within double-quoted strings. |
6550 | # metacharacters that are still active within double-quoted strings. |
6452 | Xsed='sed -e s/^X//' |
6551 | Xsed='sed -e 1s/^X//' |
6453 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6552 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6454 | |
6553 | |
6455 | # Same as above, but do not quote variable references. |
6554 | # Same as above, but do not quote variable references. |
6456 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6555 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6457 | |
6556 | |
… | |
… | |
6467 | |
6566 | |
6468 | # Global variables: |
6567 | # Global variables: |
6469 | default_ofile=libtool |
6568 | default_ofile=libtool |
6470 | can_build_shared=yes |
6569 | can_build_shared=yes |
6471 | |
6570 | |
6472 | # All known linkers require a `.a' archive for static linking (except M$VC, |
6571 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6473 | # which needs '.lib'). |
6572 | # which needs '.lib'). |
6474 | libext=a |
6573 | libext=a |
6475 | ltmain="$ac_aux_dir/ltmain.sh" |
6574 | ltmain="$ac_aux_dir/ltmain.sh" |
6476 | ofile="$default_ofile" |
6575 | ofile="$default_ofile" |
6477 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6576 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
… | |
… | |
6772 | test -z "$AR" && AR=ar |
6871 | test -z "$AR" && AR=ar |
6773 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6872 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6774 | test -z "$AS" && AS=as |
6873 | test -z "$AS" && AS=as |
6775 | test -z "$CC" && CC=cc |
6874 | test -z "$CC" && CC=cc |
6776 | test -z "$LTCC" && LTCC=$CC |
6875 | test -z "$LTCC" && LTCC=$CC |
|
|
6876 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6777 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6877 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6778 | test -z "$LD" && LD=ld |
6878 | test -z "$LD" && LD=ld |
6779 | test -z "$LN_S" && LN_S="ln -s" |
6879 | test -z "$LN_S" && LN_S="ln -s" |
6780 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6880 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6781 | test -z "$NM" && NM=nm |
6881 | test -z "$NM" && NM=nm |
… | |
… | |
6791 | old_postuninstall_cmds= |
6891 | old_postuninstall_cmds= |
6792 | |
6892 | |
6793 | if test -n "$RANLIB"; then |
6893 | if test -n "$RANLIB"; then |
6794 | case $host_os in |
6894 | case $host_os in |
6795 | openbsd*) |
6895 | openbsd*) |
6796 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
6896 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6797 | ;; |
6897 | ;; |
6798 | *) |
6898 | *) |
6799 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
6899 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6800 | ;; |
6900 | ;; |
6801 | esac |
6901 | esac |
6802 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6902 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6803 | fi |
6903 | fi |
|
|
6904 | |
|
|
6905 | for cc_temp in $compiler""; do |
|
|
6906 | case $cc_temp in |
|
|
6907 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
6908 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
6909 | \-*) ;; |
|
|
6910 | *) break;; |
|
|
6911 | esac |
|
|
6912 | done |
|
|
6913 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
6914 | |
6804 | |
6915 | |
6805 | # Only perform the check for file, if the check method requires it |
6916 | # Only perform the check for file, if the check method requires it |
6806 | case $deplibs_check_method in |
6917 | case $deplibs_check_method in |
6807 | file_magic*) |
6918 | file_magic*) |
6808 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6919 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
… | |
… | |
6825 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6936 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6826 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6937 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6827 | if test -n "$file_magic_test_file"; then |
6938 | if test -n "$file_magic_test_file"; then |
6828 | case $deplibs_check_method in |
6939 | case $deplibs_check_method in |
6829 | "file_magic "*) |
6940 | "file_magic "*) |
6830 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6941 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6831 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6942 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6832 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6943 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6833 | $EGREP "$file_magic_regex" > /dev/null; then |
6944 | $EGREP "$file_magic_regex" > /dev/null; then |
6834 | : |
6945 | : |
6835 | else |
6946 | else |
… | |
… | |
6887 | if test -f $ac_dir/file; then |
6998 | if test -f $ac_dir/file; then |
6888 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6999 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6889 | if test -n "$file_magic_test_file"; then |
7000 | if test -n "$file_magic_test_file"; then |
6890 | case $deplibs_check_method in |
7001 | case $deplibs_check_method in |
6891 | "file_magic "*) |
7002 | "file_magic "*) |
6892 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
7003 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6893 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7004 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6894 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7005 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6895 | $EGREP "$file_magic_regex" > /dev/null; then |
7006 | $EGREP "$file_magic_regex" > /dev/null; then |
6896 | : |
7007 | : |
6897 | else |
7008 | else |
… | |
… | |
6982 | |
7093 | |
6983 | |
7094 | |
6984 | # If no C compiler was specified, use CC. |
7095 | # If no C compiler was specified, use CC. |
6985 | LTCC=${LTCC-"$CC"} |
7096 | LTCC=${LTCC-"$CC"} |
6986 | |
7097 | |
|
|
7098 | # If no C compiler flags were specified, use CFLAGS. |
|
|
7099 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
7100 | |
6987 | # Allow CC to be a program name with arguments. |
7101 | # Allow CC to be a program name with arguments. |
6988 | compiler=$CC |
7102 | compiler=$CC |
6989 | |
7103 | |
6990 | |
7104 | |
6991 | # |
7105 | # save warnings/boilerplate of simple test code |
6992 | # Check for any special shared library compilation flags. |
7106 | ac_outfile=conftest.$ac_objext |
6993 | # |
7107 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6994 | lt_prog_cc_shlib= |
7108 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6995 | if test "$GCC" = no; then |
7109 | _lt_compiler_boilerplate=`cat conftest.err` |
6996 | case $host_os in |
7110 | $rm conftest* |
6997 | sco3.2v5*) |
|
|
6998 | lt_prog_cc_shlib='-belf' |
|
|
6999 | ;; |
|
|
7000 | esac |
|
|
7001 | fi |
|
|
7002 | if test -n "$lt_prog_cc_shlib"; then |
|
|
7003 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
|
|
7004 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
7005 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
7006 | else |
|
|
7007 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
7008 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
7009 | lt_cv_prog_cc_can_build_shared=no |
|
|
7010 | fi |
|
|
7011 | fi |
|
|
7012 | |
7111 | |
7013 | |
7112 | ac_outfile=conftest.$ac_objext |
7014 | # |
|
|
7015 | # Check to make sure the static flag actually works. |
|
|
7016 | # |
|
|
7017 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
|
|
7018 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; } |
|
|
7019 | if test "${lt_prog_compiler_static_works+set}" = set; then |
|
|
7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7021 | else |
|
|
7022 | lt_prog_compiler_static_works=no |
|
|
7023 | save_LDFLAGS="$LDFLAGS" |
|
|
7024 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
|
|
7025 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7113 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7026 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7114 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7027 | # The compiler can only warn and ignore the option if not recognized |
7115 | _lt_linker_boilerplate=`cat conftest.err` |
7028 | # So say no if there are warnings |
|
|
7029 | if test -s conftest.err; then |
|
|
7030 | # Append any errors to the config.log. |
|
|
7031 | cat conftest.err 1>&5 |
|
|
7032 | else |
|
|
7033 | lt_prog_compiler_static_works=yes |
|
|
7034 | fi |
|
|
7035 | fi |
|
|
7036 | $rm conftest* |
7116 | $rm conftest* |
7037 | LDFLAGS="$save_LDFLAGS" |
|
|
7038 | |
|
|
7039 | fi |
|
|
7040 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
|
7041 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
|
|
7042 | |
|
|
7043 | if test x"$lt_prog_compiler_static_works" = xyes; then |
|
|
7044 | : |
|
|
7045 | else |
|
|
7046 | lt_prog_compiler_static= |
|
|
7047 | fi |
|
|
7048 | |
|
|
7049 | |
7117 | |
7050 | |
7118 | |
7051 | |
7119 | |
7052 | lt_prog_compiler_no_builtin_flag= |
7120 | lt_prog_compiler_no_builtin_flag= |
7053 | |
7121 | |
… | |
… | |
7068 | # (2) before a word containing "conftest.", or (3) at the end. |
7136 | # (2) before a word containing "conftest.", or (3) at the end. |
7069 | # Note that $ac_compile itself does not contain backslashes and begins |
7137 | # Note that $ac_compile itself does not contain backslashes and begins |
7070 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7138 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7071 | # The option is referenced via a variable to avoid confusing sed. |
7139 | # The option is referenced via a variable to avoid confusing sed. |
7072 | lt_compile=`echo "$ac_compile" | $SED \ |
7140 | lt_compile=`echo "$ac_compile" | $SED \ |
7073 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
7141 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7074 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7142 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7075 | -e 's:$: $lt_compiler_flag:'` |
7143 | -e 's:$: $lt_compiler_flag:'` |
7076 | (eval echo "\"\$as_me:7076: $lt_compile\"" >&5) |
7144 | (eval echo "\"\$as_me:7144: $lt_compile\"" >&5) |
7077 | (eval "$lt_compile" 2>conftest.err) |
7145 | (eval "$lt_compile" 2>conftest.err) |
7078 | ac_status=$? |
7146 | ac_status=$? |
7079 | cat conftest.err >&5 |
7147 | cat conftest.err >&5 |
7080 | echo "$as_me:7080: \$? = $ac_status" >&5 |
7148 | echo "$as_me:7148: \$? = $ac_status" >&5 |
7081 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7149 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7082 | # The compiler can only warn and ignore the option if not recognized |
7150 | # The compiler can only warn and ignore the option if not recognized |
7083 | # So say no if there are warnings |
7151 | # So say no if there are warnings other than the usual output. |
7084 | if test ! -s conftest.err; then |
7152 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
7153 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
7154 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7085 | lt_cv_prog_compiler_rtti_exceptions=yes |
7155 | lt_cv_prog_compiler_rtti_exceptions=yes |
7086 | fi |
7156 | fi |
7087 | fi |
7157 | fi |
7088 | $rm conftest* |
7158 | $rm conftest* |
7089 | |
7159 | |
… | |
… | |
7140 | # PIC is the default on this platform |
7210 | # PIC is the default on this platform |
7141 | # Common symbols not allowed in MH_DYLIB files |
7211 | # Common symbols not allowed in MH_DYLIB files |
7142 | lt_prog_compiler_pic='-fno-common' |
7212 | lt_prog_compiler_pic='-fno-common' |
7143 | ;; |
7213 | ;; |
7144 | |
7214 | |
|
|
7215 | interix3*) |
|
|
7216 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
7217 | # Instead, we relocate shared libraries at runtime. |
|
|
7218 | ;; |
|
|
7219 | |
7145 | msdosdjgpp*) |
7220 | msdosdjgpp*) |
7146 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7221 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7147 | # on systems that don't support them. |
7222 | # on systems that don't support them. |
7148 | lt_prog_compiler_can_build_shared=no |
7223 | lt_prog_compiler_can_build_shared=no |
7149 | enable_shared=no |
7224 | enable_shared=no |
… | |
… | |
7156 | ;; |
7231 | ;; |
7157 | |
7232 | |
7158 | hpux*) |
7233 | hpux*) |
7159 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7234 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7160 | # not for PA HP-UX. |
7235 | # not for PA HP-UX. |
7161 | case "$host_cpu" in |
7236 | case $host_cpu in |
7162 | hppa*64*|ia64*) |
7237 | hppa*64*|ia64*) |
7163 | # +Z the default |
7238 | # +Z the default |
7164 | ;; |
7239 | ;; |
7165 | *) |
7240 | *) |
7166 | lt_prog_compiler_pic='-fPIC' |
7241 | lt_prog_compiler_pic='-fPIC' |
… | |
… | |
7182 | lt_prog_compiler_static='-Bstatic' |
7257 | lt_prog_compiler_static='-Bstatic' |
7183 | else |
7258 | else |
7184 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7259 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7185 | fi |
7260 | fi |
7186 | ;; |
7261 | ;; |
|
|
7262 | darwin*) |
|
|
7263 | # PIC is the default on this platform |
|
|
7264 | # Common symbols not allowed in MH_DYLIB files |
|
|
7265 | case $cc_basename in |
|
|
7266 | xlc*) |
|
|
7267 | lt_prog_compiler_pic='-qnocommon' |
|
|
7268 | lt_prog_compiler_wl='-Wl,' |
|
|
7269 | ;; |
|
|
7270 | esac |
|
|
7271 | ;; |
7187 | |
7272 | |
7188 | mingw* | pw32* | os2*) |
7273 | mingw* | pw32* | os2*) |
7189 | # This hack is so that the source file can tell whether it is being |
7274 | # This hack is so that the source file can tell whether it is being |
7190 | # built for inclusion in a dll (and should export symbols for example). |
7275 | # built for inclusion in a dll (and should export symbols for example). |
7191 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7276 | lt_prog_compiler_pic='-DDLL_EXPORT' |
… | |
… | |
7193 | |
7278 | |
7194 | hpux9* | hpux10* | hpux11*) |
7279 | hpux9* | hpux10* | hpux11*) |
7195 | lt_prog_compiler_wl='-Wl,' |
7280 | lt_prog_compiler_wl='-Wl,' |
7196 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7281 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7197 | # not for PA HP-UX. |
7282 | # not for PA HP-UX. |
7198 | case "$host_cpu" in |
7283 | case $host_cpu in |
7199 | hppa*64*|ia64*) |
7284 | hppa*64*|ia64*) |
7200 | # +Z the default |
7285 | # +Z the default |
7201 | ;; |
7286 | ;; |
7202 | *) |
7287 | *) |
7203 | lt_prog_compiler_pic='+Z' |
7288 | lt_prog_compiler_pic='+Z' |
… | |
… | |
7216 | newsos6) |
7301 | newsos6) |
7217 | lt_prog_compiler_pic='-KPIC' |
7302 | lt_prog_compiler_pic='-KPIC' |
7218 | lt_prog_compiler_static='-Bstatic' |
7303 | lt_prog_compiler_static='-Bstatic' |
7219 | ;; |
7304 | ;; |
7220 | |
7305 | |
7221 | linux*) |
7306 | linux* | k*bsd*-gnu) |
7222 | case $CC in |
7307 | case $cc_basename in |
7223 | icc* | ecc*) |
7308 | icc* | ecc*) |
7224 | lt_prog_compiler_wl='-Wl,' |
7309 | lt_prog_compiler_wl='-Wl,' |
7225 | lt_prog_compiler_pic='-KPIC' |
7310 | lt_prog_compiler_pic='-KPIC' |
7226 | lt_prog_compiler_static='-static' |
7311 | lt_prog_compiler_static='-static' |
|
|
7312 | ;; |
|
|
7313 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
7314 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
7315 | # which looks to be a dead project) |
|
|
7316 | lt_prog_compiler_wl='-Wl,' |
|
|
7317 | lt_prog_compiler_pic='-fpic' |
|
|
7318 | lt_prog_compiler_static='-Bstatic' |
7227 | ;; |
7319 | ;; |
7228 | ccc*) |
7320 | ccc*) |
7229 | lt_prog_compiler_wl='-Wl,' |
7321 | lt_prog_compiler_wl='-Wl,' |
7230 | # All Alpha code is PIC. |
7322 | # All Alpha code is PIC. |
7231 | lt_prog_compiler_static='-non_shared' |
7323 | lt_prog_compiler_static='-non_shared' |
… | |
… | |
7237 | lt_prog_compiler_wl='-Wl,' |
7329 | lt_prog_compiler_wl='-Wl,' |
7238 | # All OSF/1 code is PIC. |
7330 | # All OSF/1 code is PIC. |
7239 | lt_prog_compiler_static='-non_shared' |
7331 | lt_prog_compiler_static='-non_shared' |
7240 | ;; |
7332 | ;; |
7241 | |
7333 | |
7242 | sco3.2v5*) |
|
|
7243 | lt_prog_compiler_pic='-Kpic' |
|
|
7244 | lt_prog_compiler_static='-dn' |
|
|
7245 | ;; |
|
|
7246 | |
|
|
7247 | solaris*) |
7334 | solaris*) |
7248 | lt_prog_compiler_wl='-Wl,' |
|
|
7249 | lt_prog_compiler_pic='-KPIC' |
7335 | lt_prog_compiler_pic='-KPIC' |
7250 | lt_prog_compiler_static='-Bstatic' |
7336 | lt_prog_compiler_static='-Bstatic' |
|
|
7337 | case $cc_basename in |
|
|
7338 | f77* | f90* | f95*) |
|
|
7339 | lt_prog_compiler_wl='-Qoption ld ';; |
|
|
7340 | *) |
|
|
7341 | lt_prog_compiler_wl='-Wl,';; |
|
|
7342 | esac |
7251 | ;; |
7343 | ;; |
7252 | |
7344 | |
7253 | sunos4*) |
7345 | sunos4*) |
7254 | lt_prog_compiler_wl='-Qoption ld ' |
7346 | lt_prog_compiler_wl='-Qoption ld ' |
7255 | lt_prog_compiler_pic='-PIC' |
7347 | lt_prog_compiler_pic='-PIC' |
7256 | lt_prog_compiler_static='-Bstatic' |
7348 | lt_prog_compiler_static='-Bstatic' |
7257 | ;; |
7349 | ;; |
7258 | |
7350 | |
7259 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
7351 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7260 | lt_prog_compiler_wl='-Wl,' |
7352 | lt_prog_compiler_wl='-Wl,' |
7261 | lt_prog_compiler_pic='-KPIC' |
7353 | lt_prog_compiler_pic='-KPIC' |
7262 | lt_prog_compiler_static='-Bstatic' |
7354 | lt_prog_compiler_static='-Bstatic' |
7263 | ;; |
7355 | ;; |
7264 | |
7356 | |
7265 | sysv4*MP*) |
7357 | sysv4*MP*) |
7266 | if test -d /usr/nec ;then |
7358 | if test -d /usr/nec ;then |
7267 | lt_prog_compiler_pic='-Kconform_pic' |
7359 | lt_prog_compiler_pic='-Kconform_pic' |
7268 | lt_prog_compiler_static='-Bstatic' |
7360 | lt_prog_compiler_static='-Bstatic' |
7269 | fi |
7361 | fi |
|
|
7362 | ;; |
|
|
7363 | |
|
|
7364 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
7365 | lt_prog_compiler_wl='-Wl,' |
|
|
7366 | lt_prog_compiler_pic='-KPIC' |
|
|
7367 | lt_prog_compiler_static='-Bstatic' |
|
|
7368 | ;; |
|
|
7369 | |
|
|
7370 | unicos*) |
|
|
7371 | lt_prog_compiler_wl='-Wl,' |
|
|
7372 | lt_prog_compiler_can_build_shared=no |
7270 | ;; |
7373 | ;; |
7271 | |
7374 | |
7272 | uts4*) |
7375 | uts4*) |
7273 | lt_prog_compiler_pic='-pic' |
7376 | lt_prog_compiler_pic='-pic' |
7274 | lt_prog_compiler_static='-Bstatic' |
7377 | lt_prog_compiler_static='-Bstatic' |
… | |
… | |
7301 | # (2) before a word containing "conftest.", or (3) at the end. |
7404 | # (2) before a word containing "conftest.", or (3) at the end. |
7302 | # Note that $ac_compile itself does not contain backslashes and begins |
7405 | # Note that $ac_compile itself does not contain backslashes and begins |
7303 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7406 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7304 | # The option is referenced via a variable to avoid confusing sed. |
7407 | # The option is referenced via a variable to avoid confusing sed. |
7305 | lt_compile=`echo "$ac_compile" | $SED \ |
7408 | lt_compile=`echo "$ac_compile" | $SED \ |
7306 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
7409 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7307 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7410 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7308 | -e 's:$: $lt_compiler_flag:'` |
7411 | -e 's:$: $lt_compiler_flag:'` |
7309 | (eval echo "\"\$as_me:7309: $lt_compile\"" >&5) |
7412 | (eval echo "\"\$as_me:7412: $lt_compile\"" >&5) |
7310 | (eval "$lt_compile" 2>conftest.err) |
7413 | (eval "$lt_compile" 2>conftest.err) |
7311 | ac_status=$? |
7414 | ac_status=$? |
7312 | cat conftest.err >&5 |
7415 | cat conftest.err >&5 |
7313 | echo "$as_me:7313: \$? = $ac_status" >&5 |
7416 | echo "$as_me:7416: \$? = $ac_status" >&5 |
7314 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7417 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7315 | # The compiler can only warn and ignore the option if not recognized |
7418 | # The compiler can only warn and ignore the option if not recognized |
7316 | # So say no if there are warnings |
7419 | # So say no if there are warnings other than the usual output. |
7317 | if test ! -s conftest.err; then |
7420 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
7421 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
7422 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7318 | lt_prog_compiler_pic_works=yes |
7423 | lt_prog_compiler_pic_works=yes |
7319 | fi |
7424 | fi |
7320 | fi |
7425 | fi |
7321 | $rm conftest* |
7426 | $rm conftest* |
7322 | |
7427 | |
… | |
… | |
7333 | lt_prog_compiler_pic= |
7438 | lt_prog_compiler_pic= |
7334 | lt_prog_compiler_can_build_shared=no |
7439 | lt_prog_compiler_can_build_shared=no |
7335 | fi |
7440 | fi |
7336 | |
7441 | |
7337 | fi |
7442 | fi |
7338 | case "$host_os" in |
7443 | case $host_os in |
7339 | # For platforms which do not support PIC, -DPIC is meaningless: |
7444 | # For platforms which do not support PIC, -DPIC is meaningless: |
7340 | *djgpp*) |
7445 | *djgpp*) |
7341 | lt_prog_compiler_pic= |
7446 | lt_prog_compiler_pic= |
7342 | ;; |
7447 | ;; |
7343 | *) |
7448 | *) |
7344 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7449 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7345 | ;; |
7450 | ;; |
7346 | esac |
7451 | esac |
7347 | |
7452 | |
|
|
7453 | # |
|
|
7454 | # Check to make sure the static flag actually works. |
|
|
7455 | # |
|
|
7456 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
|
7457 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
7458 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
|
7459 | if test "${lt_prog_compiler_static_works+set}" = set; then |
|
|
7460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7461 | else |
|
|
7462 | lt_prog_compiler_static_works=no |
|
|
7463 | save_LDFLAGS="$LDFLAGS" |
|
|
7464 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
7465 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
7466 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
7467 | # The linker can only warn and ignore the option if not recognized |
|
|
7468 | # So say no if there are warnings |
|
|
7469 | if test -s conftest.err; then |
|
|
7470 | # Append any errors to the config.log. |
|
|
7471 | cat conftest.err 1>&5 |
|
|
7472 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
7473 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
7474 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
7475 | lt_prog_compiler_static_works=yes |
|
|
7476 | fi |
|
|
7477 | else |
|
|
7478 | lt_prog_compiler_static_works=yes |
|
|
7479 | fi |
|
|
7480 | fi |
|
|
7481 | $rm conftest* |
|
|
7482 | LDFLAGS="$save_LDFLAGS" |
|
|
7483 | |
|
|
7484 | fi |
|
|
7485 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
|
7486 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
|
|
7487 | |
|
|
7488 | if test x"$lt_prog_compiler_static_works" = xyes; then |
|
|
7489 | : |
|
|
7490 | else |
|
|
7491 | lt_prog_compiler_static= |
|
|
7492 | fi |
|
|
7493 | |
|
|
7494 | |
7348 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7495 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7349 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
7496 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
7350 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7497 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7352 | else |
7499 | else |
… | |
… | |
7361 | # Insert the option either (1) after the last *FLAGS variable, or |
7508 | # Insert the option either (1) after the last *FLAGS variable, or |
7362 | # (2) before a word containing "conftest.", or (3) at the end. |
7509 | # (2) before a word containing "conftest.", or (3) at the end. |
7363 | # Note that $ac_compile itself does not contain backslashes and begins |
7510 | # Note that $ac_compile itself does not contain backslashes and begins |
7364 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7511 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7365 | lt_compile=`echo "$ac_compile" | $SED \ |
7512 | lt_compile=`echo "$ac_compile" | $SED \ |
7366 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
7513 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7367 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7514 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7368 | -e 's:$: $lt_compiler_flag:'` |
7515 | -e 's:$: $lt_compiler_flag:'` |
7369 | (eval echo "\"\$as_me:7369: $lt_compile\"" >&5) |
7516 | (eval echo "\"\$as_me:7516: $lt_compile\"" >&5) |
7370 | (eval "$lt_compile" 2>out/conftest.err) |
7517 | (eval "$lt_compile" 2>out/conftest.err) |
7371 | ac_status=$? |
7518 | ac_status=$? |
7372 | cat out/conftest.err >&5 |
7519 | cat out/conftest.err >&5 |
7373 | echo "$as_me:7373: \$? = $ac_status" >&5 |
7520 | echo "$as_me:7520: \$? = $ac_status" >&5 |
7374 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7521 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7375 | then |
7522 | then |
7376 | # The compiler can only warn and ignore the option if not recognized |
7523 | # The compiler can only warn and ignore the option if not recognized |
7377 | # So say no if there are warnings |
7524 | # So say no if there are warnings |
7378 | if test ! -s out/conftest.err; then |
7525 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
7526 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
7527 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7379 | lt_cv_prog_compiler_c_o=yes |
7528 | lt_cv_prog_compiler_c_o=yes |
7380 | fi |
7529 | fi |
7381 | fi |
7530 | fi |
7382 | chmod u+w . |
7531 | chmod u+w . 2>&5 |
7383 | $rm conftest* |
7532 | $rm conftest* |
7384 | # SGI C++ compiler will create directory out/ii_files/ for |
7533 | # SGI C++ compiler will create directory out/ii_files/ for |
7385 | # template instantiation |
7534 | # template instantiation |
7386 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7535 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7387 | $rm out/* && rmdir out |
7536 | $rm out/* && rmdir out |
… | |
… | |
7453 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7602 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7454 | # the symbol is explicitly referenced. Since portable code cannot |
7603 | # the symbol is explicitly referenced. Since portable code cannot |
7455 | # rely on this symbol name, it's probably fine to never include it in |
7604 | # rely on this symbol name, it's probably fine to never include it in |
7456 | # preloaded symbol tables. |
7605 | # preloaded symbol tables. |
7457 | extract_expsyms_cmds= |
7606 | extract_expsyms_cmds= |
|
|
7607 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
7608 | for cc_temp in $compiler""; do |
|
|
7609 | case $cc_temp in |
|
|
7610 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
7611 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
7612 | \-*) ;; |
|
|
7613 | *) break;; |
|
|
7614 | esac |
|
|
7615 | done |
|
|
7616 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7458 | |
7617 | |
7459 | case $host_os in |
7618 | case $host_os in |
7460 | cygwin* | mingw* | pw32*) |
7619 | cygwin* | mingw* | pw32*) |
7461 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7620 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7462 | # When not using gcc, we currently assume that we are using |
7621 | # When not using gcc, we currently assume that we are using |
7463 | # Microsoft Visual C++. |
7622 | # Microsoft Visual C++. |
7464 | if test "$GCC" != yes; then |
7623 | if test "$GCC" != yes; then |
7465 | with_gnu_ld=no |
7624 | with_gnu_ld=no |
7466 | fi |
7625 | fi |
7467 | ;; |
7626 | ;; |
|
|
7627 | interix*) |
|
|
7628 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
7629 | with_gnu_ld=yes |
|
|
7630 | ;; |
7468 | openbsd*) |
7631 | openbsd*) |
7469 | with_gnu_ld=no |
7632 | with_gnu_ld=no |
7470 | ;; |
7633 | ;; |
7471 | esac |
7634 | esac |
7472 | |
7635 | |
7473 | ld_shlibs=yes |
7636 | ld_shlibs=yes |
7474 | if test "$with_gnu_ld" = yes; then |
7637 | if test "$with_gnu_ld" = yes; then |
7475 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7638 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7476 | wlarc='${wl}' |
7639 | wlarc='${wl}' |
|
|
7640 | |
|
|
7641 | # Set some defaults for GNU ld with shared library support. These |
|
|
7642 | # are reset later if shared libraries are not supported. Putting them |
|
|
7643 | # here allows them to be overridden if necessary. |
|
|
7644 | runpath_var=LD_RUN_PATH |
|
|
7645 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
7646 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
7647 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
7648 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
7649 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
7650 | else |
|
|
7651 | whole_archive_flag_spec= |
|
|
7652 | fi |
|
|
7653 | supports_anon_versioning=no |
|
|
7654 | case `$LD -v 2>/dev/null` in |
|
|
7655 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
7656 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
7657 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
7658 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
7659 | *) supports_anon_versioning=yes ;; |
|
|
7660 | esac |
7477 | |
7661 | |
7478 | # See if GNU ld supports shared libraries. |
7662 | # See if GNU ld supports shared libraries. |
7479 | case $host_os in |
7663 | case $host_os in |
7480 | aix3* | aix4* | aix5*) |
7664 | aix3* | aix4* | aix5*) |
7481 | # On AIX/PPC, the GNU linker is very broken |
7665 | # On AIX/PPC, the GNU linker is very broken |
… | |
… | |
7523 | # as there is no search path for DLLs. |
7707 | # as there is no search path for DLLs. |
7524 | hardcode_libdir_flag_spec='-L$libdir' |
7708 | hardcode_libdir_flag_spec='-L$libdir' |
7525 | allow_undefined_flag=unsupported |
7709 | allow_undefined_flag=unsupported |
7526 | always_export_symbols=no |
7710 | always_export_symbols=no |
7527 | enable_shared_with_static_runtimes=yes |
7711 | enable_shared_with_static_runtimes=yes |
7528 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7712 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7529 | |
7713 | |
7530 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7714 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7531 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
7715 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7532 | # If the export-symbols file already is a .def file (1st line |
7716 | # If the export-symbols file already is a .def file (1st line |
7533 | # is EXPORTS), use it as is; otherwise, prepend... |
7717 | # is EXPORTS), use it as is; otherwise, prepend... |
7534 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7718 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7535 | cp $export_symbols $output_objdir/$soname.def; |
7719 | cp $export_symbols $output_objdir/$soname.def; |
7536 | else |
7720 | else |
7537 | echo EXPORTS > $output_objdir/$soname.def; |
7721 | echo EXPORTS > $output_objdir/$soname.def; |
7538 | cat $export_symbols >> $output_objdir/$soname.def; |
7722 | cat $export_symbols >> $output_objdir/$soname.def; |
7539 | fi~ |
7723 | fi~ |
7540 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
7724 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7541 | else |
7725 | else |
7542 | ld_shlibs=no |
7726 | ld_shlibs=no |
7543 | fi |
7727 | fi |
7544 | ;; |
7728 | ;; |
7545 | |
7729 | |
7546 | netbsd*) |
7730 | interix3*) |
|
|
7731 | hardcode_direct=no |
|
|
7732 | hardcode_shlibpath_var=no |
|
|
7733 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
7734 | export_dynamic_flag_spec='${wl}-E' |
|
|
7735 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
7736 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
7737 | # default) and relocated if they conflict, which is a slow very memory |
|
|
7738 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
7739 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
7740 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
7741 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
7742 | archive_expsym_cmds='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' |
|
|
7743 | ;; |
|
|
7744 | |
|
|
7745 | linux* | k*bsd*-gnu) |
|
|
7746 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
7747 | tmp_addflag= |
|
|
7748 | case $cc_basename,$host_cpu in |
|
|
7749 | pgcc*) # Portland Group C compiler |
|
|
7750 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
7751 | tmp_addflag=' $pic_flag' |
|
|
7752 | ;; |
|
|
7753 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
7754 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
7755 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
7756 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
7757 | tmp_addflag=' -i_dynamic' ;; |
|
|
7758 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
7759 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
7760 | ifc* | ifort*) # Intel Fortran compiler |
|
|
7761 | tmp_addflag=' -nofor_main' ;; |
|
|
7762 | esac |
|
|
7763 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
7764 | |
|
|
7765 | if test $supports_anon_versioning = yes; then |
|
|
7766 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
7767 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
7768 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
7769 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
7770 | fi |
|
|
7771 | link_all_deplibs=no |
|
|
7772 | else |
|
|
7773 | ld_shlibs=no |
|
|
7774 | fi |
|
|
7775 | ;; |
|
|
7776 | |
|
|
7777 | netbsd* | netbsdelf*-gnu) |
7547 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7778 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7548 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7779 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7549 | wlarc= |
7780 | wlarc= |
7550 | else |
7781 | else |
7551 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7782 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7552 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7783 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7553 | fi |
7784 | fi |
7554 | ;; |
7785 | ;; |
7555 | |
7786 | |
7556 | solaris* | sysv5*) |
7787 | solaris*) |
7557 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7788 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7558 | ld_shlibs=no |
7789 | ld_shlibs=no |
7559 | cat <<EOF 1>&2 |
7790 | cat <<EOF 1>&2 |
7560 | |
7791 | |
7561 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7792 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
… | |
… | |
7572 | else |
7803 | else |
7573 | ld_shlibs=no |
7804 | ld_shlibs=no |
7574 | fi |
7805 | fi |
7575 | ;; |
7806 | ;; |
7576 | |
7807 | |
|
|
7808 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
7809 | case `$LD -v 2>&1` in |
|
|
7810 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
7811 | ld_shlibs=no |
|
|
7812 | cat <<_LT_EOF 1>&2 |
|
|
7813 | |
|
|
7814 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
7815 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
7816 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
7817 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
7818 | *** your PATH or compiler configuration so that the native linker is |
|
|
7819 | *** used, and then restart. |
|
|
7820 | |
|
|
7821 | _LT_EOF |
|
|
7822 | ;; |
|
|
7823 | *) |
|
|
7824 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
7825 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
7826 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
7827 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
7828 | else |
|
|
7829 | ld_shlibs=no |
|
|
7830 | fi |
|
|
7831 | ;; |
|
|
7832 | esac |
|
|
7833 | ;; |
|
|
7834 | |
7577 | sunos4*) |
7835 | sunos4*) |
7578 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7836 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7579 | wlarc= |
7837 | wlarc= |
7580 | hardcode_direct=yes |
7838 | hardcode_direct=yes |
7581 | hardcode_shlibpath_var=no |
7839 | hardcode_shlibpath_var=no |
7582 | ;; |
7840 | ;; |
7583 | |
|
|
7584 | linux*) |
|
|
7585 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
7586 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
7587 | archive_cmds="$tmp_archive_cmds" |
|
|
7588 | supports_anon_versioning=no |
|
|
7589 | case `$LD -v 2>/dev/null` in |
|
|
7590 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
7591 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
7592 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
7593 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
7594 | *) supports_anon_versioning=yes ;; |
|
|
7595 | esac |
|
|
7596 | if test $supports_anon_versioning = yes; then |
|
|
7597 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
7598 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
7599 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
7600 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
7601 | else |
|
|
7602 | archive_expsym_cmds="$tmp_archive_cmds" |
|
|
7603 | fi |
|
|
7604 | else |
|
|
7605 | ld_shlibs=no |
|
|
7606 | fi |
|
|
7607 | ;; |
|
|
7608 | |
7841 | |
7609 | *) |
7842 | *) |
7610 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7843 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7611 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7844 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7612 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7845 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
… | |
… | |
7614 | ld_shlibs=no |
7847 | ld_shlibs=no |
7615 | fi |
7848 | fi |
7616 | ;; |
7849 | ;; |
7617 | esac |
7850 | esac |
7618 | |
7851 | |
7619 | if test "$ld_shlibs" = yes; then |
7852 | if test "$ld_shlibs" = no; then |
7620 | runpath_var=LD_RUN_PATH |
7853 | runpath_var= |
7621 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7854 | hardcode_libdir_flag_spec= |
7622 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7855 | export_dynamic_flag_spec= |
7623 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
7624 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
7625 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
7626 | else |
|
|
7627 | whole_archive_flag_spec= |
7856 | whole_archive_flag_spec= |
7628 | fi |
|
|
7629 | fi |
7857 | fi |
7630 | else |
7858 | else |
7631 | # PORTME fill in a description of your system's linker (not GNU ld) |
7859 | # PORTME fill in a description of your system's linker (not GNU ld) |
7632 | case $host_os in |
7860 | case $host_os in |
7633 | aix3*) |
7861 | aix3*) |
… | |
… | |
7635 | always_export_symbols=yes |
7863 | always_export_symbols=yes |
7636 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
7864 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
7637 | # Note: this linker hardcodes the directories in LIBPATH if there |
7865 | # Note: this linker hardcodes the directories in LIBPATH if there |
7638 | # are no directories specified by -L. |
7866 | # are no directories specified by -L. |
7639 | hardcode_minus_L=yes |
7867 | hardcode_minus_L=yes |
7640 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
7868 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7641 | # Neither direct hardcoding nor static linking is supported with a |
7869 | # Neither direct hardcoding nor static linking is supported with a |
7642 | # broken collect2. |
7870 | # broken collect2. |
7643 | hardcode_direct=unsupported |
7871 | hardcode_direct=unsupported |
7644 | fi |
7872 | fi |
7645 | ;; |
7873 | ;; |
… | |
… | |
7669 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7897 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7670 | aix_use_runtimelinking=yes |
7898 | aix_use_runtimelinking=yes |
7671 | break |
7899 | break |
7672 | fi |
7900 | fi |
7673 | done |
7901 | done |
|
|
7902 | ;; |
7674 | esac |
7903 | esac |
7675 | |
7904 | |
7676 | exp_sym_flag='-bexport' |
7905 | exp_sym_flag='-bexport' |
7677 | no_entry_flag='-bnoentry' |
7906 | no_entry_flag='-bnoentry' |
7678 | fi |
7907 | fi |
… | |
… | |
7687 | hardcode_direct=yes |
7916 | hardcode_direct=yes |
7688 | hardcode_libdir_separator=':' |
7917 | hardcode_libdir_separator=':' |
7689 | link_all_deplibs=yes |
7918 | link_all_deplibs=yes |
7690 | |
7919 | |
7691 | if test "$GCC" = yes; then |
7920 | if test "$GCC" = yes; then |
7692 | case $host_os in aix4.012|aix4.012.*) |
7921 | case $host_os in aix4.[012]|aix4.[012].*) |
7693 | # We only want to do this on AIX 4.2 and lower, the check |
7922 | # We only want to do this on AIX 4.2 and lower, the check |
7694 | # below for broken collect2 doesn't work under 4.3+ |
7923 | # below for broken collect2 doesn't work under 4.3+ |
7695 | collect2name=`${CC} -print-prog-name=collect2` |
7924 | collect2name=`${CC} -print-prog-name=collect2` |
7696 | if test -f "$collect2name" && \ |
7925 | if test -f "$collect2name" && \ |
7697 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7926 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
… | |
… | |
7706 | # to unsupported forces relinking |
7935 | # to unsupported forces relinking |
7707 | hardcode_minus_L=yes |
7936 | hardcode_minus_L=yes |
7708 | hardcode_libdir_flag_spec='-L$libdir' |
7937 | hardcode_libdir_flag_spec='-L$libdir' |
7709 | hardcode_libdir_separator= |
7938 | hardcode_libdir_separator= |
7710 | fi |
7939 | fi |
|
|
7940 | ;; |
7711 | esac |
7941 | esac |
7712 | shared_flag='-shared' |
7942 | shared_flag='-shared' |
|
|
7943 | if test "$aix_use_runtimelinking" = yes; then |
|
|
7944 | shared_flag="$shared_flag "'${wl}-G' |
|
|
7945 | fi |
7713 | else |
7946 | else |
7714 | # not using gcc |
7947 | # not using gcc |
7715 | if test "$host_cpu" = ia64; then |
7948 | if test "$host_cpu" = ia64; then |
7716 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7949 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7717 | # chokes on -Wl,-G. The following line is correct: |
7950 | # chokes on -Wl,-G. The following line is correct: |
7718 | shared_flag='-G' |
7951 | shared_flag='-G' |
7719 | else |
7952 | else |
7720 | if test "$aix_use_runtimelinking" = yes; then |
7953 | if test "$aix_use_runtimelinking" = yes; then |
7721 | shared_flag='${wl}-G' |
7954 | shared_flag='${wl}-G' |
7722 | else |
7955 | else |
7723 | shared_flag='${wl}-bM:SRE' |
7956 | shared_flag='${wl}-bM:SRE' |
7724 | fi |
7957 | fi |
7725 | fi |
7958 | fi |
7726 | fi |
7959 | fi |
7727 | |
7960 | |
7728 | # It seems that -bexpall does not export symbols beginning with |
7961 | # It seems that -bexpall does not export symbols beginning with |
7729 | # underscore (_), so it is better to generate a list of symbols to export. |
7962 | # underscore (_), so it is better to generate a list of symbols to export. |
… | |
… | |
7782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7783 | conftest$ac_exeext conftest.$ac_ext |
8016 | conftest$ac_exeext conftest.$ac_ext |
7784 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8017 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7785 | |
8018 | |
7786 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8019 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7787 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
8020 | archive_expsym_cmds="\$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" |
7788 | else |
8021 | else |
7789 | if test "$host_cpu" = ia64; then |
8022 | if test "$host_cpu" = ia64; then |
7790 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8023 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7791 | allow_undefined_flag="-z nodefs" |
8024 | allow_undefined_flag="-z nodefs" |
7792 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
8025 | archive_expsym_cmds="\$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" |
7793 | else |
8026 | else |
7794 | # Determine the default libpath from the value encoded in an empty executable. |
8027 | # Determine the default libpath from the value encoded in an empty executable. |
7795 | cat >conftest.$ac_ext <<_ACEOF |
8028 | cat >conftest.$ac_ext <<_ACEOF |
7796 | /* confdefs.h. */ |
8029 | /* confdefs.h. */ |
7797 | _ACEOF |
8030 | _ACEOF |
… | |
… | |
7845 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8078 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7846 | # Warning - without using the other run time loading flags, |
8079 | # Warning - without using the other run time loading flags, |
7847 | # -berok will link without error, but may produce a broken library. |
8080 | # -berok will link without error, but may produce a broken library. |
7848 | no_undefined_flag=' ${wl}-bernotok' |
8081 | no_undefined_flag=' ${wl}-bernotok' |
7849 | allow_undefined_flag=' ${wl}-berok' |
8082 | allow_undefined_flag=' ${wl}-berok' |
7850 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
7851 | always_export_symbols=yes |
|
|
7852 | # Exported symbols can be pulled into shared objects from archives |
8083 | # Exported symbols can be pulled into shared objects from archives |
7853 | whole_archive_flag_spec=' ' |
8084 | whole_archive_flag_spec='$convenience' |
7854 | archive_cmds_need_lc=yes |
8085 | archive_cmds_need_lc=yes |
7855 | # This is similar to how AIX traditionally builds it's shared libraries. |
8086 | # This is similar to how AIX traditionally builds its shared libraries. |
7856 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
8087 | archive_expsym_cmds="\$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' |
7857 | fi |
8088 | fi |
7858 | fi |
8089 | fi |
7859 | ;; |
8090 | ;; |
7860 | |
8091 | |
7861 | amigaos*) |
8092 | amigaos*) |
… | |
… | |
7864 | hardcode_minus_L=yes |
8095 | hardcode_minus_L=yes |
7865 | # see comment about different semantics on the GNU ld section |
8096 | # see comment about different semantics on the GNU ld section |
7866 | ld_shlibs=no |
8097 | ld_shlibs=no |
7867 | ;; |
8098 | ;; |
7868 | |
8099 | |
7869 | bsdi4*) |
8100 | bsdi[45]*) |
7870 | export_dynamic_flag_spec=-rdynamic |
8101 | export_dynamic_flag_spec=-rdynamic |
7871 | ;; |
8102 | ;; |
7872 | |
8103 | |
7873 | cygwin* | mingw* | pw32*) |
8104 | cygwin* | mingw* | pw32*) |
7874 | # When not using gcc, we currently assume that we are using |
8105 | # When not using gcc, we currently assume that we are using |
… | |
… | |
7878 | hardcode_libdir_flag_spec=' ' |
8109 | hardcode_libdir_flag_spec=' ' |
7879 | allow_undefined_flag=unsupported |
8110 | allow_undefined_flag=unsupported |
7880 | # Tell ltmain to make .lib files, not .a files. |
8111 | # Tell ltmain to make .lib files, not .a files. |
7881 | libext=lib |
8112 | libext=lib |
7882 | # Tell ltmain to make .dll files, not .so files. |
8113 | # Tell ltmain to make .dll files, not .so files. |
7883 | shrext=".dll" |
8114 | shrext_cmds=".dll" |
7884 | # FIXME: Setting linknames here is a bad hack. |
8115 | # FIXME: Setting linknames here is a bad hack. |
7885 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8116 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7886 | # The linker will automatically build a .lib file if we build a DLL. |
8117 | # The linker will automatically build a .lib file if we build a DLL. |
7887 | old_archive_From_new_cmds='true' |
8118 | old_archive_From_new_cmds='true' |
7888 | # FIXME: Should let the user specify the lib program. |
8119 | # FIXME: Should let the user specify the lib program. |
… | |
… | |
7890 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8121 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7891 | enable_shared_with_static_runtimes=yes |
8122 | enable_shared_with_static_runtimes=yes |
7892 | ;; |
8123 | ;; |
7893 | |
8124 | |
7894 | darwin* | rhapsody*) |
8125 | darwin* | rhapsody*) |
7895 | if test "$GXX" = yes ; then |
8126 | case $host_os in |
|
|
8127 | rhapsody* | darwin1.[012]) |
|
|
8128 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
|
|
8129 | ;; |
|
|
8130 | *) # Darwin 1.3 on |
|
|
8131 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
8132 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
8133 | else |
|
|
8134 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
8135 | 10.[012]) |
|
|
8136 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
8137 | ;; |
|
|
8138 | 10.*) |
|
|
8139 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
|
|
8140 | ;; |
|
|
8141 | esac |
|
|
8142 | fi |
|
|
8143 | ;; |
|
|
8144 | esac |
7896 | archive_cmds_need_lc=no |
8145 | archive_cmds_need_lc=no |
7897 | case "$host_os" in |
|
|
7898 | rhapsody* | darwin1.[012]) |
|
|
7899 | allow_undefined_flag='-undefined suppress' |
|
|
7900 | ;; |
|
|
7901 | *) # Darwin 1.3 on |
|
|
7902 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
7903 | allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
7904 | else |
|
|
7905 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
7906 | 10.[012]) |
|
|
7907 | allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
7908 | ;; |
|
|
7909 | 10.*) |
|
|
7910 | allow_undefined_flag='-undefined dynamic_lookup' |
|
|
7911 | ;; |
|
|
7912 | esac |
|
|
7913 | fi |
|
|
7914 | ;; |
|
|
7915 | esac |
|
|
7916 | lt_int_apple_cc_single_mod=no |
|
|
7917 | output_verbose_link_cmd='echo' |
|
|
7918 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
7919 | lt_int_apple_cc_single_mod=yes |
|
|
7920 | fi |
|
|
7921 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
7922 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
7923 | else |
|
|
7924 | archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
7925 | fi |
|
|
7926 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
7927 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
7928 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
7929 | archive_expsym_cmds='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}' |
|
|
7930 | else |
|
|
7931 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
7932 | fi |
|
|
7933 | module_expsym_cmds='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}' |
|
|
7934 | hardcode_direct=no |
8146 | hardcode_direct=no |
7935 | hardcode_automatic=yes |
8147 | hardcode_automatic=yes |
7936 | hardcode_shlibpath_var=unsupported |
8148 | hardcode_shlibpath_var=unsupported |
7937 | whole_archive_flag_spec='-all_load $convenience' |
8149 | whole_archive_flag_spec='' |
7938 | link_all_deplibs=yes |
8150 | link_all_deplibs=yes |
|
|
8151 | if test "$GCC" = yes ; then |
|
|
8152 | output_verbose_link_cmd='echo' |
|
|
8153 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
8154 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
8155 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
8156 | archive_expsym_cmds='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}' |
|
|
8157 | module_expsym_cmds='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}' |
7939 | else |
8158 | else |
|
|
8159 | case $cc_basename in |
|
|
8160 | xlc*) |
|
|
8161 | output_verbose_link_cmd='echo' |
|
|
8162 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
8163 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
8164 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
8165 | archive_expsym_cmds='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}' |
|
|
8166 | module_expsym_cmds='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}' |
|
|
8167 | ;; |
|
|
8168 | *) |
7940 | ld_shlibs=no |
8169 | ld_shlibs=no |
|
|
8170 | ;; |
|
|
8171 | esac |
7941 | fi |
8172 | fi |
7942 | ;; |
8173 | ;; |
7943 | |
8174 | |
7944 | dgux*) |
8175 | dgux*) |
7945 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8176 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
… | |
… | |
7969 | hardcode_minus_L=yes |
8200 | hardcode_minus_L=yes |
7970 | hardcode_shlibpath_var=no |
8201 | hardcode_shlibpath_var=no |
7971 | ;; |
8202 | ;; |
7972 | |
8203 | |
7973 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8204 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7974 | freebsd* | kfreebsd*-gnu) |
8205 | freebsd* | dragonfly*) |
7975 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8206 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7976 | hardcode_libdir_flag_spec='-R$libdir' |
8207 | hardcode_libdir_flag_spec='-R$libdir' |
7977 | hardcode_direct=yes |
8208 | hardcode_direct=yes |
7978 | hardcode_shlibpath_var=no |
8209 | hardcode_shlibpath_var=no |
7979 | ;; |
8210 | ;; |
… | |
… | |
7992 | # but as the default location of the library. |
8223 | # but as the default location of the library. |
7993 | hardcode_minus_L=yes |
8224 | hardcode_minus_L=yes |
7994 | export_dynamic_flag_spec='${wl}-E' |
8225 | export_dynamic_flag_spec='${wl}-E' |
7995 | ;; |
8226 | ;; |
7996 | |
8227 | |
7997 | hpux10* | hpux11*) |
8228 | hpux10*) |
7998 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8229 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
8230 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8231 | else |
|
|
8232 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
8233 | fi |
|
|
8234 | if test "$with_gnu_ld" = no; then |
|
|
8235 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
8236 | hardcode_libdir_separator=: |
|
|
8237 | |
|
|
8238 | hardcode_direct=yes |
|
|
8239 | export_dynamic_flag_spec='${wl}-E' |
|
|
8240 | |
|
|
8241 | # hardcode_minus_L: Not really in the search PATH, |
|
|
8242 | # but as the default location of the library. |
|
|
8243 | hardcode_minus_L=yes |
|
|
8244 | fi |
|
|
8245 | ;; |
|
|
8246 | |
|
|
8247 | hpux11*) |
|
|
8248 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7999 | case "$host_cpu" in |
8249 | case $host_cpu in |
8000 | hppa*64*|ia64*) |
8250 | hppa*64*) |
8001 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8251 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8252 | ;; |
|
|
8253 | ia64*) |
|
|
8254 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8002 | ;; |
8255 | ;; |
8003 | *) |
8256 | *) |
8004 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8257 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8005 | ;; |
8258 | ;; |
8006 | esac |
8259 | esac |
8007 | else |
8260 | else |
8008 | case "$host_cpu" in |
8261 | case $host_cpu in |
8009 | hppa*64*|ia64*) |
8262 | hppa*64*) |
8010 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
8263 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8264 | ;; |
|
|
8265 | ia64*) |
|
|
8266 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8011 | ;; |
8267 | ;; |
8012 | *) |
8268 | *) |
8013 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8269 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8014 | ;; |
8270 | ;; |
8015 | esac |
8271 | esac |
8016 | fi |
8272 | fi |
8017 | if test "$with_gnu_ld" = no; then |
8273 | if test "$with_gnu_ld" = no; then |
8018 | case "$host_cpu" in |
|
|
8019 | hppa*64*) |
|
|
8020 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8274 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
8275 | hardcode_libdir_separator=: |
|
|
8276 | |
|
|
8277 | case $host_cpu in |
|
|
8278 | hppa*64*|ia64*) |
8021 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8279 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8022 | hardcode_libdir_separator=: |
|
|
8023 | hardcode_direct=no |
8280 | hardcode_direct=no |
8024 | hardcode_shlibpath_var=no |
8281 | hardcode_shlibpath_var=no |
8025 | ;; |
8282 | ;; |
8026 | ia64*) |
|
|
8027 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
8028 | hardcode_direct=no |
|
|
8029 | hardcode_shlibpath_var=no |
|
|
8030 | |
|
|
8031 | # hardcode_minus_L: Not really in the search PATH, |
|
|
8032 | # but as the default location of the library. |
|
|
8033 | hardcode_minus_L=yes |
|
|
8034 | ;; |
|
|
8035 | *) |
8283 | *) |
8036 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
8037 | hardcode_libdir_separator=: |
|
|
8038 | hardcode_direct=yes |
8284 | hardcode_direct=yes |
8039 | export_dynamic_flag_spec='${wl}-E' |
8285 | export_dynamic_flag_spec='${wl}-E' |
8040 | |
8286 | |
8041 | # hardcode_minus_L: Not really in the search PATH, |
8287 | # hardcode_minus_L: Not really in the search PATH, |
8042 | # but as the default location of the library. |
8288 | # but as the default location of the library. |
… | |
… | |
8056 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8302 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8057 | hardcode_libdir_separator=: |
8303 | hardcode_libdir_separator=: |
8058 | link_all_deplibs=yes |
8304 | link_all_deplibs=yes |
8059 | ;; |
8305 | ;; |
8060 | |
8306 | |
8061 | netbsd*) |
8307 | netbsd* | netbsdelf*-gnu) |
8062 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8308 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8063 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8309 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8064 | else |
8310 | else |
8065 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8311 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8066 | fi |
8312 | fi |
… | |
… | |
8080 | openbsd*) |
8326 | openbsd*) |
8081 | hardcode_direct=yes |
8327 | hardcode_direct=yes |
8082 | hardcode_shlibpath_var=no |
8328 | hardcode_shlibpath_var=no |
8083 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8329 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8084 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8330 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8331 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8085 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8332 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8086 | export_dynamic_flag_spec='${wl}-E' |
8333 | export_dynamic_flag_spec='${wl}-E' |
8087 | else |
8334 | else |
8088 | case $host_os in |
8335 | case $host_os in |
8089 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8336 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
… | |
… | |
8125 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8372 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8126 | else |
8373 | else |
8127 | allow_undefined_flag=' -expect_unresolved \*' |
8374 | allow_undefined_flag=' -expect_unresolved \*' |
8128 | archive_cmds='$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' |
8375 | archive_cmds='$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' |
8129 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8376 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8130 | $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' |
8377 | $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' |
8131 | |
8378 | |
8132 | # Both c and cxx compiler support -rpath directly |
8379 | # Both c and cxx compiler support -rpath directly |
8133 | hardcode_libdir_flag_spec='-rpath $libdir' |
8380 | hardcode_libdir_flag_spec='-rpath $libdir' |
8134 | fi |
8381 | fi |
8135 | hardcode_libdir_separator=: |
8382 | hardcode_libdir_separator=: |
8136 | ;; |
8383 | ;; |
8137 | |
8384 | |
8138 | sco3.2v5*) |
|
|
8139 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
8140 | hardcode_shlibpath_var=no |
|
|
8141 | export_dynamic_flag_spec='${wl}-Bexport' |
|
|
8142 | runpath_var=LD_RUN_PATH |
|
|
8143 | hardcode_runpath_var=yes |
|
|
8144 | ;; |
|
|
8145 | |
|
|
8146 | solaris*) |
8385 | solaris*) |
8147 | no_undefined_flag=' -z text' |
8386 | no_undefined_flag=' -z text' |
8148 | if test "$GCC" = yes; then |
8387 | if test "$GCC" = yes; then |
|
|
8388 | wlarc='${wl}' |
8149 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8389 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8150 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8390 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8151 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8391 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8152 | else |
8392 | else |
|
|
8393 | wlarc='' |
8153 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8394 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8154 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8395 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8155 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8396 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8156 | fi |
8397 | fi |
8157 | hardcode_libdir_flag_spec='-R$libdir' |
8398 | hardcode_libdir_flag_spec='-R$libdir' |
8158 | hardcode_shlibpath_var=no |
8399 | hardcode_shlibpath_var=no |
8159 | case $host_os in |
8400 | case $host_os in |
8160 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8401 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
8402 | *) |
|
|
8403 | # The compiler driver will combine linker options so we |
|
|
8404 | # cannot just pass the convience library names through |
|
|
8405 | # without $wl, iff we do not link with $LD. |
|
|
8406 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8161 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
8407 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
8408 | case $wlarc in |
|
|
8409 | '') |
8162 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8410 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
8411 | *) |
|
|
8412 | whole_archive_flag_spec='${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' ;; |
|
|
8413 | esac ;; |
8163 | esac |
8414 | esac |
8164 | link_all_deplibs=yes |
8415 | link_all_deplibs=yes |
8165 | ;; |
8416 | ;; |
8166 | |
8417 | |
8167 | sunos4*) |
8418 | sunos4*) |
… | |
… | |
8214 | hardcode_runpath_var=yes |
8465 | hardcode_runpath_var=yes |
8215 | ld_shlibs=yes |
8466 | ld_shlibs=yes |
8216 | fi |
8467 | fi |
8217 | ;; |
8468 | ;; |
8218 | |
8469 | |
8219 | sysv4.2uw2*) |
8470 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8220 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
8221 | hardcode_direct=yes |
|
|
8222 | hardcode_minus_L=no |
|
|
8223 | hardcode_shlibpath_var=no |
|
|
8224 | hardcode_runpath_var=yes |
|
|
8225 | runpath_var=LD_RUN_PATH |
|
|
8226 | ;; |
|
|
8227 | |
|
|
8228 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
|
8229 | no_undefined_flag='${wl}-z ${wl}text' |
8471 | no_undefined_flag='${wl}-z,text' |
8230 | if test "$GCC" = yes; then |
8472 | archive_cmds_need_lc=no |
8231 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8232 | else |
|
|
8233 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8234 | fi |
|
|
8235 | runpath_var='LD_RUN_PATH' |
|
|
8236 | hardcode_shlibpath_var=no |
|
|
8237 | ;; |
|
|
8238 | |
|
|
8239 | sysv5*) |
|
|
8240 | no_undefined_flag=' -z text' |
|
|
8241 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
8242 | # object files and a static libstdc++, better avoid it by now |
|
|
8243 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
8244 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
8245 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
8246 | hardcode_libdir_flag_spec= |
|
|
8247 | hardcode_shlibpath_var=no |
8473 | hardcode_shlibpath_var=no |
8248 | runpath_var='LD_RUN_PATH' |
8474 | runpath_var='LD_RUN_PATH' |
|
|
8475 | |
|
|
8476 | if test "$GCC" = yes; then |
|
|
8477 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8478 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8479 | else |
|
|
8480 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8481 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8482 | fi |
|
|
8483 | ;; |
|
|
8484 | |
|
|
8485 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
8486 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
8487 | # link with -lc, and that would cause any symbols used from libc to |
|
|
8488 | # always be unresolved, which means just about no library would |
|
|
8489 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
8490 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
8491 | # as -z defs. |
|
|
8492 | no_undefined_flag='${wl}-z,text' |
|
|
8493 | allow_undefined_flag='${wl}-z,nodefs' |
|
|
8494 | archive_cmds_need_lc=no |
|
|
8495 | hardcode_shlibpath_var=no |
|
|
8496 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
8497 | hardcode_libdir_separator=':' |
|
|
8498 | link_all_deplibs=yes |
|
|
8499 | export_dynamic_flag_spec='${wl}-Bexport' |
|
|
8500 | runpath_var='LD_RUN_PATH' |
|
|
8501 | |
|
|
8502 | if test "$GCC" = yes; then |
|
|
8503 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8504 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8505 | else |
|
|
8506 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8507 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
8508 | fi |
8249 | ;; |
8509 | ;; |
8250 | |
8510 | |
8251 | uts4*) |
8511 | uts4*) |
8252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8512 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8253 | hardcode_libdir_flag_spec='-L$libdir' |
8513 | hardcode_libdir_flag_spec='-L$libdir' |
… | |
… | |
8261 | fi |
8521 | fi |
8262 | |
8522 | |
8263 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8523 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8264 | echo "${ECHO_T}$ld_shlibs" >&6; } |
8524 | echo "${ECHO_T}$ld_shlibs" >&6; } |
8265 | test "$ld_shlibs" = no && can_build_shared=no |
8525 | test "$ld_shlibs" = no && can_build_shared=no |
8266 | |
|
|
8267 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
8268 | if test "$GCC" = yes; then |
|
|
8269 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
8270 | fi |
|
|
8271 | |
8526 | |
8272 | # |
8527 | # |
8273 | # Do we need to explicitly link libc? |
8528 | # Do we need to explicitly link libc? |
8274 | # |
8529 | # |
8275 | case "x$archive_cmds_need_lc" in |
8530 | case "x$archive_cmds_need_lc" in |
… | |
… | |
8299 | soname=conftest |
8554 | soname=conftest |
8300 | lib=conftest |
8555 | lib=conftest |
8301 | libobjs=conftest.$ac_objext |
8556 | libobjs=conftest.$ac_objext |
8302 | deplibs= |
8557 | deplibs= |
8303 | wl=$lt_prog_compiler_wl |
8558 | wl=$lt_prog_compiler_wl |
|
|
8559 | pic_flag=$lt_prog_compiler_pic |
8304 | compiler_flags=-v |
8560 | compiler_flags=-v |
8305 | linker_flags=-v |
8561 | linker_flags=-v |
8306 | verstring= |
8562 | verstring= |
8307 | output_objdir=. |
8563 | output_objdir=. |
8308 | libname=conftest |
8564 | libname=conftest |
… | |
… | |
8334 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8590 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8335 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
8591 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
8336 | library_names_spec= |
8592 | library_names_spec= |
8337 | libname_spec='lib$name' |
8593 | libname_spec='lib$name' |
8338 | soname_spec= |
8594 | soname_spec= |
8339 | shrext=".so" |
8595 | shrext_cmds=".so" |
8340 | postinstall_cmds= |
8596 | postinstall_cmds= |
8341 | postuninstall_cmds= |
8597 | postuninstall_cmds= |
8342 | finish_cmds= |
8598 | finish_cmds= |
8343 | finish_eval= |
8599 | finish_eval= |
8344 | shlibpath_var= |
8600 | shlibpath_var= |
… | |
… | |
8431 | library_names_spec='${libname}${shared_ext}' |
8687 | library_names_spec='${libname}${shared_ext}' |
8432 | dynamic_linker="$host_os ld.so" |
8688 | dynamic_linker="$host_os ld.so" |
8433 | shlibpath_var=LIBRARY_PATH |
8689 | shlibpath_var=LIBRARY_PATH |
8434 | ;; |
8690 | ;; |
8435 | |
8691 | |
8436 | bsdi4*) |
8692 | bsdi[45]*) |
8437 | version_type=linux |
8693 | version_type=linux |
8438 | need_version=no |
8694 | need_version=no |
8439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8440 | soname_spec='${libname}${release}${shared_ext}$major' |
8696 | soname_spec='${libname}${release}${shared_ext}$major' |
8441 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8697 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
… | |
… | |
8447 | # libtool to hard-code these into programs |
8703 | # libtool to hard-code these into programs |
8448 | ;; |
8704 | ;; |
8449 | |
8705 | |
8450 | cygwin* | mingw* | pw32*) |
8706 | cygwin* | mingw* | pw32*) |
8451 | version_type=windows |
8707 | version_type=windows |
8452 | shrext=".dll" |
8708 | shrext_cmds=".dll" |
8453 | need_version=no |
8709 | need_version=no |
8454 | need_lib_prefix=no |
8710 | need_lib_prefix=no |
8455 | |
8711 | |
8456 | case $GCC,$host_os in |
8712 | case $GCC,$host_os in |
8457 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8713 | yes,cygwin* | yes,mingw* | yes,pw32*) |
… | |
… | |
8459 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8715 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8460 | postinstall_cmds='base_file=`basename \${file}`~ |
8716 | postinstall_cmds='base_file=`basename \${file}`~ |
8461 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8717 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8462 | dldir=$destdir/`dirname \$dlpath`~ |
8718 | dldir=$destdir/`dirname \$dlpath`~ |
8463 | test -d \$dldir || mkdir -p \$dldir~ |
8719 | test -d \$dldir || mkdir -p \$dldir~ |
8464 | $install_prog $dir/$dlname \$dldir/$dlname' |
8720 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
8721 | chmod a+x \$dldir/$dlname' |
8465 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8722 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8466 | dlpath=$dir/\$dldll~ |
8723 | dlpath=$dir/\$dldll~ |
8467 | $rm \$dlpath' |
8724 | $rm \$dlpath' |
8468 | shlibpath_overrides_runpath=yes |
8725 | shlibpath_overrides_runpath=yes |
8469 | |
8726 | |
… | |
… | |
8489 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8746 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8490 | fi |
8747 | fi |
8491 | ;; |
8748 | ;; |
8492 | pw32*) |
8749 | pw32*) |
8493 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8750 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8494 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
8751 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8495 | ;; |
8752 | ;; |
8496 | esac |
8753 | esac |
8497 | ;; |
8754 | ;; |
8498 | |
8755 | |
8499 | *) |
8756 | *) |
… | |
… | |
8512 | need_version=no |
8769 | need_version=no |
8513 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8770 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8514 | soname_spec='${libname}${release}${major}$shared_ext' |
8771 | soname_spec='${libname}${release}${major}$shared_ext' |
8515 | shlibpath_overrides_runpath=yes |
8772 | shlibpath_overrides_runpath=yes |
8516 | shlibpath_var=DYLD_LIBRARY_PATH |
8773 | shlibpath_var=DYLD_LIBRARY_PATH |
8517 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
8774 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8518 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8775 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8519 | if test "$GCC" = yes; then |
8776 | if test "$GCC" = yes; then |
8520 | 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"` |
8777 | 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"` |
8521 | else |
8778 | else |
8522 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8779 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
… | |
… | |
8535 | |
8792 | |
8536 | freebsd1*) |
8793 | freebsd1*) |
8537 | dynamic_linker=no |
8794 | dynamic_linker=no |
8538 | ;; |
8795 | ;; |
8539 | |
8796 | |
8540 | kfreebsd*-gnu) |
8797 | freebsd* | dragonfly*) |
8541 | version_type=linux |
8798 | # DragonFly does not have aout. When/if they implement a new |
8542 | need_lib_prefix=no |
8799 | # versioning mechanism, adjust this. |
8543 | need_version=no |
8800 | if test -x /usr/bin/objformat; then |
8544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8801 | objformat=`/usr/bin/objformat` |
8545 | soname_spec='${libname}${release}${shared_ext}$major' |
8802 | else |
8546 | shlibpath_var=LD_LIBRARY_PATH |
8803 | case $host_os in |
8547 | shlibpath_overrides_runpath=no |
8804 | freebsd[123]*) objformat=aout ;; |
8548 | hardcode_into_libs=yes |
8805 | *) objformat=elf ;; |
8549 | dynamic_linker='GNU ld.so' |
8806 | esac |
8550 | ;; |
8807 | fi |
8551 | |
|
|
8552 | freebsd*) |
|
|
8553 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
8554 | version_type=freebsd-$objformat |
8808 | version_type=freebsd-$objformat |
8555 | case $version_type in |
8809 | case $version_type in |
8556 | freebsd-elf*) |
8810 | freebsd-elf*) |
8557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8558 | need_version=no |
8812 | need_version=no |
… | |
… | |
8566 | shlibpath_var=LD_LIBRARY_PATH |
8820 | shlibpath_var=LD_LIBRARY_PATH |
8567 | case $host_os in |
8821 | case $host_os in |
8568 | freebsd2*) |
8822 | freebsd2*) |
8569 | shlibpath_overrides_runpath=yes |
8823 | shlibpath_overrides_runpath=yes |
8570 | ;; |
8824 | ;; |
8571 | freebsd3.01* | freebsdelf3.01*) |
8825 | freebsd3.[01]* | freebsdelf3.[01]*) |
8572 | shlibpath_overrides_runpath=yes |
8826 | shlibpath_overrides_runpath=yes |
8573 | hardcode_into_libs=yes |
8827 | hardcode_into_libs=yes |
8574 | ;; |
8828 | ;; |
8575 | *) # from 3.2 on |
8829 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
8830 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8576 | shlibpath_overrides_runpath=no |
8831 | shlibpath_overrides_runpath=no |
|
|
8832 | hardcode_into_libs=yes |
|
|
8833 | ;; |
|
|
8834 | freebsd*) # from 4.6 on |
|
|
8835 | shlibpath_overrides_runpath=yes |
8577 | hardcode_into_libs=yes |
8836 | hardcode_into_libs=yes |
8578 | ;; |
8837 | ;; |
8579 | esac |
8838 | esac |
8580 | ;; |
8839 | ;; |
8581 | |
8840 | |
… | |
… | |
8593 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8852 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8594 | # link against other versions. |
8853 | # link against other versions. |
8595 | version_type=sunos |
8854 | version_type=sunos |
8596 | need_lib_prefix=no |
8855 | need_lib_prefix=no |
8597 | need_version=no |
8856 | need_version=no |
8598 | case "$host_cpu" in |
8857 | case $host_cpu in |
8599 | ia64*) |
8858 | ia64*) |
8600 | shrext='.so' |
8859 | shrext_cmds='.so' |
8601 | hardcode_into_libs=yes |
8860 | hardcode_into_libs=yes |
8602 | dynamic_linker="$host_os dld.so" |
8861 | dynamic_linker="$host_os dld.so" |
8603 | shlibpath_var=LD_LIBRARY_PATH |
8862 | shlibpath_var=LD_LIBRARY_PATH |
8604 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8863 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
… | |
… | |
8610 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8869 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8611 | fi |
8870 | fi |
8612 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8871 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8613 | ;; |
8872 | ;; |
8614 | hppa*64*) |
8873 | hppa*64*) |
8615 | shrext='.sl' |
8874 | shrext_cmds='.sl' |
8616 | hardcode_into_libs=yes |
8875 | hardcode_into_libs=yes |
8617 | dynamic_linker="$host_os dld.sl" |
8876 | dynamic_linker="$host_os dld.sl" |
8618 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8877 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8619 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8878 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8621 | soname_spec='${libname}${release}${shared_ext}$major' |
8880 | soname_spec='${libname}${release}${shared_ext}$major' |
8622 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8881 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8623 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8882 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8624 | ;; |
8883 | ;; |
8625 | *) |
8884 | *) |
8626 | shrext='.sl' |
8885 | shrext_cmds='.sl' |
8627 | dynamic_linker="$host_os dld.sl" |
8886 | dynamic_linker="$host_os dld.sl" |
8628 | shlibpath_var=SHLIB_PATH |
8887 | shlibpath_var=SHLIB_PATH |
8629 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8888 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8631 | soname_spec='${libname}${release}${shared_ext}$major' |
8890 | soname_spec='${libname}${release}${shared_ext}$major' |
8632 | ;; |
8891 | ;; |
8633 | esac |
8892 | esac |
8634 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8893 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8635 | postinstall_cmds='chmod 555 $lib' |
8894 | postinstall_cmds='chmod 555 $lib' |
|
|
8895 | ;; |
|
|
8896 | |
|
|
8897 | interix3*) |
|
|
8898 | version_type=linux |
|
|
8899 | need_lib_prefix=no |
|
|
8900 | need_version=no |
|
|
8901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
8902 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
8903 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
8904 | shlibpath_var=LD_LIBRARY_PATH |
|
|
8905 | shlibpath_overrides_runpath=no |
|
|
8906 | hardcode_into_libs=yes |
8636 | ;; |
8907 | ;; |
8637 | |
8908 | |
8638 | irix5* | irix6* | nonstopux*) |
8909 | irix5* | irix6* | nonstopux*) |
8639 | case $host_os in |
8910 | case $host_os in |
8640 | nonstopux*) version_type=nonstopux ;; |
8911 | nonstopux*) version_type=nonstopux ;; |
… | |
… | |
8676 | linux*oldld* | linux*aout* | linux*coff*) |
8947 | linux*oldld* | linux*aout* | linux*coff*) |
8677 | dynamic_linker=no |
8948 | dynamic_linker=no |
8678 | ;; |
8949 | ;; |
8679 | |
8950 | |
8680 | # This must be Linux ELF. |
8951 | # This must be Linux ELF. |
8681 | linux*) |
8952 | linux* | k*bsd*-gnu) |
8682 | version_type=linux |
8953 | version_type=linux |
8683 | need_lib_prefix=no |
8954 | need_lib_prefix=no |
8684 | need_version=no |
8955 | need_version=no |
8685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8686 | soname_spec='${libname}${release}${shared_ext}$major' |
8957 | soname_spec='${libname}${release}${shared_ext}$major' |
… | |
… | |
8692 | # before this can be enabled. |
8963 | # before this can be enabled. |
8693 | hardcode_into_libs=yes |
8964 | hardcode_into_libs=yes |
8694 | |
8965 | |
8695 | # Append ld.so.conf contents to the search path |
8966 | # Append ld.so.conf contents to the search path |
8696 | if test -f /etc/ld.so.conf; then |
8967 | if test -f /etc/ld.so.conf; then |
8697 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
8968 | 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' ' '` |
8698 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
8969 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
8699 | fi |
8970 | fi |
8700 | |
8971 | |
8701 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8972 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8702 | # powerpc, because MkLinux only supported shared libraries with the |
8973 | # powerpc, because MkLinux only supported shared libraries with the |
8703 | # GNU dynamic linker. Since this was broken with cross compilers, |
8974 | # GNU dynamic linker. Since this was broken with cross compilers, |
… | |
… | |
8705 | # people can always --disable-shared, the test was removed, and we |
8976 | # people can always --disable-shared, the test was removed, and we |
8706 | # assume the GNU/Linux dynamic linker is in use. |
8977 | # assume the GNU/Linux dynamic linker is in use. |
8707 | dynamic_linker='GNU/Linux ld.so' |
8978 | dynamic_linker='GNU/Linux ld.so' |
8708 | ;; |
8979 | ;; |
8709 | |
8980 | |
8710 | knetbsd*-gnu) |
8981 | netbsdelf*-gnu) |
8711 | version_type=linux |
8982 | version_type=linux |
8712 | need_lib_prefix=no |
8983 | need_lib_prefix=no |
8713 | need_version=no |
8984 | need_version=no |
8714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8715 | soname_spec='${libname}${release}${shared_ext}$major' |
8986 | soname_spec='${libname}${release}${shared_ext}$major' |
8716 | shlibpath_var=LD_LIBRARY_PATH |
8987 | shlibpath_var=LD_LIBRARY_PATH |
8717 | shlibpath_overrides_runpath=no |
8988 | shlibpath_overrides_runpath=no |
8718 | hardcode_into_libs=yes |
8989 | hardcode_into_libs=yes |
8719 | dynamic_linker='GNU ld.so' |
8990 | dynamic_linker='NetBSD ld.elf_so' |
8720 | ;; |
8991 | ;; |
8721 | |
8992 | |
8722 | netbsd*) |
8993 | netbsd*) |
8723 | version_type=sunos |
8994 | version_type=sunos |
8724 | need_lib_prefix=no |
8995 | need_lib_prefix=no |
… | |
… | |
8754 | shlibpath_overrides_runpath=yes |
9025 | shlibpath_overrides_runpath=yes |
8755 | ;; |
9026 | ;; |
8756 | |
9027 | |
8757 | openbsd*) |
9028 | openbsd*) |
8758 | version_type=sunos |
9029 | version_type=sunos |
|
|
9030 | sys_lib_dlsearch_path_spec="/usr/lib" |
8759 | need_lib_prefix=no |
9031 | need_lib_prefix=no |
8760 | need_version=yes |
9032 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
9033 | case $host_os in |
|
|
9034 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
9035 | *) need_version=no ;; |
|
|
9036 | esac |
8761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8762 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9038 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8763 | shlibpath_var=LD_LIBRARY_PATH |
9039 | shlibpath_var=LD_LIBRARY_PATH |
8764 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9040 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8765 | case $host_os in |
9041 | case $host_os in |
… | |
… | |
8775 | fi |
9051 | fi |
8776 | ;; |
9052 | ;; |
8777 | |
9053 | |
8778 | os2*) |
9054 | os2*) |
8779 | libname_spec='$name' |
9055 | libname_spec='$name' |
8780 | shrext=".dll" |
9056 | shrext_cmds=".dll" |
8781 | need_lib_prefix=no |
9057 | need_lib_prefix=no |
8782 | library_names_spec='$libname${shared_ext} $libname.a' |
9058 | library_names_spec='$libname${shared_ext} $libname.a' |
8783 | dynamic_linker='OS/2 ld.exe' |
9059 | dynamic_linker='OS/2 ld.exe' |
8784 | shlibpath_var=LIBPATH |
9060 | shlibpath_var=LIBPATH |
8785 | ;; |
9061 | ;; |
… | |
… | |
8791 | soname_spec='${libname}${release}${shared_ext}$major' |
9067 | soname_spec='${libname}${release}${shared_ext}$major' |
8792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8793 | shlibpath_var=LD_LIBRARY_PATH |
9069 | shlibpath_var=LD_LIBRARY_PATH |
8794 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9070 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8795 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9071 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8796 | ;; |
|
|
8797 | |
|
|
8798 | sco3.2v5*) |
|
|
8799 | version_type=osf |
|
|
8800 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
8801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
8802 | shlibpath_var=LD_LIBRARY_PATH |
|
|
8803 | ;; |
9072 | ;; |
8804 | |
9073 | |
8805 | solaris*) |
9074 | solaris*) |
8806 | version_type=linux |
9075 | version_type=linux |
8807 | need_lib_prefix=no |
9076 | need_lib_prefix=no |
… | |
… | |
8825 | need_lib_prefix=no |
9094 | need_lib_prefix=no |
8826 | fi |
9095 | fi |
8827 | need_version=yes |
9096 | need_version=yes |
8828 | ;; |
9097 | ;; |
8829 | |
9098 | |
8830 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
9099 | sysv4 | sysv4.3*) |
8831 | version_type=linux |
9100 | version_type=linux |
8832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8833 | soname_spec='${libname}${release}${shared_ext}$major' |
9102 | soname_spec='${libname}${release}${shared_ext}$major' |
8834 | shlibpath_var=LD_LIBRARY_PATH |
9103 | shlibpath_var=LD_LIBRARY_PATH |
8835 | case $host_vendor in |
9104 | case $host_vendor in |
… | |
… | |
8858 | soname_spec='$libname${shared_ext}.$major' |
9127 | soname_spec='$libname${shared_ext}.$major' |
8859 | shlibpath_var=LD_LIBRARY_PATH |
9128 | shlibpath_var=LD_LIBRARY_PATH |
8860 | fi |
9129 | fi |
8861 | ;; |
9130 | ;; |
8862 | |
9131 | |
|
|
9132 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
9133 | version_type=freebsd-elf |
|
|
9134 | need_lib_prefix=no |
|
|
9135 | need_version=no |
|
|
9136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
9137 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
9138 | shlibpath_var=LD_LIBRARY_PATH |
|
|
9139 | hardcode_into_libs=yes |
|
|
9140 | if test "$with_gnu_ld" = yes; then |
|
|
9141 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
9142 | shlibpath_overrides_runpath=no |
|
|
9143 | else |
|
|
9144 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
9145 | shlibpath_overrides_runpath=yes |
|
|
9146 | case $host_os in |
|
|
9147 | sco3.2v5*) |
|
|
9148 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
9149 | ;; |
|
|
9150 | esac |
|
|
9151 | fi |
|
|
9152 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
9153 | ;; |
|
|
9154 | |
8863 | uts4*) |
9155 | uts4*) |
8864 | version_type=linux |
9156 | version_type=linux |
8865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8866 | soname_spec='${libname}${release}${shared_ext}$major' |
9158 | soname_spec='${libname}${release}${shared_ext}$major' |
8867 | shlibpath_var=LD_LIBRARY_PATH |
9159 | shlibpath_var=LD_LIBRARY_PATH |
… | |
… | |
8873 | esac |
9165 | esac |
8874 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9166 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8875 | echo "${ECHO_T}$dynamic_linker" >&6; } |
9167 | echo "${ECHO_T}$dynamic_linker" >&6; } |
8876 | test "$dynamic_linker" = no && can_build_shared=no |
9168 | test "$dynamic_linker" = no && can_build_shared=no |
8877 | |
9169 | |
|
|
9170 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
9171 | if test "$GCC" = yes; then |
|
|
9172 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
9173 | fi |
|
|
9174 | |
8878 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9175 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8879 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
9176 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
8880 | hardcode_action= |
9177 | hardcode_action= |
8881 | if test -n "$hardcode_libdir_flag_spec" || \ |
9178 | if test -n "$hardcode_libdir_flag_spec" || \ |
8882 | test -n "$runpath_var " || \ |
9179 | test -n "$runpath_var" || \ |
8883 | test "X$hardcode_automatic"="Xyes" ; then |
9180 | test "X$hardcode_automatic" = "Xyes" ; then |
8884 | |
9181 | |
8885 | # We can hardcode non-existant directories. |
9182 | # We can hardcode non-existant directories. |
8886 | if test "$hardcode_direct" != no && |
9183 | if test "$hardcode_direct" != no && |
8887 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9184 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8888 | # have to relink, otherwise we might link with an installed library |
9185 | # have to relink, otherwise we might link with an installed library |
… | |
… | |
9495 | dlopen) |
9792 | dlopen) |
9496 | save_CPPFLAGS="$CPPFLAGS" |
9793 | save_CPPFLAGS="$CPPFLAGS" |
9497 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9794 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9498 | |
9795 | |
9499 | save_LDFLAGS="$LDFLAGS" |
9796 | save_LDFLAGS="$LDFLAGS" |
9500 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9797 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9501 | |
9798 | |
9502 | save_LIBS="$LIBS" |
9799 | save_LIBS="$LIBS" |
9503 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9800 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9504 | |
9801 | |
9505 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9802 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
… | |
… | |
9511 | lt_cv_dlopen_self=cross |
9808 | lt_cv_dlopen_self=cross |
9512 | else |
9809 | else |
9513 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9810 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9514 | lt_status=$lt_dlunknown |
9811 | lt_status=$lt_dlunknown |
9515 | cat > conftest.$ac_ext <<EOF |
9812 | cat > conftest.$ac_ext <<EOF |
9516 | #line 9516 "configure" |
9813 | #line 9813 "configure" |
9517 | #include "confdefs.h" |
9814 | #include "confdefs.h" |
9518 | |
9815 | |
9519 | #if HAVE_DLFCN_H |
9816 | #if HAVE_DLFCN_H |
9520 | #include <dlfcn.h> |
9817 | #include <dlfcn.h> |
9521 | #endif |
9818 | #endif |
… | |
… | |
9568 | { |
9865 | { |
9569 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9866 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9570 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9867 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9571 | /* dlclose (self); */ |
9868 | /* dlclose (self); */ |
9572 | } |
9869 | } |
|
|
9870 | else |
|
|
9871 | puts (dlerror ()); |
9573 | |
9872 | |
9574 | exit (status); |
9873 | exit (status); |
9575 | } |
9874 | } |
9576 | EOF |
9875 | EOF |
9577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9578 | (eval $ac_link) 2>&5 |
9877 | (eval $ac_link) 2>&5 |
9579 | ac_status=$? |
9878 | ac_status=$? |
9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9581 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9880 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9582 | (./conftest; exit; ) 2>/dev/null |
9881 | (./conftest; exit; ) >&5 2>/dev/null |
9583 | lt_status=$? |
9882 | lt_status=$? |
9584 | case x$lt_status in |
9883 | case x$lt_status in |
9585 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9884 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9586 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9885 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9587 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
9886 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9588 | esac |
9887 | esac |
9589 | else : |
9888 | else : |
9590 | # compilation failed |
9889 | # compilation failed |
9591 | lt_cv_dlopen_self=no |
9890 | lt_cv_dlopen_self=no |
9592 | fi |
9891 | fi |
… | |
… | |
9597 | fi |
9896 | fi |
9598 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9897 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9599 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
9898 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
9600 | |
9899 | |
9601 | if test "x$lt_cv_dlopen_self" = xyes; then |
9900 | if test "x$lt_cv_dlopen_self" = xyes; then |
9602 | LDFLAGS="$LDFLAGS $link_static_flag" |
9901 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9603 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9902 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9604 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
9903 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
9605 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9904 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9607 | else |
9906 | else |
… | |
… | |
9609 | lt_cv_dlopen_self_static=cross |
9908 | lt_cv_dlopen_self_static=cross |
9610 | else |
9909 | else |
9611 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9910 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9612 | lt_status=$lt_dlunknown |
9911 | lt_status=$lt_dlunknown |
9613 | cat > conftest.$ac_ext <<EOF |
9912 | cat > conftest.$ac_ext <<EOF |
9614 | #line 9614 "configure" |
9913 | #line 9913 "configure" |
9615 | #include "confdefs.h" |
9914 | #include "confdefs.h" |
9616 | |
9915 | |
9617 | #if HAVE_DLFCN_H |
9916 | #if HAVE_DLFCN_H |
9618 | #include <dlfcn.h> |
9917 | #include <dlfcn.h> |
9619 | #endif |
9918 | #endif |
… | |
… | |
9666 | { |
9965 | { |
9667 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9966 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9668 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9967 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9669 | /* dlclose (self); */ |
9968 | /* dlclose (self); */ |
9670 | } |
9969 | } |
|
|
9970 | else |
|
|
9971 | puts (dlerror ()); |
9671 | |
9972 | |
9672 | exit (status); |
9973 | exit (status); |
9673 | } |
9974 | } |
9674 | EOF |
9975 | EOF |
9675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9676 | (eval $ac_link) 2>&5 |
9977 | (eval $ac_link) 2>&5 |
9677 | ac_status=$? |
9978 | ac_status=$? |
9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9679 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9980 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9680 | (./conftest; exit; ) 2>/dev/null |
9981 | (./conftest; exit; ) >&5 2>/dev/null |
9681 | lt_status=$? |
9982 | lt_status=$? |
9682 | case x$lt_status in |
9983 | case x$lt_status in |
9683 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9984 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9684 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9985 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9685 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
9986 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9686 | esac |
9987 | esac |
9687 | else : |
9988 | else : |
9688 | # compilation failed |
9989 | # compilation failed |
9689 | lt_cv_dlopen_self_static=no |
9990 | lt_cv_dlopen_self_static=no |
9690 | fi |
9991 | fi |
… | |
… | |
9713 | *) enable_dlopen_self_static=unknown ;; |
10014 | *) enable_dlopen_self_static=unknown ;; |
9714 | esac |
10015 | esac |
9715 | fi |
10016 | fi |
9716 | |
10017 | |
9717 | |
10018 | |
9718 | # Report which librarie types wil actually be built |
10019 | # Report which library types will actually be built |
9719 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10020 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9720 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10021 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
9721 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10022 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9722 | echo "${ECHO_T}$can_build_shared" >&6; } |
10023 | echo "${ECHO_T}$can_build_shared" >&6; } |
9723 | |
10024 | |
… | |
… | |
9725 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
10026 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
9726 | test "$can_build_shared" = "no" && enable_shared=no |
10027 | test "$can_build_shared" = "no" && enable_shared=no |
9727 | |
10028 | |
9728 | # On AIX, shared libraries and static libraries use the same namespace, and |
10029 | # On AIX, shared libraries and static libraries use the same namespace, and |
9729 | # are all built from PIC. |
10030 | # are all built from PIC. |
9730 | case "$host_os" in |
10031 | case $host_os in |
9731 | aix3*) |
10032 | aix3*) |
9732 | test "$enable_shared" = yes && enable_static=no |
10033 | test "$enable_shared" = yes && enable_static=no |
9733 | if test -n "$RANLIB"; then |
10034 | if test -n "$RANLIB"; then |
9734 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10035 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9735 | postinstall_cmds='$RANLIB $lib' |
10036 | postinstall_cmds='$RANLIB $lib' |
9736 | fi |
10037 | fi |
9737 | ;; |
10038 | ;; |
9738 | |
10039 | |
9739 | aix4*) |
10040 | aix4* | aix5*) |
9740 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10041 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9741 | test "$enable_shared" = yes && enable_static=no |
10042 | test "$enable_shared" = yes && enable_static=no |
9742 | fi |
|
|
9743 | ;; |
|
|
9744 | darwin* | rhapsody*) |
|
|
9745 | if test "$GCC" = yes; then |
|
|
9746 | archive_cmds_need_lc=no |
|
|
9747 | case "$host_os" in |
|
|
9748 | rhapsody* | darwin1.[012]) |
|
|
9749 | allow_undefined_flag='-undefined suppress' |
|
|
9750 | ;; |
|
|
9751 | *) # Darwin 1.3 on |
|
|
9752 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
9753 | allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
9754 | else |
|
|
9755 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
9756 | 10.[012]) |
|
|
9757 | allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
9758 | ;; |
|
|
9759 | 10.*) |
|
|
9760 | allow_undefined_flag='-undefined dynamic_lookup' |
|
|
9761 | ;; |
|
|
9762 | esac |
|
|
9763 | fi |
|
|
9764 | ;; |
|
|
9765 | esac |
|
|
9766 | output_verbose_link_cmd='echo' |
|
|
9767 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
|
|
9768 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
9769 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
9770 | archive_expsym_cmds='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}' |
|
|
9771 | module_expsym_cmds='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}' |
|
|
9772 | hardcode_direct=no |
|
|
9773 | hardcode_automatic=yes |
|
|
9774 | hardcode_shlibpath_var=unsupported |
|
|
9775 | whole_archive_flag_spec='-all_load $convenience' |
|
|
9776 | link_all_deplibs=yes |
|
|
9777 | else |
|
|
9778 | ld_shlibs=no |
|
|
9779 | fi |
10043 | fi |
9780 | ;; |
10044 | ;; |
9781 | esac |
10045 | esac |
9782 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10046 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9783 | echo "${ECHO_T}$enable_shared" >&6; } |
10047 | echo "${ECHO_T}$enable_shared" >&6; } |
… | |
… | |
9800 | setopt NO_GLOB_SUBST |
10064 | setopt NO_GLOB_SUBST |
9801 | fi |
10065 | fi |
9802 | # Now quote all the things that may contain metacharacters while being |
10066 | # Now quote all the things that may contain metacharacters while being |
9803 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10067 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9804 | # variables and quote the copies for generation of the libtool script. |
10068 | # variables and quote the copies for generation of the libtool script. |
9805 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
10069 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9806 | SED SHELL STRIP \ |
10070 | SED SHELL STRIP \ |
9807 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10071 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9808 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10072 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9809 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10073 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9810 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10074 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
… | |
… | |
9904 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10168 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9905 | # General Public License for more details. |
10169 | # General Public License for more details. |
9906 | # |
10170 | # |
9907 | # You should have received a copy of the GNU General Public License |
10171 | # You should have received a copy of the GNU General Public License |
9908 | # along with this program; if not, write to the Free Software |
10172 | # along with this program; if not, write to the Free Software |
9909 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
10173 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9910 | # |
10174 | # |
9911 | # As a special exception to the GNU General Public License, if you |
10175 | # As a special exception to the GNU General Public License, if you |
9912 | # distribute this file as part of a program that contains a |
10176 | # distribute this file as part of a program that contains a |
9913 | # configuration script generated by Autoconf, you may include it under |
10177 | # configuration script generated by Autoconf, you may include it under |
9914 | # the same distribution terms that you use for the rest of that program. |
10178 | # the same distribution terms that you use for the rest of that program. |
9915 | |
10179 | |
9916 | # A sed program that does not truncate output. |
10180 | # A sed program that does not truncate output. |
9917 | SED=$lt_SED |
10181 | SED=$lt_SED |
9918 | |
10182 | |
9919 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10183 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9920 | Xsed="$SED -e s/^X//" |
10184 | Xsed="$SED -e 1s/^X//" |
9921 | |
10185 | |
9922 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10186 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9923 | # if CDPATH is set. |
10187 | # if CDPATH is set. |
9924 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
10188 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9925 | |
10189 | |
9926 | # The names of the tagged configurations supported by this script. |
10190 | # The names of the tagged configurations supported by this script. |
9927 | available_tags= |
10191 | available_tags= |
9928 | |
10192 | |
9929 | # ### BEGIN LIBTOOL CONFIG |
10193 | # ### BEGIN LIBTOOL CONFIG |
… | |
… | |
9949 | fast_install=$enable_fast_install |
10213 | fast_install=$enable_fast_install |
9950 | |
10214 | |
9951 | # The host system. |
10215 | # The host system. |
9952 | host_alias=$host_alias |
10216 | host_alias=$host_alias |
9953 | host=$host |
10217 | host=$host |
|
|
10218 | host_os=$host_os |
|
|
10219 | |
|
|
10220 | # The build system. |
|
|
10221 | build_alias=$build_alias |
|
|
10222 | build=$build |
|
|
10223 | build_os=$build_os |
9954 | |
10224 | |
9955 | # An echo program that does not interpret backslashes. |
10225 | # An echo program that does not interpret backslashes. |
9956 | echo=$lt_echo |
10226 | echo=$lt_echo |
9957 | |
10227 | |
9958 | # The archiver. |
10228 | # The archiver. |
… | |
… | |
9960 | AR_FLAGS=$lt_AR_FLAGS |
10230 | AR_FLAGS=$lt_AR_FLAGS |
9961 | |
10231 | |
9962 | # A C compiler. |
10232 | # A C compiler. |
9963 | LTCC=$lt_LTCC |
10233 | LTCC=$lt_LTCC |
9964 | |
10234 | |
|
|
10235 | # LTCC compiler flags. |
|
|
10236 | LTCFLAGS=$lt_LTCFLAGS |
|
|
10237 | |
9965 | # A language-specific compiler. |
10238 | # A language-specific compiler. |
9966 | CC=$lt_compiler |
10239 | CC=$lt_compiler |
9967 | |
10240 | |
9968 | # Is the compiler the GNU C compiler? |
10241 | # Is the compiler the GNU C compiler? |
9969 | with_gcc=$GCC |
10242 | with_gcc=$GCC |
… | |
… | |
10010 | |
10283 | |
10011 | # Old archive suffix (normally "a"). |
10284 | # Old archive suffix (normally "a"). |
10012 | libext="$libext" |
10285 | libext="$libext" |
10013 | |
10286 | |
10014 | # Shared library suffix (normally ".so"). |
10287 | # Shared library suffix (normally ".so"). |
10015 | shrext='$shrext' |
10288 | shrext_cmds='$shrext_cmds' |
10016 | |
10289 | |
10017 | # Executable file suffix (normally ""). |
10290 | # Executable file suffix (normally ""). |
10018 | exeext="$exeext" |
10291 | exeext="$exeext" |
10019 | |
10292 | |
10020 | # Additional compiler flags for building library objects. |
10293 | # Additional compiler flags for building library objects. |
… | |
… | |
10025 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10298 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10026 | |
10299 | |
10027 | # Does compiler simultaneously support -c and -o options? |
10300 | # Does compiler simultaneously support -c and -o options? |
10028 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10301 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10029 | |
10302 | |
10030 | # Must we lock files when doing compilation ? |
10303 | # Must we lock files when doing compilation? |
10031 | need_locks=$lt_need_locks |
10304 | need_locks=$lt_need_locks |
10032 | |
10305 | |
10033 | # Do we need the lib prefix for modules? |
10306 | # Do we need the lib prefix for modules? |
10034 | need_lib_prefix=$need_lib_prefix |
10307 | need_lib_prefix=$need_lib_prefix |
10035 | |
10308 | |
… | |
… | |
10289 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10562 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10290 | else |
10563 | else |
10291 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10564 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10292 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10565 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10293 | fi |
10566 | fi |
|
|
10567 | fi |
|
|
10568 | if test -z "$LTCFLAGS"; then |
|
|
10569 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10294 | fi |
10570 | fi |
10295 | |
10571 | |
10296 | # Extract list of available tagged configurations in $ofile. |
10572 | # Extract list of available tagged configurations in $ofile. |
10297 | # Note that this assumes the entire list is on one line. |
10573 | # Note that this assumes the entire list is on one line. |
10298 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10574 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
… | |
… | |
10320 | if test -n "$tagname"; then |
10596 | if test -n "$tagname"; then |
10321 | echo appending configuration tag \"$tagname\" to $ofile |
10597 | echo appending configuration tag \"$tagname\" to $ofile |
10322 | |
10598 | |
10323 | case $tagname in |
10599 | case $tagname in |
10324 | CXX) |
10600 | CXX) |
10325 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
10601 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
10602 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
10603 | (test "X$CXX" != "Xg++"))) ; then |
10326 | ac_ext=cpp |
10604 | ac_ext=cpp |
10327 | ac_cpp='$CXXCPP $CPPFLAGS' |
10605 | ac_cpp='$CXXCPP $CPPFLAGS' |
10328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10606 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10607 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10608 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
… | |
… | |
10340 | hardcode_direct_CXX=no |
10618 | hardcode_direct_CXX=no |
10341 | hardcode_libdir_flag_spec_CXX= |
10619 | hardcode_libdir_flag_spec_CXX= |
10342 | hardcode_libdir_flag_spec_ld_CXX= |
10620 | hardcode_libdir_flag_spec_ld_CXX= |
10343 | hardcode_libdir_separator_CXX= |
10621 | hardcode_libdir_separator_CXX= |
10344 | hardcode_minus_L_CXX=no |
10622 | hardcode_minus_L_CXX=no |
|
|
10623 | hardcode_shlibpath_var_CXX=unsupported |
10345 | hardcode_automatic_CXX=no |
10624 | hardcode_automatic_CXX=no |
10346 | module_cmds_CXX= |
10625 | module_cmds_CXX= |
10347 | module_expsym_cmds_CXX= |
10626 | module_expsym_cmds_CXX= |
10348 | link_all_deplibs_CXX=unknown |
10627 | link_all_deplibs_CXX=unknown |
10349 | old_archive_cmds_CXX=$old_archive_cmds |
10628 | old_archive_cmds_CXX=$old_archive_cmds |
… | |
… | |
10357 | predeps_CXX= |
10636 | predeps_CXX= |
10358 | postdeps_CXX= |
10637 | postdeps_CXX= |
10359 | compiler_lib_search_path_CXX= |
10638 | compiler_lib_search_path_CXX= |
10360 | |
10639 | |
10361 | # Source file extension for C++ test sources. |
10640 | # Source file extension for C++ test sources. |
10362 | ac_ext=cc |
10641 | ac_ext=cpp |
10363 | |
10642 | |
10364 | # Object file extension for compiled C++ test sources. |
10643 | # Object file extension for compiled C++ test sources. |
10365 | objext=o |
10644 | objext=o |
10366 | objext_CXX=$objext |
10645 | objext_CXX=$objext |
10367 | |
10646 | |
10368 | # Code to be used in simple compile tests |
10647 | # Code to be used in simple compile tests |
10369 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10648 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10370 | |
10649 | |
10371 | # Code to be used in simple link tests |
10650 | # Code to be used in simple link tests |
10372 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
10651 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10373 | |
10652 | |
10374 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10653 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10375 | |
10654 | |
10376 | # If no C compiler was specified, use CC. |
10655 | # If no C compiler was specified, use CC. |
10377 | LTCC=${LTCC-"$CC"} |
10656 | LTCC=${LTCC-"$CC"} |
10378 | |
10657 | |
|
|
10658 | # If no C compiler flags were specified, use CFLAGS. |
|
|
10659 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
10660 | |
10379 | # Allow CC to be a program name with arguments. |
10661 | # Allow CC to be a program name with arguments. |
10380 | compiler=$CC |
10662 | compiler=$CC |
|
|
10663 | |
|
|
10664 | |
|
|
10665 | # save warnings/boilerplate of simple test code |
|
|
10666 | ac_outfile=conftest.$ac_objext |
|
|
10667 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
10668 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
10669 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
10670 | $rm conftest* |
|
|
10671 | |
|
|
10672 | ac_outfile=conftest.$ac_objext |
|
|
10673 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
10674 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
10675 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
10676 | $rm conftest* |
10381 | |
10677 | |
10382 | |
10678 | |
10383 | # Allow CC to be a program name with arguments. |
10679 | # Allow CC to be a program name with arguments. |
10384 | lt_save_CC=$CC |
10680 | lt_save_CC=$CC |
10385 | lt_save_LD=$LD |
10681 | lt_save_LD=$LD |
… | |
… | |
10388 | lt_save_with_gnu_ld=$with_gnu_ld |
10684 | lt_save_with_gnu_ld=$with_gnu_ld |
10389 | lt_save_path_LD=$lt_cv_path_LD |
10685 | lt_save_path_LD=$lt_cv_path_LD |
10390 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10686 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10391 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10687 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10392 | else |
10688 | else |
10393 | unset lt_cv_prog_gnu_ld |
10689 | $as_unset lt_cv_prog_gnu_ld |
10394 | fi |
10690 | fi |
10395 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10691 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10396 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10692 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10397 | else |
10693 | else |
10398 | unset lt_cv_path_LD |
10694 | $as_unset lt_cv_path_LD |
10399 | fi |
10695 | fi |
10400 | test -z "${LDCXX+set}" || LD=$LDCXX |
10696 | test -z "${LDCXX+set}" || LD=$LDCXX |
10401 | CC=${CXX-"c++"} |
10697 | CC=${CXX-"c++"} |
10402 | compiler=$CC |
10698 | compiler=$CC |
10403 | compiler_CXX=$CC |
10699 | compiler_CXX=$CC |
10404 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
10700 | for cc_temp in $compiler""; do |
|
|
10701 | case $cc_temp in |
|
|
10702 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
10703 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
10704 | \-*) ;; |
|
|
10705 | *) break;; |
|
|
10706 | esac |
|
|
10707 | done |
|
|
10708 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
10709 | |
10405 | |
10710 | |
10406 | # We don't want -fno-exception wen compiling C++ code, so set the |
10711 | # We don't want -fno-exception wen compiling C++ code, so set the |
10407 | # no_builtin_flag separately |
10712 | # no_builtin_flag separately |
10408 | if test "$GXX" = yes; then |
10713 | if test "$GXX" = yes; then |
10409 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10714 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
… | |
… | |
10470 | IFS="$lt_save_ifs" |
10775 | IFS="$lt_save_ifs" |
10471 | test -z "$ac_dir" && ac_dir=. |
10776 | test -z "$ac_dir" && ac_dir=. |
10472 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10777 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10473 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10778 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10474 | # Check to see if the program is GNU ld. I'd rather use --version, |
10779 | # Check to see if the program is GNU ld. I'd rather use --version, |
10475 | # but apparently some GNU ld's only accept -v. |
10780 | # but apparently some variants of GNU ld only accept -v. |
10476 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10781 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10477 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10782 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10478 | *GNU* | *'with BFD'*) |
10783 | *GNU* | *'with BFD'*) |
10479 | test "$with_gnu_ld" != no && break |
10784 | test "$with_gnu_ld" != no && break |
10480 | ;; |
10785 | ;; |
… | |
… | |
10504 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10809 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10505 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
10810 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
10506 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10811 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10508 | else |
10813 | else |
10509 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
10814 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10510 | case `$LD -v 2>&1 </dev/null` in |
10815 | case `$LD -v 2>&1 </dev/null` in |
10511 | *GNU* | *'with BFD'*) |
10816 | *GNU* | *'with BFD'*) |
10512 | lt_cv_prog_gnu_ld=yes |
10817 | lt_cv_prog_gnu_ld=yes |
10513 | ;; |
10818 | ;; |
10514 | *) |
10819 | *) |
… | |
… | |
10595 | aix_use_runtimelinking=yes |
10900 | aix_use_runtimelinking=yes |
10596 | break |
10901 | break |
10597 | ;; |
10902 | ;; |
10598 | esac |
10903 | esac |
10599 | done |
10904 | done |
|
|
10905 | ;; |
10600 | esac |
10906 | esac |
10601 | |
10907 | |
10602 | exp_sym_flag='-bexport' |
10908 | exp_sym_flag='-bexport' |
10603 | no_entry_flag='-bnoentry' |
10909 | no_entry_flag='-bnoentry' |
10604 | fi |
10910 | fi |
… | |
… | |
10613 | hardcode_direct_CXX=yes |
10919 | hardcode_direct_CXX=yes |
10614 | hardcode_libdir_separator_CXX=':' |
10920 | hardcode_libdir_separator_CXX=':' |
10615 | link_all_deplibs_CXX=yes |
10921 | link_all_deplibs_CXX=yes |
10616 | |
10922 | |
10617 | if test "$GXX" = yes; then |
10923 | if test "$GXX" = yes; then |
10618 | case $host_os in aix4.012|aix4.012.*) |
10924 | case $host_os in aix4.[012]|aix4.[012].*) |
10619 | # We only want to do this on AIX 4.2 and lower, the check |
10925 | # We only want to do this on AIX 4.2 and lower, the check |
10620 | # below for broken collect2 doesn't work under 4.3+ |
10926 | # below for broken collect2 doesn't work under 4.3+ |
10621 | collect2name=`${CC} -print-prog-name=collect2` |
10927 | collect2name=`${CC} -print-prog-name=collect2` |
10622 | if test -f "$collect2name" && \ |
10928 | if test -f "$collect2name" && \ |
10623 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10929 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
… | |
… | |
10632 | # to unsupported forces relinking |
10938 | # to unsupported forces relinking |
10633 | hardcode_minus_L_CXX=yes |
10939 | hardcode_minus_L_CXX=yes |
10634 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10940 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10635 | hardcode_libdir_separator_CXX= |
10941 | hardcode_libdir_separator_CXX= |
10636 | fi |
10942 | fi |
|
|
10943 | ;; |
10637 | esac |
10944 | esac |
10638 | shared_flag='-shared' |
10945 | shared_flag='-shared' |
|
|
10946 | if test "$aix_use_runtimelinking" = yes; then |
|
|
10947 | shared_flag="$shared_flag "'${wl}-G' |
|
|
10948 | fi |
10639 | else |
10949 | else |
10640 | # not using gcc |
10950 | # not using gcc |
10641 | if test "$host_cpu" = ia64; then |
10951 | if test "$host_cpu" = ia64; then |
10642 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10952 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10643 | # chokes on -Wl,-G. The following line is correct: |
10953 | # chokes on -Wl,-G. The following line is correct: |
… | |
… | |
10709 | conftest$ac_exeext conftest.$ac_ext |
11019 | conftest$ac_exeext conftest.$ac_ext |
10710 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11020 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10711 | |
11021 | |
10712 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11022 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10713 | |
11023 | |
10714 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
11024 | archive_expsym_cmds_CXX="\$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" |
10715 | else |
11025 | else |
10716 | if test "$host_cpu" = ia64; then |
11026 | if test "$host_cpu" = ia64; then |
10717 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11027 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10718 | allow_undefined_flag_CXX="-z nodefs" |
11028 | allow_undefined_flag_CXX="-z nodefs" |
10719 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
11029 | archive_expsym_cmds_CXX="\$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" |
10720 | else |
11030 | else |
10721 | # Determine the default libpath from the value encoded in an empty executable. |
11031 | # Determine the default libpath from the value encoded in an empty executable. |
10722 | cat >conftest.$ac_ext <<_ACEOF |
11032 | cat >conftest.$ac_ext <<_ACEOF |
10723 | /* confdefs.h. */ |
11033 | /* confdefs.h. */ |
10724 | _ACEOF |
11034 | _ACEOF |
… | |
… | |
10772 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11082 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10773 | # Warning - without using the other run time loading flags, |
11083 | # Warning - without using the other run time loading flags, |
10774 | # -berok will link without error, but may produce a broken library. |
11084 | # -berok will link without error, but may produce a broken library. |
10775 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11085 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10776 | allow_undefined_flag_CXX=' ${wl}-berok' |
11086 | allow_undefined_flag_CXX=' ${wl}-berok' |
10777 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
10778 | always_export_symbols_CXX=yes |
|
|
10779 | # Exported symbols can be pulled into shared objects from archives |
11087 | # Exported symbols can be pulled into shared objects from archives |
10780 | whole_archive_flag_spec_CXX=' ' |
11088 | whole_archive_flag_spec_CXX='$convenience' |
10781 | archive_cmds_need_lc_CXX=yes |
11089 | archive_cmds_need_lc_CXX=yes |
10782 | # This is similar to how AIX traditionally builds it's shared libraries. |
11090 | # This is similar to how AIX traditionally builds its shared libraries. |
10783 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
11091 | archive_expsym_cmds_CXX="\$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' |
10784 | fi |
11092 | fi |
10785 | fi |
11093 | fi |
10786 | ;; |
11094 | ;; |
|
|
11095 | |
|
|
11096 | beos*) |
|
|
11097 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
11098 | allow_undefined_flag_CXX=unsupported |
|
|
11099 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
11100 | # support --undefined. This deserves some investigation. FIXME |
|
|
11101 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
11102 | else |
|
|
11103 | ld_shlibs_CXX=no |
|
|
11104 | fi |
|
|
11105 | ;; |
|
|
11106 | |
10787 | chorus*) |
11107 | chorus*) |
10788 | case $cc_basename in |
11108 | case $cc_basename in |
10789 | *) |
11109 | *) |
10790 | # FIXME: insert proper C++ library support |
11110 | # FIXME: insert proper C++ library support |
10791 | ld_shlibs_CXX=no |
11111 | ld_shlibs_CXX=no |
… | |
… | |
10800 | allow_undefined_flag_CXX=unsupported |
11120 | allow_undefined_flag_CXX=unsupported |
10801 | always_export_symbols_CXX=no |
11121 | always_export_symbols_CXX=no |
10802 | enable_shared_with_static_runtimes_CXX=yes |
11122 | enable_shared_with_static_runtimes_CXX=yes |
10803 | |
11123 | |
10804 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11124 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10805 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
11125 | archive_cmds_CXX='$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' |
10806 | # If the export-symbols file already is a .def file (1st line |
11126 | # If the export-symbols file already is a .def file (1st line |
10807 | # is EXPORTS), use it as is; otherwise, prepend... |
11127 | # is EXPORTS), use it as is; otherwise, prepend... |
10808 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11128 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10809 | cp $export_symbols $output_objdir/$soname.def; |
11129 | cp $export_symbols $output_objdir/$soname.def; |
10810 | else |
11130 | else |
10811 | echo EXPORTS > $output_objdir/$soname.def; |
11131 | echo EXPORTS > $output_objdir/$soname.def; |
10812 | cat $export_symbols >> $output_objdir/$soname.def; |
11132 | cat $export_symbols >> $output_objdir/$soname.def; |
10813 | fi~ |
11133 | fi~ |
10814 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
11134 | $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' |
10815 | else |
11135 | else |
10816 | ld_shlibs_CXX=no |
11136 | ld_shlibs_CXX=no |
10817 | fi |
11137 | fi |
10818 | ;; |
11138 | ;; |
10819 | |
|
|
10820 | darwin* | rhapsody*) |
11139 | darwin* | rhapsody*) |
10821 | if test "$GXX" = yes; then |
|
|
10822 | archive_cmds_need_lc_CXX=no |
|
|
10823 | case "$host_os" in |
11140 | case $host_os in |
10824 | rhapsody* | darwin1.[012]) |
11141 | rhapsody* | darwin1.[012]) |
10825 | allow_undefined_flag_CXX='-undefined suppress' |
11142 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10826 | ;; |
11143 | ;; |
10827 | *) # Darwin 1.3 on |
11144 | *) # Darwin 1.3 on |
10828 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11145 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10829 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
11146 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
11147 | else |
|
|
11148 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
11149 | 10.[012]) |
|
|
11150 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
11151 | ;; |
|
|
11152 | 10.*) |
|
|
11153 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
|
|
11154 | ;; |
|
|
11155 | esac |
|
|
11156 | fi |
|
|
11157 | ;; |
|
|
11158 | esac |
|
|
11159 | archive_cmds_need_lc_CXX=no |
|
|
11160 | hardcode_direct_CXX=no |
|
|
11161 | hardcode_automatic_CXX=yes |
|
|
11162 | hardcode_shlibpath_var_CXX=unsupported |
|
|
11163 | whole_archive_flag_spec_CXX='' |
|
|
11164 | link_all_deplibs_CXX=yes |
|
|
11165 | |
|
|
11166 | if test "$GXX" = yes ; then |
|
|
11167 | lt_int_apple_cc_single_mod=no |
|
|
11168 | output_verbose_link_cmd='echo' |
|
|
11169 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
|
|
11170 | lt_int_apple_cc_single_mod=yes |
|
|
11171 | fi |
|
|
11172 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
11173 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10830 | else |
11174 | else |
10831 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11175 | archive_cmds_CXX='$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' |
10832 | 10.[012]) |
11176 | fi |
10833 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
11177 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
11178 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
11179 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
11180 | archive_expsym_cmds_CXX='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}' |
|
|
11181 | else |
|
|
11182 | archive_expsym_cmds_CXX='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}' |
|
|
11183 | fi |
|
|
11184 | module_expsym_cmds_CXX='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}' |
|
|
11185 | else |
|
|
11186 | case $cc_basename in |
|
|
11187 | xlc*) |
|
|
11188 | output_verbose_link_cmd='echo' |
|
|
11189 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
11190 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
11191 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
11192 | archive_expsym_cmds_CXX='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}' |
|
|
11193 | module_expsym_cmds_CXX='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}' |
10834 | ;; |
11194 | ;; |
10835 | 10.*) |
11195 | *) |
10836 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
11196 | ld_shlibs_CXX=no |
10837 | ;; |
11197 | ;; |
10838 | esac |
11198 | esac |
10839 | fi |
11199 | fi |
10840 | ;; |
11200 | ;; |
10841 | esac |
|
|
10842 | lt_int_apple_cc_single_mod=no |
|
|
10843 | output_verbose_link_cmd='echo' |
|
|
10844 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
10845 | lt_int_apple_cc_single_mod=yes |
|
|
10846 | fi |
|
|
10847 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
10848 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
10849 | else |
|
|
10850 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
10851 | fi |
|
|
10852 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
10853 | |
|
|
10854 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
10855 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
10856 | archive_expsym_cmds_CXX='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}' |
|
|
10857 | else |
|
|
10858 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
10859 | fi |
|
|
10860 | module_expsym_cmds_CXX='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}' |
|
|
10861 | hardcode_direct_CXX=no |
|
|
10862 | hardcode_automatic_CXX=yes |
|
|
10863 | hardcode_shlibpath_var_CXX=unsupported |
|
|
10864 | whole_archive_flag_spec_CXX='-all_load $convenience' |
|
|
10865 | link_all_deplibs_CXX=yes |
|
|
10866 | else |
|
|
10867 | ld_shlibs_CXX=no |
|
|
10868 | fi |
|
|
10869 | ;; |
|
|
10870 | |
11201 | |
10871 | dgux*) |
11202 | dgux*) |
10872 | case $cc_basename in |
11203 | case $cc_basename in |
10873 | ec++) |
11204 | ec++*) |
10874 | # FIXME: insert proper C++ library support |
11205 | # FIXME: insert proper C++ library support |
10875 | ld_shlibs_CXX=no |
11206 | ld_shlibs_CXX=no |
10876 | ;; |
11207 | ;; |
10877 | ghcx) |
11208 | ghcx*) |
10878 | # Green Hills C++ Compiler |
11209 | # Green Hills C++ Compiler |
10879 | # FIXME: insert proper C++ library support |
11210 | # FIXME: insert proper C++ library support |
10880 | ld_shlibs_CXX=no |
11211 | ld_shlibs_CXX=no |
10881 | ;; |
11212 | ;; |
10882 | *) |
11213 | *) |
10883 | # FIXME: insert proper C++ library support |
11214 | # FIXME: insert proper C++ library support |
10884 | ld_shlibs_CXX=no |
11215 | ld_shlibs_CXX=no |
10885 | ;; |
11216 | ;; |
10886 | esac |
11217 | esac |
10887 | ;; |
11218 | ;; |
10888 | freebsd12*) |
11219 | freebsd[12]*) |
10889 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11220 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10890 | ld_shlibs_CXX=no |
11221 | ld_shlibs_CXX=no |
10891 | ;; |
11222 | ;; |
10892 | freebsd-elf*) |
11223 | freebsd-elf*) |
10893 | archive_cmds_need_lc_CXX=no |
11224 | archive_cmds_need_lc_CXX=no |
10894 | ;; |
11225 | ;; |
10895 | freebsd* | kfreebsd*-gnu) |
11226 | freebsd* | dragonfly*) |
10896 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11227 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10897 | # conventions |
11228 | # conventions |
10898 | ld_shlibs_CXX=yes |
11229 | ld_shlibs_CXX=yes |
10899 | ;; |
11230 | ;; |
10900 | gnu*) |
11231 | gnu*) |
… | |
… | |
10907 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11238 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10908 | # but as the default |
11239 | # but as the default |
10909 | # location of the library. |
11240 | # location of the library. |
10910 | |
11241 | |
10911 | case $cc_basename in |
11242 | case $cc_basename in |
10912 | CC) |
11243 | CC*) |
10913 | # FIXME: insert proper C++ library support |
11244 | # FIXME: insert proper C++ library support |
10914 | ld_shlibs_CXX=no |
11245 | ld_shlibs_CXX=no |
10915 | ;; |
11246 | ;; |
10916 | aCC) |
11247 | aCC*) |
10917 | archive_cmds_CXX='$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' |
11248 | archive_cmds_CXX='$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' |
10918 | # Commands to make compiler produce verbose output that lists |
11249 | # Commands to make compiler produce verbose output that lists |
10919 | # what "hidden" libraries, object files and flags are used when |
11250 | # what "hidden" libraries, object files and flags are used when |
10920 | # linking a shared library. |
11251 | # linking a shared library. |
10921 | # |
11252 | # |
10922 | # There doesn't appear to be a way to prevent this compiler from |
11253 | # There doesn't appear to be a way to prevent this compiler from |
10923 | # explicitly linking system object files so we need to strip them |
11254 | # explicitly linking system object files so we need to strip them |
10924 | # from the output so that they don't get included in the library |
11255 | # from the output so that they don't get included in the library |
10925 | # dependencies. |
11256 | # dependencies. |
10926 | 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' |
11257 | 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' |
10927 | ;; |
11258 | ;; |
10928 | *) |
11259 | *) |
10929 | if test "$GXX" = yes; then |
11260 | if test "$GXX" = yes; then |
10930 | archive_cmds_CXX='$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' |
11261 | archive_cmds_CXX='$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' |
10931 | else |
11262 | else |
… | |
… | |
10935 | ;; |
11266 | ;; |
10936 | esac |
11267 | esac |
10937 | ;; |
11268 | ;; |
10938 | hpux10*|hpux11*) |
11269 | hpux10*|hpux11*) |
10939 | if test $with_gnu_ld = no; then |
11270 | if test $with_gnu_ld = no; then |
|
|
11271 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
11272 | hardcode_libdir_separator_CXX=: |
|
|
11273 | |
10940 | case "$host_cpu" in |
11274 | case $host_cpu in |
10941 | hppa*64*) |
11275 | hppa*64*|ia64*) |
10942 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
10943 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11276 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10944 | hardcode_libdir_separator_CXX=: |
|
|
10945 | ;; |
|
|
10946 | ia64*) |
|
|
10947 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
10948 | ;; |
11277 | ;; |
10949 | *) |
11278 | *) |
10950 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
10951 | hardcode_libdir_separator_CXX=: |
|
|
10952 | export_dynamic_flag_spec_CXX='${wl}-E' |
11279 | export_dynamic_flag_spec_CXX='${wl}-E' |
10953 | ;; |
11280 | ;; |
10954 | esac |
11281 | esac |
10955 | fi |
11282 | fi |
10956 | case "$host_cpu" in |
11283 | case $host_cpu in |
10957 | hppa*64*) |
11284 | hppa*64*|ia64*) |
10958 | hardcode_direct_CXX=no |
11285 | hardcode_direct_CXX=no |
10959 | hardcode_shlibpath_var_CXX=no |
11286 | hardcode_shlibpath_var_CXX=no |
10960 | ;; |
|
|
10961 | ia64*) |
|
|
10962 | hardcode_direct_CXX=no |
|
|
10963 | hardcode_shlibpath_var_CXX=no |
|
|
10964 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
10965 | # but as the default |
|
|
10966 | # location of the library. |
|
|
10967 | ;; |
11287 | ;; |
10968 | *) |
11288 | *) |
10969 | hardcode_direct_CXX=yes |
11289 | hardcode_direct_CXX=yes |
10970 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11290 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10971 | # but as the default |
11291 | # but as the default |
10972 | # location of the library. |
11292 | # location of the library. |
10973 | ;; |
11293 | ;; |
10974 | esac |
11294 | esac |
10975 | |
11295 | |
10976 | case $cc_basename in |
11296 | case $cc_basename in |
10977 | CC) |
11297 | CC*) |
10978 | # FIXME: insert proper C++ library support |
11298 | # FIXME: insert proper C++ library support |
10979 | ld_shlibs_CXX=no |
11299 | ld_shlibs_CXX=no |
10980 | ;; |
11300 | ;; |
10981 | aCC) |
11301 | aCC*) |
10982 | case "$host_cpu" in |
11302 | case $host_cpu in |
10983 | hppa*64*|ia64*) |
11303 | hppa*64*) |
10984 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
11304 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
11305 | ;; |
|
|
11306 | ia64*) |
|
|
11307 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10985 | ;; |
11308 | ;; |
10986 | *) |
11309 | *) |
10987 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11310 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10988 | ;; |
11311 | ;; |
10989 | esac |
11312 | esac |
… | |
… | |
10998 | 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' |
11321 | 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' |
10999 | ;; |
11322 | ;; |
11000 | *) |
11323 | *) |
11001 | if test "$GXX" = yes; then |
11324 | if test "$GXX" = yes; then |
11002 | if test $with_gnu_ld = no; then |
11325 | if test $with_gnu_ld = no; then |
11003 | case "$host_cpu" in |
11326 | case $host_cpu in |
11004 | ia64*|hppa*64*) |
11327 | hppa*64*) |
11005 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
11328 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
11329 | ;; |
|
|
11330 | ia64*) |
|
|
11331 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11006 | ;; |
11332 | ;; |
11007 | *) |
11333 | *) |
11008 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11334 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11009 | ;; |
11335 | ;; |
11010 | esac |
11336 | esac |
… | |
… | |
11014 | ld_shlibs_CXX=no |
11340 | ld_shlibs_CXX=no |
11015 | fi |
11341 | fi |
11016 | ;; |
11342 | ;; |
11017 | esac |
11343 | esac |
11018 | ;; |
11344 | ;; |
|
|
11345 | interix3*) |
|
|
11346 | hardcode_direct_CXX=no |
|
|
11347 | hardcode_shlibpath_var_CXX=no |
|
|
11348 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
11349 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
11350 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
11351 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
11352 | # default) and relocated if they conflict, which is a slow very memory |
|
|
11353 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
11354 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
11355 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
11356 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
11357 | archive_expsym_cmds_CXX='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' |
|
|
11358 | ;; |
11019 | irix5* | irix6*) |
11359 | irix5* | irix6*) |
11020 | case $cc_basename in |
11360 | case $cc_basename in |
11021 | CC) |
11361 | CC*) |
11022 | # SGI C++ |
11362 | # SGI C++ |
11023 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
11363 | archive_cmds_CXX='$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' |
11024 | |
11364 | |
11025 | # Archives containing C++ object files must be created using |
11365 | # Archives containing C++ object files must be created using |
11026 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11366 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11027 | # necessary to make sure instantiated templates are included |
11367 | # necessary to make sure instantiated templates are included |
11028 | # in the archive. |
11368 | # in the archive. |
11029 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11369 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11030 | ;; |
11370 | ;; |
11031 | *) |
11371 | *) |
11032 | if test "$GXX" = yes; then |
11372 | if test "$GXX" = yes; then |
11033 | if test "$with_gnu_ld" = no; then |
11373 | if test "$with_gnu_ld" = no; then |
11034 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
11374 | archive_cmds_CXX='$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' |
11035 | else |
11375 | else |
11036 | archive_cmds_CXX='$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' |
11376 | archive_cmds_CXX='$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' |
11037 | fi |
11377 | fi |
11038 | fi |
11378 | fi |
11039 | link_all_deplibs_CXX=yes |
11379 | link_all_deplibs_CXX=yes |
11040 | ;; |
11380 | ;; |
11041 | esac |
11381 | esac |
11042 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11382 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11043 | hardcode_libdir_separator_CXX=: |
11383 | hardcode_libdir_separator_CXX=: |
11044 | ;; |
11384 | ;; |
11045 | linux*) |
11385 | linux* | k*bsd*-gnu) |
11046 | case $cc_basename in |
11386 | case $cc_basename in |
11047 | KCC) |
11387 | KCC*) |
11048 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11388 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11049 | |
11389 | |
11050 | # KCC will only create a shared library if the output file |
11390 | # KCC will only create a shared library if the output file |
11051 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11391 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11052 | # to its proper name (with version) after linking. |
11392 | # to its proper name (with version) after linking. |
… | |
… | |
11067 | |
11407 | |
11068 | # Archives containing C++ object files must be created using |
11408 | # Archives containing C++ object files must be created using |
11069 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11409 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11070 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11410 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11071 | ;; |
11411 | ;; |
11072 | icpc) |
11412 | icpc*) |
11073 | # Intel C++ |
11413 | # Intel C++ |
11074 | with_gnu_ld=yes |
11414 | with_gnu_ld=yes |
|
|
11415 | # version 8.0 and above of icpc choke on multiply defined symbols |
|
|
11416 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
|
|
11417 | # earlier do not add the objects themselves. |
|
|
11418 | case `$CC -V 2>&1` in |
|
|
11419 | *"Version 7."*) |
|
|
11420 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
11421 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
11422 | ;; |
|
|
11423 | *) # Version 8.0 or newer |
|
|
11424 | tmp_idyn= |
|
|
11425 | case $host_cpu in |
|
|
11426 | ia64*) tmp_idyn=' -i_dynamic';; |
|
|
11427 | esac |
|
|
11428 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
11429 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
11430 | ;; |
|
|
11431 | esac |
11075 | archive_cmds_need_lc_CXX=no |
11432 | archive_cmds_need_lc_CXX=no |
11076 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
11077 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
11078 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11433 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11079 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11434 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11080 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11435 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11081 | ;; |
11436 | ;; |
|
|
11437 | pgCC*) |
|
|
11438 | # Portland Group C++ compiler |
|
|
11439 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
|
|
11440 | archive_expsym_cmds_CXX='$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' |
|
|
11441 | |
|
|
11442 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
|
11443 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
11444 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
11445 | ;; |
11082 | cxx) |
11446 | cxx*) |
11083 | # Compaq C++ |
11447 | # Compaq C++ |
11084 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11448 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11085 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
11449 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
11086 | |
11450 | |
11087 | runpath_var=LD_RUN_PATH |
11451 | runpath_var=LD_RUN_PATH |
… | |
… | |
11108 | # FIXME: insert proper C++ library support |
11472 | # FIXME: insert proper C++ library support |
11109 | ld_shlibs_CXX=no |
11473 | ld_shlibs_CXX=no |
11110 | ;; |
11474 | ;; |
11111 | mvs*) |
11475 | mvs*) |
11112 | case $cc_basename in |
11476 | case $cc_basename in |
11113 | cxx) |
11477 | cxx*) |
11114 | # FIXME: insert proper C++ library support |
11478 | # FIXME: insert proper C++ library support |
11115 | ld_shlibs_CXX=no |
11479 | ld_shlibs_CXX=no |
11116 | ;; |
11480 | ;; |
11117 | *) |
11481 | *) |
11118 | # FIXME: insert proper C++ library support |
11482 | # FIXME: insert proper C++ library support |
11119 | ld_shlibs_CXX=no |
11483 | ld_shlibs_CXX=no |
11120 | ;; |
11484 | ;; |
11121 | esac |
11485 | esac |
11122 | ;; |
11486 | ;; |
11123 | netbsd*) |
11487 | netbsd* | netbsdelf*-gnu) |
11124 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11488 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11125 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11489 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11126 | wlarc= |
11490 | wlarc= |
11127 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11491 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11128 | hardcode_direct_CXX=yes |
11492 | hardcode_direct_CXX=yes |
11129 | hardcode_shlibpath_var_CXX=no |
11493 | hardcode_shlibpath_var_CXX=no |
11130 | fi |
11494 | fi |
11131 | # Workaround some broken pre-1.5 toolchains |
11495 | # Workaround some broken pre-1.5 toolchains |
11132 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11496 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11133 | ;; |
11497 | ;; |
|
|
11498 | openbsd2*) |
|
|
11499 | # C++ shared libraries are fairly broken |
|
|
11500 | ld_shlibs_CXX=no |
|
|
11501 | ;; |
|
|
11502 | openbsd*) |
|
|
11503 | hardcode_direct_CXX=yes |
|
|
11504 | hardcode_shlibpath_var_CXX=no |
|
|
11505 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
11506 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
11507 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
11508 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
|
|
11509 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
11510 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
11511 | fi |
|
|
11512 | output_verbose_link_cmd='echo' |
|
|
11513 | ;; |
11134 | osf3*) |
11514 | osf3*) |
11135 | case $cc_basename in |
11515 | case $cc_basename in |
11136 | KCC) |
11516 | KCC*) |
11137 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11517 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11138 | |
11518 | |
11139 | # KCC will only create a shared library if the output file |
11519 | # KCC will only create a shared library if the output file |
11140 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11520 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11141 | # to its proper name (with version) after linking. |
11521 | # to its proper name (with version) after linking. |
… | |
… | |
11147 | # Archives containing C++ object files must be created using |
11527 | # Archives containing C++ object files must be created using |
11148 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11528 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11149 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11529 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11150 | |
11530 | |
11151 | ;; |
11531 | ;; |
11152 | RCC) |
11532 | RCC*) |
11153 | # Rational C++ 2.4.1 |
11533 | # Rational C++ 2.4.1 |
11154 | # FIXME: insert proper C++ library support |
11534 | # FIXME: insert proper C++ library support |
11155 | ld_shlibs_CXX=no |
11535 | ld_shlibs_CXX=no |
11156 | ;; |
11536 | ;; |
11157 | cxx) |
11537 | cxx*) |
11158 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11538 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11159 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
11539 | archive_cmds_CXX='$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' |
11160 | |
11540 | |
11161 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11541 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11162 | hardcode_libdir_separator_CXX=: |
11542 | hardcode_libdir_separator_CXX=: |
11163 | |
11543 | |
11164 | # Commands to make compiler produce verbose output that lists |
11544 | # Commands to make compiler produce verbose output that lists |
… | |
… | |
11172 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11552 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11173 | ;; |
11553 | ;; |
11174 | *) |
11554 | *) |
11175 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11555 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11176 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11556 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11177 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
11557 | archive_cmds_CXX='$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' |
11178 | |
11558 | |
11179 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11559 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11180 | hardcode_libdir_separator_CXX=: |
11560 | hardcode_libdir_separator_CXX=: |
11181 | |
11561 | |
11182 | # Commands to make compiler produce verbose output that lists |
11562 | # Commands to make compiler produce verbose output that lists |
… | |
… | |
11191 | ;; |
11571 | ;; |
11192 | esac |
11572 | esac |
11193 | ;; |
11573 | ;; |
11194 | osf4* | osf5*) |
11574 | osf4* | osf5*) |
11195 | case $cc_basename in |
11575 | case $cc_basename in |
11196 | KCC) |
11576 | KCC*) |
11197 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11577 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11198 | |
11578 | |
11199 | # KCC will only create a shared library if the output file |
11579 | # KCC will only create a shared library if the output file |
11200 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11580 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11201 | # to its proper name (with version) after linking. |
11581 | # to its proper name (with version) after linking. |
… | |
… | |
11206 | |
11586 | |
11207 | # Archives containing C++ object files must be created using |
11587 | # Archives containing C++ object files must be created using |
11208 | # the KAI C++ compiler. |
11588 | # the KAI C++ compiler. |
11209 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11589 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11210 | ;; |
11590 | ;; |
11211 | RCC) |
11591 | RCC*) |
11212 | # Rational C++ 2.4.1 |
11592 | # Rational C++ 2.4.1 |
11213 | # FIXME: insert proper C++ library support |
11593 | # FIXME: insert proper C++ library support |
11214 | ld_shlibs_CXX=no |
11594 | ld_shlibs_CXX=no |
11215 | ;; |
11595 | ;; |
11216 | cxx) |
11596 | cxx*) |
11217 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11597 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11218 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
11598 | archive_cmds_CXX='$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' |
11219 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11599 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11220 | echo "-hidden">> $lib.exp~ |
11600 | echo "-hidden">> $lib.exp~ |
11221 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
11601 | $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~ |
11222 | $rm $lib.exp' |
11602 | $rm $lib.exp' |
11223 | |
11603 | |
11224 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11604 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11225 | hardcode_libdir_separator_CXX=: |
11605 | hardcode_libdir_separator_CXX=: |
11226 | |
11606 | |
… | |
… | |
11235 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11615 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11236 | ;; |
11616 | ;; |
11237 | *) |
11617 | *) |
11238 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11618 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11239 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11619 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11240 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
11620 | archive_cmds_CXX='$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' |
11241 | |
11621 | |
11242 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11622 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11243 | hardcode_libdir_separator_CXX=: |
11623 | hardcode_libdir_separator_CXX=: |
11244 | |
11624 | |
11245 | # Commands to make compiler produce verbose output that lists |
11625 | # Commands to make compiler produce verbose output that lists |
… | |
… | |
11256 | ;; |
11636 | ;; |
11257 | psos*) |
11637 | psos*) |
11258 | # FIXME: insert proper C++ library support |
11638 | # FIXME: insert proper C++ library support |
11259 | ld_shlibs_CXX=no |
11639 | ld_shlibs_CXX=no |
11260 | ;; |
11640 | ;; |
11261 | sco*) |
|
|
11262 | archive_cmds_need_lc_CXX=no |
|
|
11263 | case $cc_basename in |
|
|
11264 | CC) |
|
|
11265 | # FIXME: insert proper C++ library support |
|
|
11266 | ld_shlibs_CXX=no |
|
|
11267 | ;; |
|
|
11268 | *) |
|
|
11269 | # FIXME: insert proper C++ library support |
|
|
11270 | ld_shlibs_CXX=no |
|
|
11271 | ;; |
|
|
11272 | esac |
|
|
11273 | ;; |
|
|
11274 | sunos4*) |
11641 | sunos4*) |
11275 | case $cc_basename in |
11642 | case $cc_basename in |
11276 | CC) |
11643 | CC*) |
11277 | # Sun C++ 4.x |
11644 | # Sun C++ 4.x |
11278 | # FIXME: insert proper C++ library support |
11645 | # FIXME: insert proper C++ library support |
11279 | ld_shlibs_CXX=no |
11646 | ld_shlibs_CXX=no |
11280 | ;; |
11647 | ;; |
11281 | lcc) |
11648 | lcc*) |
11282 | # Lucid |
11649 | # Lucid |
11283 | # FIXME: insert proper C++ library support |
11650 | # FIXME: insert proper C++ library support |
11284 | ld_shlibs_CXX=no |
11651 | ld_shlibs_CXX=no |
11285 | ;; |
11652 | ;; |
11286 | *) |
11653 | *) |
… | |
… | |
11289 | ;; |
11656 | ;; |
11290 | esac |
11657 | esac |
11291 | ;; |
11658 | ;; |
11292 | solaris*) |
11659 | solaris*) |
11293 | case $cc_basename in |
11660 | case $cc_basename in |
11294 | CC) |
11661 | CC*) |
11295 | # Sun C++ 4.2, 5.x and Centerline C++ |
11662 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
11663 | archive_cmds_need_lc_CXX=yes |
11296 | no_undefined_flag_CXX=' -zdefs' |
11664 | no_undefined_flag_CXX=' -zdefs' |
11297 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11665 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11298 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11666 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11299 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11667 | $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' |
11300 | |
11668 | |
11301 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11669 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11302 | hardcode_shlibpath_var_CXX=no |
11670 | hardcode_shlibpath_var_CXX=no |
11303 | case $host_os in |
11671 | case $host_os in |
11304 | solaris2.0-5 | solaris2.0-5.*) ;; |
11672 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11305 | *) |
11673 | *) |
11306 | # The C++ compiler is used as linker so we must use $wl |
11674 | # The C++ compiler is used as linker so we must use $wl |
11307 | # flag to pass the commands to the underlying system |
11675 | # flag to pass the commands to the underlying system |
11308 | # linker. |
11676 | # linker. We must also pass each convience library through |
|
|
11677 | # to the system linker between allextract/defaultextract. |
|
|
11678 | # The C++ compiler will combine linker options so we |
|
|
11679 | # cannot just pass the convience library names through |
|
|
11680 | # without $wl. |
11309 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11681 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11310 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
11682 | whole_archive_flag_spec_CXX='${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' |
11311 | ;; |
11683 | ;; |
11312 | esac |
11684 | esac |
11313 | link_all_deplibs_CXX=yes |
11685 | link_all_deplibs_CXX=yes |
11314 | |
11686 | |
11315 | # Commands to make compiler produce verbose output that lists |
11687 | output_verbose_link_cmd='echo' |
11316 | # what "hidden" libraries, object files and flags are used when |
|
|
11317 | # linking a shared library. |
|
|
11318 | # |
|
|
11319 | # There doesn't appear to be a way to prevent this compiler from |
|
|
11320 | # explicitly linking system object files so we need to strip them |
|
|
11321 | # from the output so that they don't get included in the library |
|
|
11322 | # dependencies. |
|
|
11323 | 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' |
|
|
11324 | |
11688 | |
11325 | # Archives containing C++ object files must be created using |
11689 | # Archives containing C++ object files must be created using |
11326 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11690 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11327 | # necessary to make sure instantiated templates are included |
11691 | # necessary to make sure instantiated templates are included |
11328 | # in the archive. |
11692 | # in the archive. |
11329 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11693 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11330 | ;; |
11694 | ;; |
11331 | gcx) |
11695 | gcx*) |
11332 | # Green Hills C++ Compiler |
11696 | # Green Hills C++ Compiler |
11333 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11697 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11334 | |
11698 | |
11335 | # The C++ compiler must be used to create the archive. |
11699 | # The C++ compiler must be used to create the archive. |
11336 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11700 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
… | |
… | |
11364 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11728 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11365 | fi |
11729 | fi |
11366 | ;; |
11730 | ;; |
11367 | esac |
11731 | esac |
11368 | ;; |
11732 | ;; |
11369 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
11733 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
|
11734 | no_undefined_flag_CXX='${wl}-z,text' |
11370 | archive_cmds_need_lc_CXX=no |
11735 | archive_cmds_need_lc_CXX=no |
|
|
11736 | hardcode_shlibpath_var_CXX=no |
|
|
11737 | runpath_var='LD_RUN_PATH' |
|
|
11738 | |
|
|
11739 | case $cc_basename in |
|
|
11740 | CC*) |
|
|
11741 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11742 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11743 | ;; |
|
|
11744 | *) |
|
|
11745 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11746 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11747 | ;; |
|
|
11748 | esac |
|
|
11749 | ;; |
|
|
11750 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
11751 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
11752 | # link with -lc, and that would cause any symbols used from libc to |
|
|
11753 | # always be unresolved, which means just about no library would |
|
|
11754 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
11755 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
11756 | # as -z defs. |
|
|
11757 | # For security reasons, it is highly recommended that you always |
|
|
11758 | # use absolute paths for naming shared libraries, and exclude the |
|
|
11759 | # DT_RUNPATH tag from executables and libraries. But doing so |
|
|
11760 | # requires that you compile everything twice, which is a pain. |
|
|
11761 | # So that behaviour is only enabled if SCOABSPATH is set to a |
|
|
11762 | # non-empty value in the environment. Most likely only useful for |
|
|
11763 | # creating official distributions of packages. |
|
|
11764 | # This is a hack until libtool officially supports absolute path |
|
|
11765 | # names for shared libraries. |
|
|
11766 | no_undefined_flag_CXX='${wl}-z,text' |
|
|
11767 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
|
|
11768 | archive_cmds_need_lc_CXX=no |
|
|
11769 | hardcode_shlibpath_var_CXX=no |
|
|
11770 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
11771 | hardcode_libdir_separator_CXX=':' |
|
|
11772 | link_all_deplibs_CXX=yes |
|
|
11773 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
|
|
11774 | runpath_var='LD_RUN_PATH' |
|
|
11775 | |
|
|
11776 | case $cc_basename in |
|
|
11777 | CC*) |
|
|
11778 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11779 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11780 | ;; |
|
|
11781 | *) |
|
|
11782 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11783 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
11784 | ;; |
|
|
11785 | esac |
11371 | ;; |
11786 | ;; |
11372 | tandem*) |
11787 | tandem*) |
11373 | case $cc_basename in |
11788 | case $cc_basename in |
11374 | NCC) |
11789 | NCC*) |
11375 | # NonStop-UX NCC 3.20 |
11790 | # NonStop-UX NCC 3.20 |
11376 | # FIXME: insert proper C++ library support |
11791 | # FIXME: insert proper C++ library support |
11377 | ld_shlibs_CXX=no |
11792 | ld_shlibs_CXX=no |
11378 | ;; |
11793 | ;; |
11379 | *) |
11794 | *) |
… | |
… | |
11422 | pre_test_object_deps_done=no |
11837 | pre_test_object_deps_done=no |
11423 | |
11838 | |
11424 | # The `*' in the case matches for architectures that use `case' in |
11839 | # The `*' in the case matches for architectures that use `case' in |
11425 | # $output_verbose_cmd can trigger glob expansion during the loop |
11840 | # $output_verbose_cmd can trigger glob expansion during the loop |
11426 | # eval without this substitution. |
11841 | # eval without this substitution. |
11427 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
11842 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11428 | |
11843 | |
11429 | for p in `eval $output_verbose_link_cmd`; do |
11844 | for p in `eval $output_verbose_link_cmd`; do |
11430 | case $p in |
11845 | case $p in |
11431 | |
11846 | |
11432 | -L* | -R* | -l*) |
11847 | -L* | -R* | -l*) |
… | |
… | |
11498 | echo "libtool.m4: error: problem compiling CXX test program" |
11913 | echo "libtool.m4: error: problem compiling CXX test program" |
11499 | fi |
11914 | fi |
11500 | |
11915 | |
11501 | $rm -f confest.$objext |
11916 | $rm -f confest.$objext |
11502 | |
11917 | |
|
|
11918 | # PORTME: override above test on systems where it is broken |
|
|
11919 | case $host_os in |
|
|
11920 | interix3*) |
|
|
11921 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
|
|
11922 | # hack all around it, let's just trust "g++" to DTRT. |
|
|
11923 | predep_objects_CXX= |
|
|
11924 | postdep_objects_CXX= |
|
|
11925 | postdeps_CXX= |
|
|
11926 | ;; |
|
|
11927 | |
|
|
11928 | solaris*) |
|
|
11929 | case $cc_basename in |
|
|
11930 | CC*) |
|
|
11931 | # Adding this requires a known-good setup of shared libraries for |
|
|
11932 | # Sun compiler versions before 5.6, else PIC objects from an old |
|
|
11933 | # archive will be linked into the output, leading to subtle bugs. |
|
|
11934 | postdeps_CXX='-lCstd -lCrun' |
|
|
11935 | ;; |
|
|
11936 | esac |
|
|
11937 | ;; |
|
|
11938 | esac |
|
|
11939 | |
|
|
11940 | |
11503 | case " $postdeps_CXX " in |
11941 | case " $postdeps_CXX " in |
11504 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11942 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11505 | esac |
11943 | esac |
11506 | |
11944 | |
11507 | lt_prog_compiler_wl_CXX= |
11945 | lt_prog_compiler_wl_CXX= |
… | |
… | |
11545 | ;; |
11983 | ;; |
11546 | *djgpp*) |
11984 | *djgpp*) |
11547 | # DJGPP does not support shared libraries at all |
11985 | # DJGPP does not support shared libraries at all |
11548 | lt_prog_compiler_pic_CXX= |
11986 | lt_prog_compiler_pic_CXX= |
11549 | ;; |
11987 | ;; |
|
|
11988 | interix3*) |
|
|
11989 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
11990 | # Instead, we relocate shared libraries at runtime. |
|
|
11991 | ;; |
11550 | sysv4*MP*) |
11992 | sysv4*MP*) |
11551 | if test -d /usr/nec; then |
11993 | if test -d /usr/nec; then |
11552 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11994 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11553 | fi |
11995 | fi |
11554 | ;; |
11996 | ;; |
11555 | hpux*) |
11997 | hpux*) |
11556 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11998 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11557 | # not for PA HP-UX. |
11999 | # not for PA HP-UX. |
11558 | case "$host_cpu" in |
12000 | case $host_cpu in |
11559 | hppa*64*|ia64*) |
12001 | hppa*64*|ia64*) |
11560 | ;; |
12002 | ;; |
11561 | *) |
12003 | *) |
11562 | lt_prog_compiler_pic_CXX='-fPIC' |
12004 | lt_prog_compiler_pic_CXX='-fPIC' |
11563 | ;; |
12005 | ;; |
… | |
… | |
11578 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12020 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11579 | fi |
12021 | fi |
11580 | ;; |
12022 | ;; |
11581 | chorus*) |
12023 | chorus*) |
11582 | case $cc_basename in |
12024 | case $cc_basename in |
11583 | cxch68) |
12025 | cxch68*) |
11584 | # Green Hills C++ Compiler |
12026 | # Green Hills C++ Compiler |
11585 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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" |
12027 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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" |
11586 | ;; |
12028 | ;; |
11587 | esac |
12029 | esac |
11588 | ;; |
12030 | ;; |
|
|
12031 | darwin*) |
|
|
12032 | # PIC is the default on this platform |
|
|
12033 | # Common symbols not allowed in MH_DYLIB files |
|
|
12034 | case $cc_basename in |
|
|
12035 | xlc*) |
|
|
12036 | lt_prog_compiler_pic_CXX='-qnocommon' |
|
|
12037 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
12038 | ;; |
|
|
12039 | esac |
|
|
12040 | ;; |
11589 | dgux*) |
12041 | dgux*) |
11590 | case $cc_basename in |
12042 | case $cc_basename in |
11591 | ec++) |
12043 | ec++*) |
11592 | lt_prog_compiler_pic_CXX='-KPIC' |
12044 | lt_prog_compiler_pic_CXX='-KPIC' |
11593 | ;; |
12045 | ;; |
11594 | ghcx) |
12046 | ghcx*) |
11595 | # Green Hills C++ Compiler |
12047 | # Green Hills C++ Compiler |
11596 | lt_prog_compiler_pic_CXX='-pic' |
12048 | lt_prog_compiler_pic_CXX='-pic' |
11597 | ;; |
12049 | ;; |
11598 | *) |
12050 | *) |
11599 | ;; |
12051 | ;; |
11600 | esac |
12052 | esac |
11601 | ;; |
12053 | ;; |
11602 | freebsd* | kfreebsd*-gnu) |
12054 | freebsd* | dragonfly*) |
11603 | # FreeBSD uses GNU C++ |
12055 | # FreeBSD uses GNU C++ |
11604 | ;; |
12056 | ;; |
11605 | hpux9* | hpux10* | hpux11*) |
12057 | hpux9* | hpux10* | hpux11*) |
11606 | case $cc_basename in |
12058 | case $cc_basename in |
11607 | CC) |
12059 | CC*) |
11608 | lt_prog_compiler_wl_CXX='-Wl,' |
12060 | lt_prog_compiler_wl_CXX='-Wl,' |
11609 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
12061 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11610 | if test "$host_cpu" != ia64; then |
12062 | if test "$host_cpu" != ia64; then |
11611 | lt_prog_compiler_pic_CXX='+Z' |
12063 | lt_prog_compiler_pic_CXX='+Z' |
11612 | fi |
12064 | fi |
11613 | ;; |
12065 | ;; |
11614 | aCC) |
12066 | aCC*) |
11615 | lt_prog_compiler_wl_CXX='-Wl,' |
12067 | lt_prog_compiler_wl_CXX='-Wl,' |
11616 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
12068 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11617 | case "$host_cpu" in |
12069 | case $host_cpu in |
11618 | hppa*64*|ia64*) |
12070 | hppa*64*|ia64*) |
11619 | # +Z the default |
12071 | # +Z the default |
11620 | ;; |
12072 | ;; |
11621 | *) |
12073 | *) |
11622 | lt_prog_compiler_pic_CXX='+Z' |
12074 | lt_prog_compiler_pic_CXX='+Z' |
… | |
… | |
11625 | ;; |
12077 | ;; |
11626 | *) |
12078 | *) |
11627 | ;; |
12079 | ;; |
11628 | esac |
12080 | esac |
11629 | ;; |
12081 | ;; |
|
|
12082 | interix*) |
|
|
12083 | # This is c89, which is MS Visual C++ (no shared libs) |
|
|
12084 | # Anyone wants to do a port? |
|
|
12085 | ;; |
11630 | irix5* | irix6* | nonstopux*) |
12086 | irix5* | irix6* | nonstopux*) |
11631 | case $cc_basename in |
12087 | case $cc_basename in |
11632 | CC) |
12088 | CC*) |
11633 | lt_prog_compiler_wl_CXX='-Wl,' |
12089 | lt_prog_compiler_wl_CXX='-Wl,' |
11634 | lt_prog_compiler_static_CXX='-non_shared' |
12090 | lt_prog_compiler_static_CXX='-non_shared' |
11635 | # CC pic flag -KPIC is the default. |
12091 | # CC pic flag -KPIC is the default. |
11636 | ;; |
12092 | ;; |
11637 | *) |
12093 | *) |
11638 | ;; |
12094 | ;; |
11639 | esac |
12095 | esac |
11640 | ;; |
12096 | ;; |
11641 | linux*) |
12097 | linux* | k*bsd*-gnu) |
11642 | case $cc_basename in |
12098 | case $cc_basename in |
11643 | KCC) |
12099 | KCC*) |
11644 | # KAI C++ Compiler |
12100 | # KAI C++ Compiler |
11645 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12101 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11646 | lt_prog_compiler_pic_CXX='-fPIC' |
12102 | lt_prog_compiler_pic_CXX='-fPIC' |
11647 | ;; |
12103 | ;; |
11648 | icpc) |
12104 | icpc* | ecpc*) |
11649 | # Intel C++ |
12105 | # Intel C++ |
11650 | lt_prog_compiler_wl_CXX='-Wl,' |
12106 | lt_prog_compiler_wl_CXX='-Wl,' |
11651 | lt_prog_compiler_pic_CXX='-KPIC' |
12107 | lt_prog_compiler_pic_CXX='-KPIC' |
11652 | lt_prog_compiler_static_CXX='-static' |
12108 | lt_prog_compiler_static_CXX='-static' |
11653 | ;; |
12109 | ;; |
|
|
12110 | pgCC*) |
|
|
12111 | # Portland Group C++ compiler. |
|
|
12112 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
12113 | lt_prog_compiler_pic_CXX='-fpic' |
|
|
12114 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
12115 | ;; |
11654 | cxx) |
12116 | cxx*) |
11655 | # Compaq C++ |
12117 | # Compaq C++ |
11656 | # Make sure the PIC flag is empty. It appears that all Alpha |
12118 | # Make sure the PIC flag is empty. It appears that all Alpha |
11657 | # Linux and Compaq Tru64 Unix objects are PIC. |
12119 | # Linux and Compaq Tru64 Unix objects are PIC. |
11658 | lt_prog_compiler_pic_CXX= |
12120 | lt_prog_compiler_pic_CXX= |
11659 | lt_prog_compiler_static_CXX='-non_shared' |
12121 | lt_prog_compiler_static_CXX='-non_shared' |
… | |
… | |
11666 | ;; |
12128 | ;; |
11667 | m88k*) |
12129 | m88k*) |
11668 | ;; |
12130 | ;; |
11669 | mvs*) |
12131 | mvs*) |
11670 | case $cc_basename in |
12132 | case $cc_basename in |
11671 | cxx) |
12133 | cxx*) |
11672 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12134 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11673 | ;; |
12135 | ;; |
11674 | *) |
12136 | *) |
11675 | ;; |
12137 | ;; |
11676 | esac |
12138 | esac |
11677 | ;; |
12139 | ;; |
11678 | netbsd*) |
12140 | netbsd* | netbsdelf*-gnu) |
11679 | ;; |
12141 | ;; |
11680 | osf3* | osf4* | osf5*) |
12142 | osf3* | osf4* | osf5*) |
11681 | case $cc_basename in |
12143 | case $cc_basename in |
11682 | KCC) |
12144 | KCC*) |
11683 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12145 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11684 | ;; |
12146 | ;; |
11685 | RCC) |
12147 | RCC*) |
11686 | # Rational C++ 2.4.1 |
12148 | # Rational C++ 2.4.1 |
11687 | lt_prog_compiler_pic_CXX='-pic' |
12149 | lt_prog_compiler_pic_CXX='-pic' |
11688 | ;; |
12150 | ;; |
11689 | cxx) |
12151 | cxx*) |
11690 | # Digital/Compaq C++ |
12152 | # Digital/Compaq C++ |
11691 | lt_prog_compiler_wl_CXX='-Wl,' |
12153 | lt_prog_compiler_wl_CXX='-Wl,' |
11692 | # Make sure the PIC flag is empty. It appears that all Alpha |
12154 | # Make sure the PIC flag is empty. It appears that all Alpha |
11693 | # Linux and Compaq Tru64 Unix objects are PIC. |
12155 | # Linux and Compaq Tru64 Unix objects are PIC. |
11694 | lt_prog_compiler_pic_CXX= |
12156 | lt_prog_compiler_pic_CXX= |
… | |
… | |
11698 | ;; |
12160 | ;; |
11699 | esac |
12161 | esac |
11700 | ;; |
12162 | ;; |
11701 | psos*) |
12163 | psos*) |
11702 | ;; |
12164 | ;; |
11703 | sco*) |
|
|
11704 | case $cc_basename in |
|
|
11705 | CC) |
|
|
11706 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
11707 | ;; |
|
|
11708 | *) |
|
|
11709 | ;; |
|
|
11710 | esac |
|
|
11711 | ;; |
|
|
11712 | solaris*) |
12165 | solaris*) |
11713 | case $cc_basename in |
12166 | case $cc_basename in |
11714 | CC) |
12167 | CC*) |
11715 | # Sun C++ 4.2, 5.x and Centerline C++ |
12168 | # Sun C++ 4.2, 5.x and Centerline C++ |
11716 | lt_prog_compiler_pic_CXX='-KPIC' |
12169 | lt_prog_compiler_pic_CXX='-KPIC' |
11717 | lt_prog_compiler_static_CXX='-Bstatic' |
12170 | lt_prog_compiler_static_CXX='-Bstatic' |
11718 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12171 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11719 | ;; |
12172 | ;; |
11720 | gcx) |
12173 | gcx*) |
11721 | # Green Hills C++ Compiler |
12174 | # Green Hills C++ Compiler |
11722 | lt_prog_compiler_pic_CXX='-PIC' |
12175 | lt_prog_compiler_pic_CXX='-PIC' |
11723 | ;; |
12176 | ;; |
11724 | *) |
12177 | *) |
11725 | ;; |
12178 | ;; |
11726 | esac |
12179 | esac |
11727 | ;; |
12180 | ;; |
11728 | sunos4*) |
12181 | sunos4*) |
11729 | case $cc_basename in |
12182 | case $cc_basename in |
11730 | CC) |
12183 | CC*) |
11731 | # Sun C++ 4.x |
12184 | # Sun C++ 4.x |
11732 | lt_prog_compiler_pic_CXX='-pic' |
12185 | lt_prog_compiler_pic_CXX='-pic' |
11733 | lt_prog_compiler_static_CXX='-Bstatic' |
12186 | lt_prog_compiler_static_CXX='-Bstatic' |
11734 | ;; |
12187 | ;; |
11735 | lcc) |
12188 | lcc*) |
11736 | # Lucid |
12189 | # Lucid |
11737 | lt_prog_compiler_pic_CXX='-pic' |
12190 | lt_prog_compiler_pic_CXX='-pic' |
11738 | ;; |
12191 | ;; |
11739 | *) |
12192 | *) |
11740 | ;; |
12193 | ;; |
11741 | esac |
12194 | esac |
11742 | ;; |
12195 | ;; |
11743 | tandem*) |
12196 | tandem*) |
11744 | case $cc_basename in |
12197 | case $cc_basename in |
11745 | NCC) |
12198 | NCC*) |
11746 | # NonStop-UX NCC 3.20 |
12199 | # NonStop-UX NCC 3.20 |
11747 | lt_prog_compiler_pic_CXX='-KPIC' |
12200 | lt_prog_compiler_pic_CXX='-KPIC' |
11748 | ;; |
12201 | ;; |
11749 | *) |
12202 | *) |
11750 | ;; |
12203 | ;; |
11751 | esac |
12204 | esac |
11752 | ;; |
12205 | ;; |
11753 | unixware*) |
12206 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
12207 | case $cc_basename in |
|
|
12208 | CC*) |
|
|
12209 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
12210 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
12211 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
12212 | ;; |
|
|
12213 | esac |
11754 | ;; |
12214 | ;; |
11755 | vxworks*) |
12215 | vxworks*) |
11756 | ;; |
12216 | ;; |
11757 | *) |
12217 | *) |
11758 | lt_prog_compiler_can_build_shared_CXX=no |
12218 | lt_prog_compiler_can_build_shared_CXX=no |
… | |
… | |
11781 | # (2) before a word containing "conftest.", or (3) at the end. |
12241 | # (2) before a word containing "conftest.", or (3) at the end. |
11782 | # Note that $ac_compile itself does not contain backslashes and begins |
12242 | # Note that $ac_compile itself does not contain backslashes and begins |
11783 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12243 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11784 | # The option is referenced via a variable to avoid confusing sed. |
12244 | # The option is referenced via a variable to avoid confusing sed. |
11785 | lt_compile=`echo "$ac_compile" | $SED \ |
12245 | lt_compile=`echo "$ac_compile" | $SED \ |
11786 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
12246 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11787 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12247 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11788 | -e 's:$: $lt_compiler_flag:'` |
12248 | -e 's:$: $lt_compiler_flag:'` |
11789 | (eval echo "\"\$as_me:11789: $lt_compile\"" >&5) |
12249 | (eval echo "\"\$as_me:12249: $lt_compile\"" >&5) |
11790 | (eval "$lt_compile" 2>conftest.err) |
12250 | (eval "$lt_compile" 2>conftest.err) |
11791 | ac_status=$? |
12251 | ac_status=$? |
11792 | cat conftest.err >&5 |
12252 | cat conftest.err >&5 |
11793 | echo "$as_me:11793: \$? = $ac_status" >&5 |
12253 | echo "$as_me:12253: \$? = $ac_status" >&5 |
11794 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12254 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11795 | # The compiler can only warn and ignore the option if not recognized |
12255 | # The compiler can only warn and ignore the option if not recognized |
11796 | # So say no if there are warnings |
12256 | # So say no if there are warnings other than the usual output. |
11797 | if test ! -s conftest.err; then |
12257 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
12258 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
12259 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11798 | lt_prog_compiler_pic_works_CXX=yes |
12260 | lt_prog_compiler_pic_works_CXX=yes |
11799 | fi |
12261 | fi |
11800 | fi |
12262 | fi |
11801 | $rm conftest* |
12263 | $rm conftest* |
11802 | |
12264 | |
… | |
… | |
11813 | lt_prog_compiler_pic_CXX= |
12275 | lt_prog_compiler_pic_CXX= |
11814 | lt_prog_compiler_can_build_shared_CXX=no |
12276 | lt_prog_compiler_can_build_shared_CXX=no |
11815 | fi |
12277 | fi |
11816 | |
12278 | |
11817 | fi |
12279 | fi |
11818 | case "$host_os" in |
12280 | case $host_os in |
11819 | # For platforms which do not support PIC, -DPIC is meaningless: |
12281 | # For platforms which do not support PIC, -DPIC is meaningless: |
11820 | *djgpp*) |
12282 | *djgpp*) |
11821 | lt_prog_compiler_pic_CXX= |
12283 | lt_prog_compiler_pic_CXX= |
11822 | ;; |
12284 | ;; |
11823 | *) |
12285 | *) |
11824 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12286 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11825 | ;; |
12287 | ;; |
11826 | esac |
12288 | esac |
11827 | |
12289 | |
|
|
12290 | # |
|
|
12291 | # Check to make sure the static flag actually works. |
|
|
12292 | # |
|
|
12293 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
|
|
12294 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
12295 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
|
12296 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
|
|
12297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12298 | else |
|
|
12299 | lt_prog_compiler_static_works_CXX=no |
|
|
12300 | save_LDFLAGS="$LDFLAGS" |
|
|
12301 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
12302 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
12303 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
12304 | # The linker can only warn and ignore the option if not recognized |
|
|
12305 | # So say no if there are warnings |
|
|
12306 | if test -s conftest.err; then |
|
|
12307 | # Append any errors to the config.log. |
|
|
12308 | cat conftest.err 1>&5 |
|
|
12309 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
12310 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
12311 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
12312 | lt_prog_compiler_static_works_CXX=yes |
|
|
12313 | fi |
|
|
12314 | else |
|
|
12315 | lt_prog_compiler_static_works_CXX=yes |
|
|
12316 | fi |
|
|
12317 | fi |
|
|
12318 | $rm conftest* |
|
|
12319 | LDFLAGS="$save_LDFLAGS" |
|
|
12320 | |
|
|
12321 | fi |
|
|
12322 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
|
|
12323 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
|
|
12324 | |
|
|
12325 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
|
|
12326 | : |
|
|
12327 | else |
|
|
12328 | lt_prog_compiler_static_CXX= |
|
|
12329 | fi |
|
|
12330 | |
|
|
12331 | |
11828 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12332 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11829 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
12333 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
11830 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12334 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11832 | else |
12336 | else |
… | |
… | |
11841 | # Insert the option either (1) after the last *FLAGS variable, or |
12345 | # Insert the option either (1) after the last *FLAGS variable, or |
11842 | # (2) before a word containing "conftest.", or (3) at the end. |
12346 | # (2) before a word containing "conftest.", or (3) at the end. |
11843 | # Note that $ac_compile itself does not contain backslashes and begins |
12347 | # Note that $ac_compile itself does not contain backslashes and begins |
11844 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12348 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11845 | lt_compile=`echo "$ac_compile" | $SED \ |
12349 | lt_compile=`echo "$ac_compile" | $SED \ |
11846 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
12350 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11847 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12351 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11848 | -e 's:$: $lt_compiler_flag:'` |
12352 | -e 's:$: $lt_compiler_flag:'` |
11849 | (eval echo "\"\$as_me:11849: $lt_compile\"" >&5) |
12353 | (eval echo "\"\$as_me:12353: $lt_compile\"" >&5) |
11850 | (eval "$lt_compile" 2>out/conftest.err) |
12354 | (eval "$lt_compile" 2>out/conftest.err) |
11851 | ac_status=$? |
12355 | ac_status=$? |
11852 | cat out/conftest.err >&5 |
12356 | cat out/conftest.err >&5 |
11853 | echo "$as_me:11853: \$? = $ac_status" >&5 |
12357 | echo "$as_me:12357: \$? = $ac_status" >&5 |
11854 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12358 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11855 | then |
12359 | then |
11856 | # The compiler can only warn and ignore the option if not recognized |
12360 | # The compiler can only warn and ignore the option if not recognized |
11857 | # So say no if there are warnings |
12361 | # So say no if there are warnings |
11858 | if test ! -s out/conftest.err; then |
12362 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
12363 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
12364 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11859 | lt_cv_prog_compiler_c_o_CXX=yes |
12365 | lt_cv_prog_compiler_c_o_CXX=yes |
11860 | fi |
12366 | fi |
11861 | fi |
12367 | fi |
11862 | chmod u+w . |
12368 | chmod u+w . 2>&5 |
11863 | $rm conftest* |
12369 | $rm conftest* |
11864 | # SGI C++ compiler will create directory out/ii_files/ for |
12370 | # SGI C++ compiler will create directory out/ii_files/ for |
11865 | # template instantiation |
12371 | # template instantiation |
11866 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12372 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11867 | $rm out/* && rmdir out |
12373 | $rm out/* && rmdir out |
… | |
… | |
11912 | ;; |
12418 | ;; |
11913 | pw32*) |
12419 | pw32*) |
11914 | export_symbols_cmds_CXX="$ltdll_cmds" |
12420 | export_symbols_cmds_CXX="$ltdll_cmds" |
11915 | ;; |
12421 | ;; |
11916 | cygwin* | mingw*) |
12422 | cygwin* | mingw*) |
11917 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
12423 | export_symbols_cmds_CXX='$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' |
|
|
12424 | ;; |
|
|
12425 | linux* | k*bsd*-gnu) |
|
|
12426 | link_all_deplibs_CXX=no |
11918 | ;; |
12427 | ;; |
11919 | *) |
12428 | *) |
11920 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12429 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11921 | ;; |
12430 | ;; |
11922 | esac |
12431 | esac |
11923 | |
12432 | |
11924 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12433 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11925 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
12434 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
11926 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12435 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11927 | |
|
|
11928 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
11929 | if test "$GCC" = yes; then |
|
|
11930 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
11931 | fi |
|
|
11932 | |
12436 | |
11933 | # |
12437 | # |
11934 | # Do we need to explicitly link libc? |
12438 | # Do we need to explicitly link libc? |
11935 | # |
12439 | # |
11936 | case "x$archive_cmds_need_lc_CXX" in |
12440 | case "x$archive_cmds_need_lc_CXX" in |
… | |
… | |
11960 | soname=conftest |
12464 | soname=conftest |
11961 | lib=conftest |
12465 | lib=conftest |
11962 | libobjs=conftest.$ac_objext |
12466 | libobjs=conftest.$ac_objext |
11963 | deplibs= |
12467 | deplibs= |
11964 | wl=$lt_prog_compiler_wl_CXX |
12468 | wl=$lt_prog_compiler_wl_CXX |
|
|
12469 | pic_flag=$lt_prog_compiler_pic_CXX |
11965 | compiler_flags=-v |
12470 | compiler_flags=-v |
11966 | linker_flags=-v |
12471 | linker_flags=-v |
11967 | verstring= |
12472 | verstring= |
11968 | output_objdir=. |
12473 | output_objdir=. |
11969 | libname=conftest |
12474 | libname=conftest |
… | |
… | |
11995 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12500 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11996 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
12501 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
11997 | library_names_spec= |
12502 | library_names_spec= |
11998 | libname_spec='lib$name' |
12503 | libname_spec='lib$name' |
11999 | soname_spec= |
12504 | soname_spec= |
12000 | shrext=".so" |
12505 | shrext_cmds=".so" |
12001 | postinstall_cmds= |
12506 | postinstall_cmds= |
12002 | postuninstall_cmds= |
12507 | postuninstall_cmds= |
12003 | finish_cmds= |
12508 | finish_cmds= |
12004 | finish_eval= |
12509 | finish_eval= |
12005 | shlibpath_var= |
12510 | shlibpath_var= |
… | |
… | |
12092 | library_names_spec='${libname}${shared_ext}' |
12597 | library_names_spec='${libname}${shared_ext}' |
12093 | dynamic_linker="$host_os ld.so" |
12598 | dynamic_linker="$host_os ld.so" |
12094 | shlibpath_var=LIBRARY_PATH |
12599 | shlibpath_var=LIBRARY_PATH |
12095 | ;; |
12600 | ;; |
12096 | |
12601 | |
12097 | bsdi4*) |
12602 | bsdi[45]*) |
12098 | version_type=linux |
12603 | version_type=linux |
12099 | need_version=no |
12604 | need_version=no |
12100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12101 | soname_spec='${libname}${release}${shared_ext}$major' |
12606 | soname_spec='${libname}${release}${shared_ext}$major' |
12102 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12607 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
… | |
… | |
12108 | # libtool to hard-code these into programs |
12613 | # libtool to hard-code these into programs |
12109 | ;; |
12614 | ;; |
12110 | |
12615 | |
12111 | cygwin* | mingw* | pw32*) |
12616 | cygwin* | mingw* | pw32*) |
12112 | version_type=windows |
12617 | version_type=windows |
12113 | shrext=".dll" |
12618 | shrext_cmds=".dll" |
12114 | need_version=no |
12619 | need_version=no |
12115 | need_lib_prefix=no |
12620 | need_lib_prefix=no |
12116 | |
12621 | |
12117 | case $GCC,$host_os in |
12622 | case $GCC,$host_os in |
12118 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12623 | yes,cygwin* | yes,mingw* | yes,pw32*) |
… | |
… | |
12120 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12625 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12121 | postinstall_cmds='base_file=`basename \${file}`~ |
12626 | postinstall_cmds='base_file=`basename \${file}`~ |
12122 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12627 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12123 | dldir=$destdir/`dirname \$dlpath`~ |
12628 | dldir=$destdir/`dirname \$dlpath`~ |
12124 | test -d \$dldir || mkdir -p \$dldir~ |
12629 | test -d \$dldir || mkdir -p \$dldir~ |
12125 | $install_prog $dir/$dlname \$dldir/$dlname' |
12630 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
12631 | chmod a+x \$dldir/$dlname' |
12126 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12632 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12127 | dlpath=$dir/\$dldll~ |
12633 | dlpath=$dir/\$dldll~ |
12128 | $rm \$dlpath' |
12634 | $rm \$dlpath' |
12129 | shlibpath_overrides_runpath=yes |
12635 | shlibpath_overrides_runpath=yes |
12130 | |
12636 | |
… | |
… | |
12150 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12656 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12151 | fi |
12657 | fi |
12152 | ;; |
12658 | ;; |
12153 | pw32*) |
12659 | pw32*) |
12154 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12660 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12155 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
12661 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12156 | ;; |
12662 | ;; |
12157 | esac |
12663 | esac |
12158 | ;; |
12664 | ;; |
12159 | |
12665 | |
12160 | *) |
12666 | *) |
… | |
… | |
12173 | need_version=no |
12679 | need_version=no |
12174 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12680 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12175 | soname_spec='${libname}${release}${major}$shared_ext' |
12681 | soname_spec='${libname}${release}${major}$shared_ext' |
12176 | shlibpath_overrides_runpath=yes |
12682 | shlibpath_overrides_runpath=yes |
12177 | shlibpath_var=DYLD_LIBRARY_PATH |
12683 | shlibpath_var=DYLD_LIBRARY_PATH |
12178 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
12684 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12179 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12685 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12180 | if test "$GCC" = yes; then |
12686 | if test "$GCC" = yes; then |
12181 | 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"` |
12687 | 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"` |
12182 | else |
12688 | else |
12183 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12689 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
… | |
… | |
12196 | |
12702 | |
12197 | freebsd1*) |
12703 | freebsd1*) |
12198 | dynamic_linker=no |
12704 | dynamic_linker=no |
12199 | ;; |
12705 | ;; |
12200 | |
12706 | |
12201 | kfreebsd*-gnu) |
12707 | freebsd* | dragonfly*) |
12202 | version_type=linux |
12708 | # DragonFly does not have aout. When/if they implement a new |
12203 | need_lib_prefix=no |
12709 | # versioning mechanism, adjust this. |
12204 | need_version=no |
12710 | if test -x /usr/bin/objformat; then |
12205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12711 | objformat=`/usr/bin/objformat` |
12206 | soname_spec='${libname}${release}${shared_ext}$major' |
12712 | else |
12207 | shlibpath_var=LD_LIBRARY_PATH |
12713 | case $host_os in |
12208 | shlibpath_overrides_runpath=no |
12714 | freebsd[123]*) objformat=aout ;; |
12209 | hardcode_into_libs=yes |
12715 | *) objformat=elf ;; |
12210 | dynamic_linker='GNU ld.so' |
12716 | esac |
12211 | ;; |
12717 | fi |
12212 | |
|
|
12213 | freebsd*) |
|
|
12214 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
12215 | version_type=freebsd-$objformat |
12718 | version_type=freebsd-$objformat |
12216 | case $version_type in |
12719 | case $version_type in |
12217 | freebsd-elf*) |
12720 | freebsd-elf*) |
12218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12219 | need_version=no |
12722 | need_version=no |
… | |
… | |
12227 | shlibpath_var=LD_LIBRARY_PATH |
12730 | shlibpath_var=LD_LIBRARY_PATH |
12228 | case $host_os in |
12731 | case $host_os in |
12229 | freebsd2*) |
12732 | freebsd2*) |
12230 | shlibpath_overrides_runpath=yes |
12733 | shlibpath_overrides_runpath=yes |
12231 | ;; |
12734 | ;; |
12232 | freebsd3.01* | freebsdelf3.01*) |
12735 | freebsd3.[01]* | freebsdelf3.[01]*) |
12233 | shlibpath_overrides_runpath=yes |
12736 | shlibpath_overrides_runpath=yes |
12234 | hardcode_into_libs=yes |
12737 | hardcode_into_libs=yes |
12235 | ;; |
12738 | ;; |
12236 | *) # from 3.2 on |
12739 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
12740 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12237 | shlibpath_overrides_runpath=no |
12741 | shlibpath_overrides_runpath=no |
|
|
12742 | hardcode_into_libs=yes |
|
|
12743 | ;; |
|
|
12744 | freebsd*) # from 4.6 on |
|
|
12745 | shlibpath_overrides_runpath=yes |
12238 | hardcode_into_libs=yes |
12746 | hardcode_into_libs=yes |
12239 | ;; |
12747 | ;; |
12240 | esac |
12748 | esac |
12241 | ;; |
12749 | ;; |
12242 | |
12750 | |
… | |
… | |
12254 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12762 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12255 | # link against other versions. |
12763 | # link against other versions. |
12256 | version_type=sunos |
12764 | version_type=sunos |
12257 | need_lib_prefix=no |
12765 | need_lib_prefix=no |
12258 | need_version=no |
12766 | need_version=no |
12259 | case "$host_cpu" in |
12767 | case $host_cpu in |
12260 | ia64*) |
12768 | ia64*) |
12261 | shrext='.so' |
12769 | shrext_cmds='.so' |
12262 | hardcode_into_libs=yes |
12770 | hardcode_into_libs=yes |
12263 | dynamic_linker="$host_os dld.so" |
12771 | dynamic_linker="$host_os dld.so" |
12264 | shlibpath_var=LD_LIBRARY_PATH |
12772 | shlibpath_var=LD_LIBRARY_PATH |
12265 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12773 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
… | |
… | |
12271 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12779 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12272 | fi |
12780 | fi |
12273 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12274 | ;; |
12782 | ;; |
12275 | hppa*64*) |
12783 | hppa*64*) |
12276 | shrext='.sl' |
12784 | shrext_cmds='.sl' |
12277 | hardcode_into_libs=yes |
12785 | hardcode_into_libs=yes |
12278 | dynamic_linker="$host_os dld.sl" |
12786 | dynamic_linker="$host_os dld.sl" |
12279 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12787 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12280 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12788 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12282 | soname_spec='${libname}${release}${shared_ext}$major' |
12790 | soname_spec='${libname}${release}${shared_ext}$major' |
12283 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12791 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12284 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12792 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12285 | ;; |
12793 | ;; |
12286 | *) |
12794 | *) |
12287 | shrext='.sl' |
12795 | shrext_cmds='.sl' |
12288 | dynamic_linker="$host_os dld.sl" |
12796 | dynamic_linker="$host_os dld.sl" |
12289 | shlibpath_var=SHLIB_PATH |
12797 | shlibpath_var=SHLIB_PATH |
12290 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12798 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12292 | soname_spec='${libname}${release}${shared_ext}$major' |
12800 | soname_spec='${libname}${release}${shared_ext}$major' |
12293 | ;; |
12801 | ;; |
12294 | esac |
12802 | esac |
12295 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12803 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12296 | postinstall_cmds='chmod 555 $lib' |
12804 | postinstall_cmds='chmod 555 $lib' |
|
|
12805 | ;; |
|
|
12806 | |
|
|
12807 | interix3*) |
|
|
12808 | version_type=linux |
|
|
12809 | need_lib_prefix=no |
|
|
12810 | need_version=no |
|
|
12811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
12812 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
12813 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
12814 | shlibpath_var=LD_LIBRARY_PATH |
|
|
12815 | shlibpath_overrides_runpath=no |
|
|
12816 | hardcode_into_libs=yes |
12297 | ;; |
12817 | ;; |
12298 | |
12818 | |
12299 | irix5* | irix6* | nonstopux*) |
12819 | irix5* | irix6* | nonstopux*) |
12300 | case $host_os in |
12820 | case $host_os in |
12301 | nonstopux*) version_type=nonstopux ;; |
12821 | nonstopux*) version_type=nonstopux ;; |
… | |
… | |
12337 | linux*oldld* | linux*aout* | linux*coff*) |
12857 | linux*oldld* | linux*aout* | linux*coff*) |
12338 | dynamic_linker=no |
12858 | dynamic_linker=no |
12339 | ;; |
12859 | ;; |
12340 | |
12860 | |
12341 | # This must be Linux ELF. |
12861 | # This must be Linux ELF. |
12342 | linux*) |
12862 | linux* | k*bsd*-gnu) |
12343 | version_type=linux |
12863 | version_type=linux |
12344 | need_lib_prefix=no |
12864 | need_lib_prefix=no |
12345 | need_version=no |
12865 | need_version=no |
12346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12347 | soname_spec='${libname}${release}${shared_ext}$major' |
12867 | soname_spec='${libname}${release}${shared_ext}$major' |
… | |
… | |
12353 | # before this can be enabled. |
12873 | # before this can be enabled. |
12354 | hardcode_into_libs=yes |
12874 | hardcode_into_libs=yes |
12355 | |
12875 | |
12356 | # Append ld.so.conf contents to the search path |
12876 | # Append ld.so.conf contents to the search path |
12357 | if test -f /etc/ld.so.conf; then |
12877 | if test -f /etc/ld.so.conf; then |
12358 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
12878 | 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' ' '` |
12359 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
12879 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12360 | fi |
12880 | fi |
12361 | |
12881 | |
12362 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12882 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12363 | # powerpc, because MkLinux only supported shared libraries with the |
12883 | # powerpc, because MkLinux only supported shared libraries with the |
12364 | # GNU dynamic linker. Since this was broken with cross compilers, |
12884 | # GNU dynamic linker. Since this was broken with cross compilers, |
… | |
… | |
12366 | # people can always --disable-shared, the test was removed, and we |
12886 | # people can always --disable-shared, the test was removed, and we |
12367 | # assume the GNU/Linux dynamic linker is in use. |
12887 | # assume the GNU/Linux dynamic linker is in use. |
12368 | dynamic_linker='GNU/Linux ld.so' |
12888 | dynamic_linker='GNU/Linux ld.so' |
12369 | ;; |
12889 | ;; |
12370 | |
12890 | |
12371 | knetbsd*-gnu) |
12891 | netbsdelf*-gnu) |
12372 | version_type=linux |
12892 | version_type=linux |
12373 | need_lib_prefix=no |
12893 | need_lib_prefix=no |
12374 | need_version=no |
12894 | need_version=no |
12375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12376 | soname_spec='${libname}${release}${shared_ext}$major' |
12896 | soname_spec='${libname}${release}${shared_ext}$major' |
12377 | shlibpath_var=LD_LIBRARY_PATH |
12897 | shlibpath_var=LD_LIBRARY_PATH |
12378 | shlibpath_overrides_runpath=no |
12898 | shlibpath_overrides_runpath=no |
12379 | hardcode_into_libs=yes |
12899 | hardcode_into_libs=yes |
12380 | dynamic_linker='GNU ld.so' |
12900 | dynamic_linker='NetBSD ld.elf_so' |
12381 | ;; |
12901 | ;; |
12382 | |
12902 | |
12383 | netbsd*) |
12903 | netbsd*) |
12384 | version_type=sunos |
12904 | version_type=sunos |
12385 | need_lib_prefix=no |
12905 | need_lib_prefix=no |
… | |
… | |
12415 | shlibpath_overrides_runpath=yes |
12935 | shlibpath_overrides_runpath=yes |
12416 | ;; |
12936 | ;; |
12417 | |
12937 | |
12418 | openbsd*) |
12938 | openbsd*) |
12419 | version_type=sunos |
12939 | version_type=sunos |
|
|
12940 | sys_lib_dlsearch_path_spec="/usr/lib" |
12420 | need_lib_prefix=no |
12941 | need_lib_prefix=no |
12421 | need_version=yes |
12942 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
12943 | case $host_os in |
|
|
12944 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
12945 | *) need_version=no ;; |
|
|
12946 | esac |
12422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12423 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12948 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12424 | shlibpath_var=LD_LIBRARY_PATH |
12949 | shlibpath_var=LD_LIBRARY_PATH |
12425 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12950 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12426 | case $host_os in |
12951 | case $host_os in |
… | |
… | |
12436 | fi |
12961 | fi |
12437 | ;; |
12962 | ;; |
12438 | |
12963 | |
12439 | os2*) |
12964 | os2*) |
12440 | libname_spec='$name' |
12965 | libname_spec='$name' |
12441 | shrext=".dll" |
12966 | shrext_cmds=".dll" |
12442 | need_lib_prefix=no |
12967 | need_lib_prefix=no |
12443 | library_names_spec='$libname${shared_ext} $libname.a' |
12968 | library_names_spec='$libname${shared_ext} $libname.a' |
12444 | dynamic_linker='OS/2 ld.exe' |
12969 | dynamic_linker='OS/2 ld.exe' |
12445 | shlibpath_var=LIBPATH |
12970 | shlibpath_var=LIBPATH |
12446 | ;; |
12971 | ;; |
… | |
… | |
12452 | soname_spec='${libname}${release}${shared_ext}$major' |
12977 | soname_spec='${libname}${release}${shared_ext}$major' |
12453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12454 | shlibpath_var=LD_LIBRARY_PATH |
12979 | shlibpath_var=LD_LIBRARY_PATH |
12455 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12980 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12456 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12981 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12457 | ;; |
|
|
12458 | |
|
|
12459 | sco3.2v5*) |
|
|
12460 | version_type=osf |
|
|
12461 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
12462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
12463 | shlibpath_var=LD_LIBRARY_PATH |
|
|
12464 | ;; |
12982 | ;; |
12465 | |
12983 | |
12466 | solaris*) |
12984 | solaris*) |
12467 | version_type=linux |
12985 | version_type=linux |
12468 | need_lib_prefix=no |
12986 | need_lib_prefix=no |
… | |
… | |
12486 | need_lib_prefix=no |
13004 | need_lib_prefix=no |
12487 | fi |
13005 | fi |
12488 | need_version=yes |
13006 | need_version=yes |
12489 | ;; |
13007 | ;; |
12490 | |
13008 | |
12491 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13009 | sysv4 | sysv4.3*) |
12492 | version_type=linux |
13010 | version_type=linux |
12493 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12494 | soname_spec='${libname}${release}${shared_ext}$major' |
13012 | soname_spec='${libname}${release}${shared_ext}$major' |
12495 | shlibpath_var=LD_LIBRARY_PATH |
13013 | shlibpath_var=LD_LIBRARY_PATH |
12496 | case $host_vendor in |
13014 | case $host_vendor in |
… | |
… | |
12519 | soname_spec='$libname${shared_ext}.$major' |
13037 | soname_spec='$libname${shared_ext}.$major' |
12520 | shlibpath_var=LD_LIBRARY_PATH |
13038 | shlibpath_var=LD_LIBRARY_PATH |
12521 | fi |
13039 | fi |
12522 | ;; |
13040 | ;; |
12523 | |
13041 | |
|
|
13042 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
13043 | version_type=freebsd-elf |
|
|
13044 | need_lib_prefix=no |
|
|
13045 | need_version=no |
|
|
13046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
13047 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13048 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13049 | hardcode_into_libs=yes |
|
|
13050 | if test "$with_gnu_ld" = yes; then |
|
|
13051 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
13052 | shlibpath_overrides_runpath=no |
|
|
13053 | else |
|
|
13054 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
13055 | shlibpath_overrides_runpath=yes |
|
|
13056 | case $host_os in |
|
|
13057 | sco3.2v5*) |
|
|
13058 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
13059 | ;; |
|
|
13060 | esac |
|
|
13061 | fi |
|
|
13062 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
13063 | ;; |
|
|
13064 | |
12524 | uts4*) |
13065 | uts4*) |
12525 | version_type=linux |
13066 | version_type=linux |
12526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12527 | soname_spec='${libname}${release}${shared_ext}$major' |
13068 | soname_spec='${libname}${release}${shared_ext}$major' |
12528 | shlibpath_var=LD_LIBRARY_PATH |
13069 | shlibpath_var=LD_LIBRARY_PATH |
… | |
… | |
12534 | esac |
13075 | esac |
12535 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13076 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12536 | echo "${ECHO_T}$dynamic_linker" >&6; } |
13077 | echo "${ECHO_T}$dynamic_linker" >&6; } |
12537 | test "$dynamic_linker" = no && can_build_shared=no |
13078 | test "$dynamic_linker" = no && can_build_shared=no |
12538 | |
13079 | |
|
|
13080 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
13081 | if test "$GCC" = yes; then |
|
|
13082 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
13083 | fi |
|
|
13084 | |
12539 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13085 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12540 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
13086 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
12541 | hardcode_action_CXX= |
13087 | hardcode_action_CXX= |
12542 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13088 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12543 | test -n "$runpath_var CXX" || \ |
13089 | test -n "$runpath_var_CXX" || \ |
12544 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
13090 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12545 | |
13091 | |
12546 | # We can hardcode non-existant directories. |
13092 | # We can hardcode non-existant directories. |
12547 | if test "$hardcode_direct_CXX" != no && |
13093 | if test "$hardcode_direct_CXX" != no && |
12548 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13094 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12549 | # have to relink, otherwise we might link with an installed library |
13095 | # have to relink, otherwise we might link with an installed library |
… | |
… | |
12571 | test "$enable_shared" = no; then |
13117 | test "$enable_shared" = no; then |
12572 | # Fast installation is not necessary |
13118 | # Fast installation is not necessary |
12573 | enable_fast_install=needless |
13119 | enable_fast_install=needless |
12574 | fi |
13120 | fi |
12575 | |
13121 | |
12576 | striplib= |
|
|
12577 | old_striplib= |
|
|
12578 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
12579 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
|
|
12580 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
12581 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
12582 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
12583 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12584 | echo "${ECHO_T}yes" >&6; } |
|
|
12585 | else |
|
|
12586 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
12587 | case $host_os in |
|
|
12588 | darwin*) |
|
|
12589 | if test -n "$STRIP" ; then |
|
|
12590 | striplib="$STRIP -x" |
|
|
12591 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12592 | echo "${ECHO_T}yes" >&6; } |
|
|
12593 | else |
|
|
12594 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12595 | echo "${ECHO_T}no" >&6; } |
|
|
12596 | fi |
|
|
12597 | ;; |
|
|
12598 | *) |
|
|
12599 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12600 | echo "${ECHO_T}no" >&6; } |
|
|
12601 | ;; |
|
|
12602 | esac |
|
|
12603 | fi |
|
|
12604 | |
|
|
12605 | if test "x$enable_dlopen" != xyes; then |
|
|
12606 | enable_dlopen=unknown |
|
|
12607 | enable_dlopen_self=unknown |
|
|
12608 | enable_dlopen_self_static=unknown |
|
|
12609 | else |
|
|
12610 | lt_cv_dlopen=no |
|
|
12611 | lt_cv_dlopen_libs= |
|
|
12612 | |
|
|
12613 | case $host_os in |
|
|
12614 | beos*) |
|
|
12615 | lt_cv_dlopen="load_add_on" |
|
|
12616 | lt_cv_dlopen_libs= |
|
|
12617 | lt_cv_dlopen_self=yes |
|
|
12618 | ;; |
|
|
12619 | |
|
|
12620 | mingw* | pw32*) |
|
|
12621 | lt_cv_dlopen="LoadLibrary" |
|
|
12622 | lt_cv_dlopen_libs= |
|
|
12623 | ;; |
|
|
12624 | |
|
|
12625 | cygwin*) |
|
|
12626 | lt_cv_dlopen="dlopen" |
|
|
12627 | lt_cv_dlopen_libs= |
|
|
12628 | ;; |
|
|
12629 | |
|
|
12630 | darwin*) |
|
|
12631 | # if libdl is installed we need to link against it |
|
|
12632 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
12633 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
|
12634 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
12635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12636 | else |
|
|
12637 | ac_check_lib_save_LIBS=$LIBS |
|
|
12638 | LIBS="-ldl $LIBS" |
|
|
12639 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12640 | /* confdefs.h. */ |
|
|
12641 | _ACEOF |
|
|
12642 | cat confdefs.h >>conftest.$ac_ext |
|
|
12643 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12644 | /* end confdefs.h. */ |
|
|
12645 | |
|
|
12646 | /* Override any GCC internal prototype to avoid an error. |
|
|
12647 | Use char because int might match the return type of a GCC |
|
|
12648 | builtin and then its argument prototype would still apply. */ |
|
|
12649 | #ifdef __cplusplus |
|
|
12650 | extern "C" |
|
|
12651 | #endif |
|
|
12652 | char dlopen (); |
|
|
12653 | int |
|
|
12654 | main () |
|
|
12655 | { |
|
|
12656 | return dlopen (); |
|
|
12657 | ; |
|
|
12658 | return 0; |
|
|
12659 | } |
|
|
12660 | _ACEOF |
|
|
12661 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12662 | if { (ac_try="$ac_link" |
|
|
12663 | case "(($ac_try" in |
|
|
12664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12665 | *) ac_try_echo=$ac_try;; |
|
|
12666 | esac |
|
|
12667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12668 | (eval "$ac_link") 2>conftest.er1 |
|
|
12669 | ac_status=$? |
|
|
12670 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12671 | rm -f conftest.er1 |
|
|
12672 | cat conftest.err >&5 |
|
|
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12674 | (exit $ac_status); } && { |
|
|
12675 | test -z "$ac_cxx_werror_flag" || |
|
|
12676 | test ! -s conftest.err |
|
|
12677 | } && test -s conftest$ac_exeext && |
|
|
12678 | $as_test_x conftest$ac_exeext; then |
|
|
12679 | ac_cv_lib_dl_dlopen=yes |
|
|
12680 | else |
|
|
12681 | echo "$as_me: failed program was:" >&5 |
|
|
12682 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12683 | |
|
|
12684 | ac_cv_lib_dl_dlopen=no |
|
|
12685 | fi |
|
|
12686 | |
|
|
12687 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12688 | conftest$ac_exeext conftest.$ac_ext |
|
|
12689 | LIBS=$ac_check_lib_save_LIBS |
|
|
12690 | fi |
|
|
12691 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
12692 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
|
12693 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
12694 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
12695 | else |
|
|
12696 | |
|
|
12697 | lt_cv_dlopen="dyld" |
|
|
12698 | lt_cv_dlopen_libs= |
|
|
12699 | lt_cv_dlopen_self=yes |
|
|
12700 | |
|
|
12701 | fi |
|
|
12702 | |
|
|
12703 | ;; |
|
|
12704 | |
|
|
12705 | *) |
|
|
12706 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
12707 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
|
|
12708 | if test "${ac_cv_func_shl_load+set}" = set; then |
|
|
12709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12710 | else |
|
|
12711 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12712 | /* confdefs.h. */ |
|
|
12713 | _ACEOF |
|
|
12714 | cat confdefs.h >>conftest.$ac_ext |
|
|
12715 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12716 | /* end confdefs.h. */ |
|
|
12717 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
12718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12719 | #define shl_load innocuous_shl_load |
|
|
12720 | |
|
|
12721 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12722 | which can conflict with char shl_load (); below. |
|
|
12723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12724 | <limits.h> exists even on freestanding compilers. */ |
|
|
12725 | |
|
|
12726 | #ifdef __STDC__ |
|
|
12727 | # include <limits.h> |
|
|
12728 | #else |
|
|
12729 | # include <assert.h> |
|
|
12730 | #endif |
|
|
12731 | |
|
|
12732 | #undef shl_load |
|
|
12733 | |
|
|
12734 | /* Override any GCC internal prototype to avoid an error. |
|
|
12735 | Use char because int might match the return type of a GCC |
|
|
12736 | builtin and then its argument prototype would still apply. */ |
|
|
12737 | #ifdef __cplusplus |
|
|
12738 | extern "C" |
|
|
12739 | #endif |
|
|
12740 | char shl_load (); |
|
|
12741 | /* The GNU C library defines this for functions which it implements |
|
|
12742 | to always fail with ENOSYS. Some functions are actually named |
|
|
12743 | something starting with __ and the normal name is an alias. */ |
|
|
12744 | #if defined __stub_shl_load || defined __stub___shl_load |
|
|
12745 | choke me |
|
|
12746 | #endif |
|
|
12747 | |
|
|
12748 | int |
|
|
12749 | main () |
|
|
12750 | { |
|
|
12751 | return shl_load (); |
|
|
12752 | ; |
|
|
12753 | return 0; |
|
|
12754 | } |
|
|
12755 | _ACEOF |
|
|
12756 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12757 | if { (ac_try="$ac_link" |
|
|
12758 | case "(($ac_try" in |
|
|
12759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12760 | *) ac_try_echo=$ac_try;; |
|
|
12761 | esac |
|
|
12762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12763 | (eval "$ac_link") 2>conftest.er1 |
|
|
12764 | ac_status=$? |
|
|
12765 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12766 | rm -f conftest.er1 |
|
|
12767 | cat conftest.err >&5 |
|
|
12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12769 | (exit $ac_status); } && { |
|
|
12770 | test -z "$ac_cxx_werror_flag" || |
|
|
12771 | test ! -s conftest.err |
|
|
12772 | } && test -s conftest$ac_exeext && |
|
|
12773 | $as_test_x conftest$ac_exeext; then |
|
|
12774 | ac_cv_func_shl_load=yes |
|
|
12775 | else |
|
|
12776 | echo "$as_me: failed program was:" >&5 |
|
|
12777 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12778 | |
|
|
12779 | ac_cv_func_shl_load=no |
|
|
12780 | fi |
|
|
12781 | |
|
|
12782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12783 | conftest$ac_exeext conftest.$ac_ext |
|
|
12784 | fi |
|
|
12785 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
12786 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
|
|
12787 | if test $ac_cv_func_shl_load = yes; then |
|
|
12788 | lt_cv_dlopen="shl_load" |
|
|
12789 | else |
|
|
12790 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
12791 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
|
|
12792 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
12793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12794 | else |
|
|
12795 | ac_check_lib_save_LIBS=$LIBS |
|
|
12796 | LIBS="-ldld $LIBS" |
|
|
12797 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12798 | /* confdefs.h. */ |
|
|
12799 | _ACEOF |
|
|
12800 | cat confdefs.h >>conftest.$ac_ext |
|
|
12801 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12802 | /* end confdefs.h. */ |
|
|
12803 | |
|
|
12804 | /* Override any GCC internal prototype to avoid an error. |
|
|
12805 | Use char because int might match the return type of a GCC |
|
|
12806 | builtin and then its argument prototype would still apply. */ |
|
|
12807 | #ifdef __cplusplus |
|
|
12808 | extern "C" |
|
|
12809 | #endif |
|
|
12810 | char shl_load (); |
|
|
12811 | int |
|
|
12812 | main () |
|
|
12813 | { |
|
|
12814 | return shl_load (); |
|
|
12815 | ; |
|
|
12816 | return 0; |
|
|
12817 | } |
|
|
12818 | _ACEOF |
|
|
12819 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12820 | if { (ac_try="$ac_link" |
|
|
12821 | case "(($ac_try" in |
|
|
12822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12823 | *) ac_try_echo=$ac_try;; |
|
|
12824 | esac |
|
|
12825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12826 | (eval "$ac_link") 2>conftest.er1 |
|
|
12827 | ac_status=$? |
|
|
12828 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12829 | rm -f conftest.er1 |
|
|
12830 | cat conftest.err >&5 |
|
|
12831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12832 | (exit $ac_status); } && { |
|
|
12833 | test -z "$ac_cxx_werror_flag" || |
|
|
12834 | test ! -s conftest.err |
|
|
12835 | } && test -s conftest$ac_exeext && |
|
|
12836 | $as_test_x conftest$ac_exeext; then |
|
|
12837 | ac_cv_lib_dld_shl_load=yes |
|
|
12838 | else |
|
|
12839 | echo "$as_me: failed program was:" >&5 |
|
|
12840 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12841 | |
|
|
12842 | ac_cv_lib_dld_shl_load=no |
|
|
12843 | fi |
|
|
12844 | |
|
|
12845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12846 | conftest$ac_exeext conftest.$ac_ext |
|
|
12847 | LIBS=$ac_check_lib_save_LIBS |
|
|
12848 | fi |
|
|
12849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
12850 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
|
|
12851 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
12852 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
|
12853 | else |
|
|
12854 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
12855 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
|
|
12856 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
12857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12858 | else |
|
|
12859 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12860 | /* confdefs.h. */ |
|
|
12861 | _ACEOF |
|
|
12862 | cat confdefs.h >>conftest.$ac_ext |
|
|
12863 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12864 | /* end confdefs.h. */ |
|
|
12865 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
12866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12867 | #define dlopen innocuous_dlopen |
|
|
12868 | |
|
|
12869 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12870 | which can conflict with char dlopen (); below. |
|
|
12871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12872 | <limits.h> exists even on freestanding compilers. */ |
|
|
12873 | |
|
|
12874 | #ifdef __STDC__ |
|
|
12875 | # include <limits.h> |
|
|
12876 | #else |
|
|
12877 | # include <assert.h> |
|
|
12878 | #endif |
|
|
12879 | |
|
|
12880 | #undef dlopen |
|
|
12881 | |
|
|
12882 | /* Override any GCC internal prototype to avoid an error. |
|
|
12883 | Use char because int might match the return type of a GCC |
|
|
12884 | builtin and then its argument prototype would still apply. */ |
|
|
12885 | #ifdef __cplusplus |
|
|
12886 | extern "C" |
|
|
12887 | #endif |
|
|
12888 | char dlopen (); |
|
|
12889 | /* The GNU C library defines this for functions which it implements |
|
|
12890 | to always fail with ENOSYS. Some functions are actually named |
|
|
12891 | something starting with __ and the normal name is an alias. */ |
|
|
12892 | #if defined __stub_dlopen || defined __stub___dlopen |
|
|
12893 | choke me |
|
|
12894 | #endif |
|
|
12895 | |
|
|
12896 | int |
|
|
12897 | main () |
|
|
12898 | { |
|
|
12899 | return dlopen (); |
|
|
12900 | ; |
|
|
12901 | return 0; |
|
|
12902 | } |
|
|
12903 | _ACEOF |
|
|
12904 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12905 | if { (ac_try="$ac_link" |
|
|
12906 | case "(($ac_try" in |
|
|
12907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12908 | *) ac_try_echo=$ac_try;; |
|
|
12909 | esac |
|
|
12910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12911 | (eval "$ac_link") 2>conftest.er1 |
|
|
12912 | ac_status=$? |
|
|
12913 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12914 | rm -f conftest.er1 |
|
|
12915 | cat conftest.err >&5 |
|
|
12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12917 | (exit $ac_status); } && { |
|
|
12918 | test -z "$ac_cxx_werror_flag" || |
|
|
12919 | test ! -s conftest.err |
|
|
12920 | } && test -s conftest$ac_exeext && |
|
|
12921 | $as_test_x conftest$ac_exeext; then |
|
|
12922 | ac_cv_func_dlopen=yes |
|
|
12923 | else |
|
|
12924 | echo "$as_me: failed program was:" >&5 |
|
|
12925 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12926 | |
|
|
12927 | ac_cv_func_dlopen=no |
|
|
12928 | fi |
|
|
12929 | |
|
|
12930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12931 | conftest$ac_exeext conftest.$ac_ext |
|
|
12932 | fi |
|
|
12933 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
12934 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
|
|
12935 | if test $ac_cv_func_dlopen = yes; then |
|
|
12936 | lt_cv_dlopen="dlopen" |
|
|
12937 | else |
|
|
12938 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
12939 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
|
12940 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
12941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12942 | else |
|
|
12943 | ac_check_lib_save_LIBS=$LIBS |
|
|
12944 | LIBS="-ldl $LIBS" |
|
|
12945 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12946 | /* confdefs.h. */ |
|
|
12947 | _ACEOF |
|
|
12948 | cat confdefs.h >>conftest.$ac_ext |
|
|
12949 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12950 | /* end confdefs.h. */ |
|
|
12951 | |
|
|
12952 | /* Override any GCC internal prototype to avoid an error. |
|
|
12953 | Use char because int might match the return type of a GCC |
|
|
12954 | builtin and then its argument prototype would still apply. */ |
|
|
12955 | #ifdef __cplusplus |
|
|
12956 | extern "C" |
|
|
12957 | #endif |
|
|
12958 | char dlopen (); |
|
|
12959 | int |
|
|
12960 | main () |
|
|
12961 | { |
|
|
12962 | return dlopen (); |
|
|
12963 | ; |
|
|
12964 | return 0; |
|
|
12965 | } |
|
|
12966 | _ACEOF |
|
|
12967 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12968 | if { (ac_try="$ac_link" |
|
|
12969 | case "(($ac_try" in |
|
|
12970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12971 | *) ac_try_echo=$ac_try;; |
|
|
12972 | esac |
|
|
12973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12974 | (eval "$ac_link") 2>conftest.er1 |
|
|
12975 | ac_status=$? |
|
|
12976 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12977 | rm -f conftest.er1 |
|
|
12978 | cat conftest.err >&5 |
|
|
12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12980 | (exit $ac_status); } && { |
|
|
12981 | test -z "$ac_cxx_werror_flag" || |
|
|
12982 | test ! -s conftest.err |
|
|
12983 | } && test -s conftest$ac_exeext && |
|
|
12984 | $as_test_x conftest$ac_exeext; then |
|
|
12985 | ac_cv_lib_dl_dlopen=yes |
|
|
12986 | else |
|
|
12987 | echo "$as_me: failed program was:" >&5 |
|
|
12988 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12989 | |
|
|
12990 | ac_cv_lib_dl_dlopen=no |
|
|
12991 | fi |
|
|
12992 | |
|
|
12993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12994 | conftest$ac_exeext conftest.$ac_ext |
|
|
12995 | LIBS=$ac_check_lib_save_LIBS |
|
|
12996 | fi |
|
|
12997 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
12998 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
|
12999 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
13000 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
13001 | else |
|
|
13002 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
13003 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
|
|
13004 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
13005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13006 | else |
|
|
13007 | ac_check_lib_save_LIBS=$LIBS |
|
|
13008 | LIBS="-lsvld $LIBS" |
|
|
13009 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13010 | /* confdefs.h. */ |
|
|
13011 | _ACEOF |
|
|
13012 | cat confdefs.h >>conftest.$ac_ext |
|
|
13013 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13014 | /* end confdefs.h. */ |
|
|
13015 | |
|
|
13016 | /* Override any GCC internal prototype to avoid an error. |
|
|
13017 | Use char because int might match the return type of a GCC |
|
|
13018 | builtin and then its argument prototype would still apply. */ |
|
|
13019 | #ifdef __cplusplus |
|
|
13020 | extern "C" |
|
|
13021 | #endif |
|
|
13022 | char dlopen (); |
|
|
13023 | int |
|
|
13024 | main () |
|
|
13025 | { |
|
|
13026 | return dlopen (); |
|
|
13027 | ; |
|
|
13028 | return 0; |
|
|
13029 | } |
|
|
13030 | _ACEOF |
|
|
13031 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13032 | if { (ac_try="$ac_link" |
|
|
13033 | case "(($ac_try" in |
|
|
13034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
13035 | *) ac_try_echo=$ac_try;; |
|
|
13036 | esac |
|
|
13037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
13038 | (eval "$ac_link") 2>conftest.er1 |
|
|
13039 | ac_status=$? |
|
|
13040 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13041 | rm -f conftest.er1 |
|
|
13042 | cat conftest.err >&5 |
|
|
13043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13044 | (exit $ac_status); } && { |
|
|
13045 | test -z "$ac_cxx_werror_flag" || |
|
|
13046 | test ! -s conftest.err |
|
|
13047 | } && test -s conftest$ac_exeext && |
|
|
13048 | $as_test_x conftest$ac_exeext; then |
|
|
13049 | ac_cv_lib_svld_dlopen=yes |
|
|
13050 | else |
|
|
13051 | echo "$as_me: failed program was:" >&5 |
|
|
13052 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13053 | |
|
|
13054 | ac_cv_lib_svld_dlopen=no |
|
|
13055 | fi |
|
|
13056 | |
|
|
13057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
13058 | conftest$ac_exeext conftest.$ac_ext |
|
|
13059 | LIBS=$ac_check_lib_save_LIBS |
|
|
13060 | fi |
|
|
13061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
13062 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
|
|
13063 | if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
13064 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
13065 | else |
|
|
13066 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
13067 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
|
|
13068 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
|
13069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13070 | else |
|
|
13071 | ac_check_lib_save_LIBS=$LIBS |
|
|
13072 | LIBS="-ldld $LIBS" |
|
|
13073 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13074 | /* confdefs.h. */ |
|
|
13075 | _ACEOF |
|
|
13076 | cat confdefs.h >>conftest.$ac_ext |
|
|
13077 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13078 | /* end confdefs.h. */ |
|
|
13079 | |
|
|
13080 | /* Override any GCC internal prototype to avoid an error. |
|
|
13081 | Use char because int might match the return type of a GCC |
|
|
13082 | builtin and then its argument prototype would still apply. */ |
|
|
13083 | #ifdef __cplusplus |
|
|
13084 | extern "C" |
|
|
13085 | #endif |
|
|
13086 | char dld_link (); |
|
|
13087 | int |
|
|
13088 | main () |
|
|
13089 | { |
|
|
13090 | return dld_link (); |
|
|
13091 | ; |
|
|
13092 | return 0; |
|
|
13093 | } |
|
|
13094 | _ACEOF |
|
|
13095 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13096 | if { (ac_try="$ac_link" |
|
|
13097 | case "(($ac_try" in |
|
|
13098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
13099 | *) ac_try_echo=$ac_try;; |
|
|
13100 | esac |
|
|
13101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
13102 | (eval "$ac_link") 2>conftest.er1 |
|
|
13103 | ac_status=$? |
|
|
13104 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13105 | rm -f conftest.er1 |
|
|
13106 | cat conftest.err >&5 |
|
|
13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13108 | (exit $ac_status); } && { |
|
|
13109 | test -z "$ac_cxx_werror_flag" || |
|
|
13110 | test ! -s conftest.err |
|
|
13111 | } && test -s conftest$ac_exeext && |
|
|
13112 | $as_test_x conftest$ac_exeext; then |
|
|
13113 | ac_cv_lib_dld_dld_link=yes |
|
|
13114 | else |
|
|
13115 | echo "$as_me: failed program was:" >&5 |
|
|
13116 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13117 | |
|
|
13118 | ac_cv_lib_dld_dld_link=no |
|
|
13119 | fi |
|
|
13120 | |
|
|
13121 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
13122 | conftest$ac_exeext conftest.$ac_ext |
|
|
13123 | LIBS=$ac_check_lib_save_LIBS |
|
|
13124 | fi |
|
|
13125 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
13126 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
|
|
13127 | if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
13128 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
13129 | fi |
|
|
13130 | |
|
|
13131 | |
|
|
13132 | fi |
|
|
13133 | |
|
|
13134 | |
|
|
13135 | fi |
|
|
13136 | |
|
|
13137 | |
|
|
13138 | fi |
|
|
13139 | |
|
|
13140 | |
|
|
13141 | fi |
|
|
13142 | |
|
|
13143 | |
|
|
13144 | fi |
|
|
13145 | |
|
|
13146 | ;; |
|
|
13147 | esac |
|
|
13148 | |
|
|
13149 | if test "x$lt_cv_dlopen" != xno; then |
|
|
13150 | enable_dlopen=yes |
|
|
13151 | else |
|
|
13152 | enable_dlopen=no |
|
|
13153 | fi |
|
|
13154 | |
|
|
13155 | case $lt_cv_dlopen in |
|
|
13156 | dlopen) |
|
|
13157 | save_CPPFLAGS="$CPPFLAGS" |
|
|
13158 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
13159 | |
|
|
13160 | save_LDFLAGS="$LDFLAGS" |
|
|
13161 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
13162 | |
|
|
13163 | save_LIBS="$LIBS" |
|
|
13164 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
13165 | |
|
|
13166 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
13167 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
|
|
13168 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
13169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13170 | else |
|
|
13171 | if test "$cross_compiling" = yes; then : |
|
|
13172 | lt_cv_dlopen_self=cross |
|
|
13173 | else |
|
|
13174 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
13175 | lt_status=$lt_dlunknown |
|
|
13176 | cat > conftest.$ac_ext <<EOF |
|
|
13177 | #line 13177 "configure" |
|
|
13178 | #include "confdefs.h" |
|
|
13179 | |
|
|
13180 | #if HAVE_DLFCN_H |
|
|
13181 | #include <dlfcn.h> |
|
|
13182 | #endif |
|
|
13183 | |
|
|
13184 | #include <stdio.h> |
|
|
13185 | |
|
|
13186 | #ifdef RTLD_GLOBAL |
|
|
13187 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
13188 | #else |
|
|
13189 | # ifdef DL_GLOBAL |
|
|
13190 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
13191 | # else |
|
|
13192 | # define LT_DLGLOBAL 0 |
|
|
13193 | # endif |
|
|
13194 | #endif |
|
|
13195 | |
|
|
13196 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
13197 | find out it does not work in some platform. */ |
|
|
13198 | #ifndef LT_DLLAZY_OR_NOW |
|
|
13199 | # ifdef RTLD_LAZY |
|
|
13200 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
13201 | # else |
|
|
13202 | # ifdef DL_LAZY |
|
|
13203 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
13204 | # else |
|
|
13205 | # ifdef RTLD_NOW |
|
|
13206 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
13207 | # else |
|
|
13208 | # ifdef DL_NOW |
|
|
13209 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
13210 | # else |
|
|
13211 | # define LT_DLLAZY_OR_NOW 0 |
|
|
13212 | # endif |
|
|
13213 | # endif |
|
|
13214 | # endif |
|
|
13215 | # endif |
|
|
13216 | #endif |
|
|
13217 | |
|
|
13218 | #ifdef __cplusplus |
|
|
13219 | extern "C" void exit (int); |
|
|
13220 | #endif |
|
|
13221 | |
|
|
13222 | void fnord() { int i=42;} |
|
|
13223 | int main () |
|
|
13224 | { |
|
|
13225 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
13226 | int status = $lt_dlunknown; |
|
|
13227 | |
|
|
13228 | if (self) |
|
|
13229 | { |
|
|
13230 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
13231 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
13232 | /* dlclose (self); */ |
|
|
13233 | } |
|
|
13234 | |
|
|
13235 | exit (status); |
|
|
13236 | } |
|
|
13237 | EOF |
|
|
13238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13239 | (eval $ac_link) 2>&5 |
|
|
13240 | ac_status=$? |
|
|
13241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13242 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
13243 | (./conftest; exit; ) 2>/dev/null |
|
|
13244 | lt_status=$? |
|
|
13245 | case x$lt_status in |
|
|
13246 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
13247 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
13248 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
13249 | esac |
|
|
13250 | else : |
|
|
13251 | # compilation failed |
|
|
13252 | lt_cv_dlopen_self=no |
|
|
13253 | fi |
|
|
13254 | fi |
|
|
13255 | rm -fr conftest* |
|
|
13256 | |
|
|
13257 | |
|
|
13258 | fi |
|
|
13259 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
13260 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
|
|
13261 | |
|
|
13262 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
13263 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
13264 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
13265 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
|
|
13266 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
13267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13268 | else |
|
|
13269 | if test "$cross_compiling" = yes; then : |
|
|
13270 | lt_cv_dlopen_self_static=cross |
|
|
13271 | else |
|
|
13272 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
13273 | lt_status=$lt_dlunknown |
|
|
13274 | cat > conftest.$ac_ext <<EOF |
|
|
13275 | #line 13275 "configure" |
|
|
13276 | #include "confdefs.h" |
|
|
13277 | |
|
|
13278 | #if HAVE_DLFCN_H |
|
|
13279 | #include <dlfcn.h> |
|
|
13280 | #endif |
|
|
13281 | |
|
|
13282 | #include <stdio.h> |
|
|
13283 | |
|
|
13284 | #ifdef RTLD_GLOBAL |
|
|
13285 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
13286 | #else |
|
|
13287 | # ifdef DL_GLOBAL |
|
|
13288 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
13289 | # else |
|
|
13290 | # define LT_DLGLOBAL 0 |
|
|
13291 | # endif |
|
|
13292 | #endif |
|
|
13293 | |
|
|
13294 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
13295 | find out it does not work in some platform. */ |
|
|
13296 | #ifndef LT_DLLAZY_OR_NOW |
|
|
13297 | # ifdef RTLD_LAZY |
|
|
13298 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
13299 | # else |
|
|
13300 | # ifdef DL_LAZY |
|
|
13301 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
13302 | # else |
|
|
13303 | # ifdef RTLD_NOW |
|
|
13304 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
13305 | # else |
|
|
13306 | # ifdef DL_NOW |
|
|
13307 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
13308 | # else |
|
|
13309 | # define LT_DLLAZY_OR_NOW 0 |
|
|
13310 | # endif |
|
|
13311 | # endif |
|
|
13312 | # endif |
|
|
13313 | # endif |
|
|
13314 | #endif |
|
|
13315 | |
|
|
13316 | #ifdef __cplusplus |
|
|
13317 | extern "C" void exit (int); |
|
|
13318 | #endif |
|
|
13319 | |
|
|
13320 | void fnord() { int i=42;} |
|
|
13321 | int main () |
|
|
13322 | { |
|
|
13323 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
13324 | int status = $lt_dlunknown; |
|
|
13325 | |
|
|
13326 | if (self) |
|
|
13327 | { |
|
|
13328 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
13329 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
13330 | /* dlclose (self); */ |
|
|
13331 | } |
|
|
13332 | |
|
|
13333 | exit (status); |
|
|
13334 | } |
|
|
13335 | EOF |
|
|
13336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13337 | (eval $ac_link) 2>&5 |
|
|
13338 | ac_status=$? |
|
|
13339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13340 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
13341 | (./conftest; exit; ) 2>/dev/null |
|
|
13342 | lt_status=$? |
|
|
13343 | case x$lt_status in |
|
|
13344 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
13345 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
13346 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
13347 | esac |
|
|
13348 | else : |
|
|
13349 | # compilation failed |
|
|
13350 | lt_cv_dlopen_self_static=no |
|
|
13351 | fi |
|
|
13352 | fi |
|
|
13353 | rm -fr conftest* |
|
|
13354 | |
|
|
13355 | |
|
|
13356 | fi |
|
|
13357 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
13358 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
|
|
13359 | fi |
|
|
13360 | |
|
|
13361 | CPPFLAGS="$save_CPPFLAGS" |
|
|
13362 | LDFLAGS="$save_LDFLAGS" |
|
|
13363 | LIBS="$save_LIBS" |
|
|
13364 | ;; |
|
|
13365 | esac |
|
|
13366 | |
|
|
13367 | case $lt_cv_dlopen_self in |
|
|
13368 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
13369 | *) enable_dlopen_self=unknown ;; |
|
|
13370 | esac |
|
|
13371 | |
|
|
13372 | case $lt_cv_dlopen_self_static in |
|
|
13373 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
13374 | *) enable_dlopen_self_static=unknown ;; |
|
|
13375 | esac |
|
|
13376 | fi |
|
|
13377 | |
|
|
13378 | |
13122 | |
13379 | # The else clause should only fire when bootstrapping the |
13123 | # The else clause should only fire when bootstrapping the |
13380 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13124 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13381 | # with your package, and you will get complaints that there are |
13125 | # with your package, and you will get complaints that there are |
13382 | # no rules to generate ltmain.sh. |
13126 | # no rules to generate ltmain.sh. |
… | |
… | |
13387 | setopt NO_GLOB_SUBST |
13131 | setopt NO_GLOB_SUBST |
13388 | fi |
13132 | fi |
13389 | # Now quote all the things that may contain metacharacters while being |
13133 | # Now quote all the things that may contain metacharacters while being |
13390 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13134 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13391 | # variables and quote the copies for generation of the libtool script. |
13135 | # variables and quote the copies for generation of the libtool script. |
13392 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
13136 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13393 | SED SHELL STRIP \ |
13137 | SED SHELL STRIP \ |
13394 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13138 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13395 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13139 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13396 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13140 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13397 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13141 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
… | |
… | |
13488 | fast_install=$enable_fast_install |
13232 | fast_install=$enable_fast_install |
13489 | |
13233 | |
13490 | # The host system. |
13234 | # The host system. |
13491 | host_alias=$host_alias |
13235 | host_alias=$host_alias |
13492 | host=$host |
13236 | host=$host |
|
|
13237 | host_os=$host_os |
|
|
13238 | |
|
|
13239 | # The build system. |
|
|
13240 | build_alias=$build_alias |
|
|
13241 | build=$build |
|
|
13242 | build_os=$build_os |
13493 | |
13243 | |
13494 | # An echo program that does not interpret backslashes. |
13244 | # An echo program that does not interpret backslashes. |
13495 | echo=$lt_echo |
13245 | echo=$lt_echo |
13496 | |
13246 | |
13497 | # The archiver. |
13247 | # The archiver. |
… | |
… | |
13499 | AR_FLAGS=$lt_AR_FLAGS |
13249 | AR_FLAGS=$lt_AR_FLAGS |
13500 | |
13250 | |
13501 | # A C compiler. |
13251 | # A C compiler. |
13502 | LTCC=$lt_LTCC |
13252 | LTCC=$lt_LTCC |
13503 | |
13253 | |
|
|
13254 | # LTCC compiler flags. |
|
|
13255 | LTCFLAGS=$lt_LTCFLAGS |
|
|
13256 | |
13504 | # A language-specific compiler. |
13257 | # A language-specific compiler. |
13505 | CC=$lt_compiler_CXX |
13258 | CC=$lt_compiler_CXX |
13506 | |
13259 | |
13507 | # Is the compiler the GNU C compiler? |
13260 | # Is the compiler the GNU C compiler? |
13508 | with_gcc=$GCC_CXX |
13261 | with_gcc=$GCC_CXX |
… | |
… | |
13549 | |
13302 | |
13550 | # Old archive suffix (normally "a"). |
13303 | # Old archive suffix (normally "a"). |
13551 | libext="$libext" |
13304 | libext="$libext" |
13552 | |
13305 | |
13553 | # Shared library suffix (normally ".so"). |
13306 | # Shared library suffix (normally ".so"). |
13554 | shrext='$shrext' |
13307 | shrext_cmds='$shrext_cmds' |
13555 | |
13308 | |
13556 | # Executable file suffix (normally ""). |
13309 | # Executable file suffix (normally ""). |
13557 | exeext="$exeext" |
13310 | exeext="$exeext" |
13558 | |
13311 | |
13559 | # Additional compiler flags for building library objects. |
13312 | # Additional compiler flags for building library objects. |
… | |
… | |
13564 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13317 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13565 | |
13318 | |
13566 | # Does compiler simultaneously support -c and -o options? |
13319 | # Does compiler simultaneously support -c and -o options? |
13567 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13320 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13568 | |
13321 | |
13569 | # Must we lock files when doing compilation ? |
13322 | # Must we lock files when doing compilation? |
13570 | need_locks=$lt_need_locks |
13323 | need_locks=$lt_need_locks |
13571 | |
13324 | |
13572 | # Do we need the lib prefix for modules? |
13325 | # Do we need the lib prefix for modules? |
13573 | need_lib_prefix=$need_lib_prefix |
13326 | need_lib_prefix=$need_lib_prefix |
13574 | |
13327 | |
… | |
… | |
13841 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13594 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13842 | |
13595 | |
13843 | # If no C compiler was specified, use CC. |
13596 | # If no C compiler was specified, use CC. |
13844 | LTCC=${LTCC-"$CC"} |
13597 | LTCC=${LTCC-"$CC"} |
13845 | |
13598 | |
|
|
13599 | # If no C compiler flags were specified, use CFLAGS. |
|
|
13600 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
13601 | |
13846 | # Allow CC to be a program name with arguments. |
13602 | # Allow CC to be a program name with arguments. |
13847 | compiler=$CC |
13603 | compiler=$CC |
|
|
13604 | |
|
|
13605 | |
|
|
13606 | # save warnings/boilerplate of simple test code |
|
|
13607 | ac_outfile=conftest.$ac_objext |
|
|
13608 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
13609 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
13610 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
13611 | $rm conftest* |
|
|
13612 | |
|
|
13613 | ac_outfile=conftest.$ac_objext |
|
|
13614 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
13615 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
13616 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
13617 | $rm conftest* |
13848 | |
13618 | |
13849 | |
13619 | |
13850 | # Allow CC to be a program name with arguments. |
13620 | # Allow CC to be a program name with arguments. |
13851 | lt_save_CC="$CC" |
13621 | lt_save_CC="$CC" |
13852 | CC=${F77-"f77"} |
13622 | CC=${F77-"f77"} |
13853 | compiler=$CC |
13623 | compiler=$CC |
13854 | compiler_F77=$CC |
13624 | compiler_F77=$CC |
13855 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
13625 | for cc_temp in $compiler""; do |
|
|
13626 | case $cc_temp in |
|
|
13627 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
13628 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
13629 | \-*) ;; |
|
|
13630 | *) break;; |
|
|
13631 | esac |
|
|
13632 | done |
|
|
13633 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
13634 | |
13856 | |
13635 | |
13857 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13636 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13858 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13637 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13859 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13638 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13860 | echo "${ECHO_T}$can_build_shared" >&6; } |
13639 | echo "${ECHO_T}$can_build_shared" >&6; } |
… | |
… | |
13863 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
13642 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
13864 | test "$can_build_shared" = "no" && enable_shared=no |
13643 | test "$can_build_shared" = "no" && enable_shared=no |
13865 | |
13644 | |
13866 | # On AIX, shared libraries and static libraries use the same namespace, and |
13645 | # On AIX, shared libraries and static libraries use the same namespace, and |
13867 | # are all built from PIC. |
13646 | # are all built from PIC. |
13868 | case "$host_os" in |
13647 | case $host_os in |
13869 | aix3*) |
13648 | aix3*) |
13870 | test "$enable_shared" = yes && enable_static=no |
13649 | test "$enable_shared" = yes && enable_static=no |
13871 | if test -n "$RANLIB"; then |
13650 | if test -n "$RANLIB"; then |
13872 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13651 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13873 | postinstall_cmds='$RANLIB $lib' |
13652 | postinstall_cmds='$RANLIB $lib' |
13874 | fi |
13653 | fi |
13875 | ;; |
13654 | ;; |
13876 | aix4*) |
13655 | aix4* | aix5*) |
|
|
13656 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13877 | test "$enable_shared" = yes && enable_static=no |
13657 | test "$enable_shared" = yes && enable_static=no |
|
|
13658 | fi |
13878 | ;; |
13659 | ;; |
13879 | esac |
13660 | esac |
13880 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13661 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13881 | echo "${ECHO_T}$enable_shared" >&6; } |
13662 | echo "${ECHO_T}$enable_shared" >&6; } |
13882 | |
13663 | |
… | |
… | |
13884 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
13665 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
13885 | # Make sure either enable_shared or enable_static is yes. |
13666 | # Make sure either enable_shared or enable_static is yes. |
13886 | test "$enable_shared" = yes || enable_static=yes |
13667 | test "$enable_shared" = yes || enable_static=yes |
13887 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13668 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13888 | echo "${ECHO_T}$enable_static" >&6; } |
13669 | echo "${ECHO_T}$enable_static" >&6; } |
13889 | |
|
|
13890 | test "$ld_shlibs_F77" = no && can_build_shared=no |
|
|
13891 | |
13670 | |
13892 | GCC_F77="$G77" |
13671 | GCC_F77="$G77" |
13893 | LD_F77="$LD" |
13672 | LD_F77="$LD" |
13894 | |
13673 | |
13895 | lt_prog_compiler_wl_F77= |
13674 | lt_prog_compiler_wl_F77= |
… | |
… | |
13933 | # PIC is the default on this platform |
13712 | # PIC is the default on this platform |
13934 | # Common symbols not allowed in MH_DYLIB files |
13713 | # Common symbols not allowed in MH_DYLIB files |
13935 | lt_prog_compiler_pic_F77='-fno-common' |
13714 | lt_prog_compiler_pic_F77='-fno-common' |
13936 | ;; |
13715 | ;; |
13937 | |
13716 | |
|
|
13717 | interix3*) |
|
|
13718 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
13719 | # Instead, we relocate shared libraries at runtime. |
|
|
13720 | ;; |
|
|
13721 | |
13938 | msdosdjgpp*) |
13722 | msdosdjgpp*) |
13939 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13723 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13940 | # on systems that don't support them. |
13724 | # on systems that don't support them. |
13941 | lt_prog_compiler_can_build_shared_F77=no |
13725 | lt_prog_compiler_can_build_shared_F77=no |
13942 | enable_shared=no |
13726 | enable_shared=no |
… | |
… | |
13949 | ;; |
13733 | ;; |
13950 | |
13734 | |
13951 | hpux*) |
13735 | hpux*) |
13952 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13736 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13953 | # not for PA HP-UX. |
13737 | # not for PA HP-UX. |
13954 | case "$host_cpu" in |
13738 | case $host_cpu in |
13955 | hppa*64*|ia64*) |
13739 | hppa*64*|ia64*) |
13956 | # +Z the default |
13740 | # +Z the default |
13957 | ;; |
13741 | ;; |
13958 | *) |
13742 | *) |
13959 | lt_prog_compiler_pic_F77='-fPIC' |
13743 | lt_prog_compiler_pic_F77='-fPIC' |
… | |
… | |
13975 | lt_prog_compiler_static_F77='-Bstatic' |
13759 | lt_prog_compiler_static_F77='-Bstatic' |
13976 | else |
13760 | else |
13977 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13761 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13978 | fi |
13762 | fi |
13979 | ;; |
13763 | ;; |
|
|
13764 | darwin*) |
|
|
13765 | # PIC is the default on this platform |
|
|
13766 | # Common symbols not allowed in MH_DYLIB files |
|
|
13767 | case $cc_basename in |
|
|
13768 | xlc*) |
|
|
13769 | lt_prog_compiler_pic_F77='-qnocommon' |
|
|
13770 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
13771 | ;; |
|
|
13772 | esac |
|
|
13773 | ;; |
13980 | |
13774 | |
13981 | mingw* | pw32* | os2*) |
13775 | mingw* | pw32* | os2*) |
13982 | # This hack is so that the source file can tell whether it is being |
13776 | # This hack is so that the source file can tell whether it is being |
13983 | # built for inclusion in a dll (and should export symbols for example). |
13777 | # built for inclusion in a dll (and should export symbols for example). |
13984 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13778 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
… | |
… | |
13986 | |
13780 | |
13987 | hpux9* | hpux10* | hpux11*) |
13781 | hpux9* | hpux10* | hpux11*) |
13988 | lt_prog_compiler_wl_F77='-Wl,' |
13782 | lt_prog_compiler_wl_F77='-Wl,' |
13989 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13783 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13990 | # not for PA HP-UX. |
13784 | # not for PA HP-UX. |
13991 | case "$host_cpu" in |
13785 | case $host_cpu in |
13992 | hppa*64*|ia64*) |
13786 | hppa*64*|ia64*) |
13993 | # +Z the default |
13787 | # +Z the default |
13994 | ;; |
13788 | ;; |
13995 | *) |
13789 | *) |
13996 | lt_prog_compiler_pic_F77='+Z' |
13790 | lt_prog_compiler_pic_F77='+Z' |
… | |
… | |
14009 | newsos6) |
13803 | newsos6) |
14010 | lt_prog_compiler_pic_F77='-KPIC' |
13804 | lt_prog_compiler_pic_F77='-KPIC' |
14011 | lt_prog_compiler_static_F77='-Bstatic' |
13805 | lt_prog_compiler_static_F77='-Bstatic' |
14012 | ;; |
13806 | ;; |
14013 | |
13807 | |
14014 | linux*) |
13808 | linux* | k*bsd*-gnu) |
14015 | case $CC in |
13809 | case $cc_basename in |
14016 | icc* | ecc*) |
13810 | icc* | ecc*) |
14017 | lt_prog_compiler_wl_F77='-Wl,' |
13811 | lt_prog_compiler_wl_F77='-Wl,' |
14018 | lt_prog_compiler_pic_F77='-KPIC' |
13812 | lt_prog_compiler_pic_F77='-KPIC' |
14019 | lt_prog_compiler_static_F77='-static' |
13813 | lt_prog_compiler_static_F77='-static' |
|
|
13814 | ;; |
|
|
13815 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
13816 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
13817 | # which looks to be a dead project) |
|
|
13818 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
13819 | lt_prog_compiler_pic_F77='-fpic' |
|
|
13820 | lt_prog_compiler_static_F77='-Bstatic' |
14020 | ;; |
13821 | ;; |
14021 | ccc*) |
13822 | ccc*) |
14022 | lt_prog_compiler_wl_F77='-Wl,' |
13823 | lt_prog_compiler_wl_F77='-Wl,' |
14023 | # All Alpha code is PIC. |
13824 | # All Alpha code is PIC. |
14024 | lt_prog_compiler_static_F77='-non_shared' |
13825 | lt_prog_compiler_static_F77='-non_shared' |
… | |
… | |
14030 | lt_prog_compiler_wl_F77='-Wl,' |
13831 | lt_prog_compiler_wl_F77='-Wl,' |
14031 | # All OSF/1 code is PIC. |
13832 | # All OSF/1 code is PIC. |
14032 | lt_prog_compiler_static_F77='-non_shared' |
13833 | lt_prog_compiler_static_F77='-non_shared' |
14033 | ;; |
13834 | ;; |
14034 | |
13835 | |
14035 | sco3.2v5*) |
|
|
14036 | lt_prog_compiler_pic_F77='-Kpic' |
|
|
14037 | lt_prog_compiler_static_F77='-dn' |
|
|
14038 | ;; |
|
|
14039 | |
|
|
14040 | solaris*) |
13836 | solaris*) |
14041 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
14042 | lt_prog_compiler_pic_F77='-KPIC' |
13837 | lt_prog_compiler_pic_F77='-KPIC' |
14043 | lt_prog_compiler_static_F77='-Bstatic' |
13838 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
13839 | case $cc_basename in |
|
|
13840 | f77* | f90* | f95*) |
|
|
13841 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
|
|
13842 | *) |
|
|
13843 | lt_prog_compiler_wl_F77='-Wl,';; |
|
|
13844 | esac |
14044 | ;; |
13845 | ;; |
14045 | |
13846 | |
14046 | sunos4*) |
13847 | sunos4*) |
14047 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13848 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14048 | lt_prog_compiler_pic_F77='-PIC' |
13849 | lt_prog_compiler_pic_F77='-PIC' |
14049 | lt_prog_compiler_static_F77='-Bstatic' |
13850 | lt_prog_compiler_static_F77='-Bstatic' |
14050 | ;; |
13851 | ;; |
14051 | |
13852 | |
14052 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13853 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14053 | lt_prog_compiler_wl_F77='-Wl,' |
13854 | lt_prog_compiler_wl_F77='-Wl,' |
14054 | lt_prog_compiler_pic_F77='-KPIC' |
13855 | lt_prog_compiler_pic_F77='-KPIC' |
14055 | lt_prog_compiler_static_F77='-Bstatic' |
13856 | lt_prog_compiler_static_F77='-Bstatic' |
14056 | ;; |
13857 | ;; |
14057 | |
13858 | |
14058 | sysv4*MP*) |
13859 | sysv4*MP*) |
14059 | if test -d /usr/nec ;then |
13860 | if test -d /usr/nec ;then |
14060 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13861 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14061 | lt_prog_compiler_static_F77='-Bstatic' |
13862 | lt_prog_compiler_static_F77='-Bstatic' |
14062 | fi |
13863 | fi |
|
|
13864 | ;; |
|
|
13865 | |
|
|
13866 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
13867 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
13868 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
13869 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
13870 | ;; |
|
|
13871 | |
|
|
13872 | unicos*) |
|
|
13873 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
13874 | lt_prog_compiler_can_build_shared_F77=no |
14063 | ;; |
13875 | ;; |
14064 | |
13876 | |
14065 | uts4*) |
13877 | uts4*) |
14066 | lt_prog_compiler_pic_F77='-pic' |
13878 | lt_prog_compiler_pic_F77='-pic' |
14067 | lt_prog_compiler_static_F77='-Bstatic' |
13879 | lt_prog_compiler_static_F77='-Bstatic' |
… | |
… | |
14094 | # (2) before a word containing "conftest.", or (3) at the end. |
13906 | # (2) before a word containing "conftest.", or (3) at the end. |
14095 | # Note that $ac_compile itself does not contain backslashes and begins |
13907 | # Note that $ac_compile itself does not contain backslashes and begins |
14096 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13908 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14097 | # The option is referenced via a variable to avoid confusing sed. |
13909 | # The option is referenced via a variable to avoid confusing sed. |
14098 | lt_compile=`echo "$ac_compile" | $SED \ |
13910 | lt_compile=`echo "$ac_compile" | $SED \ |
14099 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
13911 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14100 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13912 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14101 | -e 's:$: $lt_compiler_flag:'` |
13913 | -e 's:$: $lt_compiler_flag:'` |
14102 | (eval echo "\"\$as_me:14102: $lt_compile\"" >&5) |
13914 | (eval echo "\"\$as_me:13914: $lt_compile\"" >&5) |
14103 | (eval "$lt_compile" 2>conftest.err) |
13915 | (eval "$lt_compile" 2>conftest.err) |
14104 | ac_status=$? |
13916 | ac_status=$? |
14105 | cat conftest.err >&5 |
13917 | cat conftest.err >&5 |
14106 | echo "$as_me:14106: \$? = $ac_status" >&5 |
13918 | echo "$as_me:13918: \$? = $ac_status" >&5 |
14107 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13919 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14108 | # The compiler can only warn and ignore the option if not recognized |
13920 | # The compiler can only warn and ignore the option if not recognized |
14109 | # So say no if there are warnings |
13921 | # So say no if there are warnings other than the usual output. |
14110 | if test ! -s conftest.err; then |
13922 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
13923 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
13924 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14111 | lt_prog_compiler_pic_works_F77=yes |
13925 | lt_prog_compiler_pic_works_F77=yes |
14112 | fi |
13926 | fi |
14113 | fi |
13927 | fi |
14114 | $rm conftest* |
13928 | $rm conftest* |
14115 | |
13929 | |
… | |
… | |
14126 | lt_prog_compiler_pic_F77= |
13940 | lt_prog_compiler_pic_F77= |
14127 | lt_prog_compiler_can_build_shared_F77=no |
13941 | lt_prog_compiler_can_build_shared_F77=no |
14128 | fi |
13942 | fi |
14129 | |
13943 | |
14130 | fi |
13944 | fi |
14131 | case "$host_os" in |
13945 | case $host_os in |
14132 | # For platforms which do not support PIC, -DPIC is meaningless: |
13946 | # For platforms which do not support PIC, -DPIC is meaningless: |
14133 | *djgpp*) |
13947 | *djgpp*) |
14134 | lt_prog_compiler_pic_F77= |
13948 | lt_prog_compiler_pic_F77= |
14135 | ;; |
13949 | ;; |
14136 | *) |
13950 | *) |
14137 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13951 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14138 | ;; |
13952 | ;; |
14139 | esac |
13953 | esac |
14140 | |
13954 | |
|
|
13955 | # |
|
|
13956 | # Check to make sure the static flag actually works. |
|
|
13957 | # |
|
|
13958 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
|
|
13959 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
13960 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
|
13961 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
|
|
13962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13963 | else |
|
|
13964 | lt_prog_compiler_static_works_F77=no |
|
|
13965 | save_LDFLAGS="$LDFLAGS" |
|
|
13966 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
13967 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
13968 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
13969 | # The linker can only warn and ignore the option if not recognized |
|
|
13970 | # So say no if there are warnings |
|
|
13971 | if test -s conftest.err; then |
|
|
13972 | # Append any errors to the config.log. |
|
|
13973 | cat conftest.err 1>&5 |
|
|
13974 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
13975 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
13976 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
13977 | lt_prog_compiler_static_works_F77=yes |
|
|
13978 | fi |
|
|
13979 | else |
|
|
13980 | lt_prog_compiler_static_works_F77=yes |
|
|
13981 | fi |
|
|
13982 | fi |
|
|
13983 | $rm conftest* |
|
|
13984 | LDFLAGS="$save_LDFLAGS" |
|
|
13985 | |
|
|
13986 | fi |
|
|
13987 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
|
|
13988 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
|
|
13989 | |
|
|
13990 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
|
|
13991 | : |
|
|
13992 | else |
|
|
13993 | lt_prog_compiler_static_F77= |
|
|
13994 | fi |
|
|
13995 | |
|
|
13996 | |
14141 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13997 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14142 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
13998 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
14143 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13999 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14145 | else |
14001 | else |
… | |
… | |
14154 | # Insert the option either (1) after the last *FLAGS variable, or |
14010 | # Insert the option either (1) after the last *FLAGS variable, or |
14155 | # (2) before a word containing "conftest.", or (3) at the end. |
14011 | # (2) before a word containing "conftest.", or (3) at the end. |
14156 | # Note that $ac_compile itself does not contain backslashes and begins |
14012 | # Note that $ac_compile itself does not contain backslashes and begins |
14157 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14013 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14158 | lt_compile=`echo "$ac_compile" | $SED \ |
14014 | lt_compile=`echo "$ac_compile" | $SED \ |
14159 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
14015 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14160 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14016 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14161 | -e 's:$: $lt_compiler_flag:'` |
14017 | -e 's:$: $lt_compiler_flag:'` |
14162 | (eval echo "\"\$as_me:14162: $lt_compile\"" >&5) |
14018 | (eval echo "\"\$as_me:14018: $lt_compile\"" >&5) |
14163 | (eval "$lt_compile" 2>out/conftest.err) |
14019 | (eval "$lt_compile" 2>out/conftest.err) |
14164 | ac_status=$? |
14020 | ac_status=$? |
14165 | cat out/conftest.err >&5 |
14021 | cat out/conftest.err >&5 |
14166 | echo "$as_me:14166: \$? = $ac_status" >&5 |
14022 | echo "$as_me:14022: \$? = $ac_status" >&5 |
14167 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14023 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14168 | then |
14024 | then |
14169 | # The compiler can only warn and ignore the option if not recognized |
14025 | # The compiler can only warn and ignore the option if not recognized |
14170 | # So say no if there are warnings |
14026 | # So say no if there are warnings |
14171 | if test ! -s out/conftest.err; then |
14027 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
14028 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
14029 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14172 | lt_cv_prog_compiler_c_o_F77=yes |
14030 | lt_cv_prog_compiler_c_o_F77=yes |
14173 | fi |
14031 | fi |
14174 | fi |
14032 | fi |
14175 | chmod u+w . |
14033 | chmod u+w . 2>&5 |
14176 | $rm conftest* |
14034 | $rm conftest* |
14177 | # SGI C++ compiler will create directory out/ii_files/ for |
14035 | # SGI C++ compiler will create directory out/ii_files/ for |
14178 | # template instantiation |
14036 | # template instantiation |
14179 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14037 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14180 | $rm out/* && rmdir out |
14038 | $rm out/* && rmdir out |
… | |
… | |
14246 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14104 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14247 | # the symbol is explicitly referenced. Since portable code cannot |
14105 | # the symbol is explicitly referenced. Since portable code cannot |
14248 | # rely on this symbol name, it's probably fine to never include it in |
14106 | # rely on this symbol name, it's probably fine to never include it in |
14249 | # preloaded symbol tables. |
14107 | # preloaded symbol tables. |
14250 | extract_expsyms_cmds= |
14108 | extract_expsyms_cmds= |
|
|
14109 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
14110 | for cc_temp in $compiler""; do |
|
|
14111 | case $cc_temp in |
|
|
14112 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
14113 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
14114 | \-*) ;; |
|
|
14115 | *) break;; |
|
|
14116 | esac |
|
|
14117 | done |
|
|
14118 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14251 | |
14119 | |
14252 | case $host_os in |
14120 | case $host_os in |
14253 | cygwin* | mingw* | pw32*) |
14121 | cygwin* | mingw* | pw32*) |
14254 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14122 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14255 | # When not using gcc, we currently assume that we are using |
14123 | # When not using gcc, we currently assume that we are using |
14256 | # Microsoft Visual C++. |
14124 | # Microsoft Visual C++. |
14257 | if test "$GCC" != yes; then |
14125 | if test "$GCC" != yes; then |
14258 | with_gnu_ld=no |
14126 | with_gnu_ld=no |
14259 | fi |
14127 | fi |
14260 | ;; |
14128 | ;; |
|
|
14129 | interix*) |
|
|
14130 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
14131 | with_gnu_ld=yes |
|
|
14132 | ;; |
14261 | openbsd*) |
14133 | openbsd*) |
14262 | with_gnu_ld=no |
14134 | with_gnu_ld=no |
14263 | ;; |
14135 | ;; |
14264 | esac |
14136 | esac |
14265 | |
14137 | |
14266 | ld_shlibs_F77=yes |
14138 | ld_shlibs_F77=yes |
14267 | if test "$with_gnu_ld" = yes; then |
14139 | if test "$with_gnu_ld" = yes; then |
14268 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14140 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14269 | wlarc='${wl}' |
14141 | wlarc='${wl}' |
|
|
14142 | |
|
|
14143 | # Set some defaults for GNU ld with shared library support. These |
|
|
14144 | # are reset later if shared libraries are not supported. Putting them |
|
|
14145 | # here allows them to be overridden if necessary. |
|
|
14146 | runpath_var=LD_RUN_PATH |
|
|
14147 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
|
14148 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
|
14149 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
14150 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
14151 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
14152 | else |
|
|
14153 | whole_archive_flag_spec_F77= |
|
|
14154 | fi |
|
|
14155 | supports_anon_versioning=no |
|
|
14156 | case `$LD -v 2>/dev/null` in |
|
|
14157 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
14158 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
14159 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
14160 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
14161 | *) supports_anon_versioning=yes ;; |
|
|
14162 | esac |
14270 | |
14163 | |
14271 | # See if GNU ld supports shared libraries. |
14164 | # See if GNU ld supports shared libraries. |
14272 | case $host_os in |
14165 | case $host_os in |
14273 | aix3* | aix4* | aix5*) |
14166 | aix3* | aix4* | aix5*) |
14274 | # On AIX/PPC, the GNU linker is very broken |
14167 | # On AIX/PPC, the GNU linker is very broken |
… | |
… | |
14316 | # as there is no search path for DLLs. |
14209 | # as there is no search path for DLLs. |
14317 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14210 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14318 | allow_undefined_flag_F77=unsupported |
14211 | allow_undefined_flag_F77=unsupported |
14319 | always_export_symbols_F77=no |
14212 | always_export_symbols_F77=no |
14320 | enable_shared_with_static_runtimes_F77=yes |
14213 | enable_shared_with_static_runtimes_F77=yes |
14321 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14214 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14322 | |
14215 | |
14323 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14216 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14324 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
14217 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14325 | # If the export-symbols file already is a .def file (1st line |
14218 | # If the export-symbols file already is a .def file (1st line |
14326 | # is EXPORTS), use it as is; otherwise, prepend... |
14219 | # is EXPORTS), use it as is; otherwise, prepend... |
14327 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14220 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14328 | cp $export_symbols $output_objdir/$soname.def; |
14221 | cp $export_symbols $output_objdir/$soname.def; |
14329 | else |
14222 | else |
14330 | echo EXPORTS > $output_objdir/$soname.def; |
14223 | echo EXPORTS > $output_objdir/$soname.def; |
14331 | cat $export_symbols >> $output_objdir/$soname.def; |
14224 | cat $export_symbols >> $output_objdir/$soname.def; |
14332 | fi~ |
14225 | fi~ |
14333 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
14226 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14334 | else |
14227 | else |
14335 | ld_shlibs=no |
14228 | ld_shlibs_F77=no |
14336 | fi |
14229 | fi |
14337 | ;; |
14230 | ;; |
14338 | |
14231 | |
14339 | netbsd*) |
14232 | interix3*) |
|
|
14233 | hardcode_direct_F77=no |
|
|
14234 | hardcode_shlibpath_var_F77=no |
|
|
14235 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
14236 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
14237 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
14238 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
14239 | # default) and relocated if they conflict, which is a slow very memory |
|
|
14240 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
14241 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
14242 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
14243 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
14244 | archive_expsym_cmds_F77='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' |
|
|
14245 | ;; |
|
|
14246 | |
|
|
14247 | linux* | k*bsd*-gnu) |
|
|
14248 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
14249 | tmp_addflag= |
|
|
14250 | case $cc_basename,$host_cpu in |
|
|
14251 | pgcc*) # Portland Group C compiler |
|
|
14252 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
14253 | tmp_addflag=' $pic_flag' |
|
|
14254 | ;; |
|
|
14255 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
14256 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
14257 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
14258 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
14259 | tmp_addflag=' -i_dynamic' ;; |
|
|
14260 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
14261 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
14262 | ifc* | ifort*) # Intel Fortran compiler |
|
|
14263 | tmp_addflag=' -nofor_main' ;; |
|
|
14264 | esac |
|
|
14265 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
14266 | |
|
|
14267 | if test $supports_anon_versioning = yes; then |
|
|
14268 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
14269 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
14270 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
14271 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
14272 | fi |
|
|
14273 | link_all_deplibs_F77=no |
|
|
14274 | else |
|
|
14275 | ld_shlibs_F77=no |
|
|
14276 | fi |
|
|
14277 | ;; |
|
|
14278 | |
|
|
14279 | netbsd* | netbsdelf*-gnu) |
14340 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14280 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14341 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14281 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14342 | wlarc= |
14282 | wlarc= |
14343 | else |
14283 | else |
14344 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14284 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14345 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14285 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14346 | fi |
14286 | fi |
14347 | ;; |
14287 | ;; |
14348 | |
14288 | |
14349 | solaris* | sysv5*) |
14289 | solaris*) |
14350 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14290 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14351 | ld_shlibs_F77=no |
14291 | ld_shlibs_F77=no |
14352 | cat <<EOF 1>&2 |
14292 | cat <<EOF 1>&2 |
14353 | |
14293 | |
14354 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14294 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
… | |
… | |
14365 | else |
14305 | else |
14366 | ld_shlibs_F77=no |
14306 | ld_shlibs_F77=no |
14367 | fi |
14307 | fi |
14368 | ;; |
14308 | ;; |
14369 | |
14309 | |
|
|
14310 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
14311 | case `$LD -v 2>&1` in |
|
|
14312 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
14313 | ld_shlibs_F77=no |
|
|
14314 | cat <<_LT_EOF 1>&2 |
|
|
14315 | |
|
|
14316 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
14317 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
14318 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
14319 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
14320 | *** your PATH or compiler configuration so that the native linker is |
|
|
14321 | *** used, and then restart. |
|
|
14322 | |
|
|
14323 | _LT_EOF |
|
|
14324 | ;; |
|
|
14325 | *) |
|
|
14326 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
14327 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
14328 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
14329 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
14330 | else |
|
|
14331 | ld_shlibs_F77=no |
|
|
14332 | fi |
|
|
14333 | ;; |
|
|
14334 | esac |
|
|
14335 | ;; |
|
|
14336 | |
14370 | sunos4*) |
14337 | sunos4*) |
14371 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14338 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14372 | wlarc= |
14339 | wlarc= |
14373 | hardcode_direct_F77=yes |
14340 | hardcode_direct_F77=yes |
14374 | hardcode_shlibpath_var_F77=no |
14341 | hardcode_shlibpath_var_F77=no |
14375 | ;; |
14342 | ;; |
14376 | |
|
|
14377 | linux*) |
|
|
14378 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
14379 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
14380 | archive_cmds_F77="$tmp_archive_cmds" |
|
|
14381 | supports_anon_versioning=no |
|
|
14382 | case `$LD -v 2>/dev/null` in |
|
|
14383 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
14384 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
14385 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
14386 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
14387 | *) supports_anon_versioning=yes ;; |
|
|
14388 | esac |
|
|
14389 | if test $supports_anon_versioning = yes; then |
|
|
14390 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
14391 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
14392 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
14393 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
14394 | else |
|
|
14395 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
|
|
14396 | fi |
|
|
14397 | else |
|
|
14398 | ld_shlibs_F77=no |
|
|
14399 | fi |
|
|
14400 | ;; |
|
|
14401 | |
14343 | |
14402 | *) |
14344 | *) |
14403 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14345 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14404 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14346 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14405 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14347 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
… | |
… | |
14407 | ld_shlibs_F77=no |
14349 | ld_shlibs_F77=no |
14408 | fi |
14350 | fi |
14409 | ;; |
14351 | ;; |
14410 | esac |
14352 | esac |
14411 | |
14353 | |
14412 | if test "$ld_shlibs_F77" = yes; then |
14354 | if test "$ld_shlibs_F77" = no; then |
14413 | runpath_var=LD_RUN_PATH |
14355 | runpath_var= |
14414 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14356 | hardcode_libdir_flag_spec_F77= |
14415 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14357 | export_dynamic_flag_spec_F77= |
14416 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
14417 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
14418 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
14419 | else |
|
|
14420 | whole_archive_flag_spec_F77= |
14358 | whole_archive_flag_spec_F77= |
14421 | fi |
|
|
14422 | fi |
14359 | fi |
14423 | else |
14360 | else |
14424 | # PORTME fill in a description of your system's linker (not GNU ld) |
14361 | # PORTME fill in a description of your system's linker (not GNU ld) |
14425 | case $host_os in |
14362 | case $host_os in |
14426 | aix3*) |
14363 | aix3*) |
… | |
… | |
14428 | always_export_symbols_F77=yes |
14365 | always_export_symbols_F77=yes |
14429 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
14366 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
14430 | # Note: this linker hardcodes the directories in LIBPATH if there |
14367 | # Note: this linker hardcodes the directories in LIBPATH if there |
14431 | # are no directories specified by -L. |
14368 | # are no directories specified by -L. |
14432 | hardcode_minus_L_F77=yes |
14369 | hardcode_minus_L_F77=yes |
14433 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
14370 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14434 | # Neither direct hardcoding nor static linking is supported with a |
14371 | # Neither direct hardcoding nor static linking is supported with a |
14435 | # broken collect2. |
14372 | # broken collect2. |
14436 | hardcode_direct_F77=unsupported |
14373 | hardcode_direct_F77=unsupported |
14437 | fi |
14374 | fi |
14438 | ;; |
14375 | ;; |
… | |
… | |
14462 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14399 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14463 | aix_use_runtimelinking=yes |
14400 | aix_use_runtimelinking=yes |
14464 | break |
14401 | break |
14465 | fi |
14402 | fi |
14466 | done |
14403 | done |
|
|
14404 | ;; |
14467 | esac |
14405 | esac |
14468 | |
14406 | |
14469 | exp_sym_flag='-bexport' |
14407 | exp_sym_flag='-bexport' |
14470 | no_entry_flag='-bnoentry' |
14408 | no_entry_flag='-bnoentry' |
14471 | fi |
14409 | fi |
… | |
… | |
14480 | hardcode_direct_F77=yes |
14418 | hardcode_direct_F77=yes |
14481 | hardcode_libdir_separator_F77=':' |
14419 | hardcode_libdir_separator_F77=':' |
14482 | link_all_deplibs_F77=yes |
14420 | link_all_deplibs_F77=yes |
14483 | |
14421 | |
14484 | if test "$GCC" = yes; then |
14422 | if test "$GCC" = yes; then |
14485 | case $host_os in aix4.012|aix4.012.*) |
14423 | case $host_os in aix4.[012]|aix4.[012].*) |
14486 | # We only want to do this on AIX 4.2 and lower, the check |
14424 | # We only want to do this on AIX 4.2 and lower, the check |
14487 | # below for broken collect2 doesn't work under 4.3+ |
14425 | # below for broken collect2 doesn't work under 4.3+ |
14488 | collect2name=`${CC} -print-prog-name=collect2` |
14426 | collect2name=`${CC} -print-prog-name=collect2` |
14489 | if test -f "$collect2name" && \ |
14427 | if test -f "$collect2name" && \ |
14490 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14428 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
… | |
… | |
14499 | # to unsupported forces relinking |
14437 | # to unsupported forces relinking |
14500 | hardcode_minus_L_F77=yes |
14438 | hardcode_minus_L_F77=yes |
14501 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14439 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14502 | hardcode_libdir_separator_F77= |
14440 | hardcode_libdir_separator_F77= |
14503 | fi |
14441 | fi |
|
|
14442 | ;; |
14504 | esac |
14443 | esac |
14505 | shared_flag='-shared' |
14444 | shared_flag='-shared' |
|
|
14445 | if test "$aix_use_runtimelinking" = yes; then |
|
|
14446 | shared_flag="$shared_flag "'${wl}-G' |
|
|
14447 | fi |
14506 | else |
14448 | else |
14507 | # not using gcc |
14449 | # not using gcc |
14508 | if test "$host_cpu" = ia64; then |
14450 | if test "$host_cpu" = ia64; then |
14509 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14451 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14510 | # chokes on -Wl,-G. The following line is correct: |
14452 | # chokes on -Wl,-G. The following line is correct: |
14511 | shared_flag='-G' |
14453 | shared_flag='-G' |
14512 | else |
14454 | else |
14513 | if test "$aix_use_runtimelinking" = yes; then |
14455 | if test "$aix_use_runtimelinking" = yes; then |
14514 | shared_flag='${wl}-G' |
14456 | shared_flag='${wl}-G' |
14515 | else |
14457 | else |
14516 | shared_flag='${wl}-bM:SRE' |
14458 | shared_flag='${wl}-bM:SRE' |
14517 | fi |
14459 | fi |
14518 | fi |
14460 | fi |
14519 | fi |
14461 | fi |
14520 | |
14462 | |
14521 | # It seems that -bexpall does not export symbols beginning with |
14463 | # It seems that -bexpall does not export symbols beginning with |
14522 | # underscore (_), so it is better to generate a list of symbols to export. |
14464 | # underscore (_), so it is better to generate a list of symbols to export. |
… | |
… | |
14565 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14507 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14566 | conftest$ac_exeext conftest.$ac_ext |
14508 | conftest$ac_exeext conftest.$ac_ext |
14567 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14509 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14568 | |
14510 | |
14569 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14511 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14570 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14512 | archive_expsym_cmds_F77="\$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" |
14571 | else |
14513 | else |
14572 | if test "$host_cpu" = ia64; then |
14514 | if test "$host_cpu" = ia64; then |
14573 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14515 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14574 | allow_undefined_flag_F77="-z nodefs" |
14516 | allow_undefined_flag_F77="-z nodefs" |
14575 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
14517 | archive_expsym_cmds_F77="\$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" |
14576 | else |
14518 | else |
14577 | # Determine the default libpath from the value encoded in an empty executable. |
14519 | # Determine the default libpath from the value encoded in an empty executable. |
14578 | cat >conftest.$ac_ext <<_ACEOF |
14520 | cat >conftest.$ac_ext <<_ACEOF |
14579 | program main |
14521 | program main |
14580 | |
14522 | |
… | |
… | |
14618 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14560 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14619 | # Warning - without using the other run time loading flags, |
14561 | # Warning - without using the other run time loading flags, |
14620 | # -berok will link without error, but may produce a broken library. |
14562 | # -berok will link without error, but may produce a broken library. |
14621 | no_undefined_flag_F77=' ${wl}-bernotok' |
14563 | no_undefined_flag_F77=' ${wl}-bernotok' |
14622 | allow_undefined_flag_F77=' ${wl}-berok' |
14564 | allow_undefined_flag_F77=' ${wl}-berok' |
14623 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
14624 | always_export_symbols_F77=yes |
|
|
14625 | # Exported symbols can be pulled into shared objects from archives |
14565 | # Exported symbols can be pulled into shared objects from archives |
14626 | whole_archive_flag_spec_F77=' ' |
14566 | whole_archive_flag_spec_F77='$convenience' |
14627 | archive_cmds_need_lc_F77=yes |
14567 | archive_cmds_need_lc_F77=yes |
14628 | # This is similar to how AIX traditionally builds it's shared libraries. |
14568 | # This is similar to how AIX traditionally builds its shared libraries. |
14629 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
14569 | archive_expsym_cmds_F77="\$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' |
14630 | fi |
14570 | fi |
14631 | fi |
14571 | fi |
14632 | ;; |
14572 | ;; |
14633 | |
14573 | |
14634 | amigaos*) |
14574 | amigaos*) |
… | |
… | |
14637 | hardcode_minus_L_F77=yes |
14577 | hardcode_minus_L_F77=yes |
14638 | # see comment about different semantics on the GNU ld section |
14578 | # see comment about different semantics on the GNU ld section |
14639 | ld_shlibs_F77=no |
14579 | ld_shlibs_F77=no |
14640 | ;; |
14580 | ;; |
14641 | |
14581 | |
14642 | bsdi4*) |
14582 | bsdi[45]*) |
14643 | export_dynamic_flag_spec_F77=-rdynamic |
14583 | export_dynamic_flag_spec_F77=-rdynamic |
14644 | ;; |
14584 | ;; |
14645 | |
14585 | |
14646 | cygwin* | mingw* | pw32*) |
14586 | cygwin* | mingw* | pw32*) |
14647 | # When not using gcc, we currently assume that we are using |
14587 | # When not using gcc, we currently assume that we are using |
… | |
… | |
14651 | hardcode_libdir_flag_spec_F77=' ' |
14591 | hardcode_libdir_flag_spec_F77=' ' |
14652 | allow_undefined_flag_F77=unsupported |
14592 | allow_undefined_flag_F77=unsupported |
14653 | # Tell ltmain to make .lib files, not .a files. |
14593 | # Tell ltmain to make .lib files, not .a files. |
14654 | libext=lib |
14594 | libext=lib |
14655 | # Tell ltmain to make .dll files, not .so files. |
14595 | # Tell ltmain to make .dll files, not .so files. |
14656 | shrext=".dll" |
14596 | shrext_cmds=".dll" |
14657 | # FIXME: Setting linknames here is a bad hack. |
14597 | # FIXME: Setting linknames here is a bad hack. |
14658 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14598 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14659 | # The linker will automatically build a .lib file if we build a DLL. |
14599 | # The linker will automatically build a .lib file if we build a DLL. |
14660 | old_archive_From_new_cmds_F77='true' |
14600 | old_archive_From_new_cmds_F77='true' |
14661 | # FIXME: Should let the user specify the lib program. |
14601 | # FIXME: Should let the user specify the lib program. |
14662 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14602 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14663 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
14603 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14664 | enable_shared_with_static_runtimes_F77=yes |
14604 | enable_shared_with_static_runtimes_F77=yes |
14665 | ;; |
14605 | ;; |
14666 | |
14606 | |
14667 | darwin* | rhapsody*) |
14607 | darwin* | rhapsody*) |
14668 | if test "$GXX" = yes ; then |
14608 | case $host_os in |
|
|
14609 | rhapsody* | darwin1.[012]) |
|
|
14610 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
|
|
14611 | ;; |
|
|
14612 | *) # Darwin 1.3 on |
|
|
14613 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
14614 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
14615 | else |
|
|
14616 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
14617 | 10.[012]) |
|
|
14618 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
14619 | ;; |
|
|
14620 | 10.*) |
|
|
14621 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
|
|
14622 | ;; |
|
|
14623 | esac |
|
|
14624 | fi |
|
|
14625 | ;; |
|
|
14626 | esac |
14669 | archive_cmds_need_lc_F77=no |
14627 | archive_cmds_need_lc_F77=no |
14670 | case "$host_os" in |
|
|
14671 | rhapsody* | darwin1.[012]) |
|
|
14672 | allow_undefined_flag_F77='-undefined suppress' |
|
|
14673 | ;; |
|
|
14674 | *) # Darwin 1.3 on |
|
|
14675 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
14676 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
|
|
14677 | else |
|
|
14678 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
14679 | 10.[012]) |
|
|
14680 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
|
|
14681 | ;; |
|
|
14682 | 10.*) |
|
|
14683 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
|
|
14684 | ;; |
|
|
14685 | esac |
|
|
14686 | fi |
|
|
14687 | ;; |
|
|
14688 | esac |
|
|
14689 | lt_int_apple_cc_single_mod=no |
|
|
14690 | output_verbose_link_cmd='echo' |
|
|
14691 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
14692 | lt_int_apple_cc_single_mod=yes |
|
|
14693 | fi |
|
|
14694 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
14695 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
14696 | else |
|
|
14697 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
14698 | fi |
|
|
14699 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
14700 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
14701 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
14702 | archive_expsym_cmds_F77='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}' |
|
|
14703 | else |
|
|
14704 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
14705 | fi |
|
|
14706 | module_expsym_cmds_F77='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}' |
|
|
14707 | hardcode_direct_F77=no |
14628 | hardcode_direct_F77=no |
14708 | hardcode_automatic_F77=yes |
14629 | hardcode_automatic_F77=yes |
14709 | hardcode_shlibpath_var_F77=unsupported |
14630 | hardcode_shlibpath_var_F77=unsupported |
14710 | whole_archive_flag_spec_F77='-all_load $convenience' |
14631 | whole_archive_flag_spec_F77='' |
14711 | link_all_deplibs_F77=yes |
14632 | link_all_deplibs_F77=yes |
|
|
14633 | if test "$GCC" = yes ; then |
|
|
14634 | output_verbose_link_cmd='echo' |
|
|
14635 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
14636 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
14637 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
14638 | archive_expsym_cmds_F77='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}' |
|
|
14639 | module_expsym_cmds_F77='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}' |
14712 | else |
14640 | else |
|
|
14641 | case $cc_basename in |
|
|
14642 | xlc*) |
|
|
14643 | output_verbose_link_cmd='echo' |
|
|
14644 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
14645 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
14646 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
14647 | archive_expsym_cmds_F77='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}' |
|
|
14648 | module_expsym_cmds_F77='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}' |
|
|
14649 | ;; |
|
|
14650 | *) |
14713 | ld_shlibs_F77=no |
14651 | ld_shlibs_F77=no |
|
|
14652 | ;; |
|
|
14653 | esac |
14714 | fi |
14654 | fi |
14715 | ;; |
14655 | ;; |
14716 | |
14656 | |
14717 | dgux*) |
14657 | dgux*) |
14718 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14658 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
… | |
… | |
14742 | hardcode_minus_L_F77=yes |
14682 | hardcode_minus_L_F77=yes |
14743 | hardcode_shlibpath_var_F77=no |
14683 | hardcode_shlibpath_var_F77=no |
14744 | ;; |
14684 | ;; |
14745 | |
14685 | |
14746 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14686 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14747 | freebsd* | kfreebsd*-gnu) |
14687 | freebsd* | dragonfly*) |
14748 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14688 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14749 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14689 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14750 | hardcode_direct_F77=yes |
14690 | hardcode_direct_F77=yes |
14751 | hardcode_shlibpath_var_F77=no |
14691 | hardcode_shlibpath_var_F77=no |
14752 | ;; |
14692 | ;; |
… | |
… | |
14765 | # but as the default location of the library. |
14705 | # but as the default location of the library. |
14766 | hardcode_minus_L_F77=yes |
14706 | hardcode_minus_L_F77=yes |
14767 | export_dynamic_flag_spec_F77='${wl}-E' |
14707 | export_dynamic_flag_spec_F77='${wl}-E' |
14768 | ;; |
14708 | ;; |
14769 | |
14709 | |
14770 | hpux10* | hpux11*) |
14710 | hpux10*) |
14771 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14711 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
14712 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14713 | else |
|
|
14714 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
14715 | fi |
|
|
14716 | if test "$with_gnu_ld" = no; then |
|
|
14717 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
14718 | hardcode_libdir_separator_F77=: |
|
|
14719 | |
|
|
14720 | hardcode_direct_F77=yes |
|
|
14721 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
14722 | |
|
|
14723 | # hardcode_minus_L: Not really in the search PATH, |
|
|
14724 | # but as the default location of the library. |
|
|
14725 | hardcode_minus_L_F77=yes |
|
|
14726 | fi |
|
|
14727 | ;; |
|
|
14728 | |
|
|
14729 | hpux11*) |
|
|
14730 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14772 | case "$host_cpu" in |
14731 | case $host_cpu in |
14773 | hppa*64*|ia64*) |
14732 | hppa*64*) |
14774 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14733 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14734 | ;; |
|
|
14735 | ia64*) |
|
|
14736 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14775 | ;; |
14737 | ;; |
14776 | *) |
14738 | *) |
14777 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14739 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14778 | ;; |
14740 | ;; |
14779 | esac |
14741 | esac |
14780 | else |
14742 | else |
14781 | case "$host_cpu" in |
14743 | case $host_cpu in |
14782 | hppa*64*|ia64*) |
14744 | hppa*64*) |
14783 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
14745 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14746 | ;; |
|
|
14747 | ia64*) |
|
|
14748 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14784 | ;; |
14749 | ;; |
14785 | *) |
14750 | *) |
14786 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14751 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14787 | ;; |
14752 | ;; |
14788 | esac |
14753 | esac |
14789 | fi |
14754 | fi |
14790 | if test "$with_gnu_ld" = no; then |
14755 | if test "$with_gnu_ld" = no; then |
14791 | case "$host_cpu" in |
|
|
14792 | hppa*64*) |
|
|
14793 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14756 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
14757 | hardcode_libdir_separator_F77=: |
|
|
14758 | |
|
|
14759 | case $host_cpu in |
|
|
14760 | hppa*64*|ia64*) |
14794 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14761 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14795 | hardcode_libdir_separator_F77=: |
|
|
14796 | hardcode_direct_F77=no |
14762 | hardcode_direct_F77=no |
14797 | hardcode_shlibpath_var_F77=no |
14763 | hardcode_shlibpath_var_F77=no |
14798 | ;; |
14764 | ;; |
14799 | ia64*) |
|
|
14800 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
14801 | hardcode_direct_F77=no |
|
|
14802 | hardcode_shlibpath_var_F77=no |
|
|
14803 | |
|
|
14804 | # hardcode_minus_L: Not really in the search PATH, |
|
|
14805 | # but as the default location of the library. |
|
|
14806 | hardcode_minus_L_F77=yes |
|
|
14807 | ;; |
|
|
14808 | *) |
14765 | *) |
14809 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
14810 | hardcode_libdir_separator_F77=: |
|
|
14811 | hardcode_direct_F77=yes |
14766 | hardcode_direct_F77=yes |
14812 | export_dynamic_flag_spec_F77='${wl}-E' |
14767 | export_dynamic_flag_spec_F77='${wl}-E' |
14813 | |
14768 | |
14814 | # hardcode_minus_L: Not really in the search PATH, |
14769 | # hardcode_minus_L: Not really in the search PATH, |
14815 | # but as the default location of the library. |
14770 | # but as the default location of the library. |
… | |
… | |
14829 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14784 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14830 | hardcode_libdir_separator_F77=: |
14785 | hardcode_libdir_separator_F77=: |
14831 | link_all_deplibs_F77=yes |
14786 | link_all_deplibs_F77=yes |
14832 | ;; |
14787 | ;; |
14833 | |
14788 | |
14834 | netbsd*) |
14789 | netbsd* | netbsdelf*-gnu) |
14835 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14790 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14836 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14791 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14837 | else |
14792 | else |
14838 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14793 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14839 | fi |
14794 | fi |
… | |
… | |
14853 | openbsd*) |
14808 | openbsd*) |
14854 | hardcode_direct_F77=yes |
14809 | hardcode_direct_F77=yes |
14855 | hardcode_shlibpath_var_F77=no |
14810 | hardcode_shlibpath_var_F77=no |
14856 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14811 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14857 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14812 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14813 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14858 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14814 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14859 | export_dynamic_flag_spec_F77='${wl}-E' |
14815 | export_dynamic_flag_spec_F77='${wl}-E' |
14860 | else |
14816 | else |
14861 | case $host_os in |
14817 | case $host_os in |
14862 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14818 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
… | |
… | |
14898 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14854 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14899 | else |
14855 | else |
14900 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14856 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14901 | archive_cmds_F77='$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' |
14857 | archive_cmds_F77='$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' |
14902 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
14858 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
14903 | $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' |
14859 | $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' |
14904 | |
14860 | |
14905 | # Both c and cxx compiler support -rpath directly |
14861 | # Both c and cxx compiler support -rpath directly |
14906 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14862 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14907 | fi |
14863 | fi |
14908 | hardcode_libdir_separator_F77=: |
14864 | hardcode_libdir_separator_F77=: |
14909 | ;; |
14865 | ;; |
14910 | |
14866 | |
14911 | sco3.2v5*) |
|
|
14912 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
14913 | hardcode_shlibpath_var_F77=no |
|
|
14914 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
|
14915 | runpath_var=LD_RUN_PATH |
|
|
14916 | hardcode_runpath_var=yes |
|
|
14917 | ;; |
|
|
14918 | |
|
|
14919 | solaris*) |
14867 | solaris*) |
14920 | no_undefined_flag_F77=' -z text' |
14868 | no_undefined_flag_F77=' -z text' |
14921 | if test "$GCC" = yes; then |
14869 | if test "$GCC" = yes; then |
|
|
14870 | wlarc='${wl}' |
14922 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14871 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14923 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14872 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14924 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14873 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14925 | else |
14874 | else |
|
|
14875 | wlarc='' |
14926 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14876 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14927 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14877 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14928 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14878 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14929 | fi |
14879 | fi |
14930 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14880 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14931 | hardcode_shlibpath_var_F77=no |
14881 | hardcode_shlibpath_var_F77=no |
14932 | case $host_os in |
14882 | case $host_os in |
14933 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14883 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
14884 | *) |
|
|
14885 | # The compiler driver will combine linker options so we |
|
|
14886 | # cannot just pass the convience library names through |
|
|
14887 | # without $wl, iff we do not link with $LD. |
|
|
14888 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14934 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
14889 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
14890 | case $wlarc in |
|
|
14891 | '') |
14935 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14892 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
|
|
14893 | *) |
|
|
14894 | whole_archive_flag_spec_F77='${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' ;; |
|
|
14895 | esac ;; |
14936 | esac |
14896 | esac |
14937 | link_all_deplibs_F77=yes |
14897 | link_all_deplibs_F77=yes |
14938 | ;; |
14898 | ;; |
14939 | |
14899 | |
14940 | sunos4*) |
14900 | sunos4*) |
… | |
… | |
14987 | hardcode_runpath_var=yes |
14947 | hardcode_runpath_var=yes |
14988 | ld_shlibs_F77=yes |
14948 | ld_shlibs_F77=yes |
14989 | fi |
14949 | fi |
14990 | ;; |
14950 | ;; |
14991 | |
14951 | |
14992 | sysv4.2uw2*) |
14952 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14993 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
14994 | hardcode_direct_F77=yes |
|
|
14995 | hardcode_minus_L_F77=no |
|
|
14996 | hardcode_shlibpath_var_F77=no |
|
|
14997 | hardcode_runpath_var=yes |
|
|
14998 | runpath_var=LD_RUN_PATH |
|
|
14999 | ;; |
|
|
15000 | |
|
|
15001 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
|
15002 | no_undefined_flag_F77='${wl}-z ${wl}text' |
14953 | no_undefined_flag_F77='${wl}-z,text' |
15003 | if test "$GCC" = yes; then |
14954 | archive_cmds_need_lc_F77=no |
15004 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15005 | else |
|
|
15006 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15007 | fi |
|
|
15008 | runpath_var='LD_RUN_PATH' |
|
|
15009 | hardcode_shlibpath_var_F77=no |
|
|
15010 | ;; |
|
|
15011 | |
|
|
15012 | sysv5*) |
|
|
15013 | no_undefined_flag_F77=' -z text' |
|
|
15014 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
15015 | # object files and a static libstdc++, better avoid it by now |
|
|
15016 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
15017 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
15018 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
15019 | hardcode_libdir_flag_spec_F77= |
|
|
15020 | hardcode_shlibpath_var_F77=no |
14955 | hardcode_shlibpath_var_F77=no |
15021 | runpath_var='LD_RUN_PATH' |
14956 | runpath_var='LD_RUN_PATH' |
|
|
14957 | |
|
|
14958 | if test "$GCC" = yes; then |
|
|
14959 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14960 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14961 | else |
|
|
14962 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14963 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14964 | fi |
|
|
14965 | ;; |
|
|
14966 | |
|
|
14967 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
14968 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
14969 | # link with -lc, and that would cause any symbols used from libc to |
|
|
14970 | # always be unresolved, which means just about no library would |
|
|
14971 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
14972 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
14973 | # as -z defs. |
|
|
14974 | no_undefined_flag_F77='${wl}-z,text' |
|
|
14975 | allow_undefined_flag_F77='${wl}-z,nodefs' |
|
|
14976 | archive_cmds_need_lc_F77=no |
|
|
14977 | hardcode_shlibpath_var_F77=no |
|
|
14978 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
14979 | hardcode_libdir_separator_F77=':' |
|
|
14980 | link_all_deplibs_F77=yes |
|
|
14981 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
|
14982 | runpath_var='LD_RUN_PATH' |
|
|
14983 | |
|
|
14984 | if test "$GCC" = yes; then |
|
|
14985 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14986 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14987 | else |
|
|
14988 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14989 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
14990 | fi |
15022 | ;; |
14991 | ;; |
15023 | |
14992 | |
15024 | uts4*) |
14993 | uts4*) |
15025 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14994 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15026 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14995 | hardcode_libdir_flag_spec_F77='-L$libdir' |
… | |
… | |
15034 | fi |
15003 | fi |
15035 | |
15004 | |
15036 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15005 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15037 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
15006 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
15038 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15007 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15039 | |
|
|
15040 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
15041 | if test "$GCC" = yes; then |
|
|
15042 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
15043 | fi |
|
|
15044 | |
15008 | |
15045 | # |
15009 | # |
15046 | # Do we need to explicitly link libc? |
15010 | # Do we need to explicitly link libc? |
15047 | # |
15011 | # |
15048 | case "x$archive_cmds_need_lc_F77" in |
15012 | case "x$archive_cmds_need_lc_F77" in |
… | |
… | |
15072 | soname=conftest |
15036 | soname=conftest |
15073 | lib=conftest |
15037 | lib=conftest |
15074 | libobjs=conftest.$ac_objext |
15038 | libobjs=conftest.$ac_objext |
15075 | deplibs= |
15039 | deplibs= |
15076 | wl=$lt_prog_compiler_wl_F77 |
15040 | wl=$lt_prog_compiler_wl_F77 |
|
|
15041 | pic_flag=$lt_prog_compiler_pic_F77 |
15077 | compiler_flags=-v |
15042 | compiler_flags=-v |
15078 | linker_flags=-v |
15043 | linker_flags=-v |
15079 | verstring= |
15044 | verstring= |
15080 | output_objdir=. |
15045 | output_objdir=. |
15081 | libname=conftest |
15046 | libname=conftest |
… | |
… | |
15107 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15072 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15108 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
15073 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
15109 | library_names_spec= |
15074 | library_names_spec= |
15110 | libname_spec='lib$name' |
15075 | libname_spec='lib$name' |
15111 | soname_spec= |
15076 | soname_spec= |
15112 | shrext=".so" |
15077 | shrext_cmds=".so" |
15113 | postinstall_cmds= |
15078 | postinstall_cmds= |
15114 | postuninstall_cmds= |
15079 | postuninstall_cmds= |
15115 | finish_cmds= |
15080 | finish_cmds= |
15116 | finish_eval= |
15081 | finish_eval= |
15117 | shlibpath_var= |
15082 | shlibpath_var= |
… | |
… | |
15204 | library_names_spec='${libname}${shared_ext}' |
15169 | library_names_spec='${libname}${shared_ext}' |
15205 | dynamic_linker="$host_os ld.so" |
15170 | dynamic_linker="$host_os ld.so" |
15206 | shlibpath_var=LIBRARY_PATH |
15171 | shlibpath_var=LIBRARY_PATH |
15207 | ;; |
15172 | ;; |
15208 | |
15173 | |
15209 | bsdi4*) |
15174 | bsdi[45]*) |
15210 | version_type=linux |
15175 | version_type=linux |
15211 | need_version=no |
15176 | need_version=no |
15212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15213 | soname_spec='${libname}${release}${shared_ext}$major' |
15178 | soname_spec='${libname}${release}${shared_ext}$major' |
15214 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15179 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
… | |
… | |
15220 | # libtool to hard-code these into programs |
15185 | # libtool to hard-code these into programs |
15221 | ;; |
15186 | ;; |
15222 | |
15187 | |
15223 | cygwin* | mingw* | pw32*) |
15188 | cygwin* | mingw* | pw32*) |
15224 | version_type=windows |
15189 | version_type=windows |
15225 | shrext=".dll" |
15190 | shrext_cmds=".dll" |
15226 | need_version=no |
15191 | need_version=no |
15227 | need_lib_prefix=no |
15192 | need_lib_prefix=no |
15228 | |
15193 | |
15229 | case $GCC,$host_os in |
15194 | case $GCC,$host_os in |
15230 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15195 | yes,cygwin* | yes,mingw* | yes,pw32*) |
… | |
… | |
15232 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15197 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15233 | postinstall_cmds='base_file=`basename \${file}`~ |
15198 | postinstall_cmds='base_file=`basename \${file}`~ |
15234 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15199 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15235 | dldir=$destdir/`dirname \$dlpath`~ |
15200 | dldir=$destdir/`dirname \$dlpath`~ |
15236 | test -d \$dldir || mkdir -p \$dldir~ |
15201 | test -d \$dldir || mkdir -p \$dldir~ |
15237 | $install_prog $dir/$dlname \$dldir/$dlname' |
15202 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
15203 | chmod a+x \$dldir/$dlname' |
15238 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15204 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15239 | dlpath=$dir/\$dldll~ |
15205 | dlpath=$dir/\$dldll~ |
15240 | $rm \$dlpath' |
15206 | $rm \$dlpath' |
15241 | shlibpath_overrides_runpath=yes |
15207 | shlibpath_overrides_runpath=yes |
15242 | |
15208 | |
… | |
… | |
15262 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15228 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15263 | fi |
15229 | fi |
15264 | ;; |
15230 | ;; |
15265 | pw32*) |
15231 | pw32*) |
15266 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15232 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15267 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
15233 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15268 | ;; |
15234 | ;; |
15269 | esac |
15235 | esac |
15270 | ;; |
15236 | ;; |
15271 | |
15237 | |
15272 | *) |
15238 | *) |
… | |
… | |
15285 | need_version=no |
15251 | need_version=no |
15286 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15252 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15287 | soname_spec='${libname}${release}${major}$shared_ext' |
15253 | soname_spec='${libname}${release}${major}$shared_ext' |
15288 | shlibpath_overrides_runpath=yes |
15254 | shlibpath_overrides_runpath=yes |
15289 | shlibpath_var=DYLD_LIBRARY_PATH |
15255 | shlibpath_var=DYLD_LIBRARY_PATH |
15290 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
15256 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15291 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15257 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15292 | if test "$GCC" = yes; then |
15258 | if test "$GCC" = yes; then |
15293 | 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"` |
15259 | 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"` |
15294 | else |
15260 | else |
15295 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15261 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
… | |
… | |
15308 | |
15274 | |
15309 | freebsd1*) |
15275 | freebsd1*) |
15310 | dynamic_linker=no |
15276 | dynamic_linker=no |
15311 | ;; |
15277 | ;; |
15312 | |
15278 | |
15313 | kfreebsd*-gnu) |
15279 | freebsd* | dragonfly*) |
15314 | version_type=linux |
15280 | # DragonFly does not have aout. When/if they implement a new |
15315 | need_lib_prefix=no |
15281 | # versioning mechanism, adjust this. |
15316 | need_version=no |
15282 | if test -x /usr/bin/objformat; then |
15317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15283 | objformat=`/usr/bin/objformat` |
15318 | soname_spec='${libname}${release}${shared_ext}$major' |
15284 | else |
15319 | shlibpath_var=LD_LIBRARY_PATH |
15285 | case $host_os in |
15320 | shlibpath_overrides_runpath=no |
15286 | freebsd[123]*) objformat=aout ;; |
15321 | hardcode_into_libs=yes |
15287 | *) objformat=elf ;; |
15322 | dynamic_linker='GNU ld.so' |
15288 | esac |
15323 | ;; |
15289 | fi |
15324 | |
|
|
15325 | freebsd*) |
|
|
15326 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
15327 | version_type=freebsd-$objformat |
15290 | version_type=freebsd-$objformat |
15328 | case $version_type in |
15291 | case $version_type in |
15329 | freebsd-elf*) |
15292 | freebsd-elf*) |
15330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15331 | need_version=no |
15294 | need_version=no |
… | |
… | |
15339 | shlibpath_var=LD_LIBRARY_PATH |
15302 | shlibpath_var=LD_LIBRARY_PATH |
15340 | case $host_os in |
15303 | case $host_os in |
15341 | freebsd2*) |
15304 | freebsd2*) |
15342 | shlibpath_overrides_runpath=yes |
15305 | shlibpath_overrides_runpath=yes |
15343 | ;; |
15306 | ;; |
15344 | freebsd3.01* | freebsdelf3.01*) |
15307 | freebsd3.[01]* | freebsdelf3.[01]*) |
15345 | shlibpath_overrides_runpath=yes |
15308 | shlibpath_overrides_runpath=yes |
15346 | hardcode_into_libs=yes |
15309 | hardcode_into_libs=yes |
15347 | ;; |
15310 | ;; |
15348 | *) # from 3.2 on |
15311 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
15312 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15349 | shlibpath_overrides_runpath=no |
15313 | shlibpath_overrides_runpath=no |
|
|
15314 | hardcode_into_libs=yes |
|
|
15315 | ;; |
|
|
15316 | freebsd*) # from 4.6 on |
|
|
15317 | shlibpath_overrides_runpath=yes |
15350 | hardcode_into_libs=yes |
15318 | hardcode_into_libs=yes |
15351 | ;; |
15319 | ;; |
15352 | esac |
15320 | esac |
15353 | ;; |
15321 | ;; |
15354 | |
15322 | |
… | |
… | |
15366 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15334 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15367 | # link against other versions. |
15335 | # link against other versions. |
15368 | version_type=sunos |
15336 | version_type=sunos |
15369 | need_lib_prefix=no |
15337 | need_lib_prefix=no |
15370 | need_version=no |
15338 | need_version=no |
15371 | case "$host_cpu" in |
15339 | case $host_cpu in |
15372 | ia64*) |
15340 | ia64*) |
15373 | shrext='.so' |
15341 | shrext_cmds='.so' |
15374 | hardcode_into_libs=yes |
15342 | hardcode_into_libs=yes |
15375 | dynamic_linker="$host_os dld.so" |
15343 | dynamic_linker="$host_os dld.so" |
15376 | shlibpath_var=LD_LIBRARY_PATH |
15344 | shlibpath_var=LD_LIBRARY_PATH |
15377 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15345 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
… | |
… | |
15383 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15351 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15384 | fi |
15352 | fi |
15385 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15353 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15386 | ;; |
15354 | ;; |
15387 | hppa*64*) |
15355 | hppa*64*) |
15388 | shrext='.sl' |
15356 | shrext_cmds='.sl' |
15389 | hardcode_into_libs=yes |
15357 | hardcode_into_libs=yes |
15390 | dynamic_linker="$host_os dld.sl" |
15358 | dynamic_linker="$host_os dld.sl" |
15391 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15359 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15392 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15360 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15394 | soname_spec='${libname}${release}${shared_ext}$major' |
15362 | soname_spec='${libname}${release}${shared_ext}$major' |
15395 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15363 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15396 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15364 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15397 | ;; |
15365 | ;; |
15398 | *) |
15366 | *) |
15399 | shrext='.sl' |
15367 | shrext_cmds='.sl' |
15400 | dynamic_linker="$host_os dld.sl" |
15368 | dynamic_linker="$host_os dld.sl" |
15401 | shlibpath_var=SHLIB_PATH |
15369 | shlibpath_var=SHLIB_PATH |
15402 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15370 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15371 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15404 | soname_spec='${libname}${release}${shared_ext}$major' |
15372 | soname_spec='${libname}${release}${shared_ext}$major' |
15405 | ;; |
15373 | ;; |
15406 | esac |
15374 | esac |
15407 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15375 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15408 | postinstall_cmds='chmod 555 $lib' |
15376 | postinstall_cmds='chmod 555 $lib' |
|
|
15377 | ;; |
|
|
15378 | |
|
|
15379 | interix3*) |
|
|
15380 | version_type=linux |
|
|
15381 | need_lib_prefix=no |
|
|
15382 | need_version=no |
|
|
15383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
15384 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
15385 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
15386 | shlibpath_var=LD_LIBRARY_PATH |
|
|
15387 | shlibpath_overrides_runpath=no |
|
|
15388 | hardcode_into_libs=yes |
15409 | ;; |
15389 | ;; |
15410 | |
15390 | |
15411 | irix5* | irix6* | nonstopux*) |
15391 | irix5* | irix6* | nonstopux*) |
15412 | case $host_os in |
15392 | case $host_os in |
15413 | nonstopux*) version_type=nonstopux ;; |
15393 | nonstopux*) version_type=nonstopux ;; |
… | |
… | |
15449 | linux*oldld* | linux*aout* | linux*coff*) |
15429 | linux*oldld* | linux*aout* | linux*coff*) |
15450 | dynamic_linker=no |
15430 | dynamic_linker=no |
15451 | ;; |
15431 | ;; |
15452 | |
15432 | |
15453 | # This must be Linux ELF. |
15433 | # This must be Linux ELF. |
15454 | linux*) |
15434 | linux* | k*bsd*-gnu) |
15455 | version_type=linux |
15435 | version_type=linux |
15456 | need_lib_prefix=no |
15436 | need_lib_prefix=no |
15457 | need_version=no |
15437 | need_version=no |
15458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15459 | soname_spec='${libname}${release}${shared_ext}$major' |
15439 | soname_spec='${libname}${release}${shared_ext}$major' |
… | |
… | |
15465 | # before this can be enabled. |
15445 | # before this can be enabled. |
15466 | hardcode_into_libs=yes |
15446 | hardcode_into_libs=yes |
15467 | |
15447 | |
15468 | # Append ld.so.conf contents to the search path |
15448 | # Append ld.so.conf contents to the search path |
15469 | if test -f /etc/ld.so.conf; then |
15449 | if test -f /etc/ld.so.conf; then |
15470 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
15450 | 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' ' '` |
15471 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
15451 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15472 | fi |
15452 | fi |
15473 | |
15453 | |
15474 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15454 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15475 | # powerpc, because MkLinux only supported shared libraries with the |
15455 | # powerpc, because MkLinux only supported shared libraries with the |
15476 | # GNU dynamic linker. Since this was broken with cross compilers, |
15456 | # GNU dynamic linker. Since this was broken with cross compilers, |
… | |
… | |
15478 | # people can always --disable-shared, the test was removed, and we |
15458 | # people can always --disable-shared, the test was removed, and we |
15479 | # assume the GNU/Linux dynamic linker is in use. |
15459 | # assume the GNU/Linux dynamic linker is in use. |
15480 | dynamic_linker='GNU/Linux ld.so' |
15460 | dynamic_linker='GNU/Linux ld.so' |
15481 | ;; |
15461 | ;; |
15482 | |
15462 | |
15483 | knetbsd*-gnu) |
15463 | netbsdelf*-gnu) |
15484 | version_type=linux |
15464 | version_type=linux |
15485 | need_lib_prefix=no |
15465 | need_lib_prefix=no |
15486 | need_version=no |
15466 | need_version=no |
15487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15488 | soname_spec='${libname}${release}${shared_ext}$major' |
15468 | soname_spec='${libname}${release}${shared_ext}$major' |
15489 | shlibpath_var=LD_LIBRARY_PATH |
15469 | shlibpath_var=LD_LIBRARY_PATH |
15490 | shlibpath_overrides_runpath=no |
15470 | shlibpath_overrides_runpath=no |
15491 | hardcode_into_libs=yes |
15471 | hardcode_into_libs=yes |
15492 | dynamic_linker='GNU ld.so' |
15472 | dynamic_linker='NetBSD ld.elf_so' |
15493 | ;; |
15473 | ;; |
15494 | |
15474 | |
15495 | netbsd*) |
15475 | netbsd*) |
15496 | version_type=sunos |
15476 | version_type=sunos |
15497 | need_lib_prefix=no |
15477 | need_lib_prefix=no |
… | |
… | |
15527 | shlibpath_overrides_runpath=yes |
15507 | shlibpath_overrides_runpath=yes |
15528 | ;; |
15508 | ;; |
15529 | |
15509 | |
15530 | openbsd*) |
15510 | openbsd*) |
15531 | version_type=sunos |
15511 | version_type=sunos |
|
|
15512 | sys_lib_dlsearch_path_spec="/usr/lib" |
15532 | need_lib_prefix=no |
15513 | need_lib_prefix=no |
15533 | need_version=yes |
15514 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
15515 | case $host_os in |
|
|
15516 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
15517 | *) need_version=no ;; |
|
|
15518 | esac |
15534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15535 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15520 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15536 | shlibpath_var=LD_LIBRARY_PATH |
15521 | shlibpath_var=LD_LIBRARY_PATH |
15537 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15522 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15538 | case $host_os in |
15523 | case $host_os in |
… | |
… | |
15548 | fi |
15533 | fi |
15549 | ;; |
15534 | ;; |
15550 | |
15535 | |
15551 | os2*) |
15536 | os2*) |
15552 | libname_spec='$name' |
15537 | libname_spec='$name' |
15553 | shrext=".dll" |
15538 | shrext_cmds=".dll" |
15554 | need_lib_prefix=no |
15539 | need_lib_prefix=no |
15555 | library_names_spec='$libname${shared_ext} $libname.a' |
15540 | library_names_spec='$libname${shared_ext} $libname.a' |
15556 | dynamic_linker='OS/2 ld.exe' |
15541 | dynamic_linker='OS/2 ld.exe' |
15557 | shlibpath_var=LIBPATH |
15542 | shlibpath_var=LIBPATH |
15558 | ;; |
15543 | ;; |
… | |
… | |
15564 | soname_spec='${libname}${release}${shared_ext}$major' |
15549 | soname_spec='${libname}${release}${shared_ext}$major' |
15565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15566 | shlibpath_var=LD_LIBRARY_PATH |
15551 | shlibpath_var=LD_LIBRARY_PATH |
15567 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15552 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15568 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15553 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15569 | ;; |
|
|
15570 | |
|
|
15571 | sco3.2v5*) |
|
|
15572 | version_type=osf |
|
|
15573 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
15574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
15575 | shlibpath_var=LD_LIBRARY_PATH |
|
|
15576 | ;; |
15554 | ;; |
15577 | |
15555 | |
15578 | solaris*) |
15556 | solaris*) |
15579 | version_type=linux |
15557 | version_type=linux |
15580 | need_lib_prefix=no |
15558 | need_lib_prefix=no |
… | |
… | |
15598 | need_lib_prefix=no |
15576 | need_lib_prefix=no |
15599 | fi |
15577 | fi |
15600 | need_version=yes |
15578 | need_version=yes |
15601 | ;; |
15579 | ;; |
15602 | |
15580 | |
15603 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
15581 | sysv4 | sysv4.3*) |
15604 | version_type=linux |
15582 | version_type=linux |
15605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15606 | soname_spec='${libname}${release}${shared_ext}$major' |
15584 | soname_spec='${libname}${release}${shared_ext}$major' |
15607 | shlibpath_var=LD_LIBRARY_PATH |
15585 | shlibpath_var=LD_LIBRARY_PATH |
15608 | case $host_vendor in |
15586 | case $host_vendor in |
… | |
… | |
15631 | soname_spec='$libname${shared_ext}.$major' |
15609 | soname_spec='$libname${shared_ext}.$major' |
15632 | shlibpath_var=LD_LIBRARY_PATH |
15610 | shlibpath_var=LD_LIBRARY_PATH |
15633 | fi |
15611 | fi |
15634 | ;; |
15612 | ;; |
15635 | |
15613 | |
|
|
15614 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
15615 | version_type=freebsd-elf |
|
|
15616 | need_lib_prefix=no |
|
|
15617 | need_version=no |
|
|
15618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
15619 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
15620 | shlibpath_var=LD_LIBRARY_PATH |
|
|
15621 | hardcode_into_libs=yes |
|
|
15622 | if test "$with_gnu_ld" = yes; then |
|
|
15623 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
15624 | shlibpath_overrides_runpath=no |
|
|
15625 | else |
|
|
15626 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
15627 | shlibpath_overrides_runpath=yes |
|
|
15628 | case $host_os in |
|
|
15629 | sco3.2v5*) |
|
|
15630 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
15631 | ;; |
|
|
15632 | esac |
|
|
15633 | fi |
|
|
15634 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
15635 | ;; |
|
|
15636 | |
15636 | uts4*) |
15637 | uts4*) |
15637 | version_type=linux |
15638 | version_type=linux |
15638 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15639 | soname_spec='${libname}${release}${shared_ext}$major' |
15640 | soname_spec='${libname}${release}${shared_ext}$major' |
15640 | shlibpath_var=LD_LIBRARY_PATH |
15641 | shlibpath_var=LD_LIBRARY_PATH |
… | |
… | |
15646 | esac |
15647 | esac |
15647 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15648 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15648 | echo "${ECHO_T}$dynamic_linker" >&6; } |
15649 | echo "${ECHO_T}$dynamic_linker" >&6; } |
15649 | test "$dynamic_linker" = no && can_build_shared=no |
15650 | test "$dynamic_linker" = no && can_build_shared=no |
15650 | |
15651 | |
|
|
15652 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
15653 | if test "$GCC" = yes; then |
|
|
15654 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
15655 | fi |
|
|
15656 | |
15651 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15657 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15652 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
15658 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
15653 | hardcode_action_F77= |
15659 | hardcode_action_F77= |
15654 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15660 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15655 | test -n "$runpath_var F77" || \ |
15661 | test -n "$runpath_var_F77" || \ |
15656 | test "X$hardcode_automatic_F77"="Xyes" ; then |
15662 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15657 | |
15663 | |
15658 | # We can hardcode non-existant directories. |
15664 | # We can hardcode non-existant directories. |
15659 | if test "$hardcode_direct_F77" != no && |
15665 | if test "$hardcode_direct_F77" != no && |
15660 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15666 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15661 | # have to relink, otherwise we might link with an installed library |
15667 | # have to relink, otherwise we might link with an installed library |
… | |
… | |
15683 | test "$enable_shared" = no; then |
15689 | test "$enable_shared" = no; then |
15684 | # Fast installation is not necessary |
15690 | # Fast installation is not necessary |
15685 | enable_fast_install=needless |
15691 | enable_fast_install=needless |
15686 | fi |
15692 | fi |
15687 | |
15693 | |
15688 | striplib= |
|
|
15689 | old_striplib= |
|
|
15690 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
15691 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
|
|
15692 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
15693 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
15694 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
15695 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
15696 | echo "${ECHO_T}yes" >&6; } |
|
|
15697 | else |
|
|
15698 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
15699 | case $host_os in |
|
|
15700 | darwin*) |
|
|
15701 | if test -n "$STRIP" ; then |
|
|
15702 | striplib="$STRIP -x" |
|
|
15703 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
15704 | echo "${ECHO_T}yes" >&6; } |
|
|
15705 | else |
|
|
15706 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
15707 | echo "${ECHO_T}no" >&6; } |
|
|
15708 | fi |
|
|
15709 | ;; |
|
|
15710 | *) |
|
|
15711 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
15712 | echo "${ECHO_T}no" >&6; } |
|
|
15713 | ;; |
|
|
15714 | esac |
|
|
15715 | fi |
|
|
15716 | |
|
|
15717 | |
|
|
15718 | |
15694 | |
15719 | # The else clause should only fire when bootstrapping the |
15695 | # The else clause should only fire when bootstrapping the |
15720 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15696 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15721 | # with your package, and you will get complaints that there are |
15697 | # with your package, and you will get complaints that there are |
15722 | # no rules to generate ltmain.sh. |
15698 | # no rules to generate ltmain.sh. |
… | |
… | |
15727 | setopt NO_GLOB_SUBST |
15703 | setopt NO_GLOB_SUBST |
15728 | fi |
15704 | fi |
15729 | # Now quote all the things that may contain metacharacters while being |
15705 | # Now quote all the things that may contain metacharacters while being |
15730 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15706 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15731 | # variables and quote the copies for generation of the libtool script. |
15707 | # variables and quote the copies for generation of the libtool script. |
15732 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
15708 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15733 | SED SHELL STRIP \ |
15709 | SED SHELL STRIP \ |
15734 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15710 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15735 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15711 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15736 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15712 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15737 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15713 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
… | |
… | |
15828 | fast_install=$enable_fast_install |
15804 | fast_install=$enable_fast_install |
15829 | |
15805 | |
15830 | # The host system. |
15806 | # The host system. |
15831 | host_alias=$host_alias |
15807 | host_alias=$host_alias |
15832 | host=$host |
15808 | host=$host |
|
|
15809 | host_os=$host_os |
|
|
15810 | |
|
|
15811 | # The build system. |
|
|
15812 | build_alias=$build_alias |
|
|
15813 | build=$build |
|
|
15814 | build_os=$build_os |
15833 | |
15815 | |
15834 | # An echo program that does not interpret backslashes. |
15816 | # An echo program that does not interpret backslashes. |
15835 | echo=$lt_echo |
15817 | echo=$lt_echo |
15836 | |
15818 | |
15837 | # The archiver. |
15819 | # The archiver. |
… | |
… | |
15839 | AR_FLAGS=$lt_AR_FLAGS |
15821 | AR_FLAGS=$lt_AR_FLAGS |
15840 | |
15822 | |
15841 | # A C compiler. |
15823 | # A C compiler. |
15842 | LTCC=$lt_LTCC |
15824 | LTCC=$lt_LTCC |
15843 | |
15825 | |
|
|
15826 | # LTCC compiler flags. |
|
|
15827 | LTCFLAGS=$lt_LTCFLAGS |
|
|
15828 | |
15844 | # A language-specific compiler. |
15829 | # A language-specific compiler. |
15845 | CC=$lt_compiler_F77 |
15830 | CC=$lt_compiler_F77 |
15846 | |
15831 | |
15847 | # Is the compiler the GNU C compiler? |
15832 | # Is the compiler the GNU C compiler? |
15848 | with_gcc=$GCC_F77 |
15833 | with_gcc=$GCC_F77 |
… | |
… | |
15889 | |
15874 | |
15890 | # Old archive suffix (normally "a"). |
15875 | # Old archive suffix (normally "a"). |
15891 | libext="$libext" |
15876 | libext="$libext" |
15892 | |
15877 | |
15893 | # Shared library suffix (normally ".so"). |
15878 | # Shared library suffix (normally ".so"). |
15894 | shrext='$shrext' |
15879 | shrext_cmds='$shrext_cmds' |
15895 | |
15880 | |
15896 | # Executable file suffix (normally ""). |
15881 | # Executable file suffix (normally ""). |
15897 | exeext="$exeext" |
15882 | exeext="$exeext" |
15898 | |
15883 | |
15899 | # Additional compiler flags for building library objects. |
15884 | # Additional compiler flags for building library objects. |
… | |
… | |
15904 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15889 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15905 | |
15890 | |
15906 | # Does compiler simultaneously support -c and -o options? |
15891 | # Does compiler simultaneously support -c and -o options? |
15907 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15892 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15908 | |
15893 | |
15909 | # Must we lock files when doing compilation ? |
15894 | # Must we lock files when doing compilation? |
15910 | need_locks=$lt_need_locks |
15895 | need_locks=$lt_need_locks |
15911 | |
15896 | |
15912 | # Do we need the lib prefix for modules? |
15897 | # Do we need the lib prefix for modules? |
15913 | need_lib_prefix=$need_lib_prefix |
15898 | need_lib_prefix=$need_lib_prefix |
15914 | |
15899 | |
… | |
… | |
16141 | |
16126 | |
16142 | # Code to be used in simple compile tests |
16127 | # Code to be used in simple compile tests |
16143 | lt_simple_compile_test_code="class foo {}\n" |
16128 | lt_simple_compile_test_code="class foo {}\n" |
16144 | |
16129 | |
16145 | # Code to be used in simple link tests |
16130 | # Code to be used in simple link tests |
16146 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
16131 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16147 | |
16132 | |
16148 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16133 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16149 | |
16134 | |
16150 | # If no C compiler was specified, use CC. |
16135 | # If no C compiler was specified, use CC. |
16151 | LTCC=${LTCC-"$CC"} |
16136 | LTCC=${LTCC-"$CC"} |
16152 | |
16137 | |
|
|
16138 | # If no C compiler flags were specified, use CFLAGS. |
|
|
16139 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
16140 | |
16153 | # Allow CC to be a program name with arguments. |
16141 | # Allow CC to be a program name with arguments. |
16154 | compiler=$CC |
16142 | compiler=$CC |
|
|
16143 | |
|
|
16144 | |
|
|
16145 | # save warnings/boilerplate of simple test code |
|
|
16146 | ac_outfile=conftest.$ac_objext |
|
|
16147 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
16148 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
16149 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
16150 | $rm conftest* |
|
|
16151 | |
|
|
16152 | ac_outfile=conftest.$ac_objext |
|
|
16153 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
16154 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
16155 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
16156 | $rm conftest* |
16155 | |
16157 | |
16156 | |
16158 | |
16157 | # Allow CC to be a program name with arguments. |
16159 | # Allow CC to be a program name with arguments. |
16158 | lt_save_CC="$CC" |
16160 | lt_save_CC="$CC" |
16159 | CC=${GCJ-"gcj"} |
16161 | CC=${GCJ-"gcj"} |
16160 | compiler=$CC |
16162 | compiler=$CC |
16161 | compiler_GCJ=$CC |
16163 | compiler_GCJ=$CC |
|
|
16164 | for cc_temp in $compiler""; do |
|
|
16165 | case $cc_temp in |
|
|
16166 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
16167 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
16168 | \-*) ;; |
|
|
16169 | *) break;; |
|
|
16170 | esac |
|
|
16171 | done |
|
|
16172 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
16173 | |
16162 | |
16174 | |
16163 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16175 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16164 | archive_cmds_need_lc_GCJ=no |
16176 | archive_cmds_need_lc_GCJ=no |
|
|
16177 | |
|
|
16178 | old_archive_cmds_GCJ=$old_archive_cmds |
16165 | |
16179 | |
16166 | |
16180 | |
16167 | lt_prog_compiler_no_builtin_flag_GCJ= |
16181 | lt_prog_compiler_no_builtin_flag_GCJ= |
16168 | |
16182 | |
16169 | if test "$GCC" = yes; then |
16183 | if test "$GCC" = yes; then |
… | |
… | |
16183 | # (2) before a word containing "conftest.", or (3) at the end. |
16197 | # (2) before a word containing "conftest.", or (3) at the end. |
16184 | # Note that $ac_compile itself does not contain backslashes and begins |
16198 | # Note that $ac_compile itself does not contain backslashes and begins |
16185 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16199 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16186 | # The option is referenced via a variable to avoid confusing sed. |
16200 | # The option is referenced via a variable to avoid confusing sed. |
16187 | lt_compile=`echo "$ac_compile" | $SED \ |
16201 | lt_compile=`echo "$ac_compile" | $SED \ |
16188 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16202 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16189 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16203 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16190 | -e 's:$: $lt_compiler_flag:'` |
16204 | -e 's:$: $lt_compiler_flag:'` |
16191 | (eval echo "\"\$as_me:16191: $lt_compile\"" >&5) |
16205 | (eval echo "\"\$as_me:16205: $lt_compile\"" >&5) |
16192 | (eval "$lt_compile" 2>conftest.err) |
16206 | (eval "$lt_compile" 2>conftest.err) |
16193 | ac_status=$? |
16207 | ac_status=$? |
16194 | cat conftest.err >&5 |
16208 | cat conftest.err >&5 |
16195 | echo "$as_me:16195: \$? = $ac_status" >&5 |
16209 | echo "$as_me:16209: \$? = $ac_status" >&5 |
16196 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16210 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16197 | # The compiler can only warn and ignore the option if not recognized |
16211 | # The compiler can only warn and ignore the option if not recognized |
16198 | # So say no if there are warnings |
16212 | # So say no if there are warnings other than the usual output. |
16199 | if test ! -s conftest.err; then |
16213 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
16214 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
16215 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16200 | lt_cv_prog_compiler_rtti_exceptions=yes |
16216 | lt_cv_prog_compiler_rtti_exceptions=yes |
16201 | fi |
16217 | fi |
16202 | fi |
16218 | fi |
16203 | $rm conftest* |
16219 | $rm conftest* |
16204 | |
16220 | |
… | |
… | |
16255 | # PIC is the default on this platform |
16271 | # PIC is the default on this platform |
16256 | # Common symbols not allowed in MH_DYLIB files |
16272 | # Common symbols not allowed in MH_DYLIB files |
16257 | lt_prog_compiler_pic_GCJ='-fno-common' |
16273 | lt_prog_compiler_pic_GCJ='-fno-common' |
16258 | ;; |
16274 | ;; |
16259 | |
16275 | |
|
|
16276 | interix3*) |
|
|
16277 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
16278 | # Instead, we relocate shared libraries at runtime. |
|
|
16279 | ;; |
|
|
16280 | |
16260 | msdosdjgpp*) |
16281 | msdosdjgpp*) |
16261 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16282 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16262 | # on systems that don't support them. |
16283 | # on systems that don't support them. |
16263 | lt_prog_compiler_can_build_shared_GCJ=no |
16284 | lt_prog_compiler_can_build_shared_GCJ=no |
16264 | enable_shared=no |
16285 | enable_shared=no |
… | |
… | |
16271 | ;; |
16292 | ;; |
16272 | |
16293 | |
16273 | hpux*) |
16294 | hpux*) |
16274 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16295 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16275 | # not for PA HP-UX. |
16296 | # not for PA HP-UX. |
16276 | case "$host_cpu" in |
16297 | case $host_cpu in |
16277 | hppa*64*|ia64*) |
16298 | hppa*64*|ia64*) |
16278 | # +Z the default |
16299 | # +Z the default |
16279 | ;; |
16300 | ;; |
16280 | *) |
16301 | *) |
16281 | lt_prog_compiler_pic_GCJ='-fPIC' |
16302 | lt_prog_compiler_pic_GCJ='-fPIC' |
… | |
… | |
16297 | lt_prog_compiler_static_GCJ='-Bstatic' |
16318 | lt_prog_compiler_static_GCJ='-Bstatic' |
16298 | else |
16319 | else |
16299 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16320 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16300 | fi |
16321 | fi |
16301 | ;; |
16322 | ;; |
|
|
16323 | darwin*) |
|
|
16324 | # PIC is the default on this platform |
|
|
16325 | # Common symbols not allowed in MH_DYLIB files |
|
|
16326 | case $cc_basename in |
|
|
16327 | xlc*) |
|
|
16328 | lt_prog_compiler_pic_GCJ='-qnocommon' |
|
|
16329 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
16330 | ;; |
|
|
16331 | esac |
|
|
16332 | ;; |
16302 | |
16333 | |
16303 | mingw* | pw32* | os2*) |
16334 | mingw* | pw32* | os2*) |
16304 | # This hack is so that the source file can tell whether it is being |
16335 | # This hack is so that the source file can tell whether it is being |
16305 | # built for inclusion in a dll (and should export symbols for example). |
16336 | # built for inclusion in a dll (and should export symbols for example). |
16306 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16337 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
… | |
… | |
16308 | |
16339 | |
16309 | hpux9* | hpux10* | hpux11*) |
16340 | hpux9* | hpux10* | hpux11*) |
16310 | lt_prog_compiler_wl_GCJ='-Wl,' |
16341 | lt_prog_compiler_wl_GCJ='-Wl,' |
16311 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16342 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16312 | # not for PA HP-UX. |
16343 | # not for PA HP-UX. |
16313 | case "$host_cpu" in |
16344 | case $host_cpu in |
16314 | hppa*64*|ia64*) |
16345 | hppa*64*|ia64*) |
16315 | # +Z the default |
16346 | # +Z the default |
16316 | ;; |
16347 | ;; |
16317 | *) |
16348 | *) |
16318 | lt_prog_compiler_pic_GCJ='+Z' |
16349 | lt_prog_compiler_pic_GCJ='+Z' |
… | |
… | |
16331 | newsos6) |
16362 | newsos6) |
16332 | lt_prog_compiler_pic_GCJ='-KPIC' |
16363 | lt_prog_compiler_pic_GCJ='-KPIC' |
16333 | lt_prog_compiler_static_GCJ='-Bstatic' |
16364 | lt_prog_compiler_static_GCJ='-Bstatic' |
16334 | ;; |
16365 | ;; |
16335 | |
16366 | |
16336 | linux*) |
16367 | linux* | k*bsd*-gnu) |
16337 | case $CC in |
16368 | case $cc_basename in |
16338 | icc* | ecc*) |
16369 | icc* | ecc*) |
16339 | lt_prog_compiler_wl_GCJ='-Wl,' |
16370 | lt_prog_compiler_wl_GCJ='-Wl,' |
16340 | lt_prog_compiler_pic_GCJ='-KPIC' |
16371 | lt_prog_compiler_pic_GCJ='-KPIC' |
16341 | lt_prog_compiler_static_GCJ='-static' |
16372 | lt_prog_compiler_static_GCJ='-static' |
|
|
16373 | ;; |
|
|
16374 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
16375 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
16376 | # which looks to be a dead project) |
|
|
16377 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
16378 | lt_prog_compiler_pic_GCJ='-fpic' |
|
|
16379 | lt_prog_compiler_static_GCJ='-Bstatic' |
16342 | ;; |
16380 | ;; |
16343 | ccc*) |
16381 | ccc*) |
16344 | lt_prog_compiler_wl_GCJ='-Wl,' |
16382 | lt_prog_compiler_wl_GCJ='-Wl,' |
16345 | # All Alpha code is PIC. |
16383 | # All Alpha code is PIC. |
16346 | lt_prog_compiler_static_GCJ='-non_shared' |
16384 | lt_prog_compiler_static_GCJ='-non_shared' |
… | |
… | |
16352 | lt_prog_compiler_wl_GCJ='-Wl,' |
16390 | lt_prog_compiler_wl_GCJ='-Wl,' |
16353 | # All OSF/1 code is PIC. |
16391 | # All OSF/1 code is PIC. |
16354 | lt_prog_compiler_static_GCJ='-non_shared' |
16392 | lt_prog_compiler_static_GCJ='-non_shared' |
16355 | ;; |
16393 | ;; |
16356 | |
16394 | |
16357 | sco3.2v5*) |
|
|
16358 | lt_prog_compiler_pic_GCJ='-Kpic' |
|
|
16359 | lt_prog_compiler_static_GCJ='-dn' |
|
|
16360 | ;; |
|
|
16361 | |
|
|
16362 | solaris*) |
16395 | solaris*) |
16363 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
16364 | lt_prog_compiler_pic_GCJ='-KPIC' |
16396 | lt_prog_compiler_pic_GCJ='-KPIC' |
16365 | lt_prog_compiler_static_GCJ='-Bstatic' |
16397 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
16398 | case $cc_basename in |
|
|
16399 | f77* | f90* | f95*) |
|
|
16400 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
|
|
16401 | *) |
|
|
16402 | lt_prog_compiler_wl_GCJ='-Wl,';; |
|
|
16403 | esac |
16366 | ;; |
16404 | ;; |
16367 | |
16405 | |
16368 | sunos4*) |
16406 | sunos4*) |
16369 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16407 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16370 | lt_prog_compiler_pic_GCJ='-PIC' |
16408 | lt_prog_compiler_pic_GCJ='-PIC' |
16371 | lt_prog_compiler_static_GCJ='-Bstatic' |
16409 | lt_prog_compiler_static_GCJ='-Bstatic' |
16372 | ;; |
16410 | ;; |
16373 | |
16411 | |
16374 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
16412 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16375 | lt_prog_compiler_wl_GCJ='-Wl,' |
16413 | lt_prog_compiler_wl_GCJ='-Wl,' |
16376 | lt_prog_compiler_pic_GCJ='-KPIC' |
16414 | lt_prog_compiler_pic_GCJ='-KPIC' |
16377 | lt_prog_compiler_static_GCJ='-Bstatic' |
16415 | lt_prog_compiler_static_GCJ='-Bstatic' |
16378 | ;; |
16416 | ;; |
16379 | |
16417 | |
16380 | sysv4*MP*) |
16418 | sysv4*MP*) |
16381 | if test -d /usr/nec ;then |
16419 | if test -d /usr/nec ;then |
16382 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16420 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16383 | lt_prog_compiler_static_GCJ='-Bstatic' |
16421 | lt_prog_compiler_static_GCJ='-Bstatic' |
16384 | fi |
16422 | fi |
|
|
16423 | ;; |
|
|
16424 | |
|
|
16425 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
16426 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
16427 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
16428 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
16429 | ;; |
|
|
16430 | |
|
|
16431 | unicos*) |
|
|
16432 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
16433 | lt_prog_compiler_can_build_shared_GCJ=no |
16385 | ;; |
16434 | ;; |
16386 | |
16435 | |
16387 | uts4*) |
16436 | uts4*) |
16388 | lt_prog_compiler_pic_GCJ='-pic' |
16437 | lt_prog_compiler_pic_GCJ='-pic' |
16389 | lt_prog_compiler_static_GCJ='-Bstatic' |
16438 | lt_prog_compiler_static_GCJ='-Bstatic' |
… | |
… | |
16416 | # (2) before a word containing "conftest.", or (3) at the end. |
16465 | # (2) before a word containing "conftest.", or (3) at the end. |
16417 | # Note that $ac_compile itself does not contain backslashes and begins |
16466 | # Note that $ac_compile itself does not contain backslashes and begins |
16418 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16467 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16419 | # The option is referenced via a variable to avoid confusing sed. |
16468 | # The option is referenced via a variable to avoid confusing sed. |
16420 | lt_compile=`echo "$ac_compile" | $SED \ |
16469 | lt_compile=`echo "$ac_compile" | $SED \ |
16421 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16470 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16422 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16471 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16423 | -e 's:$: $lt_compiler_flag:'` |
16472 | -e 's:$: $lt_compiler_flag:'` |
16424 | (eval echo "\"\$as_me:16424: $lt_compile\"" >&5) |
16473 | (eval echo "\"\$as_me:16473: $lt_compile\"" >&5) |
16425 | (eval "$lt_compile" 2>conftest.err) |
16474 | (eval "$lt_compile" 2>conftest.err) |
16426 | ac_status=$? |
16475 | ac_status=$? |
16427 | cat conftest.err >&5 |
16476 | cat conftest.err >&5 |
16428 | echo "$as_me:16428: \$? = $ac_status" >&5 |
16477 | echo "$as_me:16477: \$? = $ac_status" >&5 |
16429 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16478 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16430 | # The compiler can only warn and ignore the option if not recognized |
16479 | # The compiler can only warn and ignore the option if not recognized |
16431 | # So say no if there are warnings |
16480 | # So say no if there are warnings other than the usual output. |
16432 | if test ! -s conftest.err; then |
16481 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
16482 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
16483 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16433 | lt_prog_compiler_pic_works_GCJ=yes |
16484 | lt_prog_compiler_pic_works_GCJ=yes |
16434 | fi |
16485 | fi |
16435 | fi |
16486 | fi |
16436 | $rm conftest* |
16487 | $rm conftest* |
16437 | |
16488 | |
… | |
… | |
16448 | lt_prog_compiler_pic_GCJ= |
16499 | lt_prog_compiler_pic_GCJ= |
16449 | lt_prog_compiler_can_build_shared_GCJ=no |
16500 | lt_prog_compiler_can_build_shared_GCJ=no |
16450 | fi |
16501 | fi |
16451 | |
16502 | |
16452 | fi |
16503 | fi |
16453 | case "$host_os" in |
16504 | case $host_os in |
16454 | # For platforms which do not support PIC, -DPIC is meaningless: |
16505 | # For platforms which do not support PIC, -DPIC is meaningless: |
16455 | *djgpp*) |
16506 | *djgpp*) |
16456 | lt_prog_compiler_pic_GCJ= |
16507 | lt_prog_compiler_pic_GCJ= |
16457 | ;; |
16508 | ;; |
16458 | *) |
16509 | *) |
16459 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16510 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16460 | ;; |
16511 | ;; |
16461 | esac |
16512 | esac |
16462 | |
16513 | |
|
|
16514 | # |
|
|
16515 | # Check to make sure the static flag actually works. |
|
|
16516 | # |
|
|
16517 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
|
|
16518 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
16519 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
|
16520 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
|
|
16521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
16522 | else |
|
|
16523 | lt_prog_compiler_static_works_GCJ=no |
|
|
16524 | save_LDFLAGS="$LDFLAGS" |
|
|
16525 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
16526 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
16527 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
16528 | # The linker can only warn and ignore the option if not recognized |
|
|
16529 | # So say no if there are warnings |
|
|
16530 | if test -s conftest.err; then |
|
|
16531 | # Append any errors to the config.log. |
|
|
16532 | cat conftest.err 1>&5 |
|
|
16533 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
16534 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
16535 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
16536 | lt_prog_compiler_static_works_GCJ=yes |
|
|
16537 | fi |
|
|
16538 | else |
|
|
16539 | lt_prog_compiler_static_works_GCJ=yes |
|
|
16540 | fi |
|
|
16541 | fi |
|
|
16542 | $rm conftest* |
|
|
16543 | LDFLAGS="$save_LDFLAGS" |
|
|
16544 | |
|
|
16545 | fi |
|
|
16546 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
|
|
16547 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
|
|
16548 | |
|
|
16549 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
|
|
16550 | : |
|
|
16551 | else |
|
|
16552 | lt_prog_compiler_static_GCJ= |
|
|
16553 | fi |
|
|
16554 | |
|
|
16555 | |
16463 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16556 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16464 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
16557 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
16465 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16558 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16467 | else |
16560 | else |
… | |
… | |
16476 | # Insert the option either (1) after the last *FLAGS variable, or |
16569 | # Insert the option either (1) after the last *FLAGS variable, or |
16477 | # (2) before a word containing "conftest.", or (3) at the end. |
16570 | # (2) before a word containing "conftest.", or (3) at the end. |
16478 | # Note that $ac_compile itself does not contain backslashes and begins |
16571 | # Note that $ac_compile itself does not contain backslashes and begins |
16479 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16572 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16480 | lt_compile=`echo "$ac_compile" | $SED \ |
16573 | lt_compile=`echo "$ac_compile" | $SED \ |
16481 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16574 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16482 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16575 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16483 | -e 's:$: $lt_compiler_flag:'` |
16576 | -e 's:$: $lt_compiler_flag:'` |
16484 | (eval echo "\"\$as_me:16484: $lt_compile\"" >&5) |
16577 | (eval echo "\"\$as_me:16577: $lt_compile\"" >&5) |
16485 | (eval "$lt_compile" 2>out/conftest.err) |
16578 | (eval "$lt_compile" 2>out/conftest.err) |
16486 | ac_status=$? |
16579 | ac_status=$? |
16487 | cat out/conftest.err >&5 |
16580 | cat out/conftest.err >&5 |
16488 | echo "$as_me:16488: \$? = $ac_status" >&5 |
16581 | echo "$as_me:16581: \$? = $ac_status" >&5 |
16489 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16582 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16490 | then |
16583 | then |
16491 | # The compiler can only warn and ignore the option if not recognized |
16584 | # The compiler can only warn and ignore the option if not recognized |
16492 | # So say no if there are warnings |
16585 | # So say no if there are warnings |
16493 | if test ! -s out/conftest.err; then |
16586 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
16587 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
16588 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16494 | lt_cv_prog_compiler_c_o_GCJ=yes |
16589 | lt_cv_prog_compiler_c_o_GCJ=yes |
16495 | fi |
16590 | fi |
16496 | fi |
16591 | fi |
16497 | chmod u+w . |
16592 | chmod u+w . 2>&5 |
16498 | $rm conftest* |
16593 | $rm conftest* |
16499 | # SGI C++ compiler will create directory out/ii_files/ for |
16594 | # SGI C++ compiler will create directory out/ii_files/ for |
16500 | # template instantiation |
16595 | # template instantiation |
16501 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16596 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16502 | $rm out/* && rmdir out |
16597 | $rm out/* && rmdir out |
… | |
… | |
16568 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16663 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16569 | # the symbol is explicitly referenced. Since portable code cannot |
16664 | # the symbol is explicitly referenced. Since portable code cannot |
16570 | # rely on this symbol name, it's probably fine to never include it in |
16665 | # rely on this symbol name, it's probably fine to never include it in |
16571 | # preloaded symbol tables. |
16666 | # preloaded symbol tables. |
16572 | extract_expsyms_cmds= |
16667 | extract_expsyms_cmds= |
|
|
16668 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
16669 | for cc_temp in $compiler""; do |
|
|
16670 | case $cc_temp in |
|
|
16671 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
16672 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
16673 | \-*) ;; |
|
|
16674 | *) break;; |
|
|
16675 | esac |
|
|
16676 | done |
|
|
16677 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16573 | |
16678 | |
16574 | case $host_os in |
16679 | case $host_os in |
16575 | cygwin* | mingw* | pw32*) |
16680 | cygwin* | mingw* | pw32*) |
16576 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16681 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16577 | # When not using gcc, we currently assume that we are using |
16682 | # When not using gcc, we currently assume that we are using |
16578 | # Microsoft Visual C++. |
16683 | # Microsoft Visual C++. |
16579 | if test "$GCC" != yes; then |
16684 | if test "$GCC" != yes; then |
16580 | with_gnu_ld=no |
16685 | with_gnu_ld=no |
16581 | fi |
16686 | fi |
16582 | ;; |
16687 | ;; |
|
|
16688 | interix*) |
|
|
16689 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
16690 | with_gnu_ld=yes |
|
|
16691 | ;; |
16583 | openbsd*) |
16692 | openbsd*) |
16584 | with_gnu_ld=no |
16693 | with_gnu_ld=no |
16585 | ;; |
16694 | ;; |
16586 | esac |
16695 | esac |
16587 | |
16696 | |
16588 | ld_shlibs_GCJ=yes |
16697 | ld_shlibs_GCJ=yes |
16589 | if test "$with_gnu_ld" = yes; then |
16698 | if test "$with_gnu_ld" = yes; then |
16590 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16699 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16591 | wlarc='${wl}' |
16700 | wlarc='${wl}' |
|
|
16701 | |
|
|
16702 | # Set some defaults for GNU ld with shared library support. These |
|
|
16703 | # are reset later if shared libraries are not supported. Putting them |
|
|
16704 | # here allows them to be overridden if necessary. |
|
|
16705 | runpath_var=LD_RUN_PATH |
|
|
16706 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
|
16707 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
|
16708 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
16709 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
16710 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
16711 | else |
|
|
16712 | whole_archive_flag_spec_GCJ= |
|
|
16713 | fi |
|
|
16714 | supports_anon_versioning=no |
|
|
16715 | case `$LD -v 2>/dev/null` in |
|
|
16716 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
16717 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
16718 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
16719 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
16720 | *) supports_anon_versioning=yes ;; |
|
|
16721 | esac |
16592 | |
16722 | |
16593 | # See if GNU ld supports shared libraries. |
16723 | # See if GNU ld supports shared libraries. |
16594 | case $host_os in |
16724 | case $host_os in |
16595 | aix3* | aix4* | aix5*) |
16725 | aix3* | aix4* | aix5*) |
16596 | # On AIX/PPC, the GNU linker is very broken |
16726 | # On AIX/PPC, the GNU linker is very broken |
… | |
… | |
16638 | # as there is no search path for DLLs. |
16768 | # as there is no search path for DLLs. |
16639 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16769 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16640 | allow_undefined_flag_GCJ=unsupported |
16770 | allow_undefined_flag_GCJ=unsupported |
16641 | always_export_symbols_GCJ=no |
16771 | always_export_symbols_GCJ=no |
16642 | enable_shared_with_static_runtimes_GCJ=yes |
16772 | enable_shared_with_static_runtimes_GCJ=yes |
16643 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16773 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16644 | |
16774 | |
16645 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16775 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16646 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16776 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16647 | # If the export-symbols file already is a .def file (1st line |
16777 | # If the export-symbols file already is a .def file (1st line |
16648 | # is EXPORTS), use it as is; otherwise, prepend... |
16778 | # is EXPORTS), use it as is; otherwise, prepend... |
16649 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16779 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16650 | cp $export_symbols $output_objdir/$soname.def; |
16780 | cp $export_symbols $output_objdir/$soname.def; |
16651 | else |
16781 | else |
16652 | echo EXPORTS > $output_objdir/$soname.def; |
16782 | echo EXPORTS > $output_objdir/$soname.def; |
16653 | cat $export_symbols >> $output_objdir/$soname.def; |
16783 | cat $export_symbols >> $output_objdir/$soname.def; |
16654 | fi~ |
16784 | fi~ |
16655 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16785 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16656 | else |
16786 | else |
16657 | ld_shlibs=no |
16787 | ld_shlibs_GCJ=no |
16658 | fi |
16788 | fi |
16659 | ;; |
16789 | ;; |
16660 | |
16790 | |
16661 | netbsd*) |
16791 | interix3*) |
|
|
16792 | hardcode_direct_GCJ=no |
|
|
16793 | hardcode_shlibpath_var_GCJ=no |
|
|
16794 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
16795 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
16796 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
16797 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
16798 | # default) and relocated if they conflict, which is a slow very memory |
|
|
16799 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
16800 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
16801 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
16802 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
16803 | archive_expsym_cmds_GCJ='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' |
|
|
16804 | ;; |
|
|
16805 | |
|
|
16806 | linux* | k*bsd*-gnu) |
|
|
16807 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
16808 | tmp_addflag= |
|
|
16809 | case $cc_basename,$host_cpu in |
|
|
16810 | pgcc*) # Portland Group C compiler |
|
|
16811 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
16812 | tmp_addflag=' $pic_flag' |
|
|
16813 | ;; |
|
|
16814 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
16815 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
16816 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
16817 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
16818 | tmp_addflag=' -i_dynamic' ;; |
|
|
16819 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
16820 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
16821 | ifc* | ifort*) # Intel Fortran compiler |
|
|
16822 | tmp_addflag=' -nofor_main' ;; |
|
|
16823 | esac |
|
|
16824 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
16825 | |
|
|
16826 | if test $supports_anon_versioning = yes; then |
|
|
16827 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
16828 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
16829 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
16830 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
16831 | fi |
|
|
16832 | link_all_deplibs_GCJ=no |
|
|
16833 | else |
|
|
16834 | ld_shlibs_GCJ=no |
|
|
16835 | fi |
|
|
16836 | ;; |
|
|
16837 | |
|
|
16838 | netbsd* | netbsdelf*-gnu) |
16662 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16839 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16663 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16840 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16664 | wlarc= |
16841 | wlarc= |
16665 | else |
16842 | else |
16666 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16843 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16667 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16844 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16668 | fi |
16845 | fi |
16669 | ;; |
16846 | ;; |
16670 | |
16847 | |
16671 | solaris* | sysv5*) |
16848 | solaris*) |
16672 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16849 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16673 | ld_shlibs_GCJ=no |
16850 | ld_shlibs_GCJ=no |
16674 | cat <<EOF 1>&2 |
16851 | cat <<EOF 1>&2 |
16675 | |
16852 | |
16676 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16853 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
… | |
… | |
16687 | else |
16864 | else |
16688 | ld_shlibs_GCJ=no |
16865 | ld_shlibs_GCJ=no |
16689 | fi |
16866 | fi |
16690 | ;; |
16867 | ;; |
16691 | |
16868 | |
|
|
16869 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
16870 | case `$LD -v 2>&1` in |
|
|
16871 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
16872 | ld_shlibs_GCJ=no |
|
|
16873 | cat <<_LT_EOF 1>&2 |
|
|
16874 | |
|
|
16875 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
16876 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
16877 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
16878 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
16879 | *** your PATH or compiler configuration so that the native linker is |
|
|
16880 | *** used, and then restart. |
|
|
16881 | |
|
|
16882 | _LT_EOF |
|
|
16883 | ;; |
|
|
16884 | *) |
|
|
16885 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
16886 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
16887 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
16888 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
16889 | else |
|
|
16890 | ld_shlibs_GCJ=no |
|
|
16891 | fi |
|
|
16892 | ;; |
|
|
16893 | esac |
|
|
16894 | ;; |
|
|
16895 | |
16692 | sunos4*) |
16896 | sunos4*) |
16693 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16897 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16694 | wlarc= |
16898 | wlarc= |
16695 | hardcode_direct_GCJ=yes |
16899 | hardcode_direct_GCJ=yes |
16696 | hardcode_shlibpath_var_GCJ=no |
16900 | hardcode_shlibpath_var_GCJ=no |
16697 | ;; |
16901 | ;; |
16698 | |
|
|
16699 | linux*) |
|
|
16700 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
16701 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
16702 | archive_cmds_GCJ="$tmp_archive_cmds" |
|
|
16703 | supports_anon_versioning=no |
|
|
16704 | case `$LD -v 2>/dev/null` in |
|
|
16705 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
16706 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
16707 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
16708 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
16709 | *) supports_anon_versioning=yes ;; |
|
|
16710 | esac |
|
|
16711 | if test $supports_anon_versioning = yes; then |
|
|
16712 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
16713 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
16714 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
16715 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
16716 | else |
|
|
16717 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
|
|
16718 | fi |
|
|
16719 | else |
|
|
16720 | ld_shlibs_GCJ=no |
|
|
16721 | fi |
|
|
16722 | ;; |
|
|
16723 | |
16902 | |
16724 | *) |
16903 | *) |
16725 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16904 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16726 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16905 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16727 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16906 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
… | |
… | |
16729 | ld_shlibs_GCJ=no |
16908 | ld_shlibs_GCJ=no |
16730 | fi |
16909 | fi |
16731 | ;; |
16910 | ;; |
16732 | esac |
16911 | esac |
16733 | |
16912 | |
16734 | if test "$ld_shlibs_GCJ" = yes; then |
16913 | if test "$ld_shlibs_GCJ" = no; then |
16735 | runpath_var=LD_RUN_PATH |
16914 | runpath_var= |
16736 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16915 | hardcode_libdir_flag_spec_GCJ= |
16737 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16916 | export_dynamic_flag_spec_GCJ= |
16738 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
16739 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
16740 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
16741 | else |
|
|
16742 | whole_archive_flag_spec_GCJ= |
16917 | whole_archive_flag_spec_GCJ= |
16743 | fi |
|
|
16744 | fi |
16918 | fi |
16745 | else |
16919 | else |
16746 | # PORTME fill in a description of your system's linker (not GNU ld) |
16920 | # PORTME fill in a description of your system's linker (not GNU ld) |
16747 | case $host_os in |
16921 | case $host_os in |
16748 | aix3*) |
16922 | aix3*) |
… | |
… | |
16750 | always_export_symbols_GCJ=yes |
16924 | always_export_symbols_GCJ=yes |
16751 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
16925 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
16752 | # Note: this linker hardcodes the directories in LIBPATH if there |
16926 | # Note: this linker hardcodes the directories in LIBPATH if there |
16753 | # are no directories specified by -L. |
16927 | # are no directories specified by -L. |
16754 | hardcode_minus_L_GCJ=yes |
16928 | hardcode_minus_L_GCJ=yes |
16755 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
16929 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16756 | # Neither direct hardcoding nor static linking is supported with a |
16930 | # Neither direct hardcoding nor static linking is supported with a |
16757 | # broken collect2. |
16931 | # broken collect2. |
16758 | hardcode_direct_GCJ=unsupported |
16932 | hardcode_direct_GCJ=unsupported |
16759 | fi |
16933 | fi |
16760 | ;; |
16934 | ;; |
… | |
… | |
16784 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16958 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16785 | aix_use_runtimelinking=yes |
16959 | aix_use_runtimelinking=yes |
16786 | break |
16960 | break |
16787 | fi |
16961 | fi |
16788 | done |
16962 | done |
|
|
16963 | ;; |
16789 | esac |
16964 | esac |
16790 | |
16965 | |
16791 | exp_sym_flag='-bexport' |
16966 | exp_sym_flag='-bexport' |
16792 | no_entry_flag='-bnoentry' |
16967 | no_entry_flag='-bnoentry' |
16793 | fi |
16968 | fi |
… | |
… | |
16802 | hardcode_direct_GCJ=yes |
16977 | hardcode_direct_GCJ=yes |
16803 | hardcode_libdir_separator_GCJ=':' |
16978 | hardcode_libdir_separator_GCJ=':' |
16804 | link_all_deplibs_GCJ=yes |
16979 | link_all_deplibs_GCJ=yes |
16805 | |
16980 | |
16806 | if test "$GCC" = yes; then |
16981 | if test "$GCC" = yes; then |
16807 | case $host_os in aix4.012|aix4.012.*) |
16982 | case $host_os in aix4.[012]|aix4.[012].*) |
16808 | # We only want to do this on AIX 4.2 and lower, the check |
16983 | # We only want to do this on AIX 4.2 and lower, the check |
16809 | # below for broken collect2 doesn't work under 4.3+ |
16984 | # below for broken collect2 doesn't work under 4.3+ |
16810 | collect2name=`${CC} -print-prog-name=collect2` |
16985 | collect2name=`${CC} -print-prog-name=collect2` |
16811 | if test -f "$collect2name" && \ |
16986 | if test -f "$collect2name" && \ |
16812 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16987 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
… | |
… | |
16821 | # to unsupported forces relinking |
16996 | # to unsupported forces relinking |
16822 | hardcode_minus_L_GCJ=yes |
16997 | hardcode_minus_L_GCJ=yes |
16823 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16998 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16824 | hardcode_libdir_separator_GCJ= |
16999 | hardcode_libdir_separator_GCJ= |
16825 | fi |
17000 | fi |
|
|
17001 | ;; |
16826 | esac |
17002 | esac |
16827 | shared_flag='-shared' |
17003 | shared_flag='-shared' |
|
|
17004 | if test "$aix_use_runtimelinking" = yes; then |
|
|
17005 | shared_flag="$shared_flag "'${wl}-G' |
|
|
17006 | fi |
16828 | else |
17007 | else |
16829 | # not using gcc |
17008 | # not using gcc |
16830 | if test "$host_cpu" = ia64; then |
17009 | if test "$host_cpu" = ia64; then |
16831 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17010 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16832 | # chokes on -Wl,-G. The following line is correct: |
17011 | # chokes on -Wl,-G. The following line is correct: |
16833 | shared_flag='-G' |
17012 | shared_flag='-G' |
16834 | else |
17013 | else |
16835 | if test "$aix_use_runtimelinking" = yes; then |
17014 | if test "$aix_use_runtimelinking" = yes; then |
16836 | shared_flag='${wl}-G' |
17015 | shared_flag='${wl}-G' |
16837 | else |
17016 | else |
16838 | shared_flag='${wl}-bM:SRE' |
17017 | shared_flag='${wl}-bM:SRE' |
16839 | fi |
17018 | fi |
16840 | fi |
17019 | fi |
16841 | fi |
17020 | fi |
16842 | |
17021 | |
16843 | # It seems that -bexpall does not export symbols beginning with |
17022 | # It seems that -bexpall does not export symbols beginning with |
16844 | # underscore (_), so it is better to generate a list of symbols to export. |
17023 | # underscore (_), so it is better to generate a list of symbols to export. |
… | |
… | |
16897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
17076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16898 | conftest$ac_exeext conftest.$ac_ext |
17077 | conftest$ac_exeext conftest.$ac_ext |
16899 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17078 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16900 | |
17079 | |
16901 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17080 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16902 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
17081 | archive_expsym_cmds_GCJ="\$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" |
16903 | else |
17082 | else |
16904 | if test "$host_cpu" = ia64; then |
17083 | if test "$host_cpu" = ia64; then |
16905 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17084 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16906 | allow_undefined_flag_GCJ="-z nodefs" |
17085 | allow_undefined_flag_GCJ="-z nodefs" |
16907 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
17086 | archive_expsym_cmds_GCJ="\$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" |
16908 | else |
17087 | else |
16909 | # Determine the default libpath from the value encoded in an empty executable. |
17088 | # Determine the default libpath from the value encoded in an empty executable. |
16910 | cat >conftest.$ac_ext <<_ACEOF |
17089 | cat >conftest.$ac_ext <<_ACEOF |
16911 | /* confdefs.h. */ |
17090 | /* confdefs.h. */ |
16912 | _ACEOF |
17091 | _ACEOF |
… | |
… | |
16960 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17139 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16961 | # Warning - without using the other run time loading flags, |
17140 | # Warning - without using the other run time loading flags, |
16962 | # -berok will link without error, but may produce a broken library. |
17141 | # -berok will link without error, but may produce a broken library. |
16963 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17142 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16964 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17143 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16965 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
16966 | always_export_symbols_GCJ=yes |
|
|
16967 | # Exported symbols can be pulled into shared objects from archives |
17144 | # Exported symbols can be pulled into shared objects from archives |
16968 | whole_archive_flag_spec_GCJ=' ' |
17145 | whole_archive_flag_spec_GCJ='$convenience' |
16969 | archive_cmds_need_lc_GCJ=yes |
17146 | archive_cmds_need_lc_GCJ=yes |
16970 | # This is similar to how AIX traditionally builds it's shared libraries. |
17147 | # This is similar to how AIX traditionally builds its shared libraries. |
16971 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
17148 | archive_expsym_cmds_GCJ="\$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' |
16972 | fi |
17149 | fi |
16973 | fi |
17150 | fi |
16974 | ;; |
17151 | ;; |
16975 | |
17152 | |
16976 | amigaos*) |
17153 | amigaos*) |
… | |
… | |
16979 | hardcode_minus_L_GCJ=yes |
17156 | hardcode_minus_L_GCJ=yes |
16980 | # see comment about different semantics on the GNU ld section |
17157 | # see comment about different semantics on the GNU ld section |
16981 | ld_shlibs_GCJ=no |
17158 | ld_shlibs_GCJ=no |
16982 | ;; |
17159 | ;; |
16983 | |
17160 | |
16984 | bsdi4*) |
17161 | bsdi[45]*) |
16985 | export_dynamic_flag_spec_GCJ=-rdynamic |
17162 | export_dynamic_flag_spec_GCJ=-rdynamic |
16986 | ;; |
17163 | ;; |
16987 | |
17164 | |
16988 | cygwin* | mingw* | pw32*) |
17165 | cygwin* | mingw* | pw32*) |
16989 | # When not using gcc, we currently assume that we are using |
17166 | # When not using gcc, we currently assume that we are using |
… | |
… | |
16993 | hardcode_libdir_flag_spec_GCJ=' ' |
17170 | hardcode_libdir_flag_spec_GCJ=' ' |
16994 | allow_undefined_flag_GCJ=unsupported |
17171 | allow_undefined_flag_GCJ=unsupported |
16995 | # Tell ltmain to make .lib files, not .a files. |
17172 | # Tell ltmain to make .lib files, not .a files. |
16996 | libext=lib |
17173 | libext=lib |
16997 | # Tell ltmain to make .dll files, not .so files. |
17174 | # Tell ltmain to make .dll files, not .so files. |
16998 | shrext=".dll" |
17175 | shrext_cmds=".dll" |
16999 | # FIXME: Setting linknames here is a bad hack. |
17176 | # FIXME: Setting linknames here is a bad hack. |
17000 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17177 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17001 | # The linker will automatically build a .lib file if we build a DLL. |
17178 | # The linker will automatically build a .lib file if we build a DLL. |
17002 | old_archive_From_new_cmds_GCJ='true' |
17179 | old_archive_From_new_cmds_GCJ='true' |
17003 | # FIXME: Should let the user specify the lib program. |
17180 | # FIXME: Should let the user specify the lib program. |
17004 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17181 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17005 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
17182 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17006 | enable_shared_with_static_runtimes_GCJ=yes |
17183 | enable_shared_with_static_runtimes_GCJ=yes |
17007 | ;; |
17184 | ;; |
17008 | |
17185 | |
17009 | darwin* | rhapsody*) |
17186 | darwin* | rhapsody*) |
17010 | if test "$GXX" = yes ; then |
17187 | case $host_os in |
|
|
17188 | rhapsody* | darwin1.[012]) |
|
|
17189 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
|
|
17190 | ;; |
|
|
17191 | *) # Darwin 1.3 on |
|
|
17192 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
17193 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
17194 | else |
|
|
17195 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
17196 | 10.[012]) |
|
|
17197 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
17198 | ;; |
|
|
17199 | 10.*) |
|
|
17200 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
|
|
17201 | ;; |
|
|
17202 | esac |
|
|
17203 | fi |
|
|
17204 | ;; |
|
|
17205 | esac |
17011 | archive_cmds_need_lc_GCJ=no |
17206 | archive_cmds_need_lc_GCJ=no |
17012 | case "$host_os" in |
|
|
17013 | rhapsody* | darwin1.[012]) |
|
|
17014 | allow_undefined_flag_GCJ='-undefined suppress' |
|
|
17015 | ;; |
|
|
17016 | *) # Darwin 1.3 on |
|
|
17017 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
17018 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
|
|
17019 | else |
|
|
17020 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
17021 | 10.[012]) |
|
|
17022 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
|
|
17023 | ;; |
|
|
17024 | 10.*) |
|
|
17025 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
|
|
17026 | ;; |
|
|
17027 | esac |
|
|
17028 | fi |
|
|
17029 | ;; |
|
|
17030 | esac |
|
|
17031 | lt_int_apple_cc_single_mod=no |
|
|
17032 | output_verbose_link_cmd='echo' |
|
|
17033 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
17034 | lt_int_apple_cc_single_mod=yes |
|
|
17035 | fi |
|
|
17036 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
17037 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
17038 | else |
|
|
17039 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
17040 | fi |
|
|
17041 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
17042 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
17043 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
17044 | archive_expsym_cmds_GCJ='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}' |
|
|
17045 | else |
|
|
17046 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
17047 | fi |
|
|
17048 | module_expsym_cmds_GCJ='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}' |
|
|
17049 | hardcode_direct_GCJ=no |
17207 | hardcode_direct_GCJ=no |
17050 | hardcode_automatic_GCJ=yes |
17208 | hardcode_automatic_GCJ=yes |
17051 | hardcode_shlibpath_var_GCJ=unsupported |
17209 | hardcode_shlibpath_var_GCJ=unsupported |
17052 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
17210 | whole_archive_flag_spec_GCJ='' |
17053 | link_all_deplibs_GCJ=yes |
17211 | link_all_deplibs_GCJ=yes |
|
|
17212 | if test "$GCC" = yes ; then |
|
|
17213 | output_verbose_link_cmd='echo' |
|
|
17214 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
17215 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
17216 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
17217 | archive_expsym_cmds_GCJ='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}' |
|
|
17218 | module_expsym_cmds_GCJ='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}' |
17054 | else |
17219 | else |
|
|
17220 | case $cc_basename in |
|
|
17221 | xlc*) |
|
|
17222 | output_verbose_link_cmd='echo' |
|
|
17223 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
17224 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
17225 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
17226 | archive_expsym_cmds_GCJ='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}' |
|
|
17227 | module_expsym_cmds_GCJ='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}' |
|
|
17228 | ;; |
|
|
17229 | *) |
17055 | ld_shlibs_GCJ=no |
17230 | ld_shlibs_GCJ=no |
|
|
17231 | ;; |
|
|
17232 | esac |
17056 | fi |
17233 | fi |
17057 | ;; |
17234 | ;; |
17058 | |
17235 | |
17059 | dgux*) |
17236 | dgux*) |
17060 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17237 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
… | |
… | |
17084 | hardcode_minus_L_GCJ=yes |
17261 | hardcode_minus_L_GCJ=yes |
17085 | hardcode_shlibpath_var_GCJ=no |
17262 | hardcode_shlibpath_var_GCJ=no |
17086 | ;; |
17263 | ;; |
17087 | |
17264 | |
17088 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17265 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17089 | freebsd* | kfreebsd*-gnu) |
17266 | freebsd* | dragonfly*) |
17090 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17267 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17091 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17268 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17092 | hardcode_direct_GCJ=yes |
17269 | hardcode_direct_GCJ=yes |
17093 | hardcode_shlibpath_var_GCJ=no |
17270 | hardcode_shlibpath_var_GCJ=no |
17094 | ;; |
17271 | ;; |
… | |
… | |
17107 | # but as the default location of the library. |
17284 | # but as the default location of the library. |
17108 | hardcode_minus_L_GCJ=yes |
17285 | hardcode_minus_L_GCJ=yes |
17109 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17286 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17110 | ;; |
17287 | ;; |
17111 | |
17288 | |
17112 | hpux10* | hpux11*) |
17289 | hpux10*) |
17113 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17290 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
17291 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17292 | else |
|
|
17293 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
17294 | fi |
|
|
17295 | if test "$with_gnu_ld" = no; then |
|
|
17296 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
17297 | hardcode_libdir_separator_GCJ=: |
|
|
17298 | |
|
|
17299 | hardcode_direct_GCJ=yes |
|
|
17300 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
17301 | |
|
|
17302 | # hardcode_minus_L: Not really in the search PATH, |
|
|
17303 | # but as the default location of the library. |
|
|
17304 | hardcode_minus_L_GCJ=yes |
|
|
17305 | fi |
|
|
17306 | ;; |
|
|
17307 | |
|
|
17308 | hpux11*) |
|
|
17309 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17114 | case "$host_cpu" in |
17310 | case $host_cpu in |
17115 | hppa*64*|ia64*) |
17311 | hppa*64*) |
17116 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17312 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17313 | ;; |
|
|
17314 | ia64*) |
|
|
17315 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17117 | ;; |
17316 | ;; |
17118 | *) |
17317 | *) |
17119 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17318 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17120 | ;; |
17319 | ;; |
17121 | esac |
17320 | esac |
17122 | else |
17321 | else |
17123 | case "$host_cpu" in |
17322 | case $host_cpu in |
17124 | hppa*64*|ia64*) |
17323 | hppa*64*) |
17125 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
17324 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17325 | ;; |
|
|
17326 | ia64*) |
|
|
17327 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17126 | ;; |
17328 | ;; |
17127 | *) |
17329 | *) |
17128 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17330 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17129 | ;; |
17331 | ;; |
17130 | esac |
17332 | esac |
17131 | fi |
17333 | fi |
17132 | if test "$with_gnu_ld" = no; then |
17334 | if test "$with_gnu_ld" = no; then |
17133 | case "$host_cpu" in |
|
|
17134 | hppa*64*) |
|
|
17135 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17335 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
17336 | hardcode_libdir_separator_GCJ=: |
|
|
17337 | |
|
|
17338 | case $host_cpu in |
|
|
17339 | hppa*64*|ia64*) |
17136 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17340 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17137 | hardcode_libdir_separator_GCJ=: |
|
|
17138 | hardcode_direct_GCJ=no |
17341 | hardcode_direct_GCJ=no |
17139 | hardcode_shlibpath_var_GCJ=no |
17342 | hardcode_shlibpath_var_GCJ=no |
17140 | ;; |
17343 | ;; |
17141 | ia64*) |
|
|
17142 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
17143 | hardcode_direct_GCJ=no |
|
|
17144 | hardcode_shlibpath_var_GCJ=no |
|
|
17145 | |
|
|
17146 | # hardcode_minus_L: Not really in the search PATH, |
|
|
17147 | # but as the default location of the library. |
|
|
17148 | hardcode_minus_L_GCJ=yes |
|
|
17149 | ;; |
|
|
17150 | *) |
17344 | *) |
17151 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
17152 | hardcode_libdir_separator_GCJ=: |
|
|
17153 | hardcode_direct_GCJ=yes |
17345 | hardcode_direct_GCJ=yes |
17154 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17346 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17155 | |
17347 | |
17156 | # hardcode_minus_L: Not really in the search PATH, |
17348 | # hardcode_minus_L: Not really in the search PATH, |
17157 | # but as the default location of the library. |
17349 | # but as the default location of the library. |
… | |
… | |
17171 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17363 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17172 | hardcode_libdir_separator_GCJ=: |
17364 | hardcode_libdir_separator_GCJ=: |
17173 | link_all_deplibs_GCJ=yes |
17365 | link_all_deplibs_GCJ=yes |
17174 | ;; |
17366 | ;; |
17175 | |
17367 | |
17176 | netbsd*) |
17368 | netbsd* | netbsdelf*-gnu) |
17177 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17369 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17178 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17370 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17179 | else |
17371 | else |
17180 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17372 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17181 | fi |
17373 | fi |
… | |
… | |
17195 | openbsd*) |
17387 | openbsd*) |
17196 | hardcode_direct_GCJ=yes |
17388 | hardcode_direct_GCJ=yes |
17197 | hardcode_shlibpath_var_GCJ=no |
17389 | hardcode_shlibpath_var_GCJ=no |
17198 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17390 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17199 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17391 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17392 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17200 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17393 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17201 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17394 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17202 | else |
17395 | else |
17203 | case $host_os in |
17396 | case $host_os in |
17204 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17397 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
… | |
… | |
17240 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17433 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17241 | else |
17434 | else |
17242 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17435 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17243 | archive_cmds_GCJ='$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' |
17436 | archive_cmds_GCJ='$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' |
17244 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
17437 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
17245 | $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' |
17438 | $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' |
17246 | |
17439 | |
17247 | # Both c and cxx compiler support -rpath directly |
17440 | # Both c and cxx compiler support -rpath directly |
17248 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17441 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17249 | fi |
17442 | fi |
17250 | hardcode_libdir_separator_GCJ=: |
17443 | hardcode_libdir_separator_GCJ=: |
17251 | ;; |
17444 | ;; |
17252 | |
17445 | |
17253 | sco3.2v5*) |
|
|
17254 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
17255 | hardcode_shlibpath_var_GCJ=no |
|
|
17256 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
|
17257 | runpath_var=LD_RUN_PATH |
|
|
17258 | hardcode_runpath_var=yes |
|
|
17259 | ;; |
|
|
17260 | |
|
|
17261 | solaris*) |
17446 | solaris*) |
17262 | no_undefined_flag_GCJ=' -z text' |
17447 | no_undefined_flag_GCJ=' -z text' |
17263 | if test "$GCC" = yes; then |
17448 | if test "$GCC" = yes; then |
|
|
17449 | wlarc='${wl}' |
17264 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17450 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17265 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17451 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17266 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17452 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17267 | else |
17453 | else |
|
|
17454 | wlarc='' |
17268 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17455 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17269 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17456 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17270 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17457 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17271 | fi |
17458 | fi |
17272 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17459 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17273 | hardcode_shlibpath_var_GCJ=no |
17460 | hardcode_shlibpath_var_GCJ=no |
17274 | case $host_os in |
17461 | case $host_os in |
17275 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17462 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
17463 | *) |
|
|
17464 | # The compiler driver will combine linker options so we |
|
|
17465 | # cannot just pass the convience library names through |
|
|
17466 | # without $wl, iff we do not link with $LD. |
|
|
17467 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17276 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
17468 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
17469 | case $wlarc in |
|
|
17470 | '') |
17277 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17471 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
|
|
17472 | *) |
|
|
17473 | whole_archive_flag_spec_GCJ='${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' ;; |
|
|
17474 | esac ;; |
17278 | esac |
17475 | esac |
17279 | link_all_deplibs_GCJ=yes |
17476 | link_all_deplibs_GCJ=yes |
17280 | ;; |
17477 | ;; |
17281 | |
17478 | |
17282 | sunos4*) |
17479 | sunos4*) |
… | |
… | |
17329 | hardcode_runpath_var=yes |
17526 | hardcode_runpath_var=yes |
17330 | ld_shlibs_GCJ=yes |
17527 | ld_shlibs_GCJ=yes |
17331 | fi |
17528 | fi |
17332 | ;; |
17529 | ;; |
17333 | |
17530 | |
17334 | sysv4.2uw2*) |
17531 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17335 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
17336 | hardcode_direct_GCJ=yes |
|
|
17337 | hardcode_minus_L_GCJ=no |
|
|
17338 | hardcode_shlibpath_var_GCJ=no |
|
|
17339 | hardcode_runpath_var=yes |
|
|
17340 | runpath_var=LD_RUN_PATH |
|
|
17341 | ;; |
|
|
17342 | |
|
|
17343 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
|
17344 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
17532 | no_undefined_flag_GCJ='${wl}-z,text' |
17345 | if test "$GCC" = yes; then |
17533 | archive_cmds_need_lc_GCJ=no |
17346 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17347 | else |
|
|
17348 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17349 | fi |
|
|
17350 | runpath_var='LD_RUN_PATH' |
|
|
17351 | hardcode_shlibpath_var_GCJ=no |
|
|
17352 | ;; |
|
|
17353 | |
|
|
17354 | sysv5*) |
|
|
17355 | no_undefined_flag_GCJ=' -z text' |
|
|
17356 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
17357 | # object files and a static libstdc++, better avoid it by now |
|
|
17358 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
17359 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
17360 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
17361 | hardcode_libdir_flag_spec_GCJ= |
|
|
17362 | hardcode_shlibpath_var_GCJ=no |
17534 | hardcode_shlibpath_var_GCJ=no |
17363 | runpath_var='LD_RUN_PATH' |
17535 | runpath_var='LD_RUN_PATH' |
|
|
17536 | |
|
|
17537 | if test "$GCC" = yes; then |
|
|
17538 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17539 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17540 | else |
|
|
17541 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17542 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17543 | fi |
|
|
17544 | ;; |
|
|
17545 | |
|
|
17546 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
17547 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
17548 | # link with -lc, and that would cause any symbols used from libc to |
|
|
17549 | # always be unresolved, which means just about no library would |
|
|
17550 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
17551 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
17552 | # as -z defs. |
|
|
17553 | no_undefined_flag_GCJ='${wl}-z,text' |
|
|
17554 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
|
|
17555 | archive_cmds_need_lc_GCJ=no |
|
|
17556 | hardcode_shlibpath_var_GCJ=no |
|
|
17557 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
17558 | hardcode_libdir_separator_GCJ=':' |
|
|
17559 | link_all_deplibs_GCJ=yes |
|
|
17560 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
|
17561 | runpath_var='LD_RUN_PATH' |
|
|
17562 | |
|
|
17563 | if test "$GCC" = yes; then |
|
|
17564 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17565 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17566 | else |
|
|
17567 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17568 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
17569 | fi |
17364 | ;; |
17570 | ;; |
17365 | |
17571 | |
17366 | uts4*) |
17572 | uts4*) |
17367 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17573 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17368 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17574 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
… | |
… | |
17376 | fi |
17582 | fi |
17377 | |
17583 | |
17378 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17584 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17379 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
17585 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
17380 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17586 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17381 | |
|
|
17382 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
17383 | if test "$GCC" = yes; then |
|
|
17384 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
17385 | fi |
|
|
17386 | |
17587 | |
17387 | # |
17588 | # |
17388 | # Do we need to explicitly link libc? |
17589 | # Do we need to explicitly link libc? |
17389 | # |
17590 | # |
17390 | case "x$archive_cmds_need_lc_GCJ" in |
17591 | case "x$archive_cmds_need_lc_GCJ" in |
… | |
… | |
17414 | soname=conftest |
17615 | soname=conftest |
17415 | lib=conftest |
17616 | lib=conftest |
17416 | libobjs=conftest.$ac_objext |
17617 | libobjs=conftest.$ac_objext |
17417 | deplibs= |
17618 | deplibs= |
17418 | wl=$lt_prog_compiler_wl_GCJ |
17619 | wl=$lt_prog_compiler_wl_GCJ |
|
|
17620 | pic_flag=$lt_prog_compiler_pic_GCJ |
17419 | compiler_flags=-v |
17621 | compiler_flags=-v |
17420 | linker_flags=-v |
17622 | linker_flags=-v |
17421 | verstring= |
17623 | verstring= |
17422 | output_objdir=. |
17624 | output_objdir=. |
17423 | libname=conftest |
17625 | libname=conftest |
… | |
… | |
17449 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17651 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17450 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
17652 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
17451 | library_names_spec= |
17653 | library_names_spec= |
17452 | libname_spec='lib$name' |
17654 | libname_spec='lib$name' |
17453 | soname_spec= |
17655 | soname_spec= |
17454 | shrext=".so" |
17656 | shrext_cmds=".so" |
17455 | postinstall_cmds= |
17657 | postinstall_cmds= |
17456 | postuninstall_cmds= |
17658 | postuninstall_cmds= |
17457 | finish_cmds= |
17659 | finish_cmds= |
17458 | finish_eval= |
17660 | finish_eval= |
17459 | shlibpath_var= |
17661 | shlibpath_var= |
… | |
… | |
17546 | library_names_spec='${libname}${shared_ext}' |
17748 | library_names_spec='${libname}${shared_ext}' |
17547 | dynamic_linker="$host_os ld.so" |
17749 | dynamic_linker="$host_os ld.so" |
17548 | shlibpath_var=LIBRARY_PATH |
17750 | shlibpath_var=LIBRARY_PATH |
17549 | ;; |
17751 | ;; |
17550 | |
17752 | |
17551 | bsdi4*) |
17753 | bsdi[45]*) |
17552 | version_type=linux |
17754 | version_type=linux |
17553 | need_version=no |
17755 | need_version=no |
17554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17555 | soname_spec='${libname}${release}${shared_ext}$major' |
17757 | soname_spec='${libname}${release}${shared_ext}$major' |
17556 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17758 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
… | |
… | |
17562 | # libtool to hard-code these into programs |
17764 | # libtool to hard-code these into programs |
17563 | ;; |
17765 | ;; |
17564 | |
17766 | |
17565 | cygwin* | mingw* | pw32*) |
17767 | cygwin* | mingw* | pw32*) |
17566 | version_type=windows |
17768 | version_type=windows |
17567 | shrext=".dll" |
17769 | shrext_cmds=".dll" |
17568 | need_version=no |
17770 | need_version=no |
17569 | need_lib_prefix=no |
17771 | need_lib_prefix=no |
17570 | |
17772 | |
17571 | case $GCC,$host_os in |
17773 | case $GCC,$host_os in |
17572 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17774 | yes,cygwin* | yes,mingw* | yes,pw32*) |
… | |
… | |
17574 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17776 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17575 | postinstall_cmds='base_file=`basename \${file}`~ |
17777 | postinstall_cmds='base_file=`basename \${file}`~ |
17576 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17778 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17577 | dldir=$destdir/`dirname \$dlpath`~ |
17779 | dldir=$destdir/`dirname \$dlpath`~ |
17578 | test -d \$dldir || mkdir -p \$dldir~ |
17780 | test -d \$dldir || mkdir -p \$dldir~ |
17579 | $install_prog $dir/$dlname \$dldir/$dlname' |
17781 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
17782 | chmod a+x \$dldir/$dlname' |
17580 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17783 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17581 | dlpath=$dir/\$dldll~ |
17784 | dlpath=$dir/\$dldll~ |
17582 | $rm \$dlpath' |
17785 | $rm \$dlpath' |
17583 | shlibpath_overrides_runpath=yes |
17786 | shlibpath_overrides_runpath=yes |
17584 | |
17787 | |
… | |
… | |
17604 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17807 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17605 | fi |
17808 | fi |
17606 | ;; |
17809 | ;; |
17607 | pw32*) |
17810 | pw32*) |
17608 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17811 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17609 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
17812 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17610 | ;; |
17813 | ;; |
17611 | esac |
17814 | esac |
17612 | ;; |
17815 | ;; |
17613 | |
17816 | |
17614 | *) |
17817 | *) |
… | |
… | |
17627 | need_version=no |
17830 | need_version=no |
17628 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17831 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17629 | soname_spec='${libname}${release}${major}$shared_ext' |
17832 | soname_spec='${libname}${release}${major}$shared_ext' |
17630 | shlibpath_overrides_runpath=yes |
17833 | shlibpath_overrides_runpath=yes |
17631 | shlibpath_var=DYLD_LIBRARY_PATH |
17834 | shlibpath_var=DYLD_LIBRARY_PATH |
17632 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
17835 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17633 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17836 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17634 | if test "$GCC" = yes; then |
17837 | if test "$GCC" = yes; then |
17635 | 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"` |
17838 | 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"` |
17636 | else |
17839 | else |
17637 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17840 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
… | |
… | |
17650 | |
17853 | |
17651 | freebsd1*) |
17854 | freebsd1*) |
17652 | dynamic_linker=no |
17855 | dynamic_linker=no |
17653 | ;; |
17856 | ;; |
17654 | |
17857 | |
17655 | kfreebsd*-gnu) |
17858 | freebsd* | dragonfly*) |
17656 | version_type=linux |
17859 | # DragonFly does not have aout. When/if they implement a new |
17657 | need_lib_prefix=no |
17860 | # versioning mechanism, adjust this. |
17658 | need_version=no |
17861 | if test -x /usr/bin/objformat; then |
17659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17862 | objformat=`/usr/bin/objformat` |
17660 | soname_spec='${libname}${release}${shared_ext}$major' |
17863 | else |
17661 | shlibpath_var=LD_LIBRARY_PATH |
17864 | case $host_os in |
17662 | shlibpath_overrides_runpath=no |
17865 | freebsd[123]*) objformat=aout ;; |
17663 | hardcode_into_libs=yes |
17866 | *) objformat=elf ;; |
17664 | dynamic_linker='GNU ld.so' |
17867 | esac |
17665 | ;; |
17868 | fi |
17666 | |
|
|
17667 | freebsd*) |
|
|
17668 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
17669 | version_type=freebsd-$objformat |
17869 | version_type=freebsd-$objformat |
17670 | case $version_type in |
17870 | case $version_type in |
17671 | freebsd-elf*) |
17871 | freebsd-elf*) |
17672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17673 | need_version=no |
17873 | need_version=no |
… | |
… | |
17681 | shlibpath_var=LD_LIBRARY_PATH |
17881 | shlibpath_var=LD_LIBRARY_PATH |
17682 | case $host_os in |
17882 | case $host_os in |
17683 | freebsd2*) |
17883 | freebsd2*) |
17684 | shlibpath_overrides_runpath=yes |
17884 | shlibpath_overrides_runpath=yes |
17685 | ;; |
17885 | ;; |
17686 | freebsd3.01* | freebsdelf3.01*) |
17886 | freebsd3.[01]* | freebsdelf3.[01]*) |
17687 | shlibpath_overrides_runpath=yes |
17887 | shlibpath_overrides_runpath=yes |
17688 | hardcode_into_libs=yes |
17888 | hardcode_into_libs=yes |
17689 | ;; |
17889 | ;; |
17690 | *) # from 3.2 on |
17890 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
17891 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17691 | shlibpath_overrides_runpath=no |
17892 | shlibpath_overrides_runpath=no |
|
|
17893 | hardcode_into_libs=yes |
|
|
17894 | ;; |
|
|
17895 | freebsd*) # from 4.6 on |
|
|
17896 | shlibpath_overrides_runpath=yes |
17692 | hardcode_into_libs=yes |
17897 | hardcode_into_libs=yes |
17693 | ;; |
17898 | ;; |
17694 | esac |
17899 | esac |
17695 | ;; |
17900 | ;; |
17696 | |
17901 | |
… | |
… | |
17708 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17913 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17709 | # link against other versions. |
17914 | # link against other versions. |
17710 | version_type=sunos |
17915 | version_type=sunos |
17711 | need_lib_prefix=no |
17916 | need_lib_prefix=no |
17712 | need_version=no |
17917 | need_version=no |
17713 | case "$host_cpu" in |
17918 | case $host_cpu in |
17714 | ia64*) |
17919 | ia64*) |
17715 | shrext='.so' |
17920 | shrext_cmds='.so' |
17716 | hardcode_into_libs=yes |
17921 | hardcode_into_libs=yes |
17717 | dynamic_linker="$host_os dld.so" |
17922 | dynamic_linker="$host_os dld.so" |
17718 | shlibpath_var=LD_LIBRARY_PATH |
17923 | shlibpath_var=LD_LIBRARY_PATH |
17719 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17924 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
… | |
… | |
17725 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17930 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17726 | fi |
17931 | fi |
17727 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17932 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17728 | ;; |
17933 | ;; |
17729 | hppa*64*) |
17934 | hppa*64*) |
17730 | shrext='.sl' |
17935 | shrext_cmds='.sl' |
17731 | hardcode_into_libs=yes |
17936 | hardcode_into_libs=yes |
17732 | dynamic_linker="$host_os dld.sl" |
17937 | dynamic_linker="$host_os dld.sl" |
17733 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17938 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17734 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17939 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17736 | soname_spec='${libname}${release}${shared_ext}$major' |
17941 | soname_spec='${libname}${release}${shared_ext}$major' |
17737 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17942 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17738 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17943 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17739 | ;; |
17944 | ;; |
17740 | *) |
17945 | *) |
17741 | shrext='.sl' |
17946 | shrext_cmds='.sl' |
17742 | dynamic_linker="$host_os dld.sl" |
17947 | dynamic_linker="$host_os dld.sl" |
17743 | shlibpath_var=SHLIB_PATH |
17948 | shlibpath_var=SHLIB_PATH |
17744 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17949 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17746 | soname_spec='${libname}${release}${shared_ext}$major' |
17951 | soname_spec='${libname}${release}${shared_ext}$major' |
17747 | ;; |
17952 | ;; |
17748 | esac |
17953 | esac |
17749 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17954 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17750 | postinstall_cmds='chmod 555 $lib' |
17955 | postinstall_cmds='chmod 555 $lib' |
|
|
17956 | ;; |
|
|
17957 | |
|
|
17958 | interix3*) |
|
|
17959 | version_type=linux |
|
|
17960 | need_lib_prefix=no |
|
|
17961 | need_version=no |
|
|
17962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
17963 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
17964 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
17965 | shlibpath_var=LD_LIBRARY_PATH |
|
|
17966 | shlibpath_overrides_runpath=no |
|
|
17967 | hardcode_into_libs=yes |
17751 | ;; |
17968 | ;; |
17752 | |
17969 | |
17753 | irix5* | irix6* | nonstopux*) |
17970 | irix5* | irix6* | nonstopux*) |
17754 | case $host_os in |
17971 | case $host_os in |
17755 | nonstopux*) version_type=nonstopux ;; |
17972 | nonstopux*) version_type=nonstopux ;; |
… | |
… | |
17791 | linux*oldld* | linux*aout* | linux*coff*) |
18008 | linux*oldld* | linux*aout* | linux*coff*) |
17792 | dynamic_linker=no |
18009 | dynamic_linker=no |
17793 | ;; |
18010 | ;; |
17794 | |
18011 | |
17795 | # This must be Linux ELF. |
18012 | # This must be Linux ELF. |
17796 | linux*) |
18013 | linux* | k*bsd*-gnu) |
17797 | version_type=linux |
18014 | version_type=linux |
17798 | need_lib_prefix=no |
18015 | need_lib_prefix=no |
17799 | need_version=no |
18016 | need_version=no |
17800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17801 | soname_spec='${libname}${release}${shared_ext}$major' |
18018 | soname_spec='${libname}${release}${shared_ext}$major' |
… | |
… | |
17807 | # before this can be enabled. |
18024 | # before this can be enabled. |
17808 | hardcode_into_libs=yes |
18025 | hardcode_into_libs=yes |
17809 | |
18026 | |
17810 | # Append ld.so.conf contents to the search path |
18027 | # Append ld.so.conf contents to the search path |
17811 | if test -f /etc/ld.so.conf; then |
18028 | if test -f /etc/ld.so.conf; then |
17812 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
18029 | 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' ' '` |
17813 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
18030 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
17814 | fi |
18031 | fi |
17815 | |
18032 | |
17816 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18033 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17817 | # powerpc, because MkLinux only supported shared libraries with the |
18034 | # powerpc, because MkLinux only supported shared libraries with the |
17818 | # GNU dynamic linker. Since this was broken with cross compilers, |
18035 | # GNU dynamic linker. Since this was broken with cross compilers, |
… | |
… | |
17820 | # people can always --disable-shared, the test was removed, and we |
18037 | # people can always --disable-shared, the test was removed, and we |
17821 | # assume the GNU/Linux dynamic linker is in use. |
18038 | # assume the GNU/Linux dynamic linker is in use. |
17822 | dynamic_linker='GNU/Linux ld.so' |
18039 | dynamic_linker='GNU/Linux ld.so' |
17823 | ;; |
18040 | ;; |
17824 | |
18041 | |
17825 | knetbsd*-gnu) |
18042 | netbsdelf*-gnu) |
17826 | version_type=linux |
18043 | version_type=linux |
17827 | need_lib_prefix=no |
18044 | need_lib_prefix=no |
17828 | need_version=no |
18045 | need_version=no |
17829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17830 | soname_spec='${libname}${release}${shared_ext}$major' |
18047 | soname_spec='${libname}${release}${shared_ext}$major' |
17831 | shlibpath_var=LD_LIBRARY_PATH |
18048 | shlibpath_var=LD_LIBRARY_PATH |
17832 | shlibpath_overrides_runpath=no |
18049 | shlibpath_overrides_runpath=no |
17833 | hardcode_into_libs=yes |
18050 | hardcode_into_libs=yes |
17834 | dynamic_linker='GNU ld.so' |
18051 | dynamic_linker='NetBSD ld.elf_so' |
17835 | ;; |
18052 | ;; |
17836 | |
18053 | |
17837 | netbsd*) |
18054 | netbsd*) |
17838 | version_type=sunos |
18055 | version_type=sunos |
17839 | need_lib_prefix=no |
18056 | need_lib_prefix=no |
… | |
… | |
17869 | shlibpath_overrides_runpath=yes |
18086 | shlibpath_overrides_runpath=yes |
17870 | ;; |
18087 | ;; |
17871 | |
18088 | |
17872 | openbsd*) |
18089 | openbsd*) |
17873 | version_type=sunos |
18090 | version_type=sunos |
|
|
18091 | sys_lib_dlsearch_path_spec="/usr/lib" |
17874 | need_lib_prefix=no |
18092 | need_lib_prefix=no |
17875 | need_version=yes |
18093 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
18094 | case $host_os in |
|
|
18095 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
18096 | *) need_version=no ;; |
|
|
18097 | esac |
17876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17877 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18099 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17878 | shlibpath_var=LD_LIBRARY_PATH |
18100 | shlibpath_var=LD_LIBRARY_PATH |
17879 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18101 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17880 | case $host_os in |
18102 | case $host_os in |
… | |
… | |
17890 | fi |
18112 | fi |
17891 | ;; |
18113 | ;; |
17892 | |
18114 | |
17893 | os2*) |
18115 | os2*) |
17894 | libname_spec='$name' |
18116 | libname_spec='$name' |
17895 | shrext=".dll" |
18117 | shrext_cmds=".dll" |
17896 | need_lib_prefix=no |
18118 | need_lib_prefix=no |
17897 | library_names_spec='$libname${shared_ext} $libname.a' |
18119 | library_names_spec='$libname${shared_ext} $libname.a' |
17898 | dynamic_linker='OS/2 ld.exe' |
18120 | dynamic_linker='OS/2 ld.exe' |
17899 | shlibpath_var=LIBPATH |
18121 | shlibpath_var=LIBPATH |
17900 | ;; |
18122 | ;; |
… | |
… | |
17906 | soname_spec='${libname}${release}${shared_ext}$major' |
18128 | soname_spec='${libname}${release}${shared_ext}$major' |
17907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17908 | shlibpath_var=LD_LIBRARY_PATH |
18130 | shlibpath_var=LD_LIBRARY_PATH |
17909 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18131 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17910 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18132 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17911 | ;; |
|
|
17912 | |
|
|
17913 | sco3.2v5*) |
|
|
17914 | version_type=osf |
|
|
17915 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
17916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
17917 | shlibpath_var=LD_LIBRARY_PATH |
|
|
17918 | ;; |
18133 | ;; |
17919 | |
18134 | |
17920 | solaris*) |
18135 | solaris*) |
17921 | version_type=linux |
18136 | version_type=linux |
17922 | need_lib_prefix=no |
18137 | need_lib_prefix=no |
… | |
… | |
17940 | need_lib_prefix=no |
18155 | need_lib_prefix=no |
17941 | fi |
18156 | fi |
17942 | need_version=yes |
18157 | need_version=yes |
17943 | ;; |
18158 | ;; |
17944 | |
18159 | |
17945 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
18160 | sysv4 | sysv4.3*) |
17946 | version_type=linux |
18161 | version_type=linux |
17947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17948 | soname_spec='${libname}${release}${shared_ext}$major' |
18163 | soname_spec='${libname}${release}${shared_ext}$major' |
17949 | shlibpath_var=LD_LIBRARY_PATH |
18164 | shlibpath_var=LD_LIBRARY_PATH |
17950 | case $host_vendor in |
18165 | case $host_vendor in |
… | |
… | |
17973 | soname_spec='$libname${shared_ext}.$major' |
18188 | soname_spec='$libname${shared_ext}.$major' |
17974 | shlibpath_var=LD_LIBRARY_PATH |
18189 | shlibpath_var=LD_LIBRARY_PATH |
17975 | fi |
18190 | fi |
17976 | ;; |
18191 | ;; |
17977 | |
18192 | |
|
|
18193 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
18194 | version_type=freebsd-elf |
|
|
18195 | need_lib_prefix=no |
|
|
18196 | need_version=no |
|
|
18197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
18198 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
18199 | shlibpath_var=LD_LIBRARY_PATH |
|
|
18200 | hardcode_into_libs=yes |
|
|
18201 | if test "$with_gnu_ld" = yes; then |
|
|
18202 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
18203 | shlibpath_overrides_runpath=no |
|
|
18204 | else |
|
|
18205 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
18206 | shlibpath_overrides_runpath=yes |
|
|
18207 | case $host_os in |
|
|
18208 | sco3.2v5*) |
|
|
18209 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
18210 | ;; |
|
|
18211 | esac |
|
|
18212 | fi |
|
|
18213 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
18214 | ;; |
|
|
18215 | |
17978 | uts4*) |
18216 | uts4*) |
17979 | version_type=linux |
18217 | version_type=linux |
17980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17981 | soname_spec='${libname}${release}${shared_ext}$major' |
18219 | soname_spec='${libname}${release}${shared_ext}$major' |
17982 | shlibpath_var=LD_LIBRARY_PATH |
18220 | shlibpath_var=LD_LIBRARY_PATH |
… | |
… | |
17988 | esac |
18226 | esac |
17989 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18227 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17990 | echo "${ECHO_T}$dynamic_linker" >&6; } |
18228 | echo "${ECHO_T}$dynamic_linker" >&6; } |
17991 | test "$dynamic_linker" = no && can_build_shared=no |
18229 | test "$dynamic_linker" = no && can_build_shared=no |
17992 | |
18230 | |
|
|
18231 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
18232 | if test "$GCC" = yes; then |
|
|
18233 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
18234 | fi |
|
|
18235 | |
17993 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18236 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17994 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
18237 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
17995 | hardcode_action_GCJ= |
18238 | hardcode_action_GCJ= |
17996 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18239 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17997 | test -n "$runpath_var GCJ" || \ |
18240 | test -n "$runpath_var_GCJ" || \ |
17998 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
18241 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17999 | |
18242 | |
18000 | # We can hardcode non-existant directories. |
18243 | # We can hardcode non-existant directories. |
18001 | if test "$hardcode_direct_GCJ" != no && |
18244 | if test "$hardcode_direct_GCJ" != no && |
18002 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18245 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18003 | # have to relink, otherwise we might link with an installed library |
18246 | # have to relink, otherwise we might link with an installed library |
… | |
… | |
18025 | test "$enable_shared" = no; then |
18268 | test "$enable_shared" = no; then |
18026 | # Fast installation is not necessary |
18269 | # Fast installation is not necessary |
18027 | enable_fast_install=needless |
18270 | enable_fast_install=needless |
18028 | fi |
18271 | fi |
18029 | |
18272 | |
18030 | striplib= |
|
|
18031 | old_striplib= |
|
|
18032 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
18033 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
|
|
18034 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
18035 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
18036 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
18037 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
18038 | echo "${ECHO_T}yes" >&6; } |
|
|
18039 | else |
|
|
18040 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
18041 | case $host_os in |
|
|
18042 | darwin*) |
|
|
18043 | if test -n "$STRIP" ; then |
|
|
18044 | striplib="$STRIP -x" |
|
|
18045 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
18046 | echo "${ECHO_T}yes" >&6; } |
|
|
18047 | else |
|
|
18048 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
18049 | echo "${ECHO_T}no" >&6; } |
|
|
18050 | fi |
|
|
18051 | ;; |
|
|
18052 | *) |
|
|
18053 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
18054 | echo "${ECHO_T}no" >&6; } |
|
|
18055 | ;; |
|
|
18056 | esac |
|
|
18057 | fi |
|
|
18058 | |
|
|
18059 | if test "x$enable_dlopen" != xyes; then |
|
|
18060 | enable_dlopen=unknown |
|
|
18061 | enable_dlopen_self=unknown |
|
|
18062 | enable_dlopen_self_static=unknown |
|
|
18063 | else |
|
|
18064 | lt_cv_dlopen=no |
|
|
18065 | lt_cv_dlopen_libs= |
|
|
18066 | |
|
|
18067 | case $host_os in |
|
|
18068 | beos*) |
|
|
18069 | lt_cv_dlopen="load_add_on" |
|
|
18070 | lt_cv_dlopen_libs= |
|
|
18071 | lt_cv_dlopen_self=yes |
|
|
18072 | ;; |
|
|
18073 | |
|
|
18074 | mingw* | pw32*) |
|
|
18075 | lt_cv_dlopen="LoadLibrary" |
|
|
18076 | lt_cv_dlopen_libs= |
|
|
18077 | ;; |
|
|
18078 | |
|
|
18079 | cygwin*) |
|
|
18080 | lt_cv_dlopen="dlopen" |
|
|
18081 | lt_cv_dlopen_libs= |
|
|
18082 | ;; |
|
|
18083 | |
|
|
18084 | darwin*) |
|
|
18085 | # if libdl is installed we need to link against it |
|
|
18086 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
18087 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
|
18088 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
18089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18090 | else |
|
|
18091 | ac_check_lib_save_LIBS=$LIBS |
|
|
18092 | LIBS="-ldl $LIBS" |
|
|
18093 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18094 | /* confdefs.h. */ |
|
|
18095 | _ACEOF |
|
|
18096 | cat confdefs.h >>conftest.$ac_ext |
|
|
18097 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18098 | /* end confdefs.h. */ |
|
|
18099 | |
|
|
18100 | /* Override any GCC internal prototype to avoid an error. |
|
|
18101 | Use char because int might match the return type of a GCC |
|
|
18102 | builtin and then its argument prototype would still apply. */ |
|
|
18103 | #ifdef __cplusplus |
|
|
18104 | extern "C" |
|
|
18105 | #endif |
|
|
18106 | char dlopen (); |
|
|
18107 | int |
|
|
18108 | main () |
|
|
18109 | { |
|
|
18110 | return dlopen (); |
|
|
18111 | ; |
|
|
18112 | return 0; |
|
|
18113 | } |
|
|
18114 | _ACEOF |
|
|
18115 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
18116 | if { (ac_try="$ac_link" |
|
|
18117 | case "(($ac_try" in |
|
|
18118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
18119 | *) ac_try_echo=$ac_try;; |
|
|
18120 | esac |
|
|
18121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
18122 | (eval "$ac_link") 2>conftest.er1 |
|
|
18123 | ac_status=$? |
|
|
18124 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
18125 | rm -f conftest.er1 |
|
|
18126 | cat conftest.err >&5 |
|
|
18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18128 | (exit $ac_status); } && { |
|
|
18129 | test -z "$ac_c_werror_flag" || |
|
|
18130 | test ! -s conftest.err |
|
|
18131 | } && test -s conftest$ac_exeext && |
|
|
18132 | $as_test_x conftest$ac_exeext; then |
|
|
18133 | ac_cv_lib_dl_dlopen=yes |
|
|
18134 | else |
|
|
18135 | echo "$as_me: failed program was:" >&5 |
|
|
18136 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18137 | |
|
|
18138 | ac_cv_lib_dl_dlopen=no |
|
|
18139 | fi |
|
|
18140 | |
|
|
18141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
18142 | conftest$ac_exeext conftest.$ac_ext |
|
|
18143 | LIBS=$ac_check_lib_save_LIBS |
|
|
18144 | fi |
|
|
18145 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
18146 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
|
18147 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
18148 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
18149 | else |
|
|
18150 | |
|
|
18151 | lt_cv_dlopen="dyld" |
|
|
18152 | lt_cv_dlopen_libs= |
|
|
18153 | lt_cv_dlopen_self=yes |
|
|
18154 | |
|
|
18155 | fi |
|
|
18156 | |
|
|
18157 | ;; |
|
|
18158 | |
|
|
18159 | *) |
|
|
18160 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
18161 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
|
|
18162 | if test "${ac_cv_func_shl_load+set}" = set; then |
|
|
18163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18164 | else |
|
|
18165 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18166 | /* confdefs.h. */ |
|
|
18167 | _ACEOF |
|
|
18168 | cat confdefs.h >>conftest.$ac_ext |
|
|
18169 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18170 | /* end confdefs.h. */ |
|
|
18171 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
18172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
18173 | #define shl_load innocuous_shl_load |
|
|
18174 | |
|
|
18175 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
18176 | which can conflict with char shl_load (); below. |
|
|
18177 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
18178 | <limits.h> exists even on freestanding compilers. */ |
|
|
18179 | |
|
|
18180 | #ifdef __STDC__ |
|
|
18181 | # include <limits.h> |
|
|
18182 | #else |
|
|
18183 | # include <assert.h> |
|
|
18184 | #endif |
|
|
18185 | |
|
|
18186 | #undef shl_load |
|
|
18187 | |
|
|
18188 | /* Override any GCC internal prototype to avoid an error. |
|
|
18189 | Use char because int might match the return type of a GCC |
|
|
18190 | builtin and then its argument prototype would still apply. */ |
|
|
18191 | #ifdef __cplusplus |
|
|
18192 | extern "C" |
|
|
18193 | #endif |
|
|
18194 | char shl_load (); |
|
|
18195 | /* The GNU C library defines this for functions which it implements |
|
|
18196 | to always fail with ENOSYS. Some functions are actually named |
|
|
18197 | something starting with __ and the normal name is an alias. */ |
|
|
18198 | #if defined __stub_shl_load || defined __stub___shl_load |
|
|
18199 | choke me |
|
|
18200 | #endif |
|
|
18201 | |
|
|
18202 | int |
|
|
18203 | main () |
|
|
18204 | { |
|
|
18205 | return shl_load (); |
|
|
18206 | ; |
|
|
18207 | return 0; |
|
|
18208 | } |
|
|
18209 | _ACEOF |
|
|
18210 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
18211 | if { (ac_try="$ac_link" |
|
|
18212 | case "(($ac_try" in |
|
|
18213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
18214 | *) ac_try_echo=$ac_try;; |
|
|
18215 | esac |
|
|
18216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
18217 | (eval "$ac_link") 2>conftest.er1 |
|
|
18218 | ac_status=$? |
|
|
18219 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
18220 | rm -f conftest.er1 |
|
|
18221 | cat conftest.err >&5 |
|
|
18222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18223 | (exit $ac_status); } && { |
|
|
18224 | test -z "$ac_c_werror_flag" || |
|
|
18225 | test ! -s conftest.err |
|
|
18226 | } && test -s conftest$ac_exeext && |
|
|
18227 | $as_test_x conftest$ac_exeext; then |
|
|
18228 | ac_cv_func_shl_load=yes |
|
|
18229 | else |
|
|
18230 | echo "$as_me: failed program was:" >&5 |
|
|
18231 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18232 | |
|
|
18233 | ac_cv_func_shl_load=no |
|
|
18234 | fi |
|
|
18235 | |
|
|
18236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
18237 | conftest$ac_exeext conftest.$ac_ext |
|
|
18238 | fi |
|
|
18239 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
18240 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
|
|
18241 | if test $ac_cv_func_shl_load = yes; then |
|
|
18242 | lt_cv_dlopen="shl_load" |
|
|
18243 | else |
|
|
18244 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
18245 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
|
|
18246 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
18247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18248 | else |
|
|
18249 | ac_check_lib_save_LIBS=$LIBS |
|
|
18250 | LIBS="-ldld $LIBS" |
|
|
18251 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18252 | /* confdefs.h. */ |
|
|
18253 | _ACEOF |
|
|
18254 | cat confdefs.h >>conftest.$ac_ext |
|
|
18255 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18256 | /* end confdefs.h. */ |
|
|
18257 | |
|
|
18258 | /* Override any GCC internal prototype to avoid an error. |
|
|
18259 | Use char because int might match the return type of a GCC |
|
|
18260 | builtin and then its argument prototype would still apply. */ |
|
|
18261 | #ifdef __cplusplus |
|
|
18262 | extern "C" |
|
|
18263 | #endif |
|
|
18264 | char shl_load (); |
|
|
18265 | int |
|
|
18266 | main () |
|
|
18267 | { |
|
|
18268 | return shl_load (); |
|
|
18269 | ; |
|
|
18270 | return 0; |
|
|
18271 | } |
|
|
18272 | _ACEOF |
|
|
18273 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
18274 | if { (ac_try="$ac_link" |
|
|
18275 | case "(($ac_try" in |
|
|
18276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
18277 | *) ac_try_echo=$ac_try;; |
|
|
18278 | esac |
|
|
18279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
18280 | (eval "$ac_link") 2>conftest.er1 |
|
|
18281 | ac_status=$? |
|
|
18282 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
18283 | rm -f conftest.er1 |
|
|
18284 | cat conftest.err >&5 |
|
|
18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18286 | (exit $ac_status); } && { |
|
|
18287 | test -z "$ac_c_werror_flag" || |
|
|
18288 | test ! -s conftest.err |
|
|
18289 | } && test -s conftest$ac_exeext && |
|
|
18290 | $as_test_x conftest$ac_exeext; then |
|
|
18291 | ac_cv_lib_dld_shl_load=yes |
|
|
18292 | else |
|
|
18293 | echo "$as_me: failed program was:" >&5 |
|
|
18294 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18295 | |
|
|
18296 | ac_cv_lib_dld_shl_load=no |
|
|
18297 | fi |
|
|
18298 | |
|
|
18299 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
18300 | conftest$ac_exeext conftest.$ac_ext |
|
|
18301 | LIBS=$ac_check_lib_save_LIBS |
|
|
18302 | fi |
|
|
18303 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
18304 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
|
|
18305 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
18306 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
|
18307 | else |
|
|
18308 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
18309 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
|
|
18310 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
18311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18312 | else |
|
|
18313 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18314 | /* confdefs.h. */ |
|
|
18315 | _ACEOF |
|
|
18316 | cat confdefs.h >>conftest.$ac_ext |
|
|
18317 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18318 | /* end confdefs.h. */ |
|
|
18319 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
18320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
18321 | #define dlopen innocuous_dlopen |
|
|
18322 | |
|
|
18323 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
18324 | which can conflict with char dlopen (); below. |
|
|
18325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
18326 | <limits.h> exists even on freestanding compilers. */ |
|
|
18327 | |
|
|
18328 | #ifdef __STDC__ |
|
|
18329 | # include <limits.h> |
|
|
18330 | #else |
|
|
18331 | # include <assert.h> |
|
|
18332 | #endif |
|
|
18333 | |
|
|
18334 | #undef dlopen |
|
|
18335 | |
|
|
18336 | /* Override any GCC internal prototype to avoid an error. |
|
|
18337 | Use char because int might match the return type of a GCC |
|
|
18338 | builtin and then its argument prototype would still apply. */ |
|
|
18339 | #ifdef __cplusplus |
|
|
18340 | extern "C" |
|
|
18341 | #endif |
|
|
18342 | char dlopen (); |
|
|
18343 | /* The GNU C library defines this for functions which it implements |
|
|
18344 | to always fail with ENOSYS. Some functions are actually named |
|
|
18345 | something starting with __ and the normal name is an alias. */ |
|
|
18346 | #if defined __stub_dlopen || defined __stub___dlopen |
|
|
18347 | choke me |
|
|
18348 | #endif |
|
|
18349 | |
|
|
18350 | int |
|
|
18351 | main () |
|
|
18352 | { |
|
|
18353 | return dlopen (); |
|
|
18354 | ; |
|
|
18355 | return 0; |
|
|
18356 | } |
|
|
18357 | _ACEOF |
|
|
18358 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
18359 | if { (ac_try="$ac_link" |
|
|
18360 | case "(($ac_try" in |
|
|
18361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
18362 | *) ac_try_echo=$ac_try;; |
|
|
18363 | esac |
|
|
18364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
18365 | (eval "$ac_link") 2>conftest.er1 |
|
|
18366 | ac_status=$? |
|
|
18367 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
18368 | rm -f conftest.er1 |
|
|
18369 | cat conftest.err >&5 |
|
|
18370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18371 | (exit $ac_status); } && { |
|
|
18372 | test -z "$ac_c_werror_flag" || |
|
|
18373 | test ! -s conftest.err |
|
|
18374 | } && test -s conftest$ac_exeext && |
|
|
18375 | $as_test_x conftest$ac_exeext; then |
|
|
18376 | ac_cv_func_dlopen=yes |
|
|
18377 | else |
|
|
18378 | echo "$as_me: failed program was:" >&5 |
|
|
18379 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18380 | |
|
|
18381 | ac_cv_func_dlopen=no |
|
|
18382 | fi |
|
|
18383 | |
|
|
18384 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
18385 | conftest$ac_exeext conftest.$ac_ext |
|
|
18386 | fi |
|
|
18387 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
18388 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
|
|
18389 | if test $ac_cv_func_dlopen = yes; then |
|
|
18390 | lt_cv_dlopen="dlopen" |
|
|
18391 | else |
|
|
18392 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
18393 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
|
18394 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
18395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18396 | else |
|
|
18397 | ac_check_lib_save_LIBS=$LIBS |
|
|
18398 | LIBS="-ldl $LIBS" |
|
|
18399 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18400 | /* confdefs.h. */ |
|
|
18401 | _ACEOF |
|
|
18402 | cat confdefs.h >>conftest.$ac_ext |
|
|
18403 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18404 | /* end confdefs.h. */ |
|
|
18405 | |
|
|
18406 | /* Override any GCC internal prototype to avoid an error. |
|
|
18407 | Use char because int might match the return type of a GCC |
|
|
18408 | builtin and then its argument prototype would still apply. */ |
|
|
18409 | #ifdef __cplusplus |
|
|
18410 | extern "C" |
|
|
18411 | #endif |
|
|
18412 | char dlopen (); |
|
|
18413 | int |
|
|
18414 | main () |
|
|
18415 | { |
|
|
18416 | return dlopen (); |
|
|
18417 | ; |
|
|
18418 | return 0; |
|
|
18419 | } |
|
|
18420 | _ACEOF |
|
|
18421 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
18422 | if { (ac_try="$ac_link" |
|
|
18423 | case "(($ac_try" in |
|
|
18424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
18425 | *) ac_try_echo=$ac_try;; |
|
|
18426 | esac |
|
|
18427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
18428 | (eval "$ac_link") 2>conftest.er1 |
|
|
18429 | ac_status=$? |
|
|
18430 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
18431 | rm -f conftest.er1 |
|
|
18432 | cat conftest.err >&5 |
|
|
18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18434 | (exit $ac_status); } && { |
|
|
18435 | test -z "$ac_c_werror_flag" || |
|
|
18436 | test ! -s conftest.err |
|
|
18437 | } && test -s conftest$ac_exeext && |
|
|
18438 | $as_test_x conftest$ac_exeext; then |
|
|
18439 | ac_cv_lib_dl_dlopen=yes |
|
|
18440 | else |
|
|
18441 | echo "$as_me: failed program was:" >&5 |
|
|
18442 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18443 | |
|
|
18444 | ac_cv_lib_dl_dlopen=no |
|
|
18445 | fi |
|
|
18446 | |
|
|
18447 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
18448 | conftest$ac_exeext conftest.$ac_ext |
|
|
18449 | LIBS=$ac_check_lib_save_LIBS |
|
|
18450 | fi |
|
|
18451 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
18452 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
|
18453 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
18454 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
18455 | else |
|
|
18456 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
18457 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
|
|
18458 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
18459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18460 | else |
|
|
18461 | ac_check_lib_save_LIBS=$LIBS |
|
|
18462 | LIBS="-lsvld $LIBS" |
|
|
18463 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18464 | /* confdefs.h. */ |
|
|
18465 | _ACEOF |
|
|
18466 | cat confdefs.h >>conftest.$ac_ext |
|
|
18467 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18468 | /* end confdefs.h. */ |
|
|
18469 | |
|
|
18470 | /* Override any GCC internal prototype to avoid an error. |
|
|
18471 | Use char because int might match the return type of a GCC |
|
|
18472 | builtin and then its argument prototype would still apply. */ |
|
|
18473 | #ifdef __cplusplus |
|
|
18474 | extern "C" |
|
|
18475 | #endif |
|
|
18476 | char dlopen (); |
|
|
18477 | int |
|
|
18478 | main () |
|
|
18479 | { |
|
|
18480 | return dlopen (); |
|
|
18481 | ; |
|
|
18482 | return 0; |
|
|
18483 | } |
|
|
18484 | _ACEOF |
|
|
18485 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
18486 | if { (ac_try="$ac_link" |
|
|
18487 | case "(($ac_try" in |
|
|
18488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
18489 | *) ac_try_echo=$ac_try;; |
|
|
18490 | esac |
|
|
18491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
18492 | (eval "$ac_link") 2>conftest.er1 |
|
|
18493 | ac_status=$? |
|
|
18494 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
18495 | rm -f conftest.er1 |
|
|
18496 | cat conftest.err >&5 |
|
|
18497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18498 | (exit $ac_status); } && { |
|
|
18499 | test -z "$ac_c_werror_flag" || |
|
|
18500 | test ! -s conftest.err |
|
|
18501 | } && test -s conftest$ac_exeext && |
|
|
18502 | $as_test_x conftest$ac_exeext; then |
|
|
18503 | ac_cv_lib_svld_dlopen=yes |
|
|
18504 | else |
|
|
18505 | echo "$as_me: failed program was:" >&5 |
|
|
18506 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18507 | |
|
|
18508 | ac_cv_lib_svld_dlopen=no |
|
|
18509 | fi |
|
|
18510 | |
|
|
18511 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
18512 | conftest$ac_exeext conftest.$ac_ext |
|
|
18513 | LIBS=$ac_check_lib_save_LIBS |
|
|
18514 | fi |
|
|
18515 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
18516 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
|
|
18517 | if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
18518 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
18519 | else |
|
|
18520 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
18521 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
|
|
18522 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
|
18523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18524 | else |
|
|
18525 | ac_check_lib_save_LIBS=$LIBS |
|
|
18526 | LIBS="-ldld $LIBS" |
|
|
18527 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18528 | /* confdefs.h. */ |
|
|
18529 | _ACEOF |
|
|
18530 | cat confdefs.h >>conftest.$ac_ext |
|
|
18531 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18532 | /* end confdefs.h. */ |
|
|
18533 | |
|
|
18534 | /* Override any GCC internal prototype to avoid an error. |
|
|
18535 | Use char because int might match the return type of a GCC |
|
|
18536 | builtin and then its argument prototype would still apply. */ |
|
|
18537 | #ifdef __cplusplus |
|
|
18538 | extern "C" |
|
|
18539 | #endif |
|
|
18540 | char dld_link (); |
|
|
18541 | int |
|
|
18542 | main () |
|
|
18543 | { |
|
|
18544 | return dld_link (); |
|
|
18545 | ; |
|
|
18546 | return 0; |
|
|
18547 | } |
|
|
18548 | _ACEOF |
|
|
18549 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
18550 | if { (ac_try="$ac_link" |
|
|
18551 | case "(($ac_try" in |
|
|
18552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
18553 | *) ac_try_echo=$ac_try;; |
|
|
18554 | esac |
|
|
18555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
18556 | (eval "$ac_link") 2>conftest.er1 |
|
|
18557 | ac_status=$? |
|
|
18558 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
18559 | rm -f conftest.er1 |
|
|
18560 | cat conftest.err >&5 |
|
|
18561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18562 | (exit $ac_status); } && { |
|
|
18563 | test -z "$ac_c_werror_flag" || |
|
|
18564 | test ! -s conftest.err |
|
|
18565 | } && test -s conftest$ac_exeext && |
|
|
18566 | $as_test_x conftest$ac_exeext; then |
|
|
18567 | ac_cv_lib_dld_dld_link=yes |
|
|
18568 | else |
|
|
18569 | echo "$as_me: failed program was:" >&5 |
|
|
18570 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18571 | |
|
|
18572 | ac_cv_lib_dld_dld_link=no |
|
|
18573 | fi |
|
|
18574 | |
|
|
18575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
18576 | conftest$ac_exeext conftest.$ac_ext |
|
|
18577 | LIBS=$ac_check_lib_save_LIBS |
|
|
18578 | fi |
|
|
18579 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
18580 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
|
|
18581 | if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
18582 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
18583 | fi |
|
|
18584 | |
|
|
18585 | |
|
|
18586 | fi |
|
|
18587 | |
|
|
18588 | |
|
|
18589 | fi |
|
|
18590 | |
|
|
18591 | |
|
|
18592 | fi |
|
|
18593 | |
|
|
18594 | |
|
|
18595 | fi |
|
|
18596 | |
|
|
18597 | |
|
|
18598 | fi |
|
|
18599 | |
|
|
18600 | ;; |
|
|
18601 | esac |
|
|
18602 | |
|
|
18603 | if test "x$lt_cv_dlopen" != xno; then |
|
|
18604 | enable_dlopen=yes |
|
|
18605 | else |
|
|
18606 | enable_dlopen=no |
|
|
18607 | fi |
|
|
18608 | |
|
|
18609 | case $lt_cv_dlopen in |
|
|
18610 | dlopen) |
|
|
18611 | save_CPPFLAGS="$CPPFLAGS" |
|
|
18612 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
18613 | |
|
|
18614 | save_LDFLAGS="$LDFLAGS" |
|
|
18615 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
18616 | |
|
|
18617 | save_LIBS="$LIBS" |
|
|
18618 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
18619 | |
|
|
18620 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
18621 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
|
|
18622 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
18623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18624 | else |
|
|
18625 | if test "$cross_compiling" = yes; then : |
|
|
18626 | lt_cv_dlopen_self=cross |
|
|
18627 | else |
|
|
18628 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
18629 | lt_status=$lt_dlunknown |
|
|
18630 | cat > conftest.$ac_ext <<EOF |
|
|
18631 | #line 18631 "configure" |
|
|
18632 | #include "confdefs.h" |
|
|
18633 | |
|
|
18634 | #if HAVE_DLFCN_H |
|
|
18635 | #include <dlfcn.h> |
|
|
18636 | #endif |
|
|
18637 | |
|
|
18638 | #include <stdio.h> |
|
|
18639 | |
|
|
18640 | #ifdef RTLD_GLOBAL |
|
|
18641 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
18642 | #else |
|
|
18643 | # ifdef DL_GLOBAL |
|
|
18644 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
18645 | # else |
|
|
18646 | # define LT_DLGLOBAL 0 |
|
|
18647 | # endif |
|
|
18648 | #endif |
|
|
18649 | |
|
|
18650 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
18651 | find out it does not work in some platform. */ |
|
|
18652 | #ifndef LT_DLLAZY_OR_NOW |
|
|
18653 | # ifdef RTLD_LAZY |
|
|
18654 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
18655 | # else |
|
|
18656 | # ifdef DL_LAZY |
|
|
18657 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
18658 | # else |
|
|
18659 | # ifdef RTLD_NOW |
|
|
18660 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
18661 | # else |
|
|
18662 | # ifdef DL_NOW |
|
|
18663 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
18664 | # else |
|
|
18665 | # define LT_DLLAZY_OR_NOW 0 |
|
|
18666 | # endif |
|
|
18667 | # endif |
|
|
18668 | # endif |
|
|
18669 | # endif |
|
|
18670 | #endif |
|
|
18671 | |
|
|
18672 | #ifdef __cplusplus |
|
|
18673 | extern "C" void exit (int); |
|
|
18674 | #endif |
|
|
18675 | |
|
|
18676 | void fnord() { int i=42;} |
|
|
18677 | int main () |
|
|
18678 | { |
|
|
18679 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
18680 | int status = $lt_dlunknown; |
|
|
18681 | |
|
|
18682 | if (self) |
|
|
18683 | { |
|
|
18684 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
18685 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
18686 | /* dlclose (self); */ |
|
|
18687 | } |
|
|
18688 | |
|
|
18689 | exit (status); |
|
|
18690 | } |
|
|
18691 | EOF |
|
|
18692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
18693 | (eval $ac_link) 2>&5 |
|
|
18694 | ac_status=$? |
|
|
18695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18696 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
18697 | (./conftest; exit; ) 2>/dev/null |
|
|
18698 | lt_status=$? |
|
|
18699 | case x$lt_status in |
|
|
18700 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
18701 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
18702 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
18703 | esac |
|
|
18704 | else : |
|
|
18705 | # compilation failed |
|
|
18706 | lt_cv_dlopen_self=no |
|
|
18707 | fi |
|
|
18708 | fi |
|
|
18709 | rm -fr conftest* |
|
|
18710 | |
|
|
18711 | |
|
|
18712 | fi |
|
|
18713 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
18714 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
|
|
18715 | |
|
|
18716 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
18717 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
18718 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
18719 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
|
|
18720 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
18721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18722 | else |
|
|
18723 | if test "$cross_compiling" = yes; then : |
|
|
18724 | lt_cv_dlopen_self_static=cross |
|
|
18725 | else |
|
|
18726 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
18727 | lt_status=$lt_dlunknown |
|
|
18728 | cat > conftest.$ac_ext <<EOF |
|
|
18729 | #line 18729 "configure" |
|
|
18730 | #include "confdefs.h" |
|
|
18731 | |
|
|
18732 | #if HAVE_DLFCN_H |
|
|
18733 | #include <dlfcn.h> |
|
|
18734 | #endif |
|
|
18735 | |
|
|
18736 | #include <stdio.h> |
|
|
18737 | |
|
|
18738 | #ifdef RTLD_GLOBAL |
|
|
18739 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
18740 | #else |
|
|
18741 | # ifdef DL_GLOBAL |
|
|
18742 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
18743 | # else |
|
|
18744 | # define LT_DLGLOBAL 0 |
|
|
18745 | # endif |
|
|
18746 | #endif |
|
|
18747 | |
|
|
18748 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
18749 | find out it does not work in some platform. */ |
|
|
18750 | #ifndef LT_DLLAZY_OR_NOW |
|
|
18751 | # ifdef RTLD_LAZY |
|
|
18752 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
18753 | # else |
|
|
18754 | # ifdef DL_LAZY |
|
|
18755 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
18756 | # else |
|
|
18757 | # ifdef RTLD_NOW |
|
|
18758 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
18759 | # else |
|
|
18760 | # ifdef DL_NOW |
|
|
18761 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
18762 | # else |
|
|
18763 | # define LT_DLLAZY_OR_NOW 0 |
|
|
18764 | # endif |
|
|
18765 | # endif |
|
|
18766 | # endif |
|
|
18767 | # endif |
|
|
18768 | #endif |
|
|
18769 | |
|
|
18770 | #ifdef __cplusplus |
|
|
18771 | extern "C" void exit (int); |
|
|
18772 | #endif |
|
|
18773 | |
|
|
18774 | void fnord() { int i=42;} |
|
|
18775 | int main () |
|
|
18776 | { |
|
|
18777 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
18778 | int status = $lt_dlunknown; |
|
|
18779 | |
|
|
18780 | if (self) |
|
|
18781 | { |
|
|
18782 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
18783 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
18784 | /* dlclose (self); */ |
|
|
18785 | } |
|
|
18786 | |
|
|
18787 | exit (status); |
|
|
18788 | } |
|
|
18789 | EOF |
|
|
18790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
18791 | (eval $ac_link) 2>&5 |
|
|
18792 | ac_status=$? |
|
|
18793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18794 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
18795 | (./conftest; exit; ) 2>/dev/null |
|
|
18796 | lt_status=$? |
|
|
18797 | case x$lt_status in |
|
|
18798 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
18799 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
18800 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
18801 | esac |
|
|
18802 | else : |
|
|
18803 | # compilation failed |
|
|
18804 | lt_cv_dlopen_self_static=no |
|
|
18805 | fi |
|
|
18806 | fi |
|
|
18807 | rm -fr conftest* |
|
|
18808 | |
|
|
18809 | |
|
|
18810 | fi |
|
|
18811 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
18812 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
|
|
18813 | fi |
|
|
18814 | |
|
|
18815 | CPPFLAGS="$save_CPPFLAGS" |
|
|
18816 | LDFLAGS="$save_LDFLAGS" |
|
|
18817 | LIBS="$save_LIBS" |
|
|
18818 | ;; |
|
|
18819 | esac |
|
|
18820 | |
|
|
18821 | case $lt_cv_dlopen_self in |
|
|
18822 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
18823 | *) enable_dlopen_self=unknown ;; |
|
|
18824 | esac |
|
|
18825 | |
|
|
18826 | case $lt_cv_dlopen_self_static in |
|
|
18827 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
18828 | *) enable_dlopen_self_static=unknown ;; |
|
|
18829 | esac |
|
|
18830 | fi |
|
|
18831 | |
|
|
18832 | |
18273 | |
18833 | # The else clause should only fire when bootstrapping the |
18274 | # The else clause should only fire when bootstrapping the |
18834 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18275 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18835 | # with your package, and you will get complaints that there are |
18276 | # with your package, and you will get complaints that there are |
18836 | # no rules to generate ltmain.sh. |
18277 | # no rules to generate ltmain.sh. |
… | |
… | |
18841 | setopt NO_GLOB_SUBST |
18282 | setopt NO_GLOB_SUBST |
18842 | fi |
18283 | fi |
18843 | # Now quote all the things that may contain metacharacters while being |
18284 | # Now quote all the things that may contain metacharacters while being |
18844 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18285 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18845 | # variables and quote the copies for generation of the libtool script. |
18286 | # variables and quote the copies for generation of the libtool script. |
18846 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
18287 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18847 | SED SHELL STRIP \ |
18288 | SED SHELL STRIP \ |
18848 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18289 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18849 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18290 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18850 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18291 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18851 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18292 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
… | |
… | |
18942 | fast_install=$enable_fast_install |
18383 | fast_install=$enable_fast_install |
18943 | |
18384 | |
18944 | # The host system. |
18385 | # The host system. |
18945 | host_alias=$host_alias |
18386 | host_alias=$host_alias |
18946 | host=$host |
18387 | host=$host |
|
|
18388 | host_os=$host_os |
|
|
18389 | |
|
|
18390 | # The build system. |
|
|
18391 | build_alias=$build_alias |
|
|
18392 | build=$build |
|
|
18393 | build_os=$build_os |
18947 | |
18394 | |
18948 | # An echo program that does not interpret backslashes. |
18395 | # An echo program that does not interpret backslashes. |
18949 | echo=$lt_echo |
18396 | echo=$lt_echo |
18950 | |
18397 | |
18951 | # The archiver. |
18398 | # The archiver. |
… | |
… | |
18953 | AR_FLAGS=$lt_AR_FLAGS |
18400 | AR_FLAGS=$lt_AR_FLAGS |
18954 | |
18401 | |
18955 | # A C compiler. |
18402 | # A C compiler. |
18956 | LTCC=$lt_LTCC |
18403 | LTCC=$lt_LTCC |
18957 | |
18404 | |
|
|
18405 | # LTCC compiler flags. |
|
|
18406 | LTCFLAGS=$lt_LTCFLAGS |
|
|
18407 | |
18958 | # A language-specific compiler. |
18408 | # A language-specific compiler. |
18959 | CC=$lt_compiler_GCJ |
18409 | CC=$lt_compiler_GCJ |
18960 | |
18410 | |
18961 | # Is the compiler the GNU C compiler? |
18411 | # Is the compiler the GNU C compiler? |
18962 | with_gcc=$GCC_GCJ |
18412 | with_gcc=$GCC_GCJ |
… | |
… | |
19003 | |
18453 | |
19004 | # Old archive suffix (normally "a"). |
18454 | # Old archive suffix (normally "a"). |
19005 | libext="$libext" |
18455 | libext="$libext" |
19006 | |
18456 | |
19007 | # Shared library suffix (normally ".so"). |
18457 | # Shared library suffix (normally ".so"). |
19008 | shrext='$shrext' |
18458 | shrext_cmds='$shrext_cmds' |
19009 | |
18459 | |
19010 | # Executable file suffix (normally ""). |
18460 | # Executable file suffix (normally ""). |
19011 | exeext="$exeext" |
18461 | exeext="$exeext" |
19012 | |
18462 | |
19013 | # Additional compiler flags for building library objects. |
18463 | # Additional compiler flags for building library objects. |
… | |
… | |
19018 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18468 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19019 | |
18469 | |
19020 | # Does compiler simultaneously support -c and -o options? |
18470 | # Does compiler simultaneously support -c and -o options? |
19021 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18471 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
19022 | |
18472 | |
19023 | # Must we lock files when doing compilation ? |
18473 | # Must we lock files when doing compilation? |
19024 | need_locks=$lt_need_locks |
18474 | need_locks=$lt_need_locks |
19025 | |
18475 | |
19026 | # Do we need the lib prefix for modules? |
18476 | # Do we need the lib prefix for modules? |
19027 | need_lib_prefix=$need_lib_prefix |
18477 | need_lib_prefix=$need_lib_prefix |
19028 | |
18478 | |
… | |
… | |
19261 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18711 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
19262 | |
18712 | |
19263 | # If no C compiler was specified, use CC. |
18713 | # If no C compiler was specified, use CC. |
19264 | LTCC=${LTCC-"$CC"} |
18714 | LTCC=${LTCC-"$CC"} |
19265 | |
18715 | |
|
|
18716 | # If no C compiler flags were specified, use CFLAGS. |
|
|
18717 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
18718 | |
19266 | # Allow CC to be a program name with arguments. |
18719 | # Allow CC to be a program name with arguments. |
19267 | compiler=$CC |
18720 | compiler=$CC |
|
|
18721 | |
|
|
18722 | |
|
|
18723 | # save warnings/boilerplate of simple test code |
|
|
18724 | ac_outfile=conftest.$ac_objext |
|
|
18725 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
18726 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
18727 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
18728 | $rm conftest* |
|
|
18729 | |
|
|
18730 | ac_outfile=conftest.$ac_objext |
|
|
18731 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
18732 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
18733 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
18734 | $rm conftest* |
19268 | |
18735 | |
19269 | |
18736 | |
19270 | # Allow CC to be a program name with arguments. |
18737 | # Allow CC to be a program name with arguments. |
19271 | lt_save_CC="$CC" |
18738 | lt_save_CC="$CC" |
19272 | CC=${RC-"windres"} |
18739 | CC=${RC-"windres"} |
19273 | compiler=$CC |
18740 | compiler=$CC |
19274 | compiler_RC=$CC |
18741 | compiler_RC=$CC |
|
|
18742 | for cc_temp in $compiler""; do |
|
|
18743 | case $cc_temp in |
|
|
18744 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
18745 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
18746 | \-*) ;; |
|
|
18747 | *) break;; |
|
|
18748 | esac |
|
|
18749 | done |
|
|
18750 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
18751 | |
19275 | lt_cv_prog_compiler_c_o_RC=yes |
18752 | lt_cv_prog_compiler_c_o_RC=yes |
19276 | |
18753 | |
19277 | # The else clause should only fire when bootstrapping the |
18754 | # The else clause should only fire when bootstrapping the |
19278 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18755 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19279 | # with your package, and you will get complaints that there are |
18756 | # with your package, and you will get complaints that there are |
… | |
… | |
19285 | setopt NO_GLOB_SUBST |
18762 | setopt NO_GLOB_SUBST |
19286 | fi |
18763 | fi |
19287 | # Now quote all the things that may contain metacharacters while being |
18764 | # Now quote all the things that may contain metacharacters while being |
19288 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18765 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19289 | # variables and quote the copies for generation of the libtool script. |
18766 | # variables and quote the copies for generation of the libtool script. |
19290 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
18767 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19291 | SED SHELL STRIP \ |
18768 | SED SHELL STRIP \ |
19292 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18769 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19293 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18770 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19294 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18771 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19295 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18772 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
… | |
… | |
19386 | fast_install=$enable_fast_install |
18863 | fast_install=$enable_fast_install |
19387 | |
18864 | |
19388 | # The host system. |
18865 | # The host system. |
19389 | host_alias=$host_alias |
18866 | host_alias=$host_alias |
19390 | host=$host |
18867 | host=$host |
|
|
18868 | host_os=$host_os |
|
|
18869 | |
|
|
18870 | # The build system. |
|
|
18871 | build_alias=$build_alias |
|
|
18872 | build=$build |
|
|
18873 | build_os=$build_os |
19391 | |
18874 | |
19392 | # An echo program that does not interpret backslashes. |
18875 | # An echo program that does not interpret backslashes. |
19393 | echo=$lt_echo |
18876 | echo=$lt_echo |
19394 | |
18877 | |
19395 | # The archiver. |
18878 | # The archiver. |
… | |
… | |
19397 | AR_FLAGS=$lt_AR_FLAGS |
18880 | AR_FLAGS=$lt_AR_FLAGS |
19398 | |
18881 | |
19399 | # A C compiler. |
18882 | # A C compiler. |
19400 | LTCC=$lt_LTCC |
18883 | LTCC=$lt_LTCC |
19401 | |
18884 | |
|
|
18885 | # LTCC compiler flags. |
|
|
18886 | LTCFLAGS=$lt_LTCFLAGS |
|
|
18887 | |
19402 | # A language-specific compiler. |
18888 | # A language-specific compiler. |
19403 | CC=$lt_compiler_RC |
18889 | CC=$lt_compiler_RC |
19404 | |
18890 | |
19405 | # Is the compiler the GNU C compiler? |
18891 | # Is the compiler the GNU C compiler? |
19406 | with_gcc=$GCC_RC |
18892 | with_gcc=$GCC_RC |
… | |
… | |
19447 | |
18933 | |
19448 | # Old archive suffix (normally "a"). |
18934 | # Old archive suffix (normally "a"). |
19449 | libext="$libext" |
18935 | libext="$libext" |
19450 | |
18936 | |
19451 | # Shared library suffix (normally ".so"). |
18937 | # Shared library suffix (normally ".so"). |
19452 | shrext='$shrext' |
18938 | shrext_cmds='$shrext_cmds' |
19453 | |
18939 | |
19454 | # Executable file suffix (normally ""). |
18940 | # Executable file suffix (normally ""). |
19455 | exeext="$exeext" |
18941 | exeext="$exeext" |
19456 | |
18942 | |
19457 | # Additional compiler flags for building library objects. |
18943 | # Additional compiler flags for building library objects. |
… | |
… | |
19462 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18948 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19463 | |
18949 | |
19464 | # Does compiler simultaneously support -c and -o options? |
18950 | # Does compiler simultaneously support -c and -o options? |
19465 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18951 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19466 | |
18952 | |
19467 | # Must we lock files when doing compilation ? |
18953 | # Must we lock files when doing compilation? |
19468 | need_locks=$lt_need_locks |
18954 | need_locks=$lt_need_locks |
19469 | |
18955 | |
19470 | # Do we need the lib prefix for modules? |
18956 | # Do we need the lib prefix for modules? |
19471 | need_lib_prefix=$need_lib_prefix |
18957 | need_lib_prefix=$need_lib_prefix |
19472 | |
18958 | |
… | |
… | |
24769 | |
24255 | |
24770 | #------------------------------------------------------------------------------- |
24256 | #------------------------------------------------------------------------------- |
24771 | # Generate Makefiles |
24257 | # Generate Makefiles |
24772 | #------------------------------------------------------------------------------- |
24258 | #------------------------------------------------------------------------------- |
24773 | |
24259 | |
24774 | ac_config_files="$ac_config_files Makefile src/Makefile src/libspf/Makefile src/spfqtool/Makefile src/libspf/spf.h src/libspf/util.c src/spfmilter/Makefile" |
24260 | ac_config_files="$ac_config_files Makefile src/Makefile src/libspf/Makefile src/spfqtool/Makefile src/libspf/spf.h src/libspf/util.c" |
24775 | |
24261 | |
24776 | cat >confcache <<\_ACEOF |
24262 | cat >confcache <<\_ACEOF |
24777 | # This file is a shell script that caches the results of configure |
24263 | # This file is a shell script that caches the results of configure |
24778 | # tests run on this system so they can be shared between configure |
24264 | # tests run on this system so they can be shared between configure |
24779 | # scripts and configure runs, see configure's option --config-cache. |
24265 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
25355 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
24841 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
25356 | "src/libspf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libspf/Makefile" ;; |
24842 | "src/libspf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libspf/Makefile" ;; |
25357 | "src/spfqtool/Makefile") CONFIG_FILES="$CONFIG_FILES src/spfqtool/Makefile" ;; |
24843 | "src/spfqtool/Makefile") CONFIG_FILES="$CONFIG_FILES src/spfqtool/Makefile" ;; |
25358 | "src/libspf/spf.h") CONFIG_FILES="$CONFIG_FILES src/libspf/spf.h" ;; |
24844 | "src/libspf/spf.h") CONFIG_FILES="$CONFIG_FILES src/libspf/spf.h" ;; |
25359 | "src/libspf/util.c") CONFIG_FILES="$CONFIG_FILES src/libspf/util.c" ;; |
24845 | "src/libspf/util.c") CONFIG_FILES="$CONFIG_FILES src/libspf/util.c" ;; |
25360 | "src/spfmilter/Makefile") CONFIG_FILES="$CONFIG_FILES src/spfmilter/Makefile" ;; |
|
|
25361 | |
24846 | |
25362 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
24847 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
25363 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
24848 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
25364 | { (exit 1); exit 1; }; };; |
24849 | { (exit 1); exit 1; }; };; |
25365 | esac |
24850 | esac |