Parent Directory
|
Revision Log
|
Patch
revision 75 by nigel, Sat Feb 24 21:40:37 2007 UTC | revision 83 by nigel, Sat Feb 24 21:41:06 2007 UTC | |
---|---|---|
# | Line 463 ac_includes_default="\ | Line 463 ac_includes_default="\ |
463 | # include <unistd.h> | # include <unistd.h> |
464 | #endif" | #endif" |
465 | ||
466 | 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 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 CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_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 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 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' |
467 | ac_subst_files='' | ac_subst_files='' |
468 | ||
469 | # Initialize some variables set by options. | # Initialize some variables set by options. |
# | Line 920 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | Line 920 ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
920 | ac_env_CPPFLAGS_value=$CPPFLAGS | ac_env_CPPFLAGS_value=$CPPFLAGS |
921 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
922 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
ac_env_CPP_set=${CPP+set} | ||
ac_env_CPP_value=$CPP | ||
ac_cv_env_CPP_set=${CPP+set} | ||
ac_cv_env_CPP_value=$CPP | ||
923 | ac_env_CXX_set=${CXX+set} | ac_env_CXX_set=${CXX+set} |
924 | ac_env_CXX_value=$CXX | ac_env_CXX_value=$CXX |
925 | ac_cv_env_CXX_set=${CXX+set} | ac_cv_env_CXX_set=${CXX+set} |
# | Line 932 ac_env_CXXFLAGS_set=${CXXFLAGS+set} | Line 928 ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
928 | ac_env_CXXFLAGS_value=$CXXFLAGS | ac_env_CXXFLAGS_value=$CXXFLAGS |
929 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
930 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
931 | ac_env_CPP_set=${CPP+set} | |
932 | ac_env_CPP_value=$CPP | |
933 | ac_cv_env_CPP_set=${CPP+set} | |
934 | ac_cv_env_CPP_value=$CPP | |
935 | ac_env_CXXCPP_set=${CXXCPP+set} | ac_env_CXXCPP_set=${CXXCPP+set} |
936 | ac_env_CXXCPP_value=$CXXCPP | ac_env_CXXCPP_value=$CXXCPP |
937 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
# | Line 950 ac_cv_env_FFLAGS_value=$FFLAGS | Line 950 ac_cv_env_FFLAGS_value=$FFLAGS |
950 | # | # |
951 | if test "$ac_init_help" = "long"; then | if test "$ac_init_help" = "long"; then |
952 | # Omit some internal or obsolete options to make the list less imposing. | # Omit some internal or obsolete options to make the list less imposing. |
# The list generated by autoconf has been trimmed to remove many | ||
# options that are totally irrelevant to PCRE (e.g. relating to X), | ||
# or are not supported by its Makefile. | ||
# The list generated by autoconf has been trimmed to remove many | ||
# options that are totally irrelevant to PCRE (e.g. relating to X), | ||
# or are not supported by its Makefile. | ||
# The list generated by autoconf has been trimmed to remove many | ||
# options that are totally irrelevant to PCRE (e.g. relating to X), | ||
# or are not supported by its Makefile. | ||
# The list generated by autoconf has been trimmed to remove many | ||
# options that are totally irrelevant to PCRE (e.g. relating to X), | ||
# or are not supported by its Makefile. | ||
# The list generated by autoconf has been trimmed to remove many | ||
# options that are totally irrelevant to PCRE (e.g. relating to X), | ||
# or are not supported by its Makefile. | ||
# The list generated by autoconf has been trimmed to remove many | ||
# options that are totally irrelevant to PCRE (e.g. relating to X), | ||
# or are not supported by its Makefile. | ||
953 | # This message is too long to be a string in the A/UX 3.1 sh. | # This message is too long to be a string in the A/UX 3.1 sh. |
954 | cat <<_ACEOF | cat <<_ACEOF |
955 | \`configure' configures this package to adapt to many kinds of systems. | \`configure' configures this package to adapt to many kinds of systems. |
# | Line 1008 For better control, use the options belo | Line 990 For better control, use the options belo |
990 | ||
991 | Fine tuning of the installation directories: | Fine tuning of the installation directories: |
992 | --bindir=DIR user executables [EPREFIX/bin] | --bindir=DIR user executables [EPREFIX/bin] |
993 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
994 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
995 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
996 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
997 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
998 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
999 | --libdir=DIR object code libraries [EPREFIX/lib] | --libdir=DIR object code libraries [EPREFIX/lib] |
1000 | --includedir=DIR C header files [PREFIX/include] | --includedir=DIR C header files [PREFIX/include] |
1001 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1002 | --infodir=DIR info documentation [PREFIX/info] | |
1003 | --mandir=DIR man documentation [PREFIX/man] | --mandir=DIR man documentation [PREFIX/man] |
1004 | _ACEOF | _ACEOF |
1005 | ||
1006 | cat <<\_ACEOF | cat <<\_ACEOF |
1007 | ||
1008 | System types: | |
1009 | --build=BUILD configure for building on BUILD [guessed] | |
1010 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1011 | _ACEOF | _ACEOF |
1012 | fi | fi |
1013 | ||
# | Line 1025 if test -n "$ac_init_help"; then | Line 1018 if test -n "$ac_init_help"; then |
1018 | Optional Features: | Optional Features: |
1019 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1020 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1021 | --enable-shared[ ] | --disable-cpp disable C++ support |
1022 | --enable-shared[=PKGS] | |
1023 | build shared libraries [default=yes] | build shared libraries [default=yes] |
1024 | --enable-static[ ] | --enable-static[=PKGS] |
1025 | build static libraries [default=yes] | build static libraries [default=yes] |
1026 | --enable-fast-install[ ] | --enable-fast-install[=PKGS] |
1027 | optimize for fast installation [default=yes] | optimize for fast installation [default=yes] |
1028 | --disable-libtool-lock avoid locking (might break parallel builds) | --disable-libtool-lock avoid locking (might break parallel builds) |
1029 | --enable-utf8 enable UTF8 support | --enable-utf8 enable UTF8 support |
# | Line 1040 Optional Features: | Line 1034 Optional Features: |
1034 | --disable-stack-for-recursion disable use of stack recursion when matching | --disable-stack-for-recursion disable use of stack recursion when matching |
1035 | ||
1036 | Optional Packages: | Optional Packages: |
1037 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1038 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1039 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1040 | --with-pic try to use only PIC/non-PIC objects [default=use | --with-pic try to use only PIC/non-PIC objects [default=use |
1041 | both] | both] |
# | Line 1056 Some influential environment variables: | Line 1052 Some influential environment variables: |
1052 | nonstandard directory <lib dir> | nonstandard directory <lib dir> |
1053 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1054 | headers in a nonstandard directory <include dir> | headers in a nonstandard directory <include dir> |
CPP C preprocessor | ||
1055 | CXX C++ compiler command | CXX C++ compiler command |
1056 | CXXFLAGS C++ compiler flags | CXXFLAGS C++ compiler flags |
1057 | CPP C preprocessor | |
1058 | CXXCPP C++ preprocessor | CXXCPP C++ preprocessor |
1059 | F77 Fortran 77 compiler command | F77 Fortran 77 compiler command |
1060 | FFLAGS Fortran 77 compiler flags | FFLAGS Fortran 77 compiler flags |
# | Line 1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu | Line 1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1505 | ||
1506 | ||
1507 | ||
1508 | PCRE_MAJOR=5 | PCRE_MAJOR=6 |
1509 | PCRE_MINOR=0 | PCRE_MINOR=3 |
1510 | PCRE_DATE=13-Sep-2004 | PCRE_DATE=15-Aug-2005 |
1511 | PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} | PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} |
1512 | ||
1513 | ||
# | Line 1520 POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_TH | Line 1516 POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_TH |
1516 | ||
1517 | PCRE_LIB_VERSION=0:1:0 | PCRE_LIB_VERSION=0:1:0 |
1518 | PCRE_POSIXLIB_VERSION=0:0:0 | PCRE_POSIXLIB_VERSION=0:0:0 |
1519 | PCRE_CPPLIB_VERSION=0:0:0 | |
1520 | ||
1521 | ||
1522 | # Check whether --enable-cpp or --disable-cpp was given. | |
1523 | if test "${enable_cpp+set}" = set; then | |
1524 | enableval="$enable_cpp" | |
1525 | want_cpp="$enableval" | |
1526 | else | |
1527 | want_cpp=yes | |
1528 | fi; | |
1529 | ||
1530 | ||
1531 | ac_ext=c | ac_ext=c |
# | Line 2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu | Line 2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2460 | ||
2461 | ||
2462 | ||
2463 | ac_aux_dir= | ac_ext=cc |
2464 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ac_cpp='$CXXCPP $CPPFLAGS' |
2465 | if test -f $ac_dir/install-sh; then | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2466 | ac_aux_dir=$ac_dir | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2467 | ac_install_sh="$ac_aux_dir/install-sh -c" | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2468 | break | if test -n "$ac_tool_prefix"; then |
2469 | elif test -f $ac_dir/install.sh; then | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2470 | ac_aux_dir=$ac_dir | do |
2471 | ac_install_sh="$ac_aux_dir/install.sh -c" | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2472 | break | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2473 | elif test -f $ac_dir/shtool; then | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2474 | ac_aux_dir=$ac_dir | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2475 | ac_install_sh="$ac_aux_dir/shtool install -c" | if test "${ac_cv_prog_CXX+set}" = set; then |
2476 | break | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2477 | else | |
2478 | if test -n "$CXX"; then | |
2479 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2480 | else | |
2481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2482 | for as_dir in $PATH | |
2483 | do | |
2484 | IFS=$as_save_IFS | |
2485 | test -z "$as_dir" && as_dir=. | |
2486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2488 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2490 | break 2 | |
2491 | fi | fi |
2492 | done | done |
2493 | if test -z "$ac_aux_dir"; then | done |
2494 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
2495 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | fi |
2496 | { (exit 1); exit 1; }; } | fi |
2497 | CXX=$ac_cv_prog_CXX | |
2498 | if test -n "$CXX"; then | |
2499 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2500 | echo "${ECHO_T}$CXX" >&6 | |
2501 | else | |
2502 | echo "$as_me:$LINENO: result: no" >&5 | |
2503 | echo "${ECHO_T}no" >&6 | |
2504 | fi | fi |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2505 | ||
2506 | # Find a good install program. We prefer a C program (faster), | test -n "$CXX" && break |
2507 | # so one script is as good as another. But avoid the broken or | done |
2508 | # incompatible versions: | fi |
2509 | # SysV /etc/install, /usr/sbin/install | if test -z "$CXX"; then |
2510 | # SunOS /usr/etc/install | ac_ct_CXX=$CXX |
2511 | # IRIX /sbin/install | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2512 | # AIX /bin/install | do |
2513 | # AmigaOS /C/install, which installs bootblocks on floppy discs | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2514 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | set dummy $ac_prog; ac_word=$2 |
2515 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2516 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2517 | # OS/2's system install, which has a completely different semantic | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
# ./install, which can be erroneously created by make from ./install.sh. | ||
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
if test -z "$INSTALL"; then | ||
if test "${ac_cv_path_install+set}" = set; then | ||
2518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2519 | else | else |
2520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | if test -n "$ac_ct_CXX"; then |
2521 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2522 | else | |
2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2524 | for as_dir in $PATH | for as_dir in $PATH |
2525 | do | do |
2526 | IFS=$as_save_IFS | IFS=$as_save_IFS |
2527 | test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. |
2528 | # Account for people who put trailing slashes in PATH elements. | for ac_exec_ext in '' $ac_executable_extensions; do |
2529 | case $as_dir/ in | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2530 | ./ | .// | /cC/* | \ | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2531 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2532 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | break 2 |
2533 | /usr/ucb/* ) ;; | fi |
2534 | *) | done |
# OSF1 and SCO ODT 3.0 have their own names for install. | ||
# Don't use installbsd from OSF since it installs stuff as root | ||
# by default. | ||
for ac_prog in ginstall scoinst install; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
if test $ac_prog = install && | ||
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
# AIX install. It has an incompatible calling convention. | ||
: | ||
elif test $ac_prog = install && | ||
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
# program-specific install script used by HP pwplus--don't use. | ||
: | ||
else | ||
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
break 3 | ||
fi | ||
fi | ||
done | ||
done | ||
;; | ||
esac | ||
2535 | done | done |
2536 | ||
2537 | fi | fi |
if test "${ac_cv_path_install+set}" = set; then | ||
INSTALL=$ac_cv_path_install | ||
else | ||
# As a last resort, use the slow shell script. We don't cache a | ||
# path for INSTALL within a source directory, because that will | ||
# break other packages using the cache if that directory is | ||
# removed, or if the path is relative. | ||
INSTALL=$ac_install_sh | ||
fi | ||
2538 | fi | fi |
2539 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2540 | echo "${ECHO_T}$INSTALL" >&6 | if test -n "$ac_ct_CXX"; then |
2541 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2542 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | echo "${ECHO_T}$ac_ct_CXX" >&6 |
2543 | # It thinks the first close brace ends the variable substitution. | else |
2544 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | echo "$as_me:$LINENO: result: no" >&5 |
2545 | echo "${ECHO_T}no" >&6 | |
2546 | fi | |
2547 | ||
2548 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | test -n "$ac_ct_CXX" && break |
2549 | done | |
2550 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2551 | ||
2552 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | CXX=$ac_ct_CXX |
2553 | fi | |
2554 | ||
2555 | ||
2556 | # Provide some information about the compiler. | |
2557 | echo "$as_me:$LINENO:" \ | |
2558 | "checking for C++ compiler version" >&5 | |
2559 | ac_compiler=`set X $ac_compile; echo $2` | |
2560 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2561 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2562 | ac_status=$? | |
2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2564 | (exit $ac_status); } | |
2565 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2566 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2567 | ac_status=$? | |
2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2569 | (exit $ac_status); } | |
2570 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2571 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2572 | ac_status=$? | |
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2574 | (exit $ac_status); } | |
2575 | ||
2576 | # Check whether --enable-shared or --disable-shared was given. | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2577 | if test "${enable_shared+set}" = set; then | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
2578 | enableval="$enable_shared" | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2579 | p=${PACKAGE-default} | echo $ECHO_N "(cached) $ECHO_C" >&6 |
case $enableval in | ||
yes) enable_shared=yes ;; | ||
no) enable_shared=no ;; | ||
*) | ||
enable_shared=no | ||
# Look at the argument we got. We use all the common list separators. | ||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
for pkg in $enableval; do | ||
IFS="$lt_save_ifs" | ||
if test "X$pkg" = "X$p"; then | ||
enable_shared=yes | ||
fi | ||
done | ||
IFS="$lt_save_ifs" | ||
;; | ||
esac | ||
2580 | else | else |
2581 | enable_shared=yes | cat >conftest.$ac_ext <<_ACEOF |
2582 | fi; | /* confdefs.h. */ |
2583 | _ACEOF | |
2584 | cat confdefs.h >>conftest.$ac_ext | |
2585 | cat >>conftest.$ac_ext <<_ACEOF | |
2586 | /* end confdefs.h. */ | |
2587 | ||
2588 | # Check whether --enable-static or --disable-static was given. | int |
2589 | if test "${enable_static+set}" = set; then | main () |
2590 | enableval="$enable_static" | { |
2591 | p=${PACKAGE-default} | #ifndef __GNUC__ |
2592 | case $enableval in | choke me |
2593 | yes) enable_static=yes ;; | #endif |
no) enable_static=no ;; | ||
*) | ||
enable_static=no | ||
# Look at the argument we got. We use all the common list separators. | ||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
for pkg in $enableval; do | ||
IFS="$lt_save_ifs" | ||
if test "X$pkg" = "X$p"; then | ||
enable_static=yes | ||
fi | ||
done | ||
IFS="$lt_save_ifs" | ||
;; | ||
esac | ||
else | ||
enable_static=yes | ||
fi; | ||
2594 | ||
2595 | # Check whether --enable-fast-install or --disable-fast-install was given. | ; |
2596 | if test "${enable_fast_install+set}" = set; then | return 0; |
2597 | enableval="$enable_fast_install" | } |
2598 | p=${PACKAGE-default} | _ACEOF |
2599 | case $enableval in | rm -f conftest.$ac_objext |
2600 | yes) enable_fast_install=yes ;; | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2601 | no) enable_fast_install=no ;; | (eval $ac_compile) 2>conftest.er1 |
2602 | *) | ac_status=$? |
2603 | enable_fast_install=no | grep -v '^ *+' conftest.er1 >conftest.err |
2604 | # Look at the argument we got. We use all the common list separators. | rm -f conftest.er1 |
2605 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | cat conftest.err >&5 |
2606 | for pkg in $enableval; do | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2607 | IFS="$lt_save_ifs" | (exit $ac_status); } && |
2608 | if test "X$pkg" = "X$p"; then | { ac_try='test -z "$ac_cxx_werror_flag" |
2609 | enable_fast_install=yes | || test ! -s conftest.err' |
2610 | fi | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2611 | done | (eval $ac_try) 2>&5 |
2612 | IFS="$lt_save_ifs" | ac_status=$? |
2613 | ;; | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2614 | esac | (exit $ac_status); }; } && |
2615 | else | { ac_try='test -s conftest.$ac_objext' |
2616 | enable_fast_install=yes | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2617 | fi; | (eval $ac_try) 2>&5 |
2618 | ac_status=$? | |
2619 | # Make sure we can run config.sub. | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2620 | $ac_config_sub sun4 >/dev/null 2>&1 || | (exit $ac_status); }; }; then |
2621 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ac_compiler_gnu=yes |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
{ (exit 1); exit 1; }; } | ||
echo "$as_me:$LINENO: checking build system type" >&5 | ||
echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
if test "${ac_cv_build+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
ac_cv_build_alias=$build_alias | ||
test -z "$ac_cv_build_alias" && | ||
ac_cv_build_alias=`$ac_config_guess` | ||
test -z "$ac_cv_build_alias" && | ||
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
{ (exit 1); exit 1; }; } | ||
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
{ (exit 1); exit 1; }; } | ||
fi | ||
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
echo "${ECHO_T}$ac_cv_build" >&6 | ||
build=$ac_cv_build | ||
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
echo "$as_me:$LINENO: checking host system type" >&5 | ||
echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
if test "${ac_cv_host+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
ac_cv_host_alias=$host_alias | ||
test -z "$ac_cv_host_alias" && | ||
ac_cv_host_alias=$ac_cv_build_alias | ||
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
{ (exit 1); exit 1; }; } | ||
fi | ||
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
echo "${ECHO_T}$ac_cv_host" >&6 | ||
host=$ac_cv_host | ||
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | ||
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | ||
if test "${lt_cv_path_SED+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
# Loop through the user's path and test for sed and gsed. | ||
# Then use that list of sed's as ones to test for truncation. | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for lt_ac_prog in sed gsed; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
fi | ||
done | ||
done | ||
done | ||
lt_ac_max=0 | ||
lt_ac_count=0 | ||
# Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
# along with /bin/sed that truncates output. | ||
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
test ! -f $lt_ac_sed && break | ||
cat /dev/null > conftest.in | ||
lt_ac_count=0 | ||
echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
# Check for GNU sed and select it if it is found. | ||
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
lt_cv_path_SED=$lt_ac_sed | ||
break | ||
fi | ||
while true; do | ||
cat conftest.in conftest.in >conftest.tmp | ||
mv conftest.tmp conftest.in | ||
cp conftest.in conftest.nl | ||
echo >>conftest.nl | ||
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
cmp -s conftest.out conftest.nl || break | ||
# 10000 chars as input seems more than enough | ||
test $lt_ac_count -gt 10 && break | ||
lt_ac_count=`expr $lt_ac_count + 1` | ||
if test $lt_ac_count -gt $lt_ac_max; then | ||
lt_ac_max=$lt_ac_count | ||
lt_cv_path_SED=$lt_ac_sed | ||
fi | ||
done | ||
done | ||
fi | ||
SED=$lt_cv_path_SED | ||
echo "$as_me:$LINENO: result: $SED" >&5 | ||
echo "${ECHO_T}$SED" >&6 | ||
echo "$as_me:$LINENO: checking for egrep" >&5 | ||
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
if test "${ac_cv_prog_egrep+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
then ac_cv_prog_egrep='grep -E' | ||
else ac_cv_prog_egrep='egrep' | ||
fi | ||
fi | ||
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
EGREP=$ac_cv_prog_egrep | ||
# Check whether --with-gnu-ld or --without-gnu-ld was given. | ||
if test "${with_gnu_ld+set}" = set; then | ||
withval="$with_gnu_ld" | ||
test "$withval" = no || with_gnu_ld=yes | ||
else | ||
with_gnu_ld=no | ||
fi; | ||
ac_prog=ld | ||
if test "$GCC" = yes; then | ||
# Check if gcc -print-prog-name=ld gives a path. | ||
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | ||
case $host in | ||
*-*-mingw*) | ||
# gcc leaves a trailing carriage return which upsets mingw | ||
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
*) | ||
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
esac | ||
case $ac_prog in | ||
# Accept absolute paths. | ||
[\\/]* | ?:[\\/]*) | ||
re_direlt='/[^/][^/]*/\.\./' | ||
# Canonicalize the pathname of ld | ||
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
done | ||
test -z "$LD" && LD="$ac_prog" | ||
;; | ||
"") | ||
# If it fails, then pretend we aren't using GCC. | ||
ac_prog=ld | ||
;; | ||
*) | ||
# If it is relative, then search for the first ld in PATH. | ||
with_gnu_ld=unknown | ||
;; | ||
esac | ||
elif test "$with_gnu_ld" = yes; then | ||
echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | ||
else | ||
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | ||
fi | ||
if test "${lt_cv_path_LD+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
if test -z "$LD"; then | ||
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
for ac_dir in $PATH; do | ||
IFS="$lt_save_ifs" | ||
test -z "$ac_dir" && ac_dir=. | ||
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
lt_cv_path_LD="$ac_dir/$ac_prog" | ||
# Check to see if the program is GNU ld. I'd rather use --version, | ||
# but apparently some GNU ld's only accept -v. | ||
# Break only if it was the GNU/non-GNU ld that we prefer. | ||
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
*GNU* | *'with BFD'*) | ||
test "$with_gnu_ld" != no && break | ||
;; | ||
*) | ||
test "$with_gnu_ld" != yes && break | ||
;; | ||
esac | ||
fi | ||
done | ||
IFS="$lt_save_ifs" | ||
else | ||
lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
fi | ||
fi | ||
LD="$lt_cv_path_LD" | ||
if test -n "$LD"; then | ||
echo "$as_me:$LINENO: result: $LD" >&5 | ||
echo "${ECHO_T}$LD" >&6 | ||
else | ||
echo "$as_me:$LINENO: result: no" >&5 | ||
echo "${ECHO_T}no" >&6 | ||
fi | ||
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
{ (exit 1); exit 1; }; } | ||
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | ||
if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
# I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
case `$LD -v 2>&1 </dev/null` in | ||
*GNU* | *'with BFD'*) | ||
lt_cv_prog_gnu_ld=yes | ||
;; | ||
*) | ||
lt_cv_prog_gnu_ld=no | ||
;; | ||
esac | ||
fi | ||
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | ||
with_gnu_ld=$lt_cv_prog_gnu_ld | ||
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | ||
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | ||
if test "${lt_cv_ld_reload_flag+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
lt_cv_ld_reload_flag='-r' | ||
fi | ||
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | ||
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | ||
reload_flag=$lt_cv_ld_reload_flag | ||
case $reload_flag in | ||
"" | " "*) ;; | ||
*) reload_flag=" $reload_flag" ;; | ||
esac | ||
reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
case $host_os in | ||
darwin*) | ||
if test "$GCC" = yes; then | ||
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | ||
else | ||
reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
fi | ||
;; | ||
esac | ||
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | ||
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | ||
if test "${lt_cv_path_NM+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
if test -n "$NM"; then | ||
# Let the user override the test. | ||
lt_cv_path_NM="$NM" | ||
2622 | else | else |
2623 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | echo "$as_me: failed program was:" >&5 |
2624 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | sed 's/^/| /' conftest.$ac_ext >&5 |
IFS="$lt_save_ifs" | ||
test -z "$ac_dir" && ac_dir=. | ||
tmp_nm="$ac_dir/${ac_tool_prefix}nm" | ||
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
# Check to see if the nm accepts a BSD-compat flag. | ||
# Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
# nm: unknown option "B" ignored | ||
# Tru64's nm complains that /dev/null is an invalid object file | ||
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
*/dev/null* | *'Invalid file or object type'*) | ||
lt_cv_path_NM="$tmp_nm -B" | ||
break | ||
;; | ||
*) | ||
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
*/dev/null*) | ||
lt_cv_path_NM="$tmp_nm -p" | ||
break | ||
;; | ||
*) | ||
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
continue # so that we can try to find one that supports BSD flags | ||
;; | ||
esac | ||
esac | ||
fi | ||
done | ||
IFS="$lt_save_ifs" | ||
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
fi | ||
fi | ||
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | ||
echo "${ECHO_T}$lt_cv_path_NM" >&6 | ||
NM="$lt_cv_path_NM" | ||
2625 | ||
2626 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | ac_compiler_gnu=no |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | ||
LN_S=$as_ln_s | ||
if test "$LN_S" = "ln -s"; then | ||
echo "$as_me:$LINENO: result: yes" >&5 | ||
echo "${ECHO_T}yes" >&6 | ||
else | ||
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | ||
echo "${ECHO_T}no, using $LN_S" >&6 | ||
2627 | fi | fi |
2628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2629 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | ||
if test "${lt_cv_deplibs_check_method+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
lt_cv_file_magic_test_file= | ||
lt_cv_deplibs_check_method='unknown' | ||
# Need to set the preceding variable on all platforms that support | ||
# interlibrary dependencies. | ||
# 'none' -- dependencies not supported. | ||
# `unknown' -- same as none, but documents that we really don't know. | ||
# 'pass_all' -- all dependencies passed with no checks. | ||
# 'test_compile' -- check by making test program. | ||
# 'file_magic [[regex]]' -- check by looking for files in library path | ||
# which responds to the $file_magic_cmd with a given extended regex. | ||
# If you have `file' or equivalent on your system and you're not sure | ||
# whether `pass_all' will *always* work, you probably want this one. | ||
case $host_os in | ||
aix4* | aix5*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
beos*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
bsdi[45]*) | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
lt_cv_file_magic_test_file=/shlib/libc.so | ||
;; | ||
cygwin*) | ||
# func_win32_libid is a shell function defined in ltmain.sh | ||
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
lt_cv_file_magic_cmd='func_win32_libid' | ||
;; | ||
mingw* | pw32*) | ||
# Base MSYS/MinGW do not provide the 'file' command needed by | ||
# func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
;; | ||
darwin* | rhapsody*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
freebsd* | kfreebsd*-gnu) | ||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
case $host_cpu in | ||
i*86 ) | ||
# Not sure whether the presence of OpenBSD here was a mistake. | ||
# Let's accept both of them until this is cleared up. | ||
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
;; | ||
esac | ||
else | ||
lt_cv_deplibs_check_method=pass_all | ||
fi | ||
;; | ||
gnu*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
hpux10.20* | hpux11*) | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
case "$host_cpu" in | ||
ia64*) | ||
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_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
;; | ||
hppa*64*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
;; | ||
*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
;; | ||
esac | ||
;; | ||
irix5* | irix6* | nonstopux*) | ||
case $LD in | ||
*-32|*"-32 ") libmagic=32-bit;; | ||
*-n32|*"-n32 ") libmagic=N32;; | ||
*-64|*"-64 ") libmagic=64-bit;; | ||
*) libmagic=never-match;; | ||
esac | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
# This must be Linux ELF. | ||
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` | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
netbsd*) | ||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
else | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
fi | ||
;; | ||
newos6*) | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
;; | ||
nto-qnx*) | ||
lt_cv_deplibs_check_method=unknown | ||
;; | ||
openbsd*) | ||
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
else | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
fi | ||
;; | ||
osf3* | osf4* | osf5*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
sco3.2v5*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
solaris*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
case $host_vendor in | ||
motorola) | ||
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_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
;; | ||
ncr) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
sequent) | ||
lt_cv_file_magic_cmd='/bin/file' | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
;; | ||
sni) | ||
lt_cv_file_magic_cmd='/bin/file' | ||
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
lt_cv_file_magic_test_file=/lib/libc.so | ||
;; | ||
siemens) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
esac | ||
;; | ||
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
esac | ||
2630 | ||
2631 | fi | fi |
2632 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2633 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
2634 | file_magic_cmd=$lt_cv_file_magic_cmd | GXX=`test $ac_compiler_gnu = yes && echo yes` |
2635 | deplibs_check_method=$lt_cv_deplibs_check_method | ac_test_CXXFLAGS=${CXXFLAGS+set} |
2636 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ac_save_CXXFLAGS=$CXXFLAGS |
2637 | CXXFLAGS="-g" | |
2638 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2639 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2640 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2641 | # If no C compiler was specified, use CC. | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2642 | LTCC=${LTCC-"$CC"} | else |
2643 | cat >conftest.$ac_ext <<_ACEOF | |
2644 | # Allow CC to be a program name with arguments. | /* confdefs.h. */ |
2645 | compiler=$CC | _ACEOF |
2646 | cat confdefs.h >>conftest.$ac_ext | |
2647 | cat >>conftest.$ac_ext <<_ACEOF | |
2648 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | /* end confdefs.h. */ |
if test "${enable_libtool_lock+set}" = set; then | ||
enableval="$enable_libtool_lock" | ||
2649 | ||
2650 | fi; | int |
2651 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | main () |
2652 | { | |
2653 | ||
2654 | # Some flags need to be propagated to the compiler or linker for good | ; |
2655 | # libtool support. | return 0; |
2656 | case $host in | } |
2657 | ia64-*-hpux*) | _ACEOF |
2658 | # Find out which ABI we are using. | rm -f conftest.$ac_objext |
2659 | echo 'int i;' > conftest.$ac_ext | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | (eval $ac_compile) 2>conftest.er1 |
(eval $ac_compile) 2>&5 | ||
2661 | ac_status=$? | ac_status=$? |
2662 | grep -v '^ *+' conftest.er1 >conftest.err | |
2663 | rm -f conftest.er1 | |
2664 | cat conftest.err >&5 | |
2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2666 | (exit $ac_status); }; then | (exit $ac_status); } && |
2667 | case `/usr/bin/file conftest.$ac_objext` in | { ac_try='test -z "$ac_cxx_werror_flag" |
2668 | *ELF-32*) | || test ! -s conftest.err' |
2669 | HPUX_IA64_MODE="32" | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2670 | ;; | (eval $ac_try) 2>&5 |
*ELF-64*) | ||
HPUX_IA64_MODE="64" | ||
;; | ||
esac | ||
fi | ||
rm -rf conftest* | ||
;; | ||
*-*-irix6*) | ||
# Find out which ABI we are using. | ||
echo '#line 3173 "configure"' > conftest.$ac_ext | ||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
(eval $ac_compile) 2>&5 | ||
2671 | ac_status=$? | ac_status=$? |
2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2673 | (exit $ac_status); }; then | (exit $ac_status); }; } && |
2674 | if test "$lt_cv_prog_gnu_ld" = yes; then | { ac_try='test -s conftest.$ac_objext' |
2675 | case `/usr/bin/file conftest.$ac_objext` in | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2676 | *32-bit*) | (eval $ac_try) 2>&5 |
LD="${LD-ld} -melf32bsmip" | ||
;; | ||
*N32*) | ||
LD="${LD-ld} -melf32bmipn32" | ||
;; | ||
*64-bit*) | ||
LD="${LD-ld} -melf64bmip" | ||
;; | ||
esac | ||
else | ||
case `/usr/bin/file conftest.$ac_objext` in | ||
*32-bit*) | ||
LD="${LD-ld} -32" | ||
;; | ||
*N32*) | ||
LD="${LD-ld} -n32" | ||
;; | ||
*64-bit*) | ||
LD="${LD-ld} -64" | ||
;; | ||
esac | ||
fi | ||
fi | ||
rm -rf conftest* | ||
;; | ||
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
# Find out which ABI we are using. | ||
echo 'int i;' > conftest.$ac_ext | ||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
(eval $ac_compile) 2>&5 | ||
2677 | ac_status=$? | ac_status=$? |
2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2679 | (exit $ac_status); }; then | (exit $ac_status); }; }; then |
2680 | case "`/usr/bin/file conftest.o`" in | ac_cv_prog_cxx_g=yes |
*32-bit*) | ||
case $host in | ||
x86_64-*linux*) | ||
LD="${LD-ld} -m elf_i386" | ||
;; | ||
ppc64-*linux*|powerpc64-*linux*) | ||
LD="${LD-ld} -m elf32ppclinux" | ||
;; | ||
s390x-*linux*) | ||
LD="${LD-ld} -m elf_s390" | ||
;; | ||
sparc64-*linux*) | ||
LD="${LD-ld} -m elf32_sparc" | ||
;; | ||
esac | ||
;; | ||
*64-bit*) | ||
case $host in | ||
x86_64-*linux*) | ||
LD="${LD-ld} -m elf_x86_64" | ||
;; | ||
ppc*-*linux*|powerpc*-*linux*) | ||
LD="${LD-ld} -m elf64ppc" | ||
;; | ||
s390*-*linux*) | ||
LD="${LD-ld} -m elf64_s390" | ||
;; | ||
sparc*-*linux*) | ||
LD="${LD-ld} -m elf64_sparc" | ||
;; | ||
esac | ||
;; | ||
esac | ||
fi | ||
rm -rf conftest* | ||
;; | ||
*-*-sco3.2v5*) | ||
# On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
SAVE_CFLAGS="$CFLAGS" | ||
CFLAGS="$CFLAGS -belf" | ||
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | ||
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | ||
if test "${lt_cv_cc_needs_belf+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2681 | else | else |
2682 | ac_ext=c | echo "$as_me: failed program was:" >&5 |
2683 | ac_cpp='$CPP $CPPFLAGS' | sed 's/^/| /' conftest.$ac_ext >&5 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2684 | ||
2685 | cat >conftest.$ac_ext <<_ACEOF | ac_cv_prog_cxx_g=no |
2686 | fi | |
2687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2688 | fi | |
2689 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2690 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2691 | if test "$ac_test_CXXFLAGS" = set; then | |
2692 | CXXFLAGS=$ac_save_CXXFLAGS | |
2693 | elif test $ac_cv_prog_cxx_g = yes; then | |
2694 | if test "$GXX" = yes; then | |
2695 | CXXFLAGS="-g -O2" | |
2696 | else | |
2697 | CXXFLAGS="-g" | |
2698 | fi | |
2699 | else | |
2700 | if test "$GXX" = yes; then | |
2701 | CXXFLAGS="-O2" | |
2702 | else | |
2703 | CXXFLAGS= | |
2704 | fi | |
2705 | fi | |
2706 | for ac_declaration in \ | |
2707 | '' \ | |
2708 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2709 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2710 | 'extern "C" void exit (int) throw ();' \ | |
2711 | 'extern "C" void exit (int);' \ | |
2712 | 'void exit (int);' | |
2713 | do | |
2714 | cat >conftest.$ac_ext <<_ACEOF | |
2715 | /* confdefs.h. */ | /* confdefs.h. */ |
2716 | _ACEOF | _ACEOF |
2717 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
2718 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
2719 | /* end confdefs.h. */ | /* end confdefs.h. */ |
2720 | $ac_declaration | |
2721 | #include <stdlib.h> | |
2722 | int | int |
2723 | main () | main () |
2724 | { | { |
2725 | exit (42); | |
2726 | ; | |
2727 | return 0; | |
2728 | } | |
2729 | _ACEOF | |
2730 | rm -f conftest.$ac_objext | |
2731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2732 | (eval $ac_compile) 2>conftest.er1 | |
2733 | ac_status=$? | |
2734 | grep -v '^ *+' conftest.er1 >conftest.err | |
2735 | rm -f conftest.er1 | |
2736 | cat conftest.err >&5 | |
2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2738 | (exit $ac_status); } && | |
2739 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2740 | || test ! -s conftest.err' | |
2741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2742 | (eval $ac_try) 2>&5 | |
2743 | ac_status=$? | |
2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2745 | (exit $ac_status); }; } && | |
2746 | { ac_try='test -s conftest.$ac_objext' | |
2747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2748 | (eval $ac_try) 2>&5 | |
2749 | ac_status=$? | |
2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2751 | (exit $ac_status); }; }; then | |
2752 | : | |
2753 | else | |
2754 | echo "$as_me: failed program was:" >&5 | |
2755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2756 | ||
2757 | continue | |
2758 | fi | |
2759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2760 | cat >conftest.$ac_ext <<_ACEOF | |
2761 | /* confdefs.h. */ | |
2762 | _ACEOF | |
2763 | cat confdefs.h >>conftest.$ac_ext | |
2764 | cat >>conftest.$ac_ext <<_ACEOF | |
2765 | /* end confdefs.h. */ | |
2766 | $ac_declaration | |
2767 | int | |
2768 | main () | |
2769 | { | |
2770 | exit (42); | |
2771 | ; | ; |
2772 | return 0; | return 0; |
2773 | } | } |
2774 | _ACEOF | _ACEOF |
2775 | rm -f conftest.$ac_objext conftest$ac_exeext | rm -f conftest.$ac_objext |
2776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2777 | (eval $ac_link) 2>conftest.er1 | (eval $ac_compile) 2>conftest.er1 |
2778 | ac_status=$? | ac_status=$? |
2779 | grep -v '^ *+' conftest.er1 >conftest.err | grep -v '^ *+' conftest.er1 >conftest.err |
2780 | rm -f conftest.er1 | rm -f conftest.er1 |
2781 | cat conftest.err >&5 | cat conftest.err >&5 |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2783 | (exit $ac_status); } && | (exit $ac_status); } && |
2784 | { ac_try='test -z "$ac_c_werror_flag" | { ac_try='test -z "$ac_cxx_werror_flag" |
2785 | || test ! -s conftest.err' | || test ! -s conftest.err' |
2786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2787 | (eval $ac_try) 2>&5 | (eval $ac_try) 2>&5 |
2788 | ac_status=$? | ac_status=$? |
2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2790 | (exit $ac_status); }; } && | (exit $ac_status); }; } && |
2791 | { ac_try='test -s conftest$ac_exeext' | { ac_try='test -s conftest.$ac_objext' |
2792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2793 | (eval $ac_try) 2>&5 | (eval $ac_try) 2>&5 |
2794 | ac_status=$? | ac_status=$? |
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2796 | (exit $ac_status); }; }; then | (exit $ac_status); }; }; then |
2797 | lt_cv_cc_needs_belf=yes | break |
2798 | else | else |
2799 | echo "$as_me: failed program was:" >&5 | echo "$as_me: failed program was:" >&5 |
2800 | sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 |
2801 | ||
lt_cv_cc_needs_belf=no | ||
2802 | fi | fi |
2803 | rm -f conftest.err conftest.$ac_objext \ | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2804 | conftest$ac_exeext conftest.$ac_ext | done |
2805 | ac_ext=c | rm -f conftest* |
2806 | if test -n "$ac_declaration"; then | |
2807 | echo '#ifdef __cplusplus' >>confdefs.h | |
2808 | echo $ac_declaration >>confdefs.h | |
2809 | echo '#endif' >>confdefs.h | |
2810 | fi | |
2811 | ||
2812 | ac_ext=c | |
2813 | ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' |
2814 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2815 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2817 | ||
2818 | fi | |
2819 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
2820 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | ac_aux_dir= |
2821 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
2822 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | if test -f $ac_dir/install-sh; then |
2823 | CFLAGS="$SAVE_CFLAGS" | ac_aux_dir=$ac_dir |
2824 | fi | ac_install_sh="$ac_aux_dir/install-sh -c" |
2825 | ;; | break |
2826 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | elif test -f $ac_dir/install.sh; then |
2827 | if test -n "$ac_tool_prefix"; then | ac_aux_dir=$ac_dir |
2828 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ac_install_sh="$ac_aux_dir/install.sh -c" |
2829 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | break |
2830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | elif test -f $ac_dir/shtool; then |
2831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ac_aux_dir=$ac_dir |
2832 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | ac_install_sh="$ac_aux_dir/shtool install -c" |
2833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | break |
else | ||
if test -n "$DLLTOOL"; then | ||
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
break 2 | ||
2834 | fi | fi |
2835 | done | done |
2836 | done | if test -z "$ac_aux_dir"; then |
2837 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
2838 | fi | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
2839 | fi | { (exit 1); exit 1; }; } |
DLLTOOL=$ac_cv_prog_DLLTOOL | ||
if test -n "$DLLTOOL"; then | ||
echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | ||
echo "${ECHO_T}$DLLTOOL" >&6 | ||
else | ||
echo "$as_me:$LINENO: result: no" >&5 | ||
echo "${ECHO_T}no" >&6 | ||
2840 | fi | fi |
2841 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
2842 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2843 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
2844 | ||
2845 | fi | # Find a good install program. We prefer a C program (faster), |
2846 | if test -z "$ac_cv_prog_DLLTOOL"; then | # so one script is as good as another. But avoid the broken or |
2847 | ac_ct_DLLTOOL=$DLLTOOL | # incompatible versions: |
2848 | # Extract the first word of "dlltool", so it can be a program name with args. | # SysV /etc/install, /usr/sbin/install |
2849 | set dummy dlltool; ac_word=$2 | # SunOS /usr/etc/install |
2850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | # IRIX /sbin/install |
2851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | # AIX /bin/install |
2852 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2853 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2854 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2855 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2856 | # OS/2's system install, which has a completely different semantic | |
2857 | # ./install, which can be erroneously created by make from ./install.sh. | |
2858 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2859 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2860 | if test -z "$INSTALL"; then | |
2861 | if test "${ac_cv_path_install+set}" = set; then | |
2862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2863 | else | else |
2864 | if test -n "$ac_ct_DLLTOOL"; then | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2865 | for as_dir in $PATH | for as_dir in $PATH |
2866 | do | do |
2867 | IFS=$as_save_IFS | IFS=$as_save_IFS |
2868 | test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. |
2869 | for ac_exec_ext in '' $ac_executable_extensions; do | # Account for people who put trailing slashes in PATH elements. |
2870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | case $as_dir/ in |
2871 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ./ | .// | /cC/* | \ |
2872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2873 | break 2 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2874 | fi | /usr/ucb/* ) ;; |
2875 | done | *) |
2876 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2877 | # Don't use installbsd from OSF since it installs stuff as root | |
2878 | # by default. | |
2879 | for ac_prog in ginstall scoinst install; do | |
2880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2881 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2882 | if test $ac_prog = install && | |
2883 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2884 | # AIX install. It has an incompatible calling convention. | |
2885 | : | |
2886 | elif test $ac_prog = install && | |
2887 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2888 | # program-specific install script used by HP pwplus--don't use. | |
2889 | : | |
2890 | else | |
2891 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2892 | break 3 | |
2893 | fi | |
2894 | fi | |
2895 | done | |
2896 | done | |
2897 | ;; | |
2898 | esac | |
2899 | done | done |
2900 | ||
2901 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" | |
fi | ||
2902 | fi | fi |
2903 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | if test "${ac_cv_path_install+set}" = set; then |
2904 | if test -n "$ac_ct_DLLTOOL"; then | INSTALL=$ac_cv_path_install |
2905 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | else |
2906 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | # As a last resort, use the slow shell script. We don't cache a |
2907 | else | # path for INSTALL within a source directory, because that will |
2908 | echo "$as_me:$LINENO: result: no" >&5 | # break other packages using the cache if that directory is |
2909 | echo "${ECHO_T}no" >&6 | # removed, or if the path is relative. |
2910 | INSTALL=$ac_install_sh | |
2911 | fi | |
2912 | fi | fi |
2913 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2914 | echo "${ECHO_T}$INSTALL" >&6 | |
2915 | ||
2916 | DLLTOOL=$ac_ct_DLLTOOL | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2917 | else | # It thinks the first close brace ends the variable substitution. |
2918 | DLLTOOL="$ac_cv_prog_DLLTOOL" | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
fi | ||
2919 | ||
2920 | if test -n "$ac_tool_prefix"; then | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2921 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
2922 | set dummy ${ac_tool_prefix}as; ac_word=$2 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2925 | if test "${ac_cv_prog_AS+set}" = set; then | |
2926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | # Check whether --enable-shared or --disable-shared was given. |
2927 | if test "${enable_shared+set}" = set; then | |
2928 | enableval="$enable_shared" | |
2929 | p=${PACKAGE-default} | |
2930 | case $enableval in | |
2931 | yes) enable_shared=yes ;; | |
2932 | no) enable_shared=no ;; | |
2933 | *) | |
2934 | enable_shared=no | |
2935 | # Look at the argument we got. We use all the common list separators. | |
2936 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2937 | for pkg in $enableval; do | |
2938 | IFS="$lt_save_ifs" | |
2939 | if test "X$pkg" = "X$p"; then | |
2940 | enable_shared=yes | |
2941 | fi | |
2942 | done | |
2943 | IFS="$lt_save_ifs" | |
2944 | ;; | |
2945 | esac | |
2946 | else | else |
2947 | if test -n "$AS"; then | enable_shared=yes |
2948 | ac_cv_prog_AS="$AS" # Let the user override the test. | fi; |
2949 | ||
2950 | # Check whether --enable-static or --disable-static was given. | |
2951 | if test "${enable_static+set}" = set; then | |
2952 | enableval="$enable_static" | |
2953 | p=${PACKAGE-default} | |
2954 | case $enableval in | |
2955 | yes) enable_static=yes ;; | |
2956 | no) enable_static=no ;; | |
2957 | *) | |
2958 | enable_static=no | |
2959 | # Look at the argument we got. We use all the common list separators. | |
2960 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2961 | for pkg in $enableval; do | |
2962 | IFS="$lt_save_ifs" | |
2963 | if test "X$pkg" = "X$p"; then | |
2964 | enable_static=yes | |
2965 | fi | |
2966 | done | |
2967 | IFS="$lt_save_ifs" | |
2968 | ;; | |
2969 | esac | |
2970 | else | else |
2971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | enable_static=yes |
2972 | for as_dir in $PATH | fi; |
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_AS="${ac_tool_prefix}as" | ||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
2973 | ||
2974 | fi | # Check whether --enable-fast-install or --disable-fast-install was given. |
2975 | fi | if test "${enable_fast_install+set}" = set; then |
2976 | AS=$ac_cv_prog_AS | enableval="$enable_fast_install" |
2977 | if test -n "$AS"; then | p=${PACKAGE-default} |
2978 | echo "$as_me:$LINENO: result: $AS" >&5 | case $enableval in |
2979 | echo "${ECHO_T}$AS" >&6 | yes) enable_fast_install=yes ;; |
2980 | no) enable_fast_install=no ;; | |
2981 | *) | |
2982 | enable_fast_install=no | |
2983 | # Look at the argument we got. We use all the common list separators. | |
2984 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2985 | for pkg in $enableval; do | |
2986 | IFS="$lt_save_ifs" | |
2987 | if test "X$pkg" = "X$p"; then | |
2988 | enable_fast_install=yes | |
2989 | fi | |
2990 | done | |
2991 | IFS="$lt_save_ifs" | |
2992 | ;; | |
2993 | esac | |
2994 | else | else |
2995 | echo "$as_me:$LINENO: result: no" >&5 | enable_fast_install=yes |
2996 | echo "${ECHO_T}no" >&6 | fi; |
fi | ||
2997 | ||
2998 | fi | # Make sure we can run config.sub. |
2999 | if test -z "$ac_cv_prog_AS"; then | $ac_config_sub sun4 >/dev/null 2>&1 || |
3000 | ac_ct_AS=$AS | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3001 | # Extract the first word of "as", so it can be a program name with args. | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3002 | set dummy as; ac_word=$2 | { (exit 1); exit 1; }; } |
3003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | echo "$as_me:$LINENO: checking build system type" >&5 |
3005 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3006 | if test "${ac_cv_build+set}" = set; then | |
3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3008 | else | else |
3009 | if test -n "$ac_ct_AS"; then | ac_cv_build_alias=$build_alias |
3010 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | test -z "$ac_cv_build_alias" && |
3011 | else | ac_cv_build_alias=`$ac_config_guess` |
3012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | test -z "$ac_cv_build_alias" && |
3013 | for as_dir in $PATH | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3014 | do | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3015 | IFS=$as_save_IFS | { (exit 1); exit 1; }; } |
3016 | test -z "$as_dir" && as_dir=. | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3017 | for ac_exec_ext in '' $ac_executable_extensions; do | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3018 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3019 | ac_cv_prog_ac_ct_AS="as" | { (exit 1); exit 1; }; } |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
3020 | ||
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" | ||
fi | ||
fi | ||
ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
if test -n "$ac_ct_AS"; then | ||
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | ||
echo "${ECHO_T}$ac_ct_AS" >&6 | ||
else | ||
echo "$as_me:$LINENO: result: no" >&5 | ||
echo "${ECHO_T}no" >&6 | ||
3021 | fi | fi |
3022 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3023 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3024 | build=$ac_cv_build | |
3025 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3026 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3027 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3028 | ||
AS=$ac_ct_AS | ||
else | ||
AS="$ac_cv_prog_AS" | ||
fi | ||
3029 | ||
3030 | if test -n "$ac_tool_prefix"; then | echo "$as_me:$LINENO: checking host system type" >&5 |
3031 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3032 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | if test "${ac_cv_host+set}" = set; then |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
if test "${ac_cv_prog_OBJDUMP+set}" = set; then | ||
3033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3034 | else | else |
3035 | if test -n "$OBJDUMP"; then | ac_cv_host_alias=$host_alias |
3036 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | test -z "$ac_cv_host_alias" && |
3037 | else | ac_cv_host_alias=$ac_cv_build_alias |
3038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3039 | for as_dir in $PATH | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3040 | do | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3041 | IFS=$as_save_IFS | { (exit 1); exit 1; }; } |
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
3042 | ||
3043 | fi | fi |
3044 | fi | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3045 | OBJDUMP=$ac_cv_prog_OBJDUMP | echo "${ECHO_T}$ac_cv_host" >&6 |
3046 | if test -n "$OBJDUMP"; then | host=$ac_cv_host |
3047 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3048 | echo "${ECHO_T}$OBJDUMP" >&6 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3049 | else | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
echo "$as_me:$LINENO: result: no" >&5 | ||
echo "${ECHO_T}no" >&6 | ||
fi | ||
3050 | ||
3051 | fi | |
3052 | if test -z "$ac_cv_prog_OBJDUMP"; then | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3053 | ac_ct_OBJDUMP=$OBJDUMP | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3054 | # Extract the first word of "objdump", so it can be a program name with args. | if test "${lt_cv_path_SED+set}" = set; then |
set dummy objdump; ac_word=$2 | ||
echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | ||
3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3056 | else | else |
3057 | if test -n "$ac_ct_OBJDUMP"; then | # Loop through the user's path and test for sed and gsed. |
3058 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | # Then use that list of sed's as ones to test for truncation. |
else | ||
3059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3060 | for as_dir in $PATH | for as_dir in $PATH |
3061 | do | do |
3062 | IFS=$as_save_IFS | IFS=$as_save_IFS |
3063 | test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. |
3064 | for ac_exec_ext in '' $ac_executable_extensions; do | for lt_ac_prog in sed gsed; do |
3065 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | for ac_exec_ext in '' $ac_executable_extensions; do |
3066 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3068 | break 2 | fi |
3069 | fi | done |
3070 | done | |
3071 | done | done |
3072 | lt_ac_max=0 | |
3073 | lt_ac_count=0 | |
3074 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3075 | # along with /bin/sed that truncates output. | |
3076 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3077 | test ! -f $lt_ac_sed && continue | |
3078 | cat /dev/null > conftest.in | |
3079 | lt_ac_count=0 | |
3080 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3081 | # Check for GNU sed and select it if it is found. | |
3082 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3083 | lt_cv_path_SED=$lt_ac_sed | |
3084 | break | |
3085 | fi | |
3086 | while true; do | |
3087 | cat conftest.in conftest.in >conftest.tmp | |
3088 | mv conftest.tmp conftest.in | |
3089 | cp conftest.in conftest.nl | |
3090 | echo >>conftest.nl | |
3091 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3092 | cmp -s conftest.out conftest.nl || break | |
3093 | # 10000 chars as input seems more than enough | |
3094 | test $lt_ac_count -gt 10 && break | |
3095 | lt_ac_count=`expr $lt_ac_count + 1` | |
3096 | if test $lt_ac_count -gt $lt_ac_max; then | |
3097 | lt_ac_max=$lt_ac_count | |
3098 | lt_cv_path_SED=$lt_ac_sed | |
3099 | fi | |
3100 | done | |
3101 | done | done |
3102 | ||
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | ||
fi | ||
fi | ||
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
if test -n "$ac_ct_OBJDUMP"; then | ||
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | ||
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | ||
else | ||
echo "$as_me:$LINENO: result: no" >&5 | ||
echo "${ECHO_T}no" >&6 | ||
3103 | fi | fi |
3104 | ||
3105 | OBJDUMP=$ac_ct_OBJDUMP | SED=$lt_cv_path_SED |
3106 | echo "$as_me:$LINENO: result: $SED" >&5 | |
3107 | echo "${ECHO_T}$SED" >&6 | |
3108 | ||
3109 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3110 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3111 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3113 | else | else |
3114 | OBJDUMP="$ac_cv_prog_OBJDUMP" | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3115 | then ac_cv_prog_egrep='grep -E' | |
3116 | else ac_cv_prog_egrep='egrep' | |
3117 | fi | |
3118 | fi | fi |
3119 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3120 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3121 | EGREP=$ac_cv_prog_egrep | |
3122 | ||
;; | ||
esac | ||
need_locks="$enable_libtool_lock" | ||
3123 | ||
3124 | ||
3125 | ac_ext=c | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3126 | ac_cpp='$CPP $CPPFLAGS' | if test "${with_gnu_ld+set}" = set; then |
3127 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | withval="$with_gnu_ld" |
3128 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | test "$withval" = no || with_gnu_ld=yes |
3129 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | else |
3130 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | with_gnu_ld=no |
3131 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | fi; |
3132 | # On Suns, sometimes $CPP names a directory. | ac_prog=ld |
3133 | if test -n "$CPP" && test -d "$CPP"; then | if test "$GCC" = yes; then |
3134 | CPP= | # Check if gcc -print-prog-name=ld gives a path. |
3135 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3136 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3137 | case $host in | |
3138 | *-*-mingw*) | |
3139 | # gcc leaves a trailing carriage return which upsets mingw | |
3140 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3141 | *) | |
3142 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3143 | esac | |
3144 | case $ac_prog in | |
3145 | # Accept absolute paths. | |
3146 | [\\/]* | ?:[\\/]*) | |
3147 | re_direlt='/[^/][^/]*/\.\./' | |
3148 | # Canonicalize the pathname of ld | |
3149 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3150 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3151 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3152 | done | |
3153 | test -z "$LD" && LD="$ac_prog" | |
3154 | ;; | |
3155 | "") | |
3156 | # If it fails, then pretend we aren't using GCC. | |
3157 | ac_prog=ld | |
3158 | ;; | |
3159 | *) | |
3160 | # If it is relative, then search for the first ld in PATH. | |
3161 | with_gnu_ld=unknown | |
3162 | ;; | |
3163 | esac | |
3164 | elif test "$with_gnu_ld" = yes; then | |
3165 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3166 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3167 | else | |
3168 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3169 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3170 | fi | fi |
3171 | if test -z "$CPP"; then | if test "${lt_cv_path_LD+set}" = set; then |
if test "${ac_cv_prog_CPP+set}" = set; then | ||
3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3173 | else | else |
3174 | # Double quotes because CPP needs to be expanded | if test -z "$LD"; then |
3175 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3176 | do | for ac_dir in $PATH; do |
3177 | ac_preproc_ok=false | IFS="$lt_save_ifs" |
3178 | for ac_c_preproc_warn_flag in '' yes | test -z "$ac_dir" && ac_dir=. |
3179 | do | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3180 | # Use a header file that comes with gcc, so configuring glibc | lt_cv_path_LD="$ac_dir/$ac_prog" |
3181 | # with a fresh cross-compiler works. | # Check to see if the program is GNU ld. I'd rather use --version, |
3182 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | # but apparently some GNU ld's only accept -v. |
3183 | # <limits.h> exists even on freestanding compilers. | # Break only if it was the GNU/non-GNU ld that we prefer. |
3184 | # On the NeXT, cc -E runs the code through the compiler's parser, | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3185 | # not just through cpp. "Syntax error" is here to catch this case. | *GNU* | *'with BFD'*) |
3186 | cat >conftest.$ac_ext <<_ACEOF | test "$with_gnu_ld" != no && break |
3187 | /* confdefs.h. */ | ;; |
3188 | _ACEOF | *) |
3189 | cat confdefs.h >>conftest.$ac_ext | test "$with_gnu_ld" != yes && break |
3190 | cat >>conftest.$ac_ext <<_ACEOF | ;; |
3191 | /* end confdefs.h. */ | esac |
3192 | #ifdef __STDC__ | fi |
3193 | # include <limits.h> | done |
3194 | #else | IFS="$lt_save_ifs" |
# include <assert.h> | ||
#endif | ||
Syntax error | ||
_ACEOF | ||
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | ||
if test -s conftest.err; then | ||
ac_cpp_err=$ac_c_preproc_warn_flag | ||
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
else | ||
ac_cpp_err= | ||
fi | ||
3195 | else | else |
3196 | ac_cpp_err=yes | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3197 | fi | fi |
if test -z "$ac_cpp_err"; then | ||
: | ||
else | ||
echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
# Broken: fails on valid input. | ||
continue | ||
3198 | fi | fi |
rm -f conftest.err conftest.$ac_ext | ||
3199 | ||
3200 | # OK, works on sane cases. Now check whether non-existent headers | LD="$lt_cv_path_LD" |
3201 | # can be detected and how. | if test -n "$LD"; then |
3202 | cat >conftest.$ac_ext <<_ACEOF | echo "$as_me:$LINENO: result: $LD" >&5 |
3203 | /* confdefs.h. */ | echo "${ECHO_T}$LD" >&6 |
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | ||
#include <ac_nonexistent.h> | ||
_ACEOF | ||
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | ||
if test -s conftest.err; then | ||
ac_cpp_err=$ac_c_preproc_warn_flag | ||
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
else | ||
ac_cpp_err= | ||
fi | ||
3204 | else | else |
3205 | ac_cpp_err=yes | echo "$as_me:$LINENO: result: no" >&5 |
3206 | echo "${ECHO_T}no" >&6 | |
3207 | fi | fi |
3208 | if test -z "$ac_cpp_err"; then | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3209 | # Broken: success on invalid input. | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3210 | continue | { (exit 1); exit 1; }; } |
3211 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3212 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3213 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3215 | else | else |
3216 | echo "$as_me: failed program was:" >&5 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
3217 | sed 's/^/| /' conftest.$ac_ext >&5 | case `$LD -v 2>&1 </dev/null` in |
3218 | *GNU* | *'with BFD'*) | |
3219 | # Passes both tests. | lt_cv_prog_gnu_ld=yes |
3220 | ac_preproc_ok=: | ;; |
3221 | break | *) |
3222 | fi | lt_cv_prog_gnu_ld=no |
3223 | rm -f conftest.err conftest.$ac_ext | ;; |
3224 | esac | |
done | ||
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
rm -f conftest.err conftest.$ac_ext | ||
if $ac_preproc_ok; then | ||
break | ||
3225 | fi | fi |
3226 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3227 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3228 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3229 | ||
done | ||
ac_cv_prog_CPP=$CPP | ||
3230 | ||
3231 | fi | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3232 | CPP=$ac_cv_prog_CPP | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3233 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3235 | else | else |
3236 | ac_cv_prog_CPP=$CPP | lt_cv_ld_reload_flag='-r' |
3237 | fi | fi |
3238 | echo "$as_me:$LINENO: result: $CPP" >&5 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3239 | echo "${ECHO_T}$CPP" >&6 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3240 | ac_preproc_ok=false | reload_flag=$lt_cv_ld_reload_flag |
3241 | for ac_c_preproc_warn_flag in '' yes | case $reload_flag in |
3242 | do | "" | " "*) ;; |
3243 | # Use a header file that comes with gcc, so configuring glibc | *) reload_flag=" $reload_flag" ;; |
3244 | # with a fresh cross-compiler works. | esac |
3245 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3246 | # <limits.h> exists even on freestanding compilers. | case $host_os in |
3247 | # On the NeXT, cc -E runs the code through the compiler's parser, | darwin*) |
3248 | # not just through cpp. "Syntax error" is here to catch this case. | if test "$GCC" = yes; then |
3249 | cat >conftest.$ac_ext <<_ACEOF | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
3250 | /* confdefs.h. */ | else |
3251 | _ACEOF | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3252 | cat confdefs.h >>conftest.$ac_ext | fi |
3253 | cat >>conftest.$ac_ext <<_ACEOF | ;; |
3254 | /* end confdefs.h. */ | esac |
3255 | #ifdef __STDC__ | |
3256 | # include <limits.h> | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3257 | #else | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3258 | # include <assert.h> | if test "${lt_cv_path_NM+set}" = set; then |
3259 | #endif | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Syntax error | ||
_ACEOF | ||
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | ||
if test -s conftest.err; then | ||
ac_cpp_err=$ac_c_preproc_warn_flag | ||
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
else | ||
ac_cpp_err= | ||
fi | ||
3260 | else | else |
3261 | ac_cpp_err=yes | if test -n "$NM"; then |
3262 | fi | # Let the user override the test. |
3263 | if test -z "$ac_cpp_err"; then | lt_cv_path_NM="$NM" |
: | ||
3264 | else | else |
3265 | echo "$as_me: failed program was:" >&5 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3266 | sed 's/^/| /' conftest.$ac_ext >&5 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3267 | IFS="$lt_save_ifs" | |
3268 | # Broken: fails on valid input. | test -z "$ac_dir" && ac_dir=. |
3269 | continue | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
3270 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3271 | # Check to see if the nm accepts a BSD-compat flag. | |
3272 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3273 | # nm: unknown option "B" ignored | |
3274 | # Tru64's nm complains that /dev/null is an invalid object file | |
3275 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3276 | */dev/null* | *'Invalid file or object type'*) | |
3277 | lt_cv_path_NM="$tmp_nm -B" | |
3278 | break | |
3279 | ;; | |
3280 | *) | |
3281 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3282 | */dev/null*) | |
3283 | lt_cv_path_NM="$tmp_nm -p" | |
3284 | break | |
3285 | ;; | |
3286 | *) | |
3287 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3288 | continue # so that we can try to find one that supports BSD flags | |
3289 | ;; | |
3290 | esac | |
3291 | esac | |
3292 | fi | |
3293 | done | |
3294 | IFS="$lt_save_ifs" | |
3295 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3296 | fi | fi |
3297 | rm -f conftest.err conftest.$ac_ext | fi |
3298 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
3299 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
3300 | NM="$lt_cv_path_NM" | |
3301 | ||
3302 | # OK, works on sane cases. Now check whether non-existent headers | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3303 | # can be detected and how. | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3304 | cat >conftest.$ac_ext <<_ACEOF | LN_S=$as_ln_s |
3305 | /* confdefs.h. */ | if test "$LN_S" = "ln -s"; then |
3306 | _ACEOF | echo "$as_me:$LINENO: result: yes" >&5 |
3307 | cat confdefs.h >>conftest.$ac_ext | echo "${ECHO_T}yes" >&6 |
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | ||
#include <ac_nonexistent.h> | ||
_ACEOF | ||
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | ||
if test -s conftest.err; then | ||
ac_cpp_err=$ac_c_preproc_warn_flag | ||
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
else | ||
ac_cpp_err= | ||
fi | ||
3308 | else | else |
3309 | ac_cpp_err=yes | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3310 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3311 | fi | fi |
3312 | if test -z "$ac_cpp_err"; then | |
3313 | # Broken: success on invalid input. | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3314 | continue | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3315 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3317 | else | else |
3318 | echo "$as_me: failed program was:" >&5 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3319 | sed 's/^/| /' conftest.$ac_ext >&5 | lt_cv_file_magic_test_file= |
3320 | lt_cv_deplibs_check_method='unknown' | |
3321 | # Need to set the preceding variable on all platforms that support | |
3322 | # interlibrary dependencies. | |
3323 | # 'none' -- dependencies not supported. | |
3324 | # `unknown' -- same as none, but documents that we really don't know. | |
3325 | # 'pass_all' -- all dependencies passed with no checks. | |
3326 | # 'test_compile' -- check by making test program. | |
3327 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3328 | # which responds to the $file_magic_cmd with a given extended regex. | |
3329 | # If you have `file' or equivalent on your system and you're not sure | |
3330 | # whether `pass_all' will *always* work, you probably want this one. | |
3331 | ||
3332 | # Passes both tests. | case $host_os in |
3333 | ac_preproc_ok=: | aix4* | aix5*) |
3334 | break | lt_cv_deplibs_check_method=pass_all |
3335 | fi | ;; |
rm -f conftest.err conftest.$ac_ext | ||
3336 | ||
3337 | done | beos*) |
3338 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | lt_cv_deplibs_check_method=pass_all |
3339 | rm -f conftest.err conftest.$ac_ext | ;; |
if $ac_preproc_ok; then | ||
: | ||
else | ||
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
See \`config.log' for more details." >&5 | ||
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
See \`config.log' for more details." >&2;} | ||
{ (exit 1); exit 1; }; } | ||
fi | ||
3340 | ||
3341 | ac_ext=c | bsdi[45]*) |
3342 | ac_cpp='$CPP $CPPFLAGS' | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | lt_cv_file_magic_test_file=/shlib/libc.so |
3345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ;; |
3346 | ||
3347 | cygwin*) | |
3348 | # func_win32_libid is a shell function defined in ltmain.sh | |
3349 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3350 | lt_cv_file_magic_cmd='func_win32_libid' | |
3351 | ;; | |
3352 | ||
3353 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | mingw* | pw32*) |
3354 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3355 | if test "${ac_cv_header_stdc+set}" = set; then | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3357 | else | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3358 | cat >conftest.$ac_ext <<_ACEOF | ;; |
/* confdefs.h. */ | ||
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | ||
#include <stdlib.h> | ||
#include <stdarg.h> | ||
#include <string.h> | ||
#include <float.h> | ||
3359 | ||
3360 | int | darwin* | rhapsody*) |
3361 | main () | lt_cv_deplibs_check_method=pass_all |
3362 | { | ;; |
3363 | ||
3364 | ; | freebsd* | kfreebsd*-gnu | dragonfly*) |
3365 | return 0; | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3366 | } | case $host_cpu in |
3367 | _ACEOF | i*86 ) |
3368 | rm -f conftest.$ac_objext | # Not sure whether the presence of OpenBSD here was a mistake. |
3369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | # Let's accept both of them until this is cleared up. |
3370 | (eval $ac_compile) 2>conftest.er1 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
3371 | ac_status=$? | lt_cv_file_magic_cmd=/usr/bin/file |
3372 | grep -v '^ *+' conftest.er1 >conftest.err | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3373 | rm -f conftest.er1 | ;; |
3374 | cat conftest.err >&5 | esac |
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | else |
3376 | (exit $ac_status); } && | lt_cv_deplibs_check_method=pass_all |
3377 | { ac_try='test -z "$ac_c_werror_flag" | fi |
3378 | || 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_objext' | ||
{ (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_header_stdc=yes | ||
else | ||
echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
3379 | ||
3380 | ac_cv_header_stdc=no | gnu*) |
3381 | fi | lt_cv_deplibs_check_method=pass_all |
3382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ;; |
3383 | ||
3384 | if test $ac_cv_header_stdc = yes; then | hpux10.20* | hpux11*) |
3385 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | lt_cv_file_magic_cmd=/usr/bin/file |
3386 | cat >conftest.$ac_ext <<_ACEOF | case "$host_cpu" in |
3387 | /* confdefs.h. */ | ia64*) |
3388 | _ACEOF | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
3389 | cat confdefs.h >>conftest.$ac_ext | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3390 | cat >>conftest.$ac_ext <<_ACEOF | ;; |
3391 | /* end confdefs.h. */ | hppa*64*) |
3392 | #include <string.h> | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
3393 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3394 | ;; | |
3395 | *) | |
3396 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3397 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3398 | ;; | |
3399 | esac | |
3400 | ;; | |
3401 | ||
3402 | _ACEOF | irix5* | irix6* | nonstopux*) |
3403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | case $LD in |
3404 | $EGREP "memchr" >/dev/null 2>&1; then | *-32|*"-32 ") libmagic=32-bit;; |
3405 | : | *-n32|*"-n32 ") libmagic=N32;; |
3406 | else | *-64|*"-64 ") libmagic=64-bit;; |
3407 | ac_cv_header_stdc=no | *) libmagic=never-match;; |
3408 | fi | esac |
3409 | rm -f conftest* | lt_cv_deplibs_check_method=pass_all |
3410 | ;; | |
3411 | ||
3412 | fi | # This must be Linux ELF. |
3413 | linux*) | |
3414 | lt_cv_deplibs_check_method=pass_all | |
3415 | ;; | |
3416 | ||
3417 | netbsd*) | |
3418 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3419 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3420 | else | |
3421 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
3422 | fi | |
3423 | ;; | |
3424 | ||
3425 | newos6*) | |
3426 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3427 | lt_cv_file_magic_cmd=/usr/bin/file | |
3428 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3429 | ;; | |
3430 | ||
3431 | nto-qnx*) | |
3432 | lt_cv_deplibs_check_method=unknown | |
3433 | ;; | |
3434 | ||
3435 | openbsd*) | |
3436 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3437 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
3438 | else | |
3439 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3440 | fi | |
3441 | ;; | |
3442 | ||
3443 | if test $ac_cv_header_stdc = yes; then | osf3* | osf4* | osf5*) |
3444 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | lt_cv_deplibs_check_method=pass_all |
3445 | cat >conftest.$ac_ext <<_ACEOF | ;; |
/* confdefs.h. */ | ||
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | ||
#include <stdlib.h> | ||
3446 | ||
3447 | _ACEOF | sco3.2v5*) |
3448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | lt_cv_deplibs_check_method=pass_all |
3449 | $EGREP "free" >/dev/null 2>&1; then | ;; |
: | ||
else | ||
ac_cv_header_stdc=no | ||
fi | ||
rm -f conftest* | ||
3450 | ||
3451 | fi | solaris*) |
3452 | lt_cv_deplibs_check_method=pass_all | |
3453 | ;; | |
3454 | ||
3455 | if test $ac_cv_header_stdc = yes; then | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
3456 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | case $host_vendor in |
3457 | if test "$cross_compiling" = yes; then | motorola) |
3458 | : | 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]' |
3459 | else | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3460 | cat >conftest.$ac_ext <<_ACEOF | ;; |
3461 | /* confdefs.h. */ | ncr) |
3462 | _ACEOF | lt_cv_deplibs_check_method=pass_all |
3463 | cat confdefs.h >>conftest.$ac_ext | ;; |
3464 | cat >>conftest.$ac_ext <<_ACEOF | sequent) |
3465 | /* end confdefs.h. */ | lt_cv_file_magic_cmd='/bin/file' |
3466 | #include <ctype.h> | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
3467 | #if ((' ' & 0x0FF) == 0x020) | ;; |
3468 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | sni) |
3469 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | lt_cv_file_magic_cmd='/bin/file' |
3470 | #else | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
3471 | # define ISLOWER(c) \ | lt_cv_file_magic_test_file=/lib/libc.so |
3472 | (('a' <= (c) && (c) <= 'i') \ | ;; |
3473 | || ('j' <= (c) && (c) <= 'r') \ | siemens) |
3474 | || ('s' <= (c) && (c) <= 'z')) | lt_cv_deplibs_check_method=pass_all |
3475 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ;; |
3476 | #endif | esac |
3477 | ;; | |
3478 | ||
3479 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
3480 | int | lt_cv_deplibs_check_method=pass_all |
3481 | main () | ;; |
3482 | { | esac |
int i; | ||
for (i = 0; i < 256; i++) | ||
if (XOR (islower (i), ISLOWER (i)) | ||
|| toupper (i) != TOUPPER (i)) | ||
exit(2); | ||
exit (0); | ||
} | ||
_ACEOF | ||
rm -f conftest$ac_exeext | ||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
(eval $ac_link) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } && { ac_try='./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 | ||
: | ||
else | ||
echo "$as_me: program exited with status $ac_status" >&5 | ||
echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
3483 | ||
( exit $ac_status ) | ||
ac_cv_header_stdc=no | ||
fi | ||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3484 | fi | fi |
3485 | fi | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3486 | fi | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
3487 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | file_magic_cmd=$lt_cv_file_magic_cmd |
3488 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | deplibs_check_method=$lt_cv_deplibs_check_method |
3489 | if test $ac_cv_header_stdc = yes; then | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3490 | ||
cat >>confdefs.h <<\_ACEOF | ||
#define STDC_HEADERS 1 | ||
_ACEOF | ||
3491 | ||
fi | ||
3492 | ||
# On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3493 | ||
3494 | # If no C compiler was specified, use CC. | |
3495 | LTCC=${LTCC-"$CC"} | |
3496 | ||
3497 | # Allow CC to be a program name with arguments. | |
3498 | compiler=$CC | |
3499 | ||
3500 | ||
3501 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3502 | if test "${enable_libtool_lock+set}" = set; then | |
3503 | enableval="$enable_libtool_lock" | |
3504 | ||
3505 | fi; | |
3506 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
3507 | ||
3508 | # Some flags need to be propagated to the compiler or linker for good | |
3509 | # libtool support. | |
3510 | case $host in | |
3511 | ia64-*-hpux*) | |
3512 | # Find out which ABI we are using. | |
3513 | echo 'int i;' > conftest.$ac_ext | |
3514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3515 | (eval $ac_compile) 2>&5 | |
3516 | ac_status=$? | |
3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3518 | (exit $ac_status); }; then | |
3519 | case `/usr/bin/file conftest.$ac_objext` in | |
3520 | *ELF-32*) | |
3521 | HPUX_IA64_MODE="32" | |
3522 | ;; | |
3523 | *ELF-64*) | |
3524 | HPUX_IA64_MODE="64" | |
3525 | ;; | |
3526 | esac | |
3527 | fi | |
3528 | rm -rf conftest* | |
3529 | ;; | |
3530 | *-*-irix6*) | |
3531 | # Find out which ABI we are using. | |
3532 | echo '#line 3532 "configure"' > conftest.$ac_ext | |
3533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3534 | (eval $ac_compile) 2>&5 | |
3535 | ac_status=$? | |
3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3537 | (exit $ac_status); }; then | |
3538 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
3539 | case `/usr/bin/file conftest.$ac_objext` in | |
3540 | *32-bit*) | |
3541 | LD="${LD-ld} -melf32bsmip" | |
3542 | ;; | |
3543 | *N32*) | |
3544 | LD="${LD-ld} -melf32bmipn32" | |
3545 | ;; | |
3546 | *64-bit*) | |
3547 | LD="${LD-ld} -melf64bmip" | |
3548 | ;; | |
3549 | esac | |
3550 | else | |
3551 | case `/usr/bin/file conftest.$ac_objext` in | |
3552 | *32-bit*) | |
3553 | LD="${LD-ld} -32" | |
3554 | ;; | |
3555 | *N32*) | |
3556 | LD="${LD-ld} -n32" | |
3557 | ;; | |
3558 | *64-bit*) | |
3559 | LD="${LD-ld} -64" | |
3560 | ;; | |
3561 | esac | |
3562 | fi | |
3563 | fi | |
3564 | rm -rf conftest* | |
3565 | ;; | |
3566 | ||
3567 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
3568 | # Find out which ABI we are using. | |
3569 | echo 'int i;' > conftest.$ac_ext | |
3570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3571 | (eval $ac_compile) 2>&5 | |
3572 | ac_status=$? | |
3573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3574 | (exit $ac_status); }; then | |
3575 | case "`/usr/bin/file conftest.o`" in | |
3576 | *32-bit*) | |
3577 | case $host in | |
3578 | x86_64-*linux*) | |
3579 | LD="${LD-ld} -m elf_i386" | |
3580 | ;; | |
3581 | ppc64-*linux*|powerpc64-*linux*) | |
3582 | LD="${LD-ld} -m elf32ppclinux" | |
3583 | ;; | |
3584 | s390x-*linux*) | |
3585 | LD="${LD-ld} -m elf_s390" | |
3586 | ;; | |
3587 | sparc64-*linux*) | |
3588 | LD="${LD-ld} -m elf32_sparc" | |
3589 | ;; | |
3590 | esac | |
3591 | ;; | |
3592 | *64-bit*) | |
3593 | case $host in | |
3594 | x86_64-*linux*) | |
3595 | LD="${LD-ld} -m elf_x86_64" | |
3596 | ;; | |
3597 | ppc*-*linux*|powerpc*-*linux*) | |
3598 | LD="${LD-ld} -m elf64ppc" | |
3599 | ;; | |
3600 | s390*-*linux*) | |
3601 | LD="${LD-ld} -m elf64_s390" | |
3602 | ;; | |
3603 | sparc*-*linux*) | |
3604 | LD="${LD-ld} -m elf64_sparc" | |
3605 | ;; | |
3606 | esac | |
3607 | ;; | |
3608 | esac | |
3609 | fi | |
3610 | rm -rf conftest* | |
3611 | ;; | |
3612 | ||
3613 | *-*-linux*) | |
3614 | # Test if the compiler is 64bit | |
3615 | echo 'int i;' > conftest.$ac_ext | |
3616 | lt_cv_cc_64bit_output=no | |
3617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3618 | (eval $ac_compile) 2>&5 | |
3619 | ac_status=$? | |
3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3621 | (exit $ac_status); }; then | |
3622 | case `/usr/bin/file conftest.$ac_objext` in | |
3623 | *"ELF 64"*) | |
3624 | lt_cv_cc_64bit_output=yes | |
3625 | ;; | |
3626 | esac | |
3627 | fi | |
3628 | rm -rf conftest* | |
3629 | ;; | |
3630 | ||
3631 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | *-*-sco3.2v5*) |
3632 | inttypes.h stdint.h unistd.h | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3633 | do | SAVE_CFLAGS="$CFLAGS" |
3634 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | CFLAGS="$CFLAGS -belf" |
3635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
3637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | if test "${lt_cv_cc_needs_belf+set}" = set; then |
3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3639 | else | else |
3640 | cat >conftest.$ac_ext <<_ACEOF | ac_ext=c |
3641 | ac_cpp='$CPP $CPPFLAGS' | |
3642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3645 | ||
3646 | cat >conftest.$ac_ext <<_ACEOF | |
3647 | /* confdefs.h. */ | /* confdefs.h. */ |
3648 | _ACEOF | _ACEOF |
3649 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
3650 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
3651 | /* end confdefs.h. */ | /* end confdefs.h. */ |
$ac_includes_default | ||
3652 | ||
3653 | #include <$ac_header> | int |
3654 | main () | |
3655 | { | |
3656 | ||
3657 | ; | |
3658 | return 0; | |
3659 | } | |
3660 | _ACEOF | _ACEOF |
3661 | rm -f conftest.$ac_objext | rm -f conftest.$ac_objext conftest$ac_exeext |
3662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3663 | (eval $ac_compile) 2>conftest.er1 | (eval $ac_link) 2>conftest.er1 |
3664 | ac_status=$? | ac_status=$? |
3665 | grep -v '^ *+' conftest.er1 >conftest.err | grep -v '^ *+' conftest.er1 >conftest.err |
3666 | rm -f conftest.er1 | rm -f conftest.er1 |
# | Line 4025 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 3674 if { (eval echo "$as_me:$LINENO: \"$ac_c |
3674 | ac_status=$? | ac_status=$? |
3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3676 | (exit $ac_status); }; } && | (exit $ac_status); }; } && |
3677 | { ac_try='test -s conftest.$ac_objext' | { ac_try='test -s conftest$ac_exeext' |
3678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3679 | (eval $ac_try) 2>&5 | (eval $ac_try) 2>&5 |
3680 | ac_status=$? | ac_status=$? |
3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3682 | (exit $ac_status); }; }; then | (exit $ac_status); }; }; then |
3683 | eval "$as_ac_Header=yes" | lt_cv_cc_needs_belf=yes |
3684 | else | |
3685 | echo "$as_me: failed program was:" >&5 | |
3686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3687 | ||
3688 | lt_cv_cc_needs_belf=no | |
3689 | fi | |
3690 | rm -f conftest.err conftest.$ac_objext \ | |
3691 | conftest$ac_exeext conftest.$ac_ext | |
3692 | ac_ext=c | |
3693 | ac_cpp='$CPP $CPPFLAGS' | |
3694 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3695 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3696 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3697 | ||
3698 | fi | |
3699 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
3700 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
3701 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
3702 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3703 | CFLAGS="$SAVE_CFLAGS" | |
3704 | fi | |
3705 | ;; | |
3706 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | |
3707 | if test -n "$ac_tool_prefix"; then | |
3708 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
3709 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
3710 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3712 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
3713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3714 | else | |
3715 | if test -n "$DLLTOOL"; then | |
3716 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
3717 | else | |
3718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3719 | for as_dir in $PATH | |
3720 | do | |
3721 | IFS=$as_save_IFS | |
3722 | test -z "$as_dir" && as_dir=. | |
3723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3725 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
3726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3727 | break 2 | |
3728 | fi | |
3729 | done | |
3730 | done | |
3731 | ||
3732 | fi | |
3733 | fi | |
3734 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
3735 | if test -n "$DLLTOOL"; then | |
3736 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
3737 | echo "${ECHO_T}$DLLTOOL" >&6 | |
3738 | else | |
3739 | echo "$as_me:$LINENO: result: no" >&5 | |
3740 | echo "${ECHO_T}no" >&6 | |
3741 | fi | |
3742 | ||
3743 | fi | |
3744 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
3745 | ac_ct_DLLTOOL=$DLLTOOL | |
3746 | # Extract the first word of "dlltool", so it can be a program name with args. | |
3747 | set dummy dlltool; ac_word=$2 | |
3748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3750 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
3751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3752 | else | |
3753 | if test -n "$ac_ct_DLLTOOL"; then | |
3754 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
3755 | else | |
3756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3757 | for as_dir in $PATH | |
3758 | do | |
3759 | IFS=$as_save_IFS | |
3760 | test -z "$as_dir" && as_dir=. | |
3761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3763 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
3764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3765 | break 2 | |
3766 | fi | |
3767 | done | |
3768 | done | |
3769 | ||
3770 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" | |
3771 | fi | |
3772 | fi | |
3773 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
3774 | if test -n "$ac_ct_DLLTOOL"; then | |
3775 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
3776 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
3777 | else | |
3778 | echo "$as_me:$LINENO: result: no" >&5 | |
3779 | echo "${ECHO_T}no" >&6 | |
3780 | fi | |
3781 | ||
3782 | DLLTOOL=$ac_ct_DLLTOOL | |
3783 | else | |
3784 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
3785 | fi | |
3786 | ||
3787 | if test -n "$ac_tool_prefix"; then | |
3788 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3789 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3792 | if test "${ac_cv_prog_AS+set}" = set; then | |
3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3794 | else | |
3795 | if test -n "$AS"; then | |
3796 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3797 | else | |
3798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3799 | for as_dir in $PATH | |
3800 | do | |
3801 | IFS=$as_save_IFS | |
3802 | test -z "$as_dir" && as_dir=. | |
3803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3805 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3807 | break 2 | |
3808 | fi | |
3809 | done | |
3810 | done | |
3811 | ||
3812 | fi | |
3813 | fi | |
3814 | AS=$ac_cv_prog_AS | |
3815 | if test -n "$AS"; then | |
3816 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3817 | echo "${ECHO_T}$AS" >&6 | |
3818 | else | |
3819 | echo "$as_me:$LINENO: result: no" >&5 | |
3820 | echo "${ECHO_T}no" >&6 | |
3821 | fi | |
3822 | ||
3823 | fi | |
3824 | if test -z "$ac_cv_prog_AS"; then | |
3825 | ac_ct_AS=$AS | |
3826 | # Extract the first word of "as", so it can be a program name with args. | |
3827 | set dummy as; ac_word=$2 | |
3828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3830 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3832 | else | |
3833 | if test -n "$ac_ct_AS"; then | |
3834 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3835 | else | |
3836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3837 | for as_dir in $PATH | |
3838 | do | |
3839 | IFS=$as_save_IFS | |
3840 | test -z "$as_dir" && as_dir=. | |
3841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3843 | ac_cv_prog_ac_ct_AS="as" | |
3844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3845 | break 2 | |
3846 | fi | |
3847 | done | |
3848 | done | |
3849 | ||
3850 | test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" | |
3851 | fi | |
3852 | fi | |
3853 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3854 | if test -n "$ac_ct_AS"; then | |
3855 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3856 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
3857 | else | |
3858 | echo "$as_me:$LINENO: result: no" >&5 | |
3859 | echo "${ECHO_T}no" >&6 | |
3860 | fi | |
3861 | ||
3862 | AS=$ac_ct_AS | |
3863 | else | |
3864 | AS="$ac_cv_prog_AS" | |
3865 | fi | |
3866 | ||
3867 | if test -n "$ac_tool_prefix"; then | |
3868 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
3869 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
3870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3872 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
3873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3874 | else | |
3875 | if test -n "$OBJDUMP"; then | |
3876 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
3877 | else | |
3878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3879 | for as_dir in $PATH | |
3880 | do | |
3881 | IFS=$as_save_IFS | |
3882 | test -z "$as_dir" && as_dir=. | |
3883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3885 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
3886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3887 | break 2 | |
3888 | fi | |
3889 | done | |
3890 | done | |
3891 | ||
3892 | fi | |
3893 | fi | |
3894 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
3895 | if test -n "$OBJDUMP"; then | |
3896 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
3897 | echo "${ECHO_T}$OBJDUMP" >&6 | |
3898 | else | |
3899 | echo "$as_me:$LINENO: result: no" >&5 | |
3900 | echo "${ECHO_T}no" >&6 | |
3901 | fi | |
3902 | ||
3903 | fi | |
3904 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
3905 | ac_ct_OBJDUMP=$OBJDUMP | |
3906 | # Extract the first word of "objdump", so it can be a program name with args. | |
3907 | set dummy objdump; ac_word=$2 | |
3908 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3910 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3912 | else | else |
3913 | echo "$as_me: failed program was:" >&5 | if test -n "$ac_ct_OBJDUMP"; then |
3914 | sed 's/^/| /' conftest.$ac_ext >&5 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
3915 | else | |
3916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3917 | for as_dir in $PATH | |
3918 | do | |
3919 | IFS=$as_save_IFS | |
3920 | test -z "$as_dir" && as_dir=. | |
3921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3922 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3923 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
3924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3925 | break 2 | |
3926 | fi | |
3927 | done | |
3928 | done | |
3929 | ||
3930 | eval "$as_ac_Header=no" | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" |
3931 | fi | fi |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3932 | fi | fi |
3933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
3934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | if test -n "$ac_ct_OBJDUMP"; then |
3935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
3936 | cat >>confdefs.h <<_ACEOF | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 |
3937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | else |
3938 | _ACEOF | echo "$as_me:$LINENO: result: no" >&5 |
3939 | echo "${ECHO_T}no" >&6 | |
3940 | fi | |
3941 | ||
3942 | OBJDUMP=$ac_ct_OBJDUMP | |
3943 | else | |
3944 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
3945 | fi | fi |
3946 | ||
3947 | done | ;; |
3948 | ||
3949 | esac | |
3950 | ||
3951 | need_locks="$enable_libtool_lock" | |
3952 | ||
3953 | for ac_header in dlfcn.h | |
3954 | do | ac_ext=c |
3955 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ac_cpp='$CPP $CPPFLAGS' |
3956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3957 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3959 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3961 | # On Suns, sometimes $CPP names a directory. | |
3962 | if test -n "$CPP" && test -d "$CPP"; then | |
3963 | CPP= | |
3964 | fi | fi |
3965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | if test -z "$CPP"; then |
3966 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | if test "${ac_cv_prog_CPP+set}" = set; then |
3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3968 | else | else |
3969 | # Is the header compilable? | # Double quotes because CPP needs to be expanded |
3970 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | do |
3972 | cat >conftest.$ac_ext <<_ACEOF | ac_preproc_ok=false |
3973 | for ac_c_preproc_warn_flag in '' yes | |
3974 | do | |
3975 | # Use a header file that comes with gcc, so configuring glibc | |
3976 | # with a fresh cross-compiler works. | |
3977 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3978 | # <limits.h> exists even on freestanding compilers. | |
3979 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3980 | # not just through cpp. "Syntax error" is here to catch this case. | |
3981 | cat >conftest.$ac_ext <<_ACEOF | |
3982 | /* confdefs.h. */ | /* confdefs.h. */ |
3983 | _ACEOF | _ACEOF |
3984 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
3985 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
3986 | /* end confdefs.h. */ | /* end confdefs.h. */ |
3987 | $ac_includes_default | #ifdef __STDC__ |
3988 | #include <$ac_header> | # include <limits.h> |
3989 | #else | |
3990 | # include <assert.h> | |
3991 | #endif | |
3992 | Syntax error | |
3993 | _ACEOF | _ACEOF |
3994 | rm -f conftest.$ac_objext | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
(eval $ac_compile) 2>conftest.er1 | ||
3996 | ac_status=$? | ac_status=$? |
3997 | grep -v '^ *+' conftest.er1 >conftest.err | grep -v '^ *+' conftest.er1 >conftest.err |
3998 | rm -f conftest.er1 | rm -f conftest.er1 |
3999 | cat conftest.err >&5 | cat conftest.err >&5 |
4000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4001 | (exit $ac_status); } && | (exit $ac_status); } >/dev/null; then |
4002 | { ac_try='test -z "$ac_c_werror_flag" | if test -s conftest.err; then |
4003 | || test ! -s conftest.err' | ac_cpp_err=$ac_c_preproc_warn_flag |
4004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4005 | (eval $ac_try) 2>&5 | else |
4006 | ac_status=$? | ac_cpp_err= |
4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | fi |
4008 | (exit $ac_status); }; } && | else |
4009 | { ac_try='test -s conftest.$ac_objext' | ac_cpp_err=yes |
4010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | fi |
4011 | (eval $ac_try) 2>&5 | if test -z "$ac_cpp_err"; then |
4012 | ac_status=$? | : |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
ac_header_compiler=yes | ||
4013 | else | else |
4014 | echo "$as_me: failed program was:" >&5 | echo "$as_me: failed program was:" >&5 |
4015 | sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 |
4016 | ||
4017 | ac_header_compiler=no | # Broken: fails on valid input. |
4018 | continue | |
4019 | fi | fi |
4020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f conftest.err conftest.$ac_ext |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
echo "${ECHO_T}$ac_header_compiler" >&6 | ||
4021 | ||
4022 | # Is the header present? | # OK, works on sane cases. Now check whether non-existent headers |
4023 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | # can be detected and how. |
4024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | cat >conftest.$ac_ext <<_ACEOF |
cat >conftest.$ac_ext <<_ACEOF | ||
4025 | /* confdefs.h. */ | /* confdefs.h. */ |
4026 | _ACEOF | _ACEOF |
4027 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
4028 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
4029 | /* end confdefs.h. */ | /* end confdefs.h. */ |
4030 | #include <$ac_header> | #include <ac_nonexistent.h> |
4031 | _ACEOF | _ACEOF |
4032 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4033 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
# | Line 4139 else | Line 4047 else |
4047 | ac_cpp_err=yes | ac_cpp_err=yes |
4048 | fi | fi |
4049 | if test -z "$ac_cpp_err"; then | if test -z "$ac_cpp_err"; then |
4050 | ac_header_preproc=yes | # Broken: success on invalid input. |
4051 | continue | |
4052 | else | else |
4053 | echo "$as_me: failed program was:" >&5 | echo "$as_me: failed program was:" >&5 |
4054 | sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 |
4055 | ||
4056 | ac_header_preproc=no | # Passes both tests. |
4057 | ac_preproc_ok=: | |
4058 | break | |
4059 | fi | fi |
4060 | rm -f conftest.err conftest.$ac_ext | rm -f conftest.err conftest.$ac_ext |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
echo "${ECHO_T}$ac_header_preproc" >&6 | ||
4061 | ||
4062 | # So? What about this header? | done |
4063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4064 | yes:no: ) | rm -f conftest.err conftest.$ac_ext |
4065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | if $ac_preproc_ok; then |
4066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | break |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
ac_header_preproc=yes | ||
;; | ||
no:yes:* ) | ||
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
( | ||
cat <<\_ASBOX | ||
## ------------------------------------------ ## | ||
## Report this to the AC_PACKAGE_NAME lists. ## | ||
## ------------------------------------------ ## | ||
_ASBOX | ||
) | | ||
sed "s/^/$as_me: WARNING: /" >&2 | ||
;; | ||
esac | ||
echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
eval "$as_ac_Header=\$ac_header_preproc" | ||
4067 | fi | fi |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4068 | ||
4069 | fi | done |
4070 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ac_cv_prog_CPP=$CPP |
cat >>confdefs.h <<_ACEOF | ||
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
_ACEOF | ||
4071 | ||
4072 | fi | fi |
4073 | CPP=$ac_cv_prog_CPP | |
done | ||
ac_ext=cc | ||
ac_cpp='$CXXCPP $CPPFLAGS' | ||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
if test -n "$ac_tool_prefix"; then | ||
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | ||
do | ||
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
if test "${ac_cv_prog_CXX+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
if test -n "$CXX"; then | ||
ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
4074 | else | else |
4075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ac_cv_prog_CPP=$CPP |
4076 | for as_dir in $PATH | fi |
4077 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4078 | echo "${ECHO_T}$CPP" >&6 | |
4079 | ac_preproc_ok=false | |
4080 | for ac_c_preproc_warn_flag in '' yes | |
4081 | do | do |
4082 | IFS=$as_save_IFS | # Use a header file that comes with gcc, so configuring glibc |
4083 | test -z "$as_dir" && as_dir=. | # with a fresh cross-compiler works. |
4084 | for ac_exec_ext in '' $ac_executable_extensions; do | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4085 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | # <limits.h> exists even on freestanding compilers. |
4086 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | # On the NeXT, cc -E runs the code through the compiler's parser, |
4087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | # not just through cpp. "Syntax error" is here to catch this case. |
4088 | break 2 | cat >conftest.$ac_ext <<_ACEOF |
4089 | /* confdefs.h. */ | |
4090 | _ACEOF | |
4091 | cat confdefs.h >>conftest.$ac_ext | |
4092 | cat >>conftest.$ac_ext <<_ACEOF | |
4093 | /* end confdefs.h. */ | |
4094 | #ifdef __STDC__ | |
4095 | # include <limits.h> | |
4096 | #else | |
4097 | # include <assert.h> | |
4098 | #endif | |
4099 | Syntax error | |
4100 | _ACEOF | |
4101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4103 | ac_status=$? | |
4104 | grep -v '^ *+' conftest.er1 >conftest.err | |
4105 | rm -f conftest.er1 | |
4106 | cat conftest.err >&5 | |
4107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4108 | (exit $ac_status); } >/dev/null; then | |
4109 | if test -s conftest.err; then | |
4110 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4111 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4112 | else | |
4113 | ac_cpp_err= | |
4114 | fi | fi |
done | ||
done | ||
fi | ||
fi | ||
CXX=$ac_cv_prog_CXX | ||
if test -n "$CXX"; then | ||
echo "$as_me:$LINENO: result: $CXX" >&5 | ||
echo "${ECHO_T}$CXX" >&6 | ||
4115 | else | else |
4116 | echo "$as_me:$LINENO: result: no" >&5 | ac_cpp_err=yes |
echo "${ECHO_T}no" >&6 | ||
fi | ||
test -n "$CXX" && break | ||
done | ||
4117 | fi | fi |
4118 | if test -z "$CXX"; then | if test -z "$ac_cpp_err"; then |
4119 | ac_ct_CXX=$CXX | : |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | ||
do | ||
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
if test -n "$ac_ct_CXX"; then | ||
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
4120 | else | else |
4121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | echo "$as_me: failed program was:" >&5 |
4122 | for as_dir in $PATH | sed 's/^/| /' conftest.$ac_ext >&5 |
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
4123 | ||
4124 | # Broken: fails on valid input. | |
4125 | continue | |
4126 | fi | fi |
4127 | rm -f conftest.err conftest.$ac_ext | |
4128 | ||
4129 | # OK, works on sane cases. Now check whether non-existent headers | |
4130 | # can be detected and how. | |
4131 | cat >conftest.$ac_ext <<_ACEOF | |
4132 | /* confdefs.h. */ | |
4133 | _ACEOF | |
4134 | cat confdefs.h >>conftest.$ac_ext | |
4135 | cat >>conftest.$ac_ext <<_ACEOF | |
4136 | /* end confdefs.h. */ | |
4137 | #include <ac_nonexistent.h> | |
4138 | _ACEOF | |
4139 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4140 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4141 | ac_status=$? | |
4142 | grep -v '^ *+' conftest.er1 >conftest.err | |
4143 | rm -f conftest.er1 | |
4144 | cat conftest.err >&5 | |
4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4146 | (exit $ac_status); } >/dev/null; then | |
4147 | if test -s conftest.err; then | |
4148 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4149 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4150 | else | |
4151 | ac_cpp_err= | |
4152 | fi | |
4153 | else | |
4154 | ac_cpp_err=yes | |
4155 | fi | fi |
4156 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | if test -z "$ac_cpp_err"; then |
4157 | if test -n "$ac_ct_CXX"; then | # Broken: success on invalid input. |
4158 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | continue |
echo "${ECHO_T}$ac_ct_CXX" >&6 | ||
4159 | else | else |
4160 | echo "$as_me:$LINENO: result: no" >&5 | echo "$as_me: failed program was:" >&5 |
4161 | echo "${ECHO_T}no" >&6 | sed 's/^/| /' conftest.$ac_ext >&5 |
4162 | ||
4163 | # Passes both tests. | |
4164 | ac_preproc_ok=: | |
4165 | break | |
4166 | fi | fi |
4167 | rm -f conftest.err conftest.$ac_ext | |
4168 | ||
test -n "$ac_ct_CXX" && break | ||
4169 | done | done |
4170 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4171 | rm -f conftest.err conftest.$ac_ext | |
4172 | CXX=$ac_ct_CXX | if $ac_preproc_ok; then |
4173 | : | |
4174 | else | |
4175 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4176 | See \`config.log' for more details." >&5 | |
4177 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4178 | See \`config.log' for more details." >&2;} | |
4179 | { (exit 1); exit 1; }; } | |
4180 | fi | fi |
4181 | ||
4182 | ac_ext=c | |
4183 | ac_cpp='$CPP $CPPFLAGS' | |
4184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4187 | ||
# Provide some information about the compiler. | ||
echo "$as_me:$LINENO:" \ | ||
"checking for C++ compiler version" >&5 | ||
ac_compiler=`set X $ac_compile; echo $2` | ||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
(eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } | ||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
(eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } | ||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
(eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } | ||
4188 | ||
4189 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4190 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4191 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | if test "${ac_cv_header_stdc+set}" = set; then |
4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4193 | else | else |
4194 | cat >conftest.$ac_ext <<_ACEOF | cat >conftest.$ac_ext <<_ACEOF |
# | Line 4326 _ACEOF | Line 4197 _ACEOF |
4197 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
4198 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
4199 | /* end confdefs.h. */ | /* end confdefs.h. */ |
4200 | #include <stdlib.h> | |
4201 | #include <stdarg.h> | |
4202 | #include <string.h> | |
4203 | #include <float.h> | |
4204 | ||
4205 | int | int |
4206 | main () | main () |
4207 | { | { |
#ifndef __GNUC__ | ||
choke me | ||
#endif | ||
4208 | ||
4209 | ; | ; |
4210 | return 0; | return 0; |
# | Line 4347 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 4219 if { (eval echo "$as_me:$LINENO: \"$ac_c |
4219 | cat conftest.err >&5 | cat conftest.err >&5 |
4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4221 | (exit $ac_status); } && | (exit $ac_status); } && |
4222 | { ac_try='test -z "$ac_cxx_werror_flag" | { ac_try='test -z "$ac_c_werror_flag" |
4223 | || test ! -s conftest.err' | || test ! -s conftest.err' |
4224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4225 | (eval $ac_try) 2>&5 | (eval $ac_try) 2>&5 |
# | Line 4360 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 4232 if { (eval echo "$as_me:$LINENO: \"$ac_c |
4232 | ac_status=$? | ac_status=$? |
4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4234 | (exit $ac_status); }; }; then | (exit $ac_status); }; }; then |
4235 | ac_compiler_gnu=yes | ac_cv_header_stdc=yes |
4236 | else | |
4237 | echo "$as_me: failed program was:" >&5 | |
4238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4239 | ||
4240 | ac_cv_header_stdc=no | |
4241 | fi | |
4242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4243 | ||
4244 | if test $ac_cv_header_stdc = yes; then | |
4245 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4246 | cat >conftest.$ac_ext <<_ACEOF | |
4247 | /* confdefs.h. */ | |
4248 | _ACEOF | |
4249 | cat confdefs.h >>conftest.$ac_ext | |
4250 | cat >>conftest.$ac_ext <<_ACEOF | |
4251 | /* end confdefs.h. */ | |
4252 | #include <string.h> | |
4253 | ||
4254 | _ACEOF | |
4255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4256 | $EGREP "memchr" >/dev/null 2>&1; then | |
4257 | : | |
4258 | else | |
4259 | ac_cv_header_stdc=no | |
4260 | fi | |
4261 | rm -f conftest* | |
4262 | ||
4263 | fi | |
4264 | ||
4265 | if test $ac_cv_header_stdc = yes; then | |
4266 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4267 | cat >conftest.$ac_ext <<_ACEOF | |
4268 | /* confdefs.h. */ | |
4269 | _ACEOF | |
4270 | cat confdefs.h >>conftest.$ac_ext | |
4271 | cat >>conftest.$ac_ext <<_ACEOF | |
4272 | /* end confdefs.h. */ | |
4273 | #include <stdlib.h> | |
4274 | ||
4275 | _ACEOF | |
4276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4277 | $EGREP "free" >/dev/null 2>&1; then | |
4278 | : | |
4279 | else | |
4280 | ac_cv_header_stdc=no | |
4281 | fi | |
4282 | rm -f conftest* | |
4283 | ||
4284 | fi | |
4285 | ||
4286 | if test $ac_cv_header_stdc = yes; then | |
4287 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4288 | if test "$cross_compiling" = yes; then | |
4289 | : | |
4290 | else | |
4291 | cat >conftest.$ac_ext <<_ACEOF | |
4292 | /* confdefs.h. */ | |
4293 | _ACEOF | |
4294 | cat confdefs.h >>conftest.$ac_ext | |
4295 | cat >>conftest.$ac_ext <<_ACEOF | |
4296 | /* end confdefs.h. */ | |
4297 | #include <ctype.h> | |
4298 | #if ((' ' & 0x0FF) == 0x020) | |
4299 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4300 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4301 | #else | |
4302 | # define ISLOWER(c) \ | |
4303 | (('a' <= (c) && (c) <= 'i') \ | |
4304 | || ('j' <= (c) && (c) <= 'r') \ | |
4305 | || ('s' <= (c) && (c) <= 'z')) | |
4306 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4307 | #endif | |
4308 | ||
4309 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4310 | int | |
4311 | main () | |
4312 | { | |
4313 | int i; | |
4314 | for (i = 0; i < 256; i++) | |
4315 | if (XOR (islower (i), ISLOWER (i)) | |
4316 | || toupper (i) != TOUPPER (i)) | |
4317 | exit(2); | |
4318 | exit (0); | |
4319 | } | |
4320 | _ACEOF | |
4321 | rm -f conftest$ac_exeext | |
4322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4323 | (eval $ac_link) 2>&5 | |
4324 | ac_status=$? | |
4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4328 | (eval $ac_try) 2>&5 | |
4329 | ac_status=$? | |
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4331 | (exit $ac_status); }; }; then | |
4332 | : | |
4333 | else | else |
4334 | echo "$as_me: failed program was:" >&5 | echo "$as_me: program exited with status $ac_status" >&5 |
4335 | echo "$as_me: failed program was:" >&5 | |
4336 | sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 |
4337 | ||
4338 | ac_compiler_gnu=no | ( exit $ac_status ) |
4339 | ac_cv_header_stdc=no | |
4340 | fi | fi |
4341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4342 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | fi |
4343 | fi | |
4344 | fi | |
4345 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4346 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4347 | if test $ac_cv_header_stdc = yes; then | |
4348 | ||
4349 | cat >>confdefs.h <<\_ACEOF | |
4350 | #define STDC_HEADERS 1 | |
4351 | _ACEOF | |
4352 | ||
4353 | fi | fi |
4354 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4355 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4356 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
4357 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4358 | ac_save_CXXFLAGS=$CXXFLAGS | |
4359 | CXXFLAGS="-g" | |
4360 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4361 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
4362 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
4363 | ||
4364 | ||
4365 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4366 | inttypes.h stdint.h unistd.h | |
4367 | do | |
4368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4369 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4373 | else | else |
4374 | cat >conftest.$ac_ext <<_ACEOF | cat >conftest.$ac_ext <<_ACEOF |
# | Line 4388 _ACEOF | Line 4377 _ACEOF |
4377 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
4378 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
4379 | /* end confdefs.h. */ | /* end confdefs.h. */ |
4380 | $ac_includes_default | |
4381 | ||
4382 | int | #include <$ac_header> |
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
4383 | _ACEOF | _ACEOF |
4384 | rm -f conftest.$ac_objext | rm -f conftest.$ac_objext |
4385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
# | Line 4406 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 4390 if { (eval echo "$as_me:$LINENO: \"$ac_c |
4390 | cat conftest.err >&5 | cat conftest.err >&5 |
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4392 | (exit $ac_status); } && | (exit $ac_status); } && |
4393 | { ac_try='test -z "$ac_cxx_werror_flag" | { ac_try='test -z "$ac_c_werror_flag" |
4394 | || test ! -s conftest.err' | || test ! -s conftest.err' |
4395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4396 | (eval $ac_try) 2>&5 | (eval $ac_try) 2>&5 |
# | Line 4419 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 4403 if { (eval echo "$as_me:$LINENO: \"$ac_c |
4403 | ac_status=$? | ac_status=$? |
4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4405 | (exit $ac_status); }; }; then | (exit $ac_status); }; }; then |
4406 | ac_cv_prog_cxx_g=yes | eval "$as_ac_Header=yes" |
4407 | else | else |
4408 | echo "$as_me: failed program was:" >&5 | echo "$as_me: failed program was:" >&5 |
4409 | sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 |
4410 | ||
4411 | ac_cv_prog_cxx_g=no | eval "$as_ac_Header=no" |
4412 | fi | fi |
4413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4414 | fi | fi |
4415 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4416 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4417 | if test "$ac_test_CXXFLAGS" = set; then | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4418 | CXXFLAGS=$ac_save_CXXFLAGS | cat >>confdefs.h <<_ACEOF |
4419 | elif test $ac_cv_prog_cxx_g = yes; then | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4420 | if test "$GXX" = yes; then | _ACEOF |
4421 | CXXFLAGS="-g -O2" | |
else | ||
CXXFLAGS="-g" | ||
fi | ||
else | ||
if test "$GXX" = yes; then | ||
CXXFLAGS="-O2" | ||
else | ||
CXXFLAGS= | ||
fi | ||
4422 | fi | fi |
4423 | for ac_declaration in \ | |
4424 | '' \ | done |
4425 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4426 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4427 | 'extern "C" void exit (int) throw ();' \ | |
4428 | 'extern "C" void exit (int);' \ | for ac_header in dlfcn.h |
'void exit (int);' | ||
4429 | do | do |
4430 | cat >conftest.$ac_ext <<_ACEOF | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4432 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4436 | fi | |
4437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4439 | else | |
4440 | # Is the header compilable? | |
4441 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4442 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4443 | cat >conftest.$ac_ext <<_ACEOF | |
4444 | /* confdefs.h. */ | /* confdefs.h. */ |
4445 | _ACEOF | _ACEOF |
4446 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
4447 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
4448 | /* end confdefs.h. */ | /* end confdefs.h. */ |
4449 | $ac_declaration | $ac_includes_default |
4450 | #include <stdlib.h> | #include <$ac_header> |
int | ||
main () | ||
{ | ||
exit (42); | ||
; | ||
return 0; | ||
} | ||
4451 | _ACEOF | _ACEOF |
4452 | rm -f conftest.$ac_objext | rm -f conftest.$ac_objext |
4453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
# | Line 4478 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 4458 if { (eval echo "$as_me:$LINENO: \"$ac_c |
4458 | cat conftest.err >&5 | cat conftest.err >&5 |
4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4460 | (exit $ac_status); } && | (exit $ac_status); } && |
4461 | { ac_try='test -z "$ac_cxx_werror_flag" | { ac_try='test -z "$ac_c_werror_flag" |
4462 | || test ! -s conftest.err' | || test ! -s conftest.err' |
4463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4464 | (eval $ac_try) 2>&5 | (eval $ac_try) 2>&5 |
# | Line 4491 if { (eval echo "$as_me:$LINENO: \"$ac_c | Line 4471 if { (eval echo "$as_me:$LINENO: \"$ac_c |
4471 | ac_status=$? | ac_status=$? |
4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4473 | (exit $ac_status); }; }; then | (exit $ac_status); }; }; then |
4474 | : | ac_header_compiler=yes |
4475 | else | else |
4476 | echo "$as_me: failed program was:" >&5 | echo "$as_me: failed program was:" >&5 |
4477 | sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 |
4478 | ||
4479 | continue | ac_header_compiler=no |
4480 | fi | fi |
4481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4482 | cat >conftest.$ac_ext <<_ACEOF | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4483 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4484 | ||
4485 | # Is the header present? | |
4486 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4487 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4488 | cat >conftest.$ac_ext <<_ACEOF | |
4489 | /* confdefs.h. */ | /* confdefs.h. */ |
4490 | _ACEOF | _ACEOF |
4491 | cat confdefs.h >>conftest.$ac_ext | cat confdefs.h >>conftest.$ac_ext |
4492 | cat >>conftest.$ac_ext <<_ACEOF | cat >>conftest.$ac_ext <<_ACEOF |
4493 | /* end confdefs.h. */ | /* end confdefs.h. */ |
4494 | $ac_declaration | #include <$ac_header> |
int | ||
main () | ||
{ | ||
exit (42); | ||
; | ||
return 0; | ||
} | ||
4495 | _ACEOF | _ACEOF |
4496 | rm -f conftest.$ac_objext | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
(eval $ac_compile) 2>conftest.er1 | ||
4498 | ac_status=$? | ac_status=$? |
4499 | grep -v '^ *+' conftest.er1 >conftest.err | grep -v '^ *+' conftest.er1 >conftest.err |
4500 | rm -f conftest.er1 | rm -f conftest.er1 |
4501 | cat conftest.err >&5 | cat conftest.err >&5 |
4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4503 | (exit $ac_status); } && | (exit $ac_status); } >/dev/null; then |
4504 | { ac_try='test -z "$ac_cxx_werror_flag" | if test -s conftest.err; then |
4505 | || test ! -s conftest.err' | ac_cpp_err=$ac_c_preproc_warn_flag |
4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4507 | (eval $ac_try) 2>&5 | else |
4508 | ac_status=$? | ac_cpp_err= |
4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | fi |
4510 | (exit $ac_status); }; } && | else |
4511 | { ac_try='test -s conftest.$ac_objext' | ac_cpp_err=yes |
4512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | fi |
4513 | (eval $ac_try) 2>&5 | if test -z "$ac_cpp_err"; then |
4514 | ac_status=$? | ac_header_preproc=yes |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
break | ||
4515 | else | else |
4516 | echo "$as_me: failed program was:" >&5 | echo "$as_me: failed program was:" >&5 |
4517 | sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 |
4518 | ||
4519 | ac_header_preproc=no | |
4520 | fi | fi |
4521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f conftest.err conftest.$ac_ext |
4522 | done | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4523 | rm -f conftest* | echo "${ECHO_T}$ac_header_preproc" >&6 |
4524 | if test -n "$ac_declaration"; then | |
4525 | echo '#ifdef __cplusplus' >>confdefs.h | # So? What about this header? |
4526 | echo $ac_declaration >>confdefs.h | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4527 | echo '#endif' >>confdefs.h | yes:no: ) |
4528 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4529 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4531 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4532 | ac_header_preproc=yes | |
4533 | ;; | |
4534 | no:yes:* ) | |
4535 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4536 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4537 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4538 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4539 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4540 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4541 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4542 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4545 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4546 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4547 | ( | |
4548 | cat <<\_ASBOX | |
4549 | ## ------------------------------------------ ## | |
4550 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4551 | ## ------------------------------------------ ## | |
4552 | _ASBOX | |
4553 | ) | | |
4554 | sed "s/^/$as_me: WARNING: /" >&2 | |
4555 | ;; | |
4556 | esac | |
4557 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4559 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4561 | else | |
4562 | eval "$as_ac_Header=\$ac_header_preproc" | |
4563 | fi | fi |
4564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4565 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4566 | ||
4567 | ac_ext=cc | fi |
4568 | ac_cpp='$CXXCPP $CPPFLAGS' | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4569 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | cat >>confdefs.h <<_ACEOF |
4570 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4571 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | _ACEOF |
4572 | ||
4573 | ac_ext=cc | fi |
4574 | ||
4575 | done | |
4576 | ||
4577 | ||
4578 | ||
4579 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
4580 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
4581 | (test "X$CXX" != "Xg++"))) ; then | |
4582 | ac_ext=cc | |
4583 | ac_cpp='$CXXCPP $CPPFLAGS' | ac_cpp='$CXXCPP $CPPFLAGS' |
4584 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4585 | 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 4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS | Line 4809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS |
4809 | 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' |
4810 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4811 | ||
4812 | fi | |
4813 | ||
4814 | ||
4815 | ac_ext=f | ac_ext=f |
4816 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
# | Line 4880 fi | Line 4904 fi |
4904 | ||
4905 | ||
4906 | # Provide some information about the compiler. | # Provide some information about the compiler. |
4907 | echo "$as_me:4878:" \ | echo "$as_me:4907:" \ |
4908 | "checking for Fortran 77 compiler version" >&5 | "checking for Fortran 77 compiler version" >&5 |
4909 | ac_compiler=`set X $ac_compile; echo $2` | ac_compiler=`set X $ac_compile; echo $2` |
4910 | { (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 5070 else | Line 5094 else |
5094 | lt_cv_sys_max_cmd_len=8192; | lt_cv_sys_max_cmd_len=8192; |
5095 | ;; | ;; |
5096 | ||
5097 | netbsd* | freebsd* | openbsd* | darwin* ) | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5098 | # This has been around since 386BSD, at least. Likely further. | # This has been around since 386BSD, at least. Likely further. |
5099 | if test -x /sbin/sysctl; then | if test -x /sbin/sysctl; then |
5100 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
# | Line 5081 else | Line 5105 else |
5105 | fi | fi |
5106 | # And add a safety zone | # And add a safety zone |
5107 | 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` |
5108 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5109 | ;; | ;; |
5110 | osf*) | |
5111 | *) | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5112 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5113 | # nice to cause kernel panics so lets avoid the loop below. | |
5114 | # First set a reasonable default. | |
5115 | lt_cv_sys_max_cmd_len=16384 | |
5116 | # | |
5117 | if test -x /sbin/sysconfig; then | |
5118 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5119 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5120 | esac | |
5121 | fi | |
5122 | ;; | |
5123 | *) | |
5124 | # 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 |
5125 | # maximum length that is only half of the actual maximum length, but | # maximum length that is only half of the actual maximum length, but |
5126 | # we can't tell. | # we can't tell. |
# | Line 5134 symcode='[BCDEGRST]' | Line 5171 symcode='[BCDEGRST]' |
5171 | # Regexp to match symbols that can be accessed directly from C. | # Regexp to match symbols that can be accessed directly from C. |
5172 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5173 | ||
# Transform the above into a raw symbol and a C symbol. | ||
symxfrm='\1 \2\3 \3' | ||
5174 | # Transform an extracted symbol line into a proper C declaration | # Transform an extracted symbol line into a proper C declaration |
5175 | 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'" |
5176 | ||
# | Line 5158 hpux*) # Its linker distinguishes data f | Line 5192 hpux*) # Its linker distinguishes data f |
5192 | 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'" |
5193 | 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'" |
5194 | ;; | ;; |
5195 | linux*) | |
5196 | if test "$host_cpu" = ia64; then | |
5197 | symcode='[ABCDGIRSTW]' | |
5198 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5199 | 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'" | |
5200 | fi | |
5201 | ;; | |
5202 | irix* | nonstopux*) | irix* | nonstopux*) |
5203 | symcode='[BCDEGRST]' | symcode='[BCDEGRST]' |
5204 | ;; | ;; |
# | Line 5189 esac | Line 5230 esac |
5230 | # Try without a prefix undercore, then with it. | # Try without a prefix undercore, then with it. |
5231 | for ac_symprfx in "" "_"; do | for ac_symprfx in "" "_"; do |
5232 | ||
5233 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5234 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5235 | ||
5236 | # Write the raw and C identifiers. | # Write the raw and C identifiers. |
5237 | 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'" |
5238 | ||
5239 | # Check to see that the pipe works correctly. | # Check to see that the pipe works correctly. |
5240 | pipe_works=no | pipe_works=no |
# | Line 5352 esac | Line 5396 esac |
5396 | ||
5397 | # Sed substitution that helps us do robust quoting. It backslashifies | # Sed substitution that helps us do robust quoting. It backslashifies |
5398 | # metacharacters that are still active within double-quoted strings. | # metacharacters that are still active within double-quoted strings. |
5399 | Xsed='sed -e s/^X//' | Xsed='sed -e 1s/^X//' |
5400 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5401 | ||
5402 | # Same as above, but do not quote variable references. | # Same as above, but do not quote variable references. |
# | Line 5657 if test -n "$RANLIB"; then | Line 5701 if test -n "$RANLIB"; then |
5701 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
5702 | fi | fi |
5703 | ||
5704 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | for cc_temp in $compiler""; do |
5705 | case $cc_temp in | |
5706 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
5707 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
5708 | \-*) ;; | |
5709 | *) break;; | |
5710 | esac | |
5711 | done | |
5712 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
5713 | ||
5714 | ||
5715 | # Only perform the check for file, if the check method requires it | # Only perform the check for file, if the check method requires it |
5716 | case $deplibs_check_method in | case $deplibs_check_method in |
# | Line 5814 else | Line 5867 else |
5867 | fi; | fi; |
5868 | test -z "$pic_mode" && pic_mode=default | test -z "$pic_mode" && pic_mode=default |
5869 | ||
5870 | # Check if we have a version mismatch between libtool.m4 and ltmain.sh. | |
5871 | # | |
5872 | # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. | |
5873 | # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually | |
5874 | # calls AC_LIBTOOL_CONFIG and creates libtool. | |
5875 | # | |
5876 | echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 | |
5877 | echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 | |
5878 | if test -z "$ltmain"; then | |
5879 | echo "$as_me:$LINENO: result: no" >&5 | |
5880 | echo "${ECHO_T}no" >&6 | |
5881 | echo | |
5882 | echo "*** Gentoo sanity check failed! ***" | |
5883 | echo "*** \$ltmain is not defined, please check the patch for consistency! ***" | |
5884 | echo | |
5885 | exit 1 | |
5886 | fi | |
5887 | gentoo_lt_version="1.5.18" | |
5888 | gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'` | |
5889 | if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then | |
5890 | echo "$as_me:$LINENO: result: no" >&5 | |
5891 | echo "${ECHO_T}no" >&6 | |
5892 | echo | |
5893 | echo "*** Gentoo sanity check failed! ***" | |
5894 | echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***" | |
5895 | echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***" | |
5896 | echo | |
5897 | echo "Please run:" | |
5898 | echo | |
5899 | echo " libtoolize --copy --force" | |
5900 | echo | |
5901 | echo "if appropriate, please contact the maintainer of this" | |
5902 | echo "package (or your distribution) for help." | |
5903 | echo | |
5904 | exit 1 | |
5905 | else | |
5906 | echo "$as_me:$LINENO: result: yes" >&5 | |
5907 | echo "${ECHO_T}yes" >&6 | |
5908 | fi | |
5909 | ||
5910 | ||
5911 | # Use C for the default configuration in the libtool script | # Use C for the default configuration in the libtool script |
5912 | tagname= | tagname= |
5913 | lt_save_CC="$CC" | lt_save_CC="$CC" |
# | Line 5845 LTCC=${LTCC-"$CC"} | Line 5939 LTCC=${LTCC-"$CC"} |
5939 | compiler=$CC | compiler=$CC |
5940 | ||
5941 | ||
5942 | # save warnings/boilerplate of simple test code | |
5943 | ac_outfile=conftest.$ac_objext | |
5944 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
5945 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
5946 | _lt_compiler_boilerplate=`cat conftest.err` | |
5947 | $rm conftest* | |
5948 | ||
5949 | ac_outfile=conftest.$ac_objext | |
5950 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
5951 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | |
5952 | _lt_linker_boilerplate=`cat conftest.err` | |
5953 | $rm conftest* | |
5954 | ||
5955 | ||
5956 | # | # |
5957 | # Check for any special shared library compilation flags. | # Check for any special shared library compilation flags. |
5958 | # | # |
# | Line 5886 else | Line 5994 else |
5994 | if test -s conftest.err; then | if test -s conftest.err; then |
5995 | # Append any errors to the config.log. | # Append any errors to the config.log. |
5996 | cat conftest.err 1>&5 | cat conftest.err 1>&5 |
5997 | $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp | |
5998 | $SED '/^$/d' conftest.err >conftest.er2 | |
5999 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6000 | lt_prog_compiler_static_works=yes | |
6001 | fi | |
6002 | else | else |
6003 | lt_prog_compiler_static_works=yes | lt_prog_compiler_static_works=yes |
6004 | fi | fi |
# | Line 5905 fi | Line 6018 fi |
6018 | ||
6019 | ||
6020 | ||
## 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... | ||
6021 | ||
6022 | lt_prog_compiler_no_builtin_flag= | lt_prog_compiler_no_builtin_flag= |
6023 | ||
# | Line 5934 else | Line 6043 else |
6043 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6044 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6045 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
6046 | (eval echo "\"\$as_me:5932: $lt_compile\"" >&5) | (eval echo "\"\$as_me:6046: $lt_compile\"" >&5) |
6047 | (eval "$lt_compile" 2>conftest.err) | (eval "$lt_compile" 2>conftest.err) |
6048 | ac_status=$? | ac_status=$? |
6049 | cat conftest.err >&5 | cat conftest.err >&5 |
6050 | echo "$as_me:5936: \$? = $ac_status" >&5 | echo "$as_me:6050: \$? = $ac_status" >&5 |
6051 | if (exit $ac_status) && test -s "$ac_outfile"; then | if (exit $ac_status) && test -s "$ac_outfile"; then |
6052 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
6053 | # So say no if there are warnings | # So say no if there are warnings other than the usual output. |
6054 | if test ! -s conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
6055 | $SED '/^$/d' conftest.err >conftest.er2 | |
6056 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
6057 | lt_cv_prog_compiler_rtti_exceptions=yes | lt_cv_prog_compiler_rtti_exceptions=yes |
6058 | fi | fi |
6059 | fi | fi |
# | Line 6048 echo $ECHO_N "checking for $compiler opt | Line 6159 echo $ECHO_N "checking for $compiler opt |
6159 | darwin*) | darwin*) |
6160 | # PIC is the default on this platform | # PIC is the default on this platform |
6161 | # Common symbols not allowed in MH_DYLIB files | # Common symbols not allowed in MH_DYLIB files |
6162 | case "$cc_basename" in | case $cc_basename in |
6163 | xlc*) | xlc*) |
6164 | lt_prog_compiler_pic='-qnocommon' | lt_prog_compiler_pic='-qnocommon' |
6165 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
# | Line 6090 echo $ECHO_N "checking for $compiler opt | Line 6201 echo $ECHO_N "checking for $compiler opt |
6201 | ;; | ;; |
6202 | ||
6203 | linux*) | linux*) |
6204 | case $CC in | case $cc_basename in |
6205 | icc* | ecc*) | icc* | ecc*) |
6206 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
6207 | lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' |
6208 | lt_prog_compiler_static='-static' | lt_prog_compiler_static='-static' |
6209 | ;; | ;; |
6210 | pgcc* | pgf77* | pgf90*) | |
6211 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6212 | # which looks to be a dead project) | |
6213 | lt_prog_compiler_wl='-Wl,' | |
6214 | lt_prog_compiler_pic='-fpic' | |
6215 | lt_prog_compiler_static='-static' | |
6216 | ;; | |
6217 | ccc*) | ccc*) |
6218 | lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' |
6219 | # All Alpha code is PIC. | # All Alpha code is PIC. |
# | Line 6116 echo $ECHO_N "checking for $compiler opt | Line 6234 echo $ECHO_N "checking for $compiler opt |
6234 | ;; | ;; |
6235 | ||
6236 | solaris*) | solaris*) |
lt_prog_compiler_wl='-Wl,' | ||
6237 | lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' |
6238 | lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' |
6239 | case $cc_basename in | |
6240 | f77* | f90* | f95*) | |
6241 | lt_prog_compiler_wl='-Qoption ld ';; | |
6242 | *) | |
6243 | lt_prog_compiler_wl='-Wl,';; | |
6244 | esac | |
6245 | ;; | ;; |
6246 | ||
6247 | sunos4*) | sunos4*) |
# | Line 6140 echo $ECHO_N "checking for $compiler opt | Line 6263 echo $ECHO_N "checking for $compiler opt |
6263 | fi | fi |
6264 | ;; | ;; |
6265 | ||
6266 | unicos*) | |
6267 | lt_prog_compiler_wl='-Wl,' | |
6268 | lt_prog_compiler_can_build_shared=no | |
6269 | ;; | |
6270 | ||
6271 | uts4*) | uts4*) |
6272 | lt_prog_compiler_pic='-pic' | lt_prog_compiler_pic='-pic' |
6273 | lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' |
# | Line 6177 else | Line 6305 else |
6305 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6306 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6307 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
6308 | (eval echo "\"\$as_me:6175: $lt_compile\"" >&5) | (eval echo "\"\$as_me:6308: $lt_compile\"" >&5) |
6309 | (eval "$lt_compile" 2>conftest.err) | (eval "$lt_compile" 2>conftest.err) |
6310 | ac_status=$? | ac_status=$? |
6311 | cat conftest.err >&5 | cat conftest.err >&5 |
6312 | echo "$as_me:6179: \$? = $ac_status" >&5 | echo "$as_me:6312: \$? = $ac_status" >&5 |
6313 | if (exit $ac_status) && test -s "$ac_outfile"; then | if (exit $ac_status) && test -s "$ac_outfile"; then |
6314 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
6315 | # So say no if there are warnings | # So say no if there are warnings other than the usual output. |
6316 | if test ! -s conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
6317 | $SED '/^$/d' conftest.err >conftest.er2 | |
6318 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | |
6319 | lt_prog_compiler_pic_works=yes | lt_prog_compiler_pic_works=yes |
6320 | fi | fi |
6321 | fi | fi |
# | Line 6237 else | Line 6367 else |
6367 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6368 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6369 | -e 's:$: $lt_compiler_flag:'` | -e 's:$: $lt_compiler_flag:'` |
6370 | (eval echo "\"\$as_me:6235: $lt_compile\"" >&5) | (eval echo "\"\$as_me:6370: $lt_compile\"" >&5) |
6371 | (eval "$lt_compile" 2>out/conftest.err) | (eval "$lt_compile" 2>out/conftest.err) |
6372 | ac_status=$? | ac_status=$? |
6373 | cat out/conftest.err >&5 | cat out/conftest.err >&5 |
6374 | echo "$as_me:6239: \$? = $ac_status" >&5 | echo "$as_me:6374: \$? = $ac_status" >&5 |
6375 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6376 | then | then |
6377 | # The compiler can only warn and ignore the option if not recognized | # The compiler can only warn and ignore the option if not recognized |
6378 | # So say no if there are warnings | # So say no if there are warnings |
6379 | if test ! -s out/conftest.err; then | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
6380 | $SED '/^$/d' out/conftest.err >out/conftest.er2 | |
6381 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
6382 | lt_cv_prog_compiler_c_o=yes | lt_cv_prog_compiler_c_o=yes |
6383 | fi | fi |
6384 | fi | fi |
# | Line 6326 echo $ECHO_N "checking whether the $comp | Line 6458 echo $ECHO_N "checking whether the $comp |
6458 | # 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 |
6459 | # preloaded symbol tables. | # preloaded symbol tables. |
6460 | extract_expsyms_cmds= | extract_expsyms_cmds= |
6461 | # Just being paranoid about ensuring that cc_basename is set. | |
6462 | for cc_temp in $compiler""; do | |
6463 | case $cc_temp in | |
6464 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6465 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6466 | \-*) ;; | |
6467 | *) break;; | |
6468 | esac | |
6469 | done | |
6470 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6471 | ||
6472 | case $host_os in | case $host_os in |
6473 | cygwin* | mingw* | pw32*) | cygwin* | mingw* | pw32*) |
# | Line 6346 echo $ECHO_N "checking whether the $comp | Line 6488 echo $ECHO_N "checking whether the $comp |
6488 | # If archive_cmds runs LD, not CC, wlarc should be empty | # If archive_cmds runs LD, not CC, wlarc should be empty |
6489 | wlarc='${wl}' | wlarc='${wl}' |
6490 | ||
6491 | # Set some defaults for GNU ld with shared library support. These | |
6492 | # are reset later if shared libraries are not supported. Putting them | |
6493 | # here allows them to be overridden if necessary. | |
6494 | runpath_var=LD_RUN_PATH | |
6495 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6496 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
6497 | # ancient GNU ld didn't support --whole-archive et. al. | |
6498 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
6499 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6500 | else | |
6501 | whole_archive_flag_spec= | |
6502 | fi | |
6503 | supports_anon_versioning=no | |
6504 | case `$LD -v 2>/dev/null` in | |
6505 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
6506 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
6507 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
6508 | *\ 2.11.*) ;; # other 2.11 versions | |
6509 | *) supports_anon_versioning=yes ;; | |
6510 | esac | |
6511 | ||
6512 | # See if GNU ld supports shared libraries. | # See if GNU ld supports shared libraries. |
6513 | case $host_os in | case $host_os in |
6514 | aix3* | aix4* | aix5*) | aix3* | aix4* | aix5*) |
# | Line 6396 EOF | Line 6559 EOF |
6559 | allow_undefined_flag=unsupported | allow_undefined_flag=unsupported |
6560 | always_export_symbols=no | always_export_symbols=no |
6561 | enable_shared_with_static_runtimes=yes | enable_shared_with_static_runtimes=yes |
6562 | 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' |
6563 | ||
6564 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
6565 | 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}--image-base=0x10000000 ${wl}--out-implib,$lib' |
# | Line 6414 EOF | Line 6577 EOF |
6577 | fi | fi |
6578 | ;; | ;; |
6579 | ||
6580 | linux*) | |
6581 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6582 | tmp_addflag= | |
6583 | case $cc_basename,$host_cpu in | |
6584 | pgcc*) # Portland Group C compiler | |
6585 | 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' | |
6586 | tmp_addflag=' $pic_flag' | |
6587 | ;; | |
6588 | pgf77* | pgf90* ) # Portland Group f77 and f90 compilers | |
6589 | 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' | |
6590 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
6591 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
6592 | tmp_addflag=' -i_dynamic' ;; | |
6593 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
6594 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
6595 | ifc* | ifort*) # Intel Fortran compiler | |
6596 | tmp_addflag=' -nofor_main' ;; | |
6597 | esac | |
6598 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6599 | ||
6600 | if test $supports_anon_versioning = yes; then | |
6601 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
6602 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6603 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6604 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6605 | fi | |
6606 | else | |
6607 | ld_shlibs=no | |
6608 | fi | |
6609 | ;; | |
6610 | ||
6611 | netbsd*) | netbsd*) |
6612 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6613 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
# | Line 6452 EOF | Line 6646 EOF |
6646 | hardcode_shlibpath_var=no | hardcode_shlibpath_var=no |
6647 | ;; | ;; |
6648 | ||
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 | ||
;; | ||
6649 | *) | *) |
6650 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6651 | 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 6487 $echo "local: *; };" >> $output_objdir/$ | Line 6656 $echo "local: *; };" >> $output_objdir/$ |
6656 | ;; | ;; |
6657 | esac | esac |
6658 | ||
6659 | if test "$ld_shlibs" = yes; then | if test "$ld_shlibs" = no; then |
6660 | runpath_var=LD_RUN_PATH | runpath_var= |
6661 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | hardcode_libdir_flag_spec= |
6662 | export_dynamic_flag_spec='${wl}--export-dynamic' | export_dynamic_flag_spec= |
6663 | # 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 | ||
6664 | fi | fi |
6665 | else | else |
6666 | # 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 6560 $echo "local: *; };" >> $output_objdir/$ | Line 6724 $echo "local: *; };" >> $output_objdir/$ |
6724 | link_all_deplibs=yes | link_all_deplibs=yes |
6725 | ||
6726 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
6727 | case $host_os in aix4.012|aix4.012.*) | case $host_os in aix4.[012]|aix4.[012].*) |
6728 | # 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 |
6729 | # below for broken collect2 doesn't work under 4.3+ | # below for broken collect2 doesn't work under 4.3+ |
6730 | collect2name=`${CC} -print-prog-name=collect2` | collect2name=`${CC} -print-prog-name=collect2` |
# | Line 6581 $echo "local: *; };" >> $output_objdir/$ | Line 6745 $echo "local: *; };" >> $output_objdir/$ |
6745 | fi | fi |
6746 | esac | esac |
6747 | shared_flag='-shared' | shared_flag='-shared' |
6748 | if test "$aix_use_runtimelinking" = yes; then | |
6749 | shared_flag="$shared_flag "'${wl}-G' | |
6750 | fi | |
6751 | else | else |
6752 | # not using gcc | # not using gcc |
6753 | if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then |
# | Line 6800 if test -z "$aix_libpath"; then aix_libp | Line 6967 if test -z "$aix_libpath"; then aix_libp |
6967 | 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}' |
6968 | 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}' |
6969 | else | else |
6970 | case "$cc_basename" in | case $cc_basename in |
6971 | xlc*) | xlc*) |
6972 | output_verbose_link_cmd='echo' | output_verbose_link_cmd='echo' |
6973 | 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' |
# | Line 6846 if test -z "$aix_libpath"; then aix_libp | Line 7013 if test -z "$aix_libpath"; then aix_libp |
7013 | ;; | ;; |
7014 | ||
7015 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7016 | freebsd* | kfreebsd*-gnu) | freebsd* | kfreebsd*-gnu | dragonfly*) |
7017 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7018 | hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' |
7019 | hardcode_direct=yes | hardcode_direct=yes |
# | Line 7003 if test -z "$aix_libpath"; then aix_libp | Line 7170 if test -z "$aix_libpath"; then aix_libp |
7170 | allow_undefined_flag=' -expect_unresolved \*' | allow_undefined_flag=' -expect_unresolved \*' |
7171 | 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' |
7172 | 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~ |
7173 | $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' |
7174 | ||
7175 | # Both c and cxx compiler support -rpath directly | # Both c and cxx compiler support -rpath directly |
7176 | hardcode_libdir_flag_spec='-rpath $libdir' | hardcode_libdir_flag_spec='-rpath $libdir' |
# | Line 7022 if test -z "$aix_libpath"; then aix_libp | Line 7189 if test -z "$aix_libpath"; then aix_libp |
7189 | solaris*) | solaris*) |
7190 | no_undefined_flag=' -z text' | no_undefined_flag=' -z text' |
7191 | if test "$GCC" = yes; then | if test "$GCC" = yes; then |
7192 | wlarc='${wl}' | |
7193 | 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' |
7194 | 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~ |
7195 | $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' |
7196 | else | else |
7197 | wlarc='' | |
7198 | 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' |
7199 | 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~ |
7200 | $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 7034 if test -z "$aix_libpath"; then aix_libp | Line 7203 if test -z "$aix_libpath"; then aix_libp |
7203 | hardcode_shlibpath_var=no | hardcode_shlibpath_var=no |
7204 | case $host_os in | case $host_os in |
7205 | solaris2.[0-5] | solaris2.[0-5].*) ;; | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7206 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | *) |
7207 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | # The compiler driver will combine linker options so we |
7208 | # cannot just pass the convience library names through | |
7209 | # without $wl, iff we do not link with $LD. | |
7210 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
7211 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7212 | case $wlarc in | |
7213 | '') | |
7214 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
7215 | *) | |
7216 | 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' ;; | |
7217 | esac ;; | |
7218 | esac | esac |
7219 | link_all_deplibs=yes | link_all_deplibs=yes |
7220 | ;; | ;; |
# | Line 7367 cygwin* | mingw* | pw32*) | Line 7546 cygwin* | mingw* | pw32*) |
7546 | ;; | ;; |
7547 | pw32*) | pw32*) |
7548 | # pw32 DLLs use 'pw' prefix rather than 'lib' | # pw32 DLLs use 'pw' prefix rather than 'lib' |
7549 | 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}' |
7550 | ;; | ;; |
7551 | esac | esac |
7552 | ;; | ;; |
7553 | ||
7554 | linux*) | |
7555 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
7556 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7557 | supports_anon_versioning=no | |
7558 | case `$LD -v 2>/dev/null` in | |
7559 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7560 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7561 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7562 | *\ 2.11.*) ;; # other 2.11 versions | |
7563 | *) supports_anon_versioning=yes ;; | |
7564 | esac | |
7565 | if test $supports_anon_versioning = yes; then | |
7566 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
7567 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7568 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7569 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7570 | else | |
7571 | $archive_expsym_cmds="$archive_cmds" | |
7572 | fi | |
7573 | else | |
7574 | ld_shlibs=no | |
7575 | fi | |
7576 | ;; | |
7577 | ||
7578 | *) | *) |
7579 | 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' |
7580 | ;; | ;; |
# | Line 7425 kfreebsd*-gnu) | Line 7628 kfreebsd*-gnu) |
7628 | dynamic_linker='GNU ld.so' | dynamic_linker='GNU ld.so' |
7629 | ;; | ;; |
7630 | ||
7631 | freebsd*) | freebsd* | dragonfly*) |
7632 | # DragonFly does not have aout. When/if they implement a new | |
7633 | # versioning mechanism, adjust this. | |
7634 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
7635 | version_type=freebsd-$objformat | version_type=freebsd-$objformat |
7636 | case $version_type in | case $version_type in |
# | Line 7444 freebsd*) | Line 7649 freebsd*) |
7649 | freebsd2*) | freebsd2*) |
7650 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
7651 | ;; | ;; |
7652 | freebsd3.01* | freebsdelf3.01*) | freebsd3.[01]* | freebsdelf3.[01]*) |
7653 | shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes |
7654 | hardcode_into_libs=yes | hardcode_into_libs=yes |
7655 | ;; | ;; |
# | Line 7570 linux*) | Line 7775 linux*) |
7775 | ||
7776 | # Append ld.so.conf contents to the search path | # Append ld.so.conf contents to the search path |
7777 | if test -f /etc/ld.so.conf; then | if test -f /etc/ld.so.conf; then |
7778 | 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' ' '` |
7779 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
7780 | fi | fi |
7781 | ||
7782 | case $host_cpu:$lt_cv_cc_64bit_output in | |
7783 | powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) | |
7784 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" | |
7785 | sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" | |
7786 | ;; | |
7787 | esac | |
7788 | ||
7789 | # We used to test for /lib/ld.so.1 and disable shared libraries on | # We used to test for /lib/ld.so.1 and disable shared libraries on |
7790 | # powerpc, because MkLinux only supported shared libraries with the | # powerpc, because MkLinux only supported shared libraries with the |
7791 | # GNU dynamic linker. Since this was broken with cross compilers, | # GNU dynamic linker. Since this was broken with cross compilers, |
# | Line 7581 linux*) | Line 7793 linux*) |
7793 | # people can always --disable-shared, the test was removed, and we | # people can always --disable-shared, the test was removed, and we |
7794 | # assume the GNU/Linux dynamic linker is in use. | # assume the GNU/Linux dynamic linker is in use. |
7795 | dynamic_linker='GNU/Linux ld.so' | dynamic_linker='GNU/Linux ld.so' |
7796 | ||
7797 | # Find out which ABI we are using (multilib Linux x86_64 hack). | |
7798 | libsuff= | |
7799 | case "$host_cpu" in | |
7800 | x86_64*) | |
7801 | echo '#line 7801 "configure"' > conftest.$ac_ext | |
7802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7803 | (eval $ac_compile) 2>&5 | |
7804 | ac_status=$? | |
7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7806 | (exit $ac_status); }; then | |
7807 | case `/usr/bin/file conftest.$ac_objext` in | |
7808 | *64-bit*) | |
7809 | libsuff=64 | |
7810 | ;; | |
7811 | esac | |
7812 | fi | |
7813 | rm -rf conftest* | |
7814 | ;; | |
7815 | *) | |
7816 | ;; | |
7817 | esac | |
7818 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
7819 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
7820 | ;; | ;; |
7821 | ||
7822 | knetbsd*-gnu) | knetbsd*-gnu) |
# | Line 7633 nto-qnx*) | Line 7869 nto-qnx*) |
7869 | openbsd*) | openbsd*) |
7870 | version_type=sunos | version_type=sunos |
7871 | need_lib_prefix=no | need_lib_prefix=no |
7872 | need_version=no | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
7873 | case $host_os in | |
7874 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
7875 | *) need_version=no ;; | |
7876 | esac | |
7877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
7878 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
7879 | shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH |
# | Line 8422 else | Line 8662 else |
8662 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
8663 | lt_status=$lt_dlunknown | lt_status=$lt_dlunknown |
8664 | cat > conftest.$ac_ext <<EOF | cat > conftest.$ac_ext <<EOF |
8665 | #line 8420 "configure" | #line 8665 "configure" |