2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.3.0.
5 # Report bugs to <opensource@google.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='glog'
731 PACKAGE_VERSION='0.3.0'
732 PACKAGE_STRING='glog 0.3.0'
733 PACKAGE_BUGREPORT='opensource@google.com'
735 ac_unique_file="README"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
879 ENABLE_FRAME_POINTERS_TRUE
880 ENABLE_FRAME_POINTERS_FALSE
892 ac_google_start_namespace
893 ac_google_end_namespace
895 ac_cv_cxx_using_operator
896 ac_cv___attribute___noreturn
897 ac_cv___attribute___printf_4_5
898 ac_cv_have___builtin_expect
900 ac_cv_have_systypes_h
901 ac_cv_have_inttypes_h
916 ac_precious_vars='build_alias
933 # Initialize some variables set by options.
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name=s,x,x,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1223 -site=* | --site=* | --sit=*)
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1250 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_$ac_package=no ;;
1268 # Obsolete; use --with-x.
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1397 ac_srcdir_defaulted=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures glog 0.3.0 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of glog 0.3.0:";;
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --disable-dependency-tracking speeds up one-time build
1511 --enable-dependency-tracking do not reject slow dependency extractors
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --enable-frame-pointers On x86_64 systems, compile with
1518 -fno-omit-frame-pointer (see INSTALL)
1519 --enable-namespace=FOO to define these Google
1520 classes in the FOO namespace. --disable-namespace
1521 to define them in the global namespace. Default
1522 is to define them in namespace google.
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-pic try to use only PIC/non-PIC objects [default=use
1530 --with-tags[=TAGS] include additional configurations [automatic]
1531 --with-gflags=GFLAGS_DIR
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1542 CXX C++ compiler command
1543 CXXFLAGS C++ compiler flags
1544 CXXCPP C++ preprocessor
1545 F77 Fortran 77 compiler command
1546 FFLAGS Fortran 77 compiler flags
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1551 Report bugs to <opensource@google.com>.
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" || continue
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 glog configure 0.3.0
1613 generated by GNU Autoconf 2.61
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1622 cat >config.log <<_ACEOF
1623 This file contains any messages produced by compilers while
1624 running configure, to aid debugging if configure makes a mistake.
1626 It was created by glog $as_me 0.3.0, which was
1627 generated by GNU Autoconf 2.61. Invocation command line was
1639 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1640 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1641 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1642 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1643 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1645 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1646 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1648 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1649 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1650 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1651 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1652 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1653 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1654 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 echo "PATH: $as_dir"
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1687 ac_must_keep_next=false
1693 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695 | -silent | --silent | --silen | --sile | --sil)
1698 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1701 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1704 if test $ac_must_keep_next = true; then
1705 ac_must_keep_next=false # Got value, back to normal.
1708 *=* | --config-cache | -C | -disable-* | --disable-* \
1709 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711 | -with-* | --with-* | -without-* | --without-* | --x)
1712 case "$ac_configure_args0 " in
1713 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1716 -* ) ac_must_keep_next=true ;;
1719 ac_configure_args="$ac_configure_args '$ac_arg'"
1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log. We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733 # Save into config.log some information that might help in debugging.
1738 ## ---------------- ##
1739 ## Cache variables. ##
1740 ## ---------------- ##
1743 # The following way of writing the cache mishandles newlines in values,
1745 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1746 eval ac_val=\$$ac_var
1750 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1751 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1754 _ | IFS | as_nl) ;; #(
1755 *) $as_unset $ac_var ;;
1760 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1761 *${as_nl}ac_space=\ *)
1763 "s/'\''/'\''\\\\'\'''\''/g;
1764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1775 ## ----------------- ##
1776 ## Output variables. ##
1777 ## ----------------- ##
1780 for ac_var in $ac_subst_vars
1782 eval ac_val=\$$ac_var
1784 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 echo "$ac_var='\''$ac_val'\''"
1790 if test -n "$ac_subst_files"; then
1792 ## ------------------- ##
1793 ## File substitutions. ##
1794 ## ------------------- ##
1797 for ac_var in $ac_subst_files
1799 eval ac_val=\$$ac_var
1801 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 echo "$ac_var='\''$ac_val'\''"
1808 if test -s confdefs.h; then
1818 test "$ac_signal" != 0 &&
1819 echo "$as_me: caught signal $ac_signal"
1820 echo "$as_me: exit $exit_status"
1822 rm -f core *.core core.conftest.* &&
1823 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1826 for ac_signal in 1 2 13 15; do
1827 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1831 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1832 rm -f -r conftest* confdefs.h
1834 # Predefined preprocessor variables.
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_NAME "$PACKAGE_NAME"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_STRING "$PACKAGE_STRING"
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1861 # Let the site file select an alternate cache file if it wants to.
1862 # Prefer explicitly selected file to automatically selected ones.
1863 if test -n "$CONFIG_SITE"; then
1864 set x "$CONFIG_SITE"
1865 elif test "x$prefix" != xNONE; then
1866 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1868 set x "$ac_default_prefix/share/config.site" \
1869 "$ac_default_prefix/etc/config.site"
1874 if test -r "$ac_site_file"; then
1875 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1876 echo "$as_me: loading site script $ac_site_file" >&6;}
1877 sed 's/^/| /' "$ac_site_file" >&5
1882 if test -r "$cache_file"; then
1883 # Some versions of bash will fail to source /dev/null (special
1884 # files actually), so we avoid doing that.
1885 if test -f "$cache_file"; then
1886 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1887 echo "$as_me: loading cache $cache_file" >&6;}
1889 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1890 *) . "./$cache_file";;
1894 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1895 echo "$as_me: creating cache $cache_file" >&6;}
1899 # Check that the precious variables saved in the cache have kept the same
1901 ac_cache_corrupted=false
1902 for ac_var in $ac_precious_vars; do
1903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1904 eval ac_new_set=\$ac_env_${ac_var}_set
1905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1906 eval ac_new_val=\$ac_env_${ac_var}_value
1907 case $ac_old_set,$ac_new_set in
1909 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1910 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1911 ac_cache_corrupted=: ;;
1913 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1915 ac_cache_corrupted=: ;;
1918 if test "x$ac_old_val" != "x$ac_new_val"; then
1919 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1920 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1921 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1922 echo "$as_me: former value: $ac_old_val" >&2;}
1923 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1924 echo "$as_me: current value: $ac_new_val" >&2;}
1925 ac_cache_corrupted=:
1928 # Pass precious variables to config.status.
1929 if test "$ac_new_set" = set; then
1931 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 *) ac_arg=$ac_var=$ac_new_val ;;
1934 case " $ac_configure_args " in
1935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1936 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1940 if $ac_cache_corrupted; then
1941 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1943 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1945 { (exit 1); exit 1; }; }
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 # The argument here is just something that should be in the current directory
1980 # (for sanity checking)
1982 am__api_version='1.10'
1985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1986 if test -f "$ac_dir/install-sh"; then
1988 ac_install_sh="$ac_aux_dir/install-sh -c"
1990 elif test -f "$ac_dir/install.sh"; then
1992 ac_install_sh="$ac_aux_dir/install.sh -c"
1994 elif test -f "$ac_dir/shtool"; then
1996 ac_install_sh="$ac_aux_dir/shtool install -c"
2000 if test -z "$ac_aux_dir"; then
2001 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2002 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2003 { (exit 1); exit 1; }; }
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2015 # Find a good install program. We prefer a C program (faster),
2016 # so one script is as good as another. But avoid the broken or
2017 # incompatible versions:
2018 # SysV /etc/install, /usr/sbin/install
2019 # SunOS /usr/etc/install
2020 # IRIX /sbin/install
2022 # AmigaOS /C/install, which installs bootblocks on floppy discs
2023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2026 # OS/2's system install, which has a completely different semantic
2027 # ./install, which can be erroneously created by make from ./install.sh.
2028 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2029 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2030 if test -z "$INSTALL"; then
2031 if test "${ac_cv_path_install+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 # Account for people who put trailing slashes in PATH elements.
2041 ./ | .// | /cC/* | \
2042 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2043 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2046 # OSF1 and SCO ODT 3.0 have their own names for install.
2047 # Don't use installbsd from OSF since it installs stuff as root
2049 for ac_prog in ginstall scoinst install; do
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2052 if test $ac_prog = install &&
2053 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2054 # AIX install. It has an incompatible calling convention.
2056 elif test $ac_prog = install &&
2057 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2058 # program-specific install script used by HP pwplus--don't use.
2061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2074 if test "${ac_cv_path_install+set}" = set; then
2075 INSTALL=$ac_cv_path_install
2077 # As a last resort, use the slow shell script. Don't cache a
2078 # value for INSTALL within a source directory, because that will
2079 # break other packages using the cache if that directory is
2080 # removed, or if the value is a relative name.
2081 INSTALL=$ac_install_sh
2084 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2085 echo "${ECHO_T}$INSTALL" >&6; }
2087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2088 # It thinks the first close brace ends the variable substitution.
2089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2095 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2096 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2099 echo timestamp > conftest.file
2100 # Do `set' in a subshell so we don't clobber the current shell's
2101 # arguments. Must try -L first in case configure is actually a
2102 # symlink; some systems play weird games with the mod time of symlinks
2103 # (eg FreeBSD returns the mod time of the symlink's containing
2106 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2107 if test "$*" = "X"; then
2109 set X `ls -t $srcdir/configure conftest.file`
2112 if test "$*" != "X $srcdir/configure conftest.file" \
2113 && test "$*" != "X conftest.file $srcdir/configure"; then
2115 # If neither matched, then we have a broken ls. This can happen
2116 # if, for instance, CONFIG_SHELL is bash and it inherits a
2117 # broken ls alias from the environment. This has actually
2118 # happened. Such a system could not be considered "sane".
2119 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2120 alias in your environment" >&5
2121 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2122 alias in your environment" >&2;}
2123 { (exit 1); exit 1; }; }
2126 test "$2" = conftest.file
2132 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2133 Check your system clock" >&5
2134 echo "$as_me: error: newly created file is older than distributed files!
2135 Check your system clock" >&2;}
2136 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2140 test "$program_prefix" != NONE &&
2141 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2142 # Use a double $ so make ignores it.
2143 test "$program_suffix" != NONE &&
2144 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2145 # Double any \ or $. echo might interpret backslashes.
2146 # By default was `s,x,x', remove it if useless.
2147 cat <<\_ACEOF >conftest.sed
2148 s/[\\$]/&&/g;s/;s,x,x,$//
2150 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2153 # expand $ac_aux_dir to an absolute path
2154 am_aux_dir=`cd $ac_aux_dir && pwd`
2156 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2157 # Use eval to expand $SHELL
2158 if eval "$MISSING --run true"; then
2159 am_missing_run="$MISSING --run "
2162 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2163 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2166 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2167 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2168 if test -z "$MKDIR_P"; then
2169 if test "${ac_cv_path_mkdir+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2176 test -z "$as_dir" && as_dir=.
2177 for ac_prog in mkdir gmkdir; do
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2181 'mkdir (GNU coreutils) '* | \
2182 'mkdir (coreutils) '* | \
2183 'mkdir (fileutils) '4.1*)
2184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2194 if test "${ac_cv_path_mkdir+set}" = set; then
2195 MKDIR_P="$ac_cv_path_mkdir -p"
2197 # As a last resort, use the slow shell script. Don't cache a
2198 # value for MKDIR_P within a source directory, because that will
2199 # break other packages using the cache if that directory is
2200 # removed, or if the value is a relative name.
2201 test -d ./--version && rmdir ./--version
2202 MKDIR_P="$ac_install_sh -d"
2205 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2206 echo "${ECHO_T}$MKDIR_P" >&6; }
2210 [\\/$]* | ?:[\\/]*) ;;
2211 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2214 for ac_prog in gawk mawk nawk awk
2216 # Extract the first word of "$ac_prog", so it can be a program name with args.
2217 set dummy $ac_prog; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_AWK+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test -n "$AWK"; then
2224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_AWK="$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 if test -n "$AWK"; then
2245 { echo "$as_me:$LINENO: result: $AWK" >&5
2246 echo "${ECHO_T}$AWK" >&6; }
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2253 test -n "$AWK" && break
2256 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2257 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2258 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2259 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.make <<\_ACEOF
2265 @echo '@@@%%%=$(MAKE)=@@@%%%'
2267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2268 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2270 eval ac_cv_prog_make_${ac_make}_set=yes;;
2272 eval ac_cv_prog_make_${ac_make}_set=no;;
2276 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2277 { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283 SET_MAKE="MAKE=${MAKE-make}"
2286 rm -rf .tst 2>/dev/null
2287 mkdir .tst 2>/dev/null
2288 if test -d .tst; then
2293 rmdir .tst 2>/dev/null
2295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2296 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2297 # is not polluted with repeated "-I."
2298 am__isrc=' -I$(srcdir)'
2299 # test to see if srcdir already configured
2300 if test -f $srcdir/config.status; then
2301 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2302 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2303 { (exit 1); exit 1; }; }
2307 # test whether we have cygpath
2308 if test -z "$CYGPATH_W"; then
2309 if (cygpath --version) >/dev/null 2>/dev/null; then
2310 CYGPATH_W='cygpath -w'
2317 # Define the identity of the package.
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE "$PACKAGE"
2327 cat >>confdefs.h <<_ACEOF
2328 #define VERSION "$VERSION"
2331 # Some tools Automake needs.
2333 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2336 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2339 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2342 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2345 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2347 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2349 # Installed binaries are usually stripped using `strip' when the user
2350 # run `make install-strip'. However `strip' might not be the right
2351 # tool to use in cross-compilation environments, therefore Automake
2352 # will honor the `STRIP' environment variable to overrule this program.
2353 if test "$cross_compiling" != no; then
2354 if test -n "$ac_tool_prefix"; then
2355 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2356 set dummy ${ac_tool_prefix}strip; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_STRIP+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$STRIP"; then
2363 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 STRIP=$ac_cv_prog_STRIP
2383 if test -n "$STRIP"; then
2384 { echo "$as_me:$LINENO: result: $STRIP" >&5
2385 echo "${ECHO_T}$STRIP" >&6; }
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2393 if test -z "$ac_cv_prog_STRIP"; then
2395 # Extract the first word of "strip", so it can be a program name with args.
2396 set dummy strip; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$ac_ct_STRIP"; then
2403 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_ac_ct_STRIP="strip"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2423 if test -n "$ac_ct_STRIP"; then
2424 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2425 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2427 { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2431 if test "x$ac_ct_STRIP" = x; then
2434 case $cross_compiling:$ac_tool_warned in
2436 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&5
2439 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet. If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2442 ac_tool_warned=yes ;;
2447 STRIP="$ac_cv_prog_STRIP"
2451 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2453 # We need awk for the "check" target. The system "awk" is bad on
2455 # Always define AMTAR for backward compatibility.
2457 AMTAR=${AMTAR-"${am_missing_run}tar"}
2459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2465 ac_config_headers="$ac_config_headers src/config.h"
2469 ac_cpp='$CXXCPP $CPPFLAGS'
2470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2475 # Checks for programs.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2520 if test -z "$ac_cv_prog_CC"; then
2522 # Extract the first word of "gcc", so it can be a program name with args.
2523 set dummy gcc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_ac_ct_CC="gcc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2552 echo "${ECHO_T}$ac_ct_CC" >&6; }
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2558 if test "x$ac_ct_CC" = x; then
2561 case $cross_compiling:$ac_tool_warned in
2563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&5
2566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569 ac_tool_warned=yes ;;
2577 if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_CC="${ac_tool_prefix}cc"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$CC"; then
2608 { echo "$as_me:$LINENO: result: $CC" >&5
2609 echo "${ECHO_T}$CC" >&6; }
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2618 if test -z "$CC"; then
2619 # Extract the first word of "cc", so it can be a program name with args.
2620 set dummy cc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2638 ac_prog_rejected=yes
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 if test $ac_prog_rejected = yes; then
2650 # We found a bogon in the path, so make sure we never use it.
2651 set dummy $ac_cv_prog_CC
2653 if test $# != 0; then
2654 # We chose a different compiler from the bogus one.
2655 # However, it has the same basename, so the bogon will be chosen
2656 # first if we set CC to just the basename; use the full file name.
2658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2664 if test -n "$CC"; then
2665 { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2674 if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 for ac_prog in cl.exe
2678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 if test -n "$CC"; then
2707 { echo "$as_me:$LINENO: result: $CC" >&5
2708 echo "${ECHO_T}$CC" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$CC" && break
2718 if test -z "$CC"; then
2720 for ac_prog in cl.exe
2722 # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_CC="$ac_prog"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2752 echo "${ECHO_T}$ac_ct_CC" >&6; }
2754 { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2759 test -n "$ac_ct_CC" && break
2762 if test "x$ac_ct_CC" = x; then
2765 case $cross_compiling:$ac_tool_warned in
2767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2768 whose name does not start with the host triplet. If you think this
2769 configuration is useful to you, please write to autoconf@gnu.org." >&5
2770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2771 whose name does not start with the host triplet. If you think this
2772 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2773 ac_tool_warned=yes ;;
2782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: no acceptable C compiler found in \$PATH
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2788 # Provide some information about the compiler.
2789 echo "$as_me:$LINENO: checking for C compiler version" >&5
2790 ac_compiler=`set X $ac_compile; echo $2`
2791 { (ac_try="$ac_compiler --version >&5"
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_compiler --version >&5") 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }
2801 { (ac_try="$ac_compiler -v >&5"
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compiler -v >&5") 2>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }
2811 { (ac_try="$ac_compiler -V >&5"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compiler -V >&5") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2837 ac_clean_files_save=$ac_clean_files
2838 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2839 # Try to create an executable without -o first, disregard a.out.
2840 # It will help us diagnose broken compilers, and finding out an intuition
2842 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2843 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2844 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2846 # List of possible output files, starting from the most likely.
2847 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2848 # only as a last resort. b.out is created by i960 compilers.
2849 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2851 # The IRIX 6 linker writes into existing files which may not be
2852 # executable, retaining their permissions. Remove them first so a
2853 # subsequent execution test works.
2855 for ac_file in $ac_files
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2864 if { (ac_try="$ac_link_default"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_link_default") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2876 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2877 # so that the user can short-circuit this test for compilers unknown to
2879 for ac_file in $ac_files ''
2881 test -f "$ac_file" || continue
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2886 # We found the default executable, but exeext='' is most
2890 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2892 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2894 # We set ac_cv_exeext here because the later test for it is not
2895 # safe: cross compilers may not add the suffix if given an `-o'
2896 # argument, so we may need to know it at that point already.
2897 # Even if this section looks crufty: it has the advantage of
2904 test "$ac_cv_exeext" = no && ac_cv_exeext=
2910 { echo "$as_me:$LINENO: result: $ac_file" >&5
2911 echo "${ECHO_T}$ac_file" >&6; }
2912 if test -z "$ac_file"; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C compiler cannot create executables
2919 See \`config.log' for more details." >&2;}
2920 { (exit 77); exit 77; }; }
2923 ac_exeext=$ac_cv_exeext
2925 # Check that the compiler produces executables we can run. If not, either
2926 # the compiler is broken, or we cross compile.
2927 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2930 # If not cross compiling, check that we can run a simple program.
2931 if test "$cross_compiling" != yes; then
2932 if { ac_try='./$ac_file'
2933 { (case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_try") 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 if test "$cross_compiling" = maybe; then
2947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2948 If you meant to cross compile, use \`--host'.
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot run C compiled programs.
2951 If you meant to cross compile, use \`--host'.
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2957 { echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6; }
2960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2961 ac_clean_files=$ac_clean_files_save
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2966 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2967 echo "${ECHO_T}$cross_compiling" >&6; }
2969 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2971 if { (ac_try="$ac_link"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_link") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2983 # work properly (i.e., refer to `conftest.exe'), while it won't with
2985 for ac_file in conftest.exe conftest conftest.*; do
2986 test -f "$ac_file" || continue
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3002 rm -f conftest$ac_cv_exeext
3003 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3004 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3006 rm -f conftest.$ac_ext
3007 EXEEXT=$ac_cv_exeext
3009 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3011 if test "${ac_cv_objext+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3029 rm -f conftest.o conftest.obj
3030 if { (ac_try="$ac_compile"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; then
3040 for ac_file in conftest.o conftest.obj conftest.*; do
3041 test -f "$ac_file" || continue;
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3061 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3062 echo "${ECHO_T}$ac_cv_objext" >&6; }
3063 OBJEXT=$ac_cv_objext
3065 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3066 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3067 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3117 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3119 GCC=`test $ac_compiler_gnu = yes && echo yes`
3120 ac_test_CFLAGS=${CFLAGS+set}
3121 ac_save_CFLAGS=$CFLAGS
3122 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3123 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_g+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_save_c_werror_flag=$ac_c_werror_flag
3128 ac_c_werror_flag=yes
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_c_werror_flag=$ac_save_c_werror_flag
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3268 if test "$GCC" = yes; then
3274 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3275 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3276 if test "${ac_cv_prog_cc_c89+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 ac_cv_prog_cc_c89=no
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3305 s = g (p, va_arg (v,int));
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3320 inside strings and character constants. */
3322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3359 ac_cv_prog_cc_c89=$ac_arg
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3370 rm -f conftest.$ac_ext
3375 case "x$ac_cv_prog_cc_c89" in
3377 { echo "$as_me:$LINENO: result: none needed" >&5
3378 echo "${ECHO_T}none needed" >&6; } ;;
3380 { echo "$as_me:$LINENO: result: unsupported" >&5
3381 echo "${ECHO_T}unsupported" >&6; } ;;
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3390 ac_cpp='$CXXCPP $CPPFLAGS'
3391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3394 DEPDIR="${am__leading_dot}deps"
3396 ac_config_commands="$ac_config_commands depfiles"
3399 am_make=${MAKE-make}
3400 cat > confinc << 'END'
3405 # If we don't find an include directive, just comment out the code.
3406 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3407 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3411 # First try GNU make style include.
3412 echo "include confinc" > confmf
3413 # We grep out `Entering directory' and `Leaving directory'
3414 # messages which can occur if `w' ends up in MAKEFLAGS.
3415 # In particular we don't look at `^make:' because GNU make might
3416 # be invoked under some other name (usually "gmake"), in which
3417 # case it prints its new name instead of `make'.
3418 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3423 # Now try BSD make style include.
3424 if test "$am__include" = "#"; then
3425 echo '.include "confinc"' > confmf
3426 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3427 am__include=.include
3434 { echo "$as_me:$LINENO: result: $_am_result" >&5
3435 echo "${ECHO_T}$_am_result" >&6; }
3436 rm -f confinc confmf
3438 # Check whether --enable-dependency-tracking was given.
3439 if test "${enable_dependency_tracking+set}" = set; then
3440 enableval=$enable_dependency_tracking;
3443 if test "x$enable_dependency_tracking" != xno; then
3444 am_depcomp="$ac_aux_dir/depcomp"
3447 if test "x$enable_dependency_tracking" != xno; then
3457 depcc="$CC" am_compiler_list=
3459 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3460 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3461 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3465 # We make a subdir and do the tests there. Otherwise we can end up
3466 # making bogus files that we don't know about and never remove. For
3467 # instance it was reported that on HP-UX the gcc test will end up
3468 # making a dummy file named `D' -- because `-MD' means `put the output
3471 # Copy depcomp to subdir because otherwise we won't find it if we're
3472 # using a relative directory.
3473 cp "$am_depcomp" conftest.dir
3475 # We will build objects and dependencies in a subdirectory because
3476 # it helps to detect inapplicable dependency modes. For instance
3477 # both Tru64's cc and ICC support -MD to output dependencies as a
3478 # side effect of compilation, but ICC will put the dependencies in
3479 # the current directory while Tru64 will put them in the object
3483 am_cv_CC_dependencies_compiler_type=none
3484 if test "$am_compiler_list" = ""; then
3485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3487 for depmode in $am_compiler_list; do
3488 # Setup a source with many dependencies, because some compilers
3489 # like to wrap large dependency lists on column 80 (with \), and
3490 # we should not choose a depcomp mode which is confused by this.
3492 # We need to recreate these files for each test, as the compiler may
3493 # overwrite some of them when testing with obscure command lines.
3494 # This happens at least with the AIX C compiler.
3496 for i in 1 2 3 4 5 6; do
3497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3499 # Solaris 8's {/usr,}/bin/sh.
3500 touch sub/conftst$i.h
3502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3506 # after this tag, mechanisms are not by side-effect, so they'll
3507 # only be used when explicitly requested
3508 if test "x$enable_dependency_tracking" = xyes; then
3516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3517 # mode. It turns out that the SunPro C++ compiler does not properly
3518 # handle `-M -o', and we need to detect this.
3519 if depmode=$depmode \
3520 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3522 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3523 >/dev/null 2>conftest.err &&
3524 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3525 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3526 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3527 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3528 # icc doesn't choke on unknown options, it will just issue warnings
3529 # or remarks (even with -Werror). So we grep stderr for any message
3530 # that says an option was ignored or not supported.
3531 # When given -MP, icc 7.0 and 7.1 complain thusly:
3532 # icc: Command line warning: ignoring option '-M'; no argument required
3533 # The diagnosis changed in icc 8.0:
3534 # icc: Command line remark: option '-MP' not supported
3535 if (grep 'ignoring option' conftest.err ||
3536 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3537 am_cv_CC_dependencies_compiler_type=$depmode
3546 am_cv_CC_dependencies_compiler_type=none
3550 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3551 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3552 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3555 test "x$enable_dependency_tracking" != xno \
3556 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3558 am__fastdepCC_FALSE='#'
3560 am__fastdepCC_TRUE='#'
3561 am__fastdepCC_FALSE=
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3572 # On Suns, sometimes $CPP names a directory.
3573 if test -n "$CPP" && test -d "$CPP"; then
3576 if test -z "$CPP"; then
3577 if test "${ac_cv_prog_CPP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 # Double quotes because CPP needs to be expanded
3581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3584 for ac_c_preproc_warn_flag in '' yes
3586 # Use a header file that comes with gcc, so configuring glibc
3587 # with a fresh cross-compiler works.
3588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3589 # <limits.h> exists even on freestanding compilers.
3590 # On the NeXT, cc -E runs the code through the compiler's parser,
3591 # not just through cpp. "Syntax error" is here to catch this case.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3599 # include <limits.h>
3601 # include <assert.h>
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null && {
3618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 # Broken: fails on valid input.
3630 rm -f conftest.err conftest.$ac_ext
3632 # OK, works on sane cases. Now check whether nonexistent headers
3633 # can be detected and how.
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 #include <ac_nonexistent.h>
3642 if { (ac_try="$ac_cpp conftest.$ac_ext"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null && {
3655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3658 # Broken: success on invalid input.
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 # Passes both tests.
3669 rm -f conftest.err conftest.$ac_ext
3672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673 rm -f conftest.err conftest.$ac_ext
3674 if $ac_preproc_ok; then
3686 { echo "$as_me:$LINENO: result: $CPP" >&5
3687 echo "${ECHO_T}$CPP" >&6; }
3689 for ac_c_preproc_warn_flag in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 # include <limits.h>
3706 # include <assert.h>
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null && {
3723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 # Broken: fails on valid input.
3735 rm -f conftest.err conftest.$ac_ext
3737 # OK, works on sane cases. Now check whether nonexistent headers
3738 # can be detected and how.
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <ac_nonexistent.h>
3747 if { (ac_try="$ac_cpp conftest.$ac_ext"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } >/dev/null && {
3760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3763 # Broken: success on invalid input.
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 # Passes both tests.
3774 rm -f conftest.err conftest.$ac_ext
3777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3778 rm -f conftest.err conftest.$ac_ext
3779 if $ac_preproc_ok; then
3782 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3783 See \`config.log' for more details." >&5
3784 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3785 See \`config.log' for more details." >&2;}
3786 { (exit 1); exit 1; }; }
3790 ac_cpp='$CXXCPP $CPPFLAGS'
3791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3796 ac_cpp='$CXXCPP $CPPFLAGS'
3797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3800 if test -z "$CXX"; then
3801 if test -n "$CCC"; then
3804 if test -n "$ac_tool_prefix"; then
3805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3811 if test "${ac_cv_prog_CXX+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -n "$CXX"; then
3815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 if test -n "$CXX"; then
3836 { echo "$as_me:$LINENO: result: $CXX" >&5
3837 echo "${ECHO_T}$CXX" >&6; }
3839 { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3844 test -n "$CXX" && break
3847 if test -z "$CXX"; then
3849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3851 # Extract the first word of "$ac_prog", so it can be a program name with args.
3852 set dummy $ac_prog; ac_word=$2
3853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3855 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 if test -n "$ac_ct_CXX"; then
3859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_prog_ac_ct_CXX="$ac_prog"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3879 if test -n "$ac_ct_CXX"; then
3880 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3881 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3883 { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3888 test -n "$ac_ct_CXX" && break
3891 if test "x$ac_ct_CXX" = x; then
3894 case $cross_compiling:$ac_tool_warned in
3896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3897 whose name does not start with the host triplet. If you think this
3898 configuration is useful to you, please write to autoconf@gnu.org." >&5
3899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3900 whose name does not start with the host triplet. If you think this
3901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3902 ac_tool_warned=yes ;;
3910 # Provide some information about the compiler.
3911 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3912 ac_compiler=`set X $ac_compile; echo $2`
3913 { (ac_try="$ac_compiler --version >&5"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compiler --version >&5") 2>&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }
3923 { (ac_try="$ac_compiler -v >&5"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_compiler -v >&5") 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }
3933 { (ac_try="$ac_compiler -V >&5"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compiler -V >&5") 2>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }
3944 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3945 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3946 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_compile") 2>conftest.er1
3976 grep -v '^ *+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_cxx_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest.$ac_objext; then
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3998 GXX=`test $ac_compiler_gnu = yes && echo yes`
3999 ac_test_CXXFLAGS=${CXXFLAGS+set}
4000 ac_save_CXXFLAGS=$CXXFLAGS
4001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4003 if test "${ac_cv_prog_cxx_g+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4007 ac_cxx_werror_flag=yes
4010 cat >conftest.$ac_ext <<_ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4025 rm -f conftest.$ac_objext
4026 if { (ac_try="$ac_compile"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_cxx_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4042 ac_cv_prog_cxx_g=yes
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_cxx_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_cxx_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4119 ac_cv_prog_cxx_g=yes
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4137 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4138 if test "$ac_test_CXXFLAGS" = set; then
4139 CXXFLAGS=$ac_save_CXXFLAGS
4140 elif test $ac_cv_prog_cxx_g = yes; then
4141 if test "$GXX" = yes; then
4147 if test "$GXX" = yes; then
4154 ac_cpp='$CXXCPP $CPPFLAGS'
4155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4159 depcc="$CXX" am_compiler_list=
4161 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4163 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167 # We make a subdir and do the tests there. Otherwise we can end up
4168 # making bogus files that we don't know about and never remove. For
4169 # instance it was reported that on HP-UX the gcc test will end up
4170 # making a dummy file named `D' -- because `-MD' means `put the output
4173 # Copy depcomp to subdir because otherwise we won't find it if we're
4174 # using a relative directory.
4175 cp "$am_depcomp" conftest.dir
4177 # We will build objects and dependencies in a subdirectory because
4178 # it helps to detect inapplicable dependency modes. For instance
4179 # both Tru64's cc and ICC support -MD to output dependencies as a
4180 # side effect of compilation, but ICC will put the dependencies in
4181 # the current directory while Tru64 will put them in the object
4185 am_cv_CXX_dependencies_compiler_type=none
4186 if test "$am_compiler_list" = ""; then
4187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189 for depmode in $am_compiler_list; do
4190 # Setup a source with many dependencies, because some compilers
4191 # like to wrap large dependency lists on column 80 (with \), and
4192 # we should not choose a depcomp mode which is confused by this.
4194 # We need to recreate these files for each test, as the compiler may
4195 # overwrite some of them when testing with obscure command lines.
4196 # This happens at least with the AIX C compiler.
4198 for i in 1 2 3 4 5 6; do
4199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4201 # Solaris 8's {/usr,}/bin/sh.
4202 touch sub/conftst$i.h
4204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4208 # after this tag, mechanisms are not by side-effect, so they'll
4209 # only be used when explicitly requested
4210 if test "x$enable_dependency_tracking" = xyes; then
4218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4219 # mode. It turns out that the SunPro C++ compiler does not properly
4220 # handle `-M -o', and we need to detect this.
4221 if depmode=$depmode \
4222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4225 >/dev/null 2>conftest.err &&
4226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4230 # icc doesn't choke on unknown options, it will just issue warnings
4231 # or remarks (even with -Werror). So we grep stderr for any message
4232 # that says an option was ignored or not supported.
4233 # When given -MP, icc 7.0 and 7.1 complain thusly:
4234 # icc: Command line warning: ignoring option '-M'; no argument required
4235 # The diagnosis changed in icc 8.0:
4236 # icc: Command line remark: option '-MP' not supported
4237 if (grep 'ignoring option' conftest.err ||
4238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4239 am_cv_CXX_dependencies_compiler_type=$depmode
4248 am_cv_CXX_dependencies_compiler_type=none
4252 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4253 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4254 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4257 test "x$enable_dependency_tracking" != xno \
4258 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4259 am__fastdepCXX_TRUE=
4260 am__fastdepCXX_FALSE='#'
4262 am__fastdepCXX_TRUE='#'
4263 am__fastdepCXX_FALSE=
4267 if test "$GCC" = yes; then
4274 # let the Makefile know if we're gcc
4276 # Check whether --enable-shared was given.
4277 if test "${enable_shared+set}" = set; then
4278 enableval=$enable_shared; p=${PACKAGE-default}
4280 yes) enable_shared=yes ;;
4281 no) enable_shared=no ;;
4284 # Look at the argument we got. We use all the common list separators.
4285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4286 for pkg in $enableval; do
4288 if test "X$pkg" = "X$p"; then
4300 # Check whether --enable-static was given.
4301 if test "${enable_static+set}" = set; then
4302 enableval=$enable_static; p=${PACKAGE-default}
4304 yes) enable_static=yes ;;
4305 no) enable_static=no ;;
4308 # Look at the argument we got. We use all the common list separators.
4309 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4310 for pkg in $enableval; do
4312 if test "X$pkg" = "X$p"; then
4324 # Check whether --enable-fast-install was given.
4325 if test "${enable_fast_install+set}" = set; then
4326 enableval=$enable_fast_install; p=${PACKAGE-default}
4328 yes) enable_fast_install=yes ;;
4329 no) enable_fast_install=no ;;
4331 enable_fast_install=no
4332 # Look at the argument we got. We use all the common list separators.
4333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4334 for pkg in $enableval; do
4336 if test "X$pkg" = "X$p"; then
4337 enable_fast_install=yes
4344 enable_fast_install=yes
4348 # Make sure we can run config.sub.
4349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4350 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4351 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4352 { (exit 1); exit 1; }; }
4354 { echo "$as_me:$LINENO: checking build system type" >&5
4355 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4356 if test "${ac_cv_build+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 ac_build_alias=$build_alias
4360 test "x$ac_build_alias" = x &&
4361 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4362 test "x$ac_build_alias" = x &&
4363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4365 { (exit 1); exit 1; }; }
4366 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4367 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4368 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4369 { (exit 1); exit 1; }; }
4372 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4373 echo "${ECHO_T}$ac_cv_build" >&6; }
4374 case $ac_cv_build in
4376 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4377 echo "$as_me: error: invalid value of canonical build" >&2;}
4378 { (exit 1); exit 1; }; };;
4381 ac_save_IFS=$IFS; IFS='-'
4387 # Remember, the first character of IFS is used to create $*,
4388 # except with old shells:
4391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4394 { echo "$as_me:$LINENO: checking host system type" >&5
4395 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4396 if test "${ac_cv_host+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test "x$host_alias" = x; then
4400 ac_cv_host=$ac_cv_build
4402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4403 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4404 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4405 { (exit 1); exit 1; }; }
4409 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4410 echo "${ECHO_T}$ac_cv_host" >&6; }
4413 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4414 echo "$as_me: error: invalid value of canonical host" >&2;}
4415 { (exit 1); exit 1; }; };;
4418 ac_save_IFS=$IFS; IFS='-'
4424 # Remember, the first character of IFS is used to create $*,
4425 # except with old shells:
4428 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4431 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4432 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4433 if test "${lt_cv_path_SED+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 # Loop through the user's path and test for sed and gsed.
4437 # Then use that list of sed's as ones to test for truncation.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for lt_ac_prog in sed gsed; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4446 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4454 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4455 # along with /bin/sed that truncates output.
4456 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4457 test ! -f $lt_ac_sed && continue
4458 cat /dev/null > conftest.in
4460 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4461 # Check for GNU sed and select it if it is found.
4462 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4463 lt_cv_path_SED=$lt_ac_sed
4467 cat conftest.in conftest.in >conftest.tmp
4468 mv conftest.tmp conftest.in
4469 cp conftest.in conftest.nl
4471 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4472 cmp -s conftest.out conftest.nl || break
4473 # 10000 chars as input seems more than enough
4474 test $lt_ac_count -gt 10 && break
4475 lt_ac_count=`expr $lt_ac_count + 1`
4476 if test $lt_ac_count -gt $lt_ac_max; then
4477 lt_ac_max=$lt_ac_count
4478 lt_cv_path_SED=$lt_ac_sed
4487 { echo "$as_me:$LINENO: result: $SED" >&5
4488 echo "${ECHO_T}$SED" >&6; }
4490 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4491 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_GREP+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 # Extract the first word of "grep ggrep" to use in msg output
4496 if test -z "$GREP"; then
4497 set dummy grep ggrep; ac_prog_name=$2
4498 if test "${ac_cv_path_GREP+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 ac_path_GREP_found=false
4502 # Loop through the user's path and test for each of PROGNAME-LIST
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 test -z "$as_dir" && as_dir=.
4508 for ac_prog in grep ggrep; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513 # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4519 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4522 cat "conftest.in" "conftest.in" >"conftest.tmp"
4523 mv "conftest.tmp" "conftest.in"
4524 cp "conftest.in" "conftest.nl"
4525 echo 'GREP' >> "conftest.nl"
4526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528 ac_count=`expr $ac_count + 1`
4529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530 # Best one so far, save it but keep looking for a better one
4531 ac_cv_path_GREP="$ac_path_GREP"
4532 ac_path_GREP_max=$ac_count
4534 # 10*(2^10) chars as input seems more than enough
4535 test $ac_count -gt 10 && break
4537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 $ac_path_GREP_found && break 3
4551 GREP="$ac_cv_path_GREP"
4552 if test -z "$GREP"; then
4553 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4554 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4555 { (exit 1); exit 1; }; }
4559 ac_cv_path_GREP=$GREP
4564 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4565 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4566 GREP="$ac_cv_path_GREP"
4569 { echo "$as_me:$LINENO: checking for egrep" >&5
4570 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4571 if test "${ac_cv_path_EGREP+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4575 then ac_cv_path_EGREP="$GREP -E"
4577 # Extract the first word of "egrep" to use in msg output
4578 if test -z "$EGREP"; then
4579 set dummy egrep; ac_prog_name=$2
4580 if test "${ac_cv_path_EGREP+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_path_EGREP_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589 test -z "$as_dir" && as_dir=.
4590 for ac_prog in egrep; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4593 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4594 # Check for GNU ac_path_EGREP and select it if it is found.
4595 # Check for GNU $ac_path_EGREP
4596 case `"$ac_path_EGREP" --version 2>&1` in
4598 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4601 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4604 cat "conftest.in" "conftest.in" >"conftest.tmp"
4605 mv "conftest.tmp" "conftest.in"
4606 cp "conftest.in" "conftest.nl"
4607 echo 'EGREP' >> "conftest.nl"
4608 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 ac_count=`expr $ac_count + 1`
4611 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4612 # Best one so far, save it but keep looking for a better one
4613 ac_cv_path_EGREP="$ac_path_EGREP"
4614 ac_path_EGREP_max=$ac_count
4616 # 10*(2^10) chars as input seems more than enough
4617 test $ac_count -gt 10 && break
4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4623 $ac_path_EGREP_found && break 3
4633 EGREP="$ac_cv_path_EGREP"
4634 if test -z "$EGREP"; then
4635 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4636 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4637 { (exit 1); exit 1; }; }
4641 ac_cv_path_EGREP=$EGREP
4647 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4648 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4649 EGREP="$ac_cv_path_EGREP"
4653 # Check whether --with-gnu-ld was given.
4654 if test "${with_gnu_ld+set}" = set; then
4655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4661 if test "$GCC" = yes; then
4662 # Check if gcc -print-prog-name=ld gives a path.
4663 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4664 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4667 # gcc leaves a trailing carriage return which upsets mingw
4668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4673 # Accept absolute paths.
4675 re_direlt='/[^/][^/]*/\.\./'
4676 # Canonicalize the pathname of ld
4677 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4678 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4679 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4681 test -z "$LD" && LD="$ac_prog"
4684 # If it fails, then pretend we aren't using GCC.
4688 # If it is relative, then search for the first ld in PATH.
4692 elif test "$with_gnu_ld" = yes; then
4693 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4694 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4696 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4697 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4699 if test "${lt_cv_path_LD+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 if test -z "$LD"; then
4703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4704 for ac_dir in $PATH; do
4706 test -z "$ac_dir" && ac_dir=.
4707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4708 lt_cv_path_LD="$ac_dir/$ac_prog"
4709 # Check to see if the program is GNU ld. I'd rather use --version,
4710 # but apparently some variants of GNU ld only accept -v.
4711 # Break only if it was the GNU/non-GNU ld that we prefer.
4712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4713 *GNU* | *'with BFD'*)
4714 test "$with_gnu_ld" != no && break
4717 test "$with_gnu_ld" != yes && break
4724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4729 if test -n "$LD"; then
4730 { echo "$as_me:$LINENO: result: $LD" >&5
4731 echo "${ECHO_T}$LD" >&6; }
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4736 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4737 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4738 { (exit 1); exit 1; }; }
4739 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4740 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4741 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4745 case `$LD -v 2>&1 </dev/null` in
4746 *GNU* | *'with BFD'*)
4747 lt_cv_prog_gnu_ld=yes
4750 lt_cv_prog_gnu_ld=no
4754 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4755 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4756 with_gnu_ld=$lt_cv_prog_gnu_ld
4759 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4760 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4761 if test "${lt_cv_ld_reload_flag+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 lt_cv_ld_reload_flag='-r'
4766 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4767 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4768 reload_flag=$lt_cv_ld_reload_flag
4769 case $reload_flag in
4771 *) reload_flag=" $reload_flag" ;;
4773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4776 if test "$GCC" = yes; then
4777 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4784 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4785 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4786 if test "${lt_cv_path_NM+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test -n "$NM"; then
4790 # Let the user override the test.
4793 lt_nm_to_check="${ac_tool_prefix}nm"
4794 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4795 lt_nm_to_check="$lt_nm_to_check nm"
4797 for lt_tmp_nm in $lt_nm_to_check; do
4798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4799 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4801 test -z "$ac_dir" && ac_dir=.
4802 tmp_nm="$ac_dir/$lt_tmp_nm"
4803 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4804 # Check to see if the nm accepts a BSD-compat flag.
4805 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4806 # nm: unknown option "B" ignored
4807 # Tru64's nm complains that /dev/null is an invalid object file
4808 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4809 */dev/null* | *'Invalid file or object type'*)
4810 lt_cv_path_NM="$tmp_nm -B"
4814 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4816 lt_cv_path_NM="$tmp_nm -p"
4820 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4821 continue # so that we can try to find one that supports BSD flags
4830 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4833 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4834 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4837 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4838 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4840 if test "$LN_S" = "ln -s"; then
4841 { echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6; }
4844 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4845 echo "${ECHO_T}no, using $LN_S" >&6; }
4848 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4849 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4850 if test "${lt_cv_deplibs_check_method+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 lt_cv_file_magic_cmd='$MAGIC_CMD'
4854 lt_cv_file_magic_test_file=
4855 lt_cv_deplibs_check_method='unknown'
4856 # Need to set the preceding variable on all platforms that support
4857 # interlibrary dependencies.
4858 # 'none' -- dependencies not supported.
4859 # `unknown' -- same as none, but documents that we really don't know.
4860 # 'pass_all' -- all dependencies passed with no checks.
4861 # 'test_compile' -- check by making test program.
4862 # 'file_magic [[regex]]' -- check by looking for files in library path
4863 # which responds to the $file_magic_cmd with a given extended regex.
4864 # If you have `file' or equivalent on your system and you're not sure
4865 # whether `pass_all' will *always* work, you probably want this one.
4869 lt_cv_deplibs_check_method=pass_all
4873 lt_cv_deplibs_check_method=pass_all
4877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4878 lt_cv_file_magic_cmd='/usr/bin/file -L'
4879 lt_cv_file_magic_test_file=/shlib/libc.so
4883 # func_win32_libid is a shell function defined in ltmain.sh
4884 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4885 lt_cv_file_magic_cmd='func_win32_libid'
4889 # Base MSYS/MinGW do not provide the 'file' command needed by
4890 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4891 # unless we find 'file', for example because we are cross-compiling.
4892 if ( file / ) >/dev/null 2>&1; then
4893 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4894 lt_cv_file_magic_cmd='func_win32_libid'
4896 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4897 lt_cv_file_magic_cmd='$OBJDUMP -f'
4901 darwin* | rhapsody*)
4902 lt_cv_deplibs_check_method=pass_all
4905 freebsd* | dragonfly*)
4906 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4909 # Not sure whether the presence of OpenBSD here was a mistake.
4910 # Let's accept both of them until this is cleared up.
4911 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4912 lt_cv_file_magic_cmd=/usr/bin/file
4913 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4917 lt_cv_deplibs_check_method=pass_all
4922 lt_cv_deplibs_check_method=pass_all
4925 hpux10.20* | hpux11*)
4926 lt_cv_file_magic_cmd=/usr/bin/file
4929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4930 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4933 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]'
4934 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4938 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4944 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4948 irix5* | irix6* | nonstopux*)
4950 *-32|*"-32 ") libmagic=32-bit;;
4951 *-n32|*"-n32 ") libmagic=N32;;
4952 *-64|*"-64 ") libmagic=64-bit;;
4953 *) libmagic=never-match;;
4955 lt_cv_deplibs_check_method=pass_all
4958 # This must be Linux ELF.
4959 linux* | k*bsd*-gnu)
4960 lt_cv_deplibs_check_method=pass_all
4963 netbsd* | netbsdelf*-gnu)
4964 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4973 lt_cv_file_magic_cmd=/usr/bin/file
4974 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4978 lt_cv_deplibs_check_method=unknown
4982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4989 osf3* | osf4* | osf5*)
4990 lt_cv_deplibs_check_method=pass_all
4994 lt_cv_deplibs_check_method=pass_all
4998 lt_cv_deplibs_check_method=pass_all
5002 case $host_vendor in
5004 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]'
5005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5008 lt_cv_deplibs_check_method=pass_all
5011 lt_cv_file_magic_cmd='/bin/file'
5012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5015 lt_cv_file_magic_cmd='/bin/file'
5016 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5017 lt_cv_file_magic_test_file=/lib/libc.so
5020 lt_cv_deplibs_check_method=pass_all
5023 lt_cv_deplibs_check_method=pass_all
5028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5029 lt_cv_deplibs_check_method=pass_all
5034 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5035 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5036 file_magic_cmd=$lt_cv_file_magic_cmd
5037 deplibs_check_method=$lt_cv_deplibs_check_method
5038 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5043 # If no C compiler was specified, use CC.
5046 # If no C compiler flags were specified, use CFLAGS.
5047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5049 # Allow CC to be a program name with arguments.
5054 # Check whether --enable-libtool-lock was given.
5055 if test "${enable_libtool_lock+set}" = set; then
5056 enableval=$enable_libtool_lock;
5059 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5061 # Some flags need to be propagated to the compiler or linker for good
5065 # Find out which ABI we are using.
5066 echo 'int i;' > conftest.$ac_ext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; then
5072 case `/usr/bin/file conftest.$ac_objext` in
5084 # Find out which ABI we are using.
5085 echo '#line 5085 "configure"' > conftest.$ac_ext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; then
5091 if test "$lt_cv_prog_gnu_ld" = yes; then
5092 case `/usr/bin/file conftest.$ac_objext` in
5094 LD="${LD-ld} -melf32bsmip"
5097 LD="${LD-ld} -melf32bmipn32"
5100 LD="${LD-ld} -melf64bmip"
5104 case `/usr/bin/file conftest.$ac_objext` in
5120 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5121 s390*-*linux*|sparc*-*linux*)
5122 # Find out which ABI we are using.
5123 echo 'int i;' > conftest.$ac_ext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; then
5129 case `/usr/bin/file conftest.o` in
5132 x86_64-*kfreebsd*-gnu)
5133 LD="${LD-ld} -m elf_i386_fbsd"
5136 LD="${LD-ld} -m elf_i386"
5138 ppc64-*linux*|powerpc64-*linux*)
5139 LD="${LD-ld} -m elf32ppclinux"
5142 LD="${LD-ld} -m elf_s390"
5145 LD="${LD-ld} -m elf32_sparc"
5151 x86_64-*kfreebsd*-gnu)
5152 LD="${LD-ld} -m elf_x86_64_fbsd"
5155 LD="${LD-ld} -m elf_x86_64"
5157 ppc*-*linux*|powerpc*-*linux*)
5158 LD="${LD-ld} -m elf64ppc"
5161 LD="${LD-ld} -m elf64_s390"
5164 LD="${LD-ld} -m elf64_sparc"
5174 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5175 SAVE_CFLAGS="$CFLAGS"
5176 CFLAGS="$CFLAGS -belf"
5177 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5178 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5179 if test "${lt_cv_cc_needs_belf+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_cpp='$CPP $CPPFLAGS'
5184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5203 rm -f conftest.$ac_objext conftest$ac_exeext
5204 if { (ac_try="$ac_link"
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>conftest.er1
5212 grep -v '^ *+' conftest.er1 >conftest.err
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest$ac_exeext &&
5220 $as_test_x conftest$ac_exeext; then
5221 lt_cv_cc_needs_belf=yes
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 lt_cv_cc_needs_belf=no
5229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5230 conftest$ac_exeext conftest.$ac_ext
5232 ac_cpp='$CPP $CPPFLAGS'
5233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5239 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5242 CFLAGS="$SAVE_CFLAGS"
5246 # Find out which ABI we are using.
5247 echo 'int i;' > conftest.$ac_ext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; then
5253 case `/usr/bin/file conftest.o` in
5255 case $lt_cv_prog_gnu_ld in
5256 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5272 need_locks="$enable_libtool_lock"
5276 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5278 if test "${ac_cv_header_stdc+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 ac_cv_header_stdc=yes
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 ac_cv_header_stdc=no
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 if test $ac_cv_header_stdc = yes; then
5328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "memchr" >/dev/null 2>&1; then
5342 ac_cv_header_stdc=no
5348 if test $ac_cv_header_stdc = yes; then
5349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5350 cat >conftest.$ac_ext <<_ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "free" >/dev/null 2>&1; then
5363 ac_cv_header_stdc=no
5369 if test $ac_cv_header_stdc = yes; then
5370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371 if test "$cross_compiling" = yes; then
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5382 #if ((' ' & 0x0FF) == 0x020)
5383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5386 # define ISLOWER(c) \
5387 (('a' <= (c) && (c) <= 'i') \
5388 || ('j' <= (c) && (c) <= 'r') \
5389 || ('s' <= (c) && (c) <= 'z'))
5390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5398 for (i = 0; i < 256; i++)
5399 if (XOR (islower (i), ISLOWER (i))
5400 || toupper (i) != TOUPPER (i))
5405 rm -f conftest$ac_exeext
5406 if { (ac_try="$ac_link"
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_link") 2>&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5416 { (case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_try") 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5427 echo "$as_me: program exited with status $ac_status" >&5
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5432 ac_cv_header_stdc=no
5434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5440 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5441 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5442 if test $ac_cv_header_stdc = yes; then
5444 cat >>confdefs.h <<\_ACEOF
5445 #define STDC_HEADERS 1
5450 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5477 #include <$ac_header>
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
5496 eval "$as_ac_Header=yes"
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 eval "$as_ac_Header=no"
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_res=`eval echo '${'$as_ac_Header'}'`
5507 { echo "$as_me:$LINENO: result: $ac_res" >&5
5508 echo "${ECHO_T}$ac_res" >&6; }
5509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5510 cat >>confdefs.h <<_ACEOF
5511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5520 for ac_header in dlfcn.h
5522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 ac_res=`eval echo '${'$as_ac_Header'}'`
5530 { echo "$as_me:$LINENO: result: $ac_res" >&5
5531 echo "${ECHO_T}$ac_res" >&6; }
5533 # Is the header compilable?
5534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5536 cat >conftest.$ac_ext <<_ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 #include <$ac_header>
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_c_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5562 ac_header_compiler=yes
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 ac_header_compiler=no
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5572 echo "${ECHO_T}$ac_header_compiler" >&6; }
5574 # Is the header present?
5575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <$ac_header>
5585 if { (ac_try="$ac_cpp conftest.$ac_ext"
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5593 grep -v '^ *+' conftest.er1 >conftest.err
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } >/dev/null && {
5598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5601 ac_header_preproc=yes
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ac_header_preproc=no
5609 rm -f conftest.err conftest.$ac_ext
5610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5611 echo "${ECHO_T}$ac_header_preproc" >&6; }
5613 # So? What about this header?
5614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5620 ac_header_preproc=yes
5623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5636 ## ------------------------------------ ##
5637 ## Report this to opensource@google.com ##
5638 ## ------------------------------------ ##
5640 ) | sed "s/^/$as_me: WARNING: /" >&2
5643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 eval "$as_ac_Header=\$ac_header_preproc"
5650 ac_res=`eval echo '${'$as_ac_Header'}'`
5651 { echo "$as_me:$LINENO: result: $ac_res" >&5
5652 echo "${ECHO_T}$ac_res" >&6; }
5655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5656 cat >>confdefs.h <<_ACEOF
5657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5666 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5667 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5668 (test "X$CXX" != "Xg++"))) ; then
5670 ac_cpp='$CXXCPP $CPPFLAGS'
5671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5675 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5676 if test -z "$CXXCPP"; then
5677 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 # Double quotes because CXXCPP needs to be expanded
5681 for CXXCPP in "$CXX -E" "/lib/cpp"
5684 for ac_cxx_preproc_warn_flag in '' yes
5686 # Use a header file that comes with gcc, so configuring glibc
5687 # with a fresh cross-compiler works.
5688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689 # <limits.h> exists even on freestanding compilers.
5690 # On the NeXT, cc -E runs the code through the compiler's parser,
5691 # not just through cpp. "Syntax error" is here to catch this case.
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5699 # include <limits.h>
5701 # include <assert.h>
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719 test ! -s conftest.err
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 # Broken: fails on valid input.
5730 rm -f conftest.err conftest.$ac_ext
5732 # OK, works on sane cases. Now check whether nonexistent headers
5733 # can be detected and how.
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <ac_nonexistent.h>
5742 if { (ac_try="$ac_cpp conftest.$ac_ext"
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } >/dev/null && {
5755 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756 test ! -s conftest.err
5758 # Broken: success on invalid input.
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Passes both tests.
5769 rm -f conftest.err conftest.$ac_ext
5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.err conftest.$ac_ext
5774 if $ac_preproc_ok; then
5779 ac_cv_prog_CXXCPP=$CXXCPP
5782 CXXCPP=$ac_cv_prog_CXXCPP
5784 ac_cv_prog_CXXCPP=$CXXCPP
5786 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5787 echo "${ECHO_T}$CXXCPP" >&6; }
5789 for ac_cxx_preproc_warn_flag in '' yes
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5804 # include <limits.h>
5806 # include <assert.h>
5810 if { (ac_try="$ac_cpp conftest.$ac_ext"
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } >/dev/null && {
5823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824 test ! -s conftest.err
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 # Broken: fails on valid input.
5835 rm -f conftest.err conftest.$ac_ext
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5847 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } >/dev/null && {
5860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5861 test ! -s conftest.err
5863 # Broken: success on invalid input.
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 # Passes both tests.
5874 rm -f conftest.err conftest.$ac_ext
5877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878 rm -f conftest.err conftest.$ac_ext
5879 if $ac_preproc_ok; then
5882 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5883 See \`config.log' for more details." >&5
5884 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5885 See \`config.log' for more details." >&2;}
5886 { (exit 1); exit 1; }; }
5890 ac_cpp='$CXXCPP $CPPFLAGS'
5891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5898 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5899 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5901 if test -n "$ac_tool_prefix"; then
5902 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_prog_F77+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 if test -n "$F77"; then
5912 ac_cv_prog_F77="$F77" # Let the user override the test.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 if test -n "$F77"; then
5933 { echo "$as_me:$LINENO: result: $F77" >&5
5934 echo "${ECHO_T}$F77" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5941 test -n "$F77" && break
5944 if test -z "$F77"; then
5946 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5952 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 if test -n "$ac_ct_F77"; then
5956 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_ac_ct_F77="$ac_prog"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5976 if test -n "$ac_ct_F77"; then
5977 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5978 echo "${ECHO_T}$ac_ct_F77" >&6; }
5980 { echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6; }
5985 test -n "$ac_ct_F77" && break
5988 if test "x$ac_ct_F77" = x; then
5991 case $cross_compiling:$ac_tool_warned in
5993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5994 whose name does not start with the host triplet. If you think this
5995 configuration is useful to you, please write to autoconf@gnu.org." >&5
5996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5997 whose name does not start with the host triplet. If you think this
5998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5999 ac_tool_warned=yes ;;
6006 # Provide some information about the compiler.
6007 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6008 ac_compiler=`set X $ac_compile; echo $2`
6009 { (ac_try="$ac_compiler --version >&5"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compiler --version >&5") 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }
6019 { (ac_try="$ac_compiler -v >&5"
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_compiler -v >&5") 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }
6029 { (ac_try="$ac_compiler -V >&5"
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compiler -V >&5") 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }
6041 # If we don't use `.F' as extension, the preprocessor is not run on the
6042 # input file. (Note that this only needs to work for GNU compilers.)
6045 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6046 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6047 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 cat >conftest.$ac_ext <<_ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_f77_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6087 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6088 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6090 ac_test_FFLAGS=${FFLAGS+set}
6091 ac_save_FFLAGS=$FFLAGS
6093 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6094 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_f77_g+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 cat >conftest.$ac_ext <<_ACEOF
6104 rm -f conftest.$ac_objext
6105 if { (ac_try="$ac_compile"
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_compile") 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_f77_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest.$ac_objext; then
6121 ac_cv_prog_f77_g=yes
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6133 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6134 if test "$ac_test_FFLAGS" = set; then
6135 FFLAGS=$ac_save_FFLAGS
6136 elif test $ac_cv_prog_f77_g = yes; then
6137 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6143 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6150 G77=`test $ac_compiler_gnu = yes && echo yes`
6152 ac_cpp='$CXXCPP $CPPFLAGS'
6153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6159 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6160 # find the maximum length of command line arguments
6161 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6162 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6163 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 # On DJGPP, this test can blow up pretty badly due to problems in libc
6172 # (any single argument exceeding 2000 bytes causes a buffer overrun
6173 # during glob expansion). Even if it were fixed, the result of this
6174 # check would be larger than it should be.
6175 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6179 # Under GNU Hurd, this test is not required because there is
6180 # no limit to the length of command line arguments.
6181 # Libtool will interpret -1 as no limit whatsoever
6182 lt_cv_sys_max_cmd_len=-1;
6186 # On Win9x/ME, this test blows up -- it succeeds, but takes
6187 # about 5 minutes as the teststring grows exponentially.
6188 # Worse, since 9x/ME are not pre-emptively multitasking,
6189 # you end up with a "frozen" computer, even though with patience
6190 # the test eventually succeeds (with a max line length of 256k).
6191 # Instead, let's just punt: use the minimum linelength reported by
6192 # all of the supported platforms: 8192 (on NT/2K/XP).
6193 lt_cv_sys_max_cmd_len=8192;
6197 # On AmigaOS with pdksh, this test takes hours, literally.
6198 # So we just punt and use a minimum line length of 8192.
6199 lt_cv_sys_max_cmd_len=8192;
6202 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6203 # This has been around since 386BSD, at least. Likely further.
6204 if test -x /sbin/sysctl; then
6205 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6206 elif test -x /usr/sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6209 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6211 # And add a safety zone
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6218 lt_cv_sys_max_cmd_len=196608
6222 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6223 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6224 # nice to cause kernel panics so lets avoid the loop below.
6225 # First set a reasonable default.
6226 lt_cv_sys_max_cmd_len=16384
6228 if test -x /sbin/sysconfig; then
6229 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6230 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6235 lt_cv_sys_max_cmd_len=102400
6237 sysv5* | sco5v6* | sysv4.2uw2*)
6238 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6239 if test -n "$kargmax"; then
6240 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6242 lt_cv_sys_max_cmd_len=32768
6246 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6247 if test -n "$lt_cv_sys_max_cmd_len"; then
6248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6253 = "XX$teststring") >/dev/null 2>&1 &&
6254 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6255 lt_cv_sys_max_cmd_len=$new_result &&
6256 test $i != 17 # 1/2 MB should be enough
6259 teststring=$teststring$teststring
6262 # Add a significant safety factor because C++ compilers can tack on massive
6263 # amounts of additional arguments before passing them to the linker.
6264 # It appears as though 1/2 is a usable value.
6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6272 if test -n $lt_cv_sys_max_cmd_len ; then
6273 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6274 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6276 { echo "$as_me:$LINENO: result: none" >&5
6277 echo "${ECHO_T}none" >&6; }
6284 # Check for command to grab the raw symbol name followed by C symbol from nm.
6285 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6286 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 # These are sane defaults that work on at least a few old systems.
6292 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6294 # Character class describing NM global symbol codes.
6295 symcode='[BCDEGRST]'
6297 # Regexp to match symbols that can be accessed directly from C.
6298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6300 # Transform an extracted symbol line into a proper C declaration
6301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6303 # Transform an extracted symbol line into symbol name and symbol address
6304 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'"
6306 # Define system-specific variables.
6311 cygwin* | mingw* | pw32*)
6312 symcode='[ABCDGISTW]'
6314 hpux*) # Its linker distinguishes data from code symbols
6315 if test "$host_cpu" = ia64; then
6316 symcode='[ABCDEGRST]'
6318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6319 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'"
6321 linux* | k*bsd*-gnu)
6322 if test "$host_cpu" = ia64; then
6323 symcode='[ABCDGIRSTW]'
6324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6325 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'"
6329 symcode='[BCDEGRST]'
6332 symcode='[BCDEGQRST]'
6343 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6351 # Handle CRLF in mingw tool chain
6355 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6359 # If we're using GNU nm, then use its standard symbol codes.
6360 case `$NM -V 2>&1` in
6361 *GNU* | *'with BFD'*)
6362 symcode='[ABCDGIRSTW]' ;;
6365 # Try without a prefix undercore, then with it.
6366 for ac_symprfx in "" "_"; do
6368 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6369 symxfrm="\\1 $ac_symprfx\\2 \\2"
6371 # Write the raw and C identifiers.
6372 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6374 # Check to see that the pipe works correctly.
6378 cat > conftest.$ac_ext <<EOF
6383 void nm_test_func(){}
6387 int main(){nm_test_var='a';nm_test_func();return(0);}
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; then
6395 # Now try to grab the symbols.
6397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && test -s "$nlist"; then
6402 # Try sorting and uniquifying the output.
6403 if sort "$nlist" | uniq > "$nlist"T; then
6404 mv -f "$nlist"T "$nlist"
6409 # Make sure that we snagged all the symbols we need.
6410 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6411 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6412 cat <<EOF > conftest.$ac_ext
6418 # Now generate the symbol file.
6419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6421 cat <<EOF >> conftest.$ac_ext
6422 #if defined (__STDC__) && __STDC__
6423 # define lt_ptr_t void *
6425 # define lt_ptr_t char *
6429 /* The mapping between symbol names and symbols. */
6434 lt_preloaded_symbols[] =
6437 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6438 cat <<\EOF >> conftest.$ac_ext
6446 # Now try linking the two files.
6447 mv conftest.$ac_objext conftstm.$ac_objext
6448 lt_save_LIBS="$LIBS"
6449 lt_save_CFLAGS="$CFLAGS"
6450 LIBS="conftstm.$ac_objext"
6451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453 (eval $ac_link) 2>&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6459 LIBS="$lt_save_LIBS"
6460 CFLAGS="$lt_save_CFLAGS"
6462 echo "cannot find nm_test_func in $nlist" >&5
6465 echo "cannot find nm_test_var in $nlist" >&5
6468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6471 echo "$progname: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6474 rm -rf conftest* conftst*
6476 # Do not use the global_symbol_pipe unless it works.
6477 if test "$pipe_works" = yes; then
6480 lt_cv_sys_global_symbol_pipe=
6486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6487 lt_cv_sys_global_symbol_to_cdecl=
6489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6490 { echo "$as_me:$LINENO: result: failed" >&5
6491 echo "${ECHO_T}failed" >&6; }
6493 { echo "$as_me:$LINENO: result: ok" >&5
6494 echo "${ECHO_T}ok" >&6; }
6497 { echo "$as_me:$LINENO: checking for objdir" >&5
6498 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6499 if test "${lt_cv_objdir+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 rm -f .libs 2>/dev/null
6503 mkdir .libs 2>/dev/null
6504 if test -d .libs; then
6507 # MS-DOS does not allow filenames that begin with a dot.
6510 rmdir .libs 2>/dev/null
6512 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6513 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6514 objdir=$lt_cv_objdir
6522 # AIX sometimes has problems with the GCC collect2 program. For some
6523 # reason, if we set the COLLECT_NAMES environment variable, the problems
6524 # vanish in a puff of smoke.
6525 if test "X${COLLECT_NAMES+set}" != Xset; then
6527 export COLLECT_NAMES
6532 # Sed substitution that helps us do robust quoting. It backslashifies
6533 # metacharacters that are still active within double-quoted strings.
6534 Xsed='sed -e 1s/^X//'
6535 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6537 # Same as above, but do not quote variable references.
6538 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6540 # Sed substitution to delay expansion of an escaped shell variable in a
6541 # double_quote_subst'ed string.
6542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6544 # Sed substitution to avoid accidental globbing in evaled expressions
6545 no_glob_subst='s/\*/\\\*/g'
6551 default_ofile=libtool
6552 can_build_shared=yes
6554 # All known linkers require a `.a' archive for static linking (except MSVC,
6555 # which needs '.lib').
6557 ltmain="$ac_aux_dir/ltmain.sh"
6558 ofile="$default_ofile"
6559 with_gnu_ld="$lt_cv_prog_gnu_ld"
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ar; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_prog_AR+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 if test -n "$AR"; then
6570 ac_cv_prog_AR="$AR" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_AR="${ac_tool_prefix}ar"
6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 if test -n "$AR"; then
6591 { echo "$as_me:$LINENO: result: $AR" >&5
6592 echo "${ECHO_T}$AR" >&6; }
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6600 if test -z "$ac_cv_prog_AR"; then
6602 # Extract the first word of "ar", so it can be a program name with args.
6603 set dummy ar; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 if test -n "$ac_ct_AR"; then
6610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_AR="ar"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6630 if test -n "$ac_ct_AR"; then
6631 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6632 echo "${ECHO_T}$ac_ct_AR" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6638 if test "x$ac_ct_AR" = x; then
6641 case $cross_compiling:$ac_tool_warned in
6643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet. If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&5
6646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6649 ac_tool_warned=yes ;;
6657 if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_prog_RANLIB+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 if test -n "$RANLIB"; then
6666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 RANLIB=$ac_cv_prog_RANLIB
6686 if test -n "$RANLIB"; then
6687 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6688 echo "${ECHO_T}$RANLIB" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6696 if test -z "$ac_cv_prog_RANLIB"; then
6697 ac_ct_RANLIB=$RANLIB
6698 # Extract the first word of "ranlib", so it can be a program name with args.
6699 set dummy ranlib; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 if test -n "$ac_ct_RANLIB"; then
6706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_ac_ct_RANLIB="ranlib"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6726 if test -n "$ac_ct_RANLIB"; then
6727 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6728 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6734 if test "x$ac_ct_RANLIB" = x; then
6737 case $cross_compiling:$ac_tool_warned in
6739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6740 whose name does not start with the host triplet. If you think this
6741 configuration is useful to you, please write to autoconf@gnu.org." >&5
6742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6743 whose name does not start with the host triplet. If you think this
6744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6745 ac_tool_warned=yes ;;
6747 RANLIB=$ac_ct_RANLIB
6750 RANLIB="$ac_cv_prog_RANLIB"
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}strip; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_prog_STRIP+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 if test -n "$STRIP"; then
6762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 STRIP=$ac_cv_prog_STRIP
6782 if test -n "$STRIP"; then
6783 { echo "$as_me:$LINENO: result: $STRIP" >&5
6784 echo "${ECHO_T}$STRIP" >&6; }
6786 { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6792 if test -z "$ac_cv_prog_STRIP"; then
6794 # Extract the first word of "strip", so it can be a program name with args.
6795 set dummy strip; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 if test -n "$ac_ct_STRIP"; then
6802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_ac_ct_STRIP="strip"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822 if test -n "$ac_ct_STRIP"; then
6823 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6824 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6830 if test "x$ac_ct_STRIP" = x; then
6833 case $cross_compiling:$ac_tool_warned in
6835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6836 whose name does not start with the host triplet. If you think this
6837 configuration is useful to you, please write to autoconf@gnu.org." >&5
6838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6839 whose name does not start with the host triplet. If you think this
6840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6841 ac_tool_warned=yes ;;
6846 STRIP="$ac_cv_prog_STRIP"
6851 old_CFLAGS="$CFLAGS"
6853 # Set sane defaults for various variables
6854 test -z "$AR" && AR=ar
6855 test -z "$AR_FLAGS" && AR_FLAGS=cru
6856 test -z "$AS" && AS=as
6857 test -z "$CC" && CC=cc
6858 test -z "$LTCC" && LTCC=$CC
6859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6860 test -z "$DLLTOOL" && DLLTOOL=dlltool
6861 test -z "$LD" && LD=ld
6862 test -z "$LN_S" && LN_S="ln -s"
6863 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6864 test -z "$NM" && NM=nm
6865 test -z "$SED" && SED=sed
6866 test -z "$OBJDUMP" && OBJDUMP=objdump
6867 test -z "$RANLIB" && RANLIB=:
6868 test -z "$STRIP" && STRIP=:
6869 test -z "$ac_objext" && ac_objext=o
6871 # Determine commands to create old-style static archives.
6872 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6873 old_postinstall_cmds='chmod 644 $oldlib'
6874 old_postuninstall_cmds=
6876 if test -n "$RANLIB"; then
6879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6888 for cc_temp in $compiler""; do
6890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6899 # Only perform the check for file, if the check method requires it
6900 case $deplibs_check_method in
6902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6903 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6904 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6913 lt_save_MAGIC_CMD="$MAGIC_CMD"
6914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6916 for ac_dir in $ac_dummy; do
6918 test -z "$ac_dir" && ac_dir=.
6919 if test -f $ac_dir/${ac_tool_prefix}file; then
6920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6921 if test -n "$file_magic_test_file"; then
6922 case $deplibs_check_method in
6924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6927 $EGREP "$file_magic_regex" > /dev/null; then
6932 *** Warning: the command libtool uses to detect shared libraries,
6933 *** $file_magic_cmd, produces output that libtool cannot recognize.
6934 *** The result is that libtool may fail to recognize shared libraries
6935 *** as such. This will affect the creation of libtool libraries that
6936 *** depend on shared libraries, but programs linked with such libtool
6937 *** libraries will work regardless of this problem. Nevertheless, you
6938 *** may want to report the problem to your system manager and/or to
6939 *** bug-libtool@gnu.org
6949 MAGIC_CMD="$lt_save_MAGIC_CMD"
6954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6955 if test -n "$MAGIC_CMD"; then
6956 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6957 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6959 { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6963 if test -z "$lt_cv_path_MAGIC_CMD"; then
6964 if test -n "$ac_tool_prefix"; then
6965 { echo "$as_me:$LINENO: checking for file" >&5
6966 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6975 lt_save_MAGIC_CMD="$MAGIC_CMD"
6976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6978 for ac_dir in $ac_dummy; do
6980 test -z "$ac_dir" && ac_dir=.
6981 if test -f $ac_dir/file; then
6982 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6983 if test -n "$file_magic_test_file"; then
6984 case $deplibs_check_method in
6986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6989 $EGREP "$file_magic_regex" > /dev/null; then
6994 *** Warning: the command libtool uses to detect shared libraries,
6995 *** $file_magic_cmd, produces output that libtool cannot recognize.
6996 *** The result is that libtool may fail to recognize shared libraries
6997 *** as such. This will affect the creation of libtool libraries that
6998 *** depend on shared libraries, but programs linked with such libtool
6999 *** libraries will work regardless of this problem. Nevertheless, you
7000 *** may want to report the problem to your system manager and/or to
7001 *** bug-libtool@gnu.org
7011 MAGIC_CMD="$lt_save_MAGIC_CMD"
7016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7017 if test -n "$MAGIC_CMD"; then
7018 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7019 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7036 rhapsody* | darwin*)
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 if test -n "$DSYMUTIL"; then
7046 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7066 if test -n "$DSYMUTIL"; then
7067 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7068 echo "${ECHO_T}$DSYMUTIL" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7076 if test -z "$ac_cv_prog_DSYMUTIL"; then
7077 ac_ct_DSYMUTIL=$DSYMUTIL
7078 # Extract the first word of "dsymutil", so it can be a program name with args.
7079 set dummy dsymutil; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 if test -n "$ac_ct_DSYMUTIL"; then
7086 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7106 if test -n "$ac_ct_DSYMUTIL"; then
7107 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7108 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7110 { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7114 if test "x$ac_ct_DSYMUTIL" = x; then
7117 case $cross_compiling:$ac_tool_warned in
7119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7120 whose name does not start with the host triplet. If you think this
7121 configuration is useful to you, please write to autoconf@gnu.org." >&5
7122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7123 whose name does not start with the host triplet. If you think this
7124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7125 ac_tool_warned=yes ;;
7127 DSYMUTIL=$ac_ct_DSYMUTIL
7130 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -n "$NMEDIT"; then
7142 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 NMEDIT=$ac_cv_prog_NMEDIT
7162 if test -n "$NMEDIT"; then
7163 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7164 echo "${ECHO_T}$NMEDIT" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7172 if test -z "$ac_cv_prog_NMEDIT"; then
7173 ac_ct_NMEDIT=$NMEDIT
7174 # Extract the first word of "nmedit", so it can be a program name with args.
7175 set dummy nmedit; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 if test -n "$ac_ct_NMEDIT"; then
7182 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7202 if test -n "$ac_ct_NMEDIT"; then
7203 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7204 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7210 if test "x$ac_ct_NMEDIT" = x; then
7213 case $cross_compiling:$ac_tool_warned in
7215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7216 whose name does not start with the host triplet. If you think this
7217 configuration is useful to you, please write to autoconf@gnu.org." >&5
7218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7219 whose name does not start with the host triplet. If you think this
7220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7221 ac_tool_warned=yes ;;
7223 NMEDIT=$ac_ct_NMEDIT
7226 NMEDIT="$ac_cv_prog_NMEDIT"
7230 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7231 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7232 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 lt_cv_apple_cc_single_mod=no
7236 if test -z "${LT_MULTI_MODULE}"; then
7237 # By default we will add the -single_module flag. You can override
7238 # by either setting the environment variable LT_MULTI_MODULE
7239 # non-empty at configure time, or by adding -multi_module to the
7241 echo "int foo(void){return 1;}" > conftest.c
7242 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7243 -dynamiclib ${wl}-single_module conftest.c
7244 if test -f libconftest.dylib; then
7245 lt_cv_apple_cc_single_mod=yes
7246 rm -rf libconftest.dylib*
7251 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7252 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7253 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7254 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7255 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 lt_cv_ld_exported_symbols_list=no
7259 save_LDFLAGS=$LDFLAGS
7260 echo "_main" > conftest.sym
7261 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_cxx_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest$ac_exeext &&
7294 $as_test_x conftest$ac_exeext; then
7295 lt_cv_ld_exported_symbols_list=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 lt_cv_ld_exported_symbols_list=no
7303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7304 conftest$ac_exeext conftest.$ac_ext
7305 LDFLAGS="$save_LDFLAGS"
7308 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7309 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7311 rhapsody* | darwin1.[0123])
7312 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7316 # if running on 10.5 or later, the deployment target defaults
7317 # to the OS version, if on x86, and 10.4, the deployment
7318 # target defaults to 10.4. Don't you love it?
7319 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7320 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7321 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7323 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7325 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7329 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7330 _lt_dar_single_mod='$single_module'
7332 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7333 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7335 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7337 if test "$DSYMUTIL" != ":"; then
7338 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7349 # Check whether --enable-libtool-lock was given.
7350 if test "${enable_libtool_lock+set}" = set; then
7351 enableval=$enable_libtool_lock;
7354 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7357 # Check whether --with-pic was given.
7358 if test "${with_pic+set}" = set; then
7359 withval=$with_pic; pic_mode="$withval"
7364 test -z "$pic_mode" && pic_mode=default
7366 # Use C for the default configuration in the libtool script
7370 ac_cpp='$CPP $CPPFLAGS'
7371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376 # Source file extension for C test sources.
7379 # Object file extension for compiled C test sources.
7383 # Code to be used in simple compile tests
7384 lt_simple_compile_test_code="int some_variable = 0;"
7386 # Code to be used in simple link tests
7387 lt_simple_link_test_code='int main(){return(0);}'
7390 # If no C compiler was specified, use CC.
7393 # If no C compiler flags were specified, use CFLAGS.
7394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7396 # Allow CC to be a program name with arguments.
7400 # save warnings/boilerplate of simple test code
7401 ac_outfile=conftest.$ac_objext
7402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7404 _lt_compiler_boilerplate=`cat conftest.err`
7407 ac_outfile=conftest.$ac_objext
7408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7410 _lt_linker_boilerplate=`cat conftest.err`
7415 lt_prog_compiler_no_builtin_flag=
7417 if test "$GCC" = yes; then
7418 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7421 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 lt_cv_prog_compiler_rtti_exceptions=no
7427 ac_outfile=conftest.$ac_objext
7428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429 lt_compiler_flag="-fno-rtti -fno-exceptions"
7430 # Insert the option either (1) after the last *FLAGS variable, or
7431 # (2) before a word containing "conftest.", or (3) at the end.
7432 # Note that $ac_compile itself does not contain backslashes and begins
7433 # with a dollar sign (not a hyphen), so the echo should work correctly.
7434 # The option is referenced via a variable to avoid confusing sed.
7435 lt_compile=`echo "$ac_compile" | $SED \
7436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438 -e 's:$: $lt_compiler_flag:'`
7439 (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440 (eval "$lt_compile" 2>conftest.err)
7442 cat conftest.err >&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 if (exit $ac_status) && test -s "$ac_outfile"; then
7445 # The compiler can only warn and ignore the option if not recognized
7446 # So say no if there are warnings other than the usual output.
7447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7450 lt_cv_prog_compiler_rtti_exceptions=yes
7456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7460 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7467 lt_prog_compiler_wl=
7468 lt_prog_compiler_pic=
7469 lt_prog_compiler_static=
7471 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7472 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7474 if test "$GCC" = yes; then
7475 lt_prog_compiler_wl='-Wl,'
7476 lt_prog_compiler_static='-static'
7480 # All AIX code is PIC.
7481 if test "$host_cpu" = ia64; then
7482 # AIX 5 now supports IA64 processor
7483 lt_prog_compiler_static='-Bstatic'
7488 # FIXME: we need at least 68020 code to build shared libraries, but
7489 # adding the `-m68020' flag to GCC prevents building anything better,
7491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7494 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7495 # PIC is the default for these OSes.
7498 mingw* | cygwin* | pw32* | os2*)
7499 # This hack is so that the source file can tell whether it is being
7500 # built for inclusion in a dll (and should export symbols for example).
7501 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7502 # (--disable-auto-import) libraries
7503 lt_prog_compiler_pic='-DDLL_EXPORT'
7506 darwin* | rhapsody*)
7507 # PIC is the default on this platform
7508 # Common symbols not allowed in MH_DYLIB files
7509 lt_prog_compiler_pic='-fno-common'
7513 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7514 # Instead, we relocate shared libraries at runtime.
7518 # Just because we use GCC doesn't mean we suddenly get shared libraries
7519 # on systems that don't support them.
7520 lt_prog_compiler_can_build_shared=no
7525 if test -d /usr/nec; then
7526 lt_prog_compiler_pic=-Kconform_pic
7531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7538 lt_prog_compiler_pic='-fPIC'
7544 lt_prog_compiler_pic='-fPIC'
7548 # PORTME Check for flag to pass linker flags through the system compiler.
7551 lt_prog_compiler_wl='-Wl,'
7552 if test "$host_cpu" = ia64; then
7553 # AIX 5 now supports IA64 processor
7554 lt_prog_compiler_static='-Bstatic'
7556 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7560 # PIC is the default on this platform
7561 # Common symbols not allowed in MH_DYLIB files
7562 case $cc_basename in
7564 lt_prog_compiler_pic='-qnocommon'
7565 lt_prog_compiler_wl='-Wl,'
7570 mingw* | cygwin* | pw32* | os2*)
7571 # This hack is so that the source file can tell whether it is being
7572 # built for inclusion in a dll (and should export symbols for example).
7573 lt_prog_compiler_pic='-DDLL_EXPORT'
7576 hpux9* | hpux10* | hpux11*)
7577 lt_prog_compiler_wl='-Wl,'
7578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7585 lt_prog_compiler_pic='+Z'
7588 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7589 lt_prog_compiler_static='${wl}-a ${wl}archive'
7592 irix5* | irix6* | nonstopux*)
7593 lt_prog_compiler_wl='-Wl,'
7594 # PIC (with -KPIC) is the default.
7595 lt_prog_compiler_static='-non_shared'
7599 lt_prog_compiler_pic='-KPIC'
7600 lt_prog_compiler_static='-Bstatic'
7603 linux* | k*bsd*-gnu)
7604 case $cc_basename in
7606 lt_prog_compiler_wl='-Wl,'
7607 lt_prog_compiler_pic='-KPIC'
7608 lt_prog_compiler_static='-static'
7610 pgcc* | pgf77* | pgf90* | pgf95*)
7611 # Portland Group compilers (*not* the Pentium gcc compiler,
7612 # which looks to be a dead project)
7613 lt_prog_compiler_wl='-Wl,'
7614 lt_prog_compiler_pic='-fpic'
7615 lt_prog_compiler_static='-Bstatic'
7618 lt_prog_compiler_wl='-Wl,'
7619 # All Alpha code is PIC.
7620 lt_prog_compiler_static='-non_shared'
7623 case `$CC -V 2>&1 | sed 5q` in
7626 lt_prog_compiler_pic='-KPIC'
7627 lt_prog_compiler_static='-Bstatic'
7628 lt_prog_compiler_wl='-Wl,'
7631 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7632 lt_prog_compiler_pic='-KPIC'
7633 lt_prog_compiler_static='-Bstatic'
7634 lt_prog_compiler_wl=''
7641 osf3* | osf4* | osf5*)
7642 lt_prog_compiler_wl='-Wl,'
7643 # All OSF/1 code is PIC.
7644 lt_prog_compiler_static='-non_shared'
7648 lt_prog_compiler_static='-non_shared'
7652 lt_prog_compiler_pic='-KPIC'
7653 lt_prog_compiler_static='-Bstatic'
7654 case $cc_basename in
7656 lt_prog_compiler_wl='-Qoption ld ';;
7658 lt_prog_compiler_wl='-Wl,';;
7663 lt_prog_compiler_wl='-Qoption ld '
7664 lt_prog_compiler_pic='-PIC'
7665 lt_prog_compiler_static='-Bstatic'
7668 sysv4 | sysv4.2uw2* | sysv4.3*)
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_pic='-KPIC'
7671 lt_prog_compiler_static='-Bstatic'
7675 if test -d /usr/nec ;then
7676 lt_prog_compiler_pic='-Kconform_pic'
7677 lt_prog_compiler_static='-Bstatic'
7681 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7682 lt_prog_compiler_wl='-Wl,'
7683 lt_prog_compiler_pic='-KPIC'
7684 lt_prog_compiler_static='-Bstatic'
7688 lt_prog_compiler_wl='-Wl,'
7689 lt_prog_compiler_can_build_shared=no
7693 lt_prog_compiler_pic='-pic'
7694 lt_prog_compiler_static='-Bstatic'
7698 lt_prog_compiler_can_build_shared=no
7703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7704 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7707 # Check to make sure the PIC flag actually works.
7709 if test -n "$lt_prog_compiler_pic"; then
7711 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7712 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7713 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 lt_cv_prog_compiler_pic_works=no
7717 ac_outfile=conftest.$ac_objext
7718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7719 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7720 # Insert the option either (1) after the last *FLAGS variable, or
7721 # (2) before a word containing "conftest.", or (3) at the end.
7722 # Note that $ac_compile itself does not contain backslashes and begins
7723 # with a dollar sign (not a hyphen), so the echo should work correctly.
7724 # The option is referenced via a variable to avoid confusing sed.
7725 lt_compile=`echo "$ac_compile" | $SED \
7726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7728 -e 's:$: $lt_compiler_flag:'`
7729 (eval echo "\"\$as_me:7729: $lt_compile\"" >&5)
7730 (eval "$lt_compile" 2>conftest.err)
7732 cat conftest.err >&5
7733 echo "$as_me:7733: \$? = $ac_status" >&5
7734 if (exit $ac_status) && test -s "$ac_outfile"; then
7735 # The compiler can only warn and ignore the option if not recognized
7736 # So say no if there are warnings other than the usual output.
7737 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7740 lt_cv_prog_compiler_pic_works=yes
7746 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7747 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7749 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7750 case $lt_prog_compiler_pic in
7752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7755 lt_prog_compiler_pic=
7756 lt_prog_compiler_can_build_shared=no
7761 # For platforms which do not support PIC, -DPIC is meaningless:
7763 lt_prog_compiler_pic=
7766 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7771 # Check to make sure the static flag actually works.
7773 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7774 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7775 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7776 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 lt_cv_prog_compiler_static_works=no
7780 save_LDFLAGS="$LDFLAGS"
7781 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7784 # The linker can only warn and ignore the option if not recognized
7785 # So say no if there are warnings
7786 if test -s conftest.err; then
7787 # Append any errors to the config.log.
7788 cat conftest.err 1>&5
7789 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7791 if diff conftest.exp conftest.er2 >/dev/null; then
7792 lt_cv_prog_compiler_static_works=yes
7795 lt_cv_prog_compiler_static_works=yes
7799 LDFLAGS="$save_LDFLAGS"
7802 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7803 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7805 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7808 lt_prog_compiler_static=
7812 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7813 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7814 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 lt_cv_prog_compiler_c_o=no
7818 $rm -r conftest 2>/dev/null
7822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7824 lt_compiler_flag="-o out/conftest2.$ac_objext"
7825 # Insert the option either (1) after the last *FLAGS variable, or
7826 # (2) before a word containing "conftest.", or (3) at the end.
7827 # Note that $ac_compile itself does not contain backslashes and begins
7828 # with a dollar sign (not a hyphen), so the echo should work correctly.
7829 lt_compile=`echo "$ac_compile" | $SED \
7830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7832 -e 's:$: $lt_compiler_flag:'`
7833 (eval echo "\"\$as_me:7833: $lt_compile\"" >&5)
7834 (eval "$lt_compile" 2>out/conftest.err)
7836 cat out/conftest.err >&5
7837 echo "$as_me:7837: \$? = $ac_status" >&5
7838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7840 # The compiler can only warn and ignore the option if not recognized
7841 # So say no if there are warnings
7842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7845 lt_cv_prog_compiler_c_o=yes
7850 # SGI C++ compiler will create directory out/ii_files/ for
7851 # template instantiation
7852 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7853 $rm out/* && rmdir out
7859 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7860 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7863 hard_links="nottested"
7864 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7865 # do not overwrite the value of need_locks provided by the user
7866 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7867 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7872 ln conftest.a conftest.b 2>&5 || hard_links=no
7873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7874 { echo "$as_me:$LINENO: result: $hard_links" >&5
7875 echo "${ECHO_T}$hard_links" >&6; }
7876 if test "$hard_links" = no; then
7877 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7878 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7885 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7886 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7889 allow_undefined_flag=
7890 enable_shared_with_static_runtimes=no
7892 archive_expsym_cmds=
7893 old_archive_From_new_cmds=
7894 old_archive_from_expsyms_cmds=
7895 export_dynamic_flag_spec=
7896 whole_archive_flag_spec=
7897 thread_safe_flag_spec=
7898 hardcode_libdir_flag_spec=
7899 hardcode_libdir_flag_spec_ld=
7900 hardcode_libdir_separator=
7903 hardcode_shlibpath_var=unsupported
7904 link_all_deplibs=unknown
7905 hardcode_automatic=no
7908 always_export_symbols=no
7909 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7910 # include_expsyms should be a list of space-separated symbols to be *always*
7911 # included in the symbol list
7913 # exclude_expsyms can be an extended regexp of symbols to exclude
7914 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7915 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7916 # as well as any symbol that contains `d'.
7917 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7918 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7919 # platforms (ab)use it in PIC code, but their linkers get confused if
7920 # the symbol is explicitly referenced. Since portable code cannot
7921 # rely on this symbol name, it's probably fine to never include it in
7922 # preloaded symbol tables.
7923 # Exclude shared library initialization/finalization symbols.
7924 extract_expsyms_cmds=
7925 # Just being paranoid about ensuring that cc_basename is set.
7926 for cc_temp in $compiler""; do
7928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7937 cygwin* | mingw* | pw32*)
7938 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7939 # When not using gcc, we currently assume that we are using
7940 # Microsoft Visual C++.
7941 if test "$GCC" != yes; then
7946 # we just hope/assume this is gcc and not c89 (= MSVC++)
7955 if test "$with_gnu_ld" = yes; then
7956 # If archive_cmds runs LD, not CC, wlarc should be empty
7959 # Set some defaults for GNU ld with shared library support. These
7960 # are reset later if shared libraries are not supported. Putting them
7961 # here allows them to be overridden if necessary.
7962 runpath_var=LD_RUN_PATH
7963 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7964 export_dynamic_flag_spec='${wl}--export-dynamic'
7965 # ancient GNU ld didn't support --whole-archive et. al.
7966 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7967 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7969 whole_archive_flag_spec=
7971 supports_anon_versioning=no
7972 case `$LD -v 2>/dev/null` in
7973 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7974 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7975 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7976 *\ 2.11.*) ;; # other 2.11 versions
7977 *) supports_anon_versioning=yes ;;
7980 # See if GNU ld supports shared libraries.
7983 # On AIX/PPC, the GNU linker is very broken
7984 if test "$host_cpu" != ia64; then
7988 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7989 *** to be unable to reliably create shared libraries on AIX.
7990 *** Therefore, libtool is disabling shared libraries support. If you
7991 *** really care for shared libraries, you may want to modify your PATH
7992 *** so that a non-GNU linker is found, and then restart.
7999 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8000 hardcode_libdir_flag_spec='-L$libdir'
8001 hardcode_minus_L=yes
8003 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8004 # that the semantics of dynamic libraries on AmigaOS, at least up
8005 # to version 4, is to share data among multiple programs linked
8006 # with the same dynamic library. Since this doesn't match the
8007 # behavior of shared libraries on other platforms, we can't use
8013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8014 allow_undefined_flag=unsupported
8015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8016 # support --undefined. This deserves some investigation. FIXME
8017 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8023 cygwin* | mingw* | pw32*)
8024 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8025 # as there is no search path for DLLs.
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 allow_undefined_flag=unsupported
8028 always_export_symbols=no
8029 enable_shared_with_static_runtimes=yes
8030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8032 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8034 # If the export-symbols file already is a .def file (1st line
8035 # is EXPORTS), use it as is; otherwise, prepend...
8036 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8037 cp $export_symbols $output_objdir/$soname.def;
8039 echo EXPORTS > $output_objdir/$soname.def;
8040 cat $export_symbols >> $output_objdir/$soname.def;
8042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8050 hardcode_shlibpath_var=no
8051 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8052 export_dynamic_flag_spec='${wl}-E'
8053 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8054 # Instead, shared libraries are loaded at an image base (0x10000000 by
8055 # default) and relocated if they conflict, which is a slow very memory
8056 # consuming and fragmenting process. To avoid this, we pick a random,
8057 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8058 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8060 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8063 gnu* | linux* | k*bsd*-gnu)
8064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8066 case $cc_basename,$host_cpu in
8067 pgcc*) # Portland Group C compiler
8068 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'
8069 tmp_addflag=' $pic_flag'
8071 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8072 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'
8073 tmp_addflag=' $pic_flag -Mnomain' ;;
8074 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8075 tmp_addflag=' -i_dynamic' ;;
8076 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8077 tmp_addflag=' -i_dynamic -nofor_main' ;;
8078 ifc* | ifort*) # Intel Fortran compiler
8079 tmp_addflag=' -nofor_main' ;;
8081 case `$CC -V 2>&1 | sed 5q` in
8082 *Sun\ C*) # Sun C 5.9
8083 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8084 tmp_sharedflag='-G' ;;
8085 *Sun\ F*) # Sun Fortran 8.3
8086 tmp_sharedflag='-G' ;;
8088 tmp_sharedflag='-shared' ;;
8090 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092 if test $supports_anon_versioning = yes; then
8093 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8095 $echo "local: *; };" >> $output_objdir/$libname.ver~
8096 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8104 netbsd* | netbsdelf*-gnu)
8105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8106 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8115 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8119 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8120 *** create shared libraries on Solaris systems. Therefore, libtool
8121 *** is disabling shared libraries support. We urge you to upgrade GNU
8122 *** binutils to release 2.9.1 or newer. Another option is to modify
8123 *** your PATH or compiler configuration so that the native linker is
8124 *** used, and then restart.
8127 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8136 case `$LD -v 2>&1` in
8137 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8141 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8142 *** reliably create shared libraries on SCO systems. Therefore, libtool
8143 *** is disabling shared libraries support. We urge you to upgrade GNU
8144 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8145 *** your PATH or compiler configuration so that the native linker is
8146 *** used, and then restart.
8151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8163 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8166 hardcode_shlibpath_var=no
8170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8179 if test "$ld_shlibs" = no; then
8181 hardcode_libdir_flag_spec=
8182 export_dynamic_flag_spec=
8183 whole_archive_flag_spec=
8186 # PORTME fill in a description of your system's linker (not GNU ld)
8189 allow_undefined_flag=unsupported
8190 always_export_symbols=yes
8191 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8192 # Note: this linker hardcodes the directories in LIBPATH if there
8193 # are no directories specified by -L.
8194 hardcode_minus_L=yes
8195 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8196 # Neither direct hardcoding nor static linking is supported with a
8198 hardcode_direct=unsupported
8203 if test "$host_cpu" = ia64; then
8204 # On IA64, the linker does run time linking by default, so we don't
8205 # have to do anything special.
8206 aix_use_runtimelinking=no
8207 exp_sym_flag='-Bexport'
8210 # If we're using GNU nm, then we don't want the "-C" option.
8211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8212 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8213 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8215 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8217 aix_use_runtimelinking=no
8219 # Test if we are trying to use run time linking or normal
8220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8221 # need to do runtime linking.
8222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8223 for ld_flag in $LDFLAGS; do
8224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8225 aix_use_runtimelinking=yes
8232 exp_sym_flag='-bexport'
8233 no_entry_flag='-bnoentry'
8236 # When large executables or shared objects are built, AIX ld can
8237 # have problems creating the table of contents. If linking a library
8238 # or program results in "error TOC overflow" add -mminimal-toc to
8239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8244 hardcode_libdir_separator=':'
8245 link_all_deplibs=yes
8247 if test "$GCC" = yes; then
8248 case $host_os in aix4.[012]|aix4.[012].*)
8249 # We only want to do this on AIX 4.2 and lower, the check
8250 # below for broken collect2 doesn't work under 4.3+
8251 collect2name=`${CC} -print-prog-name=collect2`
8252 if test -f "$collect2name" && \
8253 strings "$collect2name" | grep resolve_lib_name >/dev/null
8255 # We have reworked collect2
8258 # We have old collect2
8259 hardcode_direct=unsupported
8260 # It fails to find uninstalled libraries when the uninstalled
8261 # path is not listed in the libpath. Setting hardcode_minus_L
8262 # to unsupported forces relinking
8263 hardcode_minus_L=yes
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_libdir_separator=
8269 shared_flag='-shared'
8270 if test "$aix_use_runtimelinking" = yes; then
8271 shared_flag="$shared_flag "'${wl}-G'
8275 if test "$host_cpu" = ia64; then
8276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8277 # chokes on -Wl,-G. The following line is correct:
8280 if test "$aix_use_runtimelinking" = yes; then
8281 shared_flag='${wl}-G'
8283 shared_flag='${wl}-bM:SRE'
8288 # It seems that -bexpall does not export symbols beginning with
8289 # underscore (_), so it is better to generate a list of symbols to export.
8290 always_export_symbols=yes
8291 if test "$aix_use_runtimelinking" = yes; then
8292 # Warning - without using the other runtime loading flags (-brtl),
8293 # -berok will link without error, but may produce a broken library.
8294 allow_undefined_flag='-berok'
8295 # Determine the default libpath from the value encoded in an empty executable.
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_link") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest$ac_exeext &&
8328 $as_test_x conftest$ac_exeext; then
8330 lt_aix_libpath_sed='
8331 /Import File Strings/,/^$/ {
8337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8338 # Check for a 64-bit object if we didn't find anything.
8339 if test -z "$aix_libpath"; then
8340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8350 conftest$ac_exeext conftest.$ac_ext
8351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8354 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8356 if test "$host_cpu" = ia64; then
8357 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8358 allow_undefined_flag="-z nodefs"
8359 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8361 # Determine the default libpath from the value encoded in an empty executable.
8362 cat >conftest.$ac_ext <<_ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_link") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest$ac_exeext &&
8394 $as_test_x conftest$ac_exeext; then
8396 lt_aix_libpath_sed='
8397 /Import File Strings/,/^$/ {
8403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 # Check for a 64-bit object if we didn't find anything.
8405 if test -z "$aix_libpath"; then
8406 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416 conftest$ac_exeext conftest.$ac_ext
8417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420 # Warning - without using the other run time loading flags,
8421 # -berok will link without error, but may produce a broken library.
8422 no_undefined_flag=' ${wl}-bernotok'
8423 allow_undefined_flag=' ${wl}-berok'
8424 # Exported symbols can be pulled into shared objects from archives
8425 whole_archive_flag_spec='$convenience'
8426 archive_cmds_need_lc=yes
8427 # This is similar to how AIX traditionally builds its shared libraries.
8428 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8434 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8435 hardcode_libdir_flag_spec='-L$libdir'
8436 hardcode_minus_L=yes
8437 # see comment about different semantics on the GNU ld section
8442 export_dynamic_flag_spec=-rdynamic
8445 cygwin* | mingw* | pw32*)
8446 # When not using gcc, we currently assume that we are using
8447 # Microsoft Visual C++.
8448 # hardcode_libdir_flag_spec is actually meaningless, as there is
8449 # no search path for DLLs.
8450 hardcode_libdir_flag_spec=' '
8451 allow_undefined_flag=unsupported
8452 # Tell ltmain to make .lib files, not .a files.
8454 # Tell ltmain to make .dll files, not .so files.
8456 # FIXME: Setting linknames here is a bad hack.
8457 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8458 # The linker will automatically build a .lib file if we build a DLL.
8459 old_archive_From_new_cmds='true'
8460 # FIXME: Should let the user specify the lib program.
8461 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8462 fix_srcfile_path='`cygpath -w "$srcfile"`'
8463 enable_shared_with_static_runtimes=yes
8466 darwin* | rhapsody*)
8468 rhapsody* | darwin1.[012])
8469 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8472 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8473 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8475 case ${MACOSX_DEPLOYMENT_TARGET} in
8477 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8480 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8486 archive_cmds_need_lc=no
8488 hardcode_automatic=yes
8489 hardcode_shlibpath_var=unsupported
8490 whole_archive_flag_spec=''
8491 link_all_deplibs=yes
8492 if test "$GCC" = yes ; then
8493 output_verbose_link_cmd='echo'
8494 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8495 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8496 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8497 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8499 case $cc_basename in
8501 output_verbose_link_cmd='echo'
8502 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8503 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8505 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8506 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}'
8516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517 hardcode_libdir_flag_spec='-L$libdir'
8518 hardcode_shlibpath_var=no
8525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8526 # support. Future versions do this automatically, but an explicit c++rt0.o
8527 # does not break anything, and helps significantly (at the cost of a little
8530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8531 hardcode_libdir_flag_spec='-R$libdir'
8533 hardcode_shlibpath_var=no
8536 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8540 hardcode_minus_L=yes
8541 hardcode_shlibpath_var=no
8544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8545 freebsd* | dragonfly*)
8546 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8547 hardcode_libdir_flag_spec='-R$libdir'
8549 hardcode_shlibpath_var=no
8553 if test "$GCC" = yes; then
8554 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8556 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8559 hardcode_libdir_separator=:
8562 # hardcode_minus_L: Not really in the search PATH,
8563 # but as the default location of the library.
8564 hardcode_minus_L=yes
8565 export_dynamic_flag_spec='${wl}-E'
8569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8574 if test "$with_gnu_ld" = no; then
8575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8576 hardcode_libdir_separator=:
8579 export_dynamic_flag_spec='${wl}-E'
8581 # hardcode_minus_L: Not really in the search PATH,
8582 # but as the default location of the library.
8583 hardcode_minus_L=yes
8588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8591 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8603 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8609 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8613 if test "$with_gnu_ld" = no; then
8614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8615 hardcode_libdir_separator=:
8619 hardcode_libdir_flag_spec_ld='+b $libdir'
8621 hardcode_shlibpath_var=no
8625 export_dynamic_flag_spec='${wl}-E'
8627 # hardcode_minus_L: Not really in the search PATH,
8628 # but as the default location of the library.
8629 hardcode_minus_L=yes
8635 irix5* | irix6* | nonstopux*)
8636 if test "$GCC" = yes; then
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8639 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8640 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 hardcode_libdir_separator=:
8644 link_all_deplibs=yes
8647 netbsd* | netbsdelf*-gnu)
8648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8651 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8653 hardcode_libdir_flag_spec='-R$libdir'
8655 hardcode_shlibpath_var=no
8659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8662 hardcode_libdir_separator=:
8663 hardcode_shlibpath_var=no
8667 if test -f /usr/libexec/ld.so; then
8669 hardcode_shlibpath_var=no
8670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8672 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674 export_dynamic_flag_spec='${wl}-E'
8677 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679 hardcode_libdir_flag_spec='-R$libdir'
8682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8693 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_minus_L=yes
8695 allow_undefined_flag=unsupported
8696 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8697 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8701 if test "$GCC" = yes; then
8702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8703 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8705 allow_undefined_flag=' -expect_unresolved \*'
8706 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 hardcode_libdir_separator=:
8712 osf4* | osf5*) # as osf3* with the addition of -msym flag
8713 if test "$GCC" = yes; then
8714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8715 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8718 allow_undefined_flag=' -expect_unresolved \*'
8719 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'
8720 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8721 $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'
8723 # Both c and cxx compiler support -rpath directly
8724 hardcode_libdir_flag_spec='-rpath $libdir'
8726 hardcode_libdir_separator=:
8730 no_undefined_flag=' -z text'
8731 if test "$GCC" = yes; then
8733 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8735 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8742 hardcode_libdir_flag_spec='-R$libdir'
8743 hardcode_shlibpath_var=no
8745 solaris2.[0-5] | solaris2.[0-5].*) ;;
8747 # The compiler driver will combine and reorder linker options,
8748 # but understands `-z linker_flag'. GCC discards it without `$wl',
8749 # but is careful enough not to reorder.
8750 # Supported since Solaris 2.6 (maybe 2.5.1?)
8751 if test "$GCC" = yes; then
8752 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8754 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8758 link_all_deplibs=yes
8762 if test "x$host_vendor" = xsequent; then
8763 # Use $CC to link under sequent, because it throws in some extra .o
8764 # files that make .init and .fini sections work.
8765 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8767 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_minus_L=yes
8772 hardcode_shlibpath_var=no
8776 case $host_vendor in
8778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_direct=yes # is this really true???
8782 ## LD is ld it makes a PLAMLIB
8783 ## CC just makes a GrossModule.
8784 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8785 reload_cmds='$CC -r -o $output$reload_objs'
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8793 runpath_var='LD_RUN_PATH'
8794 hardcode_shlibpath_var=no
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_shlibpath_var=no
8800 export_dynamic_flag_spec='-Bexport'
8804 if test -d /usr/nec; then
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_shlibpath_var=no
8807 runpath_var=LD_RUN_PATH
8808 hardcode_runpath_var=yes
8813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8814 no_undefined_flag='${wl}-z,text'
8815 archive_cmds_need_lc=no
8816 hardcode_shlibpath_var=no
8817 runpath_var='LD_RUN_PATH'
8819 if test "$GCC" = yes; then
8820 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8823 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 sysv5* | sco3.2v5* | sco5v6*)
8829 # Note: We can NOT use -z defs as we might desire, because we do not
8830 # link with -lc, and that would cause any symbols used from libc to
8831 # always be unresolved, which means just about no library would
8832 # ever link correctly. If we're not using GNU ld we use -z text
8833 # though, which does catch some bad symbols but isn't as heavy-handed
8835 no_undefined_flag='${wl}-z,text'
8836 allow_undefined_flag='${wl}-z,nodefs'
8837 archive_cmds_need_lc=no
8838 hardcode_shlibpath_var=no
8839 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8840 hardcode_libdir_separator=':'
8841 link_all_deplibs=yes
8842 export_dynamic_flag_spec='${wl}-Bexport'
8843 runpath_var='LD_RUN_PATH'
8845 if test "$GCC" = yes; then
8846 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856 hardcode_libdir_flag_spec='-L$libdir'
8857 hardcode_shlibpath_var=no
8866 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8867 echo "${ECHO_T}$ld_shlibs" >&6; }
8868 test "$ld_shlibs" = no && can_build_shared=no
8871 # Do we need to explicitly link libc?
8873 case "x$archive_cmds_need_lc" in
8875 # Assume -lc should be added
8876 archive_cmds_need_lc=yes
8878 if test "$enable_shared" = yes && test "$GCC" = yes; then
8879 case $archive_cmds in
8881 # FIXME: we may have to deal with multi-command sequences.
8884 # Test whether the compiler implicitly links with -lc since on some
8885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8886 # to ld, don't add -lc before -lgcc.
8887 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8888 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } 2>conftest.err; then
8899 libobjs=conftest.$ac_objext
8901 wl=$lt_prog_compiler_wl
8902 pic_flag=$lt_prog_compiler_pic
8908 lt_save_allow_undefined_flag=$allow_undefined_flag
8909 allow_undefined_flag=
8910 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8911 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }
8916 archive_cmds_need_lc=no
8918 archive_cmds_need_lc=yes
8920 allow_undefined_flag=$lt_save_allow_undefined_flag
8922 cat conftest.err 1>&5
8925 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8926 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8933 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8934 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8936 libname_spec='lib$name'
8944 shlibpath_overrides_runpath=unknown
8946 dynamic_linker="$host_os ld.so"
8947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8949 if test "$GCC" = yes; then
8951 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8952 *) lt_awk_arg="/^libraries:/" ;;
8954 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8955 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8956 # if the path contains ";" then we assume it to be the separator
8957 # otherwise default to the standard path separator (i.e. ":") - it is
8958 # assumed that no part of a normal pathname contains ";" but that should
8959 # okay in the real world where ";" in dirpaths is itself problematic.
8960 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8962 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8964 # Ok, now we have the path, separated by spaces, we can step through it
8965 # and add multilib dir if necessary.
8966 lt_tmp_lt_search_path_spec=
8967 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8968 for lt_sys_path in $lt_search_path_spec; do
8969 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8970 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8972 test -d "$lt_sys_path" && \
8973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8976 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8977 BEGIN {RS=" "; FS="/|\n";} {
8980 for (lt_i = NF; lt_i > 0; lt_i--) {
8981 if ($lt_i != "" && $lt_i != ".") {
8982 if ($lt_i == "..") {
8985 if (lt_count == 0) {
8986 lt_foo="/" $lt_i lt_foo;
8993 if (lt_foo != "") { lt_freq[lt_foo]++; }
8994 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8996 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9000 need_lib_prefix=unknown
9001 hardcode_into_libs=no
9003 # when you set need_version to no, make sure it does not cause -set_version
9004 # flags to be left without arguments
9005 need_version=unknown
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9011 shlibpath_var=LIBPATH
9013 # AIX 3 has no versioning support, so we append a major version to the name.
9014 soname_spec='${libname}${release}${shared_ext}$major'
9021 hardcode_into_libs=yes
9022 if test "$host_cpu" = ia64; then
9023 # AIX 5 supports IA64
9024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9025 shlibpath_var=LD_LIBRARY_PATH
9027 # With GCC up to 2.95.x, collect2 would create an import file
9028 # for dependence libraries. The import file would start with
9029 # the line `#! .'. This would cause the generated library to
9030 # depend on `.', always an invalid library. This was fixed in
9031 # development snapshots of GCC prior to 3.0.
9033 aix4 | aix4.[01] | aix4.[01].*)
9034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9036 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9044 # soname into executable. Probably we can add versioning support to
9045 # collect2, so additional links can be useful in future.
9046 if test "$aix_use_runtimelinking" = yes; then
9047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9048 # instead of lib<name>.a to let people know that these are not
9049 # typical AIX shared libraries.
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 # We preserve .a as extension for shared libraries through AIX4.2
9053 # and later when we are not doing run time linking.
9054 library_names_spec='${libname}${release}.a $libname.a'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LIBPATH
9062 library_names_spec='$libname.ixlibrary $libname.a'
9063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9064 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9068 library_names_spec='${libname}${shared_ext}'
9069 dynamic_linker="$host_os ld.so"
9070 shlibpath_var=LIBRARY_PATH
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9082 # the default ld.so.conf also contains /usr/contrib/lib and
9083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9084 # libtool to hard-code these into programs
9087 cygwin* | mingw* | pw32*)
9088 version_type=windows
9093 case $GCC,$host_os in
9094 yes,cygwin* | yes,mingw* | yes,pw32*)
9095 library_names_spec='$libname.dll.a'
9096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9097 postinstall_cmds='base_file=`basename \${file}`~
9098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9099 dldir=$destdir/`dirname \$dlpath`~
9100 test -d \$dldir || mkdir -p \$dldir~
9101 $install_prog $dir/$dlname \$dldir/$dlname~
9102 chmod a+x \$dldir/$dlname'
9103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9104 dlpath=$dir/\$dldll~
9106 shlibpath_overrides_runpath=yes
9110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9115 # MinGW DLLs use traditional 'lib' prefix
9116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9118 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9119 # It is most probably a Windows format PATH printed by
9120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9121 # path with ; separators, and with drive letters. We can handle the
9122 # drive letters (cygwin fileutils understands them), so leave them,
9123 # especially as we might pass files found there to a mingw objdump,
9124 # which wouldn't understand a cygwinified path. Ahh.
9125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9131 # pw32 DLLs use 'pw' prefix rather than 'lib'
9132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9141 dynamic_linker='Win32 ld.exe'
9142 # FIXME: first we should search . and the directory the executable is in
9146 darwin* | rhapsody*)
9147 dynamic_linker="$host_os dyld"
9151 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9152 soname_spec='${libname}${release}${major}$shared_ext'
9153 shlibpath_overrides_runpath=yes
9154 shlibpath_var=DYLD_LIBRARY_PATH
9155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9174 freebsd* | dragonfly*)
9175 # DragonFly does not have aout. When/if they implement a new
9176 # versioning mechanism, adjust this.
9177 if test -x /usr/bin/objformat; then
9178 objformat=`/usr/bin/objformat`
9181 freebsd[123]*) objformat=aout ;;
9185 version_type=freebsd-$objformat
9186 case $version_type in
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9197 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9202 freebsd3.[01]* | freebsdelf3.[01]*)
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9208 shlibpath_overrides_runpath=no
9209 hardcode_into_libs=yes
9211 *) # from 4.6 on, and DragonFly
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 hardcode_into_libs=yes
9228 hpux9* | hpux10* | hpux11*)
9229 # Give a soname corresponding to the major version so that dld.sl refuses to
9230 # link against other versions.
9237 hardcode_into_libs=yes
9238 dynamic_linker="$host_os dld.so"
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 soname_spec='${libname}${release}${shared_ext}$major'
9243 if test "X$HPUX_IA64_MODE" = X32; then
9244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9252 hardcode_into_libs=yes
9253 dynamic_linker="$host_os dld.sl"
9254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9263 dynamic_linker="$host_os dld.sl"
9264 shlibpath_var=SHLIB_PATH
9265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9271 postinstall_cmds='chmod 555 $lib'
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 shlibpath_overrides_runpath=no
9283 hardcode_into_libs=yes
9286 irix5* | irix6* | nonstopux*)
9288 nonstopux*) version_type=nonstopux ;;
9290 if test "$lt_cv_prog_gnu_ld" = yes; then
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 irix5* | nonstopux*)
9305 case $LD in # libtool.m4 will add one of these switches to LD
9306 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9307 libsuff= shlibsuff= libmagic=32-bit;;
9308 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9309 libsuff=32 shlibsuff=N32 libmagic=N32;;
9310 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9311 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9312 *) libsuff= shlibsuff= libmagic=never-match;;
9316 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9317 shlibpath_overrides_runpath=no
9318 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9319 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9320 hardcode_into_libs=yes
9323 # No shared lib support for Linux oldld, aout, or coff.
9324 linux*oldld* | linux*aout* | linux*coff*)
9328 # This must be Linux ELF.
9329 linux* | k*bsd*-gnu)
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 shlibpath_overrides_runpath=no
9338 # This implies no fast_install, which is unacceptable.
9339 # Some rework will be needed to allow for fast_install
9340 # before this can be enabled.
9341 hardcode_into_libs=yes
9343 # Append ld.so.conf contents to the search path
9344 if test -f /etc/ld.so.conf; then
9345 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9349 # We used to test for /lib/ld.so.1 and disable shared libraries on
9350 # powerpc, because MkLinux only supported shared libraries with the
9351 # GNU dynamic linker. Since this was broken with cross compilers,
9352 # most powerpc-linux boxes support dynamic linking these days and
9353 # people can always --disable-shared, the test was removed, and we
9354 # assume the GNU/Linux dynamic linker is in use.
9355 dynamic_linker='GNU/Linux ld.so'
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 shlibpath_overrides_runpath=no
9366 hardcode_into_libs=yes
9367 dynamic_linker='NetBSD ld.elf_so'
9374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9377 dynamic_linker='NetBSD (a.out) ld.so'
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 dynamic_linker='NetBSD ld.elf_so'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9385 hardcode_into_libs=yes
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 shlibpath_overrides_runpath=yes
9407 sys_lib_dlsearch_path_spec="/usr/lib"
9409 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9411 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9412 *) need_version=no ;;
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9419 openbsd2.[89] | openbsd2.[89].*)
9420 shlibpath_overrides_runpath=no
9423 shlibpath_overrides_runpath=yes
9427 shlibpath_overrides_runpath=yes
9432 libname_spec='$name'
9435 library_names_spec='$libname${shared_ext} $libname.a'
9436 dynamic_linker='OS/2 ld.exe'
9437 shlibpath_var=LIBPATH
9440 osf3* | osf4* | osf5*)
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9448 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=yes
9463 hardcode_into_libs=yes
9464 # ldd complains unless libraries are executable
9465 postinstall_cmds='chmod +x $lib'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 shlibpath_overrides_runpath=yes
9474 if test "$with_gnu_ld" = yes; then
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 case $host_vendor in
9487 shlibpath_overrides_runpath=no
9489 export_dynamic_flag_spec='${wl}-Blargedynsym'
9490 runpath_var=LD_RUN_PATH
9498 shlibpath_overrides_runpath=no
9499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9505 if test -d /usr/nec ;then
9507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9508 soname_spec='$libname${shared_ext}.$major'
9509 shlibpath_var=LD_LIBRARY_PATH
9513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9514 version_type=freebsd-elf
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 hardcode_into_libs=yes
9521 if test "$with_gnu_ld" = yes; then
9522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9523 shlibpath_overrides_runpath=no
9525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9526 shlibpath_overrides_runpath=yes
9529 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9533 sys_lib_dlsearch_path_spec='/usr/lib'
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 shlibpath_var=LD_LIBRARY_PATH
9547 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9548 echo "${ECHO_T}$dynamic_linker" >&6; }
9549 test "$dynamic_linker" = no && can_build_shared=no
9551 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9557 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9567 if test "$GCC" = yes; then
9568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9571 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9572 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9574 if test -n "$hardcode_libdir_flag_spec" || \
9575 test -n "$runpath_var" || \
9576 test "X$hardcode_automatic" = "Xyes" ; then
9578 # We can hardcode non-existant directories.
9579 if test "$hardcode_direct" != no &&
9580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9581 # have to relink, otherwise we might link with an installed library
9582 # when we should be linking with a yet-to-be-installed one
9583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9584 test "$hardcode_minus_L" != no; then
9585 # Linking always hardcodes the temporary library directory.
9586 hardcode_action=relink
9588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9589 hardcode_action=immediate
9592 # We cannot hardcode anything, or else we can only hardcode existing
9594 hardcode_action=unsupported
9596 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9597 echo "${ECHO_T}$hardcode_action" >&6; }
9599 if test "$hardcode_action" = relink; then
9600 # Fast installation is not supported
9601 enable_fast_install=no
9602 elif test "$shlibpath_overrides_runpath" = yes ||
9603 test "$enable_shared" = no; then
9604 # Fast installation is not necessary
9605 enable_fast_install=needless
9610 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9611 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9612 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9613 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9614 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9615 { echo "$as_me:$LINENO: result: yes" >&5
9616 echo "${ECHO_T}yes" >&6; }
9618 # FIXME - insert some real tests, host_os isn't really good enough
9621 if test -n "$STRIP" ; then
9622 striplib="$STRIP -x"
9623 old_striplib="$STRIP -S"
9624 { echo "$as_me:$LINENO: result: yes" >&5
9625 echo "${ECHO_T}yes" >&6; }
9627 { echo "$as_me:$LINENO: result: no" >&5
9628 echo "${ECHO_T}no" >&6; }
9632 { echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6; }
9638 if test "x$enable_dlopen" != xyes; then
9639 enable_dlopen=unknown
9640 enable_dlopen_self=unknown
9641 enable_dlopen_self_static=unknown
9648 lt_cv_dlopen="load_add_on"
9650 lt_cv_dlopen_self=yes
9654 lt_cv_dlopen="LoadLibrary"
9659 lt_cv_dlopen="dlopen"
9664 # if libdl is installed we need to link against it
9665 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 ac_check_lib_save_LIBS=$LIBS
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>conftest.er1
9703 grep -v '^ *+' conftest.er1 >conftest.err
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest$ac_exeext &&
9711 $as_test_x conftest$ac_exeext; then
9712 ac_cv_lib_dl_dlopen=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_cv_lib_dl_dlopen=no
9720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9721 conftest$ac_exeext conftest.$ac_ext
9722 LIBS=$ac_check_lib_save_LIBS
9724 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9726 if test $ac_cv_lib_dl_dlopen = yes; then
9727 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9732 lt_cv_dlopen_self=yes
9739 { echo "$as_me:$LINENO: checking for shl_load" >&5
9740 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9741 if test "${ac_cv_func_shl_load+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9752 #define shl_load innocuous_shl_load
9754 /* System header to define __stub macros and hopefully few prototypes,
9755 which can conflict with char shl_load (); below.
9756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9757 <limits.h> exists even on freestanding compilers. */
9760 # include <limits.h>
9762 # include <assert.h>
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9774 /* The GNU C library defines this for functions which it implements
9775 to always fail with ENOSYS. Some functions are actually named
9776 something starting with __ and the normal name is an alias. */
9777 #if defined __stub_shl_load || defined __stub___shl_load
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && {
9803 test -z "$ac_c_werror_flag" ||
9804 test ! -s conftest.err
9805 } && test -s conftest$ac_exeext &&
9806 $as_test_x conftest$ac_exeext; then
9807 ac_cv_func_shl_load=yes
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_cv_func_shl_load=no
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816 conftest$ac_exeext conftest.$ac_ext
9818 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9819 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9820 if test $ac_cv_func_shl_load = yes; then
9821 lt_cv_dlopen="shl_load"
9823 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9824 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9825 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 ac_check_lib_save_LIBS=$LIBS
9830 cat >conftest.$ac_ext <<_ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9837 /* Override any GCC internal prototype to avoid an error.
9838 Use char because int might match the return type of a GCC
9839 builtin and then its argument prototype would still apply. */
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (ac_try="$ac_link"
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_link") 2>conftest.er1
9861 grep -v '^ *+' conftest.er1 >conftest.err
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest$ac_exeext &&
9869 $as_test_x conftest$ac_exeext; then
9870 ac_cv_lib_dld_shl_load=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_cv_lib_dld_shl_load=no
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9883 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9884 if test $ac_cv_lib_dld_shl_load = yes; then
9885 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9887 { echo "$as_me:$LINENO: checking for dlopen" >&5
9888 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9889 if test "${ac_cv_func_dlopen+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9900 #define dlopen innocuous_dlopen
9902 /* System header to define __stub macros and hopefully few prototypes,
9903 which can conflict with char dlopen (); below.
9904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9905 <limits.h> exists even on freestanding compilers. */
9908 # include <limits.h>
9910 # include <assert.h>
9915 /* Override any GCC internal prototype to avoid an error.
9916 Use char because int might match the return type of a GCC
9917 builtin and then its argument prototype would still apply. */
9922 /* The GNU C library defines this for functions which it implements
9923 to always fail with ENOSYS. Some functions are actually named
9924 something starting with __ and the normal name is an alias. */
9925 #if defined __stub_dlopen || defined __stub___dlopen
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_link") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1 >conftest.err
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest$ac_exeext &&
9954 $as_test_x conftest$ac_exeext; then
9955 ac_cv_func_dlopen=yes
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_func_dlopen=no
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964 conftest$ac_exeext conftest.$ac_ext
9966 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9967 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9968 if test $ac_cv_func_dlopen = yes; then
9969 lt_cv_dlopen="dlopen"
9971 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9972 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 ac_check_lib_save_LIBS=$LIBS
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_link") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext &&
10017 $as_test_x conftest$ac_exeext; then
10018 ac_cv_lib_dl_dlopen=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_cv_lib_dl_dlopen=no
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10032 if test $ac_cv_lib_dl_dlopen = yes; then
10033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10035 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10036 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10037 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-lsvld $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_link") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext &&
10081 $as_test_x conftest$ac_exeext; then
10082 ac_cv_lib_svld_dlopen=yes
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_cv_lib_svld_dlopen=no
10090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10094 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10096 if test $ac_cv_lib_svld_dlopen = yes; then
10097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10099 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 ac_check_lib_save_LIBS=$LIBS
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10113 /* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
10123 return dld_link ();
10128 rm -f conftest.$ac_objext conftest$ac_exeext
10129 if { (ac_try="$ac_link"
10130 case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_link") 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } && {
10142 test -z "$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10144 } && test -s conftest$ac_exeext &&
10145 $as_test_x conftest$ac_exeext; then
10146 ac_cv_lib_dld_dld_link=yes
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_cv_lib_dld_dld_link=no
10154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10159 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10160 if test $ac_cv_lib_dld_dld_link = yes; then
10161 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10182 if test "x$lt_cv_dlopen" != xno; then
10188 case $lt_cv_dlopen in
10190 save_CPPFLAGS="$CPPFLAGS"
10191 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10193 save_LDFLAGS="$LDFLAGS"
10194 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10197 LIBS="$lt_cv_dlopen_libs $LIBS"
10199 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10200 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10201 if test "${lt_cv_dlopen_self+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 if test "$cross_compiling" = yes; then :
10205 lt_cv_dlopen_self=cross
10207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10208 lt_status=$lt_dlunknown
10209 cat > conftest.$ac_ext <<EOF
10210 #line 10210 "configure"
10211 #include "confdefs.h"
10220 # define LT_DLGLOBAL RTLD_GLOBAL
10223 # define LT_DLGLOBAL DL_GLOBAL
10225 # define LT_DLGLOBAL 0
10229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10230 find out it does not work in some platform. */
10231 #ifndef LT_DLLAZY_OR_NOW
10233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10236 # define LT_DLLAZY_OR_NOW DL_LAZY
10239 # define LT_DLLAZY_OR_NOW RTLD_NOW
10242 # define LT_DLLAZY_OR_NOW DL_NOW
10244 # define LT_DLLAZY_OR_NOW 0
10252 extern "C" void exit (int);
10255 void fnord() { int i=42;}
10258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10259 int status = $lt_dlunknown;
10263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10265 /* dlclose (self); */
10273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10274 (eval $ac_link) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10278 (./conftest; exit; ) >&5 2>/dev/null
10280 case x$lt_status in
10281 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10282 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10283 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10286 # compilation failed
10287 lt_cv_dlopen_self=no
10294 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10295 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10297 if test "x$lt_cv_dlopen_self" = xyes; then
10298 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10299 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self_static+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 if test "$cross_compiling" = yes; then :
10305 lt_cv_dlopen_self_static=cross
10307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308 lt_status=$lt_dlunknown
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10320 # define LT_DLGLOBAL RTLD_GLOBAL
10323 # define LT_DLGLOBAL DL_GLOBAL
10325 # define LT_DLGLOBAL 0
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330 find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10336 # define LT_DLLAZY_OR_NOW DL_LAZY
10339 # define LT_DLLAZY_OR_NOW RTLD_NOW
10342 # define LT_DLLAZY_OR_NOW DL_NOW
10344 # define LT_DLLAZY_OR_NOW 0
10352 extern "C" void exit (int);
10355 void fnord() { int i=42;}
10358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359 int status = $lt_dlunknown;
10363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365 /* dlclose (self); */
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378 (./conftest; exit; ) >&5 2>/dev/null
10380 case x$lt_status in
10381 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10382 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10383 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10386 # compilation failed
10387 lt_cv_dlopen_self_static=no
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10398 CPPFLAGS="$save_CPPFLAGS"
10399 LDFLAGS="$save_LDFLAGS"
10404 case $lt_cv_dlopen_self in
10405 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10406 *) enable_dlopen_self=unknown ;;
10409 case $lt_cv_dlopen_self_static in
10410 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10411 *) enable_dlopen_self_static=unknown ;;
10416 # Report which library types will actually be built
10417 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10418 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10419 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10420 echo "${ECHO_T}$can_build_shared" >&6; }
10422 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10423 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10424 test "$can_build_shared" = "no" && enable_shared=no
10426 # On AIX, shared libraries and static libraries use the same namespace, and
10427 # are all built from PIC.
10430 test "$enable_shared" = yes && enable_static=no
10431 if test -n "$RANLIB"; then
10432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10433 postinstall_cmds='$RANLIB $lib'
10438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10439 test "$enable_shared" = yes && enable_static=no
10443 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10444 echo "${ECHO_T}$enable_shared" >&6; }
10446 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10448 # Make sure either enable_shared or enable_static is yes.
10449 test "$enable_shared" = yes || enable_static=yes
10450 { echo "$as_me:$LINENO: result: $enable_static" >&5
10451 echo "${ECHO_T}$enable_static" >&6; }
10453 # The else clause should only fire when bootstrapping the
10454 # libtool distribution, otherwise you forgot to ship ltmain.sh
10455 # with your package, and you will get complaints that there are
10456 # no rules to generate ltmain.sh.
10457 if test -f "$ltmain"; then
10458 # See if we are running on zsh, and set the options which allow our commands through
10459 # without removal of \ escapes.
10460 if test -n "${ZSH_VERSION+set}" ; then
10461 setopt NO_GLOB_SUBST
10463 # Now quote all the things that may contain metacharacters while being
10464 # careful not to overquote the AC_SUBSTed values. We take copies of the
10465 # variables and quote the copies for generation of the libtool script.
10466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10468 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10469 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10470 deplibs_check_method reload_flag reload_cmds need_locks \
10471 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10472 lt_cv_sys_global_symbol_to_c_name_address \
10473 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10474 old_postinstall_cmds old_postuninstall_cmds \
10478 lt_prog_compiler_wl \
10479 lt_prog_compiler_pic \
10480 lt_prog_compiler_static \
10481 lt_prog_compiler_no_builtin_flag \
10482 export_dynamic_flag_spec \
10483 thread_safe_flag_spec \
10484 whole_archive_flag_spec \
10485 enable_shared_with_static_runtimes \
10487 old_archive_from_new_cmds \
10492 compiler_lib_search_path \
10493 compiler_lib_search_dirs \
10495 archive_expsym_cmds \
10497 postuninstall_cmds \
10498 old_archive_from_expsyms_cmds \
10499 allow_undefined_flag \
10500 no_undefined_flag \
10501 export_symbols_cmds \
10502 hardcode_libdir_flag_spec \
10503 hardcode_libdir_flag_spec_ld \
10504 hardcode_libdir_separator \
10505 hardcode_automatic \
10507 module_expsym_cmds \
10508 lt_cv_prog_compiler_c_o \
10511 include_expsyms; do
10514 old_archive_cmds | \
10515 old_archive_from_new_cmds | \
10517 archive_expsym_cmds | \
10519 module_expsym_cmds | \
10520 old_archive_from_expsyms_cmds | \
10521 export_symbols_cmds | \
10522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10523 postinstall_cmds | postuninstall_cmds | \
10524 old_postinstall_cmds | old_postuninstall_cmds | \
10525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10526 # Double-quote double-evaled strings.
10527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10536 *'\$0 --fallback-echo"')
10537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10541 cfgfile="${ofile}T"
10542 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10544 { echo "$as_me:$LINENO: creating $ofile" >&5
10545 echo "$as_me: creating $ofile" >&6;}
10547 cat <<__EOF__ >> "$cfgfile"
10550 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10551 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10552 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10554 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10555 # Free Software Foundation, Inc.
10557 # This file is part of GNU Libtool:
10558 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10560 # This program is free software; you can redistribute it and/or modify
10561 # it under the terms of the GNU General Public License as published by
10562 # the Free Software Foundation; either version 2 of the License, or
10563 # (at your option) any later version.
10565 # This program is distributed in the hope that it will be useful, but
10566 # WITHOUT ANY WARRANTY; without even the implied warranty of
10567 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10568 # General Public License for more details.
10570 # You should have received a copy of the GNU General Public License
10571 # along with this program; if not, write to the Free Software
10572 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10574 # As a special exception to the GNU General Public License, if you
10575 # distribute this file as part of a program that contains a
10576 # configuration script generated by Autoconf, you may include it under
10577 # the same distribution terms that you use for the rest of that program.
10579 # A sed program that does not truncate output.
10582 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10583 Xsed="$SED -e 1s/^X//"
10585 # The HP-UX ksh and POSIX shell print the target directory to stdout
10586 # if CDPATH is set.
10587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10589 # The names of the tagged configurations supported by this script.
10592 # ### BEGIN LIBTOOL CONFIG
10594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10596 # Shell to use when invoking shell scripts.
10599 # Whether or not to build shared libraries.
10600 build_libtool_libs=$enable_shared
10602 # Whether or not to build static libraries.
10603 build_old_libs=$enable_static
10605 # Whether or not to add -lc for building shared libraries.
10606 build_libtool_need_lc=$archive_cmds_need_lc
10608 # Whether or not to disallow shared libs when runtime libs are static
10609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10611 # Whether or not to optimize for fast installation.
10612 fast_install=$enable_fast_install
10615 host_alias=$host_alias
10619 # The build system.
10620 build_alias=$build_alias
10624 # An echo program that does not interpret backslashes.
10629 AR_FLAGS=$lt_AR_FLAGS
10634 # LTCC compiler flags.
10635 LTCFLAGS=$lt_LTCFLAGS
10637 # A language-specific compiler.
10640 # Is the compiler the GNU C compiler?
10646 # The linker used to build libraries.
10649 # Whether we need hard or soft links.
10652 # A BSD-compatible nm program.
10655 # A symbol stripping program
10658 # Used to examine libraries when file_magic_cmd begins "file"
10659 MAGIC_CMD=$MAGIC_CMD
10661 # Used on cygwin: DLL creation program.
10664 # Used on cygwin: object dumper.
10667 # Used on cygwin: assembler.
10670 # The name of the directory that contains temporary libtool files.
10673 # How to create reloadable object files.
10674 reload_flag=$lt_reload_flag
10675 reload_cmds=$lt_reload_cmds
10677 # How to pass a linker flag through the compiler.
10678 wl=$lt_lt_prog_compiler_wl
10680 # Object file suffix (normally "o").
10681 objext="$ac_objext"
10683 # Old archive suffix (normally "a").
10686 # Shared library suffix (normally ".so").
10687 shrext_cmds='$shrext_cmds'
10689 # Executable file suffix (normally "").
10692 # Additional compiler flags for building library objects.
10693 pic_flag=$lt_lt_prog_compiler_pic
10696 # What is the maximum length of a command?
10697 max_cmd_len=$lt_cv_sys_max_cmd_len
10699 # Does compiler simultaneously support -c and -o options?
10700 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10702 # Must we lock files when doing compilation?
10703 need_locks=$lt_need_locks
10705 # Do we need the lib prefix for modules?
10706 need_lib_prefix=$need_lib_prefix
10708 # Do we need a version for libraries?
10709 need_version=$need_version
10711 # Whether dlopen is supported.
10712 dlopen_support=$enable_dlopen
10714 # Whether dlopen of programs is supported.
10715 dlopen_self=$enable_dlopen_self
10717 # Whether dlopen of statically linked programs is supported.
10718 dlopen_self_static=$enable_dlopen_self_static
10720 # Compiler flag to prevent dynamic linking.
10721 link_static_flag=$lt_lt_prog_compiler_static
10723 # Compiler flag to turn off builtin functions.
10724 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10726 # Compiler flag to allow reflexive dlopens.
10727 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10729 # Compiler flag to generate shared objects directly from archives.
10730 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10732 # Compiler flag to generate thread-safe objects.
10733 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10735 # Library versioning type.
10736 version_type=$version_type
10738 # Format of library name prefix.
10739 libname_spec=$lt_libname_spec
10741 # List of archive names. First name is the real one, the rest are links.
10742 # The last name is the one that the linker finds with -lNAME.
10743 library_names_spec=$lt_library_names_spec
10745 # The coded name of the library, if different from the real name.
10746 soname_spec=$lt_soname_spec
10748 # Commands used to build and install an old-style archive.
10750 old_archive_cmds=$lt_old_archive_cmds
10751 old_postinstall_cmds=$lt_old_postinstall_cmds
10752 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10754 # Create an old-style archive from a shared archive.
10755 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10757 # Create a temporary old-style archive to link instead of a shared archive.
10758 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10760 # Commands used to build and install a shared archive.
10761 archive_cmds=$lt_archive_cmds
10762 archive_expsym_cmds=$lt_archive_expsym_cmds
10763 postinstall_cmds=$lt_postinstall_cmds
10764 postuninstall_cmds=$lt_postuninstall_cmds
10766 # Commands used to build a loadable module (assumed same as above if empty)
10767 module_cmds=$lt_module_cmds
10768 module_expsym_cmds=$lt_module_expsym_cmds
10770 # Commands to strip libraries.
10771 old_striplib=$lt_old_striplib
10772 striplib=$lt_striplib
10774 # Dependencies to place before the objects being linked to create a
10776 predep_objects=$lt_predep_objects
10778 # Dependencies to place after the objects being linked to create a
10780 postdep_objects=$lt_postdep_objects
10782 # Dependencies to place before the objects being linked to create a
10784 predeps=$lt_predeps
10786 # Dependencies to place after the objects being linked to create a
10788 postdeps=$lt_postdeps
10790 # The directories searched by this compiler when creating a shared
10792 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10794 # The library search path used internally by the compiler when linking
10795 # a shared library.
10796 compiler_lib_search_path=$lt_compiler_lib_search_path
10798 # Method to check whether dependent libraries are shared objects.
10799 deplibs_check_method=$lt_deplibs_check_method
10801 # Command to use when deplibs_check_method == file_magic.
10802 file_magic_cmd=$lt_file_magic_cmd
10804 # Flag that allows shared libraries with undefined symbols to be built.
10805 allow_undefined_flag=$lt_allow_undefined_flag
10807 # Flag that forces no undefined symbols.
10808 no_undefined_flag=$lt_no_undefined_flag
10810 # Commands used to finish a libtool library installation in a directory.
10811 finish_cmds=$lt_finish_cmds
10813 # Same as above, but a single script fragment to be evaled but not shown.
10814 finish_eval=$lt_finish_eval
10816 # Take the output of nm and produce a listing of raw symbols and C names.
10817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10819 # Transform the output of nm in a proper C declaration
10820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10822 # Transform the output of nm in a C name address pair
10823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10825 # This is the shared library runtime path variable.
10826 runpath_var=$runpath_var
10828 # This is the shared library path variable.
10829 shlibpath_var=$shlibpath_var
10831 # Is shlibpath searched before the hard-coded library search path?
10832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10834 # How to hardcode a shared library path into an executable.
10835 hardcode_action=$hardcode_action
10837 # Whether we should hardcode library paths into libraries.
10838 hardcode_into_libs=$hardcode_into_libs
10840 # Flag to hardcode \$libdir into a binary during linking.
10841 # This must work even if \$libdir does not exist.
10842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10844 # If ld is used when linking, flag to hardcode \$libdir into
10845 # a binary during linking. This must work even if \$libdir does
10847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10849 # Whether we need a single -rpath flag with a separated argument.
10850 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10853 # resulting binary.
10854 hardcode_direct=$hardcode_direct
10856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10857 # resulting binary.
10858 hardcode_minus_L=$hardcode_minus_L
10860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10861 # the resulting binary.
10862 hardcode_shlibpath_var=$hardcode_shlibpath_var
10864 # Set to yes if building a shared library automatically hardcodes DIR into the library
10865 # and all subsequent libraries and executables linked against it.
10866 hardcode_automatic=$hardcode_automatic
10868 # Variables whose values should be saved in libtool wrapper scripts and
10869 # restored at relink time.
10870 variables_saved_for_relink="$variables_saved_for_relink"
10872 # Whether libtool must link a program against all its dependency libraries.
10873 link_all_deplibs=$link_all_deplibs
10875 # Compile-time system search path for libraries
10876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10878 # Run-time system search path for libraries
10879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10881 # Fix the shell variable \$srcfile for the compiler.
10882 fix_srcfile_path=$lt_fix_srcfile_path
10884 # Set to yes if exported symbols are required.
10885 always_export_symbols=$always_export_symbols
10887 # The commands to list exported symbols.
10888 export_symbols_cmds=$lt_export_symbols_cmds
10890 # The commands to extract the exported symbol list from a shared archive.
10891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10893 # Symbols that should not be listed in the preloaded symbols.
10894 exclude_expsyms=$lt_exclude_expsyms
10896 # Symbols that must always be exported.
10897 include_expsyms=$lt_include_expsyms
10899 # ### END LIBTOOL CONFIG
10906 cat <<\EOF >> "$cfgfile"
10908 # AIX sometimes has problems with the GCC collect2 program. For some
10909 # reason, if we set the COLLECT_NAMES environment variable, the problems
10910 # vanish in a puff of smoke.
10911 if test "X${COLLECT_NAMES+set}" != Xset; then
10913 export COLLECT_NAMES
10919 # We use sed instead of cat because bash on DJGPP gets confused if
10920 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10921 # text mode, it properly converts lines to CR/LF. This bash problem
10922 # is reportedly fixed, but why not run on old versions too?
10923 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10925 mv -f "$cfgfile" "$ofile" || \
10926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10930 # If there is no Makefile yet, we rely on a make rule to execute
10931 # `config.status --recheck' to rerun these tests and create the
10932 # libtool script then.
10933 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10934 if test -f "$ltmain_in"; then
10935 test -f Makefile && make "$ltmain"
10941 ac_cpp='$CXXCPP $CPPFLAGS'
10942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10949 # Check whether --with-tags was given.
10950 if test "${with_tags+set}" = set; then
10951 withval=$with_tags; tagnames="$withval"
10955 if test -f "$ltmain" && test -n "$tagnames"; then
10956 if test ! -f "${ofile}"; then
10957 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10958 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10961 if test -z "$LTCC"; then
10962 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10963 if test -z "$LTCC"; then
10964 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10965 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10968 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10971 if test -z "$LTCFLAGS"; then
10972 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10975 # Extract list of available tagged configurations in $ofile.
10976 # Note that this assumes the entire list is on one line.
10977 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10980 for tagname in $tagnames; do
10982 # Check whether tagname contains only valid characters
10983 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10985 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10986 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10987 { (exit 1); exit 1; }; }
10991 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10993 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10994 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10995 { (exit 1); exit 1; }; }
10998 # Update the list of available tags.
10999 if test -n "$tagname"; then
11000 echo appending configuration tag \"$tagname\" to $ofile
11004 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11005 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11006 (test "X$CXX" != "Xg++"))) ; then
11008 ac_cpp='$CXXCPP $CPPFLAGS'
11009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11016 archive_cmds_need_lc_CXX=no
11017 allow_undefined_flag_CXX=
11018 always_export_symbols_CXX=no
11019 archive_expsym_cmds_CXX=
11020 export_dynamic_flag_spec_CXX=
11021 hardcode_direct_CXX=no
11022 hardcode_libdir_flag_spec_CXX=
11023 hardcode_libdir_flag_spec_ld_CXX=
11024 hardcode_libdir_separator_CXX=
11025 hardcode_minus_L_CXX=no
11026 hardcode_shlibpath_var_CXX=unsupported
11027 hardcode_automatic_CXX=no
11029 module_expsym_cmds_CXX=
11030 link_all_deplibs_CXX=unknown
11031 old_archive_cmds_CXX=$old_archive_cmds
11032 no_undefined_flag_CXX=
11033 whole_archive_flag_spec_CXX=
11034 enable_shared_with_static_runtimes_CXX=no
11036 # Dependencies to place before and after the object being linked:
11037 predep_objects_CXX=
11038 postdep_objects_CXX=
11041 compiler_lib_search_path_CXX=
11042 compiler_lib_search_dirs_CXX=
11044 # Source file extension for C++ test sources.
11047 # Object file extension for compiled C++ test sources.
11051 # Code to be used in simple compile tests
11052 lt_simple_compile_test_code="int some_variable = 0;"
11054 # Code to be used in simple link tests
11055 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11057 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11059 # If no C compiler was specified, use CC.
11062 # If no C compiler flags were specified, use CFLAGS.
11063 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11065 # Allow CC to be a program name with arguments.
11069 # save warnings/boilerplate of simple test code
11070 ac_outfile=conftest.$ac_objext
11071 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11072 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11073 _lt_compiler_boilerplate=`cat conftest.err`
11076 ac_outfile=conftest.$ac_objext
11077 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11078 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11079 _lt_linker_boilerplate=`cat conftest.err`
11083 # Allow CC to be a program name with arguments.
11088 lt_save_with_gnu_ld=$with_gnu_ld
11089 lt_save_path_LD=$lt_cv_path_LD
11090 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11091 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11093 $as_unset lt_cv_prog_gnu_ld
11095 if test -n "${lt_cv_path_LDCXX+set}"; then
11096 lt_cv_path_LD=$lt_cv_path_LDCXX
11098 $as_unset lt_cv_path_LD
11100 test -z "${LDCXX+set}" || LD=$LDCXX
11104 for cc_temp in $compiler""; do
11106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11115 # We don't want -fno-exception wen compiling C++ code, so set the
11116 # no_builtin_flag separately
11117 if test "$GXX" = yes; then
11118 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11120 lt_prog_compiler_no_builtin_flag_CXX=
11123 if test "$GXX" = yes; then
11124 # Set up default GNU C++ configuration
11127 # Check whether --with-gnu-ld was given.
11128 if test "${with_gnu_ld+set}" = set; then
11129 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11135 if test "$GCC" = yes; then
11136 # Check if gcc -print-prog-name=ld gives a path.
11137 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11138 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11141 # gcc leaves a trailing carriage return which upsets mingw
11142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11147 # Accept absolute paths.
11149 re_direlt='/[^/][^/]*/\.\./'
11150 # Canonicalize the pathname of ld
11151 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11152 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11153 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11155 test -z "$LD" && LD="$ac_prog"
11158 # If it fails, then pretend we aren't using GCC.
11162 # If it is relative, then search for the first ld in PATH.
11163 with_gnu_ld=unknown
11166 elif test "$with_gnu_ld" = yes; then
11167 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11168 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11170 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11171 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11173 if test "${lt_cv_path_LD+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 if test -z "$LD"; then
11177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11178 for ac_dir in $PATH; do
11180 test -z "$ac_dir" && ac_dir=.
11181 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11182 lt_cv_path_LD="$ac_dir/$ac_prog"
11183 # Check to see if the program is GNU ld. I'd rather use --version,
11184 # but apparently some variants of GNU ld only accept -v.
11185 # Break only if it was the GNU/non-GNU ld that we prefer.
11186 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11187 *GNU* | *'with BFD'*)
11188 test "$with_gnu_ld" != no && break
11191 test "$with_gnu_ld" != yes && break
11198 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11202 LD="$lt_cv_path_LD"
11203 if test -n "$LD"; then
11204 { echo "$as_me:$LINENO: result: $LD" >&5
11205 echo "${ECHO_T}$LD" >&6; }
11207 { echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6; }
11210 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11211 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11212 { (exit 1); exit 1; }; }
11213 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11214 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11215 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11219 case `$LD -v 2>&1 </dev/null` in
11220 *GNU* | *'with BFD'*)
11221 lt_cv_prog_gnu_ld=yes
11224 lt_cv_prog_gnu_ld=no
11228 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11229 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11230 with_gnu_ld=$lt_cv_prog_gnu_ld
11234 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11235 # archiving commands below assume that GNU ld is being used.
11236 if test "$with_gnu_ld" = yes; then
11237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11238 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11240 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11243 # If archive_cmds runs LD, not CC, wlarc should be empty
11244 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11245 # investigate it a little bit more. (MM)
11248 # ancient GNU ld didn't support --whole-archive et. al.
11249 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11250 grep 'no-whole-archive' > /dev/null; then
11251 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11253 whole_archive_flag_spec_CXX=
11259 # A generic and very simple default shared library creation
11260 # command for GNU C++ for the case where it uses the native
11261 # linker, instead of GNU ld. If possible, this setting should
11262 # overridden to take advantage of the native linker features on
11263 # the platform it is being used on.
11264 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11267 # Commands to make compiler produce verbose output that lists
11268 # what "hidden" libraries, object files and flags are used when
11269 # linking a shared library.
11270 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11278 # PORTME: fill in a description of your system's C++ link characteristics
11279 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11284 # FIXME: insert proper C++ library support
11288 if test "$host_cpu" = ia64; then
11289 # On IA64, the linker does run time linking by default, so we don't
11290 # have to do anything special.
11291 aix_use_runtimelinking=no
11292 exp_sym_flag='-Bexport'
11295 aix_use_runtimelinking=no
11297 # Test if we are trying to use run time linking or normal
11298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11299 # need to do runtime linking.
11300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11301 for ld_flag in $LDFLAGS; do
11304 aix_use_runtimelinking=yes
11312 exp_sym_flag='-bexport'
11313 no_entry_flag='-bnoentry'
11316 # When large executables or shared objects are built, AIX ld can
11317 # have problems creating the table of contents. If linking a library
11318 # or program results in "error TOC overflow" add -mminimal-toc to
11319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11322 archive_cmds_CXX=''
11323 hardcode_direct_CXX=yes
11324 hardcode_libdir_separator_CXX=':'
11325 link_all_deplibs_CXX=yes
11327 if test "$GXX" = yes; then
11328 case $host_os in aix4.[012]|aix4.[012].*)
11329 # We only want to do this on AIX 4.2 and lower, the check
11330 # below for broken collect2 doesn't work under 4.3+
11331 collect2name=`${CC} -print-prog-name=collect2`
11332 if test -f "$collect2name" && \
11333 strings "$collect2name" | grep resolve_lib_name >/dev/null
11335 # We have reworked collect2
11338 # We have old collect2
11339 hardcode_direct_CXX=unsupported
11340 # It fails to find uninstalled libraries when the uninstalled
11341 # path is not listed in the libpath. Setting hardcode_minus_L
11342 # to unsupported forces relinking
11343 hardcode_minus_L_CXX=yes
11344 hardcode_libdir_flag_spec_CXX='-L$libdir'
11345 hardcode_libdir_separator_CXX=
11349 shared_flag='-shared'
11350 if test "$aix_use_runtimelinking" = yes; then
11351 shared_flag="$shared_flag "'${wl}-G'
11355 if test "$host_cpu" = ia64; then
11356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11357 # chokes on -Wl,-G. The following line is correct:
11360 if test "$aix_use_runtimelinking" = yes; then
11361 shared_flag='${wl}-G'
11363 shared_flag='${wl}-bM:SRE'
11368 # It seems that -bexpall does not export symbols beginning with
11369 # underscore (_), so it is better to generate a list of symbols to export.
11370 always_export_symbols_CXX=yes
11371 if test "$aix_use_runtimelinking" = yes; then
11372 # Warning - without using the other runtime loading flags (-brtl),
11373 # -berok will link without error, but may produce a broken library.
11374 allow_undefined_flag_CXX='-berok'
11375 # Determine the default libpath from the value encoded in an empty executable.
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (ac_try="$ac_link"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_link") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_cxx_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest$ac_exeext &&
11408 $as_test_x conftest$ac_exeext; then
11410 lt_aix_libpath_sed='
11411 /Import File Strings/,/^$/ {
11417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11418 # Check for a 64-bit object if we didn't find anything.
11419 if test -z "$aix_libpath"; then
11420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430 conftest$ac_exeext conftest.$ac_ext
11431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11433 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11435 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11437 if test "$host_cpu" = ia64; then
11438 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11439 allow_undefined_flag_CXX="-z nodefs"
11440 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11442 # Determine the default libpath from the value encoded in an empty executable.
11443 cat >conftest.$ac_ext <<_ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_cxx_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11477 lt_aix_libpath_sed='
11478 /Import File Strings/,/^$/ {
11484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11485 # Check for a 64-bit object if we didn't find anything.
11486 if test -z "$aix_libpath"; then
11487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11497 conftest$ac_exeext conftest.$ac_ext
11498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11500 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11501 # Warning - without using the other run time loading flags,
11502 # -berok will link without error, but may produce a broken library.
11503 no_undefined_flag_CXX=' ${wl}-bernotok'
11504 allow_undefined_flag_CXX=' ${wl}-berok'
11505 # Exported symbols can be pulled into shared objects from archives
11506 whole_archive_flag_spec_CXX='$convenience'
11507 archive_cmds_need_lc_CXX=yes
11508 # This is similar to how AIX traditionally builds its shared libraries.
11509 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11516 allow_undefined_flag_CXX=unsupported
11517 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11518 # support --undefined. This deserves some investigation. FIXME
11519 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11526 case $cc_basename in
11528 # FIXME: insert proper C++ library support
11534 cygwin* | mingw* | pw32*)
11535 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11536 # as there is no search path for DLLs.
11537 hardcode_libdir_flag_spec_CXX='-L$libdir'
11538 allow_undefined_flag_CXX=unsupported
11539 always_export_symbols_CXX=no
11540 enable_shared_with_static_runtimes_CXX=yes
11542 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11543 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11544 # If the export-symbols file already is a .def file (1st line
11545 # is EXPORTS), use it as is; otherwise, prepend...
11546 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11547 cp $export_symbols $output_objdir/$soname.def;
11549 echo EXPORTS > $output_objdir/$soname.def;
11550 cat $export_symbols >> $output_objdir/$soname.def;
11552 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11557 darwin* | rhapsody*)
11558 archive_cmds_need_lc_CXX=no
11559 hardcode_direct_CXX=no
11560 hardcode_automatic_CXX=yes
11561 hardcode_shlibpath_var_CXX=unsupported
11562 whole_archive_flag_spec_CXX=''
11563 link_all_deplibs_CXX=yes
11564 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11565 if test "$GXX" = yes ; then
11566 output_verbose_link_cmd='echo'
11567 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11568 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11569 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11570 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11571 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11572 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11573 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11576 case $cc_basename in
11578 output_verbose_link_cmd='echo'
11579 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11580 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11582 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11583 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11593 case $cc_basename in
11595 # FIXME: insert proper C++ library support
11599 # Green Hills C++ Compiler
11600 # FIXME: insert proper C++ library support
11604 # FIXME: insert proper C++ library support
11610 # C++ shared libraries reported to be fairly broken before switch to ELF
11614 archive_cmds_need_lc_CXX=no
11616 freebsd* | dragonfly*)
11617 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11624 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11625 hardcode_libdir_separator_CXX=:
11626 export_dynamic_flag_spec_CXX='${wl}-E'
11627 hardcode_direct_CXX=yes
11628 hardcode_minus_L_CXX=yes # Not in the search PATH,
11629 # but as the default
11630 # location of the library.
11632 case $cc_basename in
11634 # FIXME: insert proper C++ library support
11638 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11639 # Commands to make compiler produce verbose output that lists
11640 # what "hidden" libraries, object files and flags are used when
11641 # linking a shared library.
11643 # There doesn't appear to be a way to prevent this compiler from
11644 # explicitly linking system object files so we need to strip them
11645 # from the output so that they don't get included in the library
11647 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11650 if test "$GXX" = yes; then
11651 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11653 # FIXME: insert proper C++ library support
11660 if test $with_gnu_ld = no; then
11661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11662 hardcode_libdir_separator_CXX=:
11667 export_dynamic_flag_spec_CXX='${wl}-E'
11673 hardcode_direct_CXX=no
11674 hardcode_shlibpath_var_CXX=no
11677 hardcode_direct_CXX=yes
11678 hardcode_minus_L_CXX=yes # Not in the search PATH,
11679 # but as the default
11680 # location of the library.
11684 case $cc_basename in
11686 # FIXME: insert proper C++ library support
11692 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11695 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11701 # Commands to make compiler produce verbose output that lists
11702 # what "hidden" libraries, object files and flags are used when
11703 # linking a shared library.
11705 # There doesn't appear to be a way to prevent this compiler from
11706 # explicitly linking system object files so we need to strip them
11707 # from the output so that they don't get included in the library
11709 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11712 if test "$GXX" = yes; then
11713 if test $with_gnu_ld = no; then
11716 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11719 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11722 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11727 # FIXME: insert proper C++ library support
11734 hardcode_direct_CXX=no
11735 hardcode_shlibpath_var_CXX=no
11736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11737 export_dynamic_flag_spec_CXX='${wl}-E'
11738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11739 # Instead, shared libraries are loaded at an image base (0x10000000 by
11740 # default) and relocated if they conflict, which is a slow very memory
11741 # consuming and fragmenting process. To avoid this, we pick a random,
11742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11743 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11744 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11745 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11748 case $cc_basename in
11751 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11753 # Archives containing C++ object files must be created using
11754 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11755 # necessary to make sure instantiated templates are included
11757 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11760 if test "$GXX" = yes; then
11761 if test "$with_gnu_ld" = no; then
11762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11764 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11767 link_all_deplibs_CXX=yes
11770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11771 hardcode_libdir_separator_CXX=:
11773 linux* | k*bsd*-gnu)
11774 case $cc_basename in
11776 # Kuck and Associates, Inc. (KAI) C++ Compiler
11778 # KCC will only create a shared library if the output file
11779 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11780 # to its proper name (with version) after linking.
11781 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11782 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11783 # Commands to make compiler produce verbose output that lists
11784 # what "hidden" libraries, object files and flags are used when
11785 # linking a shared library.
11787 # There doesn't appear to be a way to prevent this compiler from
11788 # explicitly linking system object files so we need to strip them
11789 # from the output so that they don't get included in the library
11791 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11793 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11794 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11796 # Archives containing C++ object files must be created using
11797 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11798 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11803 # version 8.0 and above of icpc choke on multiply defined symbols
11804 # if we add $predep_objects and $postdep_objects, however 7.1 and
11805 # earlier do not add the objects themselves.
11806 case `$CC -V 2>&1` in
11808 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11809 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11811 *) # Version 8.0 or newer
11814 ia64*) tmp_idyn=' -i_dynamic';;
11816 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11817 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11820 archive_cmds_need_lc_CXX=no
11821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11822 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11823 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11826 # Portland Group C++ compiler
11827 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11828 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11832 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11836 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11837 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11839 runpath_var=LD_RUN_PATH
11840 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11841 hardcode_libdir_separator_CXX=:
11843 # Commands to make compiler produce verbose output that lists
11844 # what "hidden" libraries, object files and flags are used when
11845 # linking a shared library.
11847 # There doesn't appear to be a way to prevent this compiler from
11848 # explicitly linking system object files so we need to strip them
11849 # from the output so that they don't get included in the library
11851 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11854 case `$CC -V 2>&1 | sed 5q` in
11857 no_undefined_flag_CXX=' -zdefs'
11858 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11859 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11860 hardcode_libdir_flag_spec_CXX='-R$libdir'
11861 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11863 # Not sure whether something based on
11864 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11866 output_verbose_link_cmd='echo'
11868 # Archives containing C++ object files must be created using
11869 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11870 # necessary to make sure instantiated templates are included
11872 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11879 # FIXME: insert proper C++ library support
11883 # FIXME: insert proper C++ library support
11887 case $cc_basename in
11889 # FIXME: insert proper C++ library support
11893 # FIXME: insert proper C++ library support
11898 netbsd* | netbsdelf*-gnu)
11899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11900 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11902 hardcode_libdir_flag_spec_CXX='-R$libdir'
11903 hardcode_direct_CXX=yes
11904 hardcode_shlibpath_var_CXX=no
11906 # Workaround some broken pre-1.5 toolchains
11907 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11910 # C++ shared libraries are fairly broken
11914 if test -f /usr/libexec/ld.so; then
11915 hardcode_direct_CXX=yes
11916 hardcode_shlibpath_var_CXX=no
11917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11920 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11921 export_dynamic_flag_spec_CXX='${wl}-E'
11922 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11924 output_verbose_link_cmd='echo'
11930 case $cc_basename in
11932 # Kuck and Associates, Inc. (KAI) C++ Compiler
11934 # KCC will only create a shared library if the output file
11935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11936 # to its proper name (with version) after linking.
11937 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11940 hardcode_libdir_separator_CXX=:
11942 # Archives containing C++ object files must be created using
11943 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11944 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11948 # Rational C++ 2.4.1
11949 # FIXME: insert proper C++ library support
11953 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11954 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11957 hardcode_libdir_separator_CXX=:
11959 # Commands to make compiler produce verbose output that lists
11960 # what "hidden" libraries, object files and flags are used when
11961 # linking a shared library.
11963 # There doesn't appear to be a way to prevent this compiler from
11964 # explicitly linking system object files so we need to strip them
11965 # from the output so that they don't get included in the library
11967 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11970 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11971 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11972 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11974 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11975 hardcode_libdir_separator_CXX=:
11977 # Commands to make compiler produce verbose output that lists
11978 # what "hidden" libraries, object files and flags are used when
11979 # linking a shared library.
11980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11983 # FIXME: insert proper C++ library support
11990 case $cc_basename in
11992 # Kuck and Associates, Inc. (KAI) C++ Compiler
11994 # KCC will only create a shared library if the output file
11995 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11996 # to its proper name (with version) after linking.
11997 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11999 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12000 hardcode_libdir_separator_CXX=:
12002 # Archives containing C++ object files must be created using
12003 # the KAI C++ compiler.
12004 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12007 # Rational C++ 2.4.1
12008 # FIXME: insert proper C++ library support
12012 allow_undefined_flag_CXX=' -expect_unresolved \*'
12013 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12014 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12015 echo "-hidden">> $lib.exp~
12016 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12019 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12020 hardcode_libdir_separator_CXX=:
12022 # Commands to make compiler produce verbose output that lists
12023 # what "hidden" libraries, object files and flags are used when
12024 # linking a shared library.
12026 # There doesn't appear to be a way to prevent this compiler from
12027 # explicitly linking system object files so we need to strip them
12028 # from the output so that they don't get included in the library
12030 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12034 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12035 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12038 hardcode_libdir_separator_CXX=:
12040 # Commands to make compiler produce verbose output that lists
12041 # what "hidden" libraries, object files and flags are used when
12042 # linking a shared library.
12043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12046 # FIXME: insert proper C++ library support
12053 # FIXME: insert proper C++ library support
12057 case $cc_basename in
12060 # FIXME: insert proper C++ library support
12065 # FIXME: insert proper C++ library support
12069 # FIXME: insert proper C++ library support
12075 case $cc_basename in
12077 # Sun C++ 4.2, 5.x and Centerline C++
12078 archive_cmds_need_lc_CXX=yes
12079 no_undefined_flag_CXX=' -zdefs'
12080 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12081 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12082 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12084 hardcode_libdir_flag_spec_CXX='-R$libdir'
12085 hardcode_shlibpath_var_CXX=no
12087 solaris2.[0-5] | solaris2.[0-5].*) ;;
12089 # The compiler driver will combine and reorder linker options,
12090 # but understands `-z linker_flag'.
12091 # Supported since Solaris 2.6 (maybe 2.5.1?)
12092 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12095 link_all_deplibs_CXX=yes
12097 output_verbose_link_cmd='echo'
12099 # Archives containing C++ object files must be created using
12100 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12101 # necessary to make sure instantiated templates are included
12103 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12106 # Green Hills C++ Compiler
12107 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12109 # The C++ compiler must be used to create the archive.
12110 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12113 # GNU C++ compiler with Solaris linker
12114 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12115 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12116 if $CC --version | grep -v '^2\.7' > /dev/null; then
12117 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12118 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12119 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12121 # Commands to make compiler produce verbose output that lists
12122 # what "hidden" libraries, object files and flags are used when
12123 # linking a shared library.
12124 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12126 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12128 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12129 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12130 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12132 # Commands to make compiler produce verbose output that lists
12133 # what "hidden" libraries, object files and flags are used when
12134 # linking a shared library.
12135 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12138 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12140 solaris2.[0-5] | solaris2.[0-5].*) ;;
12142 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12149 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12150 no_undefined_flag_CXX='${wl}-z,text'
12151 archive_cmds_need_lc_CXX=no
12152 hardcode_shlibpath_var_CXX=no
12153 runpath_var='LD_RUN_PATH'
12155 case $cc_basename in
12157 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12158 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12161 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12162 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12166 sysv5* | sco3.2v5* | sco5v6*)
12167 # Note: We can NOT use -z defs as we might desire, because we do not
12168 # link with -lc, and that would cause any symbols used from libc to
12169 # always be unresolved, which means just about no library would
12170 # ever link correctly. If we're not using GNU ld we use -z text
12171 # though, which does catch some bad symbols but isn't as heavy-handed
12173 # For security reasons, it is highly recommended that you always
12174 # use absolute paths for naming shared libraries, and exclude the
12175 # DT_RUNPATH tag from executables and libraries. But doing so
12176 # requires that you compile everything twice, which is a pain.
12177 # So that behaviour is only enabled if SCOABSPATH is set to a
12178 # non-empty value in the environment. Most likely only useful for
12179 # creating official distributions of packages.
12180 # This is a hack until libtool officially supports absolute path
12181 # names for shared libraries.
12182 no_undefined_flag_CXX='${wl}-z,text'
12183 allow_undefined_flag_CXX='${wl}-z,nodefs'
12184 archive_cmds_need_lc_CXX=no
12185 hardcode_shlibpath_var_CXX=no
12186 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12187 hardcode_libdir_separator_CXX=':'
12188 link_all_deplibs_CXX=yes
12189 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12190 runpath_var='LD_RUN_PATH'
12192 case $cc_basename in
12194 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12195 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12198 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12199 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12204 case $cc_basename in
12206 # NonStop-UX NCC 3.20
12207 # FIXME: insert proper C++ library support
12211 # FIXME: insert proper C++ library support
12217 # FIXME: insert proper C++ library support
12221 # FIXME: insert proper C++ library support
12225 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12226 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12227 test "$ld_shlibs_CXX" = no && can_build_shared=no
12232 cat > conftest.$ac_ext <<EOF
12236 Foo (void) { a = 0; }
12242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; then
12247 # Parse the compiler output and extract the necessary
12248 # objects, libraries and library flags.
12250 # Sentinel used to keep track of whether or not we are before
12251 # the conftest object file.
12252 pre_test_object_deps_done=no
12254 # The `*' in the case matches for architectures that use `case' in
12255 # $output_verbose_cmd can trigger glob expansion during the loop
12256 # eval without this substitution.
12257 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12259 for p in `eval $output_verbose_link_cmd`; do
12263 # Some compilers place space between "-{L,R}" and the path.
12264 # Remove the space.
12265 if test $p = "-L" \
12266 || test $p = "-R"; then
12273 if test "$pre_test_object_deps_done" = no; then
12276 # Internal compiler library paths should come after those
12277 # provided the user. The postdeps already come after the
12278 # user supplied libs so there is no need to process them.
12279 if test -z "$compiler_lib_search_path_CXX"; then
12280 compiler_lib_search_path_CXX="${prev}${p}"
12282 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12285 # The "-l" case would never come before the object being
12286 # linked, so don't bother handling this case.
12289 if test -z "$postdeps_CXX"; then
12290 postdeps_CXX="${prev}${p}"
12292 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12298 # This assumes that the test object file only shows up
12299 # once in the compiler output.
12300 if test "$p" = "conftest.$objext"; then
12301 pre_test_object_deps_done=yes
12305 if test "$pre_test_object_deps_done" = no; then
12306 if test -z "$predep_objects_CXX"; then
12307 predep_objects_CXX="$p"
12309 predep_objects_CXX="$predep_objects_CXX $p"
12312 if test -z "$postdep_objects_CXX"; then
12313 postdep_objects_CXX="$p"
12315 postdep_objects_CXX="$postdep_objects_CXX $p"
12320 *) ;; # Ignore the rest.
12328 echo "libtool.m4: error: problem compiling CXX test program"
12331 $rm -f confest.$objext
12333 compiler_lib_search_dirs_CXX=
12334 if test -n "$compiler_lib_search_path_CXX"; then
12335 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12338 # PORTME: override above test on systems where it is broken
12341 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12342 # hack all around it, let's just trust "g++" to DTRT.
12343 predep_objects_CXX=
12344 postdep_objects_CXX=
12349 case `$CC -V 2>&1 | sed 5q` in
12353 # The more standards-conforming stlport4 library is
12354 # incompatible with the Cstd library. Avoid specifying
12355 # it if it's in CXXFLAGS. Ignore libCrun as
12356 # -library=stlport4 depends on it.
12357 case " $CXX $CXXFLAGS " in
12358 *" -library=stlport4 "*)
12359 solaris_use_stlport4=yes
12362 if test "$solaris_use_stlport4" != yes; then
12363 postdeps_CXX='-library=Cstd -library=Crun'
12370 case $cc_basename in
12372 # The more standards-conforming stlport4 library is
12373 # incompatible with the Cstd library. Avoid specifying
12374 # it if it's in CXXFLAGS. Ignore libCrun as
12375 # -library=stlport4 depends on it.
12376 case " $CXX $CXXFLAGS " in
12377 *" -library=stlport4 "*)
12378 solaris_use_stlport4=yes
12382 # Adding this requires a known-good setup of shared libraries for
12383 # Sun compiler versions before 5.6, else PIC objects from an old
12384 # archive will be linked into the output, leading to subtle bugs.
12385 if test "$solaris_use_stlport4" != yes; then
12386 postdeps_CXX='-library=Cstd -library=Crun'
12393 case " $postdeps_CXX " in
12394 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12397 lt_prog_compiler_wl_CXX=
12398 lt_prog_compiler_pic_CXX=
12399 lt_prog_compiler_static_CXX=
12401 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12402 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12404 # C++ specific cases for pic, static, wl, etc.
12405 if test "$GXX" = yes; then
12406 lt_prog_compiler_wl_CXX='-Wl,'
12407 lt_prog_compiler_static_CXX='-static'
12411 # All AIX code is PIC.
12412 if test "$host_cpu" = ia64; then
12413 # AIX 5 now supports IA64 processor
12414 lt_prog_compiler_static_CXX='-Bstatic'
12418 # FIXME: we need at least 68020 code to build shared libraries, but
12419 # adding the `-m68020' flag to GCC prevents building anything better,
12421 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12424 # PIC is the default for these OSes.
12426 mingw* | cygwin* | os2* | pw32*)
12427 # This hack is so that the source file can tell whether it is being
12428 # built for inclusion in a dll (and should export symbols for example).
12429 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12430 # (--disable-auto-import) libraries
12431 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12433 darwin* | rhapsody*)
12434 # PIC is the default on this platform
12435 # Common symbols not allowed in MH_DYLIB files
12436 lt_prog_compiler_pic_CXX='-fno-common'
12439 # DJGPP does not support shared libraries at all
12440 lt_prog_compiler_pic_CXX=
12443 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12444 # Instead, we relocate shared libraries at runtime.
12447 if test -d /usr/nec; then
12448 lt_prog_compiler_pic_CXX=-Kconform_pic
12452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12453 # not for PA HP-UX.
12458 lt_prog_compiler_pic_CXX='-fPIC'
12463 lt_prog_compiler_pic_CXX='-fPIC'
12469 # All AIX code is PIC.
12470 if test "$host_cpu" = ia64; then
12471 # AIX 5 now supports IA64 processor
12472 lt_prog_compiler_static_CXX='-Bstatic'
12474 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12478 case $cc_basename in
12480 # Green Hills C++ Compiler
12481 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12486 # PIC is the default on this platform
12487 # Common symbols not allowed in MH_DYLIB files
12488 case $cc_basename in
12490 lt_prog_compiler_pic_CXX='-qnocommon'
12491 lt_prog_compiler_wl_CXX='-Wl,'
12496 case $cc_basename in
12498 lt_prog_compiler_pic_CXX='-KPIC'
12501 # Green Hills C++ Compiler
12502 lt_prog_compiler_pic_CXX='-pic'
12508 freebsd* | dragonfly*)
12509 # FreeBSD uses GNU C++
12511 hpux9* | hpux10* | hpux11*)
12512 case $cc_basename in
12514 lt_prog_compiler_wl_CXX='-Wl,'
12515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12516 if test "$host_cpu" != ia64; then
12517 lt_prog_compiler_pic_CXX='+Z'
12521 lt_prog_compiler_wl_CXX='-Wl,'
12522 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12528 lt_prog_compiler_pic_CXX='+Z'
12537 # This is c89, which is MS Visual C++ (no shared libs)
12538 # Anyone wants to do a port?
12540 irix5* | irix6* | nonstopux*)
12541 case $cc_basename in
12543 lt_prog_compiler_wl_CXX='-Wl,'
12544 lt_prog_compiler_static_CXX='-non_shared'
12545 # CC pic flag -KPIC is the default.
12551 linux* | k*bsd*-gnu)
12552 case $cc_basename in
12555 lt_prog_compiler_wl_CXX='--backend -Wl,'
12556 lt_prog_compiler_pic_CXX='-fPIC'
12560 lt_prog_compiler_wl_CXX='-Wl,'
12561 lt_prog_compiler_pic_CXX='-KPIC'
12562 lt_prog_compiler_static_CXX='-static'
12565 # Portland Group C++ compiler.
12566 lt_prog_compiler_wl_CXX='-Wl,'
12567 lt_prog_compiler_pic_CXX='-fpic'
12568 lt_prog_compiler_static_CXX='-Bstatic'
12572 # Make sure the PIC flag is empty. It appears that all Alpha
12573 # Linux and Compaq Tru64 Unix objects are PIC.
12574 lt_prog_compiler_pic_CXX=
12575 lt_prog_compiler_static_CXX='-non_shared'
12578 case `$CC -V 2>&1 | sed 5q` in
12581 lt_prog_compiler_pic_CXX='-KPIC'
12582 lt_prog_compiler_static_CXX='-Bstatic'
12583 lt_prog_compiler_wl_CXX='-Qoption ld '
12594 case $cc_basename in
12596 lt_prog_compiler_pic_CXX='-W c,exportall'
12602 netbsd* | netbsdelf*-gnu)
12604 osf3* | osf4* | osf5*)
12605 case $cc_basename in
12607 lt_prog_compiler_wl_CXX='--backend -Wl,'
12610 # Rational C++ 2.4.1
12611 lt_prog_compiler_pic_CXX='-pic'
12614 # Digital/Compaq C++
12615 lt_prog_compiler_wl_CXX='-Wl,'
12616 # Make sure the PIC flag is empty. It appears that all Alpha
12617 # Linux and Compaq Tru64 Unix objects are PIC.
12618 lt_prog_compiler_pic_CXX=
12619 lt_prog_compiler_static_CXX='-non_shared'
12628 case $cc_basename in
12630 # Sun C++ 4.2, 5.x and Centerline C++
12631 lt_prog_compiler_pic_CXX='-KPIC'
12632 lt_prog_compiler_static_CXX='-Bstatic'
12633 lt_prog_compiler_wl_CXX='-Qoption ld '
12636 # Green Hills C++ Compiler
12637 lt_prog_compiler_pic_CXX='-PIC'
12644 case $cc_basename in
12647 lt_prog_compiler_pic_CXX='-pic'
12648 lt_prog_compiler_static_CXX='-Bstatic'
12652 lt_prog_compiler_pic_CXX='-pic'
12659 case $cc_basename in
12661 # NonStop-UX NCC 3.20
12662 lt_prog_compiler_pic_CXX='-KPIC'
12668 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12669 case $cc_basename in
12671 lt_prog_compiler_wl_CXX='-Wl,'
12672 lt_prog_compiler_pic_CXX='-KPIC'
12673 lt_prog_compiler_static_CXX='-Bstatic'
12680 lt_prog_compiler_can_build_shared_CXX=no
12685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12686 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12689 # Check to make sure the PIC flag actually works.
12691 if test -n "$lt_prog_compiler_pic_CXX"; then
12693 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12695 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 lt_cv_prog_compiler_pic_works_CXX=no
12699 ac_outfile=conftest.$ac_objext
12700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12701 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12702 # Insert the option either (1) after the last *FLAGS variable, or
12703 # (2) before a word containing "conftest.", or (3) at the end.
12704 # Note that $ac_compile itself does not contain backslashes and begins
12705 # with a dollar sign (not a hyphen), so the echo should work correctly.
12706 # The option is referenced via a variable to avoid confusing sed.
12707 lt_compile=`echo "$ac_compile" | $SED \
12708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12710 -e 's:$: $lt_compiler_flag:'`
12711 (eval echo "\"\$as_me:12711: $lt_compile\"" >&5)
12712 (eval "$lt_compile" 2>conftest.err)
12714 cat conftest.err >&5
12715 echo "$as_me:12715: \$? = $ac_status" >&5
12716 if (exit $ac_status) && test -s "$ac_outfile"; then
12717 # The compiler can only warn and ignore the option if not recognized
12718 # So say no if there are warnings other than the usual output.
12719 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12722 lt_cv_prog_compiler_pic_works_CXX=yes
12728 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12729 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12731 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12732 case $lt_prog_compiler_pic_CXX in
12734 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12737 lt_prog_compiler_pic_CXX=
12738 lt_prog_compiler_can_build_shared_CXX=no
12743 # For platforms which do not support PIC, -DPIC is meaningless:
12745 lt_prog_compiler_pic_CXX=
12748 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12753 # Check to make sure the static flag actually works.
12755 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12758 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 lt_cv_prog_compiler_static_works_CXX=no
12762 save_LDFLAGS="$LDFLAGS"
12763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12766 # The linker can only warn and ignore the option if not recognized
12767 # So say no if there are warnings
12768 if test -s conftest.err; then
12769 # Append any errors to the config.log.
12770 cat conftest.err 1>&5
12771 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12773 if diff conftest.exp conftest.er2 >/dev/null; then
12774 lt_cv_prog_compiler_static_works_CXX=yes
12777 lt_cv_prog_compiler_static_works_CXX=yes
12781 LDFLAGS="$save_LDFLAGS"
12784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12787 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12790 lt_prog_compiler_static_CXX=
12794 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12795 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12796 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 lt_cv_prog_compiler_c_o_CXX=no
12800 $rm -r conftest 2>/dev/null
12804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12806 lt_compiler_flag="-o out/conftest2.$ac_objext"
12807 # Insert the option either (1) after the last *FLAGS variable, or
12808 # (2) before a word containing "conftest.", or (3) at the end.
12809 # Note that $ac_compile itself does not contain backslashes and begins
12810 # with a dollar sign (not a hyphen), so the echo should work correctly.
12811 lt_compile=`echo "$ac_compile" | $SED \
12812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12814 -e 's:$: $lt_compiler_flag:'`
12815 (eval echo "\"\$as_me:12815: $lt_compile\"" >&5)
12816 (eval "$lt_compile" 2>out/conftest.err)
12818 cat out/conftest.err >&5
12819 echo "$as_me:12819: \$? = $ac_status" >&5
12820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12822 # The compiler can only warn and ignore the option if not recognized
12823 # So say no if there are warnings
12824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12827 lt_cv_prog_compiler_c_o_CXX=yes
12832 # SGI C++ compiler will create directory out/ii_files/ for
12833 # template instantiation
12834 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12835 $rm out/* && rmdir out
12841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12845 hard_links="nottested"
12846 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12847 # do not overwrite the value of need_locks provided by the user
12848 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12854 ln conftest.a conftest.b 2>&5 || hard_links=no
12855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12856 { echo "$as_me:$LINENO: result: $hard_links" >&5
12857 echo "${ECHO_T}$hard_links" >&6; }
12858 if test "$hard_links" = no; then
12859 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12870 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12873 # If we're using GNU nm, then we don't want the "-C" option.
12874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12875 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12876 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12878 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12882 export_symbols_cmds_CXX="$ltdll_cmds"
12885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12887 linux* | k*bsd*-gnu)
12888 link_all_deplibs_CXX=no
12891 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12894 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12896 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12897 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12898 test "$ld_shlibs_CXX" = no && can_build_shared=no
12901 # Do we need to explicitly link libc?
12903 case "x$archive_cmds_need_lc_CXX" in
12905 # Assume -lc should be added
12906 archive_cmds_need_lc_CXX=yes
12908 if test "$enable_shared" = yes && test "$GCC" = yes; then
12909 case $archive_cmds_CXX in
12911 # FIXME: we may have to deal with multi-command sequences.
12914 # Test whether the compiler implicitly links with -lc since on some
12915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12916 # to ld, don't add -lc before -lgcc.
12917 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12918 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } 2>conftest.err; then
12929 libobjs=conftest.$ac_objext
12931 wl=$lt_prog_compiler_wl_CXX
12932 pic_flag=$lt_prog_compiler_pic_CXX
12938 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12939 allow_undefined_flag_CXX=
12940 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12941 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }
12946 archive_cmds_need_lc_CXX=no
12948 archive_cmds_need_lc_CXX=yes
12950 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12952 cat conftest.err 1>&5
12955 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12956 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12963 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12964 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12965 library_names_spec=
12966 libname_spec='lib$name'
12970 postuninstall_cmds=
12974 shlibpath_overrides_runpath=unknown
12976 dynamic_linker="$host_os ld.so"
12977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12979 need_lib_prefix=unknown
12980 hardcode_into_libs=no
12982 # when you set need_version to no, make sure it does not cause -set_version
12983 # flags to be left without arguments
12984 need_version=unknown
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12990 shlibpath_var=LIBPATH
12992 # AIX 3 has no versioning support, so we append a major version to the name.
12993 soname_spec='${libname}${release}${shared_ext}$major'
13000 hardcode_into_libs=yes
13001 if test "$host_cpu" = ia64; then
13002 # AIX 5 supports IA64
13003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13004 shlibpath_var=LD_LIBRARY_PATH
13006 # With GCC up to 2.95.x, collect2 would create an import file
13007 # for dependence libraries. The import file would start with
13008 # the line `#! .'. This would cause the generated library to
13009 # depend on `.', always an invalid library. This was fixed in
13010 # development snapshots of GCC prior to 3.0.
13012 aix4 | aix4.[01] | aix4.[01].*)
13013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13015 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13018 can_build_shared=no
13022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13023 # soname into executable. Probably we can add versioning support to
13024 # collect2, so additional links can be useful in future.
13025 if test "$aix_use_runtimelinking" = yes; then
13026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13027 # instead of lib<name>.a to let people know that these are not
13028 # typical AIX shared libraries.
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031 # We preserve .a as extension for shared libraries through AIX4.2
13032 # and later when we are not doing run time linking.
13033 library_names_spec='${libname}${release}.a $libname.a'
13034 soname_spec='${libname}${release}${shared_ext}$major'
13036 shlibpath_var=LIBPATH
13041 library_names_spec='$libname.ixlibrary $libname.a'
13042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13043 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13047 library_names_spec='${libname}${shared_ext}'
13048 dynamic_linker="$host_os ld.so"
13049 shlibpath_var=LIBRARY_PATH
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 soname_spec='${libname}${release}${shared_ext}$major'
13057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13061 # the default ld.so.conf also contains /usr/contrib/lib and
13062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13063 # libtool to hard-code these into programs
13066 cygwin* | mingw* | pw32*)
13067 version_type=windows
13072 case $GCC,$host_os in
13073 yes,cygwin* | yes,mingw* | yes,pw32*)
13074 library_names_spec='$libname.dll.a'
13075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13076 postinstall_cmds='base_file=`basename \${file}`~
13077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13078 dldir=$destdir/`dirname \$dlpath`~
13079 test -d \$dldir || mkdir -p \$dldir~
13080 $install_prog $dir/$dlname \$dldir/$dlname~
13081 chmod a+x \$dldir/$dlname'
13082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13083 dlpath=$dir/\$dldll~
13085 shlibpath_overrides_runpath=yes
13089 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13090 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13091 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13094 # MinGW DLLs use traditional 'lib' prefix
13095 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13097 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13098 # It is most probably a Windows format PATH printed by
13099 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13100 # path with ; separators, and with drive letters. We can handle the
13101 # drive letters (cygwin fileutils understands them), so leave them,
13102 # especially as we might pass files found there to a mingw objdump,
13103 # which wouldn't understand a cygwinified path. Ahh.
13104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13110 # pw32 DLLs use 'pw' prefix rather than 'lib'
13111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13117 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13120 dynamic_linker='Win32 ld.exe'
13121 # FIXME: first we should search . and the directory the executable is in
13125 darwin* | rhapsody*)
13126 dynamic_linker="$host_os dyld"
13127 version_type=darwin
13130 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13131 soname_spec='${libname}${release}${major}$shared_ext'
13132 shlibpath_overrides_runpath=yes
13133 shlibpath_var=DYLD_LIBRARY_PATH
13134 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13152 freebsd* | dragonfly*)
13153 # DragonFly does not have aout. When/if they implement a new
13154 # versioning mechanism, adjust this.
13155 if test -x /usr/bin/objformat; then
13156 objformat=`/usr/bin/objformat`
13159 freebsd[123]*) objformat=aout ;;
13160 *) objformat=elf ;;
13163 version_type=freebsd-$objformat
13164 case $version_type in
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13175 shlibpath_var=LD_LIBRARY_PATH
13178 shlibpath_overrides_runpath=yes
13180 freebsd3.[01]* | freebsdelf3.[01]*)
13181 shlibpath_overrides_runpath=yes
13182 hardcode_into_libs=yes
13184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13186 shlibpath_overrides_runpath=no
13187 hardcode_into_libs=yes
13189 *) # from 4.6 on, and DragonFly
13190 shlibpath_overrides_runpath=yes
13191 hardcode_into_libs=yes
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 shlibpath_var=LD_LIBRARY_PATH
13203 hardcode_into_libs=yes
13206 hpux9* | hpux10* | hpux11*)
13207 # Give a soname corresponding to the major version so that dld.sl refuses to
13208 # link against other versions.
13215 hardcode_into_libs=yes
13216 dynamic_linker="$host_os dld.so"
13217 shlibpath_var=LD_LIBRARY_PATH
13218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 if test "X$HPUX_IA64_MODE" = X32; then
13222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13230 hardcode_into_libs=yes
13231 dynamic_linker="$host_os dld.sl"
13232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235 soname_spec='${libname}${release}${shared_ext}$major'
13236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13241 dynamic_linker="$host_os dld.sl"
13242 shlibpath_var=SHLIB_PATH
13243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13249 postinstall_cmds='chmod 555 $lib'
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13259 shlibpath_var=LD_LIBRARY_PATH
13260 shlibpath_overrides_runpath=no
13261 hardcode_into_libs=yes
13264 irix5* | irix6* | nonstopux*)
13266 nonstopux*) version_type=nonstopux ;;
13268 if test "$lt_cv_prog_gnu_ld" = yes; then
13276 soname_spec='${libname}${release}${shared_ext}$major'
13277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13279 irix5* | nonstopux*)
13280 libsuff= shlibsuff=
13283 case $LD in # libtool.m4 will add one of these switches to LD
13284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13285 libsuff= shlibsuff= libmagic=32-bit;;
13286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13287 libsuff=32 shlibsuff=N32 libmagic=N32;;
13288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13290 *) libsuff= shlibsuff= libmagic=never-match;;
13294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13295 shlibpath_overrides_runpath=no
13296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13298 hardcode_into_libs=yes
13301 # No shared lib support for Linux oldld, aout, or coff.
13302 linux*oldld* | linux*aout* | linux*coff*)
13306 # This must be Linux ELF.
13307 linux* | k*bsd*-gnu)
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312 soname_spec='${libname}${release}${shared_ext}$major'
13313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13314 shlibpath_var=LD_LIBRARY_PATH
13315 shlibpath_overrides_runpath=no
13316 # This implies no fast_install, which is unacceptable.
13317 # Some rework will be needed to allow for fast_install
13318 # before this can be enabled.
13319 hardcode_into_libs=yes
13321 # Append ld.so.conf contents to the search path
13322 if test -f /etc/ld.so.conf; then
13323 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13327 # We used to test for /lib/ld.so.1 and disable shared libraries on
13328 # powerpc, because MkLinux only supported shared libraries with the
13329 # GNU dynamic linker. Since this was broken with cross compilers,
13330 # most powerpc-linux boxes support dynamic linking these days and
13331 # people can always --disable-shared, the test was removed, and we
13332 # assume the GNU/Linux dynamic linker is in use.
13333 dynamic_linker='GNU/Linux ld.so'
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 shlibpath_var=LD_LIBRARY_PATH
13343 shlibpath_overrides_runpath=no
13344 hardcode_into_libs=yes
13345 dynamic_linker='NetBSD ld.elf_so'
13352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13355 dynamic_linker='NetBSD (a.out) ld.so'
13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13358 soname_spec='${libname}${release}${shared_ext}$major'
13359 dynamic_linker='NetBSD ld.elf_so'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=yes
13363 hardcode_into_libs=yes
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath=yes
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 shlibpath_var=LD_LIBRARY_PATH
13380 shlibpath_overrides_runpath=yes
13385 sys_lib_dlsearch_path_spec="/usr/lib"
13387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13390 *) need_version=no ;;
13392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13394 shlibpath_var=LD_LIBRARY_PATH
13395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13397 openbsd2.[89] | openbsd2.[89].*)
13398 shlibpath_overrides_runpath=no
13401 shlibpath_overrides_runpath=yes
13405 shlibpath_overrides_runpath=yes
13410 libname_spec='$name'
13413 library_names_spec='$libname${shared_ext} $libname.a'
13414 dynamic_linker='OS/2 ld.exe'
13415 shlibpath_var=LIBPATH
13418 osf3* | osf4* | osf5*)
13422 soname_spec='${libname}${release}${shared_ext}$major'
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=yes
13441 hardcode_into_libs=yes
13442 # ldd complains unless libraries are executable
13443 postinstall_cmds='chmod +x $lib'
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=yes
13452 if test "$with_gnu_ld" = yes; then
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461 soname_spec='${libname}${release}${shared_ext}$major'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 case $host_vendor in
13465 shlibpath_overrides_runpath=no
13467 export_dynamic_flag_spec='${wl}-Blargedynsym'
13468 runpath_var=LD_RUN_PATH
13476 shlibpath_overrides_runpath=no
13477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13483 if test -d /usr/nec ;then
13485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13486 soname_spec='$libname${shared_ext}.$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13492 version_type=freebsd-elf
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13496 soname_spec='${libname}${release}${shared_ext}$major'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 hardcode_into_libs=yes
13499 if test "$with_gnu_ld" = yes; then
13500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13501 shlibpath_overrides_runpath=no
13503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13504 shlibpath_overrides_runpath=yes
13507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13511 sys_lib_dlsearch_path_spec='/usr/lib'
13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13525 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13526 echo "${ECHO_T}$dynamic_linker" >&6; }
13527 test "$dynamic_linker" = no && can_build_shared=no
13529 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13535 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13544 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13545 if test "$GCC" = yes; then
13546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13549 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13550 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13551 hardcode_action_CXX=
13552 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13553 test -n "$runpath_var_CXX" || \
13554 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13556 # We can hardcode non-existant directories.
13557 if test "$hardcode_direct_CXX" != no &&
13558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13559 # have to relink, otherwise we might link with an installed library
13560 # when we should be linking with a yet-to-be-installed one
13561 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13562 test "$hardcode_minus_L_CXX" != no; then
13563 # Linking always hardcodes the temporary library directory.
13564 hardcode_action_CXX=relink
13566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13567 hardcode_action_CXX=immediate
13570 # We cannot hardcode anything, or else we can only hardcode existing
13572 hardcode_action_CXX=unsupported
13574 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13575 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13577 if test "$hardcode_action_CXX" = relink; then
13578 # Fast installation is not supported
13579 enable_fast_install=no
13580 elif test "$shlibpath_overrides_runpath" = yes ||
13581 test "$enable_shared" = no; then
13582 # Fast installation is not necessary
13583 enable_fast_install=needless
13587 # The else clause should only fire when bootstrapping the
13588 # libtool distribution, otherwise you forgot to ship ltmain.sh
13589 # with your package, and you will get complaints that there are
13590 # no rules to generate ltmain.sh.
13591 if test -f "$ltmain"; then
13592 # See if we are running on zsh, and set the options which allow our commands through
13593 # without removal of \ escapes.
13594 if test -n "${ZSH_VERSION+set}" ; then
13595 setopt NO_GLOB_SUBST
13597 # Now quote all the things that may contain metacharacters while being
13598 # careful not to overquote the AC_SUBSTed values. We take copies of the
13599 # variables and quote the copies for generation of the libtool script.
13600 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13602 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13603 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13604 deplibs_check_method reload_flag reload_cmds need_locks \
13605 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13606 lt_cv_sys_global_symbol_to_c_name_address \
13607 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13608 old_postinstall_cmds old_postuninstall_cmds \
13612 lt_prog_compiler_wl_CXX \
13613 lt_prog_compiler_pic_CXX \
13614 lt_prog_compiler_static_CXX \
13615 lt_prog_compiler_no_builtin_flag_CXX \
13616 export_dynamic_flag_spec_CXX \
13617 thread_safe_flag_spec_CXX \
13618 whole_archive_flag_spec_CXX \
13619 enable_shared_with_static_runtimes_CXX \
13620 old_archive_cmds_CXX \
13621 old_archive_from_new_cmds_CXX \
13622 predep_objects_CXX \
13623 postdep_objects_CXX \
13626 compiler_lib_search_path_CXX \
13627 compiler_lib_search_dirs_CXX \
13629 archive_expsym_cmds_CXX \
13630 postinstall_cmds_CXX \
13631 postuninstall_cmds_CXX \
13632 old_archive_from_expsyms_cmds_CXX \
13633 allow_undefined_flag_CXX \
13634 no_undefined_flag_CXX \
13635 export_symbols_cmds_CXX \
13636 hardcode_libdir_flag_spec_CXX \
13637 hardcode_libdir_flag_spec_ld_CXX \
13638 hardcode_libdir_separator_CXX \
13639 hardcode_automatic_CXX \
13641 module_expsym_cmds_CXX \
13642 lt_cv_prog_compiler_c_o_CXX \
13643 fix_srcfile_path_CXX \
13644 exclude_expsyms_CXX \
13645 include_expsyms_CXX; do
13648 old_archive_cmds_CXX | \
13649 old_archive_from_new_cmds_CXX | \
13650 archive_cmds_CXX | \
13651 archive_expsym_cmds_CXX | \
13652 module_cmds_CXX | \
13653 module_expsym_cmds_CXX | \
13654 old_archive_from_expsyms_cmds_CXX | \
13655 export_symbols_cmds_CXX | \
13656 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13657 postinstall_cmds | postuninstall_cmds | \
13658 old_postinstall_cmds | old_postuninstall_cmds | \
13659 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13660 # Double-quote double-evaled strings.
13661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13670 *'\$0 --fallback-echo"')
13671 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13677 cat <<__EOF__ >> "$cfgfile"
13678 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13682 # Shell to use when invoking shell scripts.
13685 # Whether or not to build shared libraries.
13686 build_libtool_libs=$enable_shared
13688 # Whether or not to build static libraries.
13689 build_old_libs=$enable_static
13691 # Whether or not to add -lc for building shared libraries.
13692 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13694 # Whether or not to disallow shared libs when runtime libs are static
13695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13697 # Whether or not to optimize for fast installation.
13698 fast_install=$enable_fast_install
13701 host_alias=$host_alias
13705 # The build system.
13706 build_alias=$build_alias
13710 # An echo program that does not interpret backslashes.
13715 AR_FLAGS=$lt_AR_FLAGS
13720 # LTCC compiler flags.
13721 LTCFLAGS=$lt_LTCFLAGS
13723 # A language-specific compiler.
13724 CC=$lt_compiler_CXX
13726 # Is the compiler the GNU C compiler?
13732 # The linker used to build libraries.
13735 # Whether we need hard or soft links.
13738 # A BSD-compatible nm program.
13741 # A symbol stripping program
13744 # Used to examine libraries when file_magic_cmd begins "file"
13745 MAGIC_CMD=$MAGIC_CMD
13747 # Used on cygwin: DLL creation program.
13750 # Used on cygwin: object dumper.
13753 # Used on cygwin: assembler.
13756 # The name of the directory that contains temporary libtool files.
13759 # How to create reloadable object files.
13760 reload_flag=$lt_reload_flag
13761 reload_cmds=$lt_reload_cmds
13763 # How to pass a linker flag through the compiler.
13764 wl=$lt_lt_prog_compiler_wl_CXX
13766 # Object file suffix (normally "o").
13767 objext="$ac_objext"
13769 # Old archive suffix (normally "a").
13772 # Shared library suffix (normally ".so").
13773 shrext_cmds='$shrext_cmds'
13775 # Executable file suffix (normally "").
13778 # Additional compiler flags for building library objects.
13779 pic_flag=$lt_lt_prog_compiler_pic_CXX
13782 # What is the maximum length of a command?
13783 max_cmd_len=$lt_cv_sys_max_cmd_len
13785 # Does compiler simultaneously support -c and -o options?
13786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13788 # Must we lock files when doing compilation?
13789 need_locks=$lt_need_locks
13791 # Do we need the lib prefix for modules?
13792 need_lib_prefix=$need_lib_prefix
13794 # Do we need a version for libraries?
13795 need_version=$need_version
13797 # Whether dlopen is supported.
13798 dlopen_support=$enable_dlopen
13800 # Whether dlopen of programs is supported.
13801 dlopen_self=$enable_dlopen_self
13803 # Whether dlopen of statically linked programs is supported.
13804 dlopen_self_static=$enable_dlopen_self_static
13806 # Compiler flag to prevent dynamic linking.
13807 link_static_flag=$lt_lt_prog_compiler_static_CXX
13809 # Compiler flag to turn off builtin functions.
13810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13812 # Compiler flag to allow reflexive dlopens.
13813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13815 # Compiler flag to generate shared objects directly from archives.
13816 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13818 # Compiler flag to generate thread-safe objects.
13819 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13821 # Library versioning type.
13822 version_type=$version_type
13824 # Format of library name prefix.
13825 libname_spec=$lt_libname_spec
13827 # List of archive names. First name is the real one, the rest are links.
13828 # The last name is the one that the linker finds with -lNAME.
13829 library_names_spec=$lt_library_names_spec
13831 # The coded name of the library, if different from the real name.
13832 soname_spec=$lt_soname_spec
13834 # Commands used to build and install an old-style archive.
13836 old_archive_cmds=$lt_old_archive_cmds_CXX
13837 old_postinstall_cmds=$lt_old_postinstall_cmds
13838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13840 # Create an old-style archive from a shared archive.
13841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13843 # Create a temporary old-style archive to link instead of a shared archive.
13844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13846 # Commands used to build and install a shared archive.
13847 archive_cmds=$lt_archive_cmds_CXX
13848 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13849 postinstall_cmds=$lt_postinstall_cmds
13850 postuninstall_cmds=$lt_postuninstall_cmds
13852 # Commands used to build a loadable module (assumed same as above if empty)
13853 module_cmds=$lt_module_cmds_CXX
13854 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13856 # Commands to strip libraries.
13857 old_striplib=$lt_old_striplib
13858 striplib=$lt_striplib
13860 # Dependencies to place before the objects being linked to create a
13862 predep_objects=$lt_predep_objects_CXX
13864 # Dependencies to place after the objects being linked to create a
13866 postdep_objects=$lt_postdep_objects_CXX
13868 # Dependencies to place before the objects being linked to create a
13870 predeps=$lt_predeps_CXX
13872 # Dependencies to place after the objects being linked to create a
13874 postdeps=$lt_postdeps_CXX
13876 # The directories searched by this compiler when creating a shared
13878 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13880 # The library search path used internally by the compiler when linking
13881 # a shared library.
13882 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13884 # Method to check whether dependent libraries are shared objects.
13885 deplibs_check_method=$lt_deplibs_check_method
13887 # Command to use when deplibs_check_method == file_magic.
13888 file_magic_cmd=$lt_file_magic_cmd
13890 # Flag that allows shared libraries with undefined symbols to be built.
13891 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13893 # Flag that forces no undefined symbols.
13894 no_undefined_flag=$lt_no_undefined_flag_CXX
13896 # Commands used to finish a libtool library installation in a directory.
13897 finish_cmds=$lt_finish_cmds
13899 # Same as above, but a single script fragment to be evaled but not shown.
13900 finish_eval=$lt_finish_eval
13902 # Take the output of nm and produce a listing of raw symbols and C names.
13903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13905 # Transform the output of nm in a proper C declaration
13906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13908 # Transform the output of nm in a C name address pair
13909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13911 # This is the shared library runtime path variable.
13912 runpath_var=$runpath_var
13914 # This is the shared library path variable.
13915 shlibpath_var=$shlibpath_var
13917 # Is shlibpath searched before the hard-coded library search path?
13918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13920 # How to hardcode a shared library path into an executable.
13921 hardcode_action=$hardcode_action_CXX
13923 # Whether we should hardcode library paths into libraries.
13924 hardcode_into_libs=$hardcode_into_libs
13926 # Flag to hardcode \$libdir into a binary during linking.
13927 # This must work even if \$libdir does not exist.
13928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13930 # If ld is used when linking, flag to hardcode \$libdir into
13931 # a binary during linking. This must work even if \$libdir does
13933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13935 # Whether we need a single -rpath flag with a separated argument.
13936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13938 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13939 # resulting binary.
13940 hardcode_direct=$hardcode_direct_CXX
13942 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13943 # resulting binary.
13944 hardcode_minus_L=$hardcode_minus_L_CXX
13946 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13947 # the resulting binary.
13948 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13950 # Set to yes if building a shared library automatically hardcodes DIR into the library
13951 # and all subsequent libraries and executables linked against it.
13952 hardcode_automatic=$hardcode_automatic_CXX
13954 # Variables whose values should be saved in libtool wrapper scripts and
13955 # restored at relink time.
13956 variables_saved_for_relink="$variables_saved_for_relink"
13958 # Whether libtool must link a program against all its dependency libraries.
13959 link_all_deplibs=$link_all_deplibs_CXX
13961 # Compile-time system search path for libraries
13962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13964 # Run-time system search path for libraries
13965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13967 # Fix the shell variable \$srcfile for the compiler.
13968 fix_srcfile_path=$lt_fix_srcfile_path
13970 # Set to yes if exported symbols are required.
13971 always_export_symbols=$always_export_symbols_CXX
13973 # The commands to list exported symbols.
13974 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13976 # The commands to extract the exported symbol list from a shared archive.
13977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13979 # Symbols that should not be listed in the preloaded symbols.
13980 exclude_expsyms=$lt_exclude_expsyms_CXX
13982 # Symbols that must always be exported.
13983 include_expsyms=$lt_include_expsyms_CXX
13985 # ### END LIBTOOL TAG CONFIG: $tagname
13991 # If there is no Makefile yet, we rely on a make rule to execute
13992 # `config.status --recheck' to rerun these tests and create the
13993 # libtool script then.
13994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13995 if test -f "$ltmain_in"; then
13996 test -f Makefile && make "$ltmain"
14002 ac_cpp='$CXXCPP $CPPFLAGS'
14003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14011 with_gnu_ldcxx=$with_gnu_ld
14012 with_gnu_ld=$lt_save_with_gnu_ld
14013 lt_cv_path_LDCXX=$lt_cv_path_LD
14014 lt_cv_path_LD=$lt_save_path_LD
14015 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14016 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14024 if test -n "$F77" && test "X$F77" != "Xno"; then
14027 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14028 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14029 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14032 archive_cmds_need_lc_F77=no
14033 allow_undefined_flag_F77=
14034 always_export_symbols_F77=no
14035 archive_expsym_cmds_F77=
14036 export_dynamic_flag_spec_F77=
14037 hardcode_direct_F77=no
14038 hardcode_libdir_flag_spec_F77=
14039 hardcode_libdir_flag_spec_ld_F77=
14040 hardcode_libdir_separator_F77=
14041 hardcode_minus_L_F77=no
14042 hardcode_automatic_F77=no
14044 module_expsym_cmds_F77=
14045 link_all_deplibs_F77=unknown
14046 old_archive_cmds_F77=$old_archive_cmds
14047 no_undefined_flag_F77=
14048 whole_archive_flag_spec_F77=
14049 enable_shared_with_static_runtimes_F77=no
14051 # Source file extension for f77 test sources.
14054 # Object file extension for compiled f77 test sources.
14058 # Code to be used in simple compile tests
14059 lt_simple_compile_test_code="\
14065 # Code to be used in simple link tests
14066 lt_simple_link_test_code="\
14071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14073 # If no C compiler was specified, use CC.
14076 # If no C compiler flags were specified, use CFLAGS.
14077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14079 # Allow CC to be a program name with arguments.
14083 # save warnings/boilerplate of simple test code
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14087 _lt_compiler_boilerplate=`cat conftest.err`
14090 ac_outfile=conftest.$ac_objext
14091 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_linker_boilerplate=`cat conftest.err`
14097 # Allow CC to be a program name with arguments.
14102 for cc_temp in $compiler""; do
14104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14113 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14115 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14116 echo "${ECHO_T}$can_build_shared" >&6; }
14118 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14120 test "$can_build_shared" = "no" && enable_shared=no
14122 # On AIX, shared libraries and static libraries use the same namespace, and
14123 # are all built from PIC.
14126 test "$enable_shared" = yes && enable_static=no
14127 if test -n "$RANLIB"; then
14128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14129 postinstall_cmds='$RANLIB $lib'
14133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14134 test "$enable_shared" = yes && enable_static=no
14138 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14139 echo "${ECHO_T}$enable_shared" >&6; }
14141 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14143 # Make sure either enable_shared or enable_static is yes.
14144 test "$enable_shared" = yes || enable_static=yes
14145 { echo "$as_me:$LINENO: result: $enable_static" >&5
14146 echo "${ECHO_T}$enable_static" >&6; }
14151 lt_prog_compiler_wl_F77=
14152 lt_prog_compiler_pic_F77=
14153 lt_prog_compiler_static_F77=
14155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14158 if test "$GCC" = yes; then
14159 lt_prog_compiler_wl_F77='-Wl,'
14160 lt_prog_compiler_static_F77='-static'
14164 # All AIX code is PIC.
14165 if test "$host_cpu" = ia64; then
14166 # AIX 5 now supports IA64 processor
14167 lt_prog_compiler_static_F77='-Bstatic'
14172 # FIXME: we need at least 68020 code to build shared libraries, but
14173 # adding the `-m68020' flag to GCC prevents building anything better,
14175 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14179 # PIC is the default for these OSes.
14182 mingw* | cygwin* | pw32* | os2*)
14183 # This hack is so that the source file can tell whether it is being
14184 # built for inclusion in a dll (and should export symbols for example).
14185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14186 # (--disable-auto-import) libraries
14187 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14190 darwin* | rhapsody*)
14191 # PIC is the default on this platform
14192 # Common symbols not allowed in MH_DYLIB files
14193 lt_prog_compiler_pic_F77='-fno-common'
14197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14198 # Instead, we relocate shared libraries at runtime.
14202 # Just because we use GCC doesn't mean we suddenly get shared libraries
14203 # on systems that don't support them.
14204 lt_prog_compiler_can_build_shared_F77=no
14209 if test -d /usr/nec; then
14210 lt_prog_compiler_pic_F77=-Kconform_pic
14215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14216 # not for PA HP-UX.
14222 lt_prog_compiler_pic_F77='-fPIC'
14228 lt_prog_compiler_pic_F77='-fPIC'
14232 # PORTME Check for flag to pass linker flags through the system compiler.
14235 lt_prog_compiler_wl_F77='-Wl,'
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static_F77='-Bstatic'
14240 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14244 # PIC is the default on this platform
14245 # Common symbols not allowed in MH_DYLIB files
14246 case $cc_basename in
14248 lt_prog_compiler_pic_F77='-qnocommon'
14249 lt_prog_compiler_wl_F77='-Wl,'
14254 mingw* | cygwin* | pw32* | os2*)
14255 # This hack is so that the source file can tell whether it is being
14256 # built for inclusion in a dll (and should export symbols for example).
14257 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14260 hpux9* | hpux10* | hpux11*)
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14263 # not for PA HP-UX.
14269 lt_prog_compiler_pic_F77='+Z'
14272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14273 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14276 irix5* | irix6* | nonstopux*)
14277 lt_prog_compiler_wl_F77='-Wl,'
14278 # PIC (with -KPIC) is the default.
14279 lt_prog_compiler_static_F77='-non_shared'
14283 lt_prog_compiler_pic_F77='-KPIC'
14284 lt_prog_compiler_static_F77='-Bstatic'
14287 linux* | k*bsd*-gnu)
14288 case $cc_basename in
14290 lt_prog_compiler_wl_F77='-Wl,'
14291 lt_prog_compiler_pic_F77='-KPIC'
14292 lt_prog_compiler_static_F77='-static'
14294 pgcc* | pgf77* | pgf90* | pgf95*)
14295 # Portland Group compilers (*not* the Pentium gcc compiler,
14296 # which looks to be a dead project)
14297 lt_prog_compiler_wl_F77='-Wl,'
14298 lt_prog_compiler_pic_F77='-fpic'
14299 lt_prog_compiler_static_F77='-Bstatic'
14302 lt_prog_compiler_wl_F77='-Wl,'
14303 # All Alpha code is PIC.
14304 lt_prog_compiler_static_F77='-non_shared'
14307 case `$CC -V 2>&1 | sed 5q` in
14310 lt_prog_compiler_pic_F77='-KPIC'
14311 lt_prog_compiler_static_F77='-Bstatic'
14312 lt_prog_compiler_wl_F77='-Wl,'
14315 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14316 lt_prog_compiler_pic_F77='-KPIC'
14317 lt_prog_compiler_static_F77='-Bstatic'
14318 lt_prog_compiler_wl_F77=''
14325 osf3* | osf4* | osf5*)
14326 lt_prog_compiler_wl_F77='-Wl,'
14327 # All OSF/1 code is PIC.
14328 lt_prog_compiler_static_F77='-non_shared'
14332 lt_prog_compiler_static_F77='-non_shared'
14336 lt_prog_compiler_pic_F77='-KPIC'
14337 lt_prog_compiler_static_F77='-Bstatic'
14338 case $cc_basename in
14339 f77* | f90* | f95*)
14340 lt_prog_compiler_wl_F77='-Qoption ld ';;
14342 lt_prog_compiler_wl_F77='-Wl,';;
14347 lt_prog_compiler_wl_F77='-Qoption ld '
14348 lt_prog_compiler_pic_F77='-PIC'
14349 lt_prog_compiler_static_F77='-Bstatic'
14352 sysv4 | sysv4.2uw2* | sysv4.3*)
14353 lt_prog_compiler_wl_F77='-Wl,'
14354 lt_prog_compiler_pic_F77='-KPIC'
14355 lt_prog_compiler_static_F77='-Bstatic'
14359 if test -d /usr/nec ;then
14360 lt_prog_compiler_pic_F77='-Kconform_pic'
14361 lt_prog_compiler_static_F77='-Bstatic'
14365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14366 lt_prog_compiler_wl_F77='-Wl,'
14367 lt_prog_compiler_pic_F77='-KPIC'
14368 lt_prog_compiler_static_F77='-Bstatic'
14372 lt_prog_compiler_wl_F77='-Wl,'
14373 lt_prog_compiler_can_build_shared_F77=no
14377 lt_prog_compiler_pic_F77='-pic'
14378 lt_prog_compiler_static_F77='-Bstatic'
14382 lt_prog_compiler_can_build_shared_F77=no
14387 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14388 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14391 # Check to make sure the PIC flag actually works.
14393 if test -n "$lt_prog_compiler_pic_F77"; then
14395 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14396 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14397 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 lt_cv_prog_compiler_pic_works_F77=no
14401 ac_outfile=conftest.$ac_objext
14402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14404 # Insert the option either (1) after the last *FLAGS variable, or
14405 # (2) before a word containing "conftest.", or (3) at the end.
14406 # Note that $ac_compile itself does not contain backslashes and begins
14407 # with a dollar sign (not a hyphen), so the echo should work correctly.
14408 # The option is referenced via a variable to avoid confusing sed.
14409 lt_compile=`echo "$ac_compile" | $SED \
14410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14412 -e 's:$: $lt_compiler_flag:'`
14413 (eval echo "\"\$as_me:14413: $lt_compile\"" >&5)
14414 (eval "$lt_compile" 2>conftest.err)
14416 cat conftest.err >&5
14417 echo "$as_me:14417: \$? = $ac_status" >&5
14418 if (exit $ac_status) && test -s "$ac_outfile"; then
14419 # The compiler can only warn and ignore the option if not recognized
14420 # So say no if there are warnings other than the usual output.
14421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14424 lt_cv_prog_compiler_pic_works_F77=yes
14430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14431 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14433 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14434 case $lt_prog_compiler_pic_F77 in
14436 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14439 lt_prog_compiler_pic_F77=
14440 lt_prog_compiler_can_build_shared_F77=no
14445 # For platforms which do not support PIC, -DPIC is meaningless:
14447 lt_prog_compiler_pic_F77=
14450 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14455 # Check to make sure the static flag actually works.
14457 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14458 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14460 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 lt_cv_prog_compiler_static_works_F77=no
14464 save_LDFLAGS="$LDFLAGS"
14465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14468 # The linker can only warn and ignore the option if not recognized
14469 # So say no if there are warnings
14470 if test -s conftest.err; then
14471 # Append any errors to the config.log.
14472 cat conftest.err 1>&5
14473 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14475 if diff conftest.exp conftest.er2 >/dev/null; then
14476 lt_cv_prog_compiler_static_works_F77=yes
14479 lt_cv_prog_compiler_static_works_F77=yes
14483 LDFLAGS="$save_LDFLAGS"
14486 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14487 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14489 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14492 lt_prog_compiler_static_F77=
14496 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14497 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14498 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 lt_cv_prog_compiler_c_o_F77=no
14502 $rm -r conftest 2>/dev/null
14506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14508 lt_compiler_flag="-o out/conftest2.$ac_objext"
14509 # Insert the option either (1) after the last *FLAGS variable, or
14510 # (2) before a word containing "conftest.", or (3) at the end.
14511 # Note that $ac_compile itself does not contain backslashes and begins
14512 # with a dollar sign (not a hyphen), so the echo should work correctly.
14513 lt_compile=`echo "$ac_compile" | $SED \
14514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14516 -e 's:$: $lt_compiler_flag:'`
14517 (eval echo "\"\$as_me:14517: $lt_compile\"" >&5)
14518 (eval "$lt_compile" 2>out/conftest.err)
14520 cat out/conftest.err >&5
14521 echo "$as_me:14521: \$? = $ac_status" >&5
14522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14524 # The compiler can only warn and ignore the option if not recognized
14525 # So say no if there are warnings
14526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14529 lt_cv_prog_compiler_c_o_F77=yes
14534 # SGI C++ compiler will create directory out/ii_files/ for
14535 # template instantiation
14536 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14537 $rm out/* && rmdir out
14543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14544 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14547 hard_links="nottested"
14548 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14549 # do not overwrite the value of need_locks provided by the user
14550 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14556 ln conftest.a conftest.b 2>&5 || hard_links=no
14557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14558 { echo "$as_me:$LINENO: result: $hard_links" >&5
14559 echo "${ECHO_T}$hard_links" >&6; }
14560 if test "$hard_links" = no; then
14561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14569 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14570 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14573 allow_undefined_flag_F77=
14574 enable_shared_with_static_runtimes_F77=no
14576 archive_expsym_cmds_F77=
14577 old_archive_From_new_cmds_F77=
14578 old_archive_from_expsyms_cmds_F77=
14579 export_dynamic_flag_spec_F77=
14580 whole_archive_flag_spec_F77=
14581 thread_safe_flag_spec_F77=
14582 hardcode_libdir_flag_spec_F77=
14583 hardcode_libdir_flag_spec_ld_F77=
14584 hardcode_libdir_separator_F77=
14585 hardcode_direct_F77=no
14586 hardcode_minus_L_F77=no
14587 hardcode_shlibpath_var_F77=unsupported
14588 link_all_deplibs_F77=unknown
14589 hardcode_automatic_F77=no
14591 module_expsym_cmds_F77=
14592 always_export_symbols_F77=no
14593 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14594 # include_expsyms should be a list of space-separated symbols to be *always*
14595 # included in the symbol list
14596 include_expsyms_F77=
14597 # exclude_expsyms can be an extended regexp of symbols to exclude
14598 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14599 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14600 # as well as any symbol that contains `d'.
14601 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14602 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14603 # platforms (ab)use it in PIC code, but their linkers get confused if
14604 # the symbol is explicitly referenced. Since portable code cannot
14605 # rely on this symbol name, it's probably fine to never include it in
14606 # preloaded symbol tables.
14607 # Exclude shared library initialization/finalization symbols.
14608 extract_expsyms_cmds=
14609 # Just being paranoid about ensuring that cc_basename is set.
14610 for cc_temp in $compiler""; do
14612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14621 cygwin* | mingw* | pw32*)
14622 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14623 # When not using gcc, we currently assume that we are using
14624 # Microsoft Visual C++.
14625 if test "$GCC" != yes; then
14630 # we just hope/assume this is gcc and not c89 (= MSVC++)
14639 if test "$with_gnu_ld" = yes; then
14640 # If archive_cmds runs LD, not CC, wlarc should be empty
14643 # Set some defaults for GNU ld with shared library support. These
14644 # are reset later if shared libraries are not supported. Putting them
14645 # here allows them to be overridden if necessary.
14646 runpath_var=LD_RUN_PATH
14647 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14648 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14649 # ancient GNU ld didn't support --whole-archive et. al.
14650 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14651 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14653 whole_archive_flag_spec_F77=
14655 supports_anon_versioning=no
14656 case `$LD -v 2>/dev/null` in
14657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14660 *\ 2.11.*) ;; # other 2.11 versions
14661 *) supports_anon_versioning=yes ;;
14664 # See if GNU ld supports shared libraries.
14667 # On AIX/PPC, the GNU linker is very broken
14668 if test "$host_cpu" != ia64; then
14672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14673 *** to be unable to reliably create shared libraries on AIX.
14674 *** Therefore, libtool is disabling shared libraries support. If you
14675 *** really care for shared libraries, you may want to modify your PATH
14676 *** so that a non-GNU linker is found, and then restart.
14683 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14684 hardcode_libdir_flag_spec_F77='-L$libdir'
14685 hardcode_minus_L_F77=yes
14687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14688 # that the semantics of dynamic libraries on AmigaOS, at least up
14689 # to version 4, is to share data among multiple programs linked
14690 # with the same dynamic library. Since this doesn't match the
14691 # behavior of shared libraries on other platforms, we can't use
14697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698 allow_undefined_flag_F77=unsupported
14699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14700 # support --undefined. This deserves some investigation. FIXME
14701 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14707 cygwin* | mingw* | pw32*)
14708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14709 # as there is no search path for DLLs.
14710 hardcode_libdir_flag_spec_F77='-L$libdir'
14711 allow_undefined_flag_F77=unsupported
14712 always_export_symbols_F77=no
14713 enable_shared_with_static_runtimes_F77=yes
14714 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14717 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718 # If the export-symbols file already is a .def file (1st line
14719 # is EXPORTS), use it as is; otherwise, prepend...
14720 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14721 cp $export_symbols $output_objdir/$soname.def;
14723 echo EXPORTS > $output_objdir/$soname.def;
14724 cat $export_symbols >> $output_objdir/$soname.def;
14726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14733 hardcode_direct_F77=no
14734 hardcode_shlibpath_var_F77=no
14735 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14736 export_dynamic_flag_spec_F77='${wl}-E'
14737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14738 # Instead, shared libraries are loaded at an image base (0x10000000 by
14739 # default) and relocated if they conflict, which is a slow very memory
14740 # consuming and fragmenting process. To avoid this, we pick a random,
14741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14743 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14744 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14747 gnu* | linux* | k*bsd*-gnu)
14748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14750 case $cc_basename,$host_cpu in
14751 pgcc*) # Portland Group C compiler
14752 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14753 tmp_addflag=' $pic_flag'
14755 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14756 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14757 tmp_addflag=' $pic_flag -Mnomain' ;;
14758 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14759 tmp_addflag=' -i_dynamic' ;;
14760 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14761 tmp_addflag=' -i_dynamic -nofor_main' ;;
14762 ifc* | ifort*) # Intel Fortran compiler
14763 tmp_addflag=' -nofor_main' ;;
14765 case `$CC -V 2>&1 | sed 5q` in
14766 *Sun\ C*) # Sun C 5.9
14767 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14768 tmp_sharedflag='-G' ;;
14769 *Sun\ F*) # Sun Fortran 8.3
14770 tmp_sharedflag='-G' ;;
14772 tmp_sharedflag='-shared' ;;
14774 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14776 if test $supports_anon_versioning = yes; then
14777 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14779 $echo "local: *; };" >> $output_objdir/$libname.ver~
14780 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14782 link_all_deplibs_F77=no
14788 netbsd* | netbsdelf*-gnu)
14789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14790 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14799 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14804 *** create shared libraries on Solaris systems. Therefore, libtool
14805 *** is disabling shared libraries support. We urge you to upgrade GNU
14806 *** binutils to release 2.9.1 or newer. Another option is to modify
14807 *** your PATH or compiler configuration so that the native linker is
14808 *** used, and then restart.
14811 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14812 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14820 case `$LD -v 2>&1` in
14821 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14825 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14826 *** reliably create shared libraries on SCO systems. Therefore, libtool
14827 *** is disabling shared libraries support. We urge you to upgrade GNU
14828 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14829 *** your PATH or compiler configuration so that the native linker is
14830 *** used, and then restart.
14835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14837 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14838 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14847 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14849 hardcode_direct_F77=yes
14850 hardcode_shlibpath_var_F77=no
14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14863 if test "$ld_shlibs_F77" = no; then
14865 hardcode_libdir_flag_spec_F77=
14866 export_dynamic_flag_spec_F77=
14867 whole_archive_flag_spec_F77=
14870 # PORTME fill in a description of your system's linker (not GNU ld)
14873 allow_undefined_flag_F77=unsupported
14874 always_export_symbols_F77=yes
14875 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14876 # Note: this linker hardcodes the directories in LIBPATH if there
14877 # are no directories specified by -L.
14878 hardcode_minus_L_F77=yes
14879 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14880 # Neither direct hardcoding nor static linking is supported with a
14882 hardcode_direct_F77=unsupported
14887 if test "$host_cpu" = ia64; then
14888 # On IA64, the linker does run time linking by default, so we don't
14889 # have to do anything special.
14890 aix_use_runtimelinking=no
14891 exp_sym_flag='-Bexport'
14894 # If we're using GNU nm, then we don't want the "-C" option.
14895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14896 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14897 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14899 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14901 aix_use_runtimelinking=no
14903 # Test if we are trying to use run time linking or normal
14904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14905 # need to do runtime linking.
14906 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14907 for ld_flag in $LDFLAGS; do
14908 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14909 aix_use_runtimelinking=yes
14916 exp_sym_flag='-bexport'
14917 no_entry_flag='-bnoentry'
14920 # When large executables or shared objects are built, AIX ld can
14921 # have problems creating the table of contents. If linking a library
14922 # or program results in "error TOC overflow" add -mminimal-toc to
14923 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14924 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14926 archive_cmds_F77=''
14927 hardcode_direct_F77=yes
14928 hardcode_libdir_separator_F77=':'
14929 link_all_deplibs_F77=yes
14931 if test "$GCC" = yes; then
14932 case $host_os in aix4.[012]|aix4.[012].*)
14933 # We only want to do this on AIX 4.2 and lower, the check
14934 # below for broken collect2 doesn't work under 4.3+
14935 collect2name=`${CC} -print-prog-name=collect2`
14936 if test -f "$collect2name" && \
14937 strings "$collect2name" | grep resolve_lib_name >/dev/null
14939 # We have reworked collect2
14942 # We have old collect2
14943 hardcode_direct_F77=unsupported
14944 # It fails to find uninstalled libraries when the uninstalled
14945 # path is not listed in the libpath. Setting hardcode_minus_L
14946 # to unsupported forces relinking
14947 hardcode_minus_L_F77=yes
14948 hardcode_libdir_flag_spec_F77='-L$libdir'
14949 hardcode_libdir_separator_F77=
14953 shared_flag='-shared'
14954 if test "$aix_use_runtimelinking" = yes; then
14955 shared_flag="$shared_flag "'${wl}-G'
14959 if test "$host_cpu" = ia64; then
14960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14961 # chokes on -Wl,-G. The following line is correct:
14964 if test "$aix_use_runtimelinking" = yes; then
14965 shared_flag='${wl}-G'
14967 shared_flag='${wl}-bM:SRE'
14972 # It seems that -bexpall does not export symbols beginning with
14973 # underscore (_), so it is better to generate a list of symbols to export.
14974 always_export_symbols_F77=yes
14975 if test "$aix_use_runtimelinking" = yes; then
14976 # Warning - without using the other runtime loading flags (-brtl),
14977 # -berok will link without error, but may produce a broken library.
14978 allow_undefined_flag_F77='-berok'
14979 # Determine the default libpath from the value encoded in an empty executable.
14980 cat >conftest.$ac_ext <<_ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_link") 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } && {
14999 test -z "$ac_f77_werror_flag" ||
15000 test ! -s conftest.err
15001 } && test -s conftest$ac_exeext &&
15002 $as_test_x conftest$ac_exeext; then
15004 lt_aix_libpath_sed='
15005 /Import File Strings/,/^$/ {
15011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15012 # Check for a 64-bit object if we didn't find anything.
15013 if test -z "$aix_libpath"; then
15014 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024 conftest$ac_exeext conftest.$ac_ext
15025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15027 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15028 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15030 if test "$host_cpu" = ia64; then
15031 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15032 allow_undefined_flag_F77="-z nodefs"
15033 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15035 # Determine the default libpath from the value encoded in an empty executable.
15036 cat >conftest.$ac_ext <<_ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (ac_try="$ac_link"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_link") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1 >conftest.err
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_f77_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest$ac_exeext &&
15058 $as_test_x conftest$ac_exeext; then
15060 lt_aix_libpath_sed='
15061 /Import File Strings/,/^$/ {
15067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15068 # Check for a 64-bit object if we didn't find anything.
15069 if test -z "$aix_libpath"; then
15070 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15083 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15084 # Warning - without using the other run time loading flags,
15085 # -berok will link without error, but may produce a broken library.
15086 no_undefined_flag_F77=' ${wl}-bernotok'
15087 allow_undefined_flag_F77=' ${wl}-berok'
15088 # Exported symbols can be pulled into shared objects from archives
15089 whole_archive_flag_spec_F77='$convenience'
15090 archive_cmds_need_lc_F77=yes
15091 # This is similar to how AIX traditionally builds its shared libraries.
15092 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15098 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15099 hardcode_libdir_flag_spec_F77='-L$libdir'
15100 hardcode_minus_L_F77=yes
15101 # see comment about different semantics on the GNU ld section
15106 export_dynamic_flag_spec_F77=-rdynamic
15109 cygwin* | mingw* | pw32*)
15110 # When not using gcc, we currently assume that we are using
15111 # Microsoft Visual C++.
15112 # hardcode_libdir_flag_spec is actually meaningless, as there is
15113 # no search path for DLLs.
15114 hardcode_libdir_flag_spec_F77=' '
15115 allow_undefined_flag_F77=unsupported
15116 # Tell ltmain to make .lib files, not .a files.
15118 # Tell ltmain to make .dll files, not .so files.
15120 # FIXME: Setting linknames here is a bad hack.
15121 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15122 # The linker will automatically build a .lib file if we build a DLL.
15123 old_archive_From_new_cmds_F77='true'
15124 # FIXME: Should let the user specify the lib program.
15125 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15126 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15127 enable_shared_with_static_runtimes_F77=yes
15130 darwin* | rhapsody*)
15132 rhapsody* | darwin1.[012])
15133 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15137 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15139 case ${MACOSX_DEPLOYMENT_TARGET} in
15141 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15144 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15150 archive_cmds_need_lc_F77=no
15151 hardcode_direct_F77=no
15152 hardcode_automatic_F77=yes
15153 hardcode_shlibpath_var_F77=unsupported
15154 whole_archive_flag_spec_F77=''
15155 link_all_deplibs_F77=yes
15156 if test "$GCC" = yes ; then
15157 output_verbose_link_cmd='echo'
15158 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15159 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15160 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15161 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15163 case $cc_basename in
15165 output_verbose_link_cmd='echo'
15166 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15167 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15169 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15170 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15181 hardcode_libdir_flag_spec_F77='-L$libdir'
15182 hardcode_shlibpath_var_F77=no
15189 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15190 # support. Future versions do this automatically, but an explicit c++rt0.o
15191 # does not break anything, and helps significantly (at the cost of a little
15194 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15195 hardcode_libdir_flag_spec_F77='-R$libdir'
15196 hardcode_direct_F77=yes
15197 hardcode_shlibpath_var_F77=no
15200 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15202 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15203 hardcode_direct_F77=yes
15204 hardcode_minus_L_F77=yes
15205 hardcode_shlibpath_var_F77=no
15208 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15209 freebsd* | dragonfly*)
15210 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15211 hardcode_libdir_flag_spec_F77='-R$libdir'
15212 hardcode_direct_F77=yes
15213 hardcode_shlibpath_var_F77=no
15217 if test "$GCC" = yes; then
15218 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15220 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15222 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15223 hardcode_libdir_separator_F77=:
15224 hardcode_direct_F77=yes
15226 # hardcode_minus_L: Not really in the search PATH,
15227 # but as the default location of the library.
15228 hardcode_minus_L_F77=yes
15229 export_dynamic_flag_spec_F77='${wl}-E'
15233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15234 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15238 if test "$with_gnu_ld" = no; then
15239 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15240 hardcode_libdir_separator_F77=:
15242 hardcode_direct_F77=yes
15243 export_dynamic_flag_spec_F77='${wl}-E'
15245 # hardcode_minus_L: Not really in the search PATH,
15246 # but as the default location of the library.
15247 hardcode_minus_L_F77=yes
15252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15255 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15258 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15267 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15270 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15273 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15277 if test "$with_gnu_ld" = no; then
15278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15279 hardcode_libdir_separator_F77=:
15283 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15284 hardcode_direct_F77=no
15285 hardcode_shlibpath_var_F77=no
15288 hardcode_direct_F77=yes
15289 export_dynamic_flag_spec_F77='${wl}-E'
15291 # hardcode_minus_L: Not really in the search PATH,
15292 # but as the default location of the library.
15293 hardcode_minus_L_F77=yes
15299 irix5* | irix6* | nonstopux*)
15300 if test "$GCC" = yes; then
15301 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15303 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15304 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15306 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307 hardcode_libdir_separator_F77=:
15308 link_all_deplibs_F77=yes
15311 netbsd* | netbsdelf*-gnu)
15312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15313 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15315 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15317 hardcode_libdir_flag_spec_F77='-R$libdir'
15318 hardcode_direct_F77=yes
15319 hardcode_shlibpath_var_F77=no
15323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15324 hardcode_direct_F77=yes
15325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326 hardcode_libdir_separator_F77=:
15327 hardcode_shlibpath_var_F77=no
15331 if test -f /usr/libexec/ld.so; then
15332 hardcode_direct_F77=yes
15333 hardcode_shlibpath_var_F77=no
15334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15335 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15336 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15337 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15338 export_dynamic_flag_spec_F77='${wl}-E'
15341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15342 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_libdir_flag_spec_F77='-R$libdir'
15346 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15347 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15357 hardcode_libdir_flag_spec_F77='-L$libdir'
15358 hardcode_minus_L_F77=yes
15359 allow_undefined_flag_F77=unsupported
15360 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15361 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15365 if test "$GCC" = yes; then
15366 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15367 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15369 allow_undefined_flag_F77=' -expect_unresolved \*'
15370 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15373 hardcode_libdir_separator_F77=:
15376 osf4* | osf5*) # as osf3* with the addition of -msym flag
15377 if test "$GCC" = yes; then
15378 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15379 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15382 allow_undefined_flag_F77=' -expect_unresolved \*'
15383 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15384 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15385 $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'
15387 # Both c and cxx compiler support -rpath directly
15388 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15390 hardcode_libdir_separator_F77=:
15394 no_undefined_flag_F77=' -z text'
15395 if test "$GCC" = yes; then
15397 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15398 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15402 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15403 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15406 hardcode_libdir_flag_spec_F77='-R$libdir'
15407 hardcode_shlibpath_var_F77=no
15409 solaris2.[0-5] | solaris2.[0-5].*) ;;
15411 # The compiler driver will combine and reorder linker options,
15412 # but understands `-z linker_flag'. GCC discards it without `$wl',
15413 # but is careful enough not to reorder.
15414 # Supported since Solaris 2.6 (maybe 2.5.1?)
15415 if test "$GCC" = yes; then
15416 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15418 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15422 link_all_deplibs_F77=yes
15426 if test "x$host_vendor" = xsequent; then
15427 # Use $CC to link under sequent, because it throws in some extra .o
15428 # files that make .init and .fini sections work.
15429 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15431 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_libdir_flag_spec_F77='-L$libdir'
15434 hardcode_direct_F77=yes
15435 hardcode_minus_L_F77=yes
15436 hardcode_shlibpath_var_F77=no
15440 case $host_vendor in
15442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443 hardcode_direct_F77=yes # is this really true???
15446 ## LD is ld it makes a PLAMLIB
15447 ## CC just makes a GrossModule.
15448 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15449 reload_cmds_F77='$CC -r -o $output$reload_objs'
15450 hardcode_direct_F77=no
15453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15457 runpath_var='LD_RUN_PATH'
15458 hardcode_shlibpath_var_F77=no
15462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_shlibpath_var_F77=no
15464 export_dynamic_flag_spec_F77='-Bexport'
15468 if test -d /usr/nec; then
15469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15470 hardcode_shlibpath_var_F77=no
15471 runpath_var=LD_RUN_PATH
15472 hardcode_runpath_var=yes
15477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15478 no_undefined_flag_F77='${wl}-z,text'
15479 archive_cmds_need_lc_F77=no
15480 hardcode_shlibpath_var_F77=no
15481 runpath_var='LD_RUN_PATH'
15483 if test "$GCC" = yes; then
15484 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15487 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15488 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15492 sysv5* | sco3.2v5* | sco5v6*)
15493 # Note: We can NOT use -z defs as we might desire, because we do not
15494 # link with -lc, and that would cause any symbols used from libc to
15495 # always be unresolved, which means just about no library would
15496 # ever link correctly. If we're not using GNU ld we use -z text
15497 # though, which does catch some bad symbols but isn't as heavy-handed
15499 no_undefined_flag_F77='${wl}-z,text'
15500 allow_undefined_flag_F77='${wl}-z,nodefs'
15501 archive_cmds_need_lc_F77=no
15502 hardcode_shlibpath_var_F77=no
15503 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15504 hardcode_libdir_separator_F77=':'
15505 link_all_deplibs_F77=yes
15506 export_dynamic_flag_spec_F77='${wl}-Bexport'
15507 runpath_var='LD_RUN_PATH'
15509 if test "$GCC" = yes; then
15510 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15513 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_libdir_flag_spec_F77='-L$libdir'
15521 hardcode_shlibpath_var_F77=no
15530 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15531 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15532 test "$ld_shlibs_F77" = no && can_build_shared=no
15535 # Do we need to explicitly link libc?
15537 case "x$archive_cmds_need_lc_F77" in
15539 # Assume -lc should be added
15540 archive_cmds_need_lc_F77=yes
15542 if test "$enable_shared" = yes && test "$GCC" = yes; then
15543 case $archive_cmds_F77 in
15545 # FIXME: we may have to deal with multi-command sequences.
15548 # Test whether the compiler implicitly links with -lc since on some
15549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15550 # to ld, don't add -lc before -lgcc.
15551 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15552 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } 2>conftest.err; then
15563 libobjs=conftest.$ac_objext
15565 wl=$lt_prog_compiler_wl_F77
15566 pic_flag=$lt_prog_compiler_pic_F77
15572 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15573 allow_undefined_flag_F77=
15574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15575 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }
15580 archive_cmds_need_lc_F77=no
15582 archive_cmds_need_lc_F77=yes
15584 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15586 cat conftest.err 1>&5
15589 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15590 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15597 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15599 library_names_spec=
15600 libname_spec='lib$name'
15604 postuninstall_cmds=
15608 shlibpath_overrides_runpath=unknown
15610 dynamic_linker="$host_os ld.so"
15611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15613 need_lib_prefix=unknown
15614 hardcode_into_libs=no
15616 # when you set need_version to no, make sure it does not cause -set_version
15617 # flags to be left without arguments
15618 need_version=unknown
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15624 shlibpath_var=LIBPATH
15626 # AIX 3 has no versioning support, so we append a major version to the name.
15627 soname_spec='${libname}${release}${shared_ext}$major'
15634 hardcode_into_libs=yes
15635 if test "$host_cpu" = ia64; then
15636 # AIX 5 supports IA64
15637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15638 shlibpath_var=LD_LIBRARY_PATH
15640 # With GCC up to 2.95.x, collect2 would create an import file
15641 # for dependence libraries. The import file would start with
15642 # the line `#! .'. This would cause the generated library to
15643 # depend on `.', always an invalid library. This was fixed in
15644 # development snapshots of GCC prior to 3.0.
15646 aix4 | aix4.[01] | aix4.[01].*)
15647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15649 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15652 can_build_shared=no
15656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15657 # soname into executable. Probably we can add versioning support to
15658 # collect2, so additional links can be useful in future.
15659 if test "$aix_use_runtimelinking" = yes; then
15660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15661 # instead of lib<name>.a to let people know that these are not
15662 # typical AIX shared libraries.
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 # We preserve .a as extension for shared libraries through AIX4.2
15666 # and later when we are not doing run time linking.
15667 library_names_spec='${libname}${release}.a $libname.a'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15670 shlibpath_var=LIBPATH
15675 library_names_spec='$libname.ixlibrary $libname.a'
15676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15677 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15681 library_names_spec='${libname}${shared_ext}'
15682 dynamic_linker="$host_os ld.so"
15683 shlibpath_var=LIBRARY_PATH
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690 soname_spec='${libname}${release}${shared_ext}$major'
15691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15695 # the default ld.so.conf also contains /usr/contrib/lib and
15696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15697 # libtool to hard-code these into programs
15700 cygwin* | mingw* | pw32*)
15701 version_type=windows
15706 case $GCC,$host_os in
15707 yes,cygwin* | yes,mingw* | yes,pw32*)
15708 library_names_spec='$libname.dll.a'
15709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15710 postinstall_cmds='base_file=`basename \${file}`~
15711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15712 dldir=$destdir/`dirname \$dlpath`~
15713 test -d \$dldir || mkdir -p \$dldir~
15714 $install_prog $dir/$dlname \$dldir/$dlname~
15715 chmod a+x \$dldir/$dlname'
15716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15717 dlpath=$dir/\$dldll~
15719 shlibpath_overrides_runpath=yes
15723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15728 # MinGW DLLs use traditional 'lib' prefix
15729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15732 # It is most probably a Windows format PATH printed by
15733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15734 # path with ; separators, and with drive letters. We can handle the
15735 # drive letters (cygwin fileutils understands them), so leave them,
15736 # especially as we might pass files found there to a mingw objdump,
15737 # which wouldn't understand a cygwinified path. Ahh.
15738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15744 # pw32 DLLs use 'pw' prefix rather than 'lib'
15745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15754 dynamic_linker='Win32 ld.exe'
15755 # FIXME: first we should search . and the directory the executable is in
15759 darwin* | rhapsody*)
15760 dynamic_linker="$host_os dyld"
15761 version_type=darwin
15764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15765 soname_spec='${libname}${release}${major}$shared_ext'
15766 shlibpath_overrides_runpath=yes
15767 shlibpath_var=DYLD_LIBRARY_PATH
15768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15770 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15786 freebsd* | dragonfly*)
15787 # DragonFly does not have aout. When/if they implement a new
15788 # versioning mechanism, adjust this.
15789 if test -x /usr/bin/objformat; then
15790 objformat=`/usr/bin/objformat`
15793 freebsd[123]*) objformat=aout ;;
15794 *) objformat=elf ;;
15797 version_type=freebsd-$objformat
15798 case $version_type in
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15809 shlibpath_var=LD_LIBRARY_PATH
15812 shlibpath_overrides_runpath=yes
15814 freebsd3.[01]* | freebsdelf3.[01]*)
15815 shlibpath_overrides_runpath=yes
15816 hardcode_into_libs=yes
15818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15820 shlibpath_overrides_runpath=no
15821 hardcode_into_libs=yes
15823 *) # from 4.6 on, and DragonFly
15824 shlibpath_overrides_runpath=yes
15825 hardcode_into_libs=yes
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 hardcode_into_libs=yes
15840 hpux9* | hpux10* | hpux11*)
15841 # Give a soname corresponding to the major version so that dld.sl refuses to
15842 # link against other versions.
15849 hardcode_into_libs=yes
15850 dynamic_linker="$host_os dld.so"
15851 shlibpath_var=LD_LIBRARY_PATH
15852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 if test "X$HPUX_IA64_MODE" = X32; then
15856 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15858 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15864 hardcode_into_libs=yes
15865 dynamic_linker="$host_os dld.sl"
15866 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869 soname_spec='${libname}${release}${shared_ext}$major'
15870 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15875 dynamic_linker="$host_os dld.sl"
15876 shlibpath_var=SHLIB_PATH
15877 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15882 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15883 postinstall_cmds='chmod 555 $lib'
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=no
15895 hardcode_into_libs=yes
15898 irix5* | irix6* | nonstopux*)
15900 nonstopux*) version_type=nonstopux ;;
15902 if test "$lt_cv_prog_gnu_ld" = yes; then
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15913 irix5* | nonstopux*)
15914 libsuff= shlibsuff=
15917 case $LD in # libtool.m4 will add one of these switches to LD
15918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15919 libsuff= shlibsuff= libmagic=32-bit;;
15920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15921 libsuff=32 shlibsuff=N32 libmagic=N32;;
15922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15924 *) libsuff= shlibsuff= libmagic=never-match;;
15928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15929 shlibpath_overrides_runpath=no
15930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15932 hardcode_into_libs=yes
15935 # No shared lib support for Linux oldld, aout, or coff.
15936 linux*oldld* | linux*aout* | linux*coff*)
15940 # This must be Linux ELF.
15941 linux* | k*bsd*-gnu)
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 soname_spec='${libname}${release}${shared_ext}$major'
15947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=no
15950 # This implies no fast_install, which is unacceptable.
15951 # Some rework will be needed to allow for fast_install
15952 # before this can be enabled.
15953 hardcode_into_libs=yes
15955 # Append ld.so.conf contents to the search path
15956 if test -f /etc/ld.so.conf; then
15957 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15961 # We used to test for /lib/ld.so.1 and disable shared libraries on
15962 # powerpc, because MkLinux only supported shared libraries with the
15963 # GNU dynamic linker. Since this was broken with cross compilers,
15964 # most powerpc-linux boxes support dynamic linking these days and
15965 # people can always --disable-shared, the test was removed, and we
15966 # assume the GNU/Linux dynamic linker is in use.
15967 dynamic_linker='GNU/Linux ld.so'
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=no
15978 hardcode_into_libs=yes
15979 dynamic_linker='NetBSD ld.elf_so'
15986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15989 dynamic_linker='NetBSD (a.out) ld.so'
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 dynamic_linker='NetBSD ld.elf_so'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=yes
15997 hardcode_into_libs=yes
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 shlibpath_overrides_runpath=yes
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 shlibpath_overrides_runpath=yes
16019 sys_lib_dlsearch_path_spec="/usr/lib"
16021 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16023 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16024 *) need_version=no ;;
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16031 openbsd2.[89] | openbsd2.[89].*)
16032 shlibpath_overrides_runpath=no
16035 shlibpath_overrides_runpath=yes
16039 shlibpath_overrides_runpath=yes
16044 libname_spec='$name'
16047 library_names_spec='$libname${shared_ext} $libname.a'
16048 dynamic_linker='OS/2 ld.exe'
16049 shlibpath_var=LIBPATH
16052 osf3* | osf4* | osf5*)
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16060 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes
16075 hardcode_into_libs=yes
16076 # ldd complains unless libraries are executable
16077 postinstall_cmds='chmod +x $lib'
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes
16086 if test "$with_gnu_ld" = yes; then
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 case $host_vendor in
16099 shlibpath_overrides_runpath=no
16101 export_dynamic_flag_spec='${wl}-Blargedynsym'
16102 runpath_var=LD_RUN_PATH
16110 shlibpath_overrides_runpath=no
16111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16117 if test -d /usr/nec ;then
16119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16120 soname_spec='$libname${shared_ext}.$major'
16121 shlibpath_var=LD_LIBRARY_PATH
16125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16126 version_type=freebsd-elf
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 hardcode_into_libs=yes
16133 if test "$with_gnu_ld" = yes; then
16134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16135 shlibpath_overrides_runpath=no
16137 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16138 shlibpath_overrides_runpath=yes
16141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16145 sys_lib_dlsearch_path_spec='/usr/lib'
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16159 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16160 echo "${ECHO_T}$dynamic_linker" >&6; }
16161 test "$dynamic_linker" = no && can_build_shared=no
16163 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16169 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16170 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16176 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16179 if test "$GCC" = yes; then
16180 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16183 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16185 hardcode_action_F77=
16186 if test -n "$hardcode_libdir_flag_spec_F77" || \
16187 test -n "$runpath_var_F77" || \
16188 test "X$hardcode_automatic_F77" = "Xyes" ; then
16190 # We can hardcode non-existant directories.
16191 if test "$hardcode_direct_F77" != no &&
16192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16193 # have to relink, otherwise we might link with an installed library
16194 # when we should be linking with a yet-to-be-installed one
16195 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16196 test "$hardcode_minus_L_F77" != no; then
16197 # Linking always hardcodes the temporary library directory.
16198 hardcode_action_F77=relink
16200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16201 hardcode_action_F77=immediate
16204 # We cannot hardcode anything, or else we can only hardcode existing
16206 hardcode_action_F77=unsupported
16208 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16209 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16211 if test "$hardcode_action_F77" = relink; then
16212 # Fast installation is not supported
16213 enable_fast_install=no
16214 elif test "$shlibpath_overrides_runpath" = yes ||
16215 test "$enable_shared" = no; then
16216 # Fast installation is not necessary
16217 enable_fast_install=needless
16221 # The else clause should only fire when bootstrapping the
16222 # libtool distribution, otherwise you forgot to ship ltmain.sh
16223 # with your package, and you will get complaints that there are
16224 # no rules to generate ltmain.sh.
16225 if test -f "$ltmain"; then
16226 # See if we are running on zsh, and set the options which allow our commands through
16227 # without removal of \ escapes.
16228 if test -n "${ZSH_VERSION+set}" ; then
16229 setopt NO_GLOB_SUBST
16231 # Now quote all the things that may contain metacharacters while being
16232 # careful not to overquote the AC_SUBSTed values. We take copies of the
16233 # variables and quote the copies for generation of the libtool script.
16234 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16236 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16237 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16238 deplibs_check_method reload_flag reload_cmds need_locks \
16239 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16240 lt_cv_sys_global_symbol_to_c_name_address \
16241 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16242 old_postinstall_cmds old_postuninstall_cmds \
16246 lt_prog_compiler_wl_F77 \
16247 lt_prog_compiler_pic_F77 \
16248 lt_prog_compiler_static_F77 \
16249 lt_prog_compiler_no_builtin_flag_F77 \
16250 export_dynamic_flag_spec_F77 \
16251 thread_safe_flag_spec_F77 \
16252 whole_archive_flag_spec_F77 \
16253 enable_shared_with_static_runtimes_F77 \
16254 old_archive_cmds_F77 \
16255 old_archive_from_new_cmds_F77 \
16256 predep_objects_F77 \
16257 postdep_objects_F77 \
16260 compiler_lib_search_path_F77 \
16261 compiler_lib_search_dirs_F77 \
16263 archive_expsym_cmds_F77 \
16264 postinstall_cmds_F77 \
16265 postuninstall_cmds_F77 \
16266 old_archive_from_expsyms_cmds_F77 \
16267 allow_undefined_flag_F77 \
16268 no_undefined_flag_F77 \
16269 export_symbols_cmds_F77 \
16270 hardcode_libdir_flag_spec_F77 \
16271 hardcode_libdir_flag_spec_ld_F77 \
16272 hardcode_libdir_separator_F77 \
16273 hardcode_automatic_F77 \
16275 module_expsym_cmds_F77 \
16276 lt_cv_prog_compiler_c_o_F77 \
16277 fix_srcfile_path_F77 \
16278 exclude_expsyms_F77 \
16279 include_expsyms_F77; do
16282 old_archive_cmds_F77 | \
16283 old_archive_from_new_cmds_F77 | \
16284 archive_cmds_F77 | \
16285 archive_expsym_cmds_F77 | \
16286 module_cmds_F77 | \
16287 module_expsym_cmds_F77 | \
16288 old_archive_from_expsyms_cmds_F77 | \
16289 export_symbols_cmds_F77 | \
16290 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16291 postinstall_cmds | postuninstall_cmds | \
16292 old_postinstall_cmds | old_postuninstall_cmds | \
16293 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16294 # Double-quote double-evaled strings.
16295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16298 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16304 *'\$0 --fallback-echo"')
16305 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16311 cat <<__EOF__ >> "$cfgfile"
16312 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16314 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16316 # Shell to use when invoking shell scripts.
16319 # Whether or not to build shared libraries.
16320 build_libtool_libs=$enable_shared
16322 # Whether or not to build static libraries.
16323 build_old_libs=$enable_static
16325 # Whether or not to add -lc for building shared libraries.
16326 build_libtool_need_lc=$archive_cmds_need_lc_F77
16328 # Whether or not to disallow shared libs when runtime libs are static
16329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16331 # Whether or not to optimize for fast installation.
16332 fast_install=$enable_fast_install
16335 host_alias=$host_alias
16339 # The build system.
16340 build_alias=$build_alias
16344 # An echo program that does not interpret backslashes.
16349 AR_FLAGS=$lt_AR_FLAGS
16354 # LTCC compiler flags.
16355 LTCFLAGS=$lt_LTCFLAGS
16357 # A language-specific compiler.
16358 CC=$lt_compiler_F77
16360 # Is the compiler the GNU C compiler?
16366 # The linker used to build libraries.
16369 # Whether we need hard or soft links.
16372 # A BSD-compatible nm program.
16375 # A symbol stripping program
16378 # Used to examine libraries when file_magic_cmd begins "file"
16379 MAGIC_CMD=$MAGIC_CMD
16381 # Used on cygwin: DLL creation program.
16384 # Used on cygwin: object dumper.
16387 # Used on cygwin: assembler.
16390 # The name of the directory that contains temporary libtool files.
16393 # How to create reloadable object files.
16394 reload_flag=$lt_reload_flag
16395 reload_cmds=$lt_reload_cmds
16397 # How to pass a linker flag through the compiler.
16398 wl=$lt_lt_prog_compiler_wl_F77
16400 # Object file suffix (normally "o").
16401 objext="$ac_objext"
16403 # Old archive suffix (normally "a").
16406 # Shared library suffix (normally ".so").
16407 shrext_cmds='$shrext_cmds'
16409 # Executable file suffix (normally "").
16412 # Additional compiler flags for building library objects.
16413 pic_flag=$lt_lt_prog_compiler_pic_F77
16416 # What is the maximum length of a command?
16417 max_cmd_len=$lt_cv_sys_max_cmd_len
16419 # Does compiler simultaneously support -c and -o options?
16420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16422 # Must we lock files when doing compilation?
16423 need_locks=$lt_need_locks
16425 # Do we need the lib prefix for modules?
16426 need_lib_prefix=$need_lib_prefix
16428 # Do we need a version for libraries?
16429 need_version=$need_version
16431 # Whether dlopen is supported.
16432 dlopen_support=$enable_dlopen
16434 # Whether dlopen of programs is supported.
16435 dlopen_self=$enable_dlopen_self
16437 # Whether dlopen of statically linked programs is supported.
16438 dlopen_self_static=$enable_dlopen_self_static
16440 # Compiler flag to prevent dynamic linking.
16441 link_static_flag=$lt_lt_prog_compiler_static_F77
16443 # Compiler flag to turn off builtin functions.
16444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16446 # Compiler flag to allow reflexive dlopens.
16447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16449 # Compiler flag to generate shared objects directly from archives.
16450 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16452 # Compiler flag to generate thread-safe objects.
16453 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16455 # Library versioning type.
16456 version_type=$version_type
16458 # Format of library name prefix.
16459 libname_spec=$lt_libname_spec
16461 # List of archive names. First name is the real one, the rest are links.
16462 # The last name is the one that the linker finds with -lNAME.
16463 library_names_spec=$lt_library_names_spec
16465 # The coded name of the library, if different from the real name.
16466 soname_spec=$lt_soname_spec
16468 # Commands used to build and install an old-style archive.
16470 old_archive_cmds=$lt_old_archive_cmds_F77
16471 old_postinstall_cmds=$lt_old_postinstall_cmds
16472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16474 # Create an old-style archive from a shared archive.
16475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16477 # Create a temporary old-style archive to link instead of a shared archive.
16478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16480 # Commands used to build and install a shared archive.
16481 archive_cmds=$lt_archive_cmds_F77
16482 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16483 postinstall_cmds=$lt_postinstall_cmds
16484 postuninstall_cmds=$lt_postuninstall_cmds
16486 # Commands used to build a loadable module (assumed same as above if empty)
16487 module_cmds=$lt_module_cmds_F77
16488 module_expsym_cmds=$lt_module_expsym_cmds_F77
16490 # Commands to strip libraries.
16491 old_striplib=$lt_old_striplib
16492 striplib=$lt_striplib
16494 # Dependencies to place before the objects being linked to create a
16496 predep_objects=$lt_predep_objects_F77
16498 # Dependencies to place after the objects being linked to create a
16500 postdep_objects=$lt_postdep_objects_F77
16502 # Dependencies to place before the objects being linked to create a
16504 predeps=$lt_predeps_F77
16506 # Dependencies to place after the objects being linked to create a
16508 postdeps=$lt_postdeps_F77
16510 # The directories searched by this compiler when creating a shared
16512 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16514 # The library search path used internally by the compiler when linking
16515 # a shared library.
16516 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16518 # Method to check whether dependent libraries are shared objects.
16519 deplibs_check_method=$lt_deplibs_check_method
16521 # Command to use when deplibs_check_method == file_magic.
16522 file_magic_cmd=$lt_file_magic_cmd
16524 # Flag that allows shared libraries with undefined symbols to be built.
16525 allow_undefined_flag=$lt_allow_undefined_flag_F77
16527 # Flag that forces no undefined symbols.
16528 no_undefined_flag=$lt_no_undefined_flag_F77
16530 # Commands used to finish a libtool library installation in a directory.
16531 finish_cmds=$lt_finish_cmds
16533 # Same as above, but a single script fragment to be evaled but not shown.
16534 finish_eval=$lt_finish_eval
16536 # Take the output of nm and produce a listing of raw symbols and C names.
16537 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16539 # Transform the output of nm in a proper C declaration
16540 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16542 # Transform the output of nm in a C name address pair
16543 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16545 # This is the shared library runtime path variable.
16546 runpath_var=$runpath_var
16548 # This is the shared library path variable.
16549 shlibpath_var=$shlibpath_var
16551 # Is shlibpath searched before the hard-coded library search path?
16552 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16554 # How to hardcode a shared library path into an executable.
16555 hardcode_action=$hardcode_action_F77
16557 # Whether we should hardcode library paths into libraries.
16558 hardcode_into_libs=$hardcode_into_libs
16560 # Flag to hardcode \$libdir into a binary during linking.
16561 # This must work even if \$libdir does not exist.
16562 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16564 # If ld is used when linking, flag to hardcode \$libdir into
16565 # a binary during linking. This must work even if \$libdir does
16567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16569 # Whether we need a single -rpath flag with a separated argument.
16570 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16572 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16573 # resulting binary.
16574 hardcode_direct=$hardcode_direct_F77
16576 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16577 # resulting binary.
16578 hardcode_minus_L=$hardcode_minus_L_F77
16580 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16581 # the resulting binary.
16582 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16584 # Set to yes if building a shared library automatically hardcodes DIR into the library
16585 # and all subsequent libraries and executables linked against it.
16586 hardcode_automatic=$hardcode_automatic_F77
16588 # Variables whose values should be saved in libtool wrapper scripts and
16589 # restored at relink time.
16590 variables_saved_for_relink="$variables_saved_for_relink"
16592 # Whether libtool must link a program against all its dependency libraries.
16593 link_all_deplibs=$link_all_deplibs_F77
16595 # Compile-time system search path for libraries
16596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16598 # Run-time system search path for libraries
16599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16601 # Fix the shell variable \$srcfile for the compiler.
16602 fix_srcfile_path=$lt_fix_srcfile_path
16604 # Set to yes if exported symbols are required.
16605 always_export_symbols=$always_export_symbols_F77
16607 # The commands to list exported symbols.
16608 export_symbols_cmds=$lt_export_symbols_cmds_F77
16610 # The commands to extract the exported symbol list from a shared archive.
16611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16613 # Symbols that should not be listed in the preloaded symbols.
16614 exclude_expsyms=$lt_exclude_expsyms_F77
16616 # Symbols that must always be exported.
16617 include_expsyms=$lt_include_expsyms_F77
16619 # ### END LIBTOOL TAG CONFIG: $tagname
16625 # If there is no Makefile yet, we rely on a make rule to execute
16626 # `config.status --recheck' to rerun these tests and create the
16627 # libtool script then.
16628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16629 if test -f "$ltmain_in"; then
16630 test -f Makefile && make "$ltmain"
16636 ac_cpp='$CXXCPP $CPPFLAGS'
16637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16649 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16652 # Source file extension for Java test sources.
16655 # Object file extension for compiled Java test sources.
16659 # Code to be used in simple compile tests
16660 lt_simple_compile_test_code="class foo {}"
16662 # Code to be used in simple link tests
16663 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16667 # If no C compiler was specified, use CC.
16670 # If no C compiler flags were specified, use CFLAGS.
16671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16673 # Allow CC to be a program name with arguments.
16677 # save warnings/boilerplate of simple test code
16678 ac_outfile=conftest.$ac_objext
16679 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16680 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16681 _lt_compiler_boilerplate=`cat conftest.err`
16684 ac_outfile=conftest.$ac_objext
16685 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16686 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16687 _lt_linker_boilerplate=`cat conftest.err`
16691 # Allow CC to be a program name with arguments.
16696 for cc_temp in $compiler""; do
16698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16704 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16707 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16708 archive_cmds_need_lc_GCJ=no
16710 old_archive_cmds_GCJ=$old_archive_cmds
16713 lt_prog_compiler_no_builtin_flag_GCJ=
16715 if test "$GCC" = yes; then
16716 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16719 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16720 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16721 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 lt_cv_prog_compiler_rtti_exceptions=no
16725 ac_outfile=conftest.$ac_objext
16726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16727 lt_compiler_flag="-fno-rtti -fno-exceptions"
16728 # Insert the option either (1) after the last *FLAGS variable, or
16729 # (2) before a word containing "conftest.", or (3) at the end.
16730 # Note that $ac_compile itself does not contain backslashes and begins
16731 # with a dollar sign (not a hyphen), so the echo should work correctly.
16732 # The option is referenced via a variable to avoid confusing sed.
16733 lt_compile=`echo "$ac_compile" | $SED \
16734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16736 -e 's:$: $lt_compiler_flag:'`
16737 (eval echo "\"\$as_me:16737: $lt_compile\"" >&5)
16738 (eval "$lt_compile" 2>conftest.err)
16740 cat conftest.err >&5
16741 echo "$as_me:16741: \$? = $ac_status" >&5
16742 if (exit $ac_status) && test -s "$ac_outfile"; then
16743 # The compiler can only warn and ignore the option if not recognized
16744 # So say no if there are warnings other than the usual output.
16745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16748 lt_cv_prog_compiler_rtti_exceptions=yes
16754 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16755 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16757 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16758 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16765 lt_prog_compiler_wl_GCJ=
16766 lt_prog_compiler_pic_GCJ=
16767 lt_prog_compiler_static_GCJ=
16769 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16770 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16772 if test "$GCC" = yes; then
16773 lt_prog_compiler_wl_GCJ='-Wl,'
16774 lt_prog_compiler_static_GCJ='-static'
16778 # All AIX code is PIC.
16779 if test "$host_cpu" = ia64; then
16780 # AIX 5 now supports IA64 processor
16781 lt_prog_compiler_static_GCJ='-Bstatic'
16786 # FIXME: we need at least 68020 code to build shared libraries, but
16787 # adding the `-m68020' flag to GCC prevents building anything better,
16789 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16792 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16793 # PIC is the default for these OSes.
16796 mingw* | cygwin* | pw32* | os2*)
16797 # This hack is so that the source file can tell whether it is being
16798 # built for inclusion in a dll (and should export symbols for example).
16799 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16800 # (--disable-auto-import) libraries
16804 darwin* | rhapsody*)
16805 # PIC is the default on this platform
16806 # Common symbols not allowed in MH_DYLIB files
16807 lt_prog_compiler_pic_GCJ='-fno-common'
16811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16812 # Instead, we relocate shared libraries at runtime.
16816 # Just because we use GCC doesn't mean we suddenly get shared libraries
16817 # on systems that don't support them.
16818 lt_prog_compiler_can_build_shared_GCJ=no
16823 if test -d /usr/nec; then
16824 lt_prog_compiler_pic_GCJ=-Kconform_pic
16829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16830 # not for PA HP-UX.
16836 lt_prog_compiler_pic_GCJ='-fPIC'
16842 lt_prog_compiler_pic_GCJ='-fPIC'
16846 # PORTME Check for flag to pass linker flags through the system compiler.
16849 lt_prog_compiler_wl_GCJ='-Wl,'
16850 if test "$host_cpu" = ia64; then
16851 # AIX 5 now supports IA64 processor
16852 lt_prog_compiler_static_GCJ='-Bstatic'
16854 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16858 # PIC is the default on this platform
16859 # Common symbols not allowed in MH_DYLIB files
16860 case $cc_basename in
16862 lt_prog_compiler_pic_GCJ='-qnocommon'
16863 lt_prog_compiler_wl_GCJ='-Wl,'
16868 mingw* | cygwin* | pw32* | os2*)
16869 # This hack is so that the source file can tell whether it is being
16870 # built for inclusion in a dll (and should export symbols for example).
16874 hpux9* | hpux10* | hpux11*)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16877 # not for PA HP-UX.
16883 lt_prog_compiler_pic_GCJ='+Z'
16886 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16887 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16890 irix5* | irix6* | nonstopux*)
16891 lt_prog_compiler_wl_GCJ='-Wl,'
16892 # PIC (with -KPIC) is the default.
16893 lt_prog_compiler_static_GCJ='-non_shared'
16897 lt_prog_compiler_pic_GCJ='-KPIC'
16898 lt_prog_compiler_static_GCJ='-Bstatic'
16901 linux* | k*bsd*-gnu)
16902 case $cc_basename in
16904 lt_prog_compiler_wl_GCJ='-Wl,'
16905 lt_prog_compiler_pic_GCJ='-KPIC'
16906 lt_prog_compiler_static_GCJ='-static'
16908 pgcc* | pgf77* | pgf90* | pgf95*)
16909 # Portland Group compilers (*not* the Pentium gcc compiler,
16910 # which looks to be a dead project)
16911 lt_prog_compiler_wl_GCJ='-Wl,'
16912 lt_prog_compiler_pic_GCJ='-fpic'
16913 lt_prog_compiler_static_GCJ='-Bstatic'
16916 lt_prog_compiler_wl_GCJ='-Wl,'
16917 # All Alpha code is PIC.
16918 lt_prog_compiler_static_GCJ='-non_shared'
16921 case `$CC -V 2>&1 | sed 5q` in
16924 lt_prog_compiler_pic_GCJ='-KPIC'
16925 lt_prog_compiler_static_GCJ='-Bstatic'
16926 lt_prog_compiler_wl_GCJ='-Wl,'
16929 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16930 lt_prog_compiler_pic_GCJ='-KPIC'
16931 lt_prog_compiler_static_GCJ='-Bstatic'
16932 lt_prog_compiler_wl_GCJ=''
16939 osf3* | osf4* | osf5*)
16940 lt_prog_compiler_wl_GCJ='-Wl,'
16941 # All OSF/1 code is PIC.
16942 lt_prog_compiler_static_GCJ='-non_shared'
16946 lt_prog_compiler_static_GCJ='-non_shared'
16950 lt_prog_compiler_pic_GCJ='-KPIC'
16951 lt_prog_compiler_static_GCJ='-Bstatic'
16952 case $cc_basename in
16953 f77* | f90* | f95*)
16954 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16956 lt_prog_compiler_wl_GCJ='-Wl,';;
16961 lt_prog_compiler_wl_GCJ='-Qoption ld '
16962 lt_prog_compiler_pic_GCJ='-PIC'
16963 lt_prog_compiler_static_GCJ='-Bstatic'
16966 sysv4 | sysv4.2uw2* | sysv4.3*)
16967 lt_prog_compiler_wl_GCJ='-Wl,'
16968 lt_prog_compiler_pic_GCJ='-KPIC'
16969 lt_prog_compiler_static_GCJ='-Bstatic'
16973 if test -d /usr/nec ;then
16974 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16975 lt_prog_compiler_static_GCJ='-Bstatic'
16979 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16980 lt_prog_compiler_wl_GCJ='-Wl,'
16981 lt_prog_compiler_pic_GCJ='-KPIC'
16982 lt_prog_compiler_static_GCJ='-Bstatic'
16986 lt_prog_compiler_wl_GCJ='-Wl,'
16987 lt_prog_compiler_can_build_shared_GCJ=no
16991 lt_prog_compiler_pic_GCJ='-pic'
16992 lt_prog_compiler_static_GCJ='-Bstatic'
16996 lt_prog_compiler_can_build_shared_GCJ=no
17001 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17002 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17005 # Check to make sure the PIC flag actually works.
17007 if test -n "$lt_prog_compiler_pic_GCJ"; then
17009 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17010 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17011 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 lt_cv_prog_compiler_pic_works_GCJ=no
17015 ac_outfile=conftest.$ac_objext
17016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17017 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17018 # Insert the option either (1) after the last *FLAGS variable, or
17019 # (2) before a word containing "conftest.", or (3) at the end.
17020 # Note that $ac_compile itself does not contain backslashes and begins
17021 # with a dollar sign (not a hyphen), so the echo should work correctly.
17022 # The option is referenced via a variable to avoid confusing sed.
17023 lt_compile=`echo "$ac_compile" | $SED \
17024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17026 -e 's:$: $lt_compiler_flag:'`
17027 (eval echo "\"\$as_me:17027: $lt_compile\"" >&5)
17028 (eval "$lt_compile" 2>conftest.err)
17030 cat conftest.err >&5
17031 echo "$as_me:17031: \$? = $ac_status" >&5
17032 if (exit $ac_status) && test -s "$ac_outfile"; then
17033 # The compiler can only warn and ignore the option if not recognized
17034 # So say no if there are warnings other than the usual output.
17035 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17038 lt_cv_prog_compiler_pic_works_GCJ=yes
17044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17045 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17047 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17048 case $lt_prog_compiler_pic_GCJ in
17050 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17053 lt_prog_compiler_pic_GCJ=
17054 lt_prog_compiler_can_build_shared_GCJ=no
17059 # For platforms which do not support PIC, -DPIC is meaningless:
17061 lt_prog_compiler_pic_GCJ=
17064 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17069 # Check to make sure the static flag actually works.
17071 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17072 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17073 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17074 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 lt_cv_prog_compiler_static_works_GCJ=no
17078 save_LDFLAGS="$LDFLAGS"
17079 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17080 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17081 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17082 # The linker can only warn and ignore the option if not recognized
17083 # So say no if there are warnings
17084 if test -s conftest.err; then
17085 # Append any errors to the config.log.
17086 cat conftest.err 1>&5
17087 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17089 if diff conftest.exp conftest.er2 >/dev/null; then
17090 lt_cv_prog_compiler_static_works_GCJ=yes
17093 lt_cv_prog_compiler_static_works_GCJ=yes
17097 LDFLAGS="$save_LDFLAGS"
17100 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17101 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17103 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17106 lt_prog_compiler_static_GCJ=
17110 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17111 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17112 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 lt_cv_prog_compiler_c_o_GCJ=no
17116 $rm -r conftest 2>/dev/null
17120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17122 lt_compiler_flag="-o out/conftest2.$ac_objext"
17123 # Insert the option either (1) after the last *FLAGS variable, or
17124 # (2) before a word containing "conftest.", or (3) at the end.
17125 # Note that $ac_compile itself does not contain backslashes and begins
17126 # with a dollar sign (not a hyphen), so the echo should work correctly.
17127 lt_compile=`echo "$ac_compile" | $SED \
17128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17130 -e 's:$: $lt_compiler_flag:'`
17131 (eval echo "\"\$as_me:17131: $lt_compile\"" >&5)
17132 (eval "$lt_compile" 2>out/conftest.err)
17134 cat out/conftest.err >&5
17135 echo "$as_me:17135: \$? = $ac_status" >&5
17136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17138 # The compiler can only warn and ignore the option if not recognized
17139 # So say no if there are warnings
17140 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17143 lt_cv_prog_compiler_c_o_GCJ=yes
17148 # SGI C++ compiler will create directory out/ii_files/ for
17149 # template instantiation
17150 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17151 $rm out/* && rmdir out
17157 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17158 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17161 hard_links="nottested"
17162 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17163 # do not overwrite the value of need_locks provided by the user
17164 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17165 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17170 ln conftest.a conftest.b 2>&5 || hard_links=no
17171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17172 { echo "$as_me:$LINENO: result: $hard_links" >&5
17173 echo "${ECHO_T}$hard_links" >&6; }
17174 if test "$hard_links" = no; then
17175 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17176 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17183 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17184 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17187 allow_undefined_flag_GCJ=
17188 enable_shared_with_static_runtimes_GCJ=no
17190 archive_expsym_cmds_GCJ=
17191 old_archive_From_new_cmds_GCJ=
17192 old_archive_from_expsyms_cmds_GCJ=
17193 export_dynamic_flag_spec_GCJ=
17194 whole_archive_flag_spec_GCJ=
17195 thread_safe_flag_spec_GCJ=
17196 hardcode_libdir_flag_spec_GCJ=
17197 hardcode_libdir_flag_spec_ld_GCJ=
17198 hardcode_libdir_separator_GCJ=
17199 hardcode_direct_GCJ=no
17200 hardcode_minus_L_GCJ=no
17201 hardcode_shlibpath_var_GCJ=unsupported
17202 link_all_deplibs_GCJ=unknown
17203 hardcode_automatic_GCJ=no
17205 module_expsym_cmds_GCJ=
17206 always_export_symbols_GCJ=no
17207 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17208 # include_expsyms should be a list of space-separated symbols to be *always*
17209 # included in the symbol list
17210 include_expsyms_GCJ=
17211 # exclude_expsyms can be an extended regexp of symbols to exclude
17212 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17213 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17214 # as well as any symbol that contains `d'.
17215 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17216 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17217 # platforms (ab)use it in PIC code, but their linkers get confused if
17218 # the symbol is explicitly referenced. Since portable code cannot
17219 # rely on this symbol name, it's probably fine to never include it in
17220 # preloaded symbol tables.
17221 # Exclude shared library initialization/finalization symbols.
17222 extract_expsyms_cmds=
17223 # Just being paranoid about ensuring that cc_basename is set.
17224 for cc_temp in $compiler""; do
17226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17232 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17235 cygwin* | mingw* | pw32*)
17236 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17237 # When not using gcc, we currently assume that we are using
17238 # Microsoft Visual C++.
17239 if test "$GCC" != yes; then
17244 # we just hope/assume this is gcc and not c89 (= MSVC++)
17253 if test "$with_gnu_ld" = yes; then
17254 # If archive_cmds runs LD, not CC, wlarc should be empty
17257 # Set some defaults for GNU ld with shared library support. These
17258 # are reset later if shared libraries are not supported. Putting them
17259 # here allows them to be overridden if necessary.
17260 runpath_var=LD_RUN_PATH
17261 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17262 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17263 # ancient GNU ld didn't support --whole-archive et. al.
17264 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17265 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17267 whole_archive_flag_spec_GCJ=
17269 supports_anon_versioning=no
17270 case `$LD -v 2>/dev/null` in
17271 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17272 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17273 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17274 *\ 2.11.*) ;; # other 2.11 versions
17275 *) supports_anon_versioning=yes ;;
17278 # See if GNU ld supports shared libraries.
17281 # On AIX/PPC, the GNU linker is very broken
17282 if test "$host_cpu" != ia64; then
17286 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17287 *** to be unable to reliably create shared libraries on AIX.
17288 *** Therefore, libtool is disabling shared libraries support. If you
17289 *** really care for shared libraries, you may want to modify your PATH
17290 *** so that a non-GNU linker is found, and then restart.
17297 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17298 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17299 hardcode_minus_L_GCJ=yes
17301 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17302 # that the semantics of dynamic libraries on AmigaOS, at least up
17303 # to version 4, is to share data among multiple programs linked
17304 # with the same dynamic library. Since this doesn't match the
17305 # behavior of shared libraries on other platforms, we can't use
17311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17312 allow_undefined_flag_GCJ=unsupported
17313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17314 # support --undefined. This deserves some investigation. FIXME
17315 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17321 cygwin* | mingw* | pw32*)
17322 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17323 # as there is no search path for DLLs.
17324 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17325 allow_undefined_flag_GCJ=unsupported
17326 always_export_symbols_GCJ=no
17327 enable_shared_with_static_runtimes_GCJ=yes
17328 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17330 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17331 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17332 # If the export-symbols file already is a .def file (1st line
17333 # is EXPORTS), use it as is; otherwise, prepend...
17334 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17335 cp $export_symbols $output_objdir/$soname.def;
17337 echo EXPORTS > $output_objdir/$soname.def;
17338 cat $export_symbols >> $output_objdir/$soname.def;
17340 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17347 hardcode_direct_GCJ=no
17348 hardcode_shlibpath_var_GCJ=no
17349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17350 export_dynamic_flag_spec_GCJ='${wl}-E'
17351 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17352 # Instead, shared libraries are loaded at an image base (0x10000000 by
17353 # default) and relocated if they conflict, which is a slow very memory
17354 # consuming and fragmenting process. To avoid this, we pick a random,
17355 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17356 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17357 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17358 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17361 gnu* | linux* | k*bsd*-gnu)
17362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17364 case $cc_basename,$host_cpu in
17365 pgcc*) # Portland Group C compiler
17366 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17367 tmp_addflag=' $pic_flag'
17369 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17370 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17371 tmp_addflag=' $pic_flag -Mnomain' ;;
17372 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17373 tmp_addflag=' -i_dynamic' ;;
17374 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17375 tmp_addflag=' -i_dynamic -nofor_main' ;;
17376 ifc* | ifort*) # Intel Fortran compiler
17377 tmp_addflag=' -nofor_main' ;;
17379 case `$CC -V 2>&1 | sed 5q` in
17380 *Sun\ C*) # Sun C 5.9
17381 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17382 tmp_sharedflag='-G' ;;
17383 *Sun\ F*) # Sun Fortran 8.3
17384 tmp_sharedflag='-G' ;;
17386 tmp_sharedflag='-shared' ;;
17388 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17390 if test $supports_anon_versioning = yes; then
17391 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17392 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17393 $echo "local: *; };" >> $output_objdir/$libname.ver~
17394 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17396 link_all_deplibs_GCJ=no
17402 netbsd* | netbsdelf*-gnu)
17403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17404 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17407 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17408 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17413 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17418 *** create shared libraries on Solaris systems. Therefore, libtool
17419 *** is disabling shared libraries support. We urge you to upgrade GNU
17420 *** binutils to release 2.9.1 or newer. Another option is to modify
17421 *** your PATH or compiler configuration so that the native linker is
17422 *** used, and then restart.
17425 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17426 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17427 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17434 case `$LD -v 2>&1` in
17435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17439 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17440 *** reliably create shared libraries on SCO systems. Therefore, libtool
17441 *** is disabling shared libraries support. We urge you to upgrade GNU
17442 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17443 *** your PATH or compiler configuration so that the native linker is
17444 *** used, and then restart.
17449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17450 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17451 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17452 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17461 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17463 hardcode_direct_GCJ=yes
17464 hardcode_shlibpath_var_GCJ=no
17468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17469 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17470 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17477 if test "$ld_shlibs_GCJ" = no; then
17479 hardcode_libdir_flag_spec_GCJ=
17480 export_dynamic_flag_spec_GCJ=
17481 whole_archive_flag_spec_GCJ=
17484 # PORTME fill in a description of your system's linker (not GNU ld)
17487 allow_undefined_flag_GCJ=unsupported
17488 always_export_symbols_GCJ=yes
17489 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17490 # Note: this linker hardcodes the directories in LIBPATH if there
17491 # are no directories specified by -L.
17492 hardcode_minus_L_GCJ=yes
17493 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17494 # Neither direct hardcoding nor static linking is supported with a
17496 hardcode_direct_GCJ=unsupported
17501 if test "$host_cpu" = ia64; then
17502 # On IA64, the linker does run time linking by default, so we don't
17503 # have to do anything special.
17504 aix_use_runtimelinking=no
17505 exp_sym_flag='-Bexport'
17508 # If we're using GNU nm, then we don't want the "-C" option.
17509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17510 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17511 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17513 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17515 aix_use_runtimelinking=no
17517 # Test if we are trying to use run time linking or normal
17518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17519 # need to do runtime linking.
17520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17521 for ld_flag in $LDFLAGS; do
17522 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17523 aix_use_runtimelinking=yes
17530 exp_sym_flag='-bexport'
17531 no_entry_flag='-bnoentry'
17534 # When large executables or shared objects are built, AIX ld can
17535 # have problems creating the table of contents. If linking a library
17536 # or program results in "error TOC overflow" add -mminimal-toc to
17537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17540 archive_cmds_GCJ=''
17541 hardcode_direct_GCJ=yes
17542 hardcode_libdir_separator_GCJ=':'
17543 link_all_deplibs_GCJ=yes
17545 if test "$GCC" = yes; then
17546 case $host_os in aix4.[012]|aix4.[012].*)
17547 # We only want to do this on AIX 4.2 and lower, the check
17548 # below for broken collect2 doesn't work under 4.3+
17549 collect2name=`${CC} -print-prog-name=collect2`
17550 if test -f "$collect2name" && \
17551 strings "$collect2name" | grep resolve_lib_name >/dev/null
17553 # We have reworked collect2
17556 # We have old collect2
17557 hardcode_direct_GCJ=unsupported
17558 # It fails to find uninstalled libraries when the uninstalled
17559 # path is not listed in the libpath. Setting hardcode_minus_L
17560 # to unsupported forces relinking
17561 hardcode_minus_L_GCJ=yes
17562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17563 hardcode_libdir_separator_GCJ=
17567 shared_flag='-shared'
17568 if test "$aix_use_runtimelinking" = yes; then
17569 shared_flag="$shared_flag "'${wl}-G'
17573 if test "$host_cpu" = ia64; then
17574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17575 # chokes on -Wl,-G. The following line is correct:
17578 if test "$aix_use_runtimelinking" = yes; then
17579 shared_flag='${wl}-G'
17581 shared_flag='${wl}-bM:SRE'
17586 # It seems that -bexpall does not export symbols beginning with
17587 # underscore (_), so it is better to generate a list of symbols to export.
17588 always_export_symbols_GCJ=yes
17589 if test "$aix_use_runtimelinking" = yes; then
17590 # Warning - without using the other runtime loading flags (-brtl),
17591 # -berok will link without error, but may produce a broken library.
17592 allow_undefined_flag_GCJ='-berok'
17593 # Determine the default libpath from the value encoded in an empty executable.
17594 cat >conftest.$ac_ext <<_ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_cxx_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17628 lt_aix_libpath_sed='
17629 /Import File Strings/,/^$/ {
17635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17636 # Check for a 64-bit object if we didn't find anything.
17637 if test -z "$aix_libpath"; then
17638 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648 conftest$ac_exeext conftest.$ac_ext
17649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17651 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17652 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17654 if test "$host_cpu" = ia64; then
17655 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17656 allow_undefined_flag_GCJ="-z nodefs"
17657 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17659 # Determine the default libpath from the value encoded in an empty executable.
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (ac_try="$ac_link"
17677 case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_link") 2>conftest.er1
17684 grep -v '^ *+' conftest.er1 >conftest.err
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && {
17689 test -z "$ac_cxx_werror_flag" ||
17690 test ! -s conftest.err
17691 } && test -s conftest$ac_exeext &&
17692 $as_test_x conftest$ac_exeext; then
17694 lt_aix_libpath_sed='
17695 /Import File Strings/,/^$/ {
17701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17702 # Check for a 64-bit object if we didn't find anything.
17703 if test -z "$aix_libpath"; then
17704 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17714 conftest$ac_exeext conftest.$ac_ext
17715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17717 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17718 # Warning - without using the other run time loading flags,
17719 # -berok will link without error, but may produce a broken library.
17720 no_undefined_flag_GCJ=' ${wl}-bernotok'
17721 allow_undefined_flag_GCJ=' ${wl}-berok'
17722 # Exported symbols can be pulled into shared objects from archives
17723 whole_archive_flag_spec_GCJ='$convenience'
17724 archive_cmds_need_lc_GCJ=yes
17725 # This is similar to how AIX traditionally builds its shared libraries.
17726 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17732 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17734 hardcode_minus_L_GCJ=yes
17735 # see comment about different semantics on the GNU ld section
17740 export_dynamic_flag_spec_GCJ=-rdynamic
17743 cygwin* | mingw* | pw32*)
17744 # When not using gcc, we currently assume that we are using
17745 # Microsoft Visual C++.
17746 # hardcode_libdir_flag_spec is actually meaningless, as there is
17747 # no search path for DLLs.
17748 hardcode_libdir_flag_spec_GCJ=' '
17749 allow_undefined_flag_GCJ=unsupported
17750 # Tell ltmain to make .lib files, not .a files.
17752 # Tell ltmain to make .dll files, not .so files.
17754 # FIXME: Setting linknames here is a bad hack.
17755 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17756 # The linker will automatically build a .lib file if we build a DLL.
17757 old_archive_From_new_cmds_GCJ='true'
17758 # FIXME: Should let the user specify the lib program.
17759 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17760 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17761 enable_shared_with_static_runtimes_GCJ=yes
17764 darwin* | rhapsody*)
17766 rhapsody* | darwin1.[012])
17767 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17770 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17771 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17773 case ${MACOSX_DEPLOYMENT_TARGET} in
17775 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17778 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17784 archive_cmds_need_lc_GCJ=no
17785 hardcode_direct_GCJ=no
17786 hardcode_automatic_GCJ=yes
17787 hardcode_shlibpath_var_GCJ=unsupported
17788 whole_archive_flag_spec_GCJ=''
17789 link_all_deplibs_GCJ=yes
17790 if test "$GCC" = yes ; then
17791 output_verbose_link_cmd='echo'
17792 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17793 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17794 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17795 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17797 case $cc_basename in
17799 output_verbose_link_cmd='echo'
17800 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17801 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17803 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17804 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17815 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17816 hardcode_shlibpath_var_GCJ=no
17823 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17824 # support. Future versions do this automatically, but an explicit c++rt0.o
17825 # does not break anything, and helps significantly (at the cost of a little
17828 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17829 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17830 hardcode_direct_GCJ=yes
17831 hardcode_shlibpath_var_GCJ=no
17834 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17836 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17837 hardcode_direct_GCJ=yes
17838 hardcode_minus_L_GCJ=yes
17839 hardcode_shlibpath_var_GCJ=no
17842 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17843 freebsd* | dragonfly*)
17844 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17846 hardcode_direct_GCJ=yes
17847 hardcode_shlibpath_var_GCJ=no
17851 if test "$GCC" = yes; then
17852 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17854 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17856 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17857 hardcode_libdir_separator_GCJ=:
17858 hardcode_direct_GCJ=yes
17860 # hardcode_minus_L: Not really in the search PATH,
17861 # but as the default location of the library.
17862 hardcode_minus_L_GCJ=yes
17863 export_dynamic_flag_spec_GCJ='${wl}-E'
17867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17868 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17870 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17872 if test "$with_gnu_ld" = no; then
17873 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17874 hardcode_libdir_separator_GCJ=:
17876 hardcode_direct_GCJ=yes
17877 export_dynamic_flag_spec_GCJ='${wl}-E'
17879 # hardcode_minus_L: Not really in the search PATH,
17880 # but as the default location of the library.
17881 hardcode_minus_L_GCJ=yes
17886 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17889 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17892 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17895 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17901 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17907 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17911 if test "$with_gnu_ld" = no; then
17912 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17913 hardcode_libdir_separator_GCJ=:
17917 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17918 hardcode_direct_GCJ=no
17919 hardcode_shlibpath_var_GCJ=no
17922 hardcode_direct_GCJ=yes
17923 export_dynamic_flag_spec_GCJ='${wl}-E'
17925 # hardcode_minus_L: Not really in the search PATH,
17926 # but as the default location of the library.
17927 hardcode_minus_L_GCJ=yes
17933 irix5* | irix6* | nonstopux*)
17934 if test "$GCC" = yes; then
17935 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17937 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17938 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17940 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17941 hardcode_libdir_separator_GCJ=:
17942 link_all_deplibs_GCJ=yes
17945 netbsd* | netbsdelf*-gnu)
17946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17947 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17949 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17951 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17952 hardcode_direct_GCJ=yes
17953 hardcode_shlibpath_var_GCJ=no
17957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958 hardcode_direct_GCJ=yes
17959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17960 hardcode_libdir_separator_GCJ=:
17961 hardcode_shlibpath_var_GCJ=no
17965 if test -f /usr/libexec/ld.so; then
17966 hardcode_direct_GCJ=yes
17967 hardcode_shlibpath_var_GCJ=no
17968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17969 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17970 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17971 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17972 export_dynamic_flag_spec_GCJ='${wl}-E'
17975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17976 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17980 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992 hardcode_minus_L_GCJ=yes
17993 allow_undefined_flag_GCJ=unsupported
17994 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17995 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17999 if test "$GCC" = yes; then
18000 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18001 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18003 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18004 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18007 hardcode_libdir_separator_GCJ=:
18010 osf4* | osf5*) # as osf3* with the addition of -msym flag
18011 if test "$GCC" = yes; then
18012 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18013 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18016 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18017 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18018 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18019 $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'
18021 # Both c and cxx compiler support -rpath directly
18022 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18024 hardcode_libdir_separator_GCJ=:
18028 no_undefined_flag_GCJ=' -z text'
18029 if test "$GCC" = yes; then
18031 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18032 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18033 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18036 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18037 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18038 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18040 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18041 hardcode_shlibpath_var_GCJ=no
18043 solaris2.[0-5] | solaris2.[0-5].*) ;;
18045 # The compiler driver will combine and reorder linker options,
18046 # but understands `-z linker_flag'. GCC discards it without `$wl',
18047 # but is careful enough not to reorder.
18048 # Supported since Solaris 2.6 (maybe 2.5.1?)
18049 if test "$GCC" = yes; then
18050 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18052 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18056 link_all_deplibs_GCJ=yes
18060 if test "x$host_vendor" = xsequent; then
18061 # Use $CC to link under sequent, because it throws in some extra .o
18062 # files that make .init and .fini sections work.
18063 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18065 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18068 hardcode_direct_GCJ=yes
18069 hardcode_minus_L_GCJ=yes
18070 hardcode_shlibpath_var_GCJ=no
18074 case $host_vendor in
18076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_direct_GCJ=yes # is this really true???
18080 ## LD is ld it makes a PLAMLIB
18081 ## CC just makes a GrossModule.
18082 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18083 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18084 hardcode_direct_GCJ=no
18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18091 runpath_var='LD_RUN_PATH'
18092 hardcode_shlibpath_var_GCJ=no
18096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097 hardcode_shlibpath_var_GCJ=no
18098 export_dynamic_flag_spec_GCJ='-Bexport'
18102 if test -d /usr/nec; then
18103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18104 hardcode_shlibpath_var_GCJ=no
18105 runpath_var=LD_RUN_PATH
18106 hardcode_runpath_var=yes
18111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18112 no_undefined_flag_GCJ='${wl}-z,text'
18113 archive_cmds_need_lc_GCJ=no
18114 hardcode_shlibpath_var_GCJ=no
18115 runpath_var='LD_RUN_PATH'
18117 if test "$GCC" = yes; then
18118 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 sysv5* | sco3.2v5* | sco5v6*)
18127 # Note: We can NOT use -z defs as we might desire, because we do not
18128 # link with -lc, and that would cause any symbols used from libc to
18129 # always be unresolved, which means just about no library would
18130 # ever link correctly. If we're not using GNU ld we use -z text
18131 # though, which does catch some bad symbols but isn't as heavy-handed
18133 no_undefined_flag_GCJ='${wl}-z,text'
18134 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18135 archive_cmds_need_lc_GCJ=no
18136 hardcode_shlibpath_var_GCJ=no
18137 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18138 hardcode_libdir_separator_GCJ=':'
18139 link_all_deplibs_GCJ=yes
18140 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18141 runpath_var='LD_RUN_PATH'
18143 if test "$GCC" = yes; then
18144 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18147 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18155 hardcode_shlibpath_var_GCJ=no
18164 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18165 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18166 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18169 # Do we need to explicitly link libc?
18171 case "x$archive_cmds_need_lc_GCJ" in
18173 # Assume -lc should be added
18174 archive_cmds_need_lc_GCJ=yes
18176 if test "$enable_shared" = yes && test "$GCC" = yes; then
18177 case $archive_cmds_GCJ in
18179 # FIXME: we may have to deal with multi-command sequences.
18182 # Test whether the compiler implicitly links with -lc since on some
18183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18184 # to ld, don't add -lc before -lgcc.
18185 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18186 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191 (eval $ac_compile) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } 2>conftest.err; then
18197 libobjs=conftest.$ac_objext
18199 wl=$lt_prog_compiler_wl_GCJ
18200 pic_flag=$lt_prog_compiler_pic_GCJ
18206 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18207 allow_undefined_flag_GCJ=
18208 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18209 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }
18214 archive_cmds_need_lc_GCJ=no
18216 archive_cmds_need_lc_GCJ=yes
18218 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18220 cat conftest.err 1>&5
18223 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18224 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18231 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18233 library_names_spec=
18234 libname_spec='lib$name'
18238 postuninstall_cmds=
18242 shlibpath_overrides_runpath=unknown
18244 dynamic_linker="$host_os ld.so"
18245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18247 need_lib_prefix=unknown
18248 hardcode_into_libs=no
18250 # when you set need_version to no, make sure it does not cause -set_version
18251 # flags to be left without arguments
18252 need_version=unknown
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18258 shlibpath_var=LIBPATH
18260 # AIX 3 has no versioning support, so we append a major version to the name.
18261 soname_spec='${libname}${release}${shared_ext}$major'
18268 hardcode_into_libs=yes
18269 if test "$host_cpu" = ia64; then
18270 # AIX 5 supports IA64
18271 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18272 shlibpath_var=LD_LIBRARY_PATH
18274 # With GCC up to 2.95.x, collect2 would create an import file
18275 # for dependence libraries. The import file would start with
18276 # the line `#! .'. This would cause the generated library to
18277 # depend on `.', always an invalid library. This was fixed in
18278 # development snapshots of GCC prior to 3.0.
18280 aix4 | aix4.[01] | aix4.[01].*)
18281 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18283 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18286 can_build_shared=no
18290 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18291 # soname into executable. Probably we can add versioning support to
18292 # collect2, so additional links can be useful in future.
18293 if test "$aix_use_runtimelinking" = yes; then
18294 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18295 # instead of lib<name>.a to let people know that these are not
18296 # typical AIX shared libraries.
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299 # We preserve .a as extension for shared libraries through AIX4.2
18300 # and later when we are not doing run time linking.
18301 library_names_spec='${libname}${release}.a $libname.a'
18302 soname_spec='${libname}${release}${shared_ext}$major'
18304 shlibpath_var=LIBPATH
18309 library_names_spec='$libname.ixlibrary $libname.a'
18310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18311 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18315 library_names_spec='${libname}${shared_ext}'
18316 dynamic_linker="$host_os ld.so"
18317 shlibpath_var=LIBRARY_PATH
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec='${libname}${release}${shared_ext}$major'
18325 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18326 shlibpath_var=LD_LIBRARY_PATH
18327 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18328 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18329 # the default ld.so.conf also contains /usr/contrib/lib and
18330 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18331 # libtool to hard-code these into programs
18334 cygwin* | mingw* | pw32*)
18335 version_type=windows
18340 case $GCC,$host_os in
18341 yes,cygwin* | yes,mingw* | yes,pw32*)
18342 library_names_spec='$libname.dll.a'
18343 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18344 postinstall_cmds='base_file=`basename \${file}`~
18345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18346 dldir=$destdir/`dirname \$dlpath`~
18347 test -d \$dldir || mkdir -p \$dldir~
18348 $install_prog $dir/$dlname \$dldir/$dlname~
18349 chmod a+x \$dldir/$dlname'
18350 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18351 dlpath=$dir/\$dldll~
18353 shlibpath_overrides_runpath=yes
18357 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18358 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18359 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18362 # MinGW DLLs use traditional 'lib' prefix
18363 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18364 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18365 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18366 # It is most probably a Windows format PATH printed by
18367 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18368 # path with ; separators, and with drive letters. We can handle the
18369 # drive letters (cygwin fileutils understands them), so leave them,
18370 # especially as we might pass files found there to a mingw objdump,
18371 # which wouldn't understand a cygwinified path. Ahh.
18372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18378 # pw32 DLLs use 'pw' prefix rather than 'lib'
18379 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18385 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18388 dynamic_linker='Win32 ld.exe'
18389 # FIXME: first we should search . and the directory the executable is in
18393 darwin* | rhapsody*)
18394 dynamic_linker="$host_os dyld"
18395 version_type=darwin
18398 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18399 soname_spec='${libname}${release}${major}$shared_ext'
18400 shlibpath_overrides_runpath=yes
18401 shlibpath_var=DYLD_LIBRARY_PATH
18402 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18404 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18420 freebsd* | dragonfly*)
18421 # DragonFly does not have aout. When/if they implement a new
18422 # versioning mechanism, adjust this.
18423 if test -x /usr/bin/objformat; then
18424 objformat=`/usr/bin/objformat`
18427 freebsd[123]*) objformat=aout ;;
18428 *) objformat=elf ;;
18431 version_type=freebsd-$objformat
18432 case $version_type in
18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18443 shlibpath_var=LD_LIBRARY_PATH
18446 shlibpath_overrides_runpath=yes
18448 freebsd3.[01]* | freebsdelf3.[01]*)
18449 shlibpath_overrides_runpath=yes
18450 hardcode_into_libs=yes
18452 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18453 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18454 shlibpath_overrides_runpath=no
18455 hardcode_into_libs=yes
18457 *) # from 4.6 on, and DragonFly
18458 shlibpath_overrides_runpath=yes
18459 hardcode_into_libs=yes
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18469 soname_spec='${libname}${release}${shared_ext}$major'
18470 shlibpath_var=LD_LIBRARY_PATH
18471 hardcode_into_libs=yes
18474 hpux9* | hpux10* | hpux11*)
18475 # Give a soname corresponding to the major version so that dld.sl refuses to
18476 # link against other versions.
18483 hardcode_into_libs=yes
18484 dynamic_linker="$host_os dld.so"
18485 shlibpath_var=LD_LIBRARY_PATH
18486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488 soname_spec='${libname}${release}${shared_ext}$major'
18489 if test "X$HPUX_IA64_MODE" = X32; then
18490 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18492 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18498 hardcode_into_libs=yes
18499 dynamic_linker="$host_os dld.sl"
18500 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18509 dynamic_linker="$host_os dld.sl"
18510 shlibpath_var=SHLIB_PATH
18511 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513 soname_spec='${libname}${release}${shared_ext}$major'
18516 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18517 postinstall_cmds='chmod 555 $lib'
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18527 shlibpath_var=LD_LIBRARY_PATH
18528 shlibpath_overrides_runpath=no
18529 hardcode_into_libs=yes
18532 irix5* | irix6* | nonstopux*)
18534 nonstopux*) version_type=nonstopux ;;
18536 if test "$lt_cv_prog_gnu_ld" = yes; then
18544 soname_spec='${libname}${release}${shared_ext}$major'
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18547 irix5* | nonstopux*)
18548 libsuff= shlibsuff=
18551 case $LD in # libtool.m4 will add one of these switches to LD
18552 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18553 libsuff= shlibsuff= libmagic=32-bit;;
18554 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18555 libsuff=32 shlibsuff=N32 libmagic=N32;;
18556 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18557 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18558 *) libsuff= shlibsuff= libmagic=never-match;;
18562 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18563 shlibpath_overrides_runpath=no
18564 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18565 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18566 hardcode_into_libs=yes
18569 # No shared lib support for Linux oldld, aout, or coff.
18570 linux*oldld* | linux*aout* | linux*coff*)
18574 # This must be Linux ELF.
18575 linux* | k*bsd*-gnu)
18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580 soname_spec='${libname}${release}${shared_ext}$major'
18581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18582 shlibpath_var=LD_LIBRARY_PATH
18583 shlibpath_overrides_runpath=no
18584 # This implies no fast_install, which is unacceptable.
18585 # Some rework will be needed to allow for fast_install
18586 # before this can be enabled.
18587 hardcode_into_libs=yes
18589 # Append ld.so.conf contents to the search path
18590 if test -f /etc/ld.so.conf; then
18591 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18595 # We used to test for /lib/ld.so.1 and disable shared libraries on
18596 # powerpc, because MkLinux only supported shared libraries with the
18597 # GNU dynamic linker. Since this was broken with cross compilers,
18598 # most powerpc-linux boxes support dynamic linking these days and
18599 # people can always --disable-shared, the test was removed, and we
18600 # assume the GNU/Linux dynamic linker is in use.
18601 dynamic_linker='GNU/Linux ld.so'
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 shlibpath_var=LD_LIBRARY_PATH
18611 shlibpath_overrides_runpath=no
18612 hardcode_into_libs=yes
18613 dynamic_linker='NetBSD ld.elf_so'
18620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18623 dynamic_linker='NetBSD (a.out) ld.so'
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 dynamic_linker='NetBSD ld.elf_so'
18629 shlibpath_var=LD_LIBRARY_PATH
18630 shlibpath_overrides_runpath=yes
18631 hardcode_into_libs=yes
18636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637 shlibpath_var=LD_LIBRARY_PATH
18638 shlibpath_overrides_runpath=yes
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646 soname_spec='${libname}${release}${shared_ext}$major'
18647 shlibpath_var=LD_LIBRARY_PATH
18648 shlibpath_overrides_runpath=yes
18653 sys_lib_dlsearch_path_spec="/usr/lib"
18655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18658 *) need_version=no ;;
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18662 shlibpath_var=LD_LIBRARY_PATH
18663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18665 openbsd2.[89] | openbsd2.[89].*)
18666 shlibpath_overrides_runpath=no
18669 shlibpath_overrides_runpath=yes
18673 shlibpath_overrides_runpath=yes
18678 libname_spec='$name'
18681 library_names_spec='$libname${shared_ext} $libname.a'
18682 dynamic_linker='OS/2 ld.exe'
18683 shlibpath_var=LIBPATH
18686 osf3* | osf4* | osf5*)
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18706 soname_spec='${libname}${release}${shared_ext}$major'
18707 shlibpath_var=LD_LIBRARY_PATH
18708 shlibpath_overrides_runpath=yes
18709 hardcode_into_libs=yes
18710 # ldd complains unless libraries are executable
18711 postinstall_cmds='chmod +x $lib'
18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18718 shlibpath_var=LD_LIBRARY_PATH
18719 shlibpath_overrides_runpath=yes
18720 if test "$with_gnu_ld" = yes; then
18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729 soname_spec='${libname}${release}${shared_ext}$major'
18730 shlibpath_var=LD_LIBRARY_PATH
18731 case $host_vendor in
18733 shlibpath_overrides_runpath=no
18735 export_dynamic_flag_spec='${wl}-Blargedynsym'
18736 runpath_var=LD_RUN_PATH
18744 shlibpath_overrides_runpath=no
18745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18751 if test -d /usr/nec ;then
18753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18754 soname_spec='$libname${shared_ext}.$major'
18755 shlibpath_var=LD_LIBRARY_PATH
18759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18760 version_type=freebsd-elf
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18764 soname_spec='${libname}${release}${shared_ext}$major'
18765 shlibpath_var=LD_LIBRARY_PATH
18766 hardcode_into_libs=yes
18767 if test "$with_gnu_ld" = yes; then
18768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18769 shlibpath_overrides_runpath=no
18771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18772 shlibpath_overrides_runpath=yes
18775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18779 sys_lib_dlsearch_path_spec='/usr/lib'
18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785 soname_spec='${libname}${release}${shared_ext}$major'
18786 shlibpath_var=LD_LIBRARY_PATH
18793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18794 echo "${ECHO_T}$dynamic_linker" >&6; }
18795 test "$dynamic_linker" = no && can_build_shared=no
18797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18804 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18813 if test "$GCC" = yes; then
18814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18817 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18818 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18819 hardcode_action_GCJ=
18820 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18821 test -n "$runpath_var_GCJ" || \
18822 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18824 # We can hardcode non-existant directories.
18825 if test "$hardcode_direct_GCJ" != no &&
18826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18827 # have to relink, otherwise we might link with an installed library
18828 # when we should be linking with a yet-to-be-installed one
18829 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18830 test "$hardcode_minus_L_GCJ" != no; then
18831 # Linking always hardcodes the temporary library directory.
18832 hardcode_action_GCJ=relink
18834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18835 hardcode_action_GCJ=immediate
18838 # We cannot hardcode anything, or else we can only hardcode existing
18840 hardcode_action_GCJ=unsupported
18842 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18843 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18845 if test "$hardcode_action_GCJ" = relink; then
18846 # Fast installation is not supported
18847 enable_fast_install=no
18848 elif test "$shlibpath_overrides_runpath" = yes ||
18849 test "$enable_shared" = no; then
18850 # Fast installation is not necessary
18851 enable_fast_install=needless
18855 # The else clause should only fire when bootstrapping the
18856 # libtool distribution, otherwise you forgot to ship ltmain.sh
18857 # with your package, and you will get complaints that there are
18858 # no rules to generate ltmain.sh.
18859 if test -f "$ltmain"; then
18860 # See if we are running on zsh, and set the options which allow our commands through
18861 # without removal of \ escapes.
18862 if test -n "${ZSH_VERSION+set}" ; then
18863 setopt NO_GLOB_SUBST
18865 # Now quote all the things that may contain metacharacters while being
18866 # careful not to overquote the AC_SUBSTed values. We take copies of the
18867 # variables and quote the copies for generation of the libtool script.
18868 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18870 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18871 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18872 deplibs_check_method reload_flag reload_cmds need_locks \
18873 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18874 lt_cv_sys_global_symbol_to_c_name_address \
18875 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18876 old_postinstall_cmds old_postuninstall_cmds \
18880 lt_prog_compiler_wl_GCJ \
18881 lt_prog_compiler_pic_GCJ \
18882 lt_prog_compiler_static_GCJ \
18883 lt_prog_compiler_no_builtin_flag_GCJ \
18884 export_dynamic_flag_spec_GCJ \
18885 thread_safe_flag_spec_GCJ \
18886 whole_archive_flag_spec_GCJ \
18887 enable_shared_with_static_runtimes_GCJ \
18888 old_archive_cmds_GCJ \
18889 old_archive_from_new_cmds_GCJ \
18890 predep_objects_GCJ \
18891 postdep_objects_GCJ \
18894 compiler_lib_search_path_GCJ \
18895 compiler_lib_search_dirs_GCJ \
18897 archive_expsym_cmds_GCJ \
18898 postinstall_cmds_GCJ \
18899 postuninstall_cmds_GCJ \
18900 old_archive_from_expsyms_cmds_GCJ \
18901 allow_undefined_flag_GCJ \
18902 no_undefined_flag_GCJ \
18903 export_symbols_cmds_GCJ \
18904 hardcode_libdir_flag_spec_GCJ \
18905 hardcode_libdir_flag_spec_ld_GCJ \
18906 hardcode_libdir_separator_GCJ \
18907 hardcode_automatic_GCJ \
18909 module_expsym_cmds_GCJ \
18910 lt_cv_prog_compiler_c_o_GCJ \
18911 fix_srcfile_path_GCJ \
18912 exclude_expsyms_GCJ \
18913 include_expsyms_GCJ; do
18916 old_archive_cmds_GCJ | \
18917 old_archive_from_new_cmds_GCJ | \
18918 archive_cmds_GCJ | \
18919 archive_expsym_cmds_GCJ | \
18920 module_cmds_GCJ | \
18921 module_expsym_cmds_GCJ | \
18922 old_archive_from_expsyms_cmds_GCJ | \
18923 export_symbols_cmds_GCJ | \
18924 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18925 postinstall_cmds | postuninstall_cmds | \
18926 old_postinstall_cmds | old_postuninstall_cmds | \
18927 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18928 # Double-quote double-evaled strings.
18929 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18932 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18938 *'\$0 --fallback-echo"')
18939 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18945 cat <<__EOF__ >> "$cfgfile"
18946 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18948 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18950 # Shell to use when invoking shell scripts.
18953 # Whether or not to build shared libraries.
18954 build_libtool_libs=$enable_shared
18956 # Whether or not to build static libraries.
18957 build_old_libs=$enable_static
18959 # Whether or not to add -lc for building shared libraries.
18960 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18962 # Whether or not to disallow shared libs when runtime libs are static
18963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18965 # Whether or not to optimize for fast installation.
18966 fast_install=$enable_fast_install
18969 host_alias=$host_alias
18973 # The build system.
18974 build_alias=$build_alias
18978 # An echo program that does not interpret backslashes.
18983 AR_FLAGS=$lt_AR_FLAGS
18988 # LTCC compiler flags.
18989 LTCFLAGS=$lt_LTCFLAGS
18991 # A language-specific compiler.
18992 CC=$lt_compiler_GCJ
18994 # Is the compiler the GNU C compiler?
19000 # The linker used to build libraries.
19003 # Whether we need hard or soft links.
19006 # A BSD-compatible nm program.
19009 # A symbol stripping program
19012 # Used to examine libraries when file_magic_cmd begins "file"
19013 MAGIC_CMD=$MAGIC_CMD
19015 # Used on cygwin: DLL creation program.
19018 # Used on cygwin: object dumper.
19021 # Used on cygwin: assembler.
19024 # The name of the directory that contains temporary libtool files.
19027 # How to create reloadable object files.
19028 reload_flag=$lt_reload_flag
19029 reload_cmds=$lt_reload_cmds
19031 # How to pass a linker flag through the compiler.
19032 wl=$lt_lt_prog_compiler_wl_GCJ
19034 # Object file suffix (normally "o").
19035 objext="$ac_objext"
19037 # Old archive suffix (normally "a").
19040 # Shared library suffix (normally ".so").
19041 shrext_cmds='$shrext_cmds'
19043 # Executable file suffix (normally "").
19046 # Additional compiler flags for building library objects.
19047 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19050 # What is the maximum length of a command?
19051 max_cmd_len=$lt_cv_sys_max_cmd_len
19053 # Does compiler simultaneously support -c and -o options?
19054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19056 # Must we lock files when doing compilation?
19057 need_locks=$lt_need_locks
19059 # Do we need the lib prefix for modules?
19060 need_lib_prefix=$need_lib_prefix
19062 # Do we need a version for libraries?
19063 need_version=$need_version
19065 # Whether dlopen is supported.
19066 dlopen_support=$enable_dlopen
19068 # Whether dlopen of programs is supported.
19069 dlopen_self=$enable_dlopen_self
19071 # Whether dlopen of statically linked programs is supported.
19072 dlopen_self_static=$enable_dlopen_self_static
19074 # Compiler flag to prevent dynamic linking.
19075 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19077 # Compiler flag to turn off builtin functions.
19078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19080 # Compiler flag to allow reflexive dlopens.
19081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19083 # Compiler flag to generate shared objects directly from archives.
19084 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19086 # Compiler flag to generate thread-safe objects.
19087 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19089 # Library versioning type.
19090 version_type=$version_type
19092 # Format of library name prefix.
19093 libname_spec=$lt_libname_spec
19095 # List of archive names. First name is the real one, the rest are links.
19096 # The last name is the one that the linker finds with -lNAME.
19097 library_names_spec=$lt_library_names_spec
19099 # The coded name of the library, if different from the real name.
19100 soname_spec=$lt_soname_spec
19102 # Commands used to build and install an old-style archive.
19104 old_archive_cmds=$lt_old_archive_cmds_GCJ
19105 old_postinstall_cmds=$lt_old_postinstall_cmds
19106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19108 # Create an old-style archive from a shared archive.
19109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19111 # Create a temporary old-style archive to link instead of a shared archive.
19112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19114 # Commands used to build and install a shared archive.
19115 archive_cmds=$lt_archive_cmds_GCJ
19116 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19117 postinstall_cmds=$lt_postinstall_cmds
19118 postuninstall_cmds=$lt_postuninstall_cmds
19120 # Commands used to build a loadable module (assumed same as above if empty)
19121 module_cmds=$lt_module_cmds_GCJ
19122 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19124 # Commands to strip libraries.
19125 old_striplib=$lt_old_striplib
19126 striplib=$lt_striplib
19128 # Dependencies to place before the objects being linked to create a
19130 predep_objects=$lt_predep_objects_GCJ
19132 # Dependencies to place after the objects being linked to create a
19134 postdep_objects=$lt_postdep_objects_GCJ
19136 # Dependencies to place before the objects being linked to create a
19138 predeps=$lt_predeps_GCJ
19140 # Dependencies to place after the objects being linked to create a
19142 postdeps=$lt_postdeps_GCJ
19144 # The directories searched by this compiler when creating a shared
19146 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19148 # The library search path used internally by the compiler when linking
19149 # a shared library.
19150 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19152 # Method to check whether dependent libraries are shared objects.
19153 deplibs_check_method=$lt_deplibs_check_method
19155 # Command to use when deplibs_check_method == file_magic.
19156 file_magic_cmd=$lt_file_magic_cmd
19158 # Flag that allows shared libraries with undefined symbols to be built.
19159 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19161 # Flag that forces no undefined symbols.
19162 no_undefined_flag=$lt_no_undefined_flag_GCJ
19164 # Commands used to finish a libtool library installation in a directory.
19165 finish_cmds=$lt_finish_cmds
19167 # Same as above, but a single script fragment to be evaled but not shown.
19168 finish_eval=$lt_finish_eval
19170 # Take the output of nm and produce a listing of raw symbols and C names.
19171 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19173 # Transform the output of nm in a proper C declaration
19174 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19176 # Transform the output of nm in a C name address pair
19177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19179 # This is the shared library runtime path variable.
19180 runpath_var=$runpath_var
19182 # This is the shared library path variable.
19183 shlibpath_var=$shlibpath_var
19185 # Is shlibpath searched before the hard-coded library search path?
19186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19188 # How to hardcode a shared library path into an executable.
19189 hardcode_action=$hardcode_action_GCJ
19191 # Whether we should hardcode library paths into libraries.
19192 hardcode_into_libs=$hardcode_into_libs
19194 # Flag to hardcode \$libdir into a binary during linking.
19195 # This must work even if \$libdir does not exist.
19196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19198 # If ld is used when linking, flag to hardcode \$libdir into
19199 # a binary during linking. This must work even if \$libdir does
19201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19203 # Whether we need a single -rpath flag with a separated argument.
19204 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19206 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19207 # resulting binary.
19208 hardcode_direct=$hardcode_direct_GCJ
19210 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19211 # resulting binary.
19212 hardcode_minus_L=$hardcode_minus_L_GCJ
19214 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19215 # the resulting binary.
19216 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19218 # Set to yes if building a shared library automatically hardcodes DIR into the library
19219 # and all subsequent libraries and executables linked against it.
19220 hardcode_automatic=$hardcode_automatic_GCJ
19222 # Variables whose values should be saved in libtool wrapper scripts and
19223 # restored at relink time.
19224 variables_saved_for_relink="$variables_saved_for_relink"
19226 # Whether libtool must link a program against all its dependency libraries.
19227 link_all_deplibs=$link_all_deplibs_GCJ
19229 # Compile-time system search path for libraries
19230 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19232 # Run-time system search path for libraries
19233 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19235 # Fix the shell variable \$srcfile for the compiler.
19236 fix_srcfile_path=$lt_fix_srcfile_path
19238 # Set to yes if exported symbols are required.
19239 always_export_symbols=$always_export_symbols_GCJ
19241 # The commands to list exported symbols.
19242 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19244 # The commands to extract the exported symbol list from a shared archive.
19245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19247 # Symbols that should not be listed in the preloaded symbols.
19248 exclude_expsyms=$lt_exclude_expsyms_GCJ
19250 # Symbols that must always be exported.
19251 include_expsyms=$lt_include_expsyms_GCJ
19253 # ### END LIBTOOL TAG CONFIG: $tagname
19259 # If there is no Makefile yet, we rely on a make rule to execute
19260 # `config.status --recheck' to rerun these tests and create the
19261 # libtool script then.
19262 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19263 if test -f "$ltmain_in"; then
19264 test -f Makefile && make "$ltmain"
19270 ac_cpp='$CXXCPP $CPPFLAGS'
19271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19285 # Source file extension for RC test sources.
19288 # Object file extension for compiled RC test sources.
19292 # Code to be used in simple compile tests
19293 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19295 # Code to be used in simple link tests
19296 lt_simple_link_test_code="$lt_simple_compile_test_code"
19298 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19300 # If no C compiler was specified, use CC.
19303 # If no C compiler flags were specified, use CFLAGS.
19304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19306 # Allow CC to be a program name with arguments.
19310 # save warnings/boilerplate of simple test code
19311 ac_outfile=conftest.$ac_objext
19312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19314 _lt_compiler_boilerplate=`cat conftest.err`
19317 ac_outfile=conftest.$ac_objext
19318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19320 _lt_linker_boilerplate=`cat conftest.err`
19324 # Allow CC to be a program name with arguments.
19329 for cc_temp in $compiler""; do
19331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19337 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19339 lt_cv_prog_compiler_c_o_RC=yes
19341 # The else clause should only fire when bootstrapping the
19342 # libtool distribution, otherwise you forgot to ship ltmain.sh
19343 # with your package, and you will get complaints that there are
19344 # no rules to generate ltmain.sh.
19345 if test -f "$ltmain"; then
19346 # See if we are running on zsh, and set the options which allow our commands through
19347 # without removal of \ escapes.
19348 if test -n "${ZSH_VERSION+set}" ; then
19349 setopt NO_GLOB_SUBST
19351 # Now quote all the things that may contain metacharacters while being
19352 # careful not to overquote the AC_SUBSTed values. We take copies of the
19353 # variables and quote the copies for generation of the libtool script.
19354 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19356 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19357 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19358 deplibs_check_method reload_flag reload_cmds need_locks \
19359 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19360 lt_cv_sys_global_symbol_to_c_name_address \
19361 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19362 old_postinstall_cmds old_postuninstall_cmds \
19366 lt_prog_compiler_wl_RC \
19367 lt_prog_compiler_pic_RC \
19368 lt_prog_compiler_static_RC \
19369 lt_prog_compiler_no_builtin_flag_RC \
19370 export_dynamic_flag_spec_RC \
19371 thread_safe_flag_spec_RC \
19372 whole_archive_flag_spec_RC \
19373 enable_shared_with_static_runtimes_RC \
19374 old_archive_cmds_RC \
19375 old_archive_from_new_cmds_RC \
19376 predep_objects_RC \
19377 postdep_objects_RC \
19380 compiler_lib_search_path_RC \
19381 compiler_lib_search_dirs_RC \
19383 archive_expsym_cmds_RC \
19384 postinstall_cmds_RC \
19385 postuninstall_cmds_RC \
19386 old_archive_from_expsyms_cmds_RC \
19387 allow_undefined_flag_RC \
19388 no_undefined_flag_RC \
19389 export_symbols_cmds_RC \
19390 hardcode_libdir_flag_spec_RC \
19391 hardcode_libdir_flag_spec_ld_RC \
19392 hardcode_libdir_separator_RC \
19393 hardcode_automatic_RC \
19395 module_expsym_cmds_RC \
19396 lt_cv_prog_compiler_c_o_RC \
19397 fix_srcfile_path_RC \
19398 exclude_expsyms_RC \
19399 include_expsyms_RC; do
19402 old_archive_cmds_RC | \
19403 old_archive_from_new_cmds_RC | \
19404 archive_cmds_RC | \
19405 archive_expsym_cmds_RC | \
19407 module_expsym_cmds_RC | \
19408 old_archive_from_expsyms_cmds_RC | \
19409 export_symbols_cmds_RC | \
19410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19411 postinstall_cmds | postuninstall_cmds | \
19412 old_postinstall_cmds | old_postuninstall_cmds | \
19413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19414 # Double-quote double-evaled strings.
19415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19424 *'\$0 --fallback-echo"')
19425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19431 cat <<__EOF__ >> "$cfgfile"
19432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19436 # Shell to use when invoking shell scripts.
19439 # Whether or not to build shared libraries.
19440 build_libtool_libs=$enable_shared
19442 # Whether or not to build static libraries.
19443 build_old_libs=$enable_static
19445 # Whether or not to add -lc for building shared libraries.
19446 build_libtool_need_lc=$archive_cmds_need_lc_RC
19448 # Whether or not to disallow shared libs when runtime libs are static
19449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19451 # Whether or not to optimize for fast installation.
19452 fast_install=$enable_fast_install
19455 host_alias=$host_alias
19459 # The build system.
19460 build_alias=$build_alias
19464 # An echo program that does not interpret backslashes.
19469 AR_FLAGS=$lt_AR_FLAGS
19474 # LTCC compiler flags.
19475 LTCFLAGS=$lt_LTCFLAGS
19477 # A language-specific compiler.
19480 # Is the compiler the GNU C compiler?
19486 # The linker used to build libraries.
19489 # Whether we need hard or soft links.
19492 # A BSD-compatible nm program.
19495 # A symbol stripping program
19498 # Used to examine libraries when file_magic_cmd begins "file"
19499 MAGIC_CMD=$MAGIC_CMD
19501 # Used on cygwin: DLL creation program.
19504 # Used on cygwin: object dumper.
19507 # Used on cygwin: assembler.
19510 # The name of the directory that contains temporary libtool files.
19513 # How to create reloadable object files.
19514 reload_flag=$lt_reload_flag
19515 reload_cmds=$lt_reload_cmds
19517 # How to pass a linker flag through the compiler.
19518 wl=$lt_lt_prog_compiler_wl_RC
19520 # Object file suffix (normally "o").
19521 objext="$ac_objext"
19523 # Old archive suffix (normally "a").
19526 # Shared library suffix (normally ".so").
19527 shrext_cmds='$shrext_cmds'
19529 # Executable file suffix (normally "").
19532 # Additional compiler flags for building library objects.
19533 pic_flag=$lt_lt_prog_compiler_pic_RC
19536 # What is the maximum length of a command?
19537 max_cmd_len=$lt_cv_sys_max_cmd_len
19539 # Does compiler simultaneously support -c and -o options?
19540 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19542 # Must we lock files when doing compilation?
19543 need_locks=$lt_need_locks
19545 # Do we need the lib prefix for modules?
19546 need_lib_prefix=$need_lib_prefix
19548 # Do we need a version for libraries?
19549 need_version=$need_version
19551 # Whether dlopen is supported.
19552 dlopen_support=$enable_dlopen
19554 # Whether dlopen of programs is supported.
19555 dlopen_self=$enable_dlopen_self
19557 # Whether dlopen of statically linked programs is supported.
19558 dlopen_self_static=$enable_dlopen_self_static
19560 # Compiler flag to prevent dynamic linking.
19561 link_static_flag=$lt_lt_prog_compiler_static_RC
19563 # Compiler flag to turn off builtin functions.
19564 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19566 # Compiler flag to allow reflexive dlopens.
19567 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19569 # Compiler flag to generate shared objects directly from archives.
19570 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19572 # Compiler flag to generate thread-safe objects.
19573 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19575 # Library versioning type.
19576 version_type=$version_type
19578 # Format of library name prefix.
19579 libname_spec=$lt_libname_spec
19581 # List of archive names. First name is the real one, the rest are links.
19582 # The last name is the one that the linker finds with -lNAME.
19583 library_names_spec=$lt_library_names_spec
19585 # The coded name of the library, if different from the real name.
19586 soname_spec=$lt_soname_spec
19588 # Commands used to build and install an old-style archive.
19590 old_archive_cmds=$lt_old_archive_cmds_RC
19591 old_postinstall_cmds=$lt_old_postinstall_cmds
19592 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19594 # Create an old-style archive from a shared archive.
19595 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19597 # Create a temporary old-style archive to link instead of a shared archive.
19598 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19600 # Commands used to build and install a shared archive.
19601 archive_cmds=$lt_archive_cmds_RC
19602 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19603 postinstall_cmds=$lt_postinstall_cmds
19604 postuninstall_cmds=$lt_postuninstall_cmds
19606 # Commands used to build a loadable module (assumed same as above if empty)
19607 module_cmds=$lt_module_cmds_RC
19608 module_expsym_cmds=$lt_module_expsym_cmds_RC
19610 # Commands to strip libraries.
19611 old_striplib=$lt_old_striplib
19612 striplib=$lt_striplib
19614 # Dependencies to place before the objects being linked to create a
19616 predep_objects=$lt_predep_objects_RC
19618 # Dependencies to place after the objects being linked to create a
19620 postdep_objects=$lt_postdep_objects_RC
19622 # Dependencies to place before the objects being linked to create a
19624 predeps=$lt_predeps_RC
19626 # Dependencies to place after the objects being linked to create a
19628 postdeps=$lt_postdeps_RC
19630 # The directories searched by this compiler when creating a shared
19632 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19634 # The library search path used internally by the compiler when linking
19635 # a shared library.
19636 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19638 # Method to check whether dependent libraries are shared objects.
19639 deplibs_check_method=$lt_deplibs_check_method
19641 # Command to use when deplibs_check_method == file_magic.
19642 file_magic_cmd=$lt_file_magic_cmd
19644 # Flag that allows shared libraries with undefined symbols to be built.
19645 allow_undefined_flag=$lt_allow_undefined_flag_RC
19647 # Flag that forces no undefined symbols.
19648 no_undefined_flag=$lt_no_undefined_flag_RC
19650 # Commands used to finish a libtool library installation in a directory.
19651 finish_cmds=$lt_finish_cmds
19653 # Same as above, but a single script fragment to be evaled but not shown.
19654 finish_eval=$lt_finish_eval
19656 # Take the output of nm and produce a listing of raw symbols and C names.
19657 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19659 # Transform the output of nm in a proper C declaration
19660 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19662 # Transform the output of nm in a C name address pair
19663 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19665 # This is the shared library runtime path variable.
19666 runpath_var=$runpath_var
19668 # This is the shared library path variable.
19669 shlibpath_var=$shlibpath_var
19671 # Is shlibpath searched before the hard-coded library search path?
19672 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19674 # How to hardcode a shared library path into an executable.
19675 hardcode_action=$hardcode_action_RC
19677 # Whether we should hardcode library paths into libraries.
19678 hardcode_into_libs=$hardcode_into_libs
19680 # Flag to hardcode \$libdir into a binary during linking.
19681 # This must work even if \$libdir does not exist.
19682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19684 # If ld is used when linking, flag to hardcode \$libdir into
19685 # a binary during linking. This must work even if \$libdir does
19687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19689 # Whether we need a single -rpath flag with a separated argument.
19690 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19692 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19693 # resulting binary.
19694 hardcode_direct=$hardcode_direct_RC
19696 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19697 # resulting binary.
19698 hardcode_minus_L=$hardcode_minus_L_RC
19700 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19701 # the resulting binary.
19702 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19704 # Set to yes if building a shared library automatically hardcodes DIR into the library
19705 # and all subsequent libraries and executables linked against it.
19706 hardcode_automatic=$hardcode_automatic_RC
19708 # Variables whose values should be saved in libtool wrapper scripts and
19709 # restored at relink time.
19710 variables_saved_for_relink="$variables_saved_for_relink"
19712 # Whether libtool must link a program against all its dependency libraries.
19713 link_all_deplibs=$link_all_deplibs_RC
19715 # Compile-time system search path for libraries
19716 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19718 # Run-time system search path for libraries
19719 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19721 # Fix the shell variable \$srcfile for the compiler.
19722 fix_srcfile_path=$lt_fix_srcfile_path
19724 # Set to yes if exported symbols are required.
19725 always_export_symbols=$always_export_symbols_RC
19727 # The commands to list exported symbols.
19728 export_symbols_cmds=$lt_export_symbols_cmds_RC
19730 # The commands to extract the exported symbol list from a shared archive.
19731 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19733 # Symbols that should not be listed in the preloaded symbols.
19734 exclude_expsyms=$lt_exclude_expsyms_RC
19736 # Symbols that must always be exported.
19737 include_expsyms=$lt_include_expsyms_RC
19739 # ### END LIBTOOL TAG CONFIG: $tagname
19745 # If there is no Makefile yet, we rely on a make rule to execute
19746 # `config.status --recheck' to rerun these tests and create the
19747 # libtool script then.
19748 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19749 if test -f "$ltmain_in"; then
19750 test -f Makefile && make "$ltmain"
19756 ac_cpp='$CXXCPP $CPPFLAGS'
19757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19767 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19768 { (exit 1); exit 1; }; }
19772 # Append the new tag name to the list of available tags.
19773 if test -n "$tagname" ; then
19774 available_tags="$available_tags $tagname"
19780 # Now substitute the updated list of available tags.
19781 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19782 mv "${ofile}T" "$ofile"
19786 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19787 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19788 { (exit 1); exit 1; }; }
19794 # This can be used to rebuild libtool when needed
19795 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19797 # Always use our own libtool.
19798 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19800 # Prevent multiple expansion
19823 # Check whether some low-level functions/files are available
19825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19827 if test "${ac_cv_header_stdc+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836 #include <stdlib.h>
19837 #include <stdarg.h>
19838 #include <string.h>
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } && {
19863 test -z "$ac_cxx_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest.$ac_objext; then
19866 ac_cv_header_stdc=yes
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_cv_header_stdc=no
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876 if test $ac_cv_header_stdc = yes; then
19877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 #include <string.h>
19887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19888 $EGREP "memchr" >/dev/null 2>&1; then
19891 ac_cv_header_stdc=no
19897 if test $ac_cv_header_stdc = yes; then
19898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 #include <stdlib.h>
19908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19909 $EGREP "free" >/dev/null 2>&1; then
19912 ac_cv_header_stdc=no
19918 if test $ac_cv_header_stdc = yes; then
19919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19920 if test "$cross_compiling" = yes; then
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19930 #include <stdlib.h>
19931 #if ((' ' & 0x0FF) == 0x020)
19932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19935 # define ISLOWER(c) \
19936 (('a' <= (c) && (c) <= 'i') \
19937 || ('j' <= (c) && (c) <= 'r') \
19938 || ('s' <= (c) && (c) <= 'z'))
19939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19947 for (i = 0; i < 256; i++)
19948 if (XOR (islower (i), ISLOWER (i))
19949 || toupper (i) != TOUPPER (i))
19954 rm -f conftest$ac_exeext
19955 if { (ac_try="$ac_link"
19956 case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_link") 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19965 { (case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_try") 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
19976 echo "$as_me: program exited with status $ac_status" >&5
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ( exit $ac_status )
19981 ac_cv_header_stdc=no
19983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19991 if test $ac_cv_header_stdc = yes; then
19993 cat >>confdefs.h <<\_ACEOF
19994 #define STDC_HEADERS 1
20000 # These are tested for by AC_HEADER_STDC, but I check again to set the var
20001 if test "${ac_cv_header_stdint_h+set}" = set; then
20002 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20003 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20004 if test "${ac_cv_header_stdint_h+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20008 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20010 # Is the header compilable?
20011 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
20012 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20019 $ac_includes_default
20020 #include <stdint.h>
20022 rm -f conftest.$ac_objext
20023 if { (ac_try="$ac_compile"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_compile") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } && {
20036 test -z "$ac_cxx_werror_flag" ||
20037 test ! -s conftest.err
20038 } && test -s conftest.$ac_objext; then
20039 ac_header_compiler=yes
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ac_header_compiler=no
20047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20049 echo "${ECHO_T}$ac_header_compiler" >&6; }
20051 # Is the header present?
20052 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20053 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 #include <stdint.h>
20062 if { (ac_try="$ac_cpp conftest.$ac_ext"
20063 case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20070 grep -v '^ *+' conftest.er1 >conftest.err
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } >/dev/null && {
20075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20076 test ! -s conftest.err
20078 ac_header_preproc=yes
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ac_header_preproc=no
20086 rm -f conftest.err conftest.$ac_ext
20087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20088 echo "${ECHO_T}$ac_header_preproc" >&6; }
20090 # So? What about this header?
20091 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20093 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20094 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20096 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20097 ac_header_preproc=yes
20100 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20101 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20103 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20105 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20107 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20109 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20111 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20113 ## ------------------------------------ ##
20114 ## Report this to opensource@google.com ##
20115 ## ------------------------------------ ##
20117 ) | sed "s/^/$as_me: WARNING: /" >&2
20120 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20121 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20122 if test "${ac_cv_header_stdint_h+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 ac_cv_header_stdint_h=$ac_header_preproc
20127 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20128 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20131 if test $ac_cv_header_stdint_h = yes; then
20132 ac_cv_have_stdint_h=1
20134 ac_cv_have_stdint_h=0
20138 if test "${ac_cv_header_sys_types_h+set}" = set; then
20139 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20140 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20141 if test "${ac_cv_header_sys_types_h+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20145 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20147 # Is the header compilable?
20148 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20149 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 $ac_includes_default
20157 #include <sys/types.h>
20159 rm -f conftest.$ac_objext
20160 if { (ac_try="$ac_compile"
20161 case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_compile") 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_cxx_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest.$ac_objext; then
20176 ac_header_compiler=yes
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 ac_header_compiler=no
20184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20186 echo "${ECHO_T}$ac_header_compiler" >&6; }
20188 # Is the header present?
20189 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20190 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 #include <sys/types.h>
20199 if { (ac_try="$ac_cpp conftest.$ac_ext"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } >/dev/null && {
20212 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20213 test ! -s conftest.err
20215 ac_header_preproc=yes
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_header_preproc=no
20223 rm -f conftest.err conftest.$ac_ext
20224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20225 echo "${ECHO_T}$ac_header_preproc" >&6; }
20227 # So? What about this header?
20228 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20230 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20231 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20233 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20234 ac_header_preproc=yes
20237 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20238 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20240 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20242 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20244 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20246 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20248 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20250 ## ------------------------------------ ##
20251 ## Report this to opensource@google.com ##
20252 ## ------------------------------------ ##
20254 ) | sed "s/^/$as_me: WARNING: /" >&2
20257 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20258 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20259 if test "${ac_cv_header_sys_types_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 ac_cv_header_sys_types_h=$ac_header_preproc
20264 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20265 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20268 if test $ac_cv_header_sys_types_h = yes; then
20269 ac_cv_have_systypes_h=1
20271 ac_cv_have_systypes_h=0
20275 if test "${ac_cv_header_inttypes_h+set}" = set; then
20276 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20277 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20278 if test "${ac_cv_header_inttypes_h+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20282 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20284 # Is the header compilable?
20285 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20286 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 $ac_includes_default
20294 #include <inttypes.h>
20296 rm -f conftest.$ac_objext
20297 if { (ac_try="$ac_compile"
20298 case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_compile") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_cxx_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest.$ac_objext; then
20313 ac_header_compiler=yes
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_header_compiler=no
20321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20323 echo "${ECHO_T}$ac_header_compiler" >&6; }
20325 # Is the header present?
20326 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20327 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <inttypes.h>
20336 if { (ac_try="$ac_cpp conftest.$ac_ext"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20344 grep -v '^ *+' conftest.er1 >conftest.err
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } >/dev/null && {
20349 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20350 test ! -s conftest.err
20352 ac_header_preproc=yes
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_header_preproc=no
20360 rm -f conftest.err conftest.$ac_ext
20361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20362 echo "${ECHO_T}$ac_header_preproc" >&6; }
20364 # So? What about this header?
20365 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20367 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20368 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20370 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20371 ac_header_preproc=yes
20374 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20375 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20377 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20379 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20380 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20381 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20382 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20383 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20385 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20387 ## ------------------------------------ ##
20388 ## Report this to opensource@google.com ##
20389 ## ------------------------------------ ##
20391 ) | sed "s/^/$as_me: WARNING: /" >&2
20394 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20395 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20396 if test "${ac_cv_header_inttypes_h+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 ac_cv_header_inttypes_h=$ac_header_preproc
20401 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20402 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20405 if test $ac_cv_header_inttypes_h = yes; then
20406 ac_cv_have_inttypes_h=1
20408 ac_cv_have_inttypes_h=0
20413 for ac_header in unistd.h
20415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 ac_res=`eval echo '${'$as_ac_Header'}'`
20423 { echo "$as_me:$LINENO: result: $ac_res" >&5
20424 echo "${ECHO_T}$ac_res" >&6; }
20426 # Is the header compilable?
20427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20429 cat >conftest.$ac_ext <<_ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 $ac_includes_default
20436 #include <$ac_header>
20438 rm -f conftest.$ac_objext
20439 if { (ac_try="$ac_compile"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_compile") 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_cxx_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest.$ac_objext; then
20455 ac_header_compiler=yes
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_header_compiler=no
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20465 echo "${ECHO_T}$ac_header_compiler" >&6; }
20467 # Is the header present?
20468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 #include <$ac_header>
20478 if { (ac_try="$ac_cpp conftest.$ac_ext"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } >/dev/null && {
20491 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20492 test ! -s conftest.err
20494 ac_header_preproc=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_header_preproc=no
20502 rm -f conftest.err conftest.$ac_ext
20503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20504 echo "${ECHO_T}$ac_header_preproc" >&6; }
20506 # So? What about this header?
20507 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20513 ac_header_preproc=yes
20516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20529 ## ------------------------------------ ##
20530 ## Report this to opensource@google.com ##
20531 ## ------------------------------------ ##
20533 ) | sed "s/^/$as_me: WARNING: /" >&2
20536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 eval "$as_ac_Header=\$ac_header_preproc"
20543 ac_res=`eval echo '${'$as_ac_Header'}'`
20544 { echo "$as_me:$LINENO: result: $ac_res" >&5
20545 echo "${ECHO_T}$ac_res" >&6; }
20548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20549 cat >>confdefs.h <<_ACEOF
20550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20552 ac_cv_have_unistd_h=1
20554 ac_cv_have_unistd_h=0
20560 for ac_header in syscall.h
20562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 ac_res=`eval echo '${'$as_ac_Header'}'`
20570 { echo "$as_me:$LINENO: result: $ac_res" >&5
20571 echo "${ECHO_T}$ac_res" >&6; }
20573 # Is the header compilable?
20574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 $ac_includes_default
20583 #include <$ac_header>
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_compile") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_cxx_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest.$ac_objext; then
20602 ac_header_compiler=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_header_compiler=no
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20612 echo "${ECHO_T}$ac_header_compiler" >&6; }
20614 # Is the header present?
20615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 #include <$ac_header>
20625 if { (ac_try="$ac_cpp conftest.$ac_ext"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } >/dev/null && {
20638 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20639 test ! -s conftest.err
20641 ac_header_preproc=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 ac_header_preproc=no
20649 rm -f conftest.err conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6; }
20653 # So? What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20660 ac_header_preproc=yes
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20676 ## ------------------------------------ ##
20677 ## Report this to opensource@google.com ##
20678 ## ------------------------------------ ##
20680 ) | sed "s/^/$as_me: WARNING: /" >&2
20683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 eval "$as_ac_Header=\$ac_header_preproc"
20690 ac_res=`eval echo '${'$as_ac_Header'}'`
20691 { echo "$as_me:$LINENO: result: $ac_res" >&5
20692 echo "${ECHO_T}$ac_res" >&6; }
20695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20696 cat >>confdefs.h <<_ACEOF
20697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20705 for ac_header in sys/syscall.h
20707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 ac_res=`eval echo '${'$as_ac_Header'}'`
20715 { echo "$as_me:$LINENO: result: $ac_res" >&5
20716 echo "${ECHO_T}$ac_res" >&6; }
20718 # Is the header compilable?
20719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 $ac_includes_default
20728 #include <$ac_header>
20730 rm -f conftest.$ac_objext
20731 if { (ac_try="$ac_compile"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_compile") 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } && {
20744 test -z "$ac_cxx_werror_flag" ||
20745 test ! -s conftest.err
20746 } && test -s conftest.$ac_objext; then
20747 ac_header_compiler=yes
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_header_compiler=no
20755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20757 echo "${ECHO_T}$ac_header_compiler" >&6; }
20759 # Is the header present?
20760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20762 cat >conftest.$ac_ext <<_ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20768 #include <$ac_header>
20770 if { (ac_try="$ac_cpp conftest.$ac_ext"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20778 grep -v '^ *+' conftest.er1 >conftest.err
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } >/dev/null && {
20783 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20784 test ! -s conftest.err
20786 ac_header_preproc=yes
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_header_preproc=no
20794 rm -f conftest.err conftest.$ac_ext
20795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20796 echo "${ECHO_T}$ac_header_preproc" >&6; }
20798 # So? What about this header?
20799 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20805 ac_header_preproc=yes
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20821 ## ------------------------------------ ##
20822 ## Report this to opensource@google.com ##
20823 ## ------------------------------------ ##
20825 ) | sed "s/^/$as_me: WARNING: /" >&2
20828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 eval "$as_ac_Header=\$ac_header_preproc"
20835 ac_res=`eval echo '${'$as_ac_Header'}'`
20836 { echo "$as_me:$LINENO: result: $ac_res" >&5
20837 echo "${ECHO_T}$ac_res" >&6; }
20840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20849 # For backtrace with glibc.
20851 for ac_header in execinfo.h
20853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 ac_res=`eval echo '${'$as_ac_Header'}'`
20861 { echo "$as_me:$LINENO: result: $ac_res" >&5
20862 echo "${ECHO_T}$ac_res" >&6; }
20864 # Is the header compilable?
20865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 #include <$ac_header>
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20885 grep -v '^ *+' conftest.er1 >conftest.err
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_cxx_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest.$ac_objext; then
20893 ac_header_compiler=yes
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 ac_header_compiler=no
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20903 echo "${ECHO_T}$ac_header_compiler" >&6; }
20905 # Is the header present?
20906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <$ac_header>
20916 if { (ac_try="$ac_cpp conftest.$ac_ext"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev/null && {
20929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20930 test ! -s conftest.err
20932 ac_header_preproc=yes
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_header_preproc=no
20940 rm -f conftest.err conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20942 echo "${ECHO_T}$ac_header_preproc" >&6; }
20944 # So? What about this header?
20945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20951 ac_header_preproc=yes
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20967 ## ------------------------------------ ##
20968 ## Report this to opensource@google.com ##
20969 ## ------------------------------------ ##
20971 ) | sed "s/^/$as_me: WARNING: /" >&2
20974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 eval "$as_ac_Header=\$ac_header_preproc"
20981 ac_res=`eval echo '${'$as_ac_Header'}'`
20982 { echo "$as_me:$LINENO: result: $ac_res" >&5
20983 echo "${ECHO_T}$ac_res" >&6; }
20986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20987 cat >>confdefs.h <<_ACEOF
20988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20995 # For backtrace with libunwind.
20997 for ac_header in libunwind.h
20999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 ac_res=`eval echo '${'$as_ac_Header'}'`
21007 { echo "$as_me:$LINENO: result: $ac_res" >&5
21008 echo "${ECHO_T}$ac_res" >&6; }
21010 # Is the header compilable?
21011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 #include <$ac_header>
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_compile") 2>conftest.er1
21031 grep -v '^ *+' conftest.er1 >conftest.err
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } && {
21036 test -z "$ac_cxx_werror_flag" ||
21037 test ! -s conftest.err
21038 } && test -s conftest.$ac_objext; then
21039 ac_header_compiler=yes
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_compiler=no
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21049 echo "${ECHO_T}$ac_header_compiler" >&6; }
21051 # Is the header present?
21052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 #include <$ac_header>
21062 if { (ac_try="$ac_cpp conftest.$ac_ext"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21070 grep -v '^ *+' conftest.er1 >conftest.err
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } >/dev/null && {
21075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21076 test ! -s conftest.err
21078 ac_header_preproc=yes
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_header_preproc=no
21086 rm -f conftest.err conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21088 echo "${ECHO_T}$ac_header_preproc" >&6; }
21090 # So? What about this header?
21091 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21097 ac_header_preproc=yes
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21113 ## ------------------------------------ ##
21114 ## Report this to opensource@google.com ##
21115 ## ------------------------------------ ##
21117 ) | sed "s/^/$as_me: WARNING: /" >&2
21120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 eval "$as_ac_Header=\$ac_header_preproc"
21127 ac_res=`eval echo '${'$as_ac_Header'}'`
21128 { echo "$as_me:$LINENO: result: $ac_res" >&5
21129 echo "${ECHO_T}$ac_res" >&6; }
21132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21133 cat >>confdefs.h <<_ACEOF
21134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21142 for ac_header in ucontext.h
21144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 ac_res=`eval echo '${'$as_ac_Header'}'`
21152 { echo "$as_me:$LINENO: result: $ac_res" >&5
21153 echo "${ECHO_T}$ac_res" >&6; }
21155 # Is the header compilable?
21156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21158 cat >conftest.$ac_ext <<_ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 $ac_includes_default
21165 #include <$ac_header>
21167 rm -f conftest.$ac_objext
21168 if { (ac_try="$ac_compile"
21169 case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_compile") 2>conftest.er1
21176 grep -v '^ *+' conftest.er1 >conftest.err
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } && {
21181 test -z "$ac_cxx_werror_flag" ||
21182 test ! -s conftest.err
21183 } && test -s conftest.$ac_objext; then
21184 ac_header_compiler=yes
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 ac_header_compiler=no
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21194 echo "${ECHO_T}$ac_header_compiler" >&6; }
21196 # Is the header present?
21197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21199 cat >conftest.$ac_ext <<_ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 #include <$ac_header>
21207 if { (ac_try="$ac_cpp conftest.$ac_ext"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21215 grep -v '^ *+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } >/dev/null && {
21220 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21221 test ! -s conftest.err
21223 ac_header_preproc=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_header_preproc=no
21231 rm -f conftest.err conftest.$ac_ext
21232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21233 echo "${ECHO_T}$ac_header_preproc" >&6; }
21235 # So? What about this header?
21236 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21242 ac_header_preproc=yes
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21258 ## ------------------------------------ ##
21259 ## Report this to opensource@google.com ##
21260 ## ------------------------------------ ##
21262 ) | sed "s/^/$as_me: WARNING: /" >&2
21265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 eval "$as_ac_Header=\$ac_header_preproc"
21272 ac_res=`eval echo '${'$as_ac_Header'}'`
21273 { echo "$as_me:$LINENO: result: $ac_res" >&5
21274 echo "${ECHO_T}$ac_res" >&6; }
21277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21278 cat >>confdefs.h <<_ACEOF
21279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21287 for ac_header in sys/utsname.h
21289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21296 ac_res=`eval echo '${'$as_ac_Header'}'`
21297 { echo "$as_me:$LINENO: result: $ac_res" >&5
21298 echo "${ECHO_T}$ac_res" >&6; }
21300 # Is the header compilable?
21301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 $ac_includes_default
21310 #include <$ac_header>
21312 rm -f conftest.$ac_objext
21313 if { (ac_try="$ac_compile"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } && {
21326 test -z "$ac_cxx_werror_flag" ||
21327 test ! -s conftest.err
21328 } && test -s conftest.$ac_objext; then
21329 ac_header_compiler=yes
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_header_compiler=no
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21339 echo "${ECHO_T}$ac_header_compiler" >&6; }
21341 # Is the header present?
21342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <$ac_header>
21352 if { (ac_try="$ac_cpp conftest.$ac_ext"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21360 grep -v '^ *+' conftest.er1 >conftest.err
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } >/dev/null && {
21365 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21366 test ! -s conftest.err
21368 ac_header_preproc=yes
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 ac_header_preproc=no
21376 rm -f conftest.err conftest.$ac_ext
21377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21378 echo "${ECHO_T}$ac_header_preproc" >&6; }
21380 # So? What about this header?
21381 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21387 ac_header_preproc=yes
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21403 ## ------------------------------------ ##
21404 ## Report this to opensource@google.com ##
21405 ## ------------------------------------ ##
21407 ) | sed "s/^/$as_me: WARNING: /" >&2
21410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 eval "$as_ac_Header=\$ac_header_preproc"
21417 ac_res=`eval echo '${'$as_ac_Header'}'`
21418 { echo "$as_me:$LINENO: result: $ac_res" >&5
21419 echo "${ECHO_T}$ac_res" >&6; }
21422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21423 cat >>confdefs.h <<_ACEOF
21424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21432 for ac_header in pwd.h
21434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 ac_res=`eval echo '${'$as_ac_Header'}'`
21442 { echo "$as_me:$LINENO: result: $ac_res" >&5
21443 echo "${ECHO_T}$ac_res" >&6; }
21445 # Is the header compilable?
21446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 $ac_includes_default
21455 #include <$ac_header>
21457 rm -f conftest.$ac_objext
21458 if { (ac_try="$ac_compile"
21459 case "(($ac_try" in
21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464 (eval "$ac_compile") 2>conftest.er1
21466 grep -v '^ *+' conftest.er1 >conftest.err
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && {
21471 test -z "$ac_cxx_werror_flag" ||
21472 test ! -s conftest.err
21473 } && test -s conftest.$ac_objext; then
21474 ac_header_compiler=yes
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ac_header_compiler=no
21482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21484 echo "${ECHO_T}$ac_header_compiler" >&6; }
21486 # Is the header present?
21487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <$ac_header>
21497 if { (ac_try="$ac_cpp conftest.$ac_ext"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } >/dev/null && {
21510 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21511 test ! -s conftest.err
21513 ac_header_preproc=yes
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_header_preproc=no
21521 rm -f conftest.err conftest.$ac_ext
21522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21523 echo "${ECHO_T}$ac_header_preproc" >&6; }
21525 # So? What about this header?
21526 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21532 ac_header_preproc=yes
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21548 ## ------------------------------------ ##
21549 ## Report this to opensource@google.com ##
21550 ## ------------------------------------ ##
21552 ) | sed "s/^/$as_me: WARNING: /" >&2
21555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 eval "$as_ac_Header=\$ac_header_preproc"
21562 ac_res=`eval echo '${'$as_ac_Header'}'`
21563 { echo "$as_me:$LINENO: result: $ac_res" >&5
21564 echo "${ECHO_T}$ac_res" >&6; }
21567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21568 cat >>confdefs.h <<_ACEOF
21569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21577 for ac_header in syslog.h
21579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21584 echo $ECHO_N "(cached) $ECHO_C" >&6
21586 ac_res=`eval echo '${'$as_ac_Header'}'`
21587 { echo "$as_me:$LINENO: result: $ac_res" >&5
21588 echo "${ECHO_T}$ac_res" >&6; }
21590 # Is the header compilable?
21591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 $ac_includes_default
21600 #include <$ac_header>
21602 rm -f conftest.$ac_objext
21603 if { (ac_try="$ac_compile"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_compile") 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_cxx_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest.$ac_objext; then
21619 ac_header_compiler=yes
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ac_header_compiler=no
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21629 echo "${ECHO_T}$ac_header_compiler" >&6; }
21631 # Is the header present?
21632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21634 cat >conftest.$ac_ext <<_ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #include <$ac_header>
21642 if { (ac_try="$ac_cpp conftest.$ac_ext"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21650 grep -v '^ *+' conftest.er1 >conftest.err
21652 cat conftest.err >&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } >/dev/null && {
21655 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21656 test ! -s conftest.err
21658 ac_header_preproc=yes
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 ac_header_preproc=no
21666 rm -f conftest.err conftest.$ac_ext
21667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21668 echo "${ECHO_T}$ac_header_preproc" >&6; }
21670 # So? What about this header?
21671 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21677 ac_header_preproc=yes
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21693 ## ------------------------------------ ##
21694 ## Report this to opensource@google.com ##
21695 ## ------------------------------------ ##
21697 ) | sed "s/^/$as_me: WARNING: /" >&2
21700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 eval "$as_ac_Header=\$ac_header_preproc"
21707 ac_res=`eval echo '${'$as_ac_Header'}'`
21708 { echo "$as_me:$LINENO: result: $ac_res" >&5
21709 echo "${ECHO_T}$ac_res" >&6; }
21712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21722 for ac_header in sys/time.h
21724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 ac_res=`eval echo '${'$as_ac_Header'}'`
21732 { echo "$as_me:$LINENO: result: $ac_res" >&5
21733 echo "${ECHO_T}$ac_res" >&6; }
21735 # Is the header compilable?
21736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21738 cat >conftest.$ac_ext <<_ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 $ac_includes_default
21745 #include <$ac_header>
21747 rm -f conftest.$ac_objext
21748 if { (ac_try="$ac_compile"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_compile") 2>conftest.er1
21756 grep -v '^ *+' conftest.er1 >conftest.err
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && {
21761 test -z "$ac_cxx_werror_flag" ||
21762 test ! -s conftest.err
21763 } && test -s conftest.$ac_objext; then
21764 ac_header_compiler=yes
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_header_compiler=no
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774 echo "${ECHO_T}$ac_header_compiler" >&6; }
21776 # Is the header present?
21777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <$ac_header>
21787 if { (ac_try="$ac_cpp conftest.$ac_ext"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } >/dev/null && {
21800 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21801 test ! -s conftest.err
21803 ac_header_preproc=yes
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_header_preproc=no
21811 rm -f conftest.err conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21813 echo "${ECHO_T}$ac_header_preproc" >&6; }
21815 # So? What about this header?
21816 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21822 ac_header_preproc=yes
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21838 ## ------------------------------------ ##
21839 ## Report this to opensource@google.com ##
21840 ## ------------------------------------ ##
21842 ) | sed "s/^/$as_me: WARNING: /" >&2
21845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 eval "$as_ac_Header=\$ac_header_preproc"
21852 ac_res=`eval echo '${'$as_ac_Header'}'`
21853 { echo "$as_me:$LINENO: result: $ac_res" >&5
21854 echo "${ECHO_T}$ac_res" >&6; }
21857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21858 cat >>confdefs.h <<_ACEOF
21859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21867 for ac_header in glob.h
21869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 ac_res=`eval echo '${'$as_ac_Header'}'`
21877 { echo "$as_me:$LINENO: result: $ac_res" >&5
21878 echo "${ECHO_T}$ac_res" >&6; }
21880 # Is the header compilable?
21881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 $ac_includes_default
21890 #include <$ac_header>
21892 rm -f conftest.$ac_objext
21893 if { (ac_try="$ac_compile"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_compile") 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_cxx_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest.$ac_objext; then
21909 ac_header_compiler=yes
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ac_header_compiler=no
21917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21919 echo "${ECHO_T}$ac_header_compiler" >&6; }
21921 # Is the header present?
21922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 #include <$ac_header>
21932 if { (ac_try="$ac_cpp conftest.$ac_ext"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } >/dev/null && {
21945 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21946 test ! -s conftest.err
21948 ac_header_preproc=yes
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_header_preproc=no
21956 rm -f conftest.err conftest.$ac_ext
21957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21958 echo "${ECHO_T}$ac_header_preproc" >&6; }
21960 # So? What about this header?
21961 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21967 ac_header_preproc=yes
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21983 ## ------------------------------------ ##
21984 ## Report this to opensource@google.com ##
21985 ## ------------------------------------ ##
21987 ) | sed "s/^/$as_me: WARNING: /" >&2
21990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 eval "$as_ac_Header=\$ac_header_preproc"
21997 ac_res=`eval echo '${'$as_ac_Header'}'`
21998 { echo "$as_me:$LINENO: result: $ac_res" >&5
21999 echo "${ECHO_T}$ac_res" >&6; }
22002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22003 cat >>confdefs.h <<_ACEOF
22004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22012 { echo "$as_me:$LINENO: checking for void *" >&5
22013 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22014 if test "${ac_cv_type_void_p+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 $ac_includes_default
22024 typedef void * ac__type_new_;
22028 if ((ac__type_new_ *) 0)
22030 if (sizeof (ac__type_new_))
22036 rm -f conftest.$ac_objext
22037 if { (ac_try="$ac_compile"
22038 case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_compile") 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && {
22050 test -z "$ac_cxx_werror_flag" ||
22051 test ! -s conftest.err
22052 } && test -s conftest.$ac_objext; then
22053 ac_cv_type_void_p=yes
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 ac_cv_type_void_p=no
22061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22064 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22066 # The cast to long int works around a bug in the HP C Compiler
22067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22069 # This bug is HP SR number 8606223364.
22070 { echo "$as_me:$LINENO: checking size of void *" >&5
22071 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22072 if test "${ac_cv_sizeof_void_p+set}" = set; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22075 if test "$cross_compiling" = yes; then
22076 # Depending upon the size, compute the lo and hi bounds.
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 $ac_includes_default
22084 typedef void * ac__type_sizeof_;
22088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_compile") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_cxx_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest.$ac_objext; then
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 $ac_includes_default
22121 typedef void * ac__type_sizeof_;
22125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22132 rm -f conftest.$ac_objext
22133 if { (ac_try="$ac_compile"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_compile") 2>conftest.er1
22141 grep -v '^ *+' conftest.er1 >conftest.err
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_cxx_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest.$ac_objext; then
22149 ac_hi=$ac_mid; break
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ac_lo=`expr $ac_mid + 1`
22155 if test $ac_lo -le $ac_mid; then
22159 ac_mid=`expr 2 '*' $ac_mid + 1`
22162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 $ac_includes_default
22175 typedef void * ac__type_sizeof_;
22179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22186 rm -f conftest.$ac_objext
22187 if { (ac_try="$ac_compile"
22188 case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_compile") 2>conftest.er1
22195 grep -v '^ *+' conftest.er1 >conftest.err
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && {
22200 test -z "$ac_cxx_werror_flag" ||
22201 test ! -s conftest.err
22202 } && test -s conftest.$ac_objext; then
22205 cat >conftest.$ac_ext <<_ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 $ac_includes_default
22212 typedef void * ac__type_sizeof_;
22216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22232 grep -v '^ *+' conftest.er1 >conftest.err
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_cxx_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 ac_lo=$ac_mid; break
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_hi=`expr '(' $ac_mid ')' - 1`
22246 if test $ac_mid -le $ac_hi; then
22250 ac_mid=`expr 2 '*' $ac_mid`
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 # Binary search between lo and hi bounds.
22267 while test "x$ac_lo" != "x$ac_hi"; do
22268 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22269 cat >conftest.$ac_ext <<_ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22275 $ac_includes_default
22276 typedef void * ac__type_sizeof_;
22280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22287 rm -f conftest.$ac_objext
22288 if { (ac_try="$ac_compile"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_compile") 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } && {
22301 test -z "$ac_cxx_werror_flag" ||
22302 test ! -s conftest.err
22303 } && test -s conftest.$ac_objext; then
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 ac_lo=`expr '(' $ac_mid ')' + 1`
22312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22316 '') if test "$ac_cv_type_void_p" = yes; then
22317 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22318 See \`config.log' for more details." >&5
22319 echo "$as_me: error: cannot compute sizeof (void *)
22320 See \`config.log' for more details." >&2;}
22321 { (exit 77); exit 77; }; }
22323 ac_cv_sizeof_void_p=0
22327 cat >conftest.$ac_ext <<_ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333 $ac_includes_default
22334 typedef void * ac__type_sizeof_;
22335 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22336 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22338 #include <stdlib.h>
22343 FILE *f = fopen ("conftest.val", "w");
22346 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22348 long int i = longval ();
22349 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22351 fprintf (f, "%ld\n", i);
22355 unsigned long int i = ulongval ();
22356 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22358 fprintf (f, "%lu\n", i);
22360 return ferror (f) || fclose (f) != 0;
22366 rm -f conftest$ac_exeext
22367 if { (ac_try="$ac_link"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_link") 2>&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22377 { (case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_try") 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
22386 ac_cv_sizeof_void_p=`cat conftest.val`
22388 echo "$as_me: program exited with status $ac_status" >&5
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 ( exit $ac_status )
22393 if test "$ac_cv_type_void_p" = yes; then
22394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22395 See \`config.log' for more details." >&5
22396 echo "$as_me: error: cannot compute sizeof (void *)
22397 See \`config.log' for more details." >&2;}
22398 { (exit 77); exit 77; }; }
22400 ac_cv_sizeof_void_p=0
22403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22407 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22408 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22412 cat >>confdefs.h <<_ACEOF
22413 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22418 # These are the types I need. We look for them in either stdint.h,
22419 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22420 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22421 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22422 if test "${ac_cv_type_uint16_t+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 $ac_includes_default
22432 typedef uint16_t ac__type_new_;
22436 if ((ac__type_new_ *) 0)
22438 if (sizeof (ac__type_new_))
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_compile") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_cxx_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest.$ac_objext; then
22461 ac_cv_type_uint16_t=yes
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_cv_type_uint16_t=no
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22472 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22473 if test $ac_cv_type_uint16_t = yes; then
22474 ac_cv_have_uint16_t=1
22476 ac_cv_have_uint16_t=0
22479 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22480 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22481 if test "${ac_cv_type_u_int16_t+set}" = set; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 cat >conftest.$ac_ext <<_ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h. */
22490 $ac_includes_default
22491 typedef u_int16_t ac__type_new_;
22495 if ((ac__type_new_ *) 0)
22497 if (sizeof (ac__type_new_))
22503 rm -f conftest.$ac_objext
22504 if { (ac_try="$ac_compile"
22505 case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_compile") 2>conftest.er1
22512 grep -v '^ *+' conftest.er1 >conftest.err
22514 cat conftest.err >&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } && {
22517 test -z "$ac_cxx_werror_flag" ||
22518 test ! -s conftest.err
22519 } && test -s conftest.$ac_objext; then
22520 ac_cv_type_u_int16_t=yes
22522 echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22525 ac_cv_type_u_int16_t=no
22528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22531 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22532 if test $ac_cv_type_u_int16_t = yes; then
22533 ac_cv_have_u_int16_t=1
22535 ac_cv_have_u_int16_t=0
22538 { echo "$as_me:$LINENO: checking for __uint16" >&5
22539 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22540 if test "${ac_cv_type___uint16+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 $ac_includes_default
22550 typedef __uint16 ac__type_new_;
22554 if ((ac__type_new_ *) 0)
22556 if (sizeof (ac__type_new_))
22562 rm -f conftest.$ac_objext
22563 if { (ac_try="$ac_compile"
22564 case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_compile") 2>conftest.er1
22571 grep -v '^ *+' conftest.er1 >conftest.err
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_cxx_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest.$ac_objext; then
22579 ac_cv_type___uint16=yes
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ac_cv_type___uint16=no
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22590 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22591 if test $ac_cv_type___uint16 = yes; then
22592 ac_cv_have___uint16=1
22594 ac_cv_have___uint16=0
22598 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22599 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22600 if test "${ac_cv_func_sigaltstack+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 cat >conftest.$ac_ext <<_ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22609 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22611 #define sigaltstack innocuous_sigaltstack
22613 /* System header to define __stub macros and hopefully few prototypes,
22614 which can conflict with char sigaltstack (); below.
22615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22616 <limits.h> exists even on freestanding compilers. */
22619 # include <limits.h>
22621 # include <assert.h>
22626 /* Override any GCC internal prototype to avoid an error.
22627 Use char because int might match the return type of a GCC
22628 builtin and then its argument prototype would still apply. */
22632 char sigaltstack ();
22633 /* The GNU C library defines this for functions which it implements
22634 to always fail with ENOSYS. Some functions are actually named
22635 something starting with __ and the normal name is an alias. */
22636 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22643 return sigaltstack ();
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (ac_try="$ac_link"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_link") 2>conftest.er1
22657 grep -v '^ *+' conftest.er1 >conftest.err
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_cxx_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest$ac_exeext &&
22665 $as_test_x conftest$ac_exeext; then
22666 ac_cv_func_sigaltstack=yes
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22671 ac_cv_func_sigaltstack=no
22674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22675 conftest$ac_exeext conftest.$ac_ext
22677 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22678 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22679 if test $ac_cv_func_sigaltstack = yes; then
22681 cat >>confdefs.h <<\_ACEOF
22682 #define HAVE_SIGALTSTACK 1
22687 { echo "$as_me:$LINENO: checking for dladdr" >&5
22688 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22689 if test "${ac_cv_func_dladdr+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22692 cat >conftest.$ac_ext <<_ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22698 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22700 #define dladdr innocuous_dladdr
22702 /* System header to define __stub macros and hopefully few prototypes,
22703 which can conflict with char dladdr (); below.
22704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22705 <limits.h> exists even on freestanding compilers. */
22708 # include <limits.h>
22710 # include <assert.h>
22715 /* Override any GCC internal prototype to avoid an error.
22716 Use char because int might match the return type of a GCC
22717 builtin and then its argument prototype would still apply. */
22722 /* The GNU C library defines this for functions which it implements
22723 to always fail with ENOSYS. Some functions are actually named
22724 something starting with __ and the normal name is an alias. */
22725 #if defined __stub_dladdr || defined __stub___dladdr
22737 rm -f conftest.$ac_objext conftest$ac_exeext
22738 if { (ac_try="$ac_link"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_link") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_cxx_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest$ac_exeext &&
22754 $as_test_x conftest$ac_exeext; then
22755 ac_cv_func_dladdr=yes
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ac_cv_func_dladdr=no
22763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22764 conftest$ac_exeext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22767 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22768 if test $ac_cv_func_dladdr = yes; then
22770 cat >>confdefs.h <<\_ACEOF
22771 #define HAVE_DLADDR 1
22776 { echo "$as_me:$LINENO: checking for fcntl" >&5
22777 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22778 if test "${ac_cv_func_fcntl+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22789 #define fcntl innocuous_fcntl
22791 /* System header to define __stub macros and hopefully few prototypes,
22792 which can conflict with char fcntl (); below.
22793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22794 <limits.h> exists even on freestanding compilers. */
22797 # include <limits.h>
22799 # include <assert.h>
22804 /* Override any GCC internal prototype to avoid an error.
22805 Use char because int might match the return type of a GCC
22806 builtin and then its argument prototype would still apply. */
22811 /* The GNU C library defines this for functions which it implements
22812 to always fail with ENOSYS. Some functions are actually named
22813 something starting with __ and the normal name is an alias. */
22814 #if defined __stub_fcntl || defined __stub___fcntl
22826 rm -f conftest.$ac_objext conftest$ac_exeext
22827 if { (ac_try="$ac_link"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833 (eval "$ac_link") 2>conftest.er1
22835 grep -v '^ *+' conftest.er1 >conftest.err
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } && {
22840 test -z "$ac_cxx_werror_flag" ||
22841 test ! -s conftest.err
22842 } && test -s conftest$ac_exeext &&
22843 $as_test_x conftest$ac_exeext; then
22844 ac_cv_func_fcntl=yes
22846 echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22849 ac_cv_func_fcntl=no
22852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22853 conftest$ac_exeext conftest.$ac_ext
22855 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22856 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22857 if test $ac_cv_func_fcntl = yes; then
22859 cat >>confdefs.h <<\_ACEOF
22860 #define HAVE_FCNTL 1
22867 { echo "$as_me:$LINENO: checking for __attribute__" >&5
22868 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22869 if test "${ac_cv___attribute__+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <stdlib.h>
22880 static void foo(void) __attribute__ ((unused));
22881 void foo(void) { exit(1); }
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
22892 case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_cxx_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest.$ac_objext; then
22907 ac_cv___attribute__=yes
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 ac_cv___attribute__=no
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 if test "$ac_cv___attribute__" = "yes"; then
22921 cat >>confdefs.h <<\_ACEOF
22922 #define HAVE___ATTRIBUTE__ 1
22926 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22927 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22929 # We only care about these two attributes.
22930 if test x"$ac_cv___attribute__" = x"yes"; then
22931 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22932 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22934 ac_cv___attribute___noreturn=
22935 ac_cv___attribute___printf_4_5=
22939 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22940 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22941 if test "${ac_cv___builtin_expect+set}" = set; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22951 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22960 rm -f conftest.$ac_objext
22961 if { (ac_try="$ac_compile"
22962 case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967 (eval "$ac_compile") 2>conftest.er1
22969 grep -v '^ *+' conftest.er1 >conftest.err
22971 cat conftest.err >&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } && {
22974 test -z "$ac_cxx_werror_flag" ||
22975 test ! -s conftest.err
22976 } && test -s conftest.$ac_objext; then
22977 ac_cv___builtin_expect=yes
22979 echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22982 ac_cv___builtin_expect=no
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 if test "$ac_cv___builtin_expect" = "yes"; then
22991 cat >>confdefs.h <<\_ACEOF
22992 #define HAVE___BUILTIN_EXPECT 1
22996 { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22997 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22999 if test x"$ac_cv___builtin_expect" = x"yes"; then
23000 ac_cv_have___builtin_expect=1
23002 ac_cv_have___builtin_expect=0
23006 { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
23007 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
23008 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23027 rm -f conftest.$ac_objext conftest$ac_exeext
23028 if { (ac_try="$ac_link"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034 (eval "$ac_link") 2>conftest.er1
23036 grep -v '^ *+' conftest.er1 >conftest.err
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } && {
23041 test -z "$ac_cxx_werror_flag" ||
23042 test ! -s conftest.err
23043 } && test -s conftest$ac_exeext &&
23044 $as_test_x conftest$ac_exeext; then
23045 ac_cv___sync_val_compare_and_swap=yes
23047 echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23050 ac_cv___sync_val_compare_and_swap=no
23054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23055 conftest$ac_exeext conftest.$ac_ext
23058 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23060 cat >>confdefs.h <<\_ACEOF
23061 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23065 { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23066 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23069 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23070 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23071 # Check whether --enable-frame_pointers was given.
23072 if test "${enable_frame_pointers+set}" = set; then
23073 enableval=$enable_frame_pointers;
23075 enable_frame_pointers=no
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23088 return __x86_64__ == 1 ? 0 : 1
23093 rm -f conftest.$ac_objext
23094 if { (ac_try="$ac_compile"
23095 case "(($ac_try" in
23096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23097 *) ac_try_echo=$ac_try;;
23099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23100 (eval "$ac_compile") 2>conftest.er1
23102 grep -v '^ *+' conftest.er1 >conftest.err
23104 cat conftest.err >&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_cxx_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest.$ac_objext; then
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23119 if test "$enable_frame_pointers" = yes; then
23120 ENABLE_FRAME_POINTERS_TRUE=
23121 ENABLE_FRAME_POINTERS_FALSE='#'
23123 ENABLE_FRAME_POINTERS_TRUE='#'
23124 ENABLE_FRAME_POINTERS_FALSE=
23127 if test "$is_x86_64" = yes; then
23136 # Some of the code in this directory depends on pthreads
23141 ac_cpp='$CPP $CPPFLAGS'
23142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23148 # We used to check for pthread.h first, but this fails if pthread.h
23149 # requires special compiler flags (e.g. on True64 or Sequent).
23150 # It gets checked for in the link test anyway.
23152 # First of all, check if the user has set any of the PTHREAD_LIBS,
23153 # etcetera environment variables, and if threads linking works using
23155 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23156 save_CFLAGS="$CFLAGS"
23157 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23159 LIBS="$PTHREAD_LIBS $LIBS"
23160 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23161 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23162 cat >conftest.$ac_ext <<_ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23169 /* Override any GCC internal prototype to avoid an error.
23170 Use char because int might match the return type of a GCC
23171 builtin and then its argument prototype would still apply. */
23175 char pthread_join ();
23179 return pthread_join ();
23184 rm -f conftest.$ac_objext conftest$ac_exeext
23185 if { (ac_try="$ac_link"
23186 case "(($ac_try" in
23187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188 *) ac_try_echo=$ac_try;;
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_link") 2>conftest.er1
23193 grep -v '^ *+' conftest.er1 >conftest.err
23195 cat conftest.err >&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && {
23198 test -z "$ac_c_werror_flag" ||
23199 test ! -s conftest.err
23200 } && test -s conftest$ac_exeext &&
23201 $as_test_x conftest$ac_exeext; then
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23211 conftest$ac_exeext conftest.$ac_ext
23212 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23213 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23214 if test x"$acx_pthread_ok" = xno; then
23219 CFLAGS="$save_CFLAGS"
23222 # We must check for the threads library under a number of different
23223 # names; the ordering is very important because some systems
23224 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23225 # libraries is broken (non-POSIX).
23227 # Create a list of thread flags to try. Items starting with a "-" are
23228 # C compiler flags, and other items are library names, except for "none"
23229 # which indicates that we try without any flags at all, and "pthread-config"
23230 # which is a program returning the flags for the Pth emulation library.
23232 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23234 # The ordering *is* (sometimes) important. Some notes on the
23235 # individual items follow:
23237 # pthreads: AIX (must check this before -lpthread)
23238 # none: in case threads are in libc; should be tried before -Kthread and
23239 # other compiler flags to prevent continual compiler warnings
23240 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23241 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23242 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23243 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23244 # -pthreads: Solaris/gcc
23245 # -mthreads: Mingw32/gcc, Lynx/gcc
23246 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23247 # doesn't hurt to check since this sometimes defines pthreads too;
23248 # also defines -D_REENTRANT)
23249 # ... -mt is also the pthreads flag for HP/aCC
23250 # pthread: Linux, etcetera
23251 # --thread-safe: KAI C++
23252 # pthread-config: use pthread-config program (for GNU Pth library)
23254 case "${host_cpu}-${host_os}" in
23257 # On Solaris (at least, for some versions), libc contains stubbed
23258 # (non-functional) versions of the pthreads routines, so link-based
23259 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
23260 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23261 # a function called by this macro, so we could check for that, but
23262 # who knows whether they'll stub that too in a future libc.) So,
23263 # we'll just look for -pthreads and -lpthread first:
23265 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23269 if test x"$acx_pthread_ok" = xno; then
23270 for flag in $acx_pthread_flags; do
23274 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23275 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23279 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23280 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23281 PTHREAD_CFLAGS="$flag"
23285 # Extract the first word of "pthread-config", so it can be a program name with args.
23286 set dummy pthread-config; ac_word=$2
23287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23289 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23290 echo $ECHO_N "(cached) $ECHO_C" >&6
23292 if test -n "$acx_pthread_config"; then
23293 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23296 for as_dir in $PATH
23299 test -z "$as_dir" && as_dir=.
23300 for ac_exec_ext in '' $ac_executable_extensions; do
23301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23302 ac_cv_prog_acx_pthread_config="yes"
23303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23310 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23313 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23314 if test -n "$acx_pthread_config"; then
23315 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23316 echo "${ECHO_T}$acx_pthread_config" >&6; }
23318 { echo "$as_me:$LINENO: result: no" >&5
23319 echo "${ECHO_T}no" >&6; }
23323 if test x"$acx_pthread_config" = xno; then continue; fi
23324 PTHREAD_CFLAGS="`pthread-config --cflags`"
23325 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23329 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23330 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23331 PTHREAD_LIBS="-l$flag"
23336 save_CFLAGS="$CFLAGS"
23337 LIBS="$PTHREAD_LIBS $LIBS"
23338 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23340 # Check for various functions. We must include pthread.h,
23341 # since some functions may be macros. (On the Sequent, we
23342 # need a special flag -Kthread to make this header compile.)
23343 # We check for pthread_join because it is in -lpthread on IRIX
23344 # while pthread_create is in libc. We check for pthread_attr_init
23345 # due to DEC craziness with -lpthreads. We check for
23346 # pthread_cleanup_push because it is one of the few pthread
23347 # functions on Solaris that doesn't have a non-functional libc stub.
23348 # We try pthread_create on general principles.
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355 #include <pthread.h>
23359 pthread_t th; pthread_join(th, 0);
23360 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23361 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_link") 2>conftest.er1
23375 grep -v '^ *+' conftest.er1 >conftest.err
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && {
23380 test -z "$ac_c_werror_flag" ||
23381 test ! -s conftest.err
23382 } && test -s conftest$ac_exeext &&
23383 $as_test_x conftest$ac_exeext; then
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393 conftest$ac_exeext conftest.$ac_ext
23396 CFLAGS="$save_CFLAGS"
23398 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23399 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23400 if test "x$acx_pthread_ok" = xyes; then
23409 # Various other checks:
23410 if test "x$acx_pthread_ok" = xyes; then
23412 LIBS="$PTHREAD_LIBS $LIBS"
23413 save_CFLAGS="$CFLAGS"
23414 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23416 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23417 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23418 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23420 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 #include <pthread.h>
23431 int attr=$attr; return attr;
23436 rm -f conftest.$ac_objext conftest$ac_exeext
23437 if { (ac_try="$ac_link"
23438 case "(($ac_try" in
23439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23440 *) ac_try_echo=$ac_try;;
23442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23443 (eval "$ac_link") 2>conftest.er1
23445 grep -v '^ *+' conftest.er1 >conftest.err
23447 cat conftest.err >&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } && {
23450 test -z "$ac_c_werror_flag" ||
23451 test ! -s conftest.err
23452 } && test -s conftest$ac_exeext &&
23453 $as_test_x conftest$ac_exeext; then
23454 attr_name=$attr; break
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23463 conftest$ac_exeext conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $attr_name" >&5
23466 echo "${ECHO_T}$attr_name" >&6; }
23467 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23469 cat >>confdefs.h <<_ACEOF
23470 #define PTHREAD_CREATE_JOINABLE $attr_name
23475 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23476 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23478 case "${host_cpu}-${host_os}" in
23479 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23480 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23482 { echo "$as_me:$LINENO: result: ${flag}" >&5
23483 echo "${ECHO_T}${flag}" >&6; }
23484 if test "x$flag" != xno; then
23485 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23489 CFLAGS="$save_CFLAGS"
23490 # More AIX lossage: must compile with xlc_r or cc_r
23491 if test x"$GCC" != xyes; then
23492 for ac_prog in xlc_r cc_r
23494 # Extract the first word of "$ac_prog", so it can be a program name with args.
23495 set dummy $ac_prog; ac_word=$2
23496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23498 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23501 if test -n "$PTHREAD_CC"; then
23502 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23505 for as_dir in $PATH
23508 test -z "$as_dir" && as_dir=.
23509 for ac_exec_ext in '' $ac_executable_extensions; do
23510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23511 ac_cv_prog_PTHREAD_CC="$ac_prog"
23512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23521 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23522 if test -n "$PTHREAD_CC"; then
23523 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23524 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23526 { echo "$as_me:$LINENO: result: no" >&5
23527 echo "${ECHO_T}no" >&6; }
23531 test -n "$PTHREAD_CC" && break
23533 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23539 # The next part tries to detect GCC inconsistency with -shared on some
23540 # architectures and systems. The problem is that in certain
23541 # configurations, when -shared is specified, GCC "forgets" to
23542 # internally use various flags which are still necessary.
23545 # Prepare the flags
23547 save_CFLAGS="$CFLAGS"
23551 # Try with the flags determined by the earlier checks.
23553 # -Wl,-z,defs forces link-time symbol resolution, so that the
23554 # linking checks with -shared actually have any value
23556 # FIXME: -fPIC is required for -shared on many architectures,
23557 # so we specify it here, but the right way would probably be to
23558 # properly detect whether it is actually required.
23559 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23560 LIBS="$PTHREAD_LIBS $LIBS"
23563 # In order not to create several levels of indentation, we test
23564 # the value of "$done" until we find the cure or run out of ideas.
23567 # First, make sure the CFLAGS we added are actually accepted by our
23568 # compiler. If not (and OS X's ld, for instance, does not accept -z),
23569 # then we can't do this test.
23570 if test x"$done" = xno; then
23571 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23572 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23573 cat >conftest.$ac_ext <<_ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (ac_try="$ac_link"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_link") 2>conftest.er1
23597 grep -v '^ *+' conftest.er1 >conftest.err
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } && {
23602 test -z "$ac_c_werror_flag" ||
23603 test ! -s conftest.err
23604 } && test -s conftest$ac_exeext &&
23605 $as_test_x conftest$ac_exeext; then
23608 echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23615 conftest$ac_exeext conftest.$ac_ext
23617 if test "x$done" = xyes ; then
23618 { echo "$as_me:$LINENO: result: no" >&5
23619 echo "${ECHO_T}no" >&6; }
23621 { echo "$as_me:$LINENO: result: yes" >&5
23622 echo "${ECHO_T}yes" >&6; }
23626 if test x"$done" = xno; then
23627 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23628 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 #include <pthread.h>
23639 pthread_t th; pthread_join(th, 0);
23640 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23641 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23646 rm -f conftest.$ac_objext conftest$ac_exeext
23647 if { (ac_try="$ac_link"
23648 case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_link") 2>conftest.er1
23655 grep -v '^ *+' conftest.er1 >conftest.err
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && {
23660 test -z "$ac_c_werror_flag" ||
23661 test ! -s conftest.err
23662 } && test -s conftest$ac_exeext &&
23663 $as_test_x conftest$ac_exeext; then
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23673 conftest$ac_exeext conftest.$ac_ext
23675 if test "x$done" = xyes; then
23676 { echo "$as_me:$LINENO: result: yes" >&5
23677 echo "${ECHO_T}yes" >&6; }
23679 { echo "$as_me:$LINENO: result: no" >&5
23680 echo "${ECHO_T}no" >&6; }
23685 # Linux gcc on some architectures such as mips/mipsel forgets
23688 if test x"$done" = xno; then
23689 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23690 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23691 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #include <pthread.h>
23702 pthread_t th; pthread_join(th, 0);
23703 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23704 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_link") 2>conftest.er1
23718 grep -v '^ *+' conftest.er1 >conftest.err
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } && {
23723 test -z "$ac_c_werror_flag" ||
23724 test ! -s conftest.err
23725 } && test -s conftest$ac_exeext &&
23726 $as_test_x conftest$ac_exeext; then
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23736 conftest$ac_exeext conftest.$ac_ext
23738 if test "x$done" = xyes; then
23739 { echo "$as_me:$LINENO: result: yes" >&5
23740 echo "${ECHO_T}yes" >&6; }
23741 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23743 { echo "$as_me:$LINENO: result: no" >&5
23744 echo "${ECHO_T}no" >&6; }
23748 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23750 if test x"$done" = xno; then
23751 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23752 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23753 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23754 cat >conftest.$ac_ext <<_ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h. */
23760 #include <pthread.h>
23764 pthread_t th; pthread_join(th, 0);
23765 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23766 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23771 rm -f conftest.$ac_objext conftest$ac_exeext
23772 if { (ac_try="$ac_link"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_link") 2>conftest.er1
23780 grep -v '^ *+' conftest.er1 >conftest.err
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } && {
23785 test -z "$ac_c_werror_flag" ||
23786 test ! -s conftest.err
23787 } && test -s conftest$ac_exeext &&
23788 $as_test_x conftest$ac_exeext; then
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23798 conftest$ac_exeext conftest.$ac_ext
23800 if test "x$done" = xyes; then
23801 { echo "$as_me:$LINENO: result: yes" >&5
23802 echo "${ECHO_T}yes" >&6; }
23803 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23805 { echo "$as_me:$LINENO: result: no" >&5
23806 echo "${ECHO_T}no" >&6; }
23809 if test x"$done" = xno; then
23810 # OK, we have run out of ideas
23811 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23812 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23814 # so it's not safe to assume that we may use pthreads
23818 CFLAGS="$save_CFLAGS"
23829 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23830 if test x"$acx_pthread_ok" = xyes; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define HAVE_PTHREAD 1
23842 ac_cpp='$CXXCPP $CPPFLAGS'
23843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23848 if test x"$acx_pthread_ok" = x"yes"; then
23849 # To make libglog depend on libpthread on Linux, we need to add
23850 # -lpthread in addition to -pthread.
23852 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23853 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23854 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 ac_check_lib_save_LIBS=$LIBS
23858 LIBS="-lpthread $LIBS"
23859 cat >conftest.$ac_ext <<_ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23866 /* Override any GCC internal prototype to avoid an error.
23867 Use char because int might match the return type of a GCC
23868 builtin and then its argument prototype would still apply. */
23872 char pthread_self ();
23876 return pthread_self ();
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (ac_try="$ac_link"
23883 case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888 (eval "$ac_link") 2>conftest.er1
23890 grep -v '^ *+' conftest.er1 >conftest.err
23892 cat conftest.err >&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } && {
23895 test -z "$ac_cxx_werror_flag" ||
23896 test ! -s conftest.err
23897 } && test -s conftest$ac_exeext &&
23898 $as_test_x conftest$ac_exeext; then
23899 ac_cv_lib_pthread_pthread_self=yes
23901 echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23904 ac_cv_lib_pthread_pthread_self=no
23907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23908 conftest$ac_exeext conftest.$ac_ext
23909 LIBS=$ac_check_lib_save_LIBS
23911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23912 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23913 if test $ac_cv_lib_pthread_pthread_self = yes; then
23914 cat >>confdefs.h <<_ACEOF
23915 #define HAVE_LIBPTHREAD 1
23918 LIBS="-lpthread $LIBS"
23924 # Check if there is google-gflags library installed.
23925 SAVE_CFLAGS="$CFLAGS"
23928 # Check whether --with-gflags was given.
23929 if test "${with_gflags+set}" = set; then
23930 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
23931 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
23932 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
23933 LIBS="$LIBS $GFLAGS_LIBS"
23937 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23938 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23939 if test "${ac_cv_lib_gflags_main+set}" = set; then
23940 echo $ECHO_N "(cached) $ECHO_C" >&6
23942 ac_check_lib_save_LIBS=$LIBS
23943 LIBS="-lgflags $LIBS"
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23960 rm -f conftest.$ac_objext conftest$ac_exeext
23961 if { (ac_try="$ac_link"
23962 case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_link") 2>conftest.er1
23969 grep -v '^ *+' conftest.er1 >conftest.err
23971 cat conftest.err >&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } && {
23974 test -z "$ac_cxx_werror_flag" ||
23975 test ! -s conftest.err
23976 } && test -s conftest$ac_exeext &&
23977 $as_test_x conftest$ac_exeext; then
23978 ac_cv_lib_gflags_main=yes
23980 echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23983 ac_cv_lib_gflags_main=no
23986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23987 conftest$ac_exeext conftest.$ac_ext
23988 LIBS=$ac_check_lib_save_LIBS
23990 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23991 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23992 if test $ac_cv_lib_gflags_main = yes; then
23993 ac_cv_have_libgflags=1
23995 ac_cv_have_libgflags=0
23998 if test x"$ac_cv_have_libgflags" = x"1"; then
24000 cat >>confdefs.h <<\_ACEOF
24001 #define HAVE_LIB_GFLAGS 1
24004 if test x"$GFLAGS_LIBS" = x""; then
24005 GFLAGS_LIBS="-lgflags"
24011 CFLAGS="$SAVE_CFLAGS"
24014 # TODO(hamaji): Use official m4 macros provided by testing libraries
24015 # once the m4 macro of Google Mocking becomes ready.
24016 # Check if there is Google Test library installed.
24017 # Extract the first word of "gtest-config", so it can be a program name with args.
24018 set dummy gtest-config; ac_word=$2
24019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24021 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 if test -n "$GTEST_CONFIG"; then
24025 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
24027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24028 for as_dir in $PATH
24031 test -z "$as_dir" && as_dir=.
24032 for ac_exec_ext in '' $ac_executable_extensions; do
24033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24034 ac_cv_prog_GTEST_CONFIG=""yes""
24035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24044 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
24045 if test -n "$GTEST_CONFIG"; then
24046 { echo "$as_me:$LINENO: result: $GTEST_CONFIG" >&5
24047 echo "${ECHO_T}$GTEST_CONFIG" >&6; }
24049 { echo "$as_me:$LINENO: result: no" >&5
24050 echo "${ECHO_T}no" >&6; }
24054 if test x"$GTEST_CONFIG" = "xyes"; then
24055 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
24056 GTEST_LIBS=`gtest-config --ldflags --libs`
24058 cat >>confdefs.h <<\_ACEOF
24059 #define HAVE_LIB_GTEST 1
24063 # Check if there is Google Mocking library installed.
24064 # Extract the first word of "gmock-config", so it can be a program name with args.
24065 set dummy gmock-config; ac_word=$2
24066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24068 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 if test -n "$GMOCK_CONFIG"; then
24072 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
24074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24075 for as_dir in $PATH
24078 test -z "$as_dir" && as_dir=.
24079 for ac_exec_ext in '' $ac_executable_extensions; do
24080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24081 ac_cv_prog_GMOCK_CONFIG=""yes""
24082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24091 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
24092 if test -n "$GMOCK_CONFIG"; then
24093 { echo "$as_me:$LINENO: result: $GMOCK_CONFIG" >&5
24094 echo "${ECHO_T}$GMOCK_CONFIG" >&6; }
24096 { echo "$as_me:$LINENO: result: no" >&5
24097 echo "${ECHO_T}no" >&6; }
24101 if test x"$GMOCK_CONFIG" = "xyes"; then
24102 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
24103 GMOCK_LIBS=`gmock-config --ldflags --libs`
24105 cat >>confdefs.h <<\_ACEOF
24106 #define HAVE_LIB_GMOCK 1
24110 # We don't run test cases which use Google Mocking framework.
24115 # We'll use src/googletest.h for our unittests.
24119 if test x"$GMOCK_CONFIG" = "xyes"; then
24121 HAVE_GMOCK_FALSE='#'
24123 HAVE_GMOCK_TRUE='#'
24128 # We want to link in libunwind if it exists
24130 # Unfortunately, we need to check the header file in addition to the
24131 # lib file to check if libunwind is available since libunwind-0.98
24132 # doesn't install all necessary header files.
24133 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24134 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24135 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24136 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24137 echo $ECHO_N "(cached) $ECHO_C" >&6
24139 ac_check_lib_save_LIBS=$LIBS
24140 LIBS="-lunwind $LIBS"
24141 cat >conftest.$ac_ext <<_ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24148 /* Override any GCC internal prototype to avoid an error.
24149 Use char because int might match the return type of a GCC
24150 builtin and then its argument prototype would still apply. */
24158 return backtrace ();
24163 rm -f conftest.$ac_objext conftest$ac_exeext
24164 if { (ac_try="$ac_link"
24165 case "(($ac_try" in
24166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167 *) ac_try_echo=$ac_try;;
24169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170 (eval "$ac_link") 2>conftest.er1
24172 grep -v '^ *+' conftest.er1 >conftest.err
24174 cat conftest.err >&5
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); } && {
24177 test -z "$ac_cxx_werror_flag" ||
24178 test ! -s conftest.err
24179 } && test -s conftest$ac_exeext &&
24180 $as_test_x conftest$ac_exeext; then
24181 ac_cv_lib_unwind_backtrace=yes
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24186 ac_cv_lib_unwind_backtrace=no
24189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24190 conftest$ac_exeext conftest.$ac_ext
24191 LIBS=$ac_check_lib_save_LIBS
24193 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24194 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24195 if test $ac_cv_lib_unwind_backtrace = yes; then
24196 UNWIND_LIBS=-lunwind
24201 if test x"$UNWIND_LIBS" != x""; then
24203 cat >>confdefs.h <<\_ACEOF
24204 #define HAVE_LIB_UNWIND 1
24209 # We'd like to use read/write locks in several places in the code.
24210 # See if our pthreads support extends to that. Note: for linux, it
24211 # does as long as you define _XOPEN_SOURCE appropriately.
24212 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24213 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24214 if test "${ac_rwlock+set}" = set; then
24215 echo $ECHO_N "(cached) $ECHO_C" >&6
24219 ac_cpp='$CPP $CPPFLAGS'
24220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24224 cat >conftest.$ac_ext <<_ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h. */
24230 #define _XOPEN_SOURCE 500
24231 #include <pthread.h>
24235 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24236 pthread_rwlock_rdlock(&l);
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246 *) ac_try_echo=$ac_try;;
24248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24251 grep -v '^ *+' conftest.er1 >conftest.err
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.$ac_objext; then
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269 ac_cpp='$CXXCPP $CPPFLAGS'
24270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24276 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24277 echo "${ECHO_T}$ac_rwlock" >&6; }
24278 if test "$ac_rwlock" = yes; then
24280 cat >>confdefs.h <<\_ACEOF
24281 #define HAVE_RWLOCK 1
24287 # Find out what namespace 'normal' STL code lives in, and also what namespace
24288 # the user wants our classes to be defined in
24289 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24290 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24291 if test "${ac_cv_cxx_namespaces+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24296 ac_cpp='$CXXCPP $CPPFLAGS'
24297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24301 cat >conftest.$ac_ext <<_ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h. */
24308 namespace Inner { int i = 0; }}
24312 using namespace Outer::Inner; return i;
24317 rm -f conftest.$ac_objext
24318 if { (ac_try="$ac_compile"
24319 case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_compile") 2>conftest.er1
24326 grep -v '^ *+' conftest.er1 >conftest.err
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } && {
24331 test -z "$ac_cxx_werror_flag" ||
24332 test ! -s conftest.err
24333 } && test -s conftest.$ac_objext; then
24334 ac_cv_cxx_namespaces=yes
24336 echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24339 ac_cv_cxx_namespaces=no
24342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24344 ac_cpp='$CXXCPP $CPPFLAGS'
24345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24351 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24352 if test "$ac_cv_cxx_namespaces" = yes; then
24354 cat >>confdefs.h <<\_ACEOF
24355 #define HAVE_NAMESPACES 1
24359 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24360 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24361 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24362 echo $ECHO_N "(cached) $ECHO_C" >&6
24367 ac_cpp='$CXXCPP $CPPFLAGS'
24368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24382 vector<int> t; return 0;
24387 rm -f conftest.$ac_objext
24388 if { (ac_try="$ac_compile"
24389 case "(($ac_try" in
24390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391 *) ac_try_echo=$ac_try;;
24393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24394 (eval "$ac_compile") 2>conftest.er1
24396 grep -v '^ *+' conftest.er1 >conftest.err
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } && {
24401 test -z "$ac_cxx_werror_flag" ||
24402 test ! -s conftest.err
24403 } && test -s conftest.$ac_objext; then
24404 ac_cv_cxx_stl_namespace=none
24406 echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24413 cat >conftest.$ac_ext <<_ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24423 std::vector<int> t; return 0;
24428 rm -f conftest.$ac_objext
24429 if { (ac_try="$ac_compile"
24430 case "(($ac_try" in
24431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432 *) ac_try_echo=$ac_try;;
24434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435 (eval "$ac_compile") 2>conftest.er1
24437 grep -v '^ *+' conftest.er1 >conftest.err
24439 cat conftest.err >&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); } && {
24442 test -z "$ac_cxx_werror_flag" ||
24443 test ! -s conftest.err
24444 } && test -s conftest.$ac_objext; then
24445 ac_cv_cxx_stl_namespace=std
24447 echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24455 ac_cpp='$CXXCPP $CPPFLAGS'
24456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24461 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24462 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24463 if test "$ac_cv_cxx_stl_namespace" = none; then
24465 cat >>confdefs.h <<\_ACEOF
24466 #define STL_NAMESPACE
24470 if test "$ac_cv_cxx_stl_namespace" = std; then
24472 cat >>confdefs.h <<\_ACEOF
24473 #define STL_NAMESPACE std
24478 google_namespace_default=google
24479 # Check whether --enable-namespace was given.
24480 if test "${enable_namespace+set}" = set; then
24481 enableval=$enable_namespace; case "$enableval" in
24482 yes) google_namespace="$google_namespace_default" ;;
24483 no) google_namespace="" ;;
24484 *) google_namespace="$enableval" ;;
24487 google_namespace="$google_namespace_default"
24490 if test -n "$google_namespace"; then
24491 ac_google_namespace="$google_namespace"
24492 ac_google_start_namespace="namespace $google_namespace {"
24493 ac_google_end_namespace="}"
24495 ac_google_namespace=""
24496 ac_google_start_namespace=""
24497 ac_google_end_namespace=""
24500 cat >>confdefs.h <<_ACEOF
24501 #define GOOGLE_NAMESPACE $ac_google_namespace
24505 cat >>confdefs.h <<_ACEOF
24506 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24510 cat >>confdefs.h <<_ACEOF
24511 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24516 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24517 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24518 if test "${ac_cv_cxx_using_operator+set}" = set; then
24519 echo $ECHO_N "(cached) $ECHO_C" >&6
24523 ac_cpp='$CXXCPP $CPPFLAGS'
24524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24528 cat >conftest.$ac_ext <<_ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h. */
24534 #include <iostream>
24535 std::ostream& operator<<(std::ostream&, struct s);
24539 using ::operator<<; return 0;
24544 rm -f conftest.$ac_objext
24545 if { (ac_try="$ac_compile"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_compile") 2>conftest.er1
24553 grep -v '^ *+' conftest.er1 >conftest.err
24555 cat conftest.err >&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } && {
24558 test -z "$ac_cxx_werror_flag" ||
24559 test ! -s conftest.err
24560 } && test -s conftest.$ac_objext; then
24561 ac_cv_cxx_using_operator=1
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 ac_cv_cxx_using_operator=0
24569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 ac_cpp='$CXXCPP $CPPFLAGS'
24572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24577 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24578 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24579 if test "$ac_cv_cxx_using_operator" = 1; then
24581 cat >>confdefs.h <<\_ACEOF
24582 #define HAVE_USING_OPERATOR 1
24588 for ac_header in ucontext.h
24590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 ac_res=`eval echo '${'$as_ac_Header'}'`
24598 { echo "$as_me:$LINENO: result: $ac_res" >&5
24599 echo "${ECHO_T}$ac_res" >&6; }
24601 # Is the header compilable?
24602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24604 cat >conftest.$ac_ext <<_ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24610 $ac_includes_default
24611 #include <$ac_header>
24613 rm -f conftest.$ac_objext
24614 if { (ac_try="$ac_compile"
24615 case "(($ac_try" in
24616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617 *) ac_try_echo=$ac_try;;
24619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620 (eval "$ac_compile") 2>conftest.er1
24622 grep -v '^ *+' conftest.er1 >conftest.err
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } && {
24627 test -z "$ac_cxx_werror_flag" ||
24628 test ! -s conftest.err
24629 } && test -s conftest.$ac_objext; then
24630 ac_header_compiler=yes
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 ac_header_compiler=no
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24640 echo "${ECHO_T}$ac_header_compiler" >&6; }
24642 # Is the header present?
24643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24645 cat >conftest.$ac_ext <<_ACEOF
24648 cat confdefs.h >>conftest.$ac_ext
24649 cat >>conftest.$ac_ext <<_ACEOF
24650 /* end confdefs.h. */
24651 #include <$ac_header>
24653 if { (ac_try="$ac_cpp conftest.$ac_ext"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } >/dev/null && {
24666 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24667 test ! -s conftest.err
24669 ac_header_preproc=yes
24671 echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24674 ac_header_preproc=no
24677 rm -f conftest.err conftest.$ac_ext
24678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24679 echo "${ECHO_T}$ac_header_preproc" >&6; }
24681 # So? What about this header?
24682 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24688 ac_header_preproc=yes
24691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24704 ## ------------------------------------ ##
24705 ## Report this to opensource@google.com ##
24706 ## ------------------------------------ ##
24708 ) | sed "s/^/$as_me: WARNING: /" >&2
24711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24714 echo $ECHO_N "(cached) $ECHO_C" >&6
24716 eval "$as_ac_Header=\$ac_header_preproc"
24718 ac_res=`eval echo '${'$as_ac_Header'}'`
24719 { echo "$as_me:$LINENO: result: $ac_res" >&5
24720 echo "${ECHO_T}$ac_res" >&6; }
24723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24724 cat >>confdefs.h <<_ACEOF
24725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24733 for ac_header in sys/ucontext.h
24735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24740 echo $ECHO_N "(cached) $ECHO_C" >&6
24742 ac_res=`eval echo '${'$as_ac_Header'}'`
24743 { echo "$as_me:$LINENO: result: $ac_res" >&5
24744 echo "${ECHO_T}$ac_res" >&6; }
24746 # Is the header compilable?
24747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 $ac_includes_default
24756 #include <$ac_header>
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24767 grep -v '^ *+' conftest.er1 >conftest.err
24769 cat conftest.err >&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_cxx_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 ac_header_compiler=yes
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_header_compiler=no
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24785 echo "${ECHO_T}$ac_header_compiler" >&6; }
24787 # Is the header present?
24788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24790 cat >conftest.$ac_ext <<_ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796 #include <$ac_header>
24798 if { (ac_try="$ac_cpp conftest.$ac_ext"
24799 case "(($ac_try" in
24800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801 *) ac_try_echo=$ac_try;;
24803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24806 grep -v '^ *+' conftest.er1 >conftest.err
24808 cat conftest.err >&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); } >/dev/null && {
24811 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24812 test ! -s conftest.err
24814 ac_header_preproc=yes
24816 echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24819 ac_header_preproc=no
24822 rm -f conftest.err conftest.$ac_ext
24823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24824 echo "${ECHO_T}$ac_header_preproc" >&6; }
24826 # So? What about this header?
24827 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24833 ac_header_preproc=yes
24836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24849 ## ------------------------------------ ##
24850 ## Report this to opensource@google.com ##
24851 ## ------------------------------------ ##
24853 ) | sed "s/^/$as_me: WARNING: /" >&2
24856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24859 echo $ECHO_N "(cached) $ECHO_C" >&6
24861 eval "$as_ac_Header=\$ac_header_preproc"
24863 ac_res=`eval echo '${'$as_ac_Header'}'`
24864 { echo "$as_me:$LINENO: result: $ac_res" >&5
24865 echo "${ECHO_T}$ac_res" >&6; }
24868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24869 cat >>confdefs.h <<_ACEOF
24870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24876 # ucontext on OS X 10.6 (at least)
24877 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24878 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24879 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
24880 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24881 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24882 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
24883 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24884 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
24885 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
24886 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
24887 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
24888 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
24889 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
24890 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
24891 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
24892 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
24893 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
24894 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
24895 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
24896 pc_field_found=false
24897 for pc_field in $pc_fields; do
24898 if ! $pc_field_found; then
24899 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
24900 cat >conftest.$ac_ext <<_ACEOF
24903 cat confdefs.h >>conftest.$ac_ext
24904 cat >>conftest.$ac_ext <<_ACEOF
24905 /* end confdefs.h. */
24906 #define _GNU_SOURCE 1
24907 #include <sys/ucontext.h>
24911 ucontext_t u; return u.$pc_field == 0;
24916 rm -f conftest.$ac_objext
24917 if { (ac_try="$ac_compile"
24918 case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_compile") 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } && {
24930 test -z "$ac_cxx_werror_flag" ||
24931 test ! -s conftest.err
24932 } && test -s conftest.$ac_objext; then
24934 cat >>confdefs.h <<_ACEOF
24935 #define PC_FROM_UCONTEXT $pc_field
24938 { echo "$as_me:$LINENO: result: $pc_field" >&5
24939 echo "${ECHO_T}$pc_field" >&6; }
24940 pc_field_found=true
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24956 #define _GNU_SOURCE 1
24957 #include <ucontext.h>
24961 ucontext_t u; return u.$pc_field == 0;
24966 rm -f conftest.$ac_objext
24967 if { (ac_try="$ac_compile"
24968 case "(($ac_try" in
24969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970 *) ac_try_echo=$ac_try;;
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973 (eval "$ac_compile") 2>conftest.er1
24975 grep -v '^ *+' conftest.er1 >conftest.err
24977 cat conftest.err >&5
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } && {
24980 test -z "$ac_cxx_werror_flag" ||
24981 test ! -s conftest.err
24982 } && test -s conftest.$ac_objext; then
24984 cat >>confdefs.h <<_ACEOF
24985 #define PC_FROM_UCONTEXT $pc_field
24988 { echo "$as_me:$LINENO: result: $pc_field" >&5
24989 echo "${ECHO_T}$pc_field" >&6; }
24990 pc_field_found=true
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 if ! $pc_field_found; then
25003 pc_fields=" sc_eip" # OpenBSD (i386)
25004 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
25005 for pc_field in $pc_fields; do
25006 if ! $pc_field_found; then
25007 cat >conftest.$ac_ext <<_ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25013 #include <signal.h>
25017 ucontext_t u; return u.$pc_field == 0;
25022 rm -f conftest.$ac_objext
25023 if { (ac_try="$ac_compile"
25024 case "(($ac_try" in
25025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026 *) ac_try_echo=$ac_try;;
25028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029 (eval "$ac_compile") 2>conftest.er1
25031 grep -v '^ *+' conftest.er1 >conftest.err
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } && {
25036 test -z "$ac_cxx_werror_flag" ||
25037 test ! -s conftest.err
25038 } && test -s conftest.$ac_objext; then
25040 cat >>confdefs.h <<_ACEOF
25041 #define PC_FROM_UCONTEXT $pc_field
25044 { echo "$as_me:$LINENO: result: $pc_field" >&5
25045 echo "${ECHO_T}$pc_field" >&6; }
25046 pc_field_found=true
25048 echo "$as_me: failed program was:" >&5
25049 sed 's/^/| /' conftest.$ac_ext >&5
25054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25058 if ! $pc_field_found; then
25059 { echo "$as_me:$LINENO: WARNING: Could not find the PC. Will not output failed addresses..." >&5
25060 echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
25063 # These are what's needed by logging.h.in and raw_logging.h.in
25086 # Write generated configuration file
25087 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
25089 ac_config_files="$ac_config_files libglog.pc"
25091 cat >confcache <<\_ACEOF
25092 # This file is a shell script that caches the results of configure
25093 # tests run on this system so they can be shared between configure
25094 # scripts and configure runs, see configure's option --config-cache.
25095 # It is not useful on other systems. If it contains results you don't
25096 # want to keep, you may remove or edit it.
25098 # config.status only pays attention to the cache file if you give it
25099 # the --recheck option to rerun configure.
25101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25103 # following values.
25107 # The following way of writing the cache mishandles newlines in values,
25108 # but we know of no workaround that is simple, portable, and efficient.
25109 # So, we kill variables containing newlines.
25110 # Ultrix sh set writes to stderr and can't be redirected directly,
25111 # and sets the high bit in the cache file unless we assign to the vars.
25113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25114 eval ac_val=\$$ac_var
25118 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25119 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25122 _ | IFS | as_nl) ;; #(
25123 *) $as_unset $ac_var ;;
25129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25130 *${as_nl}ac_space=\ *)
25131 # `set' does not quote correctly, so add quotes (double-quote
25132 # substitution turns \\\\ into \\, and sed turns \\ into \).
25135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25138 # `set' quotes correctly as required by POSIX, so do not add quotes.
25139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25153 if test -w "$cache_file"; then
25154 test "x$cache_file" != "x/dev/null" &&
25155 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25156 echo "$as_me: updating cache $cache_file" >&6;}
25157 cat confcache >$cache_file
25159 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25160 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25166 # Let make expand exec_prefix.
25167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25169 DEFS=-DHAVE_CONFIG_H
25173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25174 # 1. Remove the extension, and $U if already installed.
25175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25176 ac_i=`echo "$ac_i" | sed "$ac_script"`
25177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25178 # will be set to the directory where LIBOBJS objects are built.
25179 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25180 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25182 LIBOBJS=$ac_libobjs
25184 LTLIBOBJS=$ac_ltlibobjs
25187 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25188 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25189 Usually this means the macro was only invoked conditionally." >&5
25190 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25191 Usually this means the macro was only invoked conditionally." >&2;}
25192 { (exit 1); exit 1; }; }
25194 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25195 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25196 Usually this means the macro was only invoked conditionally." >&5
25197 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25198 Usually this means the macro was only invoked conditionally." >&2;}
25199 { (exit 1); exit 1; }; }
25201 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25202 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25203 Usually this means the macro was only invoked conditionally." >&5
25204 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25205 Usually this means the macro was only invoked conditionally." >&2;}
25206 { (exit 1); exit 1; }; }
25208 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
25209 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
25210 Usually this means the macro was only invoked conditionally." >&5
25211 echo "$as_me: error: conditional \"GCC\" was never defined.
25212 Usually this means the macro was only invoked conditionally." >&2;}
25213 { (exit 1); exit 1; }; }
25215 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
25216 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
25217 Usually this means the macro was only invoked conditionally." >&5
25218 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
25219 Usually this means the macro was only invoked conditionally." >&2;}
25220 { (exit 1); exit 1; }; }
25222 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
25223 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
25224 Usually this means the macro was only invoked conditionally." >&5
25225 echo "$as_me: error: conditional \"X86_64\" was never defined.
25226 Usually this means the macro was only invoked conditionally." >&2;}
25227 { (exit 1); exit 1; }; }
25229 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
25230 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GMOCK\" was never defined.
25231 Usually this means the macro was only invoked conditionally." >&5
25232 echo "$as_me: error: conditional \"HAVE_GMOCK\" was never defined.
25233 Usually this means the macro was only invoked conditionally." >&2;}
25234 { (exit 1); exit 1; }; }
25237 : ${CONFIG_STATUS=./config.status}
25238 ac_clean_files_save=$ac_clean_files
25239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25240 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25241 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25242 cat >$CONFIG_STATUS <<_ACEOF
25244 # Generated by $as_me.
25245 # Run this file to recreate the current configuration.
25246 # Compiler output produced by configure, useful for debugging
25247 # configure, is in config.log if it exists.
25250 ac_cs_recheck=false
25252 SHELL=\${CONFIG_SHELL-$SHELL}
25255 cat >>$CONFIG_STATUS <<\_ACEOF
25256 ## --------------------- ##
25257 ## M4sh Initialization. ##
25258 ## --------------------- ##
25260 # Be more Bourne compatible
25261 DUALCASE=1; export DUALCASE # for MKS sh
25262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25266 # is contrary to our usage. Disable this feature.
25267 alias -g '${1+"$@"}'='"$@"'
25268 setopt NO_GLOB_SUBST
25270 case `(set -o) 2>/dev/null` in
25271 *posix*) set -o posix ;;
25280 # Avoid depending upon Character Ranges.
25281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25284 as_cr_digits='0123456789'
25285 as_cr_alnum=$as_cr_Letters$as_cr_digits
25287 # The user is always right.
25288 if test "${PATH_SEPARATOR+set}" != set; then
25289 echo "#! /bin/sh" >conf$$.sh
25290 echo "exit 0" >>conf$$.sh
25292 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25300 # Support unset when possible.
25301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25309 # We need space, tab and new line, in precisely that order. Quoting is
25310 # there to prevent editors from complaining about space-tab.
25311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25312 # splitting by setting IFS to empty value.)
25317 # Find who we are. Look in the path if we contain no directory separator.
25319 *[\\/]* ) as_myself=$0 ;;
25320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25321 for as_dir in $PATH
25324 test -z "$as_dir" && as_dir=.
25325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25331 # We did not find ourselves, most probably we were run as `sh COMMAND'
25332 # in which case we are not to be found in the path.
25333 if test "x$as_myself" = x; then
25336 if test ! -f "$as_myself"; then
25337 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25338 { (exit 1); exit 1; }
25341 # Work around bugs in pre-3.0 UWIN ksh.
25342 for as_var in ENV MAIL MAILPATH
25343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25351 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25352 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25353 LC_TELEPHONE LC_TIME
25355 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25356 eval $as_var=C; export $as_var
25358 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25362 # Required to use basename.
25363 if expr a : '\(a\)' >/dev/null 2>&1 &&
25364 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25370 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25371 as_basename=basename
25377 # Name of the executable.
25378 as_me=`$as_basename -- "$0" ||
25379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25380 X"$0" : 'X\(//\)$' \| \
25381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25383 sed '/^.*\/\([^/][^/]*\)\/*$/{
25402 as_lineno_1=$LINENO
25403 as_lineno_2=$LINENO
25404 test "x$as_lineno_1" != "x$as_lineno_2" &&
25405 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25407 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25408 # uniformly replaced by the line number. The first 'sed' inserts a
25409 # line-number line after each line using $LINENO; the second 'sed'
25410 # does the real work. The second script uses 'N' to pair each
25411 # line-number line with the line containing $LINENO, and appends
25412 # trailing '-' during substitution so that $LINENO is not a special
25413 # case at line end.
25414 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25415 # scripts with optimization help from Paolo Bonzini. Blame Lee
25416 # E. McMahon (1931-1989) for sed's syntax. :-)
25428 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25431 ' >$as_me.lineno &&
25432 chmod +x "$as_me.lineno" ||
25433 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25434 { (exit 1); exit 1; }; }
25436 # Don't try to exec as it changes $[0], causing all sort of problems
25437 # (the dirname of $[0] is not the place where we might find the
25438 # original and so on. Autoconf is especially sensitive to this).
25439 . "./$as_me.lineno"
25440 # Exit status is that of the last command.
25445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25451 ECHO_C= ECHO_N= ECHO_T=
25452 case `echo -n x` in
25454 case `echo 'x\c'` in
25455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25462 if expr a : '\(a\)' >/dev/null 2>&1 &&
25463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25469 rm -f conf$$ conf$$.exe conf$$.file
25470 if test -d conf$$.dir; then
25471 rm -f conf$$.dir/conf$$.file
25477 if ln -s conf$$.file conf$$ 2>/dev/null; then
25479 # ... but there are two gotchas:
25480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25482 # In both cases, we have to default to `cp -p'.
25483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25485 elif ln conf$$.file conf$$ 2>/dev/null; then
25490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25491 rmdir conf$$.dir 2>/dev/null
25493 if mkdir -p . 2>/dev/null; then
25496 test -d ./-p && rmdir ./-p
25500 if test -x / >/dev/null 2>&1; then
25501 as_test_x='test -x'
25503 if ls -dL / >/dev/null 2>&1; then
25510 if test -d "$1"; then
25516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25517 ???[sx]*):;;*)false;;esac;fi
25521 as_executable_p=$as_test_x
25523 # Sed expression to map a string onto a valid CPP name.
25524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25526 # Sed expression to map a string onto a valid variable name.
25527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25532 # Save the log message, to keep $[0] and so on meaningful, and to
25533 # report actual input values of CONFIG_FILES etc. instead of their
25534 # values after options handling.
25536 This file was extended by glog $as_me 0.3.0, which was
25537 generated by GNU Autoconf 2.61. Invocation command line was
25539 CONFIG_FILES = $CONFIG_FILES
25540 CONFIG_HEADERS = $CONFIG_HEADERS
25541 CONFIG_LINKS = $CONFIG_LINKS
25542 CONFIG_COMMANDS = $CONFIG_COMMANDS
25545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25550 cat >>$CONFIG_STATUS <<_ACEOF
25551 # Files that config.status was made for.
25552 config_files="$ac_config_files"
25553 config_headers="$ac_config_headers"
25554 config_commands="$ac_config_commands"
25558 cat >>$CONFIG_STATUS <<\_ACEOF
25560 \`$as_me' instantiates files from templates according to the
25561 current configuration.
25563 Usage: $0 [OPTIONS] [FILE]...
25565 -h, --help print this help, then exit
25566 -V, --version print version number and configuration settings, then exit
25567 -q, --quiet do not print progress messages
25568 -d, --debug don't remove temporary files
25569 --recheck update $as_me by reconfiguring in the same conditions
25570 --file=FILE[:TEMPLATE]
25571 instantiate the configuration file FILE
25572 --header=FILE[:TEMPLATE]
25573 instantiate the configuration header FILE
25575 Configuration files:
25578 Configuration headers:
25581 Configuration commands:
25584 Report bugs to <bug-autoconf@gnu.org>."
25587 cat >>$CONFIG_STATUS <<_ACEOF
25589 glog config.status 0.3.0
25590 configured by $0, generated by GNU Autoconf 2.61,
25591 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25593 Copyright (C) 2006 Free Software Foundation, Inc.
25594 This config.status script is free software; the Free Software Foundation
25595 gives unlimited permission to copy, distribute and modify it."
25603 cat >>$CONFIG_STATUS <<\_ACEOF
25604 # If no file are specified by the user, then we need to provide default
25605 # value. By we need to know if files were specified by the user.
25611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25623 # Handling of the options.
25624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25626 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25627 echo "$ac_cs_version"; exit ;;
25628 --debug | --debu | --deb | --de | --d | -d )
25630 --file | --fil | --fi | --f )
25632 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25633 ac_need_defaults=false;;
25634 --header | --heade | --head | --hea )
25636 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25637 ac_need_defaults=false;;
25639 # Conflict between --help and --header
25640 { echo "$as_me: error: ambiguous option: $1
25641 Try \`$0 --help' for more information." >&2
25642 { (exit 1); exit 1; }; };;
25643 --help | --hel | -h )
25644 echo "$ac_cs_usage"; exit ;;
25645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25649 # This is an error.
25650 -*) { echo "$as_me: error: unrecognized option: $1
25651 Try \`$0 --help' for more information." >&2
25652 { (exit 1); exit 1; }; } ;;
25654 *) ac_config_targets="$ac_config_targets $1"
25655 ac_need_defaults=false ;;
25661 ac_configure_extra_args=
25663 if $ac_cs_silent; then
25665 ac_configure_extra_args="$ac_configure_extra_args --silent"
25669 cat >>$CONFIG_STATUS <<_ACEOF
25670 if \$ac_cs_recheck; then
25671 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25672 CONFIG_SHELL=$SHELL
25673 export CONFIG_SHELL
25674 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25678 cat >>$CONFIG_STATUS <<\_ACEOF
25682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25683 ## Running $as_me. ##
25689 cat >>$CONFIG_STATUS <<_ACEOF
25693 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25697 cat >>$CONFIG_STATUS <<\_ACEOF
25699 # Handling of arguments.
25700 for ac_config_target in $ac_config_targets
25702 case $ac_config_target in
25703 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25704 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25705 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25706 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25707 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25708 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25709 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25710 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
25712 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25714 { (exit 1); exit 1; }; };;
25719 # If the user did not use the arguments to specify the items to instantiate,
25720 # then the envvar interface is used. Set only those that are not.
25721 # We use the long form for the default assignment because of an extremely
25722 # bizarre bug on SunOS 4.1.3.
25723 if $ac_need_defaults; then
25724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25729 # Have a temporary directory for convenience. Make it in the build tree
25730 # simply because there is no reason against having it here, and in addition,
25731 # creating and moving files from /tmp can sometimes cause problems.
25732 # Hook for its removal unless debugging.
25733 # Note that there is a small window in which the directory will not be cleaned:
25734 # after its creation but before its name has been assigned to `$tmp'.
25738 trap 'exit_status=$?
25739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25741 trap '{ (exit 1); exit 1; }' 1 2 13 15
25743 # Create a (secure) tmp directory for tmp files.
25746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25747 test -n "$tmp" && test -d "$tmp"
25750 tmp=./conf$$-$RANDOM
25751 (umask 077 && mkdir "$tmp")
25754 echo "$me: cannot create a temporary directory in ." >&2
25755 { (exit 1); exit 1; }
25759 # Set up the sed scripts for CONFIG_FILES section.
25762 # No need to generate the scripts if there are no CONFIG_FILES.
25763 # This happens for instance when ./config.status config.h
25764 if test -n "$CONFIG_FILES"; then
25771 for ac_last_try in false false false false false :; do
25772 cat >conf$$subs.sed <<_ACEOF
25773 SHELL!$SHELL$ac_delim
25774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25780 exec_prefix!$exec_prefix$ac_delim
25781 prefix!$prefix$ac_delim
25782 program_transform_name!$program_transform_name$ac_delim
25783 bindir!$bindir$ac_delim
25784 sbindir!$sbindir$ac_delim
25785 libexecdir!$libexecdir$ac_delim
25786 datarootdir!$datarootdir$ac_delim
25787 datadir!$datadir$ac_delim
25788 sysconfdir!$sysconfdir$ac_delim
25789 sharedstatedir!$sharedstatedir$ac_delim
25790 localstatedir!$localstatedir$ac_delim
25791 includedir!$includedir$ac_delim
25792 oldincludedir!$oldincludedir$ac_delim
25793 docdir!$docdir$ac_delim
25794 infodir!$infodir$ac_delim
25795 htmldir!$htmldir$ac_delim
25796 dvidir!$dvidir$ac_delim
25797 pdfdir!$pdfdir$ac_delim
25798 psdir!$psdir$ac_delim
25799 libdir!$libdir$ac_delim
25800 localedir!$localedir$ac_delim
25801 mandir!$mandir$ac_delim
25802 DEFS!$DEFS$ac_delim
25803 ECHO_C!$ECHO_C$ac_delim
25804 ECHO_N!$ECHO_N$ac_delim
25805 ECHO_T!$ECHO_T$ac_delim
25806 LIBS!$LIBS$ac_delim
25807 build_alias!$build_alias$ac_delim
25808 host_alias!$host_alias$ac_delim
25809 target_alias!$target_alias$ac_delim
25810 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25811 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25812 INSTALL_DATA!$INSTALL_DATA$ac_delim
25813 am__isrc!$am__isrc$ac_delim
25814 CYGPATH_W!$CYGPATH_W$ac_delim
25815 PACKAGE!$PACKAGE$ac_delim
25816 VERSION!$VERSION$ac_delim
25817 ACLOCAL!$ACLOCAL$ac_delim
25818 AUTOCONF!$AUTOCONF$ac_delim
25819 AUTOMAKE!$AUTOMAKE$ac_delim
25820 AUTOHEADER!$AUTOHEADER$ac_delim
25821 MAKEINFO!$MAKEINFO$ac_delim
25822 install_sh!$install_sh$ac_delim
25823 STRIP!$STRIP$ac_delim
25824 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25825 mkdir_p!$mkdir_p$ac_delim
25827 SET_MAKE!$SET_MAKE$ac_delim
25828 am__leading_dot!$am__leading_dot$ac_delim
25829 AMTAR!$AMTAR$ac_delim
25830 am__tar!$am__tar$ac_delim
25831 am__untar!$am__untar$ac_delim
25833 CFLAGS!$CFLAGS$ac_delim
25834 LDFLAGS!$LDFLAGS$ac_delim
25835 CPPFLAGS!$CPPFLAGS$ac_delim
25836 ac_ct_CC!$ac_ct_CC$ac_delim
25837 EXEEXT!$EXEEXT$ac_delim
25838 OBJEXT!$OBJEXT$ac_delim
25839 DEPDIR!$DEPDIR$ac_delim
25840 am__include!$am__include$ac_delim
25841 am__quote!$am__quote$ac_delim
25842 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25843 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25844 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25845 CCDEPMODE!$CCDEPMODE$ac_delim
25846 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25847 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25850 CXXFLAGS!$CXXFLAGS$ac_delim
25851 ac_ct_CXX!$ac_ct_CXX$ac_delim
25852 CXXDEPMODE!$CXXDEPMODE$ac_delim
25853 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25854 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25855 GCC_TRUE!$GCC_TRUE$ac_delim
25856 GCC_FALSE!$GCC_FALSE$ac_delim
25857 build!$build$ac_delim
25858 build_cpu!$build_cpu$ac_delim
25859 build_vendor!$build_vendor$ac_delim
25860 build_os!$build_os$ac_delim
25861 host!$host$ac_delim
25862 host_cpu!$host_cpu$ac_delim
25863 host_vendor!$host_vendor$ac_delim
25864 host_os!$host_os$ac_delim
25866 GREP!$GREP$ac_delim
25867 EGREP!$EGREP$ac_delim
25868 LN_S!$LN_S$ac_delim
25869 ECHO!$ECHO$ac_delim
25872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25874 elif $ac_last_try; then
25875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25877 { (exit 1); exit 1; }; }
25879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25884 if test -n "$ac_eof"; then
25885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25886 ac_eof=`expr $ac_eof + 1`
25889 cat >>$CONFIG_STATUS <<_ACEOF
25890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25895 s/^/s,@/; s/!/@,|#_!!_#|/
25898 s/'"$ac_delim"'$/,g/; t
25900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25901 ' >>$CONFIG_STATUS <conf$$subs.sed
25902 rm -f conf$$subs.sed
25903 cat >>$CONFIG_STATUS <<_ACEOF
25909 for ac_last_try in false false false false false :; do
25910 cat >conf$$subs.sed <<_ACEOF
25912 RANLIB!$RANLIB$ac_delim
25913 DSYMUTIL!$DSYMUTIL$ac_delim
25914 NMEDIT!$NMEDIT$ac_delim
25915 CXXCPP!$CXXCPP$ac_delim
25917 FFLAGS!$FFLAGS$ac_delim
25918 ac_ct_F77!$ac_ct_F77$ac_delim
25919 LIBTOOL!$LIBTOOL$ac_delim
25920 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25921 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25922 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25923 X86_64_TRUE!$X86_64_TRUE$ac_delim
25924 X86_64_FALSE!$X86_64_FALSE$ac_delim
25925 acx_pthread_config!$acx_pthread_config$ac_delim
25926 PTHREAD_CC!$PTHREAD_CC$ac_delim
25927 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25928 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25929 GTEST_CONFIG!$GTEST_CONFIG$ac_delim
25930 GMOCK_CONFIG!$GMOCK_CONFIG$ac_delim
25931 HAVE_GMOCK_TRUE!$HAVE_GMOCK_TRUE$ac_delim
25932 HAVE_GMOCK_FALSE!$HAVE_GMOCK_FALSE$ac_delim
25933 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25934 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25935 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25936 ac_google_namespace!$ac_google_namespace$ac_delim
25937 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25938 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25939 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25940 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25941 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25942 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25943 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25944 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25945 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25946 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25947 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25948 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25949 GFLAGS_CFLAGS!$GFLAGS_CFLAGS$ac_delim
25950 GTEST_CFLAGS!$GTEST_CFLAGS$ac_delim
25951 GMOCK_CFLAGS!$GMOCK_CFLAGS$ac_delim
25952 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25953 GTEST_LIBS!$GTEST_LIBS$ac_delim
25954 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25955 LIBOBJS!$LIBOBJS$ac_delim
25956 LTLIBOBJS!$LTLIBOBJS$ac_delim
25959 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
25961 elif $ac_last_try; then
25962 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25963 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25964 { (exit 1); exit 1; }; }
25966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25970 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25971 if test -n "$ac_eof"; then
25972 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25973 ac_eof=`expr $ac_eof + 1`
25976 cat >>$CONFIG_STATUS <<_ACEOF
25977 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25981 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25982 s/^/s,@/; s/!/@,|#_!!_#|/
25985 s/'"$ac_delim"'$/,g/; t
25987 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25988 ' >>$CONFIG_STATUS <conf$$subs.sed
25989 rm -f conf$$subs.sed
25990 cat >>$CONFIG_STATUS <<_ACEOF
25997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25999 # trailing colons and then remove the whole line if VPATH becomes empty
26000 # (actually we leave an empty line to preserve line numbers).
26001 if test "x$srcdir" = x.; then
26002 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26003 s/:*\$(srcdir):*/:/
26004 s/:*\${srcdir}:*/:/
26006 s/^\([^=]*=[ ]*\):*/\1/
26012 cat >>$CONFIG_STATUS <<\_ACEOF
26013 fi # test -n "$CONFIG_FILES"
26016 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26019 :[FHLC]) ac_mode=$ac_tag; continue;;
26021 case $ac_mode$ac_tag in
26023 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26024 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26025 { (exit 1); exit 1; }; };;
26026 :[FH]-) ac_tag=-:-;;
26027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26044 -) ac_f="$tmp/stdin";;
26045 *) # Look for the file first in the build tree, then in the source tree
26046 # (if the path is not absolute). The absolute path cannot be DOS-style,
26047 # because $ac_f cannot contain `:'.
26051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26053 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26054 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26055 { (exit 1); exit 1; }; };;
26057 ac_file_inputs="$ac_file_inputs $ac_f"
26060 # Let's still pretend it is `configure' which instantiates (i.e., don't
26061 # use $as_me), people would be surprised to read:
26062 # /* config.h. Generated by config.status. */
26063 configure_input="Generated from "`IFS=:
26064 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26065 if test x"$ac_file" != x-; then
26066 configure_input="$ac_file. $configure_input"
26067 { echo "$as_me:$LINENO: creating $ac_file" >&5
26068 echo "$as_me: creating $ac_file" >&6;}
26072 *:-:* | *:-) cat >"$tmp/stdin";;
26077 ac_dir=`$as_dirname -- "$ac_file" ||
26078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26079 X"$ac_file" : 'X\(//\)[^/]' \| \
26080 X"$ac_file" : 'X\(//\)$' \| \
26081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26087 /^X\(\/\/\)[^/].*/{
26102 -*) as_dir=./$as_dir;;
26104 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26108 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26109 *) as_qdir=$as_dir;;
26111 as_dirs="'$as_qdir' $as_dirs"
26112 as_dir=`$as_dirname -- "$as_dir" ||
26113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26114 X"$as_dir" : 'X\(//\)[^/]' \| \
26115 X"$as_dir" : 'X\(//\)$' \| \
26116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26122 /^X\(\/\/\)[^/].*/{
26135 test -d "$as_dir" && break
26137 test -z "$as_dirs" || eval "mkdir $as_dirs"
26138 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26139 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26140 { (exit 1); exit 1; }; }; }
26144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26147 # A ".." for each directory in $ac_dir_suffix.
26148 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26149 case $ac_top_builddir_sub in
26150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26154 ac_abs_top_builddir=$ac_pwd
26155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26156 # for backward compatibility:
26157 ac_top_builddir=$ac_top_build_prefix
26160 .) # We are building in place.
26162 ac_top_srcdir=$ac_top_builddir_sub
26163 ac_abs_top_srcdir=$ac_pwd ;;
26164 [\\/]* | ?:[\\/]* ) # Absolute name.
26165 ac_srcdir=$srcdir$ac_dir_suffix;
26166 ac_top_srcdir=$srcdir
26167 ac_abs_top_srcdir=$srcdir ;;
26168 *) # Relative name.
26169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26170 ac_top_srcdir=$ac_top_build_prefix$srcdir
26171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26186 ac_MKDIR_P=$MKDIR_P
26188 [\\/$]* | ?:[\\/]* ) ;;
26189 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26193 cat >>$CONFIG_STATUS <<\_ACEOF
26194 # If the template does not know about datarootdir, expand it.
26195 # FIXME: This hack should be removed a few years after 2.60.
26196 ac_datarootdir_hack=; ac_datarootdir_seen=
26198 case `sed -n '/datarootdir/ {
26207 ' $ac_file_inputs` in
26208 *datarootdir*) ac_datarootdir_seen=yes;;
26209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26210 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26211 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26213 cat >>$CONFIG_STATUS <<_ACEOF
26214 ac_datarootdir_hack='
26215 s&@datadir@&$datadir&g
26216 s&@docdir@&$docdir&g
26217 s&@infodir@&$infodir&g
26218 s&@localedir@&$localedir&g
26219 s&@mandir@&$mandir&g
26220 s&\\\${datarootdir}&$datarootdir&g' ;;
26224 # Neutralize VPATH when `$srcdir' = `.'.
26225 # Shell code in configure.ac might set extrasub.
26226 # FIXME: do we really want to maintain this feature?
26227 cat >>$CONFIG_STATUS <<_ACEOF
26231 cat >>$CONFIG_STATUS <<\_ACEOF
26233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26234 s&@configure_input@&$configure_input&;t t
26235 s&@top_builddir@&$ac_top_builddir_sub&;t t
26236 s&@srcdir@&$ac_srcdir&;t t
26237 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26238 s&@top_srcdir@&$ac_top_srcdir&;t t
26239 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26240 s&@builddir@&$ac_builddir&;t t
26241 s&@abs_builddir@&$ac_abs_builddir&;t t
26242 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26243 s&@INSTALL@&$ac_INSTALL&;t t
26244 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26245 $ac_datarootdir_hack
26246 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26248 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26249 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26250 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26251 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26252 which seems to be undefined. Please make sure it is defined." >&5
26253 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26254 which seems to be undefined. Please make sure it is defined." >&2;}
26258 -) cat "$tmp/out"; rm -f "$tmp/out";;
26259 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26268 # Transform confdefs.h into a sed script `conftest.defines', that
26269 # substitutes the proper values into config.h.in to produce config.h.
26270 rm -f conftest.defines conftest.tail
26271 # First, append a space to every undef/define line, to ease matching.
26272 echo 's/$/ /' >conftest.defines
26273 # Then, protect against being on the right side of a sed subst, or in
26274 # an unquoted here document, in config.status. If some macros were
26275 # called several times there might be several #defines for the same
26276 # symbol, which is useless. But do not sort them, since the last
26277 # AC_DEFINE must be honored.
26278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26279 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26280 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26281 # PARAMS is the parameter list in the macro definition--in most cases, it's
26282 # just an empty string.
26283 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26284 ac_dB='\\)[ (].*,\\1define\\2'
26292 s/^[ ]*#[ ]*define[ ][ ]*//
26297 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26298 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26299 ' >>conftest.defines
26301 # Remove the space that was appended to ease matching.
26302 # Then replace #undef with comments. This is necessary, for
26303 # example, in the case of _POSIX_SOURCE, which is predefined and required
26304 # on some systems where configure will not decide to define it.
26305 # (The regexp can be short, since the line contains either #define or #undef.)
26307 s,^[ #]*u.*,/* & */,' >>conftest.defines
26309 # Break up conftest.defines:
26310 ac_max_sed_lines=50
26312 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26313 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26314 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26316 ac_in='$ac_file_inputs'
26317 ac_out='"$tmp/out1"'
26318 ac_nxt='"$tmp/out2"'
26322 # Write a here document:
26323 cat >>$CONFIG_STATUS <<_ACEOF
26324 # First, check the format of the line:
26325 cat >"\$tmp/defines.sed" <<\\CEOF
26326 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26327 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26331 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26333 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26334 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26335 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26336 grep . conftest.tail >/dev/null || break
26337 rm -f conftest.defines
26338 mv conftest.tail conftest.defines
26340 rm -f conftest.defines conftest.tail
26342 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26343 cat >>$CONFIG_STATUS <<\_ACEOF
26344 if test x"$ac_file" != x-; then
26345 echo "/* $configure_input */" >"$tmp/config.h"
26346 cat "$ac_result" >>"$tmp/config.h"
26347 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26348 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26349 echo "$as_me: $ac_file is unchanged" >&6;}
26352 mv "$tmp/config.h" $ac_file
26355 echo "/* $configure_input */"
26359 # Compute $ac_file's index in $config_headers.
26362 for _am_header in $config_headers :; do
26363 case $_am_header in
26364 $_am_arg | $_am_arg:* )
26367 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26370 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26371 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26372 X"$_am_arg" : 'X\(//\)[^/]' \| \
26373 X"$_am_arg" : 'X\(//\)$' \| \
26374 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26380 /^X\(\/\/\)[^/].*/{
26392 s/.*/./; q'`/stamp-h$_am_stamp_count
26395 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26396 echo "$as_me: executing $ac_file commands" >&6;}
26401 case $ac_file$ac_mode in
26402 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26403 # Strip MF so we end up with the name of the file.
26404 mf=`echo "$mf" | sed -e 's/:.*$//'`
26405 # Check whether this is an Automake generated Makefile or not.
26406 # We used to match only the files named `Makefile.in', but
26407 # some people rename them; so instead we look at the file content.
26408 # Grep'ing the first line is not enough: some people post-process
26409 # each Makefile.in and add a new line on top of each file to say so.
26410 # Grep'ing the whole file is not good either: AIX grep has a line
26411 # limit of 2048, but all sed's we know have understand at least 4000.
26412 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26413 dirpart=`$as_dirname -- "$mf" ||
26414 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26415 X"$mf" : 'X\(//\)[^/]' \| \
26416 X"$mf" : 'X\(//\)$' \| \
26417 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26423 /^X\(\/\/\)[^/].*/{
26439 # Extract the definition of DEPDIR, am__include, and am__quote
26440 # from the Makefile without running `make'.
26441 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26442 test -z "$DEPDIR" && continue
26443 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26444 test -z "am__include" && continue
26445 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26446 # When using ansi2knr, U may be empty or an underscore; expand it
26447 U=`sed -n 's/^U = //p' < "$mf"`
26448 # Find all dependency output files, they are included files with
26449 # $(DEPDIR) in their names. We invoke sed twice because it is the
26450 # simplest approach to changing $(DEPDIR) to its actual value in the
26452 for file in `sed -n "
26453 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26454 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26455 # Make sure the directory exists.
26456 test -f "$dirpart/$file" && continue
26457 fdir=`$as_dirname -- "$file" ||
26458 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26459 X"$file" : 'X\(//\)[^/]' \| \
26460 X"$file" : 'X\(//\)$' \| \
26461 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26467 /^X\(\/\/\)[^/].*/{
26480 { as_dir=$dirpart/$fdir
26482 -*) as_dir=./$as_dir;;
26484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26489 *) as_qdir=$as_dir;;
26491 as_dirs="'$as_qdir' $as_dirs"
26492 as_dir=`$as_dirname -- "$as_dir" ||
26493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26494 X"$as_dir" : 'X\(//\)[^/]' \| \
26495 X"$as_dir" : 'X\(//\)$' \| \
26496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26502 /^X\(\/\/\)[^/].*/{
26515 test -d "$as_dir" && break
26517 test -z "$as_dirs" || eval "mkdir $as_dirs"
26518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26520 { (exit 1); exit 1; }; }; }
26521 # echo "creating $dirpart/$file"
26522 echo '# dummy' > "$dirpart/$file"
26531 { (exit 0); exit 0; }
26533 chmod +x $CONFIG_STATUS
26534 ac_clean_files=$ac_clean_files_save
26537 # configure is writing to config.log, and then calls config.status.
26538 # config.status does its own redirection, appending to config.log.
26539 # Unfortunately, on DOS this fails, as config.log is still kept open
26540 # by configure, so config.status won't be able to write to it; its
26541 # output is simply discarded. So we exec the FD to /dev/null,
26542 # effectively closing config.log, so it can be properly (re)opened and
26543 # appended to by config.status. When coming back to configure, we
26544 # need to make the FD available again.
26545 if test "$no_create" != yes; then
26547 ac_config_status_args=
26548 test "$silent" = yes &&
26549 ac_config_status_args="$ac_config_status_args --quiet"
26551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26554 # would make configure fail if this is the last instruction.
26555 $ac_cs_success || { (exit 1); exit 1; }