Parent Directory
|
Revision Log
|
Patch
| revision 79 by nigel, Sat Feb 24 21:40:52 2007 UTC | revision 89 by nigel, Sat Feb 24 21:41:27 2007 UTC | |
|---|---|---|
| # | Line 285 if test "X${echo_test_string+set}" != Xs | Line 285 if test "X${echo_test_string+set}" != Xs |
| 285 | # find a string as large as possible, as long as the shell can cope with it | # find a string as large as possible, as long as the shell can cope with it |
| 286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 288 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 289 | echo_test_string="`eval $cmd`" && | echo_test_string=`eval $cmd` && |
| 290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 291 | then | then |
| 292 | break | break |
| # | Line 426 PACKAGE_STRING= | Line 426 PACKAGE_STRING= |
| 426 | PACKAGE_BUGREPORT= | PACKAGE_BUGREPORT= |
| 427 | ||
| 428 | ac_unique_file="dftables.c" | ac_unique_file="dftables.c" |
| 429 | ac_unique_file="pcre.h" | |
| 430 | # Factoring default headers for most tests. | # Factoring default headers for most tests. |
| 431 | ac_includes_default="\ | ac_includes_default="\ |
| 432 | #include <stdio.h> | #include <stdio.h> |
| # | Line 463 ac_includes_default="\ | Line 464 ac_includes_default="\ |
| 464 | # include <unistd.h> | # include <unistd.h> |
| 465 | #endif" | #endif" |
| 466 | ||
| 467 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_has_bits_type_traits pcre_has_type_traits MAYBE_CPP_TARGETS pcre_has_long_long pcre_has_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS' | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_have_bits_type_traits pcre_have_type_traits MAYBE_CPP_TARGETS HAVE_CPP pcre_have_long_long pcre_have_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXXLDFLAGS EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT MATCH_LIMIT_RECURSION NEWLINE NO_RECURSE PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION PCRE_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS' |
| 468 | ac_subst_files='' | ac_subst_files='' |
| 469 | ||
| 470 | # Initialize some variables set by options. | # Initialize some variables set by options. |
| # | Line 1018 if test -n "$ac_init_help"; then | Line 1019 if test -n "$ac_init_help"; then |
| 1019 | Optional Features: | Optional Features: |
| 1020 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1021 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1022 | --disable-cpp disable C++ support | |
| 1023 | --enable-shared[=PKGS] | --enable-shared[=PKGS] |
| 1024 | build shared libraries [default=yes] | build shared libraries [default=yes] |
| 1025 | --enable-static[=PKGS] | --enable-static[=PKGS] |
| # | Line 1040 Optional Packages: | Line 1042 Optional Packages: |
| 1042 | both] | both] |
| 1043 | --with-tags[=TAGS] | --with-tags[=TAGS] |
| 1044 | include additional configurations [automatic] | include additional configurations [automatic] |
| 1045 | --with-posix-malloc-threshold=5 threshold for POSIX malloc usage | --with-posix-malloc-threshold=10 threshold for POSIX malloc usage |
| 1046 | --with-link-size=2 internal link size (2, 3, or 4 allowed) | --with-link-size=2 internal link size (2, 3, or 4 allowed) |
| 1047 | --with-match-limit=10000000 default limit on internal looping) | --with-match-limit=10000000 default limit on internal looping |
| 1048 | --with-match-limit-recursion=10000000 default limit on internal recursion | |
| 1049 | ||
| 1050 | Some influential environment variables: | Some influential environment variables: |
| 1051 | CC C compiler command | CC C compiler command |
| # | Line 1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu | Line 1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1503 | ||
| 1504 | ||
| 1505 | ||
| ac_config_headers="$ac_config_headers config.h:config.in" | ||
| 1506 | ||
| 1507 | ac_config_headers="$ac_config_headers config.h" | |
| 1508 | ||
| 1509 | ||
| PCRE_MAJOR=6 | ||
| PCRE_MINOR=1 | ||
| PCRE_DATE=21-Jun-2005 | ||
| PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} | ||
| 1510 | ||
| 1511 | POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10 | POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10 |
| 1512 | ||
| # | Line 1518 PCRE_POSIXLIB_VERSION=0:0:0 | Line 1516 PCRE_POSIXLIB_VERSION=0:0:0 |
| 1516 | PCRE_CPPLIB_VERSION=0:0:0 | PCRE_CPPLIB_VERSION=0:0:0 |
| 1517 | ||
| 1518 | ||
| 1519 | PCRE_MAJOR=`grep '#define PCRE_MAJOR' ${srcdir}/pcre.h | cut -c 29-` | |
| 1520 | PCRE_MINOR=`grep '#define PCRE_MINOR' ${srcdir}/pcre.h | cut -c 29-` | |
| 1521 | PCRE_PRERELEASE=`grep '#define PCRE_PRERELEASE' ${srcdir}/pcre.h | cut -c 29-` | |
| 1522 | PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}${PCRE_PRERELEASE} | |
| 1523 | ||
| 1524 | ||
| 1525 | # Check whether --enable-cpp or --disable-cpp was given. | |
| 1526 | if test "${enable_cpp+set}" = set; then | |
| 1527 | enableval="$enable_cpp" | |
| 1528 | want_cpp="$enableval" | |
| 1529 | else | |
| 1530 | want_cpp=yes | |
| 1531 | fi; | |
| 1532 | ||
| 1533 | ||
| 1534 | ac_ext=c | ac_ext=c |
| 1535 | ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' |
| 1536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| # | Line 3064 lt_ac_count=0 | Line 3077 lt_ac_count=0 |
| 3077 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3078 | # along with /bin/sed that truncates output. | # along with /bin/sed that truncates output. |
| 3079 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3080 | test ! -f $lt_ac_sed && break | test ! -f $lt_ac_sed && continue |
| 3081 | cat /dev/null > conftest.in | cat /dev/null > conftest.in |
| 3082 | lt_ac_count=0 | lt_ac_count=0 |
| 3083 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| # | Line 3169 else | Line 3182 else |
| 3182 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3183 | lt_cv_path_LD="$ac_dir/$ac_prog" | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3184 | # Check to see if the program is GNU ld. I'd rather use --version, | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3185 | # but apparently some GNU ld's only accept -v. | # but apparently some variants of GNU ld only accept -v. |
| 3186 | # Break only if it was the GNU/non-GNU ld that we prefer. | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 3187 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3188 | *GNU* | *'with BFD'*) | *GNU* | *'with BFD'*) |
| # | Line 3203 echo $ECHO_N "checking if the linker ($L | Line 3216 echo $ECHO_N "checking if the linker ($L |
| 3216 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3218 | else | else |
| 3219 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 3220 | case `$LD -v 2>&1 </dev/null` in | case `$LD -v 2>&1 </dev/null` in |
| 3221 | *GNU* | *'with BFD'*) | *GNU* | *'with BFD'*) |
| 3222 | lt_cv_prog_gnu_ld=yes | lt_cv_prog_gnu_ld=yes |
| # | Line 3236 reload_cmds='$LD$reload_flag -o $output$ | Line 3249 reload_cmds='$LD$reload_flag -o $output$ |
| 3249 | case $host_os in | case $host_os in |
| 3250 | darwin*) | darwin*) |
| 3251 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
| 3252 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 3253 | else | else |
| 3254 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3255 | fi | fi |
| # | Line 3252 else | Line 3265 else |
| 3265 | # Let the user override the test. | # Let the user override the test. |
| 3266 | lt_cv_path_NM="$NM" | lt_cv_path_NM="$NM" |
| 3267 | else | else |
| 3268 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | lt_nm_to_check="${ac_tool_prefix}nm" |
| 3269 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3270 | IFS="$lt_save_ifs" | lt_nm_to_check="$lt_nm_to_check nm" |
| 3271 | test -z "$ac_dir" && ac_dir=. | fi |
| 3272 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | for lt_tmp_nm in $lt_nm_to_check; do |
| 3273 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3274 | # Check to see if the nm accepts a BSD-compat flag. | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3275 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | IFS="$lt_save_ifs" |
| 3276 | # nm: unknown option "B" ignored | test -z "$ac_dir" && ac_dir=. |
| 3277 | # Tru64's nm complains that /dev/null is an invalid object file | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 3278 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3279 | */dev/null* | *'Invalid file or object type'*) | # Check to see if the nm accepts a BSD-compat flag. |
| 3280 | lt_cv_path_NM="$tmp_nm -B" | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3281 | break | # nm: unknown option "B" ignored |
| 3282 | ;; | # Tru64's nm complains that /dev/null is an invalid object file |
| 3283 | *) | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3284 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | */dev/null* | *'Invalid file or object type'*) |
| 3285 | */dev/null*) | lt_cv_path_NM="$tmp_nm -B" |
| lt_cv_path_NM="$tmp_nm -p" | ||
| 3286 | break | break |
| 3287 | ;; | ;; |
| 3288 | *) | *) |
| 3289 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3290 | continue # so that we can try to find one that supports BSD flags | */dev/null*) |
| 3291 | lt_cv_path_NM="$tmp_nm -p" | |
| 3292 | break | |
| 3293 | ;; | |
| 3294 | *) | |
| 3295 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
| 3296 | continue # so that we can try to find one that supports BSD flags | |
| 3297 | ;; | |
| 3298 | esac | |
| 3299 | ;; | ;; |
| 3300 | esac | esac |
| 3301 | esac | fi |
| 3302 | fi | done |
| 3303 | IFS="$lt_save_ifs" | |
| 3304 | done | done |
| IFS="$lt_save_ifs" | ||
| 3305 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3306 | fi | fi |
| 3307 | fi | fi |
| # | Line 3351 darwin* | rhapsody*) | Line 3371 darwin* | rhapsody*) |
| 3371 | lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all |
| 3372 | ;; | ;; |
| 3373 | ||
| 3374 | freebsd* | kfreebsd*-gnu) | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 3375 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3376 | case $host_cpu in | case $host_cpu in |
| 3377 | i*86 ) | i*86 ) |
| 3378 | # Not sure whether the presence of OpenBSD here was a mistake. | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3379 | # Let's accept both of them until this is cleared up. | # Let's accept both of them until this is cleared up. |
| 3380 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 3381 | lt_cv_file_magic_cmd=/usr/bin/file | lt_cv_file_magic_cmd=/usr/bin/file |
| 3382 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3383 | ;; | ;; |
| # | Line 3373 gnu*) | Line 3393 gnu*) |
| 3393 | ||
| 3394 | hpux10.20* | hpux11*) | hpux10.20* | hpux11*) |
| 3395 | lt_cv_file_magic_cmd=/usr/bin/file | lt_cv_file_magic_cmd=/usr/bin/file |
| 3396 | case "$host_cpu" in | case $host_cpu in |
| 3397 | ia64*) | ia64*) |
| 3398 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3399 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| # | Line 3389 hpux10.20* | hpux11*) | Line 3409 hpux10.20* | hpux11*) |
| 3409 | esac | esac |
| 3410 | ;; | ;; |
| 3411 | ||
| 3412 | interix3*) | |
| 3413 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
| 3414 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
| 3415 | ;; | |
| 3416 | ||
| 3417 | irix5* | irix6* | nonstopux*) | irix5* | irix6* | nonstopux*) |
| 3418 | case $LD in | case $LD in |
| 3419 | *-32|*"-32 ") libmagic=32-bit;; | *-32|*"-32 ") libmagic=32-bit;; |
| # | Line 3401 irix5* | irix6* | nonstopux*) | Line 3426 irix5* | irix6* | nonstopux*) |
| 3426 | ||
| 3427 | # This must be Linux ELF. | # This must be Linux ELF. |
| 3428 | linux*) | linux*) |
| case $host_cpu in | ||
| alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) | ||
| lt_cv_deplibs_check_method=pass_all ;; | ||
| *) | ||
| # glibc up to 2.1.1 does not perform some relocations on ARM | ||
| # this will be overridden with pass_all, but let us keep it just in case | ||
| lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | ||
| esac | ||
| lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | ||
| 3429 | lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all |
| 3430 | ;; | ;; |
| 3431 | ||
| # | Line 3443 osf3* | osf4* | osf5*) | Line 3459 osf3* | osf4* | osf5*) |
| 3459 | lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all |
| 3460 | ;; | ;; |
| 3461 | ||
| sco3.2v5*) | ||
| lt_cv_deplibs_check_method=pass_all | ||
| ;; | ||
| 3462 | solaris*) | solaris*) |
| 3463 | lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all |
| 3464 | ;; | ;; |
| 3465 | ||
| 3466 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | sysv4 | sysv4.3*) |
| 3467 | case $host_vendor in | case $host_vendor in |
| 3468 | motorola) | motorola) |
| 3469 | 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]' | 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]' |
| # | Line 3472 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | Line 3484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3484 | siemens) | siemens) |
| 3485 | lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all |
| 3486 | ;; | ;; |
| 3487 | pc) | |
| 3488 | lt_cv_deplibs_check_method=pass_all | |
| 3489 | ;; | |
| 3490 | esac | esac |
| 3491 | ;; | ;; |
| 3492 | ||
| 3493 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 3494 | lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all |
| 3495 | ;; | ;; |
| 3496 | esac | esac |
| # | Line 3493 test -z "$deplibs_check_method" && depli | Line 3508 test -z "$deplibs_check_method" && depli |
| 3508 | # If no C compiler was specified, use CC. | # If no C compiler was specified, use CC. |
| 3509 | LTCC=${LTCC-"$CC"} | LTCC=${LTCC-"$CC"} |
| 3510 | ||
| 3511 | # If no C compiler flags were specified, use CFLAGS. | |
| 3512 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
| 3513 | ||
| 3514 | # Allow CC to be a program name with arguments. | # Allow CC to be a program name with arguments. |
| 3515 | compiler=$CC | compiler=$CC |
| 3516 | ||
| # | Line 3528 ia64-*-hpux*) | Line 3546 ia64-*-hpux*) |
| 3546 | ;; | ;; |
| 3547 | *-*-irix6*) | *-*-irix6*) |
| 3548 | # Find out which ABI we are using. | # Find out which ABI we are using. |
| 3549 | echo '#line 3531 "configure"' > conftest.$ac_ext | echo '#line 3549 "configure"' > conftest.$ac_ext |
| 3550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3551 | (eval $ac_compile) 2>&5 | (eval $ac_compile) 2>&5 |
| 3552 | ac_status=$? | ac_status=$? |
| # | Line 3571 x86_64-*linux*|ppc*-*linux*|powerpc*-*li | Line 3589 x86_64-*linux*|ppc*-*linux*|powerpc*-*li |
| 3589 | ac_status=$? | ac_status=$? |
| 3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3591 | (exit $ac_status); }; then | (exit $ac_status); }; then |
| 3592 | case "`/usr/bin/file conftest.o`" in | case `/usr/bin/file conftest.o` in |
| 3593 | *32-bit*) | *32-bit*) |
| 3594 | case $host in | case $host in |
| 3595 | x86_64-*linux*) | x86_64-*linux*) |
| # | Line 3684 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | Line 3702 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3702 | CFLAGS="$SAVE_CFLAGS" | CFLAGS="$SAVE_CFLAGS" |
| 3703 | fi | fi |
| 3704 | ;; | ;; |
| 3705 | sparc*-*solaris*) | |
| 3706 | # Find out which ABI we are using. | |
| 3707 | echo 'int i;' > conftest.$ac_ext | |
| 3708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
| 3709 | (eval $ac_compile) 2>&5 | |
| 3710 | ac_status=$? | |
| 3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 3712 | (exit $ac_status); }; then | |
| 3713 | case `/usr/bin/file conftest.o` in | |
| 3714 | *64-bit*) | |
| 3715 | case $lt_cv_prog_gnu_ld in | |
| 3716 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
| 3717 | *) LD="${LD-ld} -64" ;; | |
| 3718 | esac | |
| 3719 | ;; | |
| 3720 | esac | |
| 3721 | fi | |
| 3722 | rm -rf conftest* | |
| 3723 | ;; | |
| 3724 | ||
| 3725 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 3726 | if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then |
| 3727 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| # | Line 4555 fi | Line 4593 fi |
| 4593 | ||
| 4594 | done | done |
| 4595 | ||
| 4596 | ac_ext=cc | |
| 4597 | ||
| 4598 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
| 4599 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
| 4600 | (test "X$CXX" != "Xg++"))) ; then | |
| 4601 | ac_ext=cc | |
| 4602 | ac_cpp='$CXXCPP $CPPFLAGS' | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4603 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4604 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| # | Line 4785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS | Line 4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS |
| 4828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4830 | ||
| 4831 | fi | |
| 4832 | ||
| 4833 | ||
| 4834 | ac_ext=f | ac_ext=f |
| 4835 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| # | Line 4878 fi | Line 4923 fi |
| 4923 | ||
| 4924 | ||
| 4925 | # Provide some information about the compiler. | # Provide some information about the compiler. |
| 4926 | echo "$as_me:4881:" \ | echo "$as_me:4926:" \ |
| 4927 | "checking for Fortran 77 compiler version" >&5 | "checking for Fortran 77 compiler version" >&5 |
| 4928 | ac_compiler=`set X $ac_compile; echo $2` | ac_compiler=`set X $ac_compile; echo $2` |
| 4929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| # | Line 5068 else | Line 5113 else |
| 5113 | lt_cv_sys_max_cmd_len=8192; | lt_cv_sys_max_cmd_len=8192; |
| 5114 | ;; | ;; |
| 5115 | ||
| 5116 | netbsd* | freebsd* | openbsd* | darwin* ) | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5117 | # This has been around since 386BSD, at least. Likely further. | # This has been around since 386BSD, at least. Likely further. |
| 5118 | if test -x /sbin/sysctl; then | if test -x /sbin/sysctl; then |
| 5119 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5120 | elif test -x /usr/sbin/sysctl; then | elif test -x /usr/sbin/sysctl; then |
| 5121 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5122 | else | else |
| 5123 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5124 | fi | fi |
| 5125 | # And add a safety zone | # And add a safety zone |
| 5126 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5127 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
| 5128 | ;; | ;; |
| 5129 | ||
| 5130 | *) | interix*) |
| 5131 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
| 5132 | lt_cv_sys_max_cmd_len=196608 | |
| 5133 | ;; | |
| 5134 | ||
| 5135 | osf*) | |
| 5136 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
| 5137 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
| 5138 | # nice to cause kernel panics so lets avoid the loop below. | |
| 5139 | # First set a reasonable default. | |
| 5140 | lt_cv_sys_max_cmd_len=16384 | |
| 5141 | # | |
| 5142 | if test -x /sbin/sysconfig; then | |
| 5143 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
| 5144 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
| 5145 | esac | |
| 5146 | fi | |
| 5147 | ;; | |
| 5148 | sco3.2v5*) | |
| 5149 | lt_cv_sys_max_cmd_len=102400 | |
| 5150 | ;; | |
| 5151 | sysv5* | sco5v6* | sysv4.2uw2*) | |
| 5152 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
| 5153 | if test -n "$kargmax"; then | |
| 5154 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
| 5155 | else | |
| 5156 | lt_cv_sys_max_cmd_len=32768 | |
| 5157 | fi | |
| 5158 | ;; | |
| 5159 | *) | |
| 5160 | # If test is not a shell built-in, we'll probably end up computing a | # If test is not a shell built-in, we'll probably end up computing a |
| 5161 | # maximum length that is only half of the actual maximum length, but | # maximum length that is only half of the actual maximum length, but |
| 5162 | # we can't tell. | # we can't tell. |
| # | Line 5132 symcode='[BCDEGRST]' | Line 5207 symcode='[BCDEGRST]' |
| 5207 | # Regexp to match symbols that can be accessed directly from C. | # Regexp to match symbols that can be accessed directly from C. |
| 5208 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5209 | ||
| # Transform the above into a raw symbol and a C symbol. | ||
| symxfrm='\1 \2\3 \3' | ||
| 5210 | # Transform an extracted symbol line into a proper C declaration | # Transform an extracted symbol line into a proper C declaration |
| 5211 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5212 | ||
| # | Line 5156 hpux*) # Its linker distinguishes data f | Line 5228 hpux*) # Its linker distinguishes data f |
| 5228 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5229 | 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'" | 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'" |
| 5230 | ;; | ;; |
| 5231 | linux*) | |
| 5232 | if test "$host_cpu" = ia64; then | |
| 5233 | symcode='[ABCDGIRSTW]' | |
| 5234 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
| 5235 | 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'" | |
| 5236 | fi | |
| 5237 | ;; | |
| 5238 | irix* | nonstopux*) | irix* | nonstopux*) |
| 5239 | symcode='[BCDEGRST]' | symcode='[BCDEGRST]' |
| 5240 | ;; | ;; |
| 5241 | osf*) | osf*) |
| 5242 | symcode='[BCDEGQRST]' | symcode='[BCDEGQRST]' |
| 5243 | ;; | ;; |
| 5244 | solaris* | sysv5*) | solaris*) |
| 5245 | symcode='[BDRT]' | symcode='[BDRT]' |
| 5246 | ;; | ;; |
| 5247 | sco3.2v5*) | |
| 5248 | symcode='[DT]' | |
| 5249 | ;; | |
| 5250 | sysv4.2uw2*) | |
| 5251 | symcode='[DT]' | |
| 5252 | ;; | |
| 5253 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
| 5254 | symcode='[ABDT]' | |
| 5255 | ;; | |
| 5256 | sysv4) | sysv4) |
| 5257 | symcode='[DFNSTU]' | symcode='[DFNSTU]' |
| 5258 | ;; | ;; |
| # | Line 5187 esac | Line 5275 esac |
| 5275 | # Try without a prefix undercore, then with it. | # Try without a prefix undercore, then with it. |
| 5276 | for ac_symprfx in "" "_"; do | for ac_symprfx in "" "_"; do |
| 5277 | ||
| 5278 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
| 5279 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
| 5280 | ||
| 5281 | # Write the raw and C identifiers. | # Write the raw and C identifiers. |
| 5282 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5283 | ||
| 5284 | # Check to see that the pipe works correctly. | # Check to see that the pipe works correctly. |
| 5285 | pipe_works=no | pipe_works=no |
| # | Line 5350 esac | Line 5441 esac |
| 5441 | ||
| 5442 | # Sed substitution that helps us do robust quoting. It backslashifies | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5443 | # metacharacters that are still active within double-quoted strings. | # metacharacters that are still active within double-quoted strings. |
| 5444 | Xsed='sed -e s/^X//' | Xsed='sed -e 1s/^X//' |
| 5445 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5446 | ||
| 5447 | # Same as above, but do not quote variable references. | # Same as above, but do not quote variable references. |
| # | Line 5370 rm="rm -f" | Line 5461 rm="rm -f" |
| 5461 | default_ofile=libtool | default_ofile=libtool |
| 5462 | can_build_shared=yes | can_build_shared=yes |
| 5463 | ||
| 5464 | # All known linkers require a `.a' archive for static linking (except M$VC, | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 5465 | # which needs '.lib'). | # which needs '.lib'). |
| 5466 | libext=a | libext=a |
| 5467 | ltmain="$ac_aux_dir/ltmain.sh" | ltmain="$ac_aux_dir/ltmain.sh" |
| # | Line 5627 test -z "$AR_FLAGS" && AR_FLAGS=cru | Line 5718 test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5718 | test -z "$AS" && AS=as | test -z "$AS" && AS=as |
| 5719 | test -z "$CC" && CC=cc | test -z "$CC" && CC=cc |
| 5720 | test -z "$LTCC" && LTCC=$CC | test -z "$LTCC" && LTCC=$CC |
| 5721 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
| 5722 | test -z "$DLLTOOL" && DLLTOOL=dlltool | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5723 | test -z "$LD" && LD=ld | test -z "$LD" && LD=ld |
| 5724 | test -z "$LN_S" && LN_S="ln -s" | test -z "$LN_S" && LN_S="ln -s" |
| # | Line 5646 old_postuninstall_cmds= | Line 5738 old_postuninstall_cmds= |
| 5738 | if test -n "$RANLIB"; then | if test -n "$RANLIB"; then |
| 5739 | case $host_os in | case $host_os in |
| 5740 | openbsd*) | openbsd*) |
| 5741 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 5742 | ;; | ;; |
| 5743 | *) | *) |
| 5744 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 5745 | ;; | ;; |
| 5746 | esac | esac |
| 5747 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5748 | fi | fi |
| 5749 | ||
| 5750 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | for cc_temp in $compiler""; do |
| 5751 | case $cc_temp in | |
| 5752 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
| 5753 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
| 5754 | \-*) ;; | |
| 5755 | *) break;; | |
| 5756 | esac | |
| 5757 | done | |
| 5758 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
| 5759 | ||
| 5760 | ||
| 5761 | # Only perform the check for file, if the check method requires it | # Only perform the check for file, if the check method requires it |
| 5762 | case $deplibs_check_method in | case $deplibs_check_method in |
| # | Line 5682 else | Line 5783 else |
| 5783 | if test -n "$file_magic_test_file"; then | if test -n "$file_magic_test_file"; then |
| 5784 | case $deplibs_check_method in | case $deplibs_check_method in |
| 5785 | "file_magic "*) | "file_magic "*) |
| 5786 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 5787 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5788 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5789 | $EGREP "$file_magic_regex" > /dev/null; then | $EGREP "$file_magic_regex" > /dev/null; then |
| # | Line 5744 else | Line 5845 else |
| 5845 | if test -n "$file_magic_test_file"; then | if test -n "$file_magic_test_file"; then |
| 5846 | case $deplibs_check_method in | case $deplibs_check_method in |
| 5847 | "file_magic "*) | "file_magic "*) |
| 5848 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 5849 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5850 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5851 | $EGREP "$file_magic_regex" > /dev/null; then | $EGREP "$file_magic_regex" > /dev/null; then |
| # | Line 5812 else | Line 5913 else |
| 5913 | fi; | fi; |
| 5914 | test -z "$pic_mode" && pic_mode=default | test -z "$pic_mode" && pic_mode=default |
| 5915 | ||
| 5916 | # Check if we have a version mismatch between libtool.m4 and ltmain.sh. | |
| 5917 | # | |
| 5918 | # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. | |
| 5919 | # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually | |
| 5920 | # calls AC_LIBTOOL_CONFIG and creates libtool. | |
| 5921 | # | |
| 5922 | echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 | |
| 5923 | echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 | |
| 5924 | if test "x$ltmain" = "x" ; then | |
| 5925 | echo "$as_me:$LINENO: result: no" >&5 | |
| 5926 | echo "${ECHO_T}no" >&6 | |
| 5927 | { { echo "$as_me:$LINENO: error: | |
| 5928 | ||
| 5929 | *** [Gentoo] sanity check failed! *** | |
| 5930 | *** \$ltmain is not defined, please check the patch for consistency! *** | |
| 5931 | " >&5 | |
| 5932 | echo "$as_me: error: | |
| 5933 | ||
| 5934 | *** [Gentoo] sanity check failed! *** | |
| 5935 | *** \$ltmain is not defined, please check the patch for consistency! *** | |
| 5936 | " >&2;} | |
| 5937 | { (exit 1); exit 1; }; } | |
| 5938 | fi | |
| 5939 | gentoo_lt_version="1.5.22" | |
| 5940 | gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` | |
| 5941 | if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then | |
| 5942 | echo "$as_me:$LINENO: result: no" >&5 | |
| 5943 | echo "${ECHO_T}no" >&6 | |
| 5944 | { { echo "$as_me:$LINENO: error: | |
| 5945 | ||
| 5946 | *** [Gentoo] sanity check failed! *** | |
| 5947 | *** libtool.m4 and ltmain.sh have a version mismatch! *** | |
| 5948 | *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** | |
| 5949 | ||
| 5950 | Please run: | |
| 5951 | ||
| 5952 | libtoolize --copy --force | |
| 5953 | ||
| 5954 | if appropriate, please contact the maintainer of this | |
| 5955 | package (or your distribution) for help. | |
| 5956 | " >&5 | |
| 5957 | echo "$as_me: error: | |
| 5958 | ||
| 5959 | *** [Gentoo] sanity check failed! *** | |
| 5960 | *** libtool.m4 and ltmain.sh have a version mismatch! *** | |
| 5961 | *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** | |
| 5962 | ||
| 5963 | Please run: | |
| 5964 | ||
| 5965 | libtoolize --copy --force | |
| 5966 | ||
| 5967 | if appropriate, please contact the maintainer of this | |
| 5968 | package (or your distribution) for help. | |
| 5969 | " >&2;} | |
| 5970 | { (exit 1); exit 1; }; } | |
| 5971 | else | |
| 5972 | echo "$as_me:$LINENO: result: yes" >&5 | |
| 5973 | echo "${ECHO_T}yes" >&6 | |
| 5974 | fi | |
| 5975 | ||
| 5976 | ||
| 5977 | # Use C for the default configuration in the libtool script | # Use C for the default configuration in the libtool script |
| 5978 | tagname= | tagname= |
| 5979 | lt_save_CC="$CC" | lt_save_CC="$CC" |
| # | Line 5839 lt_simple_link_test_code='int main(){ret | Line 6001 lt_simple_link_test_code='int main(){ret |
| 6001 | # If no C compiler was specified, use CC. | # If no C compiler was specified, use CC. |
| 6002 | LTCC=${LTCC-"$CC"} | LTCC=${LTCC-"$CC"} |
| 6003 | ||
| 6004 | # If no C compiler flags were specified, use CFLAGS. | |
| 6005 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
| 6006 | ||
| 6007 | # Allow CC to be a program name with arguments. | # Allow CC to be a program name with arguments. |
| 6008 | compiler=$CC | compiler=$CC |
| 6009 | ||
| 6010 | ||
| 6011 | # | # save warnings/boilerplate of simple test code |
| 6012 | # Check for any special shared library compilation flags. | ac_outfile=conftest.$ac_objext |
| 6013 | # | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 6014 | lt_prog_cc_shlib= | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6015 | if test "$GCC" = no; then | _lt_compiler_boilerplate=`cat conftest.err` |
| 6016 | case $host_os in | $rm conftest* |
| 6017 | sco3.2v5*) | |
| 6018 | lt_prog_cc_shlib='-belf' | ac_outfile=conftest.$ac_objext |
| 6019 | ;; | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 6020 | esac | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6021 | fi | _lt_linker_boilerplate=`cat conftest.err` |
| 6022 | if test -n "$lt_prog_cc_shlib"; then | $rm conftest* |
| { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | ||
| echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | ||
| if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | ||
| else | ||
| { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | ||
| echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | ||
| lt_cv_prog_cc_can_build_shared=no | ||
| fi | ||
| fi | ||
| # | ||
| # Check to make sure the static flag actually works. | ||
| # | ||
| echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | ||
| echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | ||
| if test "${lt_prog_compiler_static_works+set}" = set; then | ||
| echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| else | ||
| lt_prog_compiler_static_works=no | ||
| save_LDFLAGS="$LDFLAGS" | ||
| LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | ||
| printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
| if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
| # The compiler can only warn and ignore the option if not recognized | ||
| # So say no if there are warnings | ||
| if test -s conftest.err; then | ||
| # Append any errors to the config.log. | ||
| cat conftest.err 1>&5 | ||
| else | ||
| lt_prog_compiler_static_works=yes | ||
| fi | ||
| fi | ||
| $rm conftest* | ||
| LDFLAGS="$save_LDFLAGS" | ||
| fi | ||
| echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
| echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | ||
| if test x"$lt_prog_compiler_static_works" = xyes; then | ||
| : | ||
| else | ||
| lt_prog_compiler_static= | ||
| fi | ||
| 6023 | ||
| 6024 | ||
| ## CAVEAT EMPTOR: | ||
| ## There is no encapsulation within the following macros, do not change | ||
| ## the running order or otherwise move them around unless you know exactly | ||
| ## what you are doing... | ||
| 6025 | ||
| 6026 | lt_prog_compiler_no_builtin_flag= | lt_prog_compiler_no_builtin_flag= |
| 6027 | ||
| # | Line 5929 else | Line 6044 else |
| 6044 | # with a dollar sign (not a hyphen), so the echo should work correctly. | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6045 | # The option is referenced via a variable to avoid confusing sed. | # The option is referenced via a variable to avoid confusing sed. |
| 6046 | lt_compile=`echo "$ac_compile" | $SED \ | lt_compile=`echo "$ac_compile" | $SED \ |
| 6047 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6048 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6049 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
| 6050 | (eval echo "\"\$as_me:5935: $lt_compile\"" >&5) | (eval echo "\"\$as_me:6050: $lt_compile\"" >&5) |
| 6051 | (eval "$lt_compile" 2>conftest.err) | (eval "$lt_compile" 2>conftest.err) |
| 6052 | ac_status=$? | ac_status=$? |
| 6053 | cat conftest.err >&5 | cat conftest.err >&5 |
| 6054 | echo "$as_me:5939: \$? = $ac_status" >&5 | echo "$as_me:6054: \$? = $ac_status" >&5 |
| 6055 | if (exit $ac_status) && test -s "$ac_outfile"; then | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6056 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
| 6057 | # So say no if there are warnings | # So say no if there are warnings other than the usual output. |
| 6058 | if test ! -s conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6059 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 6060 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
| 6061 | lt_cv_prog_compiler_rtti_exceptions=yes | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6062 | fi | fi |
| 6063 | fi | fi |
| # | Line 6001 echo $ECHO_N "checking for $compiler opt | Line 6118 echo $ECHO_N "checking for $compiler opt |
| 6118 | lt_prog_compiler_pic='-fno-common' | lt_prog_compiler_pic='-fno-common' |
| 6119 | ;; | ;; |
| 6120 | ||
| 6121 | interix3*) | |
| 6122 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
| 6123 | # Instead, we relocate shared libraries at runtime. | |
| 6124 | ;; | |
| 6125 | ||
| 6126 | msdosdjgpp*) | msdosdjgpp*) |
| 6127 | # Just because we use GCC doesn't mean we suddenly get shared libraries | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6128 | # on systems that don't support them. | # on systems that don't support them. |
| # | Line 6017 echo $ECHO_N "checking for $compiler opt | Line 6139 echo $ECHO_N "checking for $compiler opt |
| 6139 | hpux*) | hpux*) |
| 6140 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6141 | # not for PA HP-UX. | # not for PA HP-UX. |
| 6142 | case "$host_cpu" in | case $host_cpu in |
| 6143 | hppa*64*|ia64*) | hppa*64*|ia64*) |
| 6144 | # +Z the default | # +Z the default |
| 6145 | ;; | ;; |
| # | Line 6046 echo $ECHO_N "checking for $compiler opt | Line 6168 echo $ECHO_N "checking for $compiler opt |
| 6168 | darwin*) | darwin*) |
| 6169 | # PIC is the default on this platform | # PIC is the default on this platform |
| 6170 | # Common symbols not allowed in MH_DYLIB files | # Common symbols not allowed in MH_DYLIB files |
| 6171 | case "$cc_basename" in | case $cc_basename in |
| 6172 | xlc*) | xlc*) |
| 6173 | lt_prog_compiler_pic='-qnocommon' | lt_prog_compiler_pic='-qnocommon' |
| 6174 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
| # | Line 6064 echo $ECHO_N "checking for $compiler opt | Line 6186 echo $ECHO_N "checking for $compiler opt |
| 6186 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
| 6187 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6188 | # not for PA HP-UX. | # not for PA HP-UX. |
| 6189 | case "$host_cpu" in | case $host_cpu in |
| 6190 | hppa*64*|ia64*) | hppa*64*|ia64*) |
| 6191 | # +Z the default | # +Z the default |
| 6192 | ;; | ;; |
| # | Line 6088 echo $ECHO_N "checking for $compiler opt | Line 6210 echo $ECHO_N "checking for $compiler opt |
| 6210 | ;; | ;; |
| 6211 | ||
| 6212 | linux*) | linux*) |
| 6213 | case $CC in | case $cc_basename in |
| 6214 | icc* | ecc*) | icc* | ecc*) |
| 6215 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
| 6216 | lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' |
| 6217 | lt_prog_compiler_static='-static' | lt_prog_compiler_static='-static' |
| 6218 | ;; | ;; |
| 6219 | pgcc* | pgf77* | pgf90* | pgf95*) | |
| 6220 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
| 6221 | # which looks to be a dead project) | |
| 6222 | lt_prog_compiler_wl='-Wl,' | |
| 6223 | lt_prog_compiler_pic='-fpic' | |
| 6224 | lt_prog_compiler_static='-Bstatic' | |
| 6225 | ;; | |
| 6226 | ccc*) | ccc*) |
| 6227 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
| 6228 | # All Alpha code is PIC. | # All Alpha code is PIC. |
| # | Line 6108 echo $ECHO_N "checking for $compiler opt | Line 6237 echo $ECHO_N "checking for $compiler opt |
| 6237 | lt_prog_compiler_static='-non_shared' | lt_prog_compiler_static='-non_shared' |
| 6238 | ;; | ;; |
| 6239 | ||
| sco3.2v5*) | ||
| lt_prog_compiler_pic='-Kpic' | ||
| lt_prog_compiler_static='-dn' | ||
| ;; | ||
| 6240 | solaris*) | solaris*) |
| lt_prog_compiler_wl='-Wl,' | ||
| 6241 | lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' |
| 6242 | lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' |
| 6243 | case $cc_basename in | |
| 6244 | f77* | f90* | f95*) | |
| 6245 | lt_prog_compiler_wl='-Qoption ld ';; | |
| 6246 | *) | |
| 6247 | lt_prog_compiler_wl='-Wl,';; | |
| 6248 | esac | |
| 6249 | ;; | ;; |
| 6250 | ||
| 6251 | sunos4*) | sunos4*) |
| # | Line 6125 echo $ECHO_N "checking for $compiler opt | Line 6254 echo $ECHO_N "checking for $compiler opt |
| 6254 | lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' |
| 6255 | ;; | ;; |
| 6256 | ||
| 6257 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 6258 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
| 6259 | lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' |
| 6260 | lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' |
| # | Line 6138 echo $ECHO_N "checking for $compiler opt | Line 6267 echo $ECHO_N "checking for $compiler opt |
| 6267 | fi | fi |
| 6268 | ;; | ;; |
| 6269 | ||
| 6270 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
| 6271 | lt_prog_compiler_wl='-Wl,' | |
| 6272 | lt_prog_compiler_pic='-KPIC' | |
| 6273 | lt_prog_compiler_static='-Bstatic' | |
| 6274 | ;; | |
| 6275 | ||
| 6276 | unicos*) | |
| 6277 | lt_prog_compiler_wl='-Wl,' | |
| 6278 | lt_prog_compiler_can_build_shared=no | |
| 6279 | ;; | |
| 6280 | ||
| 6281 | uts4*) | uts4*) |
| 6282 | lt_prog_compiler_pic='-pic' | lt_prog_compiler_pic='-pic' |
| 6283 | lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' |
| # | Line 6172 else | Line 6312 else |
| 6312 | # with a dollar sign (not a hyphen), so the echo should work correctly. | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6313 | # The option is referenced via a variable to avoid confusing sed. | # The option is referenced via a variable to avoid confusing sed. |
| 6314 | lt_compile=`echo "$ac_compile" | $SED \ | lt_compile=`echo "$ac_compile" | $SED \ |
| 6315 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6316 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6317 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
| 6318 | (eval echo "\"\$as_me:6178: $lt_compile\"" >&5) | (eval echo "\"\$as_me:6318: $lt_compile\"" >&5) |
| 6319 | (eval "$lt_compile" 2>conftest.err) | (eval "$lt_compile" 2>conftest.err) |
| 6320 | ac_status=$? | ac_status=$? |
| 6321 | cat conftest.err >&5 | cat conftest.err >&5 |
| 6322 | echo "$as_me:6182: \$? = $ac_status" >&5 | echo "$as_me:6322: \$? = $ac_status" >&5 |
| 6323 | if (exit $ac_status) && test -s "$ac_outfile"; then | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6324 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
| 6325 | # So say no if there are warnings | # So say no if there are warnings other than the usual output. |
| 6326 | if test ! -s conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6327 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 6328 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
| 6329 | lt_prog_compiler_pic_works=yes | lt_prog_compiler_pic_works=yes |
| 6330 | fi | fi |
| 6331 | fi | fi |
| # | Line 6204 else | Line 6346 else |
| 6346 | fi | fi |
| 6347 | ||
| 6348 | fi | fi |
| 6349 | case "$host_os" in | case $host_os in |
| 6350 | # For platforms which do not support PIC, -DPIC is meaningless: | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6351 | *djgpp*) | *djgpp*) |
| 6352 | lt_prog_compiler_pic= | lt_prog_compiler_pic= |
| # | Line 6214 case "$host_os" in | Line 6356 case "$host_os" in |
| 6356 | ;; | ;; |
| 6357 | esac | esac |
| 6358 | ||
| 6359 | # | |
| 6360 | # Check to make sure the static flag actually works. | |
| 6361 | # | |
| 6362 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
| 6363 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
| 6364 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
| 6365 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
| 6366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6367 | else | |
| 6368 | lt_prog_compiler_static_works=no | |
| 6369 | save_LDFLAGS="$LDFLAGS" | |
| 6370 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
| 6371 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
| 6372 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
| 6373 | # The linker can only warn and ignore the option if not recognized | |
| 6374 | # So say no if there are warnings | |
| 6375 | if test -s conftest.err; then | |
| 6376 | # Append any errors to the config.log. | |
| 6377 | cat conftest.err 1>&5 | |
| 6378 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
| 6379 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 6380 | if diff conftest.exp conftest.er2 >/dev/null; then | |
| 6381 | lt_prog_compiler_static_works=yes | |
| 6382 | fi | |
| 6383 | else | |
| 6384 | lt_prog_compiler_static_works=yes | |
| 6385 | fi | |
| 6386 | fi | |
| 6387 | $rm conftest* | |
| 6388 | LDFLAGS="$save_LDFLAGS" | |
| 6389 | ||
| 6390 | fi | |
| 6391 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
| 6392 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
| 6393 | ||
| 6394 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
| 6395 | : | |
| 6396 | else | |
| 6397 | lt_prog_compiler_static= | |
| 6398 | fi | |
| 6399 | ||
| 6400 | ||
| 6401 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6402 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 6403 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| # | Line 6232 else | Line 6416 else |
| 6416 | # Note that $ac_compile itself does not contain backslashes and begins | # Note that $ac_compile itself does not contain backslashes and begins |
| 6417 | # with a dollar sign (not a hyphen), so the echo should work correctly. | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6418 | lt_compile=`echo "$ac_compile" | $SED \ | lt_compile=`echo "$ac_compile" | $SED \ |
| 6419 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6420 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6421 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
| 6422 | (eval echo "\"\$as_me:6238: $lt_compile\"" >&5) | (eval echo "\"\$as_me:6422: $lt_compile\"" >&5) |
| 6423 | (eval "$lt_compile" 2>out/conftest.err) | (eval "$lt_compile" 2>out/conftest.err) |
| 6424 | ac_status=$? | ac_status=$? |
| 6425 | cat out/conftest.err >&5 | cat out/conftest.err >&5 |
| 6426 | echo "$as_me:6242: \$? = $ac_status" >&5 | echo "$as_me:6426: \$? = $ac_status" >&5 |
| 6427 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6428 | then | then |
| 6429 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
| 6430 | # So say no if there are warnings | # So say no if there are warnings |
| 6431 | if test ! -s out/conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 6432 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
| 6433 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
| 6434 | lt_cv_prog_compiler_c_o=yes | lt_cv_prog_compiler_c_o=yes |
| 6435 | fi | fi |
| 6436 | fi | fi |
| 6437 | chmod u+w . | chmod u+w . 2>&5 |
| 6438 | $rm conftest* | $rm conftest* |
| 6439 | # SGI C++ compiler will create directory out/ii_files/ for | # SGI C++ compiler will create directory out/ii_files/ for |
| 6440 | # template instantiation | # template instantiation |
| # | Line 6324 echo $ECHO_N "checking whether the $comp | Line 6510 echo $ECHO_N "checking whether the $comp |
| 6510 | # rely on this symbol name, it's probably fine to never include it in | # rely on this symbol name, it's probably fine to never include it in |
| 6511 | # preloaded symbol tables. | # preloaded symbol tables. |
| 6512 | extract_expsyms_cmds= | extract_expsyms_cmds= |
| 6513 | # Just being paranoid about ensuring that cc_basename is set. | |
| 6514 | for cc_temp in $compiler""; do | |
| 6515 | case $cc_temp in | |
| 6516 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
| 6517 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
| 6518 | \-*) ;; | |
| 6519 | *) break;; | |
| 6520 | esac | |
| 6521 | done | |
| 6522 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
| 6523 | ||
| 6524 | case $host_os in | case $host_os in |
| 6525 | cygwin* | mingw* | pw32*) | cygwin* | mingw* | pw32*) |
| # | Line 6334 echo $ECHO_N "checking whether the $comp | Line 6530 echo $ECHO_N "checking whether the $comp |
| 6530 | with_gnu_ld=no | with_gnu_ld=no |
| 6531 | fi | fi |
| 6532 | ;; | ;; |
| 6533 | interix*) | |
| 6534 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
| 6535 | with_gnu_ld=yes | |
| 6536 | ;; | |
| 6537 | openbsd*) | openbsd*) |
| 6538 | with_gnu_ld=no | with_gnu_ld=no |
| 6539 | ;; | ;; |
| # | Line 6344 echo $ECHO_N "checking whether the $comp | Line 6544 echo $ECHO_N "checking whether the $comp |
| 6544 | # If archive_cmds runs LD, not CC, wlarc should be empty | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6545 | wlarc='${wl}' | wlarc='${wl}' |
| 6546 | ||
| 6547 | # Set some defaults for GNU ld with shared library support. These | |
| 6548 | # are reset later if shared libraries are not supported. Putting them | |
| 6549 | # here allows them to be overridden if necessary. | |
| 6550 | runpath_var=LD_RUN_PATH | |
| 6551 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
| 6552 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
| 6553 | # ancient GNU ld didn't support --whole-archive et. al. | |
| 6554 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
| 6555 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
| 6556 | else | |
| 6557 | whole_archive_flag_spec= | |
| 6558 | fi | |
| 6559 | supports_anon_versioning=no | |
| 6560 | case `$LD -v 2>/dev/null` in | |
| 6561 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
| 6562 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
| 6563 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
| 6564 | *\ 2.11.*) ;; # other 2.11 versions | |
| 6565 | *) supports_anon_versioning=yes ;; | |
| 6566 | esac | |
| 6567 | ||
| 6568 | # See if GNU ld supports shared libraries. | # See if GNU ld supports shared libraries. |
| 6569 | case $host_os in | case $host_os in |
| 6570 | aix3* | aix4* | aix5*) | aix3* | aix4* | aix5*) |
| # | Line 6394 EOF | Line 6615 EOF |
| 6615 | allow_undefined_flag=unsupported | allow_undefined_flag=unsupported |
| 6616 | always_export_symbols=no | always_export_symbols=no |
| 6617 | enable_shared_with_static_runtimes=yes | enable_shared_with_static_runtimes=yes |
| 6618 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6619 | ||
| 6620 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6621 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 6622 | # If the export-symbols file already is a .def file (1st line | # If the export-symbols file already is a .def file (1st line |
| 6623 | # is EXPORTS), use it as is; otherwise, prepend... | # is EXPORTS), use it as is; otherwise, prepend... |
| 6624 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| # | Line 6406 EOF | Line 6627 EOF |
| 6627 | echo EXPORTS > $output_objdir/$soname.def; | echo EXPORTS > $output_objdir/$soname.def; |
| 6628 | cat $export_symbols >> $output_objdir/$soname.def; | cat $export_symbols >> $output_objdir/$soname.def; |
| 6629 | fi~ | fi~ |
| 6630 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 6631 | else | |
| 6632 | ld_shlibs=no | |
| 6633 | fi | |
| 6634 | ;; | |
| 6635 | ||
| 6636 | interix3*) | |
| 6637 | hardcode_direct=no | |
| 6638 | hardcode_shlibpath_var=no | |
| 6639 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
| 6640 | export_dynamic_flag_spec='${wl}-E' | |
| 6641 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
| 6642 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
| 6643 | # default) and relocated if they conflict, which is a slow very memory | |
| 6644 | # consuming and fragmenting process. To avoid this, we pick a random, | |
| 6645 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
| 6646 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
| 6647 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
| 6648 | 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' | |
| 6649 | ;; | |
| 6650 | ||
| 6651 | linux*) | |
| 6652 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
| 6653 | tmp_addflag= | |
| 6654 | case $cc_basename,$host_cpu in | |
| 6655 | pgcc*) # Portland Group C compiler | |
| 6656 | 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' | |
| 6657 | tmp_addflag=' $pic_flag' | |
| 6658 | ;; | |
| 6659 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
| 6660 | 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' | |
| 6661 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
| 6662 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
| 6663 | tmp_addflag=' -i_dynamic' ;; | |
| 6664 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
| 6665 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
| 6666 | ifc* | ifort*) # Intel Fortran compiler | |
| 6667 | tmp_addflag=' -nofor_main' ;; | |
| 6668 | esac | |
| 6669 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
| 6670 | ||
| 6671 | if test $supports_anon_versioning = yes; then | |
| 6672 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
| 6673 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 6674 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 6675 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
| 6676 | fi | |
| 6677 | else | else |
| 6678 | ld_shlibs=no | ld_shlibs=no |
| 6679 | fi | fi |
| # | Line 6422 EOF | Line 6689 EOF |
| 6689 | fi | fi |
| 6690 | ;; | ;; |
| 6691 | ||
| 6692 | solaris* | sysv5*) | solaris*) |
| 6693 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6694 | ld_shlibs=no | ld_shlibs=no |
| 6695 | cat <<EOF 1>&2 | cat <<EOF 1>&2 |
| # | Line 6443 EOF | Line 6710 EOF |
| 6710 | fi | fi |
| 6711 | ;; | ;; |
| 6712 | ||
| 6713 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
| 6714 | case `$LD -v 2>&1` in | |
| 6715 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
| 6716 | ld_shlibs=no | |
| 6717 | cat <<_LT_EOF 1>&2 | |
| 6718 | ||
| 6719 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
| 6720 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
| 6721 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
| 6722 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
| 6723 | *** your PATH or compiler configuration so that the native linker is | |
| 6724 | *** used, and then restart. | |
| 6725 | ||
| 6726 | _LT_EOF | |
| 6727 | ;; | |
| 6728 | *) | |
| 6729 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
| 6730 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
| 6731 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
| 6732 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
| 6733 | else | |
| 6734 | ld_shlibs=no | |
| 6735 | fi | |
| 6736 | ;; | |
| 6737 | esac | |
| 6738 | ;; | |
| 6739 | ||
| 6740 | sunos4*) | sunos4*) |
| 6741 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6742 | wlarc= | wlarc= |
| # | Line 6450 EOF | Line 6744 EOF |
| 6744 | hardcode_shlibpath_var=no | hardcode_shlibpath_var=no |
| 6745 | ;; | ;; |
| 6746 | ||
| linux*) | ||
| if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
| tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
| archive_cmds="$tmp_archive_cmds" | ||
| supports_anon_versioning=no | ||
| case `$LD -v 2>/dev/null` in | ||
| *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
| *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
| *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
| *\ 2.11.*) ;; # other 2.11 versions | ||
| *) supports_anon_versioning=yes ;; | ||
| esac | ||
| if test $supports_anon_versioning = yes; then | ||
| archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
| cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
| $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
| $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
| else | ||
| archive_expsym_cmds="$tmp_archive_cmds" | ||
| fi | ||
| else | ||
| ld_shlibs=no | ||
| fi | ||
| ;; | ||
| 6747 | *) | *) |
| 6748 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6749 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| # | Line 6485 $echo "local: *; };" >> $output_objdir/$ | Line 6754 $echo "local: *; };" >> $output_objdir/$ |
| 6754 | ;; | ;; |
| 6755 | esac | esac |
| 6756 | ||
| 6757 | if test "$ld_shlibs" = yes; then | if test "$ld_shlibs" = no; then |
| 6758 | runpath_var=LD_RUN_PATH | runpath_var= |
| 6759 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | hardcode_libdir_flag_spec= |
| 6760 | export_dynamic_flag_spec='${wl}--export-dynamic' | export_dynamic_flag_spec= |
| 6761 | # ancient GNU ld didn't support --whole-archive et. al. | whole_archive_flag_spec= |
| if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
| whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
| else | ||
| whole_archive_flag_spec= | ||
| fi | ||
| 6762 | fi | fi |
| 6763 | else | else |
| 6764 | # PORTME fill in a description of your system's linker (not GNU ld) | # PORTME fill in a description of your system's linker (not GNU ld) |
| # | Line 6506 $echo "local: *; };" >> $output_objdir/$ | Line 6770 $echo "local: *; };" >> $output_objdir/$ |
| 6770 | # Note: this linker hardcodes the directories in LIBPATH if there | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6771 | # are no directories specified by -L. | # are no directories specified by -L. |
| 6772 | hardcode_minus_L=yes | hardcode_minus_L=yes |
| 6773 | if test "$GCC" = yes && test -z "$link_static_flag"; then | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 6774 | # Neither direct hardcoding nor static linking is supported with a | # Neither direct hardcoding nor static linking is supported with a |
| 6775 | # broken collect2. | # broken collect2. |
| 6776 | hardcode_direct=unsupported | hardcode_direct=unsupported |
| # | Line 6540 $echo "local: *; };" >> $output_objdir/$ | Line 6804 $echo "local: *; };" >> $output_objdir/$ |
| 6804 | break | break |
| 6805 | fi | fi |
| 6806 | done | done |
| 6807 | ;; | |
| 6808 | esac | esac |
| 6809 | ||
| 6810 | exp_sym_flag='-bexport' | exp_sym_flag='-bexport' |
| # | Line 6558 $echo "local: *; };" >> $output_objdir/$ | Line 6823 $echo "local: *; };" >> $output_objdir/$ |
| 6823 | link_all_deplibs=yes | link_all_deplibs=yes |
| 6824 | ||
| 6825 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
| 6826 | case $host_os in aix4.012|aix4.012.*) | case $host_os in aix4.[012]|aix4.[012].*) |
| 6827 | # We only want to do this on AIX 4.2 and lower, the check | # We only want to do this on AIX 4.2 and lower, the check |
| 6828 | # below for broken collect2 doesn't work under 4.3+ | # below for broken collect2 doesn't work under 4.3+ |
| 6829 | collect2name=`${CC} -print-prog-name=collect2` | collect2name=`${CC} -print-prog-name=collect2` |
| # | Line 6577 $echo "local: *; };" >> $output_objdir/$ | Line 6842 $echo "local: *; };" >> $output_objdir/$ |
| 6842 | hardcode_libdir_flag_spec='-L$libdir' | hardcode_libdir_flag_spec='-L$libdir' |
| 6843 | hardcode_libdir_separator= | hardcode_libdir_separator= |
| 6844 | fi | fi |
| 6845 | ;; | |
| 6846 | esac | esac |
| 6847 | shared_flag='-shared' | shared_flag='-shared' |
| 6848 | if test "$aix_use_runtimelinking" = yes; then | |
| 6849 | shared_flag="$shared_flag "'${wl}-G' | |
| 6850 | fi | |
| 6851 | else | else |
| 6852 | # not using gcc | # not using gcc |
| 6853 | if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then |
| # | Line 6586 $echo "local: *; };" >> $output_objdir/$ | Line 6855 $echo "local: *; };" >> $output_objdir/$ |
| 6855 | # chokes on -Wl,-G. The following line is correct: | # chokes on -Wl,-G. The following line is correct: |
| 6856 | shared_flag='-G' | shared_flag='-G' |
| 6857 | else | else |
| 6858 | if test "$aix_use_runtimelinking" = yes; then | if test "$aix_use_runtimelinking" = yes; then |
| 6859 | shared_flag='${wl}-G' | shared_flag='${wl}-G' |
| 6860 | else | else |
| 6861 | shared_flag='${wl}-bM:SRE' | shared_flag='${wl}-bM:SRE' |
| 6862 | fi | fi |
| 6863 | fi | fi |
| 6864 | fi | fi |
| 6865 | ||
| # | Line 6655 rm -f conftest.err conftest.$ac_objext \ | Line 6924 rm -f conftest.err conftest.$ac_objext \ |
| 6924 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 6925 | ||
| 6926 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6927 | 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" | 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" |
| 6928 | else | else |
| 6929 | if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then |
| 6930 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6931 | allow_undefined_flag="-z nodefs" | allow_undefined_flag="-z nodefs" |
| 6932 | 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" | 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" |
| 6933 | else | else |
| 6934 | # Determine the default libpath from the value encoded in an empty executable. | # Determine the default libpath from the value encoded in an empty executable. |
| 6935 | cat >conftest.$ac_ext <<_ACEOF | cat >conftest.$ac_ext <<_ACEOF |
| # | Line 6720 if test -z "$aix_libpath"; then aix_libp | Line 6989 if test -z "$aix_libpath"; then aix_libp |
| 6989 | # -berok will link without error, but may produce a broken library. | # -berok will link without error, but may produce a broken library. |
| 6990 | no_undefined_flag=' ${wl}-bernotok' | no_undefined_flag=' ${wl}-bernotok' |
| 6991 | allow_undefined_flag=' ${wl}-berok' | allow_undefined_flag=' ${wl}-berok' |
| # -bexpall does not export symbols beginning with underscore (_) | ||
| always_export_symbols=yes | ||
| 6992 | # Exported symbols can be pulled into shared objects from archives | # Exported symbols can be pulled into shared objects from archives |
| 6993 | whole_archive_flag_spec=' ' | whole_archive_flag_spec='$convenience' |
| 6994 | archive_cmds_need_lc=yes | archive_cmds_need_lc=yes |
| 6995 | # This is similar to how AIX traditionally builds it's shared libraries. | # This is similar to how AIX traditionally builds its shared libraries. |
| 6996 | 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' | 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' |
| 6997 | fi | fi |
| 6998 | fi | fi |
| 6999 | ;; | ;; |
| # | Line 6765 if test -z "$aix_libpath"; then aix_libp | Line 7032 if test -z "$aix_libpath"; then aix_libp |
| 7032 | ;; | ;; |
| 7033 | ||
| 7034 | darwin* | rhapsody*) | darwin* | rhapsody*) |
| 7035 | case "$host_os" in | case $host_os in |
| 7036 | rhapsody* | darwin1.[012]) | rhapsody* | darwin1.[012]) |
| 7037 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 7038 | ;; | ;; |
| # | Line 6794 if test -z "$aix_libpath"; then aix_libp | Line 7061 if test -z "$aix_libpath"; then aix_libp |
| 7061 | output_verbose_link_cmd='echo' | output_verbose_link_cmd='echo' |
| 7062 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7063 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7064 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 7065 | 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}' | 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}' |
| 7066 | 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}' | 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}' |
| 7067 | else | else |
| 7068 | case "$cc_basename" in | case $cc_basename in |
| 7069 | xlc*) | xlc*) |
| 7070 | output_verbose_link_cmd='echo' | output_verbose_link_cmd='echo' |
| 7071 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 7072 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7073 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 7074 | 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}' | 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}' |
| 7075 | 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}' | 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}' |
| 7076 | ;; | ;; |
| # | Line 6844 if test -z "$aix_libpath"; then aix_libp | Line 7111 if test -z "$aix_libpath"; then aix_libp |
| 7111 | ;; | ;; |
| 7112 | ||
| 7113 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 7114 | freebsd* | kfreebsd*-gnu) | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 7115 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7116 | hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' |
| 7117 | hardcode_direct=yes | hardcode_direct=yes |
| # | Line 6867 if test -z "$aix_libpath"; then aix_libp | Line 7134 if test -z "$aix_libpath"; then aix_libp |
| 7134 | export_dynamic_flag_spec='${wl}-E' | export_dynamic_flag_spec='${wl}-E' |
| 7135 | ;; | ;; |
| 7136 | ||
| 7137 | hpux10* | hpux11*) | hpux10*) |
| 7138 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7139 | case "$host_cpu" in | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7140 | hppa*64*|ia64*) | else |
| 7141 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
| 7142 | fi | |
| 7143 | if test "$with_gnu_ld" = no; then | |
| 7144 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
| 7145 | hardcode_libdir_separator=: | |
| 7146 | ||
| 7147 | hardcode_direct=yes | |
| 7148 | export_dynamic_flag_spec='${wl}-E' | |
| 7149 | ||
| 7150 | # hardcode_minus_L: Not really in the search PATH, | |
| 7151 | # but as the default location of the library. | |
| 7152 | hardcode_minus_L=yes | |
| 7153 | fi | |
| 7154 | ;; | |
| 7155 | ||
| 7156 | hpux11*) | |
| 7157 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
| 7158 | case $host_cpu in | |
| 7159 | hppa*64*) | |
| 7160 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7161 | ;; | ;; |
| 7162 | ia64*) | |
| 7163 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
| 7164 | ;; | |
| 7165 | *) | *) |
| 7166 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7167 | ;; | ;; |
| 7168 | esac | esac |
| 7169 | else | else |
| 7170 | case "$host_cpu" in | case $host_cpu in |
| 7171 | hppa*64*|ia64*) | hppa*64*) |
| 7172 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7173 | ;; | |
| 7174 | ia64*) | |
| 7175 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
| 7176 | ;; | ;; |
| 7177 | *) | *) |
| 7178 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7179 | ;; | ;; |
| 7180 | esac | esac |
| 7181 | fi | fi |
| 7182 | if test "$with_gnu_ld" = no; then | if test "$with_gnu_ld" = no; then |
| 7183 | case "$host_cpu" in | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7184 | hppa*64*) | hardcode_libdir_separator=: |
| 7185 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
| 7186 | case $host_cpu in | |
| 7187 | hppa*64*|ia64*) | |
| 7188 | hardcode_libdir_flag_spec_ld='+b $libdir' | hardcode_libdir_flag_spec_ld='+b $libdir' |
| hardcode_libdir_separator=: | ||
| hardcode_direct=no | ||
| hardcode_shlibpath_var=no | ||
| ;; | ||
| ia64*) | ||
| hardcode_libdir_flag_spec='-L$libdir' | ||
| 7189 | hardcode_direct=no | hardcode_direct=no |
| 7190 | hardcode_shlibpath_var=no | hardcode_shlibpath_var=no |
| # hardcode_minus_L: Not really in the search PATH, | ||
| # but as the default location of the library. | ||
| hardcode_minus_L=yes | ||
| 7191 | ;; | ;; |
| 7192 | *) | *) |
| hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
| hardcode_libdir_separator=: | ||
| 7193 | hardcode_direct=yes | hardcode_direct=yes |
| 7194 | export_dynamic_flag_spec='${wl}-E' | export_dynamic_flag_spec='${wl}-E' |
| 7195 | ||
| # | Line 7001 if test -z "$aix_libpath"; then aix_libp | Line 7283 if test -z "$aix_libpath"; then aix_libp |
| 7283 | allow_undefined_flag=' -expect_unresolved \*' | allow_undefined_flag=' -expect_unresolved \*' |
| 7284 | 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' | 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' |
| 7285 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 7286 | $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' | $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' |
| 7287 | ||
| 7288 | # Both c and cxx compiler support -rpath directly | # Both c and cxx compiler support -rpath directly |
| 7289 | hardcode_libdir_flag_spec='-rpath $libdir' | hardcode_libdir_flag_spec='-rpath $libdir' |
| # | Line 7009 if test -z "$aix_libpath"; then aix_libp | Line 7291 if test -z "$aix_libpath"; then aix_libp |
| 7291 | hardcode_libdir_separator=: | hardcode_libdir_separator=: |
| 7292 | ;; | ;; |
| 7293 | ||
| sco3.2v5*) | ||
| archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
| hardcode_shlibpath_var=no | ||
| export_dynamic_flag_spec='${wl}-Bexport' | ||
| runpath_var=LD_RUN_PATH | ||
| hardcode_runpath_var=yes | ||
| ;; | ||
| 7294 | solaris*) | solaris*) |
| 7295 | no_undefined_flag=' -z text' | no_undefined_flag=' -z text' |
| 7296 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
| 7297 | wlarc='${wl}' | |
| 7298 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7299 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7300 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 7301 | else | else |
| 7302 | wlarc='' | |
| 7303 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7304 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7305 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| # | Line 7032 if test -z "$aix_libpath"; then aix_libp | Line 7308 if test -z "$aix_libpath"; then aix_libp |
| 7308 | hardcode_shlibpath_var=no | hardcode_shlibpath_var=no |
| 7309 | case $host_os in | case $host_os in |
| 7310 | solaris2.[0-5] | solaris2.[0-5].*) ;; | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 7311 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | *) |
| 7312 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | # The compiler driver will combine linker options so we |
| 7313 | # cannot just pass the convience library names through | |
| 7314 | # without $wl, iff we do not link with $LD. | |
| 7315 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
| 7316 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
| 7317 | case $wlarc in | |
| 7318 | '') | |
| 7319 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
| 7320 | *) | |
| 7321 | 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' ;; | |
| 7322 | esac ;; | |
| 7323 | esac | esac |
| 7324 | link_all_deplibs=yes | link_all_deplibs=yes |
| 7325 | ;; | ;; |
| # | Line 7090 if test -z "$aix_libpath"; then aix_libp | Line 7376 if test -z "$aix_libpath"; then aix_libp |
| 7376 | fi | fi |
| 7377 | ;; | ;; |
| 7378 | ||
| 7379 | sysv4.2uw2*) | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 7380 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | no_undefined_flag='${wl}-z,text' |
| 7381 | hardcode_direct=yes | archive_cmds_need_lc=no |
| hardcode_minus_L=no | ||
| 7382 | hardcode_shlibpath_var=no | hardcode_shlibpath_var=no |
| 7383 | hardcode_runpath_var=yes | runpath_var='LD_RUN_PATH' |
| runpath_var=LD_RUN_PATH | ||
| ;; | ||
| 7384 | ||
| sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
| no_undefined_flag='${wl}-z ${wl}text' | ||
| 7385 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
| 7386 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7387 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7388 | else | else |
| 7389 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7390 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7391 | fi | fi |
| runpath_var='LD_RUN_PATH' | ||
| hardcode_shlibpath_var=no | ||
| 7392 | ;; | ;; |
| 7393 | ||
| 7394 | sysv5*) | sysv5* | sco3.2v5* | sco5v6*) |
| 7395 | no_undefined_flag=' -z text' | # Note: We can NOT use -z defs as we might desire, because we do not |
| 7396 | # $CC -shared without GNU ld will not create a library from C++ | # link with -lc, and that would cause any symbols used from libc to |
| 7397 | # object files and a static libstdc++, better avoid it by now | # always be unresolved, which means just about no library would |
| 7398 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | # ever link correctly. If we're not using GNU ld we use -z text |
| 7399 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | # though, which does catch some bad symbols but isn't as heavy-handed |
| 7400 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | # as -z defs. |
| 7401 | hardcode_libdir_flag_spec= | no_undefined_flag='${wl}-z,text' |
| 7402 | allow_undefined_flag='${wl}-z,nodefs' | |
| 7403 | archive_cmds_need_lc=no | |
| 7404 | hardcode_shlibpath_var=no | hardcode_shlibpath_var=no |
| 7405 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
| 7406 | hardcode_libdir_separator=':' | |
| 7407 | link_all_deplibs=yes | |
| 7408 | export_dynamic_flag_spec='${wl}-Bexport' | |
| 7409 | runpath_var='LD_RUN_PATH' | runpath_var='LD_RUN_PATH' |
| 7410 | ||
| 7411 | if test "$GCC" = yes; then | |
| 7412 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7413 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7414 | else | |
| 7415 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7416 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7417 | fi | |
| 7418 | ;; | ;; |
| 7419 | ||
| 7420 | uts4*) | uts4*) |
| # | Line 7138 echo "$as_me:$LINENO: result: $ld_shlibs | Line 7433 echo "$as_me:$LINENO: result: $ld_shlibs |
| 7433 | echo "${ECHO_T}$ld_shlibs" >&6 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 7434 | test "$ld_shlibs" = no && can_build_shared=no | test "$ld_shlibs" = no && can_build_shared=no |
| 7435 | ||
| variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
| if test "$GCC" = yes; then | ||
| variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
| fi | ||
| 7436 | # | # |
| 7437 | # Do we need to explicitly link libc? | # Do we need to explicitly link libc? |
| 7438 | # | # |
| # | Line 7175 echo $ECHO_N "checking whether -lc shoul | Line 7465 echo $ECHO_N "checking whether -lc shoul |
| 7465 | libobjs=conftest.$ac_objext | libobjs=conftest.$ac_objext |
| 7466 | deplibs= | deplibs= |
| 7467 | wl=$lt_prog_compiler_wl | wl=$lt_prog_compiler_wl |
| 7468 | pic_flag=$lt_prog_compiler_pic | |
| 7469 | compiler_flags=-v | compiler_flags=-v |
| 7470 | linker_flags=-v | linker_flags=-v |
| 7471 | verstring= | verstring= |
| # | Line 7335 cygwin* | mingw* | pw32*) | Line 7626 cygwin* | mingw* | pw32*) |
| 7626 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 7627 | dldir=$destdir/`dirname \$dlpath`~ | dldir=$destdir/`dirname \$dlpath`~ |
| 7628 | test -d \$dldir || mkdir -p \$dldir~ | test -d \$dldir || mkdir -p \$dldir~ |
| 7629 | $install_prog $dir/$dlname \$dldir/$dlname' | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 7630 | chmod a+x \$dldir/$dlname' | |
| 7631 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 7632 | dlpath=$dir/\$dldll~ | dlpath=$dir/\$dldll~ |
| 7633 | $rm \$dlpath' | $rm \$dlpath' |
| # | Line 7365 cygwin* | mingw* | pw32*) | Line 7657 cygwin* | mingw* | pw32*) |
| 7657 | ;; | ;; |
| 7658 | pw32*) | pw32*) |
| 7659 | # pw32 DLLs use 'pw' prefix rather than 'lib' | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7660 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7661 | ;; | ;; |
| 7662 | esac | esac |
| 7663 | ;; | ;; |
| 7664 | ||
| 7665 | linux*) | |
| 7666 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
| 7667 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
| 7668 | supports_anon_versioning=no | |
| 7669 | case `$LD -v 2>/dev/null` in | |
| 7670 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
| 7671 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
| 7672 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
| 7673 | *\ 2.11.*) ;; # other 2.11 versions | |
| 7674 | *) supports_anon_versioning=yes ;; | |
| 7675 | esac | |
| 7676 | if test $supports_anon_versioning = yes; then | |
| 7677 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
| 7678 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 7679 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 7680 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
| 7681 | else | |
| 7682 | $archive_expsym_cmds="$archive_cmds" | |
| 7683 | fi | |
| 7684 | else | |
| 7685 | ld_shlibs=no | |
| 7686 | fi | |
| 7687 | ;; | |
| 7688 | ||
| 7689 | *) | *) |
| 7690 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 7691 | ;; | ;; |
| # | Line 7388 darwin* | rhapsody*) | Line 7704 darwin* | rhapsody*) |
| 7704 | soname_spec='${libname}${release}${major}$shared_ext' | soname_spec='${libname}${release}${major}$shared_ext' |
| 7705 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
| 7706 | shlibpath_var=DYLD_LIBRARY_PATH | shlibpath_var=DYLD_LIBRARY_PATH |
| 7707 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 7708 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7709 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
| 7710 | 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"` | 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"` |
| # | Line 7423 kfreebsd*-gnu) | Line 7739 kfreebsd*-gnu) |
| 7739 | dynamic_linker='GNU ld.so' | dynamic_linker='GNU ld.so' |
| 7740 | ;; | ;; |
| 7741 | ||
| 7742 | freebsd*) | freebsd* | dragonfly*) |
| 7743 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | # DragonFly does not have aout. When/if they implement a new |
| 7744 | version_type=freebsd-$objformat | # versioning mechanism, adjust this. |
| 7745 | if test -x /usr/bin/objformat; then | |
| 7746 | objformat=`/usr/bin/objformat` | |
| 7747 | else | |
| 7748 | case $host_os in | |
| 7749 | freebsd[123]*) objformat=aout ;; | |
| 7750 | *) objformat=elf ;; | |
| 7751 | esac | |
| 7752 | fi | |
| 7753 | # Handle Gentoo/FreeBSD as it was Linux | |
| 7754 | case $host_vendor in | |
| 7755 | gentoo) | |
| 7756 | version_type=linux ;; | |
| 7757 | *) | |
| 7758 | version_type=freebsd-$objformat ;; | |
| 7759 | esac | |
| 7760 | ||
| 7761 | case $version_type in | case $version_type in |
| 7762 | freebsd-elf*) | freebsd-elf*) |
| 7763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| # | Line 7436 freebsd*) | Line 7768 freebsd*) |
| 7768 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 7769 | need_version=yes | need_version=yes |
| 7770 | ;; | ;; |
| 7771 | linux) | |
| 7772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
| 7773 | soname_spec='${libname}${release}${shared_ext}$major' | |
| 7774 | need_lib_prefix=no | |
| 7775 | need_version=no | |
| 7776 | ;; | |
| 7777 | esac | esac |
| 7778 | shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH |
| 7779 | case $host_os in | case $host_os in |
| 7780 | freebsd2*) | freebsd2*) |
| 7781 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
| 7782 | ;; | ;; |
| 7783 | freebsd3.01* | freebsdelf3.01*) | freebsd3.[01]* | freebsdelf3.[01]*) |
| 7784 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
| 7785 | hardcode_into_libs=yes | hardcode_into_libs=yes |
| 7786 | ;; | ;; |
| 7787 | *) # from 3.2 on | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 7788 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
| 7789 | shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no |
| 7790 | hardcode_into_libs=yes | hardcode_into_libs=yes |
| 7791 | ;; | ;; |
| 7792 | freebsd*) # from 4.6 on | |
| 7793 | shlibpath_overrides_runpath=yes | |
| 7794 | hardcode_into_libs=yes | |
| 7795 | ;; | |
| 7796 | esac | esac |
| 7797 | ;; | ;; |
| 7798 | ||
| # | Line 7469 hpux9* | hpux10* | hpux11*) | Line 7812 hpux9* | hpux10* | hpux11*) |
| 7812 | version_type=sunos | version_type=sunos |
| 7813 | need_lib_prefix=no | need_lib_prefix=no |
| 7814 | need_version=no | need_version=no |
| 7815 | case "$host_cpu" in | case $host_cpu in |
| 7816 | ia64*) | ia64*) |
| 7817 | shrext_cmds='.so' | shrext_cmds='.so' |
| 7818 | hardcode_into_libs=yes | hardcode_into_libs=yes |
| # | Line 7509 hpux9* | hpux10* | hpux11*) | Line 7852 hpux9* | hpux10* | hpux11*) |
| 7852 | postinstall_cmds='chmod 555 $lib' | postinstall_cmds='chmod 555 $lib' |
| 7853 | ;; | ;; |
| 7854 | ||
| 7855 | interix3*) | |
| 7856 | version_type=linux | |
| 7857 | need_lib_prefix=no | |
| 7858 | need_version=no | |
| 7859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
| 7860 | soname_spec='${libname}${release}${shared_ext}$major' | |
| 7861 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
| 7862 | shlibpath_var=LD_LIBRARY_PATH | |
| 7863 | shlibpath_overrides_runpath=no | |
| 7864 | hardcode_into_libs=yes | |
| 7865 | ;; | |
| 7866 | ||
| 7867 | irix5* | irix6* | nonstopux*) | irix5* | irix6* | nonstopux*) |
| 7868 | case $host_os in | case $host_os in |
| 7869 | nonstopux*) version_type=nonstopux ;; | nonstopux*) version_type=nonstopux ;; |
| # | Line 7568 linux*) | Line 7923 linux*) |
| 7923 | ||
| 7924 | # Append ld.so.conf contents to the search path | # Append ld.so.conf contents to the search path |
| 7925 | if test -f /etc/ld.so.conf; then | if test -f /etc/ld.so.conf; then |
| 7926 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 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' ' '` |
| 7927 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 7928 | fi | fi |
| 7929 | ||
| # | Line 7630 nto-qnx*) | Line 7985 nto-qnx*) |
| 7985 | ||
| 7986 | openbsd*) | openbsd*) |
| 7987 | version_type=sunos | version_type=sunos |
| 7988 | sys_lib_dlsearch_path_spec="/usr/lib" | |
| 7989 | need_lib_prefix=no | need_lib_prefix=no |
| 7990 | need_version=no | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 7991 | case $host_os in | |
| 7992 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
| 7993 | *) need_version=no ;; | |
| 7994 | esac | |
| 7995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7996 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7997 | shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH |
| # | Line 7669 osf3* | osf4* | osf5*) | Line 8029 osf3* | osf4* | osf5*) |
| 8029 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8030 | ;; | ;; |
| 8031 | ||
| sco3.2v5*) | ||
| version_type=osf | ||
| soname_spec='${libname}${release}${shared_ext}$major' | ||
| library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
| shlibpath_var=LD_LIBRARY_PATH | ||
| ;; | ||
| 8032 | solaris*) | solaris*) |
| 8033 | version_type=linux | version_type=linux |
| 8034 | need_lib_prefix=no | need_lib_prefix=no |
| # | Line 7701 sunos4*) | Line 8054 sunos4*) |
| 8054 | need_version=yes | need_version=yes |
| 8055 | ;; | ;; |
| 8056 | ||
| 8057 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | sysv4 | sysv4.3*) |
| 8058 | version_type=linux | version_type=linux |
| 8059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8060 | soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' |
| # | Line 7734 sysv4*MP*) | Line 8087 sysv4*MP*) |
| 8087 | fi | fi |
| 8088 | ;; | ;; |
| 8089 | ||
| 8090 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
| 8091 | version_type=freebsd-elf | |
| 8092 | need_lib_prefix=no | |
| 8093 | need_version=no | |
| 8094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
| 8095 | soname_spec='${libname}${release}${shared_ext}$major' | |
| 8096 | shlibpath_var=LD_LIBRARY_PATH | |
| 8097 | hardcode_into_libs=yes | |
| 8098 | if test "$with_gnu_ld" = yes; then | |
| 8099 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
| 8100 | shlibpath_overrides_runpath=no | |
| 8101 | else | |
| 8102 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
| 8103 | shlibpath_overrides_runpath=yes | |
| 8104 | case $host_os in | |
| 8105 | sco3.2v5*) | |
| 8106 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
| 8107 | ;; | |
| 8108 | esac | |
| 8109 | fi | |
| 8110 | sys_lib_dlsearch_path_spec='/usr/lib' | |
| 8111 | ;; | |
| 8112 | ||
| 8113 | uts4*) | uts4*) |
| 8114 | version_type=linux | version_type=linux |
| 8115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| # | Line 7749 echo "$as_me:$LINENO: result: $dynamic_l | Line 8125 echo "$as_me:$LINENO: result: $dynamic_l |
| 8125 | echo "${ECHO_T}$dynamic_linker" >&6 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 8126 | test "$dynamic_linker" = no && can_build_shared=no | test "$dynamic_linker" = no && can_build_shared=no |
| 8127 | ||
| 8128 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
| 8129 | if test "$GCC" = yes; then | |
| 8130 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
| 8131 | fi | |
| 8132 | ||
| 8133 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8134 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 8135 | hardcode_action= | hardcode_action= |
| # | Line 8404 fi | Line 8785 fi |
| 8785 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 8786 | ||
| 8787 | save_LDFLAGS="$LDFLAGS" | save_LDFLAGS="$LDFLAGS" |
| 8788 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8789 | ||
| 8790 | save_LIBS="$LIBS" | save_LIBS="$LIBS" |
| 8791 | LIBS="$lt_cv_dlopen_libs $LIBS" | LIBS="$lt_cv_dlopen_libs $LIBS" |
| # | Line 8420 else | Line 8801 else |
| 8801 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8802 | lt_status=$lt_dlunknown | lt_status=$lt_dlunknown |
| 8803 | cat > conftest.$ac_ext <<EOF | cat > conftest.$ac_ext <<EOF |
| 8804 | #line 8423 "configure" | #line 8804 "configure" |
| 8805 | #include "confdefs.h" | #include "confdefs.h" |
| 8806 | ||
| 8807 | #if HAVE_DLFCN_H | #if HAVE_DLFCN_H |
| # | Line 8477 int main () | Line 8858 int main () |
| 8858 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8859 | /* dlclose (self); */ | /* dlclose (self); */ |
| 8860 | } | } |
| 8861 | else | |
| 8862 | puts (dlerror ()); | |
| 8863 | ||
| 8864 | exit (status); | exit (status); |
| 8865 | } | } |
| # | Line 8486 EOF | Line 8869 EOF |
| 8869 | ac_status=$? | ac_status=$? |
| 8870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8871 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8872 | (./conftest; exit; ) 2>/dev/null | (./conftest; exit; ) >&5 2>/dev/null |
| 8873 | lt_status=$? | lt_status=$? |
| 8874 | case x$lt_status in | case x$lt_status in |
| 8875 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8876 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8877 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 8878 | esac | esac |
| 8879 | else : | else : |
| 8880 | # compilation failed | # compilation failed |
| # | Line 8506 echo "$as_me:$LINENO: result: $lt_cv_dlo | Line 8889 echo "$as_me:$LINENO: result: $lt_cv_dlo |
| 8889 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8890 | ||
| 8891 | if test "x$lt_cv_dlopen_self" = xyes; then | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8892 | LDFLAGS="$LDFLAGS $link_static_flag" | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 8893 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8894 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8895 | if test "${lt_cv_dlopen_self_static+set}" = set; then | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| # | Line 8518 else | Line 8901 else |
| 8901 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8902 | lt_status=$lt_dlunknown | lt_status=$lt_dlunknown |
| 8903 | cat > conftest.$ac_ext <<EOF | cat > conftest.$ac_ext <<EOF |
| 8904 | #line 8521 "configure" | #line 8904 "configure" |
| 8905 | #include "confdefs.h" | #include "confdefs.h" |
| 8906 | ||
| 8907 | #if HAVE_DLFCN_H | #if HAVE_DLFCN_H |
| # | Line 8575 int main () | Line 8958 int main () |
| 8958 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8959 | /* dlclose (self); */ | /* dlclose (self); */ |
| 8960 | } | } |
| 8961 | else | |
| 8962 | puts (dlerror ()); | |
| 8963 | ||
| 8964 | exit (status); | exit (status); |
| 8965 | } | } |
| # | Line 8584 EOF | Line 8969 EOF |
| 8969 | ac_status=$? | ac_status=$? |
| 8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8971 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8972 | (./conftest; exit; ) 2>/dev/null | (./conftest; exit; ) >&5 2>/dev/null |
| 8973 | lt_status=$? | lt_status=$? |
| 8974 | case x$lt_status in | case x$lt_status in |
| 8975 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8976 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8977 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8978 | esac | esac |
| 8979 | else : | else : |
| 8980 | # compilation failed | # compilation failed |
| # | Line 8622 echo "${ECHO_T}$lt_cv_dlopen_self_static | Line 9007 echo "${ECHO_T}$lt_cv_dlopen_self_static |
| 9007 | fi | fi |
| 9008 | ||
| 9009 | ||
| 9010 | # Report which librarie types wil actually be built | # Report which library types will actually be built |
| 9011 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 9012 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 9013 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| # | Line 8634 test "$can_build_shared" = "no" && enabl | Line 9019 test "$can_build_shared" = "no" && enabl |
| 9019 | ||
| 9020 | # On AIX, shared libraries and static libraries use the same namespace, and | # On AIX, shared libraries and static libraries use the same namespace, and |
| 9021 | # are all built from PIC. | # are all built from PIC. |
| 9022 | case "$host_os" in | case $host_os in |
| 9023 | aix3*) | aix3*) |
| 9024 | test "$enable_shared" = yes && enable_static=no | test "$enable_shared" = yes && enable_static=no |
| 9025 | if test -n "$RANLIB"; then | if test -n "$RANLIB"; then |
| # | Line 8672 if test -f "$ltmain"; then | Line 9057 if test -f "$ltmain"; then |
| 9057 | # Now quote all the things that may contain metacharacters while being | # Now quote all the things that may contain metacharacters while being |
| 9058 | # careful not to overquote the AC_SUBSTed values. We take copies of the | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 9059 | # variables and quote the copies for generation of the libtool script. | # variables and quote the copies for generation of the libtool script. |
| 9060 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 9061 | SED SHELL STRIP \ | SED SHELL STRIP \ |
| 9062 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 9063 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| # | Line 8776 echo "$as_me: creating $ofile" >&6;} | Line 9161 echo "$as_me: creating $ofile" >&6;} |
| 9161 | # | # |
| 9162 | # You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License |
| 9163 | # along with this program; if not, write to the Free Software | # along with this program; if not, write to the Free Software |
| 9164 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 9165 | # | # |
| 9166 | # As a special exception to the GNU General Public License, if you | # As a special exception to the GNU General Public License, if you |
| 9167 | # distribute this file as part of a program that contains a | # distribute this file as part of a program that contains a |
| # | Line 8787 echo "$as_me: creating $ofile" >&6;} | Line 9172 echo "$as_me: creating $ofile" >&6;} |
| 9172 | SED=$lt_SED | SED=$lt_SED |
| 9173 | ||
| 9174 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 9175 | Xsed="$SED -e s/^X//" | Xsed="$SED -e 1s/^X//" |
| 9176 | ||
| 9177 | # The HP-UX ksh and POSIX shell print the target directory to stdout | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 9178 | # if CDPATH is set. | # if CDPATH is set. |
| # | Line 8821 fast_install=$enable_fast_install | Line 9206 fast_install=$enable_fast_install |
| 9206 | # The host system. | # The host system. |
| 9207 | host_alias=$host_alias | host_alias=$host_alias |
| 9208 | host=$host | host=$host |
| 9209 | host_os=$host_os | |
| 9210 | ||
| 9211 | # The build system. | |
| 9212 | build_alias=$build_alias | |
| 9213 | build=$build | |
| 9214 | build_os=$build_os | |
| 9215 | ||
| 9216 | # An echo program that does not interpret backslashes. | # An echo program that does not interpret backslashes. |
| 9217 | echo=$lt_echo | echo=$lt_echo |
| # | Line 8832 AR_FLAGS=$lt_AR_FLAGS | Line 9223 AR_FLAGS=$lt_AR_FLAGS |
| 9223 | # A C compiler. | # A C compiler. |
| 9224 | LTCC=$lt_LTCC | LTCC=$lt_LTCC |
| 9225 | ||
| 9226 | # LTCC compiler flags. | |
| 9227 | LTCFLAGS=$lt_LTCFLAGS | |
| 9228 | ||
| 9229 | # A language-specific compiler. | # A language-specific compiler. |
| 9230 | CC=$lt_compiler | CC=$lt_compiler |
| 9231 | ||
| # | Line 8897 max_cmd_len=$lt_cv_sys_max_cmd_len | Line 9291 max_cmd_len=$lt_cv_sys_max_cmd_len |
| 9291 | # Does compiler simultaneously support -c and -o options? | # Does compiler simultaneously support -c and -o options? |
| 9292 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 9293 | ||
| 9294 | # Must we lock files when doing compilation ? | # Must we lock files when doing compilation? |
| 9295 | need_locks=$lt_need_locks | need_locks=$lt_need_locks |
| 9296 | ||
| 9297 | # Do we need the lib prefix for modules? | # Do we need the lib prefix for modules? |
| # | Line 9162 echo "$as_me: WARNING: output file \`$of | Line 9556 echo "$as_me: WARNING: output file \`$of |
| 9556 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 9557 | fi | fi |
| 9558 | fi | fi |
| 9559 | if test -z "$LTCFLAGS"; then | |
| 9560 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
| 9561 | fi | |
| 9562 | ||
| 9563 | # Extract list of available tagged configurations in $ofile. | # Extract list of available tagged configurations in $ofile. |
| 9564 | # Note that this assumes the entire list is on one line. | # Note that this assumes the entire list is on one line. |
| # | Line 9192 echo "$as_me: error: tag name \"$tagname | Line 9589 echo "$as_me: error: tag name \"$tagname |
| 9589 | ||
| 9590 | case $tagname in | case $tagname in |
| 9591 | CXX) | CXX) |
| 9592 | if test -n "$CXX" && test "X$CXX" != "Xno"; then | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 9593 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
| 9594 | (test "X$CXX" != "Xg++"))) ; then | |
| 9595 | ac_ext=cc | ac_ext=cc |
| 9596 | ac_cpp='$CXXCPP $CPPFLAGS' | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9597 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| # | Line 9212 hardcode_libdir_flag_spec_CXX= | Line 9611 hardcode_libdir_flag_spec_CXX= |
| 9611 | hardcode_libdir_flag_spec_ld_CXX= | hardcode_libdir_flag_spec_ld_CXX= |
| 9612 | hardcode_libdir_separator_CXX= | hardcode_libdir_separator_CXX= |
| 9613 | hardcode_minus_L_CXX=no | hardcode_minus_L_CXX=no |
| 9614 | hardcode_shlibpath_var_CXX=unsupported | |
| 9615 | hardcode_automatic_CXX=no | hardcode_automatic_CXX=no |
| 9616 | module_cmds_CXX= | module_cmds_CXX= |
| 9617 | module_expsym_cmds_CXX= | module_expsym_cmds_CXX= |
| # | Line 9229 postdeps_CXX= | Line 9629 postdeps_CXX= |
| 9629 | compiler_lib_search_path_CXX= | compiler_lib_search_path_CXX= |
| 9630 | ||
| 9631 | # Source file extension for C++ test sources. | # Source file extension for C++ test sources. |
| 9632 | ac_ext=cc | ac_ext=cpp |
| 9633 | ||
| 9634 | # Object file extension for compiled C++ test sources. | # Object file extension for compiled C++ test sources. |
| 9635 | objext=o | objext=o |
| # | Line 9239 objext_CXX=$objext | Line 9639 objext_CXX=$objext |
| 9639 | lt_simple_compile_test_code="int some_variable = 0;\n" | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 9640 | ||
| 9641 | # Code to be used in simple link tests | # Code to be used in simple link tests |
| 9642 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| 9643 | ||
| 9644 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9645 | ||
| 9646 | # If no C compiler was specified, use CC. | # If no C compiler was specified, use CC. |
| 9647 | LTCC=${LTCC-"$CC"} | LTCC=${LTCC-"$CC"} |
| 9648 | ||
| 9649 | # If no C compiler flags were specified, use CFLAGS. | |
| 9650 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
| 9651 | ||
| 9652 | # Allow CC to be a program name with arguments. | # Allow CC to be a program name with arguments. |
| 9653 | compiler=$CC | compiler=$CC |
| 9654 | ||
| 9655 | ||
| 9656 | # save warnings/boilerplate of simple test code | |
| 9657 | ac_outfile=conftest.$ac_objext | |
| 9658 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
| 9659 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 9660 | _lt_compiler_boilerplate=`cat conftest.err` | |
| 9661 | $rm conftest* | |
| 9662 | ||
| 9663 | ac_outfile=conftest.$ac_objext | |
| 9664 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
| 9665 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 9666 | _lt_linker_boilerplate=`cat conftest.err` | |
| 9667 | $rm conftest* | |
| 9668 | ||
| 9669 | ||
| 9670 | # Allow CC to be a program name with arguments. | # Allow CC to be a program name with arguments. |
| 9671 | lt_save_CC=$CC | lt_save_CC=$CC |
| 9672 | lt_save_LD=$LD | lt_save_LD=$LD |
| # | Line 9260 lt_save_path_LD=$lt_cv_path_LD | Line 9677 lt_save_path_LD=$lt_cv_path_LD |
| 9677 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9678 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9679 | else | else |
| 9680 | unset lt_cv_prog_gnu_ld | $as_unset lt_cv_prog_gnu_ld |
| 9681 | fi | fi |
| 9682 | if test -n "${lt_cv_path_LDCXX+set}"; then | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9683 | lt_cv_path_LD=$lt_cv_path_LDCXX | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9684 | else | else |
| 9685 | unset lt_cv_path_LD | $as_unset lt_cv_path_LD |
| 9686 | fi | fi |
| 9687 | test -z "${LDCXX+set}" || LD=$LDCXX | test -z "${LDCXX+set}" || LD=$LDCXX |
| 9688 | CC=${CXX-"c++"} | CC=${CXX-"c++"} |
| 9689 | compiler=$CC | compiler=$CC |
| 9690 | compiler_CXX=$CC | compiler_CXX=$CC |
| 9691 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | for cc_temp in $compiler""; do |
| 9692 | case $cc_temp in | |
| 9693 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
| 9694 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
| 9695 | \-*) ;; | |
| 9696 | *) break;; | |
| 9697 | esac | |
| 9698 | done | |
| 9699 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
| 9700 | ||
| 9701 | ||
| 9702 | # We don't want -fno-exception wen compiling C++ code, so set the | # We don't want -fno-exception wen compiling C++ code, so set the |
| 9703 | # no_builtin_flag separately | # no_builtin_flag separately |
| # | Line 9342 else | Line 9768 else |
| 9768 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9769 | lt_cv_path_LD="$ac_dir/$ac_prog" | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9770 | # Check to see if the program is GNU ld. I'd rather use --version, | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9771 | # but apparently some GNU ld's only accept -v. | # but apparently some variants of GNU ld only accept -v. |
| 9772 | # Break only if it was the GNU/non-GNU ld that we prefer. | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9773 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9774 | *GNU* | *'with BFD'*) | *GNU* | *'with BFD'*) |
| # | Line 9376 echo $ECHO_N "checking if the linker ($L | Line 9802 echo $ECHO_N "checking if the linker ($L |
| 9802 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9804 | else | else |
| 9805 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 9806 | case `$LD -v 2>&1 </dev/null` in | case `$LD -v 2>&1 </dev/null` in |
| 9807 | *GNU* | *'with BFD'*) | *GNU* | *'with BFD'*) |
| 9808 | lt_cv_prog_gnu_ld=yes | lt_cv_prog_gnu_ld=yes |
| # | Line 9467 case $host_os in | Line 9893 case $host_os in |
| 9893 | ;; | ;; |
| 9894 | esac | esac |
| 9895 | done | done |
| 9896 | ;; | |
| 9897 | esac | esac |
| 9898 | ||
| 9899 | exp_sym_flag='-bexport' | exp_sym_flag='-bexport' |
| # | Line 9485 case $host_os in | Line 9912 case $host_os in |
| 9912 | link_all_deplibs_CXX=yes | link_all_deplibs_CXX=yes |
| 9913 | ||
| 9914 | if test "$GXX" = yes; then | if test "$GXX" = yes; then |
| 9915 | case $host_os in aix4.012|aix4.012.*) | case $host_os in aix4.[012]|aix4.[012].*) |
| 9916 | # We only want to do this on AIX 4.2 and lower, the check | # We only want to do this on AIX 4.2 and lower, the check |
| 9917 | # below for broken collect2 doesn't work under 4.3+ | # below for broken collect2 doesn't work under 4.3+ |
| 9918 | collect2name=`${CC} -print-prog-name=collect2` | collect2name=`${CC} -print-prog-name=collect2` |
| # | Line 9504 case $host_os in | Line 9931 case $host_os in |
| 9931 | hardcode_libdir_flag_spec_CXX='-L$libdir' | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9932 | hardcode_libdir_separator_CXX= | hardcode_libdir_separator_CXX= |
| 9933 | fi | fi |
| 9934 | ;; | |
| 9935 | esac | esac |
| 9936 | shared_flag='-shared' | shared_flag='-shared' |
| 9937 | if test "$aix_use_runtimelinking" = yes; then | |
| 9938 | shared_flag="$shared_flag "'${wl}-G' | |
| 9939 | fi | |
| 9940 | else | else |
| 9941 | # not using gcc | # not using gcc |
| 9942 | if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then |
| # | Line 9583 if test -z "$aix_libpath"; then aix_libp | Line 10014 if test -z "$aix_libpath"; then aix_libp |
| 10014 | ||
| 10015 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10016 | ||
| 10017 | 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" | 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" |
| 10018 | else | else |
| 10019 | if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then |
| 10020 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 10021 | allow_undefined_flag_CXX="-z nodefs" | allow_undefined_flag_CXX="-z nodefs" |
| 10022 | 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" | 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" |
| 10023 | else | else |
| 10024 | # Determine the default libpath from the value encoded in an empty executable. | # Determine the default libpath from the value encoded in an empty executable. |
| 10025 | cat >conftest.$ac_ext <<_ACEOF | cat >conftest.$ac_ext <<_ACEOF |
| # | Line 9648 if test -z "$aix_libpath"; then aix_libp | Line 10079 if test -z "$aix_libpath"; then aix_libp |
| 10079 | # -berok will link without error, but may produce a broken library. | # -berok will link without error, but may produce a broken library. |
| 10080 | no_undefined_flag_CXX=' ${wl}-bernotok' | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 10081 | allow_undefined_flag_CXX=' ${wl}-berok' | allow_undefined_flag_CXX=' ${wl}-berok' |
| # -bexpall does not export symbols beginning with underscore (_) | ||
| always_export_symbols_CXX=yes | ||
| 10082 | # Exported symbols can be pulled into shared objects from archives | # Exported symbols can be pulled into shared objects from archives |
| 10083 | whole_archive_flag_spec_CXX=' ' | whole_archive_flag_spec_CXX='$convenience' |
| 10084 | archive_cmds_need_lc_CXX=yes | archive_cmds_need_lc_CXX=yes |
| 10085 | # This is similar to how AIX traditionally builds it's shared libraries. | # This is similar to how AIX traditionally builds its shared libraries. |
| 10086 | 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' | 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' |
| 10087 | fi | fi |
| 10088 | fi | fi |
| 10089 | ;; | ;; |
| 10090 | ||
| 10091 | beos*) | |
| 10092 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
| 10093 | allow_undefined_flag_CXX=unsupported | |
| 10094 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
| 10095 | # support --undefined. This deserves some investigation. FIXME | |
| 10096 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
| 10097 | else | |
| 10098 | ld_shlibs_CXX=no | |
| 10099 | fi | |
| 10100 | ;; | |
| 10101 | ||
| 10102 | chorus*) | chorus*) |
| 10103 | case $cc_basename in | case $cc_basename in |
| 10104 | *) | *) |
| # | Line 9667 if test -z "$aix_libpath"; then aix_libp | Line 10108 if test -z "$aix_libpath"; then aix_libp |
| 10108 | esac | esac |
| 10109 | ;; | ;; |
| 10110 | ||
| 10111 | cygwin* | mingw* | pw32*) | cygwin* | mingw* | pw32*) |
| 10112 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 10113 | # as there is no search path for DLLs. | # as there is no search path for DLLs. |
| # | Line 9677 if test -z "$aix_libpath"; then aix_libp | Line 10117 if test -z "$aix_libpath"; then aix_libp |
| 10117 | enable_shared_with_static_runtimes_CXX=yes | enable_shared_with_static_runtimes_CXX=yes |
| 10118 | ||
| 10119 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 10120 | 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' | 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' |
| 10121 | # If the export-symbols file already is a .def file (1st line | # If the export-symbols file already is a .def file (1st line |
| 10122 | # is EXPORTS), use it as is; otherwise, prepend... | # is EXPORTS), use it as is; otherwise, prepend... |
| 10123 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| # | Line 9686 if test -z "$aix_libpath"; then aix_libp | Line 10126 if test -z "$aix_libpath"; then aix_libp |
| 10126 | echo EXPORTS > $output_objdir/$soname.def; | echo EXPORTS > $output_objdir/$soname.def; |
| 10127 | cat $export_symbols >> $output_objdir/$soname.def; | cat $export_symbols >> $output_objdir/$soname.def; |
| 10128 | fi~ | fi~ |
| 10129 | $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' | $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' |
| 10130 | else | else |
| 10131 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10132 | fi | fi |
| 10133 | ;; | ;; |
| 10134 | darwin* | rhapsody*) | darwin* | rhapsody*) |
| 10135 | case "$host_os" in | case $host_os in |
| 10136 | rhapsody* | darwin1.[012]) | rhapsody* | darwin1.[012]) |
| 10137 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 10138 | ;; | ;; |
| # | Line 9730 if test -z "$aix_libpath"; then aix_libp | Line 10170 if test -z "$aix_libpath"; then aix_libp |
| 10170 | 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' | 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' |
| 10171 | fi | fi |
| 10172 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10173 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 10174 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 10175 | 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}' | 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}' |
| 10176 | else | else |
| # | Line 9738 if test -z "$aix_libpath"; then aix_libp | Line 10178 if test -z "$aix_libpath"; then aix_libp |
| 10178 | fi | fi |
| 10179 | 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}' | 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}' |
| 10180 | else | else |
| 10181 | case "$cc_basename" in | case $cc_basename in |
| 10182 | xlc*) | xlc*) |
| 10183 | output_verbose_link_cmd='echo' | output_verbose_link_cmd='echo' |
| 10184 | 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' | 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' |
| 10185 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10186 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 10187 | 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}' | 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}' |
| 10188 | 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}' | 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}' |
| 10189 | ;; | ;; |
| # | Line 9756 if test -z "$aix_libpath"; then aix_libp | Line 10196 if test -z "$aix_libpath"; then aix_libp |
| 10196 | ||
| 10197 | dgux*) | dgux*) |
| 10198 | case $cc_basename in | case $cc_basename in |
| 10199 | ec++) | ec++*) |
| 10200 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10201 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10202 | ;; | ;; |
| 10203 | ghcx) | ghcx*) |
| 10204 | # Green Hills C++ Compiler | # Green Hills C++ Compiler |
| 10205 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10206 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| # | Line 9771 if test -z "$aix_libpath"; then aix_libp | Line 10211 if test -z "$aix_libpath"; then aix_libp |
| 10211 | ;; | ;; |
| 10212 | esac | esac |
| 10213 | ;; | ;; |
| 10214 | freebsd12*) | freebsd[12]*) |
| 10215 | # C++ shared libraries reported to be fairly broken before switch to ELF | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 10216 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10217 | ;; | ;; |
| 10218 | freebsd-elf*) | freebsd-elf*) |
| 10219 | archive_cmds_need_lc_CXX=no | archive_cmds_need_lc_CXX=no |
| 10220 | ;; | ;; |
| 10221 | freebsd* | kfreebsd*-gnu) | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 10222 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 10223 | # conventions | # conventions |
| 10224 | ld_shlibs_CXX=yes | ld_shlibs_CXX=yes |
| # | Line 9795 if test -z "$aix_libpath"; then aix_libp | Line 10235 if test -z "$aix_libpath"; then aix_libp |
| 10235 | # location of the library. | # location of the library. |
| 10236 | ||
| 10237 | case $cc_basename in | case $cc_basename in |
| 10238 | CC) | CC*) |
| 10239 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10240 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10241 | ;; | ;; |
| 10242 | aCC) | aCC*) |
| 10243 | 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' | 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' |
| 10244 | # Commands to make compiler produce verbose output that lists | # Commands to make compiler produce verbose output that lists |
| 10245 | # what "hidden" libraries, object files and flags are used when | # what "hidden" libraries, object files and flags are used when |
| # | Line 9809 if test -z "$aix_libpath"; then aix_libp | Line 10249 if test -z "$aix_libpath"; then aix_libp |
| 10249 | # explicitly linking system object files so we need to strip them | # explicitly linking system object files so we need to strip them |
| 10250 | # from the output so that they don't get included in the library | # from the output so that they don't get included in the library |
| 10251 | # dependencies. | # dependencies. |
| 10252 | 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' | 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' |
| 10253 | ;; | ;; |
| 10254 | *) | *) |
| 10255 | if test "$GXX" = yes; then | if test "$GXX" = yes; then |
| # | Line 9823 if test -z "$aix_libpath"; then aix_libp | Line 10263 if test -z "$aix_libpath"; then aix_libp |
| 10263 | ;; | ;; |
| 10264 | hpux10*|hpux11*) | hpux10*|hpux11*) |
| 10265 | if test $with_gnu_ld = no; then | if test $with_gnu_ld = no; then |
| 10266 | case "$host_cpu" in | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10267 | hppa*64*) | hardcode_libdir_separator_CXX=: |
| 10268 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
| 10269 | case $host_cpu in | |
| 10270 | hppa*64*|ia64*) | |
| 10271 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| hardcode_libdir_separator_CXX=: | ||
| ;; | ||
| ia64*) | ||
| hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
| 10272 | ;; | ;; |
| 10273 | *) | *) |
| hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
| hardcode_libdir_separator_CXX=: | ||
| 10274 | export_dynamic_flag_spec_CXX='${wl}-E' | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10275 | ;; | ;; |
| 10276 | esac | esac |
| 10277 | fi | fi |
| 10278 | case "$host_cpu" in | case $host_cpu in |
| 10279 | hppa*64*) | hppa*64*|ia64*) |
| hardcode_direct_CXX=no | ||
| hardcode_shlibpath_var_CXX=no | ||
| ;; | ||
| ia64*) | ||
| 10280 | hardcode_direct_CXX=no | hardcode_direct_CXX=no |
| 10281 | hardcode_shlibpath_var_CXX=no | hardcode_shlibpath_var_CXX=no |
| hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
| # but as the default | ||
| # location of the library. | ||
| 10282 | ;; | ;; |
| 10283 | *) | *) |
| 10284 | hardcode_direct_CXX=yes | hardcode_direct_CXX=yes |
| # | Line 9860 if test -z "$aix_libpath"; then aix_libp | Line 10289 if test -z "$aix_libpath"; then aix_libp |
| 10289 | esac | esac |
| 10290 | ||
| 10291 | case $cc_basename in | case $cc_basename in |
| 10292 | CC) | CC*) |
| 10293 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10294 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10295 | ;; | ;; |
| 10296 | aCC) | aCC*) |
| 10297 | case "$host_cpu" in | case $host_cpu in |
| 10298 | hppa*64*|ia64*) | hppa*64*) |
| 10299 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10300 | ;; | |
| 10301 | ia64*) | |
| 10302 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 10303 | ;; | ;; |
| 10304 | *) | *) |
| 10305 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| # | Line 9886 if test -z "$aix_libpath"; then aix_libp | Line 10318 if test -z "$aix_libpath"; then aix_libp |
| 10318 | *) | *) |
| 10319 | if test "$GXX" = yes; then | if test "$GXX" = yes; then |
| 10320 | if test $with_gnu_ld = no; then | if test $with_gnu_ld = no; then |
| 10321 | case "$host_cpu" in | case $host_cpu in |
| 10322 | ia64*|hppa*64*) | hppa*64*) |
| 10323 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10324 | ;; | |
| 10325 | ia64*) | |
| 10326 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 10327 | ;; | ;; |
| 10328 | *) | *) |
| 10329 | 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' | 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' |
| # | Line 9902 if test -z "$aix_libpath"; then aix_libp | Line 10337 if test -z "$aix_libpath"; then aix_libp |
| 10337 | ;; | ;; |
| 10338 | esac | esac |
| 10339 | ;; | ;; |
| 10340 | interix3*) | |
| 10341 | hardcode_direct_CXX=no | |
| 10342 | hardcode_shlibpath_var_CXX=no | |
| 10343 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
| 10344 | export_dynamic_flag_spec_CXX='${wl}-E' | |
| 10345 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
| 10346 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
| 10347 | # default) and relocated if they conflict, which is a slow very memory | |
| 10348 | # consuming and fragmenting process. To avoid this, we pick a random, | |
| 10349 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
| 10350 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
| 10351 | 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' | |
| 10352 | 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' | |
| 10353 | ;; | |
| 10354 | irix5* | irix6*) | irix5* | irix6*) |
| 10355 | case $cc_basename in | case $cc_basename in |
| 10356 | CC) | CC*) |
| 10357 | # SGI C++ | # SGI C++ |
| 10358 | 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' | 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' |
| 10359 | ||
| 10360 | # Archives containing C++ object files must be created using | # Archives containing C++ object files must be created using |
| 10361 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| # | Line 9917 if test -z "$aix_libpath"; then aix_libp | Line 10366 if test -z "$aix_libpath"; then aix_libp |
| 10366 | *) | *) |
| 10367 | if test "$GXX" = yes; then | if test "$GXX" = yes; then |
| 10368 | if test "$with_gnu_ld" = no; then | if test "$with_gnu_ld" = no; then |
| 10369 | 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' | 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' |
| 10370 | else | else |
| 10371 | 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' | 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' |
| 10372 | fi | fi |
| # | Line 9930 if test -z "$aix_libpath"; then aix_libp | Line 10379 if test -z "$aix_libpath"; then aix_libp |
| 10379 | ;; | ;; |
| 10380 | linux*) | linux*) |
| 10381 | case $cc_basename in | case $cc_basename in |
| 10382 | KCC) | KCC*) |
| 10383 | # Kuck and Associates, Inc. (KAI) C++ Compiler | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10384 | ||
| 10385 | # KCC will only create a shared library if the output file | # KCC will only create a shared library if the output file |
| # | Line 9955 if test -z "$aix_libpath"; then aix_libp | Line 10404 if test -z "$aix_libpath"; then aix_libp |
| 10404 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10405 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10406 | ;; | ;; |
| 10407 | icpc) | icpc*) |
| 10408 | # Intel C++ | # Intel C++ |
| 10409 | with_gnu_ld=yes | with_gnu_ld=yes |
| 10410 | # version 8.0 and above of icpc choke on multiply defined symbols | # version 8.0 and above of icpc choke on multiply defined symbols |
| # | Line 9967 if test -z "$aix_libpath"; then aix_libp | Line 10416 if test -z "$aix_libpath"; then aix_libp |
| 10416 | 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' | 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' |
| 10417 | ;; | ;; |
| 10418 | *) # Version 8.0 or newer | *) # Version 8.0 or newer |
| 10419 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | tmp_idyn= |
| 10420 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | case $host_cpu in |
| 10421 | ia64*) tmp_idyn=' -i_dynamic';; | |
| 10422 | esac | |
| 10423 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
| 10424 | 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' | |
| 10425 | ;; | ;; |
| 10426 | esac | esac |
| 10427 | archive_cmds_need_lc_CXX=no | archive_cmds_need_lc_CXX=no |
| # | Line 9976 if test -z "$aix_libpath"; then aix_libp | Line 10429 if test -z "$aix_libpath"; then aix_libp |
| 10429 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10430 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10431 | ;; | ;; |
| 10432 | cxx) | pgCC*) |
| 10433 | # Portland Group C++ compiler | |
| 10434 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
| 10435 | 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' | |
| 10436 | ||
| 10437 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
| 10438 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
| 10439 | 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' | |
| 10440 | ;; | |
| 10441 | cxx*) | |
| 10442 | # Compaq C++ | # Compaq C++ |
| 10443 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10444 | 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' | 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' |
| # | Line 10007 if test -z "$aix_libpath"; then aix_libp | Line 10469 if test -z "$aix_libpath"; then aix_libp |
| 10469 | ;; | ;; |
| 10470 | mvs*) | mvs*) |
| 10471 | case $cc_basename in | case $cc_basename in |
| 10472 | cxx) | cxx*) |
| 10473 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10474 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10475 | ;; | ;; |
| # | Line 10033 if test -z "$aix_libpath"; then aix_libp | Line 10495 if test -z "$aix_libpath"; then aix_libp |
| 10495 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10496 | ;; | ;; |
| 10497 | openbsd*) | openbsd*) |
| 10498 | hardcode_direct_CXX=yes | |
| 10499 | hardcode_shlibpath_var_CXX=no | |
| 10500 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10501 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10502 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| # | Line 10044 if test -z "$aix_libpath"; then aix_libp | Line 10508 if test -z "$aix_libpath"; then aix_libp |
| 10508 | ;; | ;; |
| 10509 | osf3*) | osf3*) |
| 10510 | case $cc_basename in | case $cc_basename in |
| 10511 | KCC) | KCC*) |
| 10512 | # Kuck and Associates, Inc. (KAI) C++ Compiler | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10513 | ||
| 10514 | # KCC will only create a shared library if the output file | # KCC will only create a shared library if the output file |
| # | Line 10060 if test -z "$aix_libpath"; then aix_libp | Line 10524 if test -z "$aix_libpath"; then aix_libp |
| 10524 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10525 | ||
| 10526 | ;; | ;; |
| 10527 | RCC) | RCC*) |
| 10528 | # Rational C++ 2.4.1 | # Rational C++ 2.4.1 |
| 10529 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10530 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10531 | ;; | ;; |
| 10532 | cxx) | cxx*) |
| 10533 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10534 | 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' | 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' |
| 10535 | ||
| 10536 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10537 | hardcode_libdir_separator_CXX=: | hardcode_libdir_separator_CXX=: |
| # | Line 10085 if test -z "$aix_libpath"; then aix_libp | Line 10549 if test -z "$aix_libpath"; then aix_libp |
| 10549 | *) | *) |
| 10550 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10551 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10552 | 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' | 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' |
| 10553 | ||
| 10554 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10555 | hardcode_libdir_separator_CXX=: | hardcode_libdir_separator_CXX=: |
| # | Line 10104 if test -z "$aix_libpath"; then aix_libp | Line 10568 if test -z "$aix_libpath"; then aix_libp |
| 10568 | ;; | ;; |
| 10569 | osf4* | osf5*) | osf4* | osf5*) |
| 10570 | case $cc_basename in | case $cc_basename in |
| 10571 | KCC) | KCC*) |
| 10572 | # Kuck and Associates, Inc. (KAI) C++ Compiler | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10573 | ||
| 10574 | # KCC will only create a shared library if the output file | # KCC will only create a shared library if the output file |
| # | Line 10119 if test -z "$aix_libpath"; then aix_libp | Line 10583 if test -z "$aix_libpath"; then aix_libp |
| 10583 | # the KAI C++ compiler. | # the KAI C++ compiler. |
| 10584 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 10585 | ;; | ;; |
| 10586 | RCC) | RCC*) |
| 10587 | # Rational C++ 2.4.1 | # Rational C++ 2.4.1 |
| 10588 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10589 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10590 | ;; | ;; |
| 10591 | cxx) | cxx*) |
| 10592 | allow_undefined_flag_CXX=' -expect_unresolved \*' | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 10593 | 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' | 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' |
| 10594 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 10595 | echo "-hidden">> $lib.exp~ | echo "-hidden">> $lib.exp~ |
| 10596 | $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~ | $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~ |
| 10597 | $rm $lib.exp' | $rm $lib.exp' |
| 10598 | ||
| 10599 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| # | Line 10148 if test -z "$aix_libpath"; then aix_libp | Line 10612 if test -z "$aix_libpath"; then aix_libp |
| 10612 | *) | *) |
| 10613 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10614 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10615 | 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' | 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' |
| 10616 | ||
| 10617 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10618 | hardcode_libdir_separator_CXX=: | hardcode_libdir_separator_CXX=: |
| # | Line 10169 if test -z "$aix_libpath"; then aix_libp | Line 10633 if test -z "$aix_libpath"; then aix_libp |
| 10633 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10634 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10635 | ;; | ;; |
| sco*) | ||
| archive_cmds_need_lc_CXX=no | ||
| case $cc_basename in | ||
| CC) | ||
| # FIXME: insert proper C++ library support | ||
| ld_shlibs_CXX=no | ||
| ;; | ||
| *) | ||
| # FIXME: insert proper C++ library support | ||
| ld_shlibs_CXX=no | ||
| ;; | ||
| esac | ||
| ;; | ||
| 10636 | sunos4*) | sunos4*) |
| 10637 | case $cc_basename in | case $cc_basename in |
| 10638 | CC) | CC*) |
| 10639 | # Sun C++ 4.x | # Sun C++ 4.x |
| 10640 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10641 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| 10642 | ;; | ;; |
| 10643 | lcc) | lcc*) |
| 10644 | # Lucid | # Lucid |
| 10645 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10646 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| # | Line 10202 if test -z "$aix_libpath"; then aix_libp | Line 10653 if test -z "$aix_libpath"; then aix_libp |
| 10653 | ;; | ;; |
| 10654 | solaris*) | solaris*) |
| 10655 | case $cc_basename in | case $cc_basename in |
| 10656 | CC) | CC*) |
| 10657 | # Sun C++ 4.2, 5.x and Centerline C++ | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10658 | archive_cmds_need_lc_CXX=yes | |
| 10659 | no_undefined_flag_CXX=' -zdefs' | no_undefined_flag_CXX=' -zdefs' |
| 10660 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10661 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10662 | $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' | $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' |
| 10663 | ||
| 10664 | hardcode_libdir_flag_spec_CXX='-R$libdir' | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10665 | hardcode_shlibpath_var_CXX=no | hardcode_shlibpath_var_CXX=no |
| 10666 | case $host_os in | case $host_os in |
| 10667 | solaris2.0-5 | solaris2.0-5.*) ;; | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10668 | *) | *) |
| 10669 | # The C++ compiler is used as linker so we must use $wl | # The C++ compiler is used as linker so we must use $wl |
| 10670 | # flag to pass the commands to the underlying system | # flag to pass the commands to the underlying system |
| 10671 | # linker. | # linker. We must also pass each convience library through |
| 10672 | # to the system linker between allextract/defaultextract. | |
| 10673 | # The C++ compiler will combine linker options so we | |
| 10674 | # cannot just pass the convience library names through | |
| 10675 | # without $wl. | |
| 10676 | # Supported since Solaris 2.6 (maybe 2.5.1?) | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10677 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 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' |
| 10678 | ;; | ;; |
| 10679 | esac | esac |
| 10680 | link_all_deplibs_CXX=yes | link_all_deplibs_CXX=yes |
| 10681 | ||
| 10682 | # Commands to make compiler produce verbose output that lists | output_verbose_link_cmd='echo' |
| # what "hidden" libraries, object files and flags are used when | ||
| # linking a shared library. | ||
| # | ||
| # There doesn't appear to be a way to prevent this compiler from | ||
| # explicitly linking system object files so we need to strip them | ||
| # from the output so that they don't get included in the library | ||
| # dependencies. | ||
| 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' | ||
| 10683 | ||
| 10684 | # Archives containing C++ object files must be created using | # Archives containing C++ object files must be created using |
| 10685 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| # | Line 10239 if test -z "$aix_libpath"; then aix_libp | Line 10687 if test -z "$aix_libpath"; then aix_libp |
| 10687 | # in the archive. | # in the archive. |
| 10688 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 10689 | ;; | ;; |
| 10690 | gcx) | gcx*) |
| 10691 | # Green Hills C++ Compiler | # Green Hills C++ Compiler |
| 10692 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10693 | ||
| # | Line 10277 if test -z "$aix_libpath"; then aix_libp | Line 10725 if test -z "$aix_libpath"; then aix_libp |
| 10725 | ;; | ;; |
| 10726 | esac | esac |
| 10727 | ;; | ;; |
| 10728 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10729 | no_undefined_flag_CXX='${wl}-z,text' | |
| 10730 | archive_cmds_need_lc_CXX=no | |
| 10731 | hardcode_shlibpath_var_CXX=no | |
| 10732 | runpath_var='LD_RUN_PATH' | |
| 10733 | ||
| 10734 | case $cc_basename in | |
| 10735 | CC*) | |
| 10736 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10737 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10738 | ;; | |
| 10739 | *) | |
| 10740 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10741 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10742 | ;; | |
| 10743 | esac | |
| 10744 | ;; | |
| 10745 | sysv5* | sco3.2v5* | sco5v6*) | |
| 10746 | # Note: We can NOT use -z defs as we might desire, because we do not | |
| 10747 | # link with -lc, and that would cause any symbols used from libc to | |
| 10748 | # always be unresolved, which means just about no library would | |
| 10749 | # ever link correctly. If we're not using GNU ld we use -z text | |
| 10750 | # though, which does catch some bad symbols but isn't as heavy-handed | |
| 10751 | # as -z defs. | |
| 10752 | # For security reasons, it is highly recommended that you always | |
| 10753 | # use absolute paths for naming shared libraries, and exclude the | |
| 10754 | # DT_RUNPATH tag from executables and libraries. But doing so | |
| 10755 | # requires that you compile everything twice, which is a pain. | |
| 10756 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
| 10757 | # non-empty value in the environment. Most likely only useful for | |
| 10758 | # creating official distributions of packages. | |
| 10759 | # This is a hack until libtool officially supports absolute path | |
| 10760 | # names for shared libraries. | |
| 10761 | no_undefined_flag_CXX='${wl}-z,text' | |
| 10762 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
| 10763 | archive_cmds_need_lc_CXX=no | archive_cmds_need_lc_CXX=no |
| 10764 | hardcode_shlibpath_var_CXX=no | |
| 10765 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
| 10766 | hardcode_libdir_separator_CXX=':' | |
| 10767 | link_all_deplibs_CXX=yes | |
| 10768 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
| 10769 | runpath_var='LD_RUN_PATH' | |
| 10770 | ||
| 10771 | case $cc_basename in | |
| 10772 | CC*) | |
| 10773 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10774 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10775 | ;; | |
| 10776 | *) | |
| 10777 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10778 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10779 | ;; | |
| 10780 | esac | |
| 10781 | ;; | ;; |
| 10782 | tandem*) | tandem*) |
| 10783 | case $cc_basename in | case $cc_basename in |
| 10784 | NCC) | NCC*) |
| 10785 | # NonStop-UX NCC 3.20 | # NonStop-UX NCC 3.20 |
| 10786 | # FIXME: insert proper C++ library support | # FIXME: insert proper C++ library support |
| 10787 | ld_shlibs_CXX=no | ld_shlibs_CXX=no |
| # | Line 10309 test "$ld_shlibs_CXX" = no && can_build_ | Line 10808 test "$ld_shlibs_CXX" = no && can_build_ |
| 10808 | GCC_CXX="$GXX" | GCC_CXX="$GXX" |
| 10809 | LD_CXX="$LD" | LD_CXX="$LD" |
| 10810 | ||
| ## CAVEAT EMPTOR: | ||
| ## There is no encapsulation within the following macros, do not change | ||
| ## the running order or otherwise move them around unless you know exactly | ||
| ## what you are doing... | ||
| 10811 | ||
| 10812 | cat > conftest.$ac_ext <<EOF | cat > conftest.$ac_ext <<EOF |
| 10813 | class Foo | class Foo |
| # | Line 10339 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 10834 if { (eval echo "$as_me:$LINENO: \"$ac_c |
| 10834 | # The `*' in the case matches for architectures that use `case' in | # The `*' in the case matches for architectures that use `case' in |
| 10835 | # $output_verbose_cmd can trigger glob expansion during the loop | # $output_verbose_cmd can trigger glob expansion during the loop |
| 10836 | # eval without this substitution. | # eval without this substitution. |
| 10837 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 10838 | ||
| 10839 | for p in `eval $output_verbose_link_cmd`; do | for p in `eval $output_verbose_link_cmd`; do |
| 10840 | case $p in | case $p in |
| # | Line 10415 fi | Line 10910 fi |
| 10910 | ||
| 10911 | $rm -f confest.$objext | $rm -f confest.$objext |
| 10912 | ||
| 10913 | # PORTME: override above test on systems where it is broken | |
| 10914 | case $host_os in | |
| 10915 | interix3*) | |
| 10916 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
| 10917 | # hack all around it, let's just trust "g++" to DTRT. | |
| 10918 | predep_objects_CXX= | |
| 10919 | postdep_objects_CXX= | |
| 10920 | postdeps_CXX= | |
| 10921 | ;; | |
| 10922 | ||
| 10923 | solaris*) | |
| 10924 | case $cc_basename in | |
| 10925 | CC*) | |
| 10926 | # Adding this requires a known-good setup of shared libraries for | |
| 10927 | # Sun compiler versions before 5.6, else PIC objects from an old | |
| 10928 | # archive will be linked into the output, leading to subtle bugs. | |
| 10929 | postdeps_CXX='-lCstd -lCrun' | |
| 10930 | ;; | |
| 10931 | esac | |
| 10932 | ;; | |
| 10933 | esac | |
| 10934 | ||
| 10935 | ||
| 10936 | case " $postdeps_CXX " in | case " $postdeps_CXX " in |
| 10937 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10938 | esac | esac |
| # | Line 10462 echo $ECHO_N "checking for $compiler opt | Line 10980 echo $ECHO_N "checking for $compiler opt |
| 10980 | # DJGPP does not support shared libraries at all | # DJGPP does not support shared libraries at all |
| 10981 | lt_prog_compiler_pic_CXX= | lt_prog_compiler_pic_CXX= |
| 10982 | ;; | ;; |
| 10983 | interix3*) | |
| 10984 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
| 10985 | # Instead, we relocate shared libraries at runtime. | |
| 10986 | ;; | |
| 10987 | sysv4*MP*) | sysv4*MP*) |
| 10988 | if test -d /usr/nec; then | if test -d /usr/nec; then |
| 10989 | lt_prog_compiler_pic_CXX=-Kconform_pic | lt_prog_compiler_pic_CXX=-Kconform_pic |
| # | Line 10470 echo $ECHO_N "checking for $compiler opt | Line 10992 echo $ECHO_N "checking for $compiler opt |
| 10992 | hpux*) | hpux*) |
| 10993 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10994 | # not for PA HP-UX. | # not for PA HP-UX. |
| 10995 | case "$host_cpu" in | case $host_cpu in |
| 10996 | hppa*64*|ia64*) | hppa*64*|ia64*) |
| 10997 | ;; | ;; |
| 10998 | *) | *) |
| # | Line 10495 echo $ECHO_N "checking for $compiler opt | Line 11017 echo $ECHO_N "checking for $compiler opt |
| 11017 | ;; | ;; |
| 11018 | chorus*) | chorus*) |
| 11019 | case $cc_basename in | case $cc_basename in |
| 11020 | cxch68) | cxch68*) |
| 11021 | # Green Hills C++ Compiler | # Green Hills C++ Compiler |
| 11022 | # _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" | # _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" |
| 11023 | ;; | ;; |
| # | Line 10504 echo $ECHO_N "checking for $compiler opt | Line 11026 echo $ECHO_N "checking for $compiler opt |
| 11026 | darwin*) | darwin*) |
| 11027 | # PIC is the default on this platform | # PIC is the default on this platform |
| 11028 | # Common symbols not allowed in MH_DYLIB files | # Common symbols not allowed in MH_DYLIB files |
| 11029 | case "$cc_basename" in | case $cc_basename in |
| 11030 | xlc*) | xlc*) |
| 11031 | lt_prog_compiler_pic_CXX='-qnocommon' | lt_prog_compiler_pic_CXX='-qnocommon' |
| 11032 | lt_prog_compiler_wl_CXX='-Wl,' | lt_prog_compiler_wl_CXX='-Wl,' |
| # | Line 10513 echo $ECHO_N "checking for $compiler opt | Line 11035 echo $ECHO_N "checking for $compiler opt |
| 11035 | ;; | ;; |
| 11036 | dgux*) | dgux*) |
| 11037 | case $cc_basename in | case $cc_basename in |
| 11038 | ec++) | ec++*) |
| 11039 | lt_prog_compiler_pic_CXX='-KPIC' | lt_prog_compiler_pic_CXX='-KPIC' |
| 11040 | ;; | ;; |
| 11041 | ghcx) | ghcx*) |
| 11042 | # Green Hills C++ Compiler | # Green Hills C++ Compiler |
| 11043 | lt_prog_compiler_pic_CXX='-pic' | lt_prog_compiler_pic_CXX='-pic' |
| 11044 | ;; | ;; |
| # | Line 10524 echo $ECHO_N "checking for $compiler opt | Line 11046 echo $ECHO_N "checking for $compiler opt |
| 11046 | ;; | ;; |
| 11047 | esac | esac |
| 11048 | ;; | ;; |
| 11049 | freebsd* | kfreebsd*-gnu) | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 11050 | # FreeBSD uses GNU C++ | # FreeBSD uses GNU C++ |
| 11051 | ;; | ;; |
| 11052 | hpux9* | hpux10* | hpux11*) | hpux9* | hpux10* | hpux11*) |
| 11053 | case $cc_basename in | case $cc_basename in |
| 11054 | CC) | CC*) |
| 11055 | lt_prog_compiler_wl_CXX='-Wl,' | lt_prog_compiler_wl_CXX='-Wl,' |
| 11056 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 11057 | if test "$host_cpu" != ia64; then | if test "$host_cpu" != ia64; then |
| 11058 | lt_prog_compiler_pic_CXX='+Z' | lt_prog_compiler_pic_CXX='+Z' |
| 11059 | fi | fi |
| 11060 | ;; | ;; |
| 11061 | aCC) | aCC*) |
| 11062 | lt_prog_compiler_wl_CXX='-Wl,' | lt_prog_compiler_wl_CXX='-Wl,' |
| 11063 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 11064 | case "$host_cpu" in | case $host_cpu in |
| 11065 | hppa*64*|ia64*) | hppa*64*|ia64*) |
| 11066 | # +Z the default | # +Z the default |
| 11067 | ;; | ;; |
| # | Line 10552 echo $ECHO_N "checking for $compiler opt | Line 11074 echo $ECHO_N "checking for $compiler opt |
| 11074 | ;; | ;; |
| 11075 | esac | esac |
| 11076 | ;; | ;; |
| 11077 | interix*) | |
| 11078 | # This is c89, which is MS Visual C++ (no shared libs) | |
| 11079 | # Anyone wants to do a port? | |
| 11080 | ;; | |
| 11081 | irix5* | irix6* | nonstopux*) | irix5* | irix6* | nonstopux*) |
| 11082 | case $cc_basename in | case $cc_basename in |
| 11083 | CC) | CC*) |
| 11084 | lt_prog_compiler_wl_CXX='-Wl,' | lt_prog_compiler_wl_CXX='-Wl,' |
| 11085 | lt_prog_compiler_static_CXX='-non_shared' | lt_prog_compiler_static_CXX='-non_shared' |
| 11086 | # CC pic flag -KPIC is the default. | # CC pic flag -KPIC is the default. |
| # | Line 10565 echo $ECHO_N "checking for $compiler opt | Line 11091 echo $ECHO_N "checking for $compiler opt |
| 11091 | ;; | ;; |
| 11092 | linux*) | linux*) |
| 11093 | case $cc_basename in | case $cc_basename in |
| 11094 | KCC) | KCC*) |
| 11095 | # KAI C++ Compiler | # KAI C++ Compiler |
| 11096 | lt_prog_compiler_wl_CXX='--backend -Wl,' | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 11097 | lt_prog_compiler_pic_CXX='-fPIC' | lt_prog_compiler_pic_CXX='-fPIC' |
| 11098 | ;; | ;; |
| 11099 | icpc) | icpc* | ecpc*) |
| 11100 | # Intel C++ | # Intel C++ |
| 11101 | lt_prog_compiler_wl_CXX='-Wl,' | lt_prog_compiler_wl_CXX='-Wl,' |
| 11102 | lt_prog_compiler_pic_CXX='-KPIC' | lt_prog_compiler_pic_CXX='-KPIC' |
| 11103 | lt_prog_compiler_static_CXX='-static' | lt_prog_compiler_static_CXX='-static' |
| 11104 | ;; | ;; |
| 11105 | cxx) | pgCC*) |
| 11106 | # Compaq C++ | # Portland Group C++ compiler. |
| 11107 | lt_prog_compiler_wl_CXX='-Wl,' | |
| 11108 | lt_prog_compiler_pic_CXX='-fpic' | |
| 11109 | lt_prog_compiler_static_CXX='-Bstatic' | |
| 11110 | ;; | |
| 11111 | cxx*) | |
| 11112 | # Compaq C++ | |
| 11113 | # Make sure the PIC flag is empty. It appears that all Alpha | # Make sure the PIC flag is empty. It appears that all Alpha |
| 11114 | # Linux and Compaq Tru64 Unix objects are PIC. | # Linux and Compaq Tru64 Unix objects are PIC. |
| 11115 | lt_prog_compiler_pic_CXX= | lt_prog_compiler_pic_CXX= |
| # | Line 10593 echo $ECHO_N "checking for $compiler opt | Line 11125 echo $ECHO_N "checking for $compiler opt |
| 11125 | ;; | ;; |
| 11126 | mvs*) | mvs*) |
| 11127 | case $cc_basename in | case $cc_basename in |
| 11128 | cxx) | cxx*) |
| 11129 | lt_prog_compiler_pic_CXX='-W c,exportall' | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 11130 | ;; | ;; |
| 11131 | *) | *) |
| # | Line 10604 echo $ECHO_N "checking for $compiler opt | Line 11136 echo $ECHO_N "checking for $compiler opt |
| 11136 | ;; | ;; |
| 11137 | osf3* | osf4* | osf5*) | osf3* | osf4* | osf5*) |
| 11138 | case $cc_basename in | case $cc_basename in |
| 11139 | KCC) | KCC*) |
| 11140 | lt_prog_compiler_wl_CXX='--backend -Wl,' | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 11141 | ;; | ;; |
| 11142 | RCC) | RCC*) |
| 11143 | # Rational C++ 2.4.1 | # Rational C++ 2.4.1 |
| 11144 | lt_prog_compiler_pic_CXX='-pic' | lt_prog_compiler_pic_CXX='-pic' |
| 11145 | ;; | ;; |
| 11146 | cxx) | cxx*) |
| 11147 | # Digital/Compaq C++ | # Digital/Compaq C++ |
| 11148 | lt_prog_compiler_wl_CXX='-Wl,' | lt_prog_compiler_wl_CXX='-Wl,' |
| 11149 | # Make sure the PIC flag is empty. It appears that all Alpha | # Make sure the PIC flag is empty. It appears that all Alpha |
| # | Line 10625 echo $ECHO_N "checking for $compiler opt | Line 11157 echo $ECHO_N "checking for $compiler opt |
| 11157 | ;; | ;; |
| 11158 | psos*) | psos*) |
| 11159 | ;; | ;; |
| sco*) | ||
| case $cc_basename in | ||
| CC) | ||
| lt_prog_compiler_pic_CXX='-fPIC' | ||
| ;; | ||
| *) | ||
| ;; | ||
| esac | ||
| ;; | ||
| 11160 | solaris*) | solaris*) |
| 11161 | case $cc_basename in | case $cc_basename in |
| 11162 | CC) | CC*) |
| 11163 | # Sun C++ 4.2, 5.x and Centerline C++ | # Sun C++ 4.2, 5.x and Centerline C++ |
| 11164 | lt_prog_compiler_pic_CXX='-KPIC' | lt_prog_compiler_pic_CXX='-KPIC' |
| 11165 | lt_prog_compiler_static_CXX='-Bstatic' | lt_prog_compiler_static_CXX='-Bstatic' |
| 11166 | lt_prog_compiler_wl_CXX='-Qoption ld ' | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 11167 | ;; | ;; |
| 11168 | gcx) | gcx*) |
| 11169 | # Green Hills C++ Compiler | # Green Hills C++ Compiler |
| 11170 | lt_prog_compiler_pic_CXX='-PIC' | lt_prog_compiler_pic_CXX='-PIC' |
| 11171 | ;; | ;; |
| # | Line 10652 echo $ECHO_N "checking for $compiler opt | Line 11175 echo $ECHO_N "checking for $compiler opt |
| 11175 | ;; | ;; |
| 11176 | sunos4*) | sunos4*) |
| 11177 | case $cc_basename in | case $cc_basename in |
| 11178 | CC) | CC*) |
| 11179 | # Sun C++ 4.x | # Sun C++ 4.x |
| 11180 | lt_prog_compiler_pic_CXX='-pic' | lt_prog_compiler_pic_CXX='-pic' |
| 11181 | lt_prog_compiler_static_CXX='-Bstatic' | lt_prog_compiler_static_CXX='-Bstatic' |
| 11182 | ;; | ;; |
| 11183 | lcc) | lcc*) |
| 11184 | # Lucid | # Lucid |
| 11185 | lt_prog_compiler_pic_CXX='-pic' | lt_prog_compiler_pic_CXX='-pic' |
| 11186 | ;; | ;; |
| # | Line 10667 echo $ECHO_N "checking for $compiler opt | Line 11190 echo $ECHO_N "checking for $compiler opt |
| 11190 | ;; | ;; |
| 11191 | tandem*) | tandem*) |
| 11192 | case $cc_basename in | case $cc_basename in |
| 11193 | NCC) | NCC*) |
| 11194 | # NonStop-UX NCC 3.20 | # NonStop-UX NCC 3.20 |
| 11195 | lt_prog_compiler_pic_CXX='-KPIC' | lt_prog_compiler_pic_CXX='-KPIC' |
| 11196 | ;; | ;; |
| # | Line 10675 echo $ECHO_N "checking for $compiler opt | Line 11198 echo $ECHO_N "checking for $compiler opt |
| 11198 | ;; | ;; |
| 11199 | esac | esac |
| 11200 | ;; | ;; |
| 11201 | unixware*) | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 11202 | case $cc_basename in | |
| 11203 | CC*) | |
| 11204 | lt_prog_compiler_wl_CXX='-Wl,' | |
| 11205 | lt_prog_compiler_pic_CXX='-KPIC' | |
| 11206 | lt_prog_compiler_static_CXX='-Bstatic' | |
| 11207 | ;; | |
| 11208 | esac | |
| 11209 | ;; | ;; |
| 11210 | vxworks*) | vxworks*) |
| 11211 | ;; | ;; |
| # | Line 10708 else | Line 11238 else |
| 11238 | # with a dollar sign (not a hyphen), so the echo should work correctly. | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11239 | # The option is referenced via a variable to avoid confusing sed. | # The option is referenced via a variable to avoid confusing sed. |
| 11240 | lt_compile=`echo "$ac_compile" | $SED \ | lt_compile=`echo "$ac_compile" | $SED \ |
| 11241 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11242 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11243 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
| 11244 | (eval echo "\"\$as_me:10714: $lt_compile\"" >&5) | (eval echo "\"\$as_me:11244: $lt_compile\"" >&5) |
| 11245 | (eval "$lt_compile" 2>conftest.err) | (eval "$lt_compile" 2>conftest.err) |
| 11246 | ac_status=$? | ac_status=$? |
| 11247 | cat conftest.err >&5 | cat conftest.err >&5 |
| 11248 | echo "$as_me:10718: \$? = $ac_status" >&5 | echo "$as_me:11248: \$? = $ac_status" >&5 |
| 11249 | if (exit $ac_status) && test -s "$ac_outfile"; then | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11250 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
| 11251 | # So say no if there are warnings | # So say no if there are warnings other than the usual output. |
| 11252 | if test ! -s conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 11253 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 11254 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
| 11255 | lt_prog_compiler_pic_works_CXX=yes | lt_prog_compiler_pic_works_CXX=yes |
| 11256 | fi | fi |
| 11257 | fi | fi |
| # | Line 10740 else | Line 11272 else |
| 11272 | fi | fi |
| 11273 | ||
| 11274 | fi | fi |
| 11275 | case "$host_os" in | case $host_os in |
| 11276 | # For platforms which do not support PIC, -DPIC is meaningless: | # For platforms which do not support PIC, -DPIC is meaningless: |
| 11277 | *djgpp*) | *djgpp*) |
| 11278 | lt_prog_compiler_pic_CXX= | lt_prog_compiler_pic_CXX= |
| # | Line 10750 case "$host_os" in | Line 11282 case "$host_os" in |
| 11282 | ;; | ;; |
| 11283 | esac | esac |
| 11284 | ||
| 11285 | # | |
| 11286 | # Check to make sure the static flag actually works. | |
| 11287 | # | |
| 11288 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
| 11289 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
| 11290 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
| 11291 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
| 11292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11293 | else | |
| 11294 | lt_prog_compiler_static_works_CXX=no | |
| 11295 | save_LDFLAGS="$LDFLAGS" | |
| 11296 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
| 11297 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
| 11298 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
| 11299 | # The linker can only warn and ignore the option if not recognized | |
| 11300 | # So say no if there are warnings | |
| 11301 | if test -s conftest.err; then | |
| 11302 | # Append any errors to the config.log. | |
| 11303 | cat conftest.err 1>&5 | |
| 11304 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
| 11305 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 11306 | if diff conftest.exp conftest.er2 >/dev/null; then | |
| 11307 | lt_prog_compiler_static_works_CXX=yes | |
| 11308 | fi | |
| 11309 | else | |
| 11310 | lt_prog_compiler_static_works_CXX=yes | |
| 11311 | fi | |
| 11312 | fi | |
| 11313 | $rm conftest* | |
| 11314 | LDFLAGS="$save_LDFLAGS" | |
| 11315 | ||
| 11316 | fi | |
| 11317 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
| 11318 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | |
| 11319 | ||
| 11320 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
| 11321 | : | |
| 11322 | else | |
| 11323 | lt_prog_compiler_static_CXX= | |
| 11324 | fi | |
| 11325 | ||
| 11326 | ||
| 11327 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11328 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 11329 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| # | Line 10768 else | Line 11342 else |
| 11342 | # Note that $ac_compile itself does not contain backslashes and begins | # Note that $ac_compile itself does not contain backslashes and begins |
| 11343 | # with a dollar sign (not a hyphen), so the echo should work correctly. | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11344 | lt_compile=`echo "$ac_compile" | $SED \ | lt_compile=`echo "$ac_compile" | $SED \ |
| 11345 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11346 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11347 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
| 11348 | (eval echo "\"\$as_me:10774: $lt_compile\"" >&5) | (eval echo "\"\$as_me:11348: $lt_compile\"" >&5) |
| 11349 | (eval "$lt_compile" 2>out/conftest.err) | (eval "$lt_compile" 2>out/conftest.err) |
| 11350 | ac_status=$? | ac_status=$? |
| 11351 | cat out/conftest.err >&5 | cat out/conftest.err >&5 |
| 11352 | echo "$as_me:10778: \$? = $ac_status" >&5 | echo "$as_me:11352: \$? = $ac_status" >&5 |
| 11353 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11354 | then | then |
| 11355 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
| 11356 | # So say no if there are warnings | # So say no if there are warnings |
| 11357 | if test ! -s out/conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 11358 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
| 11359 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
| 11360 | lt_cv_prog_compiler_c_o_CXX=yes | lt_cv_prog_compiler_c_o_CXX=yes |
| 11361 | fi | fi |
| 11362 | fi | fi |
| 11363 | chmod u+w . | chmod u+w . 2>&5 |
| 11364 | $rm conftest* | $rm conftest* |
| 11365 | # SGI C++ compiler will create directory out/ii_files/ for | # SGI C++ compiler will create directory out/ii_files/ for |
| 11366 | # template instantiation | # template instantiation |
| # | Line 10839 echo $ECHO_N "checking whether the $comp | Line 11415 echo $ECHO_N "checking whether the $comp |
| 11415 | export_symbols_cmds_CXX="$ltdll_cmds" | export_symbols_cmds_CXX="$ltdll_cmds" |
| 11416 | ;; | ;; |
| 11417 | cygwin* | mingw*) | cygwin* | mingw*) |
| 11418 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 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' |
| 11419 | ;; | ;; |
| 11420 | *) | *) |
| 11421 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| # | Line 10850 echo "$as_me:$LINENO: result: $ld_shlibs | Line 11426 echo "$as_me:$LINENO: result: $ld_shlibs |
| 11426 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 11427 | test "$ld_shlibs_CXX" = no && can_build_shared=no | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11428 | ||
| variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
| if test "$GCC" = yes; then | ||
| variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
| fi | ||
| 11429 | # | # |
| 11430 | # Do we need to explicitly link libc? | # Do we need to explicitly link libc? |
| 11431 | # | # |
| # | Line 10887 echo $ECHO_N "checking whether -lc shoul | Line 11458 echo $ECHO_N "checking whether -lc shoul |
| 11458 | libobjs=conftest.$ac_objext | libobjs=conftest.$ac_objext |
| 11459 | deplibs= | deplibs= |
| 11460 | wl=$lt_prog_compiler_wl_CXX | wl=$lt_prog_compiler_wl_CXX |
| 11461 | pic_flag=$lt_prog_compiler_pic_CXX | |
| 11462 | compiler_flags=-v | compiler_flags=-v |
| 11463 | linker_flags=-v | linker_flags=-v |
| 11464 | verstring= | verstring= |
| # | Line 11047 cygwin* | mingw* | pw32*) | Line 11619 cygwin* | mingw* | pw32*) |
| 11619 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 11620 | dldir=$destdir/`dirname \$dlpath`~ | dldir=$destdir/`dirname \$dlpath`~ |
| 11621 | test -d \$dldir || mkdir -p \$dldir~ | test -d \$dldir || mkdir -p \$dldir~ |
| 11622 | $install_prog $dir/$dlname \$dldir/$dlname' | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 11623 | chmod a+x \$dldir/$dlname' | |
| 11624 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 11625 | dlpath=$dir/\$dldll~ | dlpath=$dir/\$dldll~ |
| 11626 | $rm \$dlpath' | $rm \$dlpath' |
| # | Line 11077 cygwin* | mingw* | pw32*) | Line 11650 cygwin* | mingw* | pw32*) |
| 11650 | ;; | ;; |
| 11651 | pw32*) | pw32*) |
| 11652 | # pw32 DLLs use 'pw' prefix rather than 'lib' | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 11653 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11654 | ;; | ;; |
| 11655 | esac | esac |
| 11656 | ;; | ;; |
| 11657 | ||
| 11658 | linux*) | |
| 11659 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
| 11660 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
| 11661 | supports_anon_versioning=no | |
| 11662 | case `$LD -v 2>/dev/null` in | |
| 11663 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
| 11664 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
| 11665 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
| 11666 | *\ 2.11.*) ;; # other 2.11 versions | |
| 11667 | *) supports_anon_versioning=yes ;; | |
| 11668 | esac | |
| 11669 | if test $supports_anon_versioning = yes; then | |
| 11670 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
| 11671 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 11672 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 11673 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
| 11674 | else | |
| 11675 | $archive_expsym_cmds="$archive_cmds" | |
| 11676 | fi | |
| 11677 | else | |
| 11678 | ld_shlibs=no | |
| 11679 | fi | |
| 11680 | ;; | |
| 11681 | ||
| 11682 | *) | *) |
| 11683 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11684 | ;; | ;; |
| # | Line 11100 darwin* | rhapsody*) | Line 11697 darwin* | rhapsody*) |
| 11697 | soname_spec='${libname}${release}${major}$shared_ext' | soname_spec='${libname}${release}${major}$shared_ext' |
| 11698 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
| 11699 | shlibpath_var=DYLD_LIBRARY_PATH | shlibpath_var=DYLD_LIBRARY_PATH |
| 11700 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 11701 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 11702 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
| 11703 | 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"` | 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"` |
| # | Line 11135 kfreebsd*-gnu) | Line 11732 kfreebsd*-gnu) |
| 11732 | dynamic_linker='GNU ld.so' | dynamic_linker='GNU ld.so' |
| 11733 | ;; | ;; |
| 11734 | ||
| 11735 | freebsd*) | freebsd* | dragonfly*) |
| 11736 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | # DragonFly does not have aout. When/if they implement a new |
| 11737 | version_type=freebsd-$objformat | # versioning mechanism, adjust this. |
| 11738 | if test -x /usr/bin/objformat; then | |
| 11739 | objformat=`/usr/bin/objformat` | |
| 11740 | else | |
| 11741 | case $host_os in | |
| 11742 | freebsd[123]*) objformat=aout ;; | |
| 11743 | *) objformat=elf ;; | |
| 11744 | esac | |
| 11745 | fi | |
| 11746 | # Handle Gentoo/FreeBSD as it was Linux | |
| 11747 | case $host_vendor in | |
| 11748 | gentoo) | |
| 11749 | version_type=linux ;; | |
| 11750 | *) | |
| 11751 | version_type=freebsd-$objformat ;; | |
| 11752 | esac | |
| 11753 | ||
| 11754 | case $version_type in | case $version_type in |
| 11755 | freebsd-elf*) | freebsd-elf*) |
| 11756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| # | Line 11148 freebsd*) | Line 11761 freebsd*) |
| 11761 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11762 | need_version=yes | need_version=yes |
| 11763 | ;; | ;; |
| 11764 | linux) | |
| 11765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
| 11766 | soname_spec='${libname}${release}${shared_ext}$major' | |
| 11767 | need_lib_prefix=no | |
| 11768 | need_version=no | |
| 11769 | ;; | |
| 11770 | esac | esac |
| 11771 | shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH |
| 11772 | case $host_os in | case $host_os in |
| 11773 | freebsd2*) | freebsd2*) |
| 11774 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
| 11775 | ;; | ;; |
| 11776 | freebsd3.01* | freebsdelf3.01*) | freebsd3.[01]* | freebsdelf3.[01]*) |
| 11777 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
| 11778 | hardcode_into_libs=yes | hardcode_into_libs=yes |
| 11779 | ;; | ;; |
| 11780 | *) # from 3.2 on | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 11781 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
| 11782 | shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no |
| 11783 | hardcode_into_libs=yes | hardcode_into_libs=yes |
| 11784 | ;; | ;; |
| 11785 | freebsd*) # from 4.6 on | |
| 11786 | shlibpath_overrides_runpath=yes | |
| 11787 | hardcode_into_libs=yes | |
| 11788 | ;; | |
| 11789 | esac | esac |
| 11790 | ;; | ;; |
| 11791 | ||
| # | Line 11181 hpux9* | hpux10* | hpux11*) | Line 11805 hpux9* | hpux10* | hpux11*) |
| 11805 | version_type=sunos | version_type=sunos |
| 11806 | need_lib_prefix=no | need_lib_prefix=no |
| 11807 | need_version=no | need_version=no |
| 11808 | case "$host_cpu" in | case $host_cpu in |
| 11809 | ia64*) | ia64*) |
| 11810 | shrext_cmds='.so' | shrext_cmds='.so' |
| 11811 | hardcode_into_libs=yes | hardcode_into_libs=yes |
| # | Line 11221 hpux9* | hpux10* | hpux11*) | Line 11845 hpux9* | hpux10* | hpux11*) |
| 11845 | postinstall_cmds='chmod 555 $lib' | postinstall_cmds='chmod 555 $lib' |
| 11846 | ;; | ;; |
| 11847 | ||
| 11848 | interix3*) | |
| 11849 | version_type=linux | |
| 11850 | need_lib_prefix=no | |
| 11851 | need_version=no | |
| 11852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
| 11853 | soname_spec='${libname}${release}${shared_ext}$major' | |
| 11854 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
| 11855 | shlibpath_var=LD_LIBRARY_PATH | |
| 11856 | shlibpath_overrides_runpath=no | |
| 11857 | hardcode_into_libs=yes | |
| 11858 | ;; | |
| 11859 | ||
| 11860 | irix5* | irix6* | nonstopux*) | irix5* | irix6* | nonstopux*) |
| 11861 | case $host_os in | case $host_os in |
| 11862 | nonstopux*) version_type=nonstopux ;; | nonstopux*) version_type=nonstopux ;; |
| # | Line 11280 linux*) | Line 11916 linux*) |
| 11916 | ||
| 11917 | # Append ld.so.conf contents to the search path | # Append ld.so.conf contents to the search path |
| 11918 | if test -f /etc/ld.so.conf; then | if test -f /etc/ld.so.conf; then |
| 11919 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 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' ' '` |
| 11920 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11921 | fi | fi |
| 11922 | ||
| # | Line 11342 nto-qnx*) | Line 11978 nto-qnx*) |
| 11978 | ||
| 11979 | openbsd*) | openbsd*) |
| 11980 | version_type=sunos | version_type=sunos |
| 11981 | sys_lib_dlsearch_path_spec="/usr/lib" | |
| 11982 | need_lib_prefix=no | need_lib_prefix=no |
| 11983 | need_version=no | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11984 | case $host_os in | |
| 11985 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
| 11986 | *) need_version=no ;; | |
| 11987 | esac | |
| 11988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11989 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11990 | shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH |
| # | Line 11381 osf3* | osf4* | osf5*) | Line 12022 osf3* | osf4* | osf5*) |
| 12022 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 12023 | ;; | ;; |
| 12024 | ||
| sco3.2v5*) | ||
| version_type=osf | ||
| soname_spec='${libname}${release}${shared_ext}$major' | ||
| library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
| shlibpath_var=LD_LIBRARY_PATH | ||
| ;; | ||
| 12025 | solaris*) | solaris*) |
| 12026 | version_type=linux | version_type=linux |
| 12027 | need_lib_prefix=no | need_lib_prefix=no |
| # | Line 11413 sunos4*) | Line 12047 sunos4*) |
| 12047 | need_version=yes | need_version=yes |
| 12048 | ;; | ;; |
| 12049 | ||
| 12050 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | sysv4 | sysv4.3*) |
| 12051 | version_type=linux | version_type=linux |
| 12052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12053 | soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' |
| # | Line 11446 sysv4*MP*) | Line 12080 sysv4*MP*) |
| 12080 | fi | fi |
| 12081 | ;; | ;; |
| 12082 | ||
| 12083 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
| 12084 | version_type=freebsd-elf | |
| 12085 | need_lib_prefix=no | |
| 12086 | need_version=no | |
| 12087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
| 12088 | soname_spec='${libname}${release}${shared_ext}$major' | |
| 12089 | shlibpath_var=LD_LIBRARY_PATH | |
| 12090 | hardcode_into_libs=yes | |
| 12091 | if test "$with_gnu_ld" = yes; then | |
| 12092 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
| 12093 | shlibpath_overrides_runpath=no | |
| 12094 | else | |
| 12095 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
| 12096 | shlibpath_overrides_runpath=yes | |
| 12097 | case $host_os in | |
| 12098 | sco3.2v5*) | |
| 12099 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
| 12100 | ;; | |
| 12101 | esac | |
| 12102 | fi | |
| 12103 | sys_lib_dlsearch_path_spec='/usr/lib' | |
| 12104 | ;; | |
| 12105 | ||
| 12106 | uts4*) | uts4*) |
| 12107 | version_type=linux | version_type=linux |
| 12108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| # | Line 11461 echo "$as_me:$LINENO: result: $dynamic_l | Line 12118 echo "$as_me:$LINENO: result: $dynamic_l |
| 12118 | echo "${ECHO_T}$dynamic_linker" >&6 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 12119 | test "$dynamic_linker" = no && can_build_shared=no | test "$dynamic_linker" = no && can_build_shared=no |
| 12120 | ||
| 12121 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
| 12122 | if test "$GCC" = yes; then | |
| 12123 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
| 12124 | fi | |
| 12125 | ||
| 12126 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 12127 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 12128 | hardcode_action_CXX= | hardcode_action_CXX= |
| # | Line 11498 elif test "$shlibpath_overrides_runpath" | Line 12160 elif test "$shlibpath_overrides_runpath" |
| 12160 | enable_fast_install=needless | enable_fast_install=needless |
| 12161 | fi | fi |
| 12162 | ||
| striplib= | ||
| old_striplib= | ||
| echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
| echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
| if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
| test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
| test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
| echo "$as_me:$LINENO: result: yes" >&5 | ||
| echo "${ECHO_T}yes" >&6 | ||
| else | ||
| # FIXME - insert some real tests, host_os isn't really good enough | ||
| case $host_os in | ||
| darwin*) | ||
| if test -n "$STRIP" ; then | ||
| striplib="$STRIP -x" | ||
| echo "$as_me:$LINENO: result: yes" >&5 | ||
| echo "${ECHO_T}yes" >&6 | ||
| else | ||
| echo "$as_me:$LINENO: result: no" >&5 | ||
| echo "${ECHO_T}no" >&6 | ||
| fi | ||
| ;; | ||
| *) | ||
| echo "$as_me:$LINENO: result: no" >&5 | ||
| echo "${ECHO_T}no" >&6 | ||
| ;; | ||
| esac | ||
| fi | ||
| 12163 | ||
| 12164 | if test "x$enable_dlopen" != xyes; then | # The else clause should only fire when bootstrapping the |
| 12165 | enable_dlopen=unknown | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 12166 | enable_dlopen_self=unknown | # with your package, and you will get complaints that there are |
| 12167 | enable_dlopen_self_static=unknown | # no rules to generate ltmain.sh. |
| 12168 | else | if test -f "$ltmain"; then |
| 12169 | lt_cv_dlopen=no | # See if we are running on zsh, and set the options which allow our commands through |
| 12170 | lt_cv_dlopen_libs= | # without removal of \ escapes. |
| 12171 | if test -n "${ZSH_VERSION+set}" ; then | |
| 12172 | setopt NO_GLOB_SUBST | |
| 12173 | fi | |
| 12174 | # Now quote all the things that may contain metacharacters while being | |
| 12175 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
| 12176 | # variables and quote the copies for generation of the libtool script. | |
| 12177 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
| 12178 | SED SHELL STRIP \ | |
| 12179 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
| 12180 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
| 12181 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
| 12182 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
| 12183 | lt_cv_sys_global_symbol_to_c_name_address \ | |
| 12184 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
| 12185 | old_postinstall_cmds old_postuninstall_cmds \ | |
| 12186 | compiler_CXX \ | |
| 12187 | CC_CXX \ | |
| 12188 | LD_CXX \ | |
| 12189 | lt_prog_compiler_wl_CXX \ | |
| 12190 | lt_prog_compiler_pic_CXX \ | |
| 12191 | lt_prog_compiler_static_CXX \ | |
| 12192 | lt_prog_compiler_no_builtin_flag_CXX \ | |
| 12193 | export_dynamic_flag_spec_CXX \ | |
| 12194 | thread_safe_flag_spec_CXX \ | |
| 12195 | whole_archive_flag_spec_CXX \ | |
| 12196 | enable_shared_with_static_runtimes_CXX \ | |
| 12197 | old_archive_cmds_CXX \ | |
| 12198 | old_archive_from_new_cmds_CXX \ | |
| 12199 | predep_objects_CXX \ | |
| 12200 | postdep_objects_CXX \ | |
| 12201 | predeps_CXX \ | |
| 12202 | postdeps_CXX \ | |
| 12203 | compiler_lib_search_path_CXX \ | |
| 12204 | archive_cmds_CXX \ | |
| 12205 | archive_expsym_cmds_CXX \ | |
| 12206 | postinstall_cmds_CXX \ | |
| 12207 | postuninstall_cmds_CXX \ | |
| 12208 | old_archive_from_expsyms_cmds_CXX \ | |
| 12209 | allow_undefined_flag_CXX \ | |
| 12210 | no_undefined_flag_CXX \ | |
| 12211 | export_symbols_cmds_CXX \ | |
| 12212 | hardcode_libdir_flag_spec_CXX \ | |
| 12213 | hardcode_libdir_flag_spec_ld_CXX \ | |
| 12214 | hardcode_libdir_separator_CXX \ | |
| 12215 | hardcode_automatic_CXX \ | |
| 12216 | module_cmds_CXX \ | |
| 12217 | module_expsym_cmds_CXX \ | |
| 12218 | lt_cv_prog_compiler_c_o_CXX \ | |
| 12219 | exclude_expsyms_CXX \ | |
| 12220 | include_expsyms_CXX; do | |
| 12221 | ||
| 12222 | case $host_os in | case $var in |
| 12223 | beos*) | old_archive_cmds_CXX | \ |
| 12224 | lt_cv_dlopen="load_add_on" | old_archive_from_new_cmds_CXX | \ |
| 12225 | lt_cv_dlopen_libs= | archive_cmds_CXX | \ |
| 12226 | lt_cv_dlopen_self=yes | archive_expsym_cmds_CXX | \ |
| 12227 | module_cmds_CXX | \ | |
| 12228 | module_expsym_cmds_CXX | \ | |
| 12229 | old_archive_from_expsyms_cmds_CXX | \ | |
| 12230 | export_symbols_cmds_CXX | \ | |
| 12231 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
| 12232 | postinstall_cmds | postuninstall_cmds | \ | |
| 12233 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
| 12234 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
| 12235 | # Double-quote double-evaled strings. | |
| 12236 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
| 12237 | ;; | |
| 12238 | *) | |
| 12239 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
| 12240 | ;; | |
| 12241 | esac | |
| 12242 | done | |
| 12243 | ||
| 12244 | case $lt_echo in | |
| 12245 | *'\$0 --fallback-echo"') | |
| 12246 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
| 12247 | ;; | ;; |
| 12248 | esac | |
| 12249 | ||
| 12250 | mingw* | pw32*) | cfgfile="$ofile" |
| lt_cv_dlopen="LoadLibrary" | ||
| lt_cv_dlopen_libs= | ||
| ;; | ||
| 12251 | ||
| 12252 | cygwin*) | cat <<__EOF__ >> "$cfgfile" |
| 12253 | lt_cv_dlopen="dlopen" | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| lt_cv_dlopen_libs= | ||
| ;; | ||
| 12254 | ||
| 12255 | darwin*) | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| # if libdl is installed we need to link against it | ||
| echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
| echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
| if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
| echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| else | ||
| ac_check_lib_save_LIBS=$LIBS | ||
| LIBS="-ldl $LIBS" | ||
| cat >conftest.$ac_ext <<_ACEOF | ||
| /* confdefs.h. */ | ||
| _ACEOF | ||
| cat confdefs.h >>conftest.$ac_ext | ||
| cat >>conftest.$ac_ext <<_ACEOF | ||
| /* end confdefs.h. */ | ||
| 12256 | ||
| 12257 | /* Override any gcc2 internal prototype to avoid an error. */ | # Shell to use when invoking shell scripts. |
| 12258 | #ifdef __cplusplus | SHELL=$lt_SHELL |
| extern "C" | ||
| #endif | ||
| /* We use char because int might match the return type of a gcc2 | ||
| builtin and then its argument prototype would still apply. */ | ||
| char dlopen (); | ||
| int | ||
| main () | ||
| { | ||
| dlopen (); | ||
| ; | ||
| return 0; | ||
| } | ||
| _ACEOF | ||
| rm -f conftest.$ac_objext conftest$ac_exeext | ||
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| (eval $ac_link) 2>conftest.er1 | ||
| ac_status=$? | ||
| grep -v '^ *+' conftest.er1 >conftest.err | ||
| rm -f conftest.er1 | ||
| cat conftest.err >&5 | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); } && | ||
| { ac_try='test -z "$ac_cxx_werror_flag" | ||
| || test ! -s conftest.err' | ||
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| (eval $ac_try) 2>&5 | ||
| ac_status=$? | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); }; } && | ||
| { ac_try='test -s conftest$ac_exeext' | ||
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| (eval $ac_try) 2>&5 | ||
| ac_status=$? | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); }; }; then | ||
| ac_cv_lib_dl_dlopen=yes | ||
| else | ||
| echo "$as_me: failed program was:" >&5 | ||
| sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 12259 | ||
| 12260 | ac_cv_lib_dl_dlopen=no | # Whether or not to build shared libraries. |
| 12261 | fi | build_libtool_libs=$enable_shared |
| rm -f conftest.err conftest.$ac_objext \ | ||
| conftest$ac_exeext conftest.$ac_ext | ||
| LIBS=$ac_check_lib_save_LIBS | ||
| fi | ||
| echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
| echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
| if test $ac_cv_lib_dl_dlopen = yes; then | ||
| lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
| else | ||
| 12262 | ||
| 12263 | lt_cv_dlopen="dyld" | # Whether or not to build static libraries. |
| 12264 | lt_cv_dlopen_libs= | build_old_libs=$enable_static |
| lt_cv_dlopen_self=yes | ||
| 12265 | ||
| 12266 | fi | # Whether or not to add -lc for building shared libraries. |
| 12267 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
| 12268 | ||
| 12269 | ;; | # Whether or not to disallow shared libs when runtime libs are static |
| 12270 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
| 12271 | ||
| 12272 | *) | # Whether or not to optimize for fast installation. |
| 12273 | echo "$as_me:$LINENO: checking for shl_load" >&5 | fast_install=$enable_fast_install |
| echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
| if test "${ac_cv_func_shl_load+set}" = set; then | ||
| echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| else | ||
| cat >conftest.$ac_ext <<_ACEOF | ||
| /* confdefs.h. */ | ||
| _ACEOF | ||
| cat confdefs.h >>conftest.$ac_ext | ||
| cat >>conftest.$ac_ext <<_ACEOF | ||
| /* end confdefs.h. */ | ||
| /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
| #define shl_load innocuous_shl_load | ||
| 12274 | ||
| 12275 | /* System header to define __stub macros and hopefully few prototypes, | # The host system. |
| 12276 | which can conflict with char shl_load (); below. | host_alias=$host_alias |
| 12277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | host=$host |
| 12278 | <limits.h> exists even on freestanding compilers. */ | host_os=$host_os |
| 12279 | ||
| 12280 | #ifdef __STDC__ | # The build system. |
| 12281 | # include <limits.h> | build_alias=$build_alias |
| 12282 | #else | build=$build |
| 12283 | # include <assert.h> | build_os=$build_os |
| #endif | ||
| 12284 | ||
| 12285 | #undef shl_load | # An echo program that does not interpret backslashes. |
| 12286 | echo=$lt_echo | |
| 12287 | ||
| 12288 | /* Override any gcc2 internal prototype to avoid an error. */ | # The archiver. |
| 12289 | #ifdef __cplusplus | AR=$lt_AR |
| 12290 | extern "C" | AR_FLAGS=$lt_AR_FLAGS |
| { | ||
| #endif | ||
| /* We use char because int might match the return type of a gcc2 | ||
| builtin and then its argument prototype would still apply. */ | ||
| char shl_load (); | ||
| /* The GNU C library defines this for functions which it implements | ||
| to always fail with ENOSYS. Some functions are actually named | ||
| something starting with __ and the normal name is an alias. */ | ||
| #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
| choke me | ||
| #else | ||
| char (*f) () = shl_load; | ||
| #endif | ||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
| 12291 | ||
| 12292 | int | # A C compiler. |
| 12293 | main () | LTCC=$lt_LTCC |
| { | ||
| return f != shl_load; | ||
| ; | ||
| return 0; | ||
| } | ||
| _ACEOF | ||
| rm -f conftest.$ac_objext conftest$ac_exeext | ||
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| (eval $ac_link) 2>conftest.er1 | ||
| ac_status=$? | ||
| grep -v '^ *+' conftest.er1 >conftest.err | ||
| rm -f conftest.er1 | ||
| cat conftest.err >&5 | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); } && | ||
| { ac_try='test -z "$ac_cxx_werror_flag" | ||
| || test ! -s conftest.err' | ||
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| (eval $ac_try) 2>&5 | ||
| ac_status=$? | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); }; } && | ||
| { ac_try='test -s conftest$ac_exeext' | ||
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| (eval $ac_try) 2>&5 | ||
| ac_status=$? | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); }; }; then | ||
| ac_cv_func_shl_load=yes | ||
| else | ||
| echo "$as_me: failed program was:" >&5 | ||
| sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 12294 | ||
| 12295 | ac_cv_func_shl_load=no | # LTCC compiler flags. |
| 12296 | fi | LTCFLAGS=$lt_LTCFLAGS |
| rm -f conftest.err conftest.$ac_objext \ | ||
| conftest$ac_exeext conftest.$ac_ext | ||
| fi | ||
| echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
| echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
| if test $ac_cv_func_shl_load = yes; then | ||
| lt_cv_dlopen="shl_load" | ||
| else | ||
| echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
| echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
| if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
| echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| else | ||
| ac_check_lib_save_LIBS=$LIBS | ||
| LIBS="-ldld $LIBS" | ||
| cat >conftest.$ac_ext <<_ACEOF | ||
| /* confdefs.h. */ | ||
| _ACEOF | ||
| cat confdefs.h >>conftest.$ac_ext | ||
| cat >>conftest.$ac_ext <<_ACEOF | ||
| /* end confdefs.h. */ | ||
| 12297 | ||
| 12298 | /* Override any gcc2 internal prototype to avoid an error. */ | # A language-specific compiler. |
| 12299 | #ifdef __cplusplus | CC=$lt_compiler_CXX |
| extern "C" | ||
| #endif | ||
| /* We use char because int might match the return type of a gcc2 | ||
| builtin and then its argument prototype would still apply. */ | ||
| char shl_load (); | ||
| int | ||
| main () | ||
| { | ||
| shl_load (); | ||
| ; | ||
| return 0; | ||
| } | ||
| _ACEOF | ||
| rm -f conftest.$ac_objext conftest$ac_exeext | ||
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| (eval $ac_link) 2>conftest.er1 | ||
| ac_status=$? | ||
| grep -v '^ *+' conftest.er1 >conftest.err | ||
| rm -f conftest.er1 | ||
| cat conftest.err >&5 | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); } && | ||
| { ac_try='test -z "$ac_cxx_werror_flag" | ||
| || test ! -s conftest.err' | ||
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| (eval $ac_try) 2>&5 | ||
| ac_status=$? | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); }; } && | ||
| { ac_try='test -s conftest$ac_exeext' | ||
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| (eval $ac_try) 2>&5 | ||
| ac_status=$? | ||
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| (exit $ac_status); }; }; then | ||
| ac_cv_lib_dld_shl_load=yes | ||
| else | ||
| echo "$as_me: failed program was:" >&5 | ||
| sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 12300 | ||
| 12301 | ac_cv_lib_dld_shl_load=no | # Is the compiler the GNU C compiler? |
| 12302 | fi | with_gcc=$GCC_CXX |
| rm -f conftest.err conftest.$ac_objext \ | ||
| conftest$ac_exeext conftest.$ac_ext | ||
| LIBS=$ac_check_lib_save_LIBS | ||
| fi | ||
| echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
| echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
| if test $ac_cv_lib_dld_shl_load = yes; then | ||
| lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
| else | ||
| echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
| echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
| if test "${ac_cv_func_dlopen+set}" = set; then | ||
| echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| else | ||
| cat >conftest.$ac_ext <<_ACEOF | ||
| /* confdefs.h. */ | ||
| _ACEOF | ||
| cat confdefs.h >>conftest.$ac_ext | ||
| cat >>conftest.$ac_ext <<_ACEOF | ||
| /* end confdefs.h. */ | ||
| /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
| #define dlopen innocuous_dlopen | ||
| 12303 | ||
| 12304 | /* System header to define __stub macros and hopefully few prototypes, | # An ERE matcher. |
| 12305 | which can conflict with char dlopen (); below. | EGREP=$lt_EGREP |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| <limits.h> exists even on freestanding compilers. */ | ||
| 12306 | ||
| 12307 | #ifdef __STDC__ | # The linker used to build libraries. |
| 12308 | # include <limits.h> | LD=$lt_LD_CXX |
| #else | ||
| # include <assert.h> | ||
| #endif | ||
| 12309 | ||
| 12310 | #undef dlopen | # Whether we need hard or soft links. |
| 12311 | LN_S=$lt_LN_S | |
| 12312 | ||
| 12313 | /* Override any gcc2 internal prototype to avoid an error. */ | # A BSD-compatible nm program. |
| 12314 | #ifdef __cplusplus | NM=$lt_NM |
| extern "C" | ||
| { | ||
| #endif | ||
| /* We use char because int might match the |