2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.1.2.
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.1.2'
732 PACKAGE_STRING='glog 0.1.2'
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
888 ac_google_start_namespace
889 ac_google_end_namespace
891 ac_cv_cxx_using_operator
892 ac_cv___attribute___noreturn
893 ac_cv___attribute___printf_4_5
894 ac_cv_have___builtin_expect
896 ac_cv_have_systypes_h
897 ac_cv_have_inttypes_h
909 ac_precious_vars='build_alias
926 # Initialize some variables set by options.
928 ac_init_version=false
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
984 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033 eval enable_$ac_feature=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=\$ac_optarg ;;
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 htmldir=$ac_optarg ;;
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1097 -libdir | --libdir | --libdi | --libd)
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1188 -psdir | --psdir | --psdi | --psd | --ps)
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 sbindir=$ac_optarg ;;
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 sharedstatedir=$ac_optarg ;;
1214 -site | --site | --sit)
1216 -site=* | --site=* | --sit=*)
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1243 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249 eval with_$ac_package=\$ac_optarg ;;
1251 -without-* | --without-*)
1252 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid package name: $ac_package" >&2
1256 { (exit 1); exit 1; }; }
1257 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1258 eval with_$ac_package=no ;;
1261 # Obsolete; use --with-x.
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) { echo "$as_me: error: unrecognized option: $ac_option
1279 Try \`$0 --help' for more information." >&2
1280 { (exit 1); exit 1; }; }
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1288 { (exit 1); exit 1; }; }
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 { echo "$as_me: error: missing argument to $ac_option" >&2
1306 { (exit 1); exit 1; }; }
1309 # Be sure to have absolute directory names.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val=\$$ac_var
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1321 { (exit 1); exit 1; }; }
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1329 target=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used." >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345 test "$silent" = yes && exec 6>/dev/null
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 { echo "$as_me: error: Working directory cannot be determined" >&2
1352 { (exit 1); exit 1; }; }
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 { echo "$as_me: error: pwd does not report name of working directory" >&2
1355 { (exit 1); exit 1; }; }
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$0" ||
1363 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$0" : 'X\(//\)[^/]' \| \
1365 X"$0" : 'X\(//\)$' \| \
1366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1390 ac_srcdir_defaulted=no
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1395 { (exit 1); exit 1; }; }
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1400 { (exit 1); exit 1; }; }
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 # Report the --help message.
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1426 \`configure' configures glog 0.1.2 to adapt to many kinds of systems.
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1433 Defaults for the options are specified in brackets.
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1457 For better control, use the options below.
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive ) echo "Configuration of glog 0.1.2:";;
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --disable-dependency-tracking speeds up one-time build
1504 --enable-dependency-tracking do not reject slow dependency extractors
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-static[=PKGS] build static libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --enable-frame-pointers On x86_64 systems, compile with
1511 -fno-omit-frame-pointer (see INSTALL)
1512 --enable-namespace=FOO to define these Google
1513 classes in the FOO namespace. --disable-namespace
1514 to define them in the global namespace. Default
1515 is to define them in namespace google.
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-pic try to use only PIC/non-PIC objects [default=use
1523 --with-tags[=TAGS] include additional configurations [automatic]
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1536 CXXCPP C++ preprocessor
1537 F77 Fortran 77 compiler command
1538 FFLAGS Fortran 77 compiler flags
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to <opensource@google.com>.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" || continue
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1571 .) # We are building in place.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1595 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1604 glog configure 0.1.2
1605 generated by GNU Autoconf 2.61
1607 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1608 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1614 cat >config.log <<_ACEOF
1615 This file contains any messages produced by compilers while
1616 running configure, to aid debugging if configure makes a mistake.
1618 It was created by glog $as_me 0.1.2, which was
1619 generated by GNU Autoconf 2.61. Invocation command line was
1631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1638 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1640 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1641 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1643 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1644 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1645 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1646 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir=.
1655 echo "PATH: $as_dir"
1671 # Keep a trace of the command line.
1672 # Strip out --no-create and --no-recursion so they do not pile up.
1673 # Strip out --silent because we don't want to record it for future runs.
1674 # Also quote any args containing shell meta-characters.
1675 # Make two passes to allow for proper duplicate-argument suppression.
1679 ac_must_keep_next=false
1685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1687 | -silent | --silent | --silen | --sile | --sil)
1690 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1693 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1695 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1696 if test $ac_must_keep_next = true; then
1697 ac_must_keep_next=false # Got value, back to normal.
1700 *=* | --config-cache | -C | -disable-* | --disable-* \
1701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1703 | -with-* | --with-* | -without-* | --without-* | --x)
1704 case "$ac_configure_args0 " in
1705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1708 -* ) ac_must_keep_next=true ;;
1711 ac_configure_args="$ac_configure_args '$ac_arg'"
1716 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1717 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1719 # When interrupted or exit'd, cleanup temporary files, and complete
1720 # config.log. We remove comments because anyway the quotes in there
1721 # would cause problems or look ugly.
1722 # WARNING: Use '\'' to represent an apostrophe within the trap.
1723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1724 trap 'exit_status=$?
1725 # Save into config.log some information that might help in debugging.
1730 ## ---------------- ##
1731 ## Cache variables. ##
1732 ## ---------------- ##
1735 # The following way of writing the cache mishandles newlines in values,
1737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1738 eval ac_val=\$$ac_var
1742 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1743 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1746 _ | IFS | as_nl) ;; #(
1747 *) $as_unset $ac_var ;;
1752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1753 *${as_nl}ac_space=\ *)
1755 "s/'\''/'\''\\\\'\'''\''/g;
1756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767 ## ----------------- ##
1768 ## Output variables. ##
1769 ## ----------------- ##
1772 for ac_var in $ac_subst_vars
1774 eval ac_val=\$$ac_var
1776 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 echo "$ac_var='\''$ac_val'\''"
1782 if test -n "$ac_subst_files"; then
1784 ## ------------------- ##
1785 ## File substitutions. ##
1786 ## ------------------- ##
1789 for ac_var in $ac_subst_files
1791 eval ac_val=\$$ac_var
1793 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795 echo "$ac_var='\''$ac_val'\''"
1800 if test -s confdefs.h; then
1810 test "$ac_signal" != 0 &&
1811 echo "$as_me: caught signal $ac_signal"
1812 echo "$as_me: exit $exit_status"
1814 rm -f core *.core core.conftest.* &&
1815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1818 for ac_signal in 1 2 13 15; do
1819 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1824 rm -f -r conftest* confdefs.h
1826 # Predefined preprocessor variables.
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_NAME "$PACKAGE_NAME"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_STRING "$PACKAGE_STRING"
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1853 # Let the site file select an alternate cache file if it wants to.
1854 # Prefer explicitly selected file to automatically selected ones.
1855 if test -n "$CONFIG_SITE"; then
1856 set x "$CONFIG_SITE"
1857 elif test "x$prefix" != xNONE; then
1858 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1860 set x "$ac_default_prefix/share/config.site" \
1861 "$ac_default_prefix/etc/config.site"
1866 if test -r "$ac_site_file"; then
1867 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 echo "$as_me: loading cache $cache_file" >&6;}
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1886 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 echo "$as_me: creating cache $cache_file" >&6;}
1891 # Check that the precious variables saved in the cache have kept the same
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1901 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1905 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1914 echo "$as_me: former value: $ac_old_val" >&2;}
1915 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1916 echo "$as_me: current value: $ac_new_val" >&2;}
1917 ac_cache_corrupted=:
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1923 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 *) ac_arg=$ac_var=$ac_new_val ;;
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932 if $ac_cache_corrupted; then
1933 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1934 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1935 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1936 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1937 { (exit 1); exit 1; }; }
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 # The argument here is just something that should be in the current directory
1972 # (for sanity checking)
1974 am__api_version='1.10'
1977 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1978 if test -f "$ac_dir/install-sh"; then
1980 ac_install_sh="$ac_aux_dir/install-sh -c"
1982 elif test -f "$ac_dir/install.sh"; then
1984 ac_install_sh="$ac_aux_dir/install.sh -c"
1986 elif test -f "$ac_dir/shtool"; then
1988 ac_install_sh="$ac_aux_dir/shtool install -c"
1992 if test -z "$ac_aux_dir"; then
1993 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1994 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1995 { (exit 1); exit 1; }; }
1998 # These three variables are undocumented and unsupported,
1999 # and are intended to be withdrawn in a future Autoconf release.
2000 # They can cause serious problems if a builder's source tree is in a directory
2001 # whose full name contains unusual characters.
2002 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2003 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2004 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2007 # Find a good install program. We prefer a C program (faster),
2008 # so one script is as good as another. But avoid the broken or
2009 # incompatible versions:
2010 # SysV /etc/install, /usr/sbin/install
2011 # SunOS /usr/etc/install
2012 # IRIX /sbin/install
2014 # AmigaOS /C/install, which installs bootblocks on floppy discs
2015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018 # OS/2's system install, which has a completely different semantic
2019 # ./install, which can be erroneously created by make from ./install.sh.
2020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022 if test -z "$INSTALL"; then
2023 if test "${ac_cv_path_install+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 # Account for people who put trailing slashes in PATH elements.
2033 ./ | .// | /cC/* | \
2034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2038 # OSF1 and SCO ODT 3.0 have their own names for install.
2039 # Don't use installbsd from OSF since it installs stuff as root
2041 for ac_prog in ginstall scoinst install; do
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044 if test $ac_prog = install &&
2045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046 # AIX install. It has an incompatible calling convention.
2048 elif test $ac_prog = install &&
2049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050 # program-specific install script used by HP pwplus--don't use.
2053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2066 if test "${ac_cv_path_install+set}" = set; then
2067 INSTALL=$ac_cv_path_install
2069 # As a last resort, use the slow shell script. Don't cache a
2070 # value for INSTALL within a source directory, because that will
2071 # break other packages using the cache if that directory is
2072 # removed, or if the value is a relative name.
2073 INSTALL=$ac_install_sh
2076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2077 echo "${ECHO_T}$INSTALL" >&6; }
2079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080 # It thinks the first close brace ends the variable substitution.
2081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell's
2093 # arguments. Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2098 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099 if test "$*" = "X"; then
2101 set X `ls -t $srcdir/configure conftest.file`
2104 if test "$*" != "X $srcdir/configure conftest.file" \
2105 && test "$*" != "X conftest.file $srcdir/configure"; then
2107 # If neither matched, then we have a broken ls. This can happen
2108 # if, for instance, CONFIG_SHELL is bash and it inherits a
2109 # broken ls alias from the environment. This has actually
2110 # happened. Such a system could not be considered "sane".
2111 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2114 alias in your environment" >&2;}
2115 { (exit 1); exit 1; }; }
2118 test "$2" = conftest.file
2124 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE &&
2133 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE &&
2136 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $. echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF >conftest.sed
2140 s/[\\$]/&&/g;s/;s,x,x,$//
2142 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151 am_missing_run="$MISSING --run "
2154 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2158 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160 if test -z "$MKDIR_P"; then
2161 if test "${ac_cv_path_mkdir+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2168 test -z "$as_dir" && as_dir=.
2169 for ac_prog in mkdir gmkdir; do
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173 'mkdir (GNU coreutils) '* | \
2174 'mkdir (coreutils) '* | \
2175 'mkdir (fileutils) '4.1*)
2176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 MKDIR_P="$ac_cv_path_mkdir -p"
2189 # As a last resort, use the slow shell script. Don't cache a
2190 # value for MKDIR_P within a source directory, because that will
2191 # break other packages using the cache if that directory is
2192 # removed, or if the value is a relative name.
2193 test -d ./--version && rmdir ./--version
2194 MKDIR_P="$ac_install_sh -d"
2197 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 echo "${ECHO_T}$MKDIR_P" >&6; }
2202 [\\/$]* | ?:[\\/]*) ;;
2203 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2206 for ac_prog in gawk mawk nawk awk
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 if test -n "$AWK"; then
2237 { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2245 test -n "$AWK" && break
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.make <<\_ACEOF
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2285 rmdir .tst 2>/dev/null
2287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289 # is not polluted with repeated "-I."
2290 am__isrc=' -I$(srcdir)'
2291 # test to see if srcdir already configured
2292 if test -f $srcdir/config.status; then
2293 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295 { (exit 1); exit 1; }; }
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301 if (cygpath --version) >/dev/null 2>/dev/null; then
2302 CYGPATH_W='cygpath -w'
2309 # Define the identity of the package.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2323 # Some tools Automake needs.
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'. However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { echo "$as_me:$LINENO: result: $STRIP" >&5
2377 echo "${ECHO_T}$STRIP" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_STRIP"; then
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_STRIP" = x; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2439 STRIP="$ac_cv_prog_STRIP"
2443 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2445 # We need awk for the "check" target. The system "awk" is bad on
2447 # Always define AMTAR for backward compatibility.
2449 AMTAR=${AMTAR-"${am_missing_run}tar"}
2451 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2457 ac_config_headers="$ac_config_headers src/config.h"
2460 # Checks for programs.
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2468 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test -n "$CC"; then
2496 { echo "$as_me:$LINENO: result: $CC" >&5
2497 echo "${ECHO_T}$CC" >&6; }
2499 { echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6; }
2505 if test -z "$ac_cv_prog_CC"; then
2507 # Extract the first word of "gcc", so it can be a program name with args.
2508 set dummy gcc; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$ac_ct_CC"; then
2515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_ac_ct_CC="gcc"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2535 if test -n "$ac_ct_CC"; then
2536 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2537 echo "${ECHO_T}$ac_ct_CC" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2543 if test "x$ac_ct_CC" = x; then
2546 case $cross_compiling:$ac_tool_warned in
2548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2549 whose name does not start with the host triplet. If you think this
2550 configuration is useful to you, please write to autoconf@gnu.org." >&5
2551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2552 whose name does not start with the host triplet. If you think this
2553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2554 ac_tool_warned=yes ;;
2562 if test -z "$CC"; then
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}cc; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC="${ac_tool_prefix}cc"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 if test -n "$CC"; then
2593 { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2603 if test -z "$CC"; then
2604 # Extract the first word of "cc", so it can be a program name with args.
2605 set dummy cc; ac_word=$2
2606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2623 ac_prog_rejected=yes
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 if test $ac_prog_rejected = yes; then
2635 # We found a bogon in the path, so make sure we never use it.
2636 set dummy $ac_cv_prog_CC
2638 if test $# != 0; then
2639 # We chose a different compiler from the bogus one.
2640 # However, it has the same basename, so the bogon will be chosen
2641 # first if we set CC to just the basename; use the full file name.
2643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2649 if test -n "$CC"; then
2650 { echo "$as_me:$LINENO: result: $CC" >&5
2651 echo "${ECHO_T}$CC" >&6; }
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2659 if test -z "$CC"; then
2660 if test -n "$ac_tool_prefix"; then
2661 for ac_prog in cl.exe
2663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 if test -n "$CC"; then
2692 { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2700 test -n "$CC" && break
2703 if test -z "$CC"; then
2705 for ac_prog in cl.exe
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy $ac_prog; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CC="$ac_prog"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735 if test -n "$ac_ct_CC"; then
2736 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737 echo "${ECHO_T}$ac_ct_CC" >&6; }
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2744 test -n "$ac_ct_CC" && break
2747 if test "x$ac_ct_CC" = x; then
2750 case $cross_compiling:$ac_tool_warned in
2752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&5
2755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2756 whose name does not start with the host triplet. If you think this
2757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2758 ac_tool_warned=yes ;;
2767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: no acceptable C compiler found in \$PATH
2770 See \`config.log' for more details." >&2;}
2771 { (exit 1); exit 1; }; }
2773 # Provide some information about the compiler.
2774 echo "$as_me:$LINENO: checking for C compiler version" >&5
2775 ac_compiler=`set X $ac_compile; echo $2`
2776 { (ac_try="$ac_compiler --version >&5"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compiler --version >&5") 2>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2786 { (ac_try="$ac_compiler -v >&5"
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compiler -v >&5") 2>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }
2796 { (ac_try="$ac_compiler -V >&5"
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compiler -V >&5") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 ac_clean_files_save=$ac_clean_files
2823 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2824 # Try to create an executable without -o first, disregard a.out.
2825 # It will help us diagnose broken compilers, and finding out an intuition
2827 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2828 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2829 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2831 # List of possible output files, starting from the most likely.
2832 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2833 # only as a last resort. b.out is created by i960 compilers.
2834 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2836 # The IRIX 6 linker writes into existing files which may not be
2837 # executable, retaining their permissions. Remove them first so a
2838 # subsequent execution test works.
2840 for ac_file in $ac_files
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2849 if { (ac_try="$ac_link_default"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_link_default") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; then
2859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2862 # so that the user can short-circuit this test for compilers unknown to
2864 for ac_file in $ac_files ''
2866 test -f "$ac_file" || continue
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2871 # We found the default executable, but exeext='' is most
2875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879 # We set ac_cv_exeext here because the later test for it is not
2880 # safe: cross compilers may not add the suffix if given an `-o'
2881 # argument, so we may need to know it at that point already.
2882 # Even if this section looks crufty: it has the advantage of
2889 test "$ac_cv_exeext" = no && ac_cv_exeext=
2895 { echo "$as_me:$LINENO: result: $ac_file" >&5
2896 echo "${ECHO_T}$ac_file" >&6; }
2897 if test -z "$ac_file"; then
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: C compiler cannot create executables
2904 See \`config.log' for more details." >&2;}
2905 { (exit 77); exit 77; }; }
2908 ac_exeext=$ac_cv_exeext
2910 # Check that the compiler produces executables we can run. If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2913 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2914 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2915 # If not cross compiling, check that we can run a simple program.
2916 if test "$cross_compiling" != yes; then
2917 if { ac_try='./$ac_file'
2918 { (case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_try") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2929 if test "$cross_compiling" = maybe; then
2932 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2933 If you meant to cross compile, use \`--host'.
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot run C compiled programs.
2936 If you meant to cross compile, use \`--host'.
2937 See \`config.log' for more details." >&2;}
2938 { (exit 1); exit 1; }; }
2942 { echo "$as_me:$LINENO: result: yes" >&5
2943 echo "${ECHO_T}yes" >&6; }
2945 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2946 ac_clean_files=$ac_clean_files_save
2947 # Check that the compiler produces executables we can run. If not, either
2948 # the compiler is broken, or we cross compile.
2949 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2950 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2951 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2952 echo "${ECHO_T}$cross_compiling" >&6; }
2954 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2955 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2956 if { (ac_try="$ac_link"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_link") 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2967 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2968 # work properly (i.e., refer to `conftest.exe'), while it won't with
2970 for ac_file in conftest.exe conftest conftest.*; do
2971 test -f "$ac_file" || continue
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2981 See \`config.log' for more details." >&5
2982 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2983 See \`config.log' for more details." >&2;}
2984 { (exit 1); exit 1; }; }
2987 rm -f conftest$ac_cv_exeext
2988 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2989 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2991 rm -f conftest.$ac_ext
2992 EXEEXT=$ac_cv_exeext
2994 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2995 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2996 if test "${ac_cv_objext+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3014 rm -f conftest.o conftest.obj
3015 if { (ac_try="$ac_compile"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; then
3025 for ac_file in conftest.o conftest.obj conftest.*; do
3026 test -f "$ac_file" || continue;
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3040 See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3047 echo "${ECHO_T}$ac_cv_objext" >&6; }
3048 OBJEXT=$ac_cv_objext
3050 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3073 rm -f conftest.$ac_objext
3074 if { (ac_try="$ac_compile"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_compile") 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } && {
3087 test -z "$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 } && test -s conftest.$ac_objext; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3102 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3103 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3104 GCC=`test $ac_compiler_gnu = yes && echo yes`
3105 ac_test_CFLAGS=${CFLAGS+set}
3106 ac_save_CFLAGS=$CFLAGS
3107 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_cc_g+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 ac_save_c_werror_flag=$ac_c_werror_flag
3113 ac_c_werror_flag=yes
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } && {
3145 test -z "$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3147 } && test -s conftest.$ac_objext; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3193 cat >conftest.$ac_ext <<_ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3208 rm -f conftest.$ac_objext
3209 if { (ac_try="$ac_compile"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compile") 2>conftest.er1
3217 grep -v '^ *+' conftest.er1 >conftest.err
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && {
3222 test -z "$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 } && test -s conftest.$ac_objext; then
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3253 if test "$GCC" = yes; then
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_prog_cc_c89=no
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3290 s = g (p, va_arg (v,int));
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3296 function prototypes and stuff, but not '\xHH' hex character constants.
3297 These don't provoke an error unfortunately, instead are silently treated
3298 as 'x'. The following induces an error, until -std is added to get
3299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3300 array size at least. It's necessary to write '\x00'==0 to get something
3301 that's true only with -std. */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305 inside strings and character constants. */
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326 CC="$ac_save_CC $ac_arg"
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && {
3341 test -z "$ac_c_werror_flag" ||
3342 test ! -s conftest.err
3343 } && test -s conftest.$ac_objext; then
3344 ac_cv_prog_cc_c89=$ac_arg
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3355 rm -f conftest.$ac_ext
3360 case "x$ac_cv_prog_cc_c89" in
3362 { echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6; } ;;
3365 { echo "$as_me:$LINENO: result: unsupported" >&5
3366 echo "${ECHO_T}unsupported" >&6; } ;;
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 DEPDIR="${am__leading_dot}deps"
3381 ac_config_commands="$ac_config_commands depfiles"
3384 am_make=${MAKE-make}
3385 cat > confinc << 'END'
3390 # If we don't find an include directive, just comment out the code.
3391 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3392 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3396 # First try GNU make style include.
3397 echo "include confinc" > confmf
3398 # We grep out `Entering directory' and `Leaving directory'
3399 # messages which can occur if `w' ends up in MAKEFLAGS.
3400 # In particular we don't look at `^make:' because GNU make might
3401 # be invoked under some other name (usually "gmake"), in which
3402 # case it prints its new name instead of `make'.
3403 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3408 # Now try BSD make style include.
3409 if test "$am__include" = "#"; then
3410 echo '.include "confinc"' > confmf
3411 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3412 am__include=.include
3419 { echo "$as_me:$LINENO: result: $_am_result" >&5
3420 echo "${ECHO_T}$_am_result" >&6; }
3421 rm -f confinc confmf
3423 # Check whether --enable-dependency-tracking was given.
3424 if test "${enable_dependency_tracking+set}" = set; then
3425 enableval=$enable_dependency_tracking;
3428 if test "x$enable_dependency_tracking" != xno; then
3429 am_depcomp="$ac_aux_dir/depcomp"
3432 if test "x$enable_dependency_tracking" != xno; then
3442 depcc="$CC" am_compiler_list=
3444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3446 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3450 # We make a subdir and do the tests there. Otherwise we can end up
3451 # making bogus files that we don't know about and never remove. For
3452 # instance it was reported that on HP-UX the gcc test will end up
3453 # making a dummy file named `D' -- because `-MD' means `put the output
3456 # Copy depcomp to subdir because otherwise we won't find it if we're
3457 # using a relative directory.
3458 cp "$am_depcomp" conftest.dir
3460 # We will build objects and dependencies in a subdirectory because
3461 # it helps to detect inapplicable dependency modes. For instance
3462 # both Tru64's cc and ICC support -MD to output dependencies as a
3463 # side effect of compilation, but ICC will put the dependencies in
3464 # the current directory while Tru64 will put them in the object
3468 am_cv_CC_dependencies_compiler_type=none
3469 if test "$am_compiler_list" = ""; then
3470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3472 for depmode in $am_compiler_list; do
3473 # Setup a source with many dependencies, because some compilers
3474 # like to wrap large dependency lists on column 80 (with \), and
3475 # we should not choose a depcomp mode which is confused by this.
3477 # We need to recreate these files for each test, as the compiler may
3478 # overwrite some of them when testing with obscure command lines.
3479 # This happens at least with the AIX C compiler.
3481 for i in 1 2 3 4 5 6; do
3482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3484 # Solaris 8's {/usr,}/bin/sh.
3485 touch sub/conftst$i.h
3487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3491 # after this tag, mechanisms are not by side-effect, so they'll
3492 # only be used when explicitly requested
3493 if test "x$enable_dependency_tracking" = xyes; then
3501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3502 # mode. It turns out that the SunPro C++ compiler does not properly
3503 # handle `-M -o', and we need to detect this.
3504 if depmode=$depmode \
3505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3508 >/dev/null 2>conftest.err &&
3509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3511 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3513 # icc doesn't choke on unknown options, it will just issue warnings
3514 # or remarks (even with -Werror). So we grep stderr for any message
3515 # that says an option was ignored or not supported.
3516 # When given -MP, icc 7.0 and 7.1 complain thusly:
3517 # icc: Command line warning: ignoring option '-M'; no argument required
3518 # The diagnosis changed in icc 8.0:
3519 # icc: Command line remark: option '-MP' not supported
3520 if (grep 'ignoring option' conftest.err ||
3521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3522 am_cv_CC_dependencies_compiler_type=$depmode
3531 am_cv_CC_dependencies_compiler_type=none
3535 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3536 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3540 test "x$enable_dependency_tracking" != xno \
3541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3543 am__fastdepCC_FALSE='#'
3545 am__fastdepCC_TRUE='#'
3546 am__fastdepCC_FALSE=
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3556 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3557 # On Suns, sometimes $CPP names a directory.
3558 if test -n "$CPP" && test -d "$CPP"; then
3561 if test -z "$CPP"; then
3562 if test "${ac_cv_prog_CPP+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 # Double quotes because CPP needs to be expanded
3566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 # include <limits.h>
3586 # include <assert.h>
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null && {
3603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 # Broken: fails on valid input.
3615 rm -f conftest.err conftest.$ac_ext
3617 # OK, works on sane cases. Now check whether nonexistent headers
3618 # can be detected and how.
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3627 if { (ac_try="$ac_cpp conftest.$ac_ext"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3635 grep -v '^ *+' conftest.er1 >conftest.err
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev/null && {
3640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3643 # Broken: success on invalid input.
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 # Passes both tests.
3654 rm -f conftest.err conftest.$ac_ext
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3671 { echo "$as_me:$LINENO: result: $CPP" >&5
3672 echo "${ECHO_T}$CPP" >&6; }
3674 for ac_c_preproc_warn_flag in '' yes
3676 # Use a header file that comes with gcc, so configuring glibc
3677 # with a fresh cross-compiler works.
3678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679 # <limits.h> exists even on freestanding compilers.
3680 # On the NeXT, cc -E runs the code through the compiler's parser,
3681 # not just through cpp. "Syntax error" is here to catch this case.
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3689 # include <limits.h>
3691 # include <assert.h>
3695 if { (ac_try="$ac_cpp conftest.$ac_ext"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev/null && {
3708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 # Broken: fails on valid input.
3720 rm -f conftest.err conftest.$ac_ext
3722 # OK, works on sane cases. Now check whether nonexistent headers
3723 # can be detected and how.
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3730 #include <ac_nonexistent.h>
3732 if { (ac_try="$ac_cpp conftest.$ac_ext"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3740 grep -v '^ *+' conftest.er1 >conftest.err
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } >/dev/null && {
3745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3746 test ! -s conftest.err
3748 # Broken: success on invalid input.
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 # Passes both tests.
3759 rm -f conftest.err conftest.$ac_ext
3762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3763 rm -f conftest.err conftest.$ac_ext
3764 if $ac_preproc_ok; then
3767 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3768 See \`config.log' for more details." >&5
3769 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3770 See \`config.log' for more details." >&2;}
3771 { (exit 1); exit 1; }; }
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 ac_cpp='$CXXCPP $CPPFLAGS'
3782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3785 if test -z "$CXX"; then
3786 if test -n "$CCC"; then
3789 if test -n "$ac_tool_prefix"; then
3790 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3796 if test "${ac_cv_prog_CXX+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 if test -n "$CXX"; then
3800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 if test -n "$CXX"; then
3821 { echo "$as_me:$LINENO: result: $CXX" >&5
3822 echo "${ECHO_T}$CXX" >&6; }
3824 { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3829 test -n "$CXX" && break
3832 if test -z "$CXX"; then
3834 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 if test -n "$ac_ct_CXX"; then
3844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_ac_ct_CXX="$ac_prog"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3864 if test -n "$ac_ct_CXX"; then
3865 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3868 { echo "$as_me:$LINENO: result: no" >&5
3869 echo "${ECHO_T}no" >&6; }
3873 test -n "$ac_ct_CXX" && break
3876 if test "x$ac_ct_CXX" = x; then
3879 case $cross_compiling:$ac_tool_warned in
3881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3882 whose name does not start with the host triplet. If you think this
3883 configuration is useful to you, please write to autoconf@gnu.org." >&5
3884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3885 whose name does not start with the host triplet. If you think this
3886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3887 ac_tool_warned=yes ;;
3895 # Provide some information about the compiler.
3896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3897 ac_compiler=`set X $ac_compile; echo $2`
3898 { (ac_try="$ac_compiler --version >&5"
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compiler --version >&5") 2>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }
3908 { (ac_try="$ac_compiler -v >&5"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compiler -v >&5") 2>&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }
3918 { (ac_try="$ac_compiler -V >&5"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_compiler -V >&5") 2>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }
3929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_cxx_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3983 GXX=`test $ac_compiler_gnu = yes && echo yes`
3984 ac_test_CXXFLAGS=${CXXFLAGS+set}
3985 ac_save_CXXFLAGS=$CXXFLAGS
3986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3988 if test "${ac_cv_prog_cxx_g+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3992 ac_cxx_werror_flag=yes
3995 cat >conftest.$ac_ext <<_ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_compile") 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } && {
4024 test -z "$ac_cxx_werror_flag" ||
4025 test ! -s conftest.err
4026 } && test -s conftest.$ac_objext; then
4027 ac_cv_prog_cxx_g=yes
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4048 rm -f conftest.$ac_objext
4049 if { (ac_try="$ac_compile"
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_compile") 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } && {
4062 test -z "$ac_cxx_werror_flag" ||
4063 test ! -s conftest.err
4064 } && test -s conftest.$ac_objext; then
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_compile") 2>conftest.er1
4096 grep -v '^ *+' conftest.er1 >conftest.err
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } && {
4101 test -z "$ac_cxx_werror_flag" ||
4102 test ! -s conftest.err
4103 } && test -s conftest.$ac_objext; then
4104 ac_cv_prog_cxx_g=yes
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4122 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4123 if test "$ac_test_CXXFLAGS" = set; then
4124 CXXFLAGS=$ac_save_CXXFLAGS
4125 elif test $ac_cv_prog_cxx_g = yes; then
4126 if test "$GXX" = yes; then
4132 if test "$GXX" = yes; then
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 depcc="$CXX" am_compiler_list=
4146 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4147 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4148 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4152 # We make a subdir and do the tests there. Otherwise we can end up
4153 # making bogus files that we don't know about and never remove. For
4154 # instance it was reported that on HP-UX the gcc test will end up
4155 # making a dummy file named `D' -- because `-MD' means `put the output
4158 # Copy depcomp to subdir because otherwise we won't find it if we're
4159 # using a relative directory.
4160 cp "$am_depcomp" conftest.dir
4162 # We will build objects and dependencies in a subdirectory because
4163 # it helps to detect inapplicable dependency modes. For instance
4164 # both Tru64's cc and ICC support -MD to output dependencies as a
4165 # side effect of compilation, but ICC will put the dependencies in
4166 # the current directory while Tru64 will put them in the object
4170 am_cv_CXX_dependencies_compiler_type=none
4171 if test "$am_compiler_list" = ""; then
4172 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4174 for depmode in $am_compiler_list; do
4175 # Setup a source with many dependencies, because some compilers
4176 # like to wrap large dependency lists on column 80 (with \), and
4177 # we should not choose a depcomp mode which is confused by this.
4179 # We need to recreate these files for each test, as the compiler may
4180 # overwrite some of them when testing with obscure command lines.
4181 # This happens at least with the AIX C compiler.
4183 for i in 1 2 3 4 5 6; do
4184 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4185 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4186 # Solaris 8's {/usr,}/bin/sh.
4187 touch sub/conftst$i.h
4189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4193 # after this tag, mechanisms are not by side-effect, so they'll
4194 # only be used when explicitly requested
4195 if test "x$enable_dependency_tracking" = xyes; then
4203 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4204 # mode. It turns out that the SunPro C++ compiler does not properly
4205 # handle `-M -o', and we need to detect this.
4206 if depmode=$depmode \
4207 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4209 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4210 >/dev/null 2>conftest.err &&
4211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4215 # icc doesn't choke on unknown options, it will just issue warnings
4216 # or remarks (even with -Werror). So we grep stderr for any message
4217 # that says an option was ignored or not supported.
4218 # When given -MP, icc 7.0 and 7.1 complain thusly:
4219 # icc: Command line warning: ignoring option '-M'; no argument required
4220 # The diagnosis changed in icc 8.0:
4221 # icc: Command line remark: option '-MP' not supported
4222 if (grep 'ignoring option' conftest.err ||
4223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4224 am_cv_CXX_dependencies_compiler_type=$depmode
4233 am_cv_CXX_dependencies_compiler_type=none
4237 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4238 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4239 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4242 test "x$enable_dependency_tracking" != xno \
4243 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4244 am__fastdepCXX_TRUE=
4245 am__fastdepCXX_FALSE='#'
4247 am__fastdepCXX_TRUE='#'
4248 am__fastdepCXX_FALSE=
4252 if test "$GCC" = yes; then
4259 # let the Makefile know if we're gcc
4261 # Check whether --enable-shared was given.
4262 if test "${enable_shared+set}" = set; then
4263 enableval=$enable_shared; p=${PACKAGE-default}
4265 yes) enable_shared=yes ;;
4266 no) enable_shared=no ;;
4269 # Look at the argument we got. We use all the common list separators.
4270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4271 for pkg in $enableval; do
4273 if test "X$pkg" = "X$p"; then
4285 # Check whether --enable-static was given.
4286 if test "${enable_static+set}" = set; then
4287 enableval=$enable_static; p=${PACKAGE-default}
4289 yes) enable_static=yes ;;
4290 no) enable_static=no ;;
4293 # Look at the argument we got. We use all the common list separators.
4294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4295 for pkg in $enableval; do
4297 if test "X$pkg" = "X$p"; then
4309 # Check whether --enable-fast-install was given.
4310 if test "${enable_fast_install+set}" = set; then
4311 enableval=$enable_fast_install; p=${PACKAGE-default}
4313 yes) enable_fast_install=yes ;;
4314 no) enable_fast_install=no ;;
4316 enable_fast_install=no
4317 # Look at the argument we got. We use all the common list separators.
4318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4319 for pkg in $enableval; do
4321 if test "X$pkg" = "X$p"; then
4322 enable_fast_install=yes
4329 enable_fast_install=yes
4333 # Make sure we can run config.sub.
4334 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4335 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4336 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4337 { (exit 1); exit 1; }; }
4339 { echo "$as_me:$LINENO: checking build system type" >&5
4340 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4341 if test "${ac_cv_build+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_build_alias=$build_alias
4345 test "x$ac_build_alias" = x &&
4346 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4347 test "x$ac_build_alias" = x &&
4348 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4349 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4350 { (exit 1); exit 1; }; }
4351 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4352 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4353 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4354 { (exit 1); exit 1; }; }
4357 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4358 echo "${ECHO_T}$ac_cv_build" >&6; }
4359 case $ac_cv_build in
4361 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4362 echo "$as_me: error: invalid value of canonical build" >&2;}
4363 { (exit 1); exit 1; }; };;
4366 ac_save_IFS=$IFS; IFS='-'
4372 # Remember, the first character of IFS is used to create $*,
4373 # except with old shells:
4376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4379 { echo "$as_me:$LINENO: checking host system type" >&5
4380 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4381 if test "${ac_cv_host+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test "x$host_alias" = x; then
4385 ac_cv_host=$ac_cv_build
4387 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4388 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4389 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4390 { (exit 1); exit 1; }; }
4394 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4395 echo "${ECHO_T}$ac_cv_host" >&6; }
4398 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4399 echo "$as_me: error: invalid value of canonical host" >&2;}
4400 { (exit 1); exit 1; }; };;
4403 ac_save_IFS=$IFS; IFS='-'
4409 # Remember, the first character of IFS is used to create $*,
4410 # except with old shells:
4413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4416 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4417 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4418 if test "${lt_cv_path_SED+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 # Loop through the user's path and test for sed and gsed.
4422 # Then use that list of sed's as ones to test for truncation.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for lt_ac_prog in sed gsed; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4431 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4439 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4440 # along with /bin/sed that truncates output.
4441 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4442 test ! -f $lt_ac_sed && continue
4443 cat /dev/null > conftest.in
4445 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4446 # Check for GNU sed and select it if it is found.
4447 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4448 lt_cv_path_SED=$lt_ac_sed
4452 cat conftest.in conftest.in >conftest.tmp
4453 mv conftest.tmp conftest.in
4454 cp conftest.in conftest.nl
4456 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4457 cmp -s conftest.out conftest.nl || break
4458 # 10000 chars as input seems more than enough
4459 test $lt_ac_count -gt 10 && break
4460 lt_ac_count=`expr $lt_ac_count + 1`
4461 if test $lt_ac_count -gt $lt_ac_max; then
4462 lt_ac_max=$lt_ac_count
4463 lt_cv_path_SED=$lt_ac_sed
4472 { echo "$as_me:$LINENO: result: $SED" >&5
4473 echo "${ECHO_T}$SED" >&6; }
4475 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4476 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_GREP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 # Extract the first word of "grep ggrep" to use in msg output
4481 if test -z "$GREP"; then
4482 set dummy grep ggrep; ac_prog_name=$2
4483 if test "${ac_cv_path_GREP+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 ac_path_GREP_found=false
4487 # Loop through the user's path and test for each of PROGNAME-LIST
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4492 test -z "$as_dir" && as_dir=.
4493 for ac_prog in grep ggrep; do
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4496 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4497 # Check for GNU ac_path_GREP and select it if it is found.
4498 # Check for GNU $ac_path_GREP
4499 case `"$ac_path_GREP" --version 2>&1` in
4501 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4504 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4507 cat "conftest.in" "conftest.in" >"conftest.tmp"
4508 mv "conftest.tmp" "conftest.in"
4509 cp "conftest.in" "conftest.nl"
4510 echo 'GREP' >> "conftest.nl"
4511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513 ac_count=`expr $ac_count + 1`
4514 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515 # Best one so far, save it but keep looking for a better one
4516 ac_cv_path_GREP="$ac_path_GREP"
4517 ac_path_GREP_max=$ac_count
4519 # 10*(2^10) chars as input seems more than enough
4520 test $ac_count -gt 10 && break
4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 $ac_path_GREP_found && break 3
4536 GREP="$ac_cv_path_GREP"
4537 if test -z "$GREP"; then
4538 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4539 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4540 { (exit 1); exit 1; }; }
4544 ac_cv_path_GREP=$GREP
4549 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4550 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4551 GREP="$ac_cv_path_GREP"
4554 { echo "$as_me:$LINENO: checking for egrep" >&5
4555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4556 if test "${ac_cv_path_EGREP+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4560 then ac_cv_path_EGREP="$GREP -E"
4562 # Extract the first word of "egrep" to use in msg output
4563 if test -z "$EGREP"; then
4564 set dummy egrep; ac_prog_name=$2
4565 if test "${ac_cv_path_EGREP+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 ac_path_EGREP_found=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 test -z "$as_dir" && as_dir=.
4575 for ac_prog in egrep; do
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4578 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4579 # Check for GNU ac_path_EGREP and select it if it is found.
4580 # Check for GNU $ac_path_EGREP
4581 case `"$ac_path_EGREP" --version 2>&1` in
4583 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4586 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4589 cat "conftest.in" "conftest.in" >"conftest.tmp"
4590 mv "conftest.tmp" "conftest.in"
4591 cp "conftest.in" "conftest.nl"
4592 echo 'EGREP' >> "conftest.nl"
4593 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595 ac_count=`expr $ac_count + 1`
4596 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4597 # Best one so far, save it but keep looking for a better one
4598 ac_cv_path_EGREP="$ac_path_EGREP"
4599 ac_path_EGREP_max=$ac_count
4601 # 10*(2^10) chars as input seems more than enough
4602 test $ac_count -gt 10 && break
4604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 $ac_path_EGREP_found && break 3
4618 EGREP="$ac_cv_path_EGREP"
4619 if test -z "$EGREP"; then
4620 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4621 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4622 { (exit 1); exit 1; }; }
4626 ac_cv_path_EGREP=$EGREP
4632 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4633 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4634 EGREP="$ac_cv_path_EGREP"
4638 # Check whether --with-gnu-ld was given.
4639 if test "${with_gnu_ld+set}" = set; then
4640 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4646 if test "$GCC" = yes; then
4647 # Check if gcc -print-prog-name=ld gives a path.
4648 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4649 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4652 # gcc leaves a trailing carriage return which upsets mingw
4653 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4655 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4658 # Accept absolute paths.
4660 re_direlt='/[^/][^/]*/\.\./'
4661 # Canonicalize the pathname of ld
4662 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4663 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4664 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4666 test -z "$LD" && LD="$ac_prog"
4669 # If it fails, then pretend we aren't using GCC.
4673 # If it is relative, then search for the first ld in PATH.
4677 elif test "$with_gnu_ld" = yes; then
4678 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4679 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4681 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4682 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4684 if test "${lt_cv_path_LD+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -z "$LD"; then
4688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4689 for ac_dir in $PATH; do
4691 test -z "$ac_dir" && ac_dir=.
4692 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4693 lt_cv_path_LD="$ac_dir/$ac_prog"
4694 # Check to see if the program is GNU ld. I'd rather use --version,
4695 # but apparently some variants of GNU ld only accept -v.
4696 # Break only if it was the GNU/non-GNU ld that we prefer.
4697 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4698 *GNU* | *'with BFD'*)
4699 test "$with_gnu_ld" != no && break
4702 test "$with_gnu_ld" != yes && break
4709 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4714 if test -n "$LD"; then
4715 { echo "$as_me:$LINENO: result: $LD" >&5
4716 echo "${ECHO_T}$LD" >&6; }
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4721 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4722 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4723 { (exit 1); exit 1; }; }
4724 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4725 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4726 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4730 case `$LD -v 2>&1 </dev/null` in
4731 *GNU* | *'with BFD'*)
4732 lt_cv_prog_gnu_ld=yes
4735 lt_cv_prog_gnu_ld=no
4739 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4740 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4741 with_gnu_ld=$lt_cv_prog_gnu_ld
4744 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4745 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4746 if test "${lt_cv_ld_reload_flag+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 lt_cv_ld_reload_flag='-r'
4751 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4752 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4753 reload_flag=$lt_cv_ld_reload_flag
4754 case $reload_flag in
4756 *) reload_flag=" $reload_flag" ;;
4758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4761 if test "$GCC" = yes; then
4762 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4769 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4770 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4771 if test "${lt_cv_path_NM+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 if test -n "$NM"; then
4775 # Let the user override the test.
4778 lt_nm_to_check="${ac_tool_prefix}nm"
4779 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4780 lt_nm_to_check="$lt_nm_to_check nm"
4782 for lt_tmp_nm in $lt_nm_to_check; do
4783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4784 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4786 test -z "$ac_dir" && ac_dir=.
4787 tmp_nm="$ac_dir/$lt_tmp_nm"
4788 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4789 # Check to see if the nm accepts a BSD-compat flag.
4790 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4791 # nm: unknown option "B" ignored
4792 # Tru64's nm complains that /dev/null is an invalid object file
4793 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4794 */dev/null* | *'Invalid file or object type'*)
4795 lt_cv_path_NM="$tmp_nm -B"
4799 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4801 lt_cv_path_NM="$tmp_nm -p"
4805 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4806 continue # so that we can try to find one that supports BSD flags
4815 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4818 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4819 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4822 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4823 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4825 if test "$LN_S" = "ln -s"; then
4826 { echo "$as_me:$LINENO: result: yes" >&5
4827 echo "${ECHO_T}yes" >&6; }
4829 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4830 echo "${ECHO_T}no, using $LN_S" >&6; }
4833 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4834 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4835 if test "${lt_cv_deplibs_check_method+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 lt_cv_file_magic_cmd='$MAGIC_CMD'
4839 lt_cv_file_magic_test_file=
4840 lt_cv_deplibs_check_method='unknown'
4841 # Need to set the preceding variable on all platforms that support
4842 # interlibrary dependencies.
4843 # 'none' -- dependencies not supported.
4844 # `unknown' -- same as none, but documents that we really don't know.
4845 # 'pass_all' -- all dependencies passed with no checks.
4846 # 'test_compile' -- check by making test program.
4847 # 'file_magic [[regex]]' -- check by looking for files in library path
4848 # which responds to the $file_magic_cmd with a given extended regex.
4849 # If you have `file' or equivalent on your system and you're not sure
4850 # whether `pass_all' will *always* work, you probably want this one.
4854 lt_cv_deplibs_check_method=pass_all
4858 lt_cv_deplibs_check_method=pass_all
4862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4863 lt_cv_file_magic_cmd='/usr/bin/file -L'
4864 lt_cv_file_magic_test_file=/shlib/libc.so
4868 # func_win32_libid is a shell function defined in ltmain.sh
4869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4870 lt_cv_file_magic_cmd='func_win32_libid'
4874 # Base MSYS/MinGW do not provide the 'file' command needed by
4875 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4876 # unless we find 'file', for example because we are cross-compiling.
4877 if ( file / ) >/dev/null 2>&1; then
4878 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4879 lt_cv_file_magic_cmd='func_win32_libid'
4881 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4882 lt_cv_file_magic_cmd='$OBJDUMP -f'
4886 darwin* | rhapsody*)
4887 lt_cv_deplibs_check_method=pass_all
4890 freebsd* | dragonfly*)
4891 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4894 # Not sure whether the presence of OpenBSD here was a mistake.
4895 # Let's accept both of them until this is cleared up.
4896 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4897 lt_cv_file_magic_cmd=/usr/bin/file
4898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4902 lt_cv_deplibs_check_method=pass_all
4907 lt_cv_deplibs_check_method=pass_all
4910 hpux10.20* | hpux11*)
4911 lt_cv_file_magic_cmd=/usr/bin/file
4914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4915 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4918 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]'
4919 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4923 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4929 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4933 irix5* | irix6* | nonstopux*)
4935 *-32|*"-32 ") libmagic=32-bit;;
4936 *-n32|*"-n32 ") libmagic=N32;;
4937 *-64|*"-64 ") libmagic=64-bit;;
4938 *) libmagic=never-match;;
4940 lt_cv_deplibs_check_method=pass_all
4943 # This must be Linux ELF.
4944 linux* | k*bsd*-gnu)
4945 lt_cv_deplibs_check_method=pass_all
4948 netbsd* | netbsdelf*-gnu)
4949 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4958 lt_cv_file_magic_cmd=/usr/bin/file
4959 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4963 lt_cv_deplibs_check_method=unknown
4967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4974 osf3* | osf4* | osf5*)
4975 lt_cv_deplibs_check_method=pass_all
4979 lt_cv_deplibs_check_method=pass_all
4983 lt_cv_deplibs_check_method=pass_all
4987 case $host_vendor in
4989 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]'
4990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4993 lt_cv_deplibs_check_method=pass_all
4996 lt_cv_file_magic_cmd='/bin/file'
4997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5000 lt_cv_file_magic_cmd='/bin/file'
5001 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5002 lt_cv_file_magic_test_file=/lib/libc.so
5005 lt_cv_deplibs_check_method=pass_all
5008 lt_cv_deplibs_check_method=pass_all
5013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5014 lt_cv_deplibs_check_method=pass_all
5019 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5020 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5021 file_magic_cmd=$lt_cv_file_magic_cmd
5022 deplibs_check_method=$lt_cv_deplibs_check_method
5023 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5028 # If no C compiler was specified, use CC.
5031 # If no C compiler flags were specified, use CFLAGS.
5032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5034 # Allow CC to be a program name with arguments.
5038 # Check whether --enable-libtool-lock was given.
5039 if test "${enable_libtool_lock+set}" = set; then
5040 enableval=$enable_libtool_lock;
5043 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5045 # Some flags need to be propagated to the compiler or linker for good
5049 # Find out which ABI we are using.
5050 echo 'int i;' > conftest.$ac_ext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; then
5056 case `/usr/bin/file conftest.$ac_objext` in
5068 # Find out which ABI we are using.
5069 echo '#line 5069 "configure"' > conftest.$ac_ext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; then
5075 if test "$lt_cv_prog_gnu_ld" = yes; then
5076 case `/usr/bin/file conftest.$ac_objext` in
5078 LD="${LD-ld} -melf32bsmip"
5081 LD="${LD-ld} -melf32bmipn32"
5084 LD="${LD-ld} -melf64bmip"
5088 case `/usr/bin/file conftest.$ac_objext` in
5104 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5105 s390*-*linux*|sparc*-*linux*)
5106 # Find out which ABI we are using.
5107 echo 'int i;' > conftest.$ac_ext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5109 (eval $ac_compile) 2>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; then
5113 case `/usr/bin/file conftest.o` in
5116 x86_64-*kfreebsd*-gnu)
5117 LD="${LD-ld} -m elf_i386_fbsd"
5120 LD="${LD-ld} -m elf_i386"
5122 ppc64-*linux*|powerpc64-*linux*)
5123 LD="${LD-ld} -m elf32ppclinux"
5126 LD="${LD-ld} -m elf_s390"
5129 LD="${LD-ld} -m elf32_sparc"
5135 x86_64-*kfreebsd*-gnu)
5136 LD="${LD-ld} -m elf_x86_64_fbsd"
5139 LD="${LD-ld} -m elf_x86_64"
5141 ppc*-*linux*|powerpc*-*linux*)
5142 LD="${LD-ld} -m elf64ppc"
5145 LD="${LD-ld} -m elf64_s390"
5148 LD="${LD-ld} -m elf64_sparc"
5158 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5159 SAVE_CFLAGS="$CFLAGS"
5160 CFLAGS="$CFLAGS -belf"
5161 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5162 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5163 if test "${lt_cv_cc_needs_belf+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5187 rm -f conftest.$ac_objext conftest$ac_exeext
5188 if { (ac_try="$ac_link"
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_link") 2>conftest.er1
5196 grep -v '^ *+' conftest.er1 >conftest.err
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest$ac_exeext &&
5204 $as_test_x conftest$ac_exeext; then
5205 lt_cv_cc_needs_belf=yes
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 lt_cv_cc_needs_belf=no
5213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5214 conftest$ac_exeext conftest.$ac_ext
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5223 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5226 CFLAGS="$SAVE_CFLAGS"
5230 # Find out which ABI we are using.
5231 echo 'int i;' > conftest.$ac_ext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; then
5237 case `/usr/bin/file conftest.o` in
5239 case $lt_cv_prog_gnu_ld in
5240 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5242 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5256 need_locks="$enable_libtool_lock"
5260 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5261 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5262 if test "${ac_cv_header_stdc+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5284 rm -f conftest.$ac_objext
5285 if { (ac_try="$ac_compile"
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compile") 2>conftest.er1
5293 grep -v '^ *+' conftest.er1 >conftest.err
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && {
5298 test -z "$ac_c_werror_flag" ||
5299 test ! -s conftest.err
5300 } && test -s conftest.$ac_objext; then
5301 ac_cv_header_stdc=yes
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 ac_cv_header_stdc=no
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 if test $ac_cv_header_stdc = yes; then
5312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "memchr" >/dev/null 2>&1; then
5326 ac_cv_header_stdc=no
5332 if test $ac_cv_header_stdc = yes; then
5333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344 $EGREP "free" >/dev/null 2>&1; then
5347 ac_cv_header_stdc=no
5353 if test $ac_cv_header_stdc = yes; then
5354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5355 if test "$cross_compiling" = yes; then
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5366 #if ((' ' & 0x0FF) == 0x020)
5367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5370 # define ISLOWER(c) \
5371 (('a' <= (c) && (c) <= 'i') \
5372 || ('j' <= (c) && (c) <= 'r') \
5373 || ('s' <= (c) && (c) <= 'z'))
5374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5382 for (i = 0; i < 256; i++)
5383 if (XOR (islower (i), ISLOWER (i))
5384 || toupper (i) != TOUPPER (i))
5389 rm -f conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_link") 2>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5400 { (case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_try") 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5411 echo "$as_me: program exited with status $ac_status" >&5
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_cv_header_stdc=no
5418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5424 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5425 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5426 if test $ac_cv_header_stdc = yes; then
5428 cat >>confdefs.h <<\_ACEOF
5429 #define STDC_HEADERS 1
5434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5445 inttypes.h stdint.h unistd.h
5447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 $ac_includes_default
5461 #include <$ac_header>
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 eval "$as_ac_Header=yes"
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 eval "$as_ac_Header=no"
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_res=`eval echo '${'$as_ac_Header'}'`
5491 { echo "$as_me:$LINENO: result: $ac_res" >&5
5492 echo "${ECHO_T}$ac_res" >&6; }
5493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5494 cat >>confdefs.h <<_ACEOF
5495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5504 for ac_header in dlfcn.h
5506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 ac_res=`eval echo '${'$as_ac_Header'}'`
5514 { echo "$as_me:$LINENO: result: $ac_res" >&5
5515 echo "${ECHO_T}$ac_res" >&6; }
5517 # Is the header compilable?
5518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 #include <$ac_header>
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_compile") 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && {
5543 test -z "$ac_c_werror_flag" ||
5544 test ! -s conftest.err
5545 } && test -s conftest.$ac_objext; then
5546 ac_header_compiler=yes
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 ac_header_compiler=no
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5556 echo "${ECHO_T}$ac_header_compiler" >&6; }
5558 # Is the header present?
5559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <$ac_header>
5569 if { (ac_try="$ac_cpp conftest.$ac_ext"
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } >/dev/null && {
5582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5585 ac_header_preproc=yes
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_header_preproc=no
5593 rm -f conftest.err conftest.$ac_ext
5594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5595 echo "${ECHO_T}$ac_header_preproc" >&6; }
5597 # So? What about this header?
5598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5604 ac_header_preproc=yes
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5620 ## ------------------------------------ ##
5621 ## Report this to opensource@google.com ##
5622 ## ------------------------------------ ##
5624 ) | sed "s/^/$as_me: WARNING: /" >&2
5627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 eval "$as_ac_Header=\$ac_header_preproc"
5634 ac_res=`eval echo '${'$as_ac_Header'}'`
5635 { echo "$as_me:$LINENO: result: $ac_res" >&5
5636 echo "${ECHO_T}$ac_res" >&6; }
5639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640 cat >>confdefs.h <<_ACEOF
5641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5650 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5651 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5652 (test "X$CXX" != "Xg++"))) ; then
5654 ac_cpp='$CXXCPP $CPPFLAGS'
5655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5658 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5659 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5660 if test -z "$CXXCPP"; then
5661 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 # Double quotes because CXXCPP needs to be expanded
5665 for CXXCPP in "$CXX -E" "/lib/cpp"
5668 for ac_cxx_preproc_warn_flag in '' yes
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5683 # include <limits.h>
5685 # include <assert.h>
5689 if { (ac_try="$ac_cpp conftest.$ac_ext"
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } >/dev/null && {
5702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5703 test ! -s conftest.err
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 # Broken: fails on valid input.
5714 rm -f conftest.err conftest.$ac_ext
5716 # OK, works on sane cases. Now check whether nonexistent headers
5717 # can be detected and how.
5718 cat >conftest.$ac_ext <<_ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #include <ac_nonexistent.h>
5726 if { (ac_try="$ac_cpp conftest.$ac_ext"
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } >/dev/null && {
5739 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5740 test ! -s conftest.err
5742 # Broken: success on invalid input.
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 # Passes both tests.
5753 rm -f conftest.err conftest.$ac_ext
5756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5757 rm -f conftest.err conftest.$ac_ext
5758 if $ac_preproc_ok; then
5763 ac_cv_prog_CXXCPP=$CXXCPP
5766 CXXCPP=$ac_cv_prog_CXXCPP
5768 ac_cv_prog_CXXCPP=$CXXCPP
5770 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5771 echo "${ECHO_T}$CXXCPP" >&6; }
5773 for ac_cxx_preproc_warn_flag in '' yes
5775 # Use a header file that comes with gcc, so configuring glibc
5776 # with a fresh cross-compiler works.
5777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778 # <limits.h> exists even on freestanding compilers.
5779 # On the NeXT, cc -E runs the code through the compiler's parser,
5780 # not just through cpp. "Syntax error" is here to catch this case.
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5788 # include <limits.h>
5790 # include <assert.h>
5794 if { (ac_try="$ac_cpp conftest.$ac_ext"
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5802 grep -v '^ *+' conftest.er1 >conftest.err
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } >/dev/null && {
5807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5808 test ! -s conftest.err
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 # Broken: fails on valid input.
5819 rm -f conftest.err conftest.$ac_ext
5821 # OK, works on sane cases. Now check whether nonexistent headers
5822 # can be detected and how.
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5831 if { (ac_try="$ac_cpp conftest.$ac_ext"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null && {
5844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5845 test ! -s conftest.err
5847 # Broken: success on invalid input.
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 # Passes both tests.
5858 rm -f conftest.err conftest.$ac_ext
5861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5862 rm -f conftest.err conftest.$ac_ext
5863 if $ac_preproc_ok; then
5866 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5867 See \`config.log' for more details." >&5
5868 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5869 See \`config.log' for more details." >&2;}
5870 { (exit 1); exit 1; }; }
5874 ac_cpp='$CXXCPP $CPPFLAGS'
5875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5884 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5886 if test -n "$ac_tool_prefix"; then
5887 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
5889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893 if test "${ac_cv_prog_F77+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 if test -n "$F77"; then
5897 ac_cv_prog_F77="$F77" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 if test -n "$F77"; then
5918 { echo "$as_me:$LINENO: result: $F77" >&5
5919 echo "${ECHO_T}$F77" >&6; }
5921 { echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6; }
5926 test -n "$F77" && break
5929 if test -z "$F77"; then
5931 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
5933 # Extract the first word of "$ac_prog", so it can be a program name with args.
5934 set dummy $ac_prog; ac_word=$2
5935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5937 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 if test -n "$ac_ct_F77"; then
5941 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_ac_ct_F77="$ac_prog"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5961 if test -n "$ac_ct_F77"; then
5962 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5963 echo "${ECHO_T}$ac_ct_F77" >&6; }
5965 { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5970 test -n "$ac_ct_F77" && break
5973 if test "x$ac_ct_F77" = x; then
5976 case $cross_compiling:$ac_tool_warned in
5978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5979 whose name does not start with the host triplet. If you think this
5980 configuration is useful to you, please write to autoconf@gnu.org." >&5
5981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5982 whose name does not start with the host triplet. If you think this
5983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5984 ac_tool_warned=yes ;;
5991 # Provide some information about the compiler.
5992 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5993 ac_compiler=`set X $ac_compile; echo $2`
5994 { (ac_try="$ac_compiler --version >&5"
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compiler --version >&5") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }
6004 { (ac_try="$ac_compiler -v >&5"
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compiler -v >&5") 2>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }
6014 { (ac_try="$ac_compiler -V >&5"
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_compiler -V >&5") 2>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }
6026 # If we don't use `.F' as extension, the preprocessor is not run on the
6027 # input file. (Note that this only needs to work for GNU compilers.)
6030 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6031 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6032 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_f77_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6072 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6073 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6075 ac_test_FFLAGS=${FFLAGS+set}
6076 ac_save_FFLAGS=$FFLAGS
6078 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6079 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_f77_g+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 cat >conftest.$ac_ext <<_ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_f77_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
6106 ac_cv_prog_f77_g=yes
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6118 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6119 if test "$ac_test_FFLAGS" = set; then
6120 FFLAGS=$ac_save_FFLAGS
6121 elif test $ac_cv_prog_f77_g = yes; then
6122 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6128 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135 G77=`test $ac_compiler_gnu = yes && echo yes`
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6145 # find the maximum length of command line arguments
6146 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6147 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6148 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 # On DJGPP, this test can blow up pretty badly due to problems in libc
6157 # (any single argument exceeding 2000 bytes causes a buffer overrun
6158 # during glob expansion). Even if it were fixed, the result of this
6159 # check would be larger than it should be.
6160 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6164 # Under GNU Hurd, this test is not required because there is
6165 # no limit to the length of command line arguments.
6166 # Libtool will interpret -1 as no limit whatsoever
6167 lt_cv_sys_max_cmd_len=-1;
6171 # On Win9x/ME, this test blows up -- it succeeds, but takes
6172 # about 5 minutes as the teststring grows exponentially.
6173 # Worse, since 9x/ME are not pre-emptively multitasking,
6174 # you end up with a "frozen" computer, even though with patience
6175 # the test eventually succeeds (with a max line length of 256k).
6176 # Instead, let's just punt: use the minimum linelength reported by
6177 # all of the supported platforms: 8192 (on NT/2K/XP).
6178 lt_cv_sys_max_cmd_len=8192;
6182 # On AmigaOS with pdksh, this test takes hours, literally.
6183 # So we just punt and use a minimum line length of 8192.
6184 lt_cv_sys_max_cmd_len=8192;
6187 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6188 # This has been around since 386BSD, at least. Likely further.
6189 if test -x /sbin/sysctl; then
6190 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6191 elif test -x /usr/sbin/sysctl; then
6192 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6194 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6196 # And add a safety zone
6197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6202 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6203 lt_cv_sys_max_cmd_len=196608
6207 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6208 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6209 # nice to cause kernel panics so lets avoid the loop below.
6210 # First set a reasonable default.
6211 lt_cv_sys_max_cmd_len=16384
6213 if test -x /sbin/sysconfig; then
6214 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6215 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6220 lt_cv_sys_max_cmd_len=102400
6222 sysv5* | sco5v6* | sysv4.2uw2*)
6223 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6224 if test -n "$kargmax"; then
6225 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6227 lt_cv_sys_max_cmd_len=32768
6231 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6232 if test -n "$lt_cv_sys_max_cmd_len"; then
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6237 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6238 = "XX$teststring") >/dev/null 2>&1 &&
6239 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6240 lt_cv_sys_max_cmd_len=$new_result &&
6241 test $i != 17 # 1/2 MB should be enough
6244 teststring=$teststring$teststring
6247 # Add a significant safety factor because C++ compilers can tack on massive
6248 # amounts of additional arguments before passing them to the linker.
6249 # It appears as though 1/2 is a usable value.
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6257 if test -n $lt_cv_sys_max_cmd_len ; then
6258 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6259 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6261 { echo "$as_me:$LINENO: result: none" >&5
6262 echo "${ECHO_T}none" >&6; }
6269 # Check for command to grab the raw symbol name followed by C symbol from nm.
6270 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6271 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 # These are sane defaults that work on at least a few old systems.
6277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6279 # Character class describing NM global symbol codes.
6280 symcode='[BCDEGRST]'
6282 # Regexp to match symbols that can be accessed directly from C.
6283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6285 # Transform an extracted symbol line into a proper C declaration
6286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6288 # Transform an extracted symbol line into symbol name and symbol address
6289 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'"
6291 # Define system-specific variables.
6296 cygwin* | mingw* | pw32*)
6297 symcode='[ABCDGISTW]'
6299 hpux*) # Its linker distinguishes data from code symbols
6300 if test "$host_cpu" = ia64; then
6301 symcode='[ABCDEGRST]'
6303 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
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 linux* | k*bsd*-gnu)
6307 if test "$host_cpu" = ia64; then
6308 symcode='[ABCDGIRSTW]'
6309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6310 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'"
6314 symcode='[BCDEGRST]'
6317 symcode='[BCDEGQRST]'
6328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6336 # Handle CRLF in mingw tool chain
6340 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6344 # If we're using GNU nm, then use its standard symbol codes.
6345 case `$NM -V 2>&1` in
6346 *GNU* | *'with BFD'*)
6347 symcode='[ABCDGIRSTW]' ;;
6350 # Try without a prefix undercore, then with it.
6351 for ac_symprfx in "" "_"; do
6353 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6354 symxfrm="\\1 $ac_symprfx\\2 \\2"
6356 # Write the raw and C identifiers.
6357 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6359 # Check to see that the pipe works correctly.
6363 cat > conftest.$ac_ext <<EOF
6368 void nm_test_func(){}
6372 int main(){nm_test_var='a';nm_test_func();return(0);}
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; then
6380 # Now try to grab the symbols.
6382 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6383 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && test -s "$nlist"; then
6387 # Try sorting and uniquifying the output.
6388 if sort "$nlist" | uniq > "$nlist"T; then
6389 mv -f "$nlist"T "$nlist"
6394 # Make sure that we snagged all the symbols we need.
6395 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6396 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6397 cat <<EOF > conftest.$ac_ext
6403 # Now generate the symbol file.
6404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6406 cat <<EOF >> conftest.$ac_ext
6407 #if defined (__STDC__) && __STDC__
6408 # define lt_ptr_t void *
6410 # define lt_ptr_t char *
6414 /* The mapping between symbol names and symbols. */
6419 lt_preloaded_symbols[] =
6422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6423 cat <<\EOF >> conftest.$ac_ext
6431 # Now try linking the two files.
6432 mv conftest.$ac_objext conftstm.$ac_objext
6433 lt_save_LIBS="$LIBS"
6434 lt_save_CFLAGS="$CFLAGS"
6435 LIBS="conftstm.$ac_objext"
6436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438 (eval $ac_link) 2>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6444 LIBS="$lt_save_LIBS"
6445 CFLAGS="$lt_save_CFLAGS"
6447 echo "cannot find nm_test_func in $nlist" >&5
6450 echo "cannot find nm_test_var in $nlist" >&5
6453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6456 echo "$progname: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 rm -rf conftest* conftst*
6461 # Do not use the global_symbol_pipe unless it works.
6462 if test "$pipe_works" = yes; then
6465 lt_cv_sys_global_symbol_pipe=
6471 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6472 lt_cv_sys_global_symbol_to_cdecl=
6474 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6475 { echo "$as_me:$LINENO: result: failed" >&5
6476 echo "${ECHO_T}failed" >&6; }
6478 { echo "$as_me:$LINENO: result: ok" >&5
6479 echo "${ECHO_T}ok" >&6; }
6482 { echo "$as_me:$LINENO: checking for objdir" >&5
6483 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6484 if test "${lt_cv_objdir+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 rm -f .libs 2>/dev/null
6488 mkdir .libs 2>/dev/null
6489 if test -d .libs; then
6492 # MS-DOS does not allow filenames that begin with a dot.
6495 rmdir .libs 2>/dev/null
6497 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6498 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6499 objdir=$lt_cv_objdir
6507 # AIX sometimes has problems with the GCC collect2 program. For some
6508 # reason, if we set the COLLECT_NAMES environment variable, the problems
6509 # vanish in a puff of smoke.
6510 if test "X${COLLECT_NAMES+set}" != Xset; then
6512 export COLLECT_NAMES
6517 # Sed substitution that helps us do robust quoting. It backslashifies
6518 # metacharacters that are still active within double-quoted strings.
6519 Xsed='sed -e 1s/^X//'
6520 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6522 # Same as above, but do not quote variable references.
6523 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6525 # Sed substitution to delay expansion of an escaped shell variable in a
6526 # double_quote_subst'ed string.
6527 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6529 # Sed substitution to avoid accidental globbing in evaled expressions
6530 no_glob_subst='s/\*/\\\*/g'
6536 default_ofile=libtool
6537 can_build_shared=yes
6539 # All known linkers require a `.a' archive for static linking (except MSVC,
6540 # which needs '.lib').
6542 ltmain="$ac_aux_dir/ltmain.sh"
6543 ofile="$default_ofile"
6544 with_gnu_ld="$lt_cv_prog_gnu_ld"
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_AR+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 if test -n "$AR"; then
6555 ac_cv_prog_AR="$AR" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_AR="${ac_tool_prefix}ar"
6565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 if test -n "$AR"; then
6576 { echo "$as_me:$LINENO: result: $AR" >&5
6577 echo "${ECHO_T}$AR" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6585 if test -z "$ac_cv_prog_AR"; then
6587 # Extract the first word of "ar", so it can be a program name with args.
6588 set dummy ar; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 if test -n "$ac_ct_AR"; then
6595 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_ac_ct_AR="ar"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6615 if test -n "$ac_ct_AR"; then
6616 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6617 echo "${ECHO_T}$ac_ct_AR" >&6; }
6619 { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6623 if test "x$ac_ct_AR" = x; then
6626 case $cross_compiling:$ac_tool_warned in
6628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet. If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&5
6631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet. If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6634 ac_tool_warned=yes ;;
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647 if test "${ac_cv_prog_RANLIB+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 if test -n "$RANLIB"; then
6651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 RANLIB=$ac_cv_prog_RANLIB
6671 if test -n "$RANLIB"; then
6672 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6673 echo "${ECHO_T}$RANLIB" >&6; }
6675 { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6681 if test -z "$ac_cv_prog_RANLIB"; then
6682 ac_ct_RANLIB=$RANLIB
6683 # Extract the first word of "ranlib", so it can be a program name with args.
6684 set dummy ranlib; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 if test -n "$ac_ct_RANLIB"; then
6691 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_ac_ct_RANLIB="ranlib"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6711 if test -n "$ac_ct_RANLIB"; then
6712 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6713 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6715 { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6719 if test "x$ac_ct_RANLIB" = x; then
6722 case $cross_compiling:$ac_tool_warned in
6724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6725 whose name does not start with the host triplet. If you think this
6726 configuration is useful to you, please write to autoconf@gnu.org." >&5
6727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6728 whose name does not start with the host triplet. If you think this
6729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6730 ac_tool_warned=yes ;;
6732 RANLIB=$ac_ct_RANLIB
6735 RANLIB="$ac_cv_prog_RANLIB"
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}strip; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_prog_STRIP+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 if test -n "$STRIP"; then
6747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 STRIP=$ac_cv_prog_STRIP
6767 if test -n "$STRIP"; then
6768 { echo "$as_me:$LINENO: result: $STRIP" >&5
6769 echo "${ECHO_T}$STRIP" >&6; }
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6777 if test -z "$ac_cv_prog_STRIP"; then
6779 # Extract the first word of "strip", so it can be a program name with args.
6780 set dummy strip; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 if test -n "$ac_ct_STRIP"; then
6787 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_ac_ct_STRIP="strip"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6807 if test -n "$ac_ct_STRIP"; then
6808 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6809 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6815 if test "x$ac_ct_STRIP" = x; then
6818 case $cross_compiling:$ac_tool_warned in
6820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6821 whose name does not start with the host triplet. If you think this
6822 configuration is useful to you, please write to autoconf@gnu.org." >&5
6823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6824 whose name does not start with the host triplet. If you think this
6825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6826 ac_tool_warned=yes ;;
6831 STRIP="$ac_cv_prog_STRIP"
6836 old_CFLAGS="$CFLAGS"
6838 # Set sane defaults for various variables
6839 test -z "$AR" && AR=ar
6840 test -z "$AR_FLAGS" && AR_FLAGS=cru
6841 test -z "$AS" && AS=as
6842 test -z "$CC" && CC=cc
6843 test -z "$LTCC" && LTCC=$CC
6844 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6845 test -z "$DLLTOOL" && DLLTOOL=dlltool
6846 test -z "$LD" && LD=ld
6847 test -z "$LN_S" && LN_S="ln -s"
6848 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6849 test -z "$NM" && NM=nm
6850 test -z "$SED" && SED=sed
6851 test -z "$OBJDUMP" && OBJDUMP=objdump
6852 test -z "$RANLIB" && RANLIB=:
6853 test -z "$STRIP" && STRIP=:
6854 test -z "$ac_objext" && ac_objext=o
6856 # Determine commands to create old-style static archives.
6857 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6858 old_postinstall_cmds='chmod 644 $oldlib'
6859 old_postuninstall_cmds=
6861 if test -n "$RANLIB"; then
6864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6870 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6873 for cc_temp in $compiler""; do
6875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6881 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6884 # Only perform the check for file, if the check method requires it
6885 case $deplibs_check_method in
6887 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6888 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6889 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6890 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6898 lt_save_MAGIC_CMD="$MAGIC_CMD"
6899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6901 for ac_dir in $ac_dummy; do
6903 test -z "$ac_dir" && ac_dir=.
6904 if test -f $ac_dir/${ac_tool_prefix}file; then
6905 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6906 if test -n "$file_magic_test_file"; then
6907 case $deplibs_check_method in
6909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6912 $EGREP "$file_magic_regex" > /dev/null; then
6917 *** Warning: the command libtool uses to detect shared libraries,
6918 *** $file_magic_cmd, produces output that libtool cannot recognize.
6919 *** The result is that libtool may fail to recognize shared libraries
6920 *** as such. This will affect the creation of libtool libraries that
6921 *** depend on shared libraries, but programs linked with such libtool
6922 *** libraries will work regardless of this problem. Nevertheless, you
6923 *** may want to report the problem to your system manager and/or to
6924 *** bug-libtool@gnu.org
6934 MAGIC_CMD="$lt_save_MAGIC_CMD"
6939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6940 if test -n "$MAGIC_CMD"; then
6941 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6942 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6944 { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6948 if test -z "$lt_cv_path_MAGIC_CMD"; then
6949 if test -n "$ac_tool_prefix"; then
6950 { echo "$as_me:$LINENO: checking for file" >&5
6951 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6952 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6960 lt_save_MAGIC_CMD="$MAGIC_CMD"
6961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6962 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6963 for ac_dir in $ac_dummy; do
6965 test -z "$ac_dir" && ac_dir=.
6966 if test -f $ac_dir/file; then
6967 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6968 if test -n "$file_magic_test_file"; then
6969 case $deplibs_check_method in
6971 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6973 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6974 $EGREP "$file_magic_regex" > /dev/null; then
6979 *** Warning: the command libtool uses to detect shared libraries,
6980 *** $file_magic_cmd, produces output that libtool cannot recognize.
6981 *** The result is that libtool may fail to recognize shared libraries
6982 *** as such. This will affect the creation of libtool libraries that
6983 *** depend on shared libraries, but programs linked with such libtool
6984 *** libraries will work regardless of this problem. Nevertheless, you
6985 *** may want to report the problem to your system manager and/or to
6986 *** bug-libtool@gnu.org
6996 MAGIC_CMD="$lt_save_MAGIC_CMD"
7001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7002 if test -n "$MAGIC_CMD"; then
7003 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7004 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7021 rhapsody* | darwin*)
7022 if test -n "$ac_tool_prefix"; then
7023 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 if test -n "$DSYMUTIL"; then
7031 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7051 if test -n "$DSYMUTIL"; then
7052 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7053 echo "${ECHO_T}$DSYMUTIL" >&6; }
7055 { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7061 if test -z "$ac_cv_prog_DSYMUTIL"; then
7062 ac_ct_DSYMUTIL=$DSYMUTIL
7063 # Extract the first word of "dsymutil", so it can be a program name with args.
7064 set dummy dsymutil; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 if test -n "$ac_ct_DSYMUTIL"; then
7071 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7091 if test -n "$ac_ct_DSYMUTIL"; then
7092 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7093 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7099 if test "x$ac_ct_DSYMUTIL" = x; then
7102 case $cross_compiling:$ac_tool_warned in
7104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&5
7107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108 whose name does not start with the host triplet. If you think this
7109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110 ac_tool_warned=yes ;;
7112 DSYMUTIL=$ac_ct_DSYMUTIL
7115 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$NMEDIT"; then
7127 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 NMEDIT=$ac_cv_prog_NMEDIT
7147 if test -n "$NMEDIT"; then
7148 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7149 echo "${ECHO_T}$NMEDIT" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7157 if test -z "$ac_cv_prog_NMEDIT"; then
7158 ac_ct_NMEDIT=$NMEDIT
7159 # Extract the first word of "nmedit", so it can be a program name with args.
7160 set dummy nmedit; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 if test -n "$ac_ct_NMEDIT"; then
7167 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7187 if test -n "$ac_ct_NMEDIT"; then
7188 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7189 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7195 if test "x$ac_ct_NMEDIT" = x; then
7198 case $cross_compiling:$ac_tool_warned in
7200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&5
7203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7204 whose name does not start with the host triplet. If you think this
7205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7206 ac_tool_warned=yes ;;
7208 NMEDIT=$ac_ct_NMEDIT
7211 NMEDIT="$ac_cv_prog_NMEDIT"
7215 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7216 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7217 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 lt_cv_apple_cc_single_mod=no
7221 if test -z "${LT_MULTI_MODULE}"; then
7222 # By default we will add the -single_module flag. You can override
7223 # by either setting the environment variable LT_MULTI_MODULE
7224 # non-empty at configure time, or by adding -multi_module to the
7226 echo "int foo(void){return 1;}" > conftest.c
7227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228 -dynamiclib ${wl}-single_module conftest.c
7229 if test -f libconftest.dylib; then
7230 lt_cv_apple_cc_single_mod=yes
7231 rm -rf libconftest.dylib*
7236 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7237 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7238 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7239 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7240 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 lt_cv_ld_exported_symbols_list=no
7244 save_LDFLAGS=$LDFLAGS
7245 echo "_main" > conftest.sym
7246 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (ac_try="$ac_link"
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_link") 2>conftest.er1
7271 grep -v '^ *+' conftest.er1 >conftest.err
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest$ac_exeext &&
7279 $as_test_x conftest$ac_exeext; then
7280 lt_cv_ld_exported_symbols_list=yes
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 lt_cv_ld_exported_symbols_list=no
7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7289 conftest$ac_exeext conftest.$ac_ext
7290 LDFLAGS="$save_LDFLAGS"
7293 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7294 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7296 rhapsody* | darwin1.[0123])
7297 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7299 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7301 # if running on 10.5 or later, the deployment target defaults
7302 # to the OS version, if on x86, and 10.4, the deployment
7303 # target defaults to 10.4. Don't you love it?
7304 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7305 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7310 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7314 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7315 _lt_dar_single_mod='$single_module'
7317 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7318 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7320 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7322 if test "$DSYMUTIL" != ":"; then
7323 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7334 # Check whether --enable-libtool-lock was given.
7335 if test "${enable_libtool_lock+set}" = set; then
7336 enableval=$enable_libtool_lock;
7339 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7342 # Check whether --with-pic was given.
7343 if test "${with_pic+set}" = set; then
7344 withval=$with_pic; pic_mode="$withval"
7349 test -z "$pic_mode" && pic_mode=default
7351 # Use C for the default configuration in the libtool script
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361 # Source file extension for C test sources.
7364 # Object file extension for compiled C test sources.
7368 # Code to be used in simple compile tests
7369 lt_simple_compile_test_code="int some_variable = 0;"
7371 # Code to be used in simple link tests
7372 lt_simple_link_test_code='int main(){return(0);}'
7375 # If no C compiler was specified, use CC.
7378 # If no C compiler flags were specified, use CFLAGS.
7379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7381 # Allow CC to be a program name with arguments.
7385 # save warnings/boilerplate of simple test code
7386 ac_outfile=conftest.$ac_objext
7387 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7389 _lt_compiler_boilerplate=`cat conftest.err`
7392 ac_outfile=conftest.$ac_objext
7393 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7395 _lt_linker_boilerplate=`cat conftest.err`
7400 lt_prog_compiler_no_builtin_flag=
7402 if test "$GCC" = yes; then
7403 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7406 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7407 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 lt_cv_prog_compiler_rtti_exceptions=no
7412 ac_outfile=conftest.$ac_objext
7413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414 lt_compiler_flag="-fno-rtti -fno-exceptions"
7415 # Insert the option either (1) after the last *FLAGS variable, or
7416 # (2) before a word containing "conftest.", or (3) at the end.
7417 # Note that $ac_compile itself does not contain backslashes and begins
7418 # with a dollar sign (not a hyphen), so the echo should work correctly.
7419 # The option is referenced via a variable to avoid confusing sed.
7420 lt_compile=`echo "$ac_compile" | $SED \
7421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423 -e 's:$: $lt_compiler_flag:'`
7424 (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425 (eval "$lt_compile" 2>conftest.err)
7427 cat conftest.err >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 if (exit $ac_status) && test -s "$ac_outfile"; then
7430 # The compiler can only warn and ignore the option if not recognized
7431 # So say no if there are warnings other than the usual output.
7432 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7435 lt_cv_prog_compiler_rtti_exceptions=yes
7441 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7442 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7445 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7452 lt_prog_compiler_wl=
7453 lt_prog_compiler_pic=
7454 lt_prog_compiler_static=
7456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7459 if test "$GCC" = yes; then
7460 lt_prog_compiler_wl='-Wl,'
7461 lt_prog_compiler_static='-static'
7465 # All AIX code is PIC.
7466 if test "$host_cpu" = ia64; then
7467 # AIX 5 now supports IA64 processor
7468 lt_prog_compiler_static='-Bstatic'
7473 # FIXME: we need at least 68020 code to build shared libraries, but
7474 # adding the `-m68020' flag to GCC prevents building anything better,
7476 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7480 # PIC is the default for these OSes.
7483 mingw* | cygwin* | pw32* | os2*)
7484 # This hack is so that the source file can tell whether it is being
7485 # built for inclusion in a dll (and should export symbols for example).
7486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7487 # (--disable-auto-import) libraries
7488 lt_prog_compiler_pic='-DDLL_EXPORT'
7491 darwin* | rhapsody*)
7492 # PIC is the default on this platform
7493 # Common symbols not allowed in MH_DYLIB files
7494 lt_prog_compiler_pic='-fno-common'
7498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7499 # Instead, we relocate shared libraries at runtime.
7503 # Just because we use GCC doesn't mean we suddenly get shared libraries
7504 # on systems that don't support them.
7505 lt_prog_compiler_can_build_shared=no
7510 if test -d /usr/nec; then
7511 lt_prog_compiler_pic=-Kconform_pic
7516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7523 lt_prog_compiler_pic='-fPIC'
7529 lt_prog_compiler_pic='-fPIC'
7533 # PORTME Check for flag to pass linker flags through the system compiler.
7536 lt_prog_compiler_wl='-Wl,'
7537 if test "$host_cpu" = ia64; then
7538 # AIX 5 now supports IA64 processor
7539 lt_prog_compiler_static='-Bstatic'
7541 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7545 # PIC is the default on this platform
7546 # Common symbols not allowed in MH_DYLIB files
7547 case $cc_basename in
7549 lt_prog_compiler_pic='-qnocommon'
7550 lt_prog_compiler_wl='-Wl,'
7555 mingw* | cygwin* | pw32* | os2*)
7556 # This hack is so that the source file can tell whether it is being
7557 # built for inclusion in a dll (and should export symbols for example).
7558 lt_prog_compiler_pic='-DDLL_EXPORT'
7561 hpux9* | hpux10* | hpux11*)
7562 lt_prog_compiler_wl='-Wl,'
7563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7570 lt_prog_compiler_pic='+Z'
7573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7574 lt_prog_compiler_static='${wl}-a ${wl}archive'
7577 irix5* | irix6* | nonstopux*)
7578 lt_prog_compiler_wl='-Wl,'
7579 # PIC (with -KPIC) is the default.
7580 lt_prog_compiler_static='-non_shared'
7584 lt_prog_compiler_pic='-KPIC'
7585 lt_prog_compiler_static='-Bstatic'
7588 linux* | k*bsd*-gnu)
7589 case $cc_basename in
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_pic='-KPIC'
7593 lt_prog_compiler_static='-static'
7595 pgcc* | pgf77* | pgf90* | pgf95*)
7596 # Portland Group compilers (*not* the Pentium gcc compiler,
7597 # which looks to be a dead project)
7598 lt_prog_compiler_wl='-Wl,'
7599 lt_prog_compiler_pic='-fpic'
7600 lt_prog_compiler_static='-Bstatic'
7603 lt_prog_compiler_wl='-Wl,'
7604 # All Alpha code is PIC.
7605 lt_prog_compiler_static='-non_shared'
7608 case `$CC -V 2>&1 | sed 5q` in
7611 lt_prog_compiler_pic='-KPIC'
7612 lt_prog_compiler_static='-Bstatic'
7613 lt_prog_compiler_wl='-Wl,'
7616 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7617 lt_prog_compiler_pic='-KPIC'
7618 lt_prog_compiler_static='-Bstatic'
7619 lt_prog_compiler_wl=''
7626 osf3* | osf4* | osf5*)
7627 lt_prog_compiler_wl='-Wl,'
7628 # All OSF/1 code is PIC.
7629 lt_prog_compiler_static='-non_shared'
7633 lt_prog_compiler_static='-non_shared'
7637 lt_prog_compiler_pic='-KPIC'
7638 lt_prog_compiler_static='-Bstatic'
7639 case $cc_basename in
7641 lt_prog_compiler_wl='-Qoption ld ';;
7643 lt_prog_compiler_wl='-Wl,';;
7648 lt_prog_compiler_wl='-Qoption ld '
7649 lt_prog_compiler_pic='-PIC'
7650 lt_prog_compiler_static='-Bstatic'
7653 sysv4 | sysv4.2uw2* | sysv4.3*)
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_pic='-KPIC'
7656 lt_prog_compiler_static='-Bstatic'
7660 if test -d /usr/nec ;then
7661 lt_prog_compiler_pic='-Kconform_pic'
7662 lt_prog_compiler_static='-Bstatic'
7666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7667 lt_prog_compiler_wl='-Wl,'
7668 lt_prog_compiler_pic='-KPIC'
7669 lt_prog_compiler_static='-Bstatic'
7673 lt_prog_compiler_wl='-Wl,'
7674 lt_prog_compiler_can_build_shared=no
7678 lt_prog_compiler_pic='-pic'
7679 lt_prog_compiler_static='-Bstatic'
7683 lt_prog_compiler_can_build_shared=no
7688 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7689 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7692 # Check to make sure the PIC flag actually works.
7694 if test -n "$lt_prog_compiler_pic"; then
7696 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7697 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7698 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 lt_cv_prog_compiler_pic_works=no
7702 ac_outfile=conftest.$ac_objext
7703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7704 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7705 # Insert the option either (1) after the last *FLAGS variable, or
7706 # (2) before a word containing "conftest.", or (3) at the end.
7707 # Note that $ac_compile itself does not contain backslashes and begins
7708 # with a dollar sign (not a hyphen), so the echo should work correctly.
7709 # The option is referenced via a variable to avoid confusing sed.
7710 lt_compile=`echo "$ac_compile" | $SED \
7711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713 -e 's:$: $lt_compiler_flag:'`
7714 (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
7715 (eval "$lt_compile" 2>conftest.err)
7717 cat conftest.err >&5
7718 echo "$as_me:7718: \$? = $ac_status" >&5
7719 if (exit $ac_status) && test -s "$ac_outfile"; then
7720 # The compiler can only warn and ignore the option if not recognized
7721 # So say no if there are warnings other than the usual output.
7722 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7725 lt_cv_prog_compiler_pic_works=yes
7731 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7732 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7734 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7735 case $lt_prog_compiler_pic in
7737 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7740 lt_prog_compiler_pic=
7741 lt_prog_compiler_can_build_shared=no
7746 # For platforms which do not support PIC, -DPIC is meaningless:
7748 lt_prog_compiler_pic=
7751 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7756 # Check to make sure the static flag actually works.
7758 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7759 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7760 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7761 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 lt_cv_prog_compiler_static_works=no
7765 save_LDFLAGS="$LDFLAGS"
7766 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7767 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7769 # The linker can only warn and ignore the option if not recognized
7770 # So say no if there are warnings
7771 if test -s conftest.err; then
7772 # Append any errors to the config.log.
7773 cat conftest.err 1>&5
7774 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7776 if diff conftest.exp conftest.er2 >/dev/null; then
7777 lt_cv_prog_compiler_static_works=yes
7780 lt_cv_prog_compiler_static_works=yes
7784 LDFLAGS="$save_LDFLAGS"
7787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7788 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7790 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7793 lt_prog_compiler_static=
7797 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7798 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7799 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 lt_cv_prog_compiler_c_o=no
7803 $rm -r conftest 2>/dev/null
7807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7809 lt_compiler_flag="-o out/conftest2.$ac_objext"
7810 # Insert the option either (1) after the last *FLAGS variable, or
7811 # (2) before a word containing "conftest.", or (3) at the end.
7812 # Note that $ac_compile itself does not contain backslashes and begins
7813 # with a dollar sign (not a hyphen), so the echo should work correctly.
7814 lt_compile=`echo "$ac_compile" | $SED \
7815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7817 -e 's:$: $lt_compiler_flag:'`
7818 (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
7819 (eval "$lt_compile" 2>out/conftest.err)
7821 cat out/conftest.err >&5
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7825 # The compiler can only warn and ignore the option if not recognized
7826 # So say no if there are warnings
7827 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7830 lt_cv_prog_compiler_c_o=yes
7835 # SGI C++ compiler will create directory out/ii_files/ for
7836 # template instantiation
7837 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7838 $rm out/* && rmdir out
7844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7845 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7848 hard_links="nottested"
7849 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7850 # do not overwrite the value of need_locks provided by the user
7851 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7852 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7857 ln conftest.a conftest.b 2>&5 || hard_links=no
7858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7859 { echo "$as_me:$LINENO: result: $hard_links" >&5
7860 echo "${ECHO_T}$hard_links" >&6; }
7861 if test "$hard_links" = no; then
7862 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7863 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7870 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7871 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7874 allow_undefined_flag=
7875 enable_shared_with_static_runtimes=no
7877 archive_expsym_cmds=
7878 old_archive_From_new_cmds=
7879 old_archive_from_expsyms_cmds=
7880 export_dynamic_flag_spec=
7881 whole_archive_flag_spec=
7882 thread_safe_flag_spec=
7883 hardcode_libdir_flag_spec=
7884 hardcode_libdir_flag_spec_ld=
7885 hardcode_libdir_separator=
7888 hardcode_shlibpath_var=unsupported
7889 link_all_deplibs=unknown
7890 hardcode_automatic=no
7893 always_export_symbols=no
7894 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7895 # include_expsyms should be a list of space-separated symbols to be *always*
7896 # included in the symbol list
7898 # exclude_expsyms can be an extended regexp of symbols to exclude
7899 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7900 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7901 # as well as any symbol that contains `d'.
7902 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7904 # platforms (ab)use it in PIC code, but their linkers get confused if
7905 # the symbol is explicitly referenced. Since portable code cannot
7906 # rely on this symbol name, it's probably fine to never include it in
7907 # preloaded symbol tables.
7908 # Exclude shared library initialization/finalization symbols.
7909 extract_expsyms_cmds=
7910 # Just being paranoid about ensuring that cc_basename is set.
7911 for cc_temp in $compiler""; do
7913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7922 cygwin* | mingw* | pw32*)
7923 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7924 # When not using gcc, we currently assume that we are using
7925 # Microsoft Visual C++.
7926 if test "$GCC" != yes; then
7931 # we just hope/assume this is gcc and not c89 (= MSVC++)
7940 if test "$with_gnu_ld" = yes; then
7941 # If archive_cmds runs LD, not CC, wlarc should be empty
7944 # Set some defaults for GNU ld with shared library support. These
7945 # are reset later if shared libraries are not supported. Putting them
7946 # here allows them to be overridden if necessary.
7947 runpath_var=LD_RUN_PATH
7948 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7949 export_dynamic_flag_spec='${wl}--export-dynamic'
7950 # ancient GNU ld didn't support --whole-archive et. al.
7951 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7952 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7954 whole_archive_flag_spec=
7956 supports_anon_versioning=no
7957 case `$LD -v 2>/dev/null` in
7958 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7959 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7960 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7961 *\ 2.11.*) ;; # other 2.11 versions
7962 *) supports_anon_versioning=yes ;;
7965 # See if GNU ld supports shared libraries.
7968 # On AIX/PPC, the GNU linker is very broken
7969 if test "$host_cpu" != ia64; then
7973 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7974 *** to be unable to reliably create shared libraries on AIX.
7975 *** Therefore, libtool is disabling shared libraries support. If you
7976 *** really care for shared libraries, you may want to modify your PATH
7977 *** so that a non-GNU linker is found, and then restart.
7984 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)'
7985 hardcode_libdir_flag_spec='-L$libdir'
7986 hardcode_minus_L=yes
7988 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7989 # that the semantics of dynamic libraries on AmigaOS, at least up
7990 # to version 4, is to share data among multiple programs linked
7991 # with the same dynamic library. Since this doesn't match the
7992 # behavior of shared libraries on other platforms, we can't use
7998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7999 allow_undefined_flag=unsupported
8000 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8001 # support --undefined. This deserves some investigation. FIXME
8002 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8008 cygwin* | mingw* | pw32*)
8009 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8010 # as there is no search path for DLLs.
8011 hardcode_libdir_flag_spec='-L$libdir'
8012 allow_undefined_flag=unsupported
8013 always_export_symbols=no
8014 enable_shared_with_static_runtimes=yes
8015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8017 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8019 # If the export-symbols file already is a .def file (1st line
8020 # is EXPORTS), use it as is; otherwise, prepend...
8021 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8022 cp $export_symbols $output_objdir/$soname.def;
8024 echo EXPORTS > $output_objdir/$soname.def;
8025 cat $export_symbols >> $output_objdir/$soname.def;
8027 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8035 hardcode_shlibpath_var=no
8036 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8037 export_dynamic_flag_spec='${wl}-E'
8038 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8039 # Instead, shared libraries are loaded at an image base (0x10000000 by
8040 # default) and relocated if they conflict, which is a slow very memory
8041 # consuming and fragmenting process. To avoid this, we pick a random,
8042 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8043 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8045 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'
8048 gnu* | linux* | k*bsd*-gnu)
8049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051 case $cc_basename,$host_cpu in
8052 pgcc*) # Portland Group C compiler
8053 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'
8054 tmp_addflag=' $pic_flag'
8056 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8057 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'
8058 tmp_addflag=' $pic_flag -Mnomain' ;;
8059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8060 tmp_addflag=' -i_dynamic' ;;
8061 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8062 tmp_addflag=' -i_dynamic -nofor_main' ;;
8063 ifc* | ifort*) # Intel Fortran compiler
8064 tmp_addflag=' -nofor_main' ;;
8066 case `$CC -V 2>&1 | sed 5q` in
8067 *Sun\ C*) # Sun C 5.9
8068 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'
8069 tmp_sharedflag='-G' ;;
8070 *Sun\ F*) # Sun Fortran 8.3
8071 tmp_sharedflag='-G' ;;
8073 tmp_sharedflag='-shared' ;;
8075 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8077 if test $supports_anon_versioning = yes; then
8078 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8080 $echo "local: *; };" >> $output_objdir/$libname.ver~
8081 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8089 netbsd* | netbsdelf*-gnu)
8090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8091 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8100 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8104 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8105 *** create shared libraries on Solaris systems. Therefore, libtool
8106 *** is disabling shared libraries support. We urge you to upgrade GNU
8107 *** binutils to release 2.9.1 or newer. Another option is to modify
8108 *** your PATH or compiler configuration so that the native linker is
8109 *** used, and then restart.
8112 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8121 case `$LD -v 2>&1` in
8122 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8126 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8127 *** reliably create shared libraries on SCO systems. Therefore, libtool
8128 *** is disabling shared libraries support. We urge you to upgrade GNU
8129 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8130 *** your PATH or compiler configuration so that the native linker is
8131 *** used, and then restart.
8136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8137 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_shlibpath_var=no
8155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164 if test "$ld_shlibs" = no; then
8166 hardcode_libdir_flag_spec=
8167 export_dynamic_flag_spec=
8168 whole_archive_flag_spec=
8171 # PORTME fill in a description of your system's linker (not GNU ld)
8174 allow_undefined_flag=unsupported
8175 always_export_symbols=yes
8176 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'
8177 # Note: this linker hardcodes the directories in LIBPATH if there
8178 # are no directories specified by -L.
8179 hardcode_minus_L=yes
8180 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8181 # Neither direct hardcoding nor static linking is supported with a
8183 hardcode_direct=unsupported
8188 if test "$host_cpu" = ia64; then
8189 # On IA64, the linker does run time linking by default, so we don't
8190 # have to do anything special.
8191 aix_use_runtimelinking=no
8192 exp_sym_flag='-Bexport'
8195 # If we're using GNU nm, then we don't want the "-C" option.
8196 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8197 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8198 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'
8200 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'
8202 aix_use_runtimelinking=no
8204 # Test if we are trying to use run time linking or normal
8205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8206 # need to do runtime linking.
8207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8208 for ld_flag in $LDFLAGS; do
8209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8210 aix_use_runtimelinking=yes
8217 exp_sym_flag='-bexport'
8218 no_entry_flag='-bnoentry'
8221 # When large executables or shared objects are built, AIX ld can
8222 # have problems creating the table of contents. If linking a library
8223 # or program results in "error TOC overflow" add -mminimal-toc to
8224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8229 hardcode_libdir_separator=':'
8230 link_all_deplibs=yes
8232 if test "$GCC" = yes; then
8233 case $host_os in aix4.[012]|aix4.[012].*)
8234 # We only want to do this on AIX 4.2 and lower, the check
8235 # below for broken collect2 doesn't work under 4.3+
8236 collect2name=`${CC} -print-prog-name=collect2`
8237 if test -f "$collect2name" && \
8238 strings "$collect2name" | grep resolve_lib_name >/dev/null
8240 # We have reworked collect2
8243 # We have old collect2
8244 hardcode_direct=unsupported
8245 # It fails to find uninstalled libraries when the uninstalled
8246 # path is not listed in the libpath. Setting hardcode_minus_L
8247 # to unsupported forces relinking
8248 hardcode_minus_L=yes
8249 hardcode_libdir_flag_spec='-L$libdir'
8250 hardcode_libdir_separator=
8254 shared_flag='-shared'
8255 if test "$aix_use_runtimelinking" = yes; then
8256 shared_flag="$shared_flag "'${wl}-G'
8260 if test "$host_cpu" = ia64; then
8261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8262 # chokes on -Wl,-G. The following line is correct:
8265 if test "$aix_use_runtimelinking" = yes; then
8266 shared_flag='${wl}-G'
8268 shared_flag='${wl}-bM:SRE'
8273 # It seems that -bexpall does not export symbols beginning with
8274 # underscore (_), so it is better to generate a list of symbols to export.
8275 always_export_symbols=yes
8276 if test "$aix_use_runtimelinking" = yes; then
8277 # Warning - without using the other runtime loading flags (-brtl),
8278 # -berok will link without error, but may produce a broken library.
8279 allow_undefined_flag='-berok'
8280 # Determine the default libpath from the value encoded in an empty executable.
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (ac_try="$ac_link"
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_link") 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest$ac_exeext &&
8313 $as_test_x conftest$ac_exeext; then
8315 lt_aix_libpath_sed='
8316 /Import File Strings/,/^$/ {
8322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8323 # Check for a 64-bit object if we didn't find anything.
8324 if test -z "$aix_libpath"; then
8325 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335 conftest$ac_exeext conftest.$ac_ext
8336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8339 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"
8341 if test "$host_cpu" = ia64; then
8342 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8343 allow_undefined_flag="-z nodefs"
8344 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"
8346 # Determine the default libpath from the value encoded in an empty executable.
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8362 rm -f conftest.$ac_objext conftest$ac_exeext
8363 if { (ac_try="$ac_link"
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_link") 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest$ac_exeext &&
8379 $as_test_x conftest$ac_exeext; then
8381 lt_aix_libpath_sed='
8382 /Import File Strings/,/^$/ {
8388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8389 # Check for a 64-bit object if we didn't find anything.
8390 if test -z "$aix_libpath"; then
8391 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8401 conftest$ac_exeext conftest.$ac_ext
8402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8405 # Warning - without using the other run time loading flags,
8406 # -berok will link without error, but may produce a broken library.
8407 no_undefined_flag=' ${wl}-bernotok'
8408 allow_undefined_flag=' ${wl}-berok'
8409 # Exported symbols can be pulled into shared objects from archives
8410 whole_archive_flag_spec='$convenience'
8411 archive_cmds_need_lc=yes
8412 # This is similar to how AIX traditionally builds its shared libraries.
8413 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'
8419 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)'
8420 hardcode_libdir_flag_spec='-L$libdir'
8421 hardcode_minus_L=yes
8422 # see comment about different semantics on the GNU ld section
8427 export_dynamic_flag_spec=-rdynamic
8430 cygwin* | mingw* | pw32*)
8431 # When not using gcc, we currently assume that we are using
8432 # Microsoft Visual C++.
8433 # hardcode_libdir_flag_spec is actually meaningless, as there is
8434 # no search path for DLLs.
8435 hardcode_libdir_flag_spec=' '
8436 allow_undefined_flag=unsupported
8437 # Tell ltmain to make .lib files, not .a files.
8439 # Tell ltmain to make .dll files, not .so files.
8441 # FIXME: Setting linknames here is a bad hack.
8442 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8443 # The linker will automatically build a .lib file if we build a DLL.
8444 old_archive_From_new_cmds='true'
8445 # FIXME: Should let the user specify the lib program.
8446 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8447 fix_srcfile_path='`cygpath -w "$srcfile"`'
8448 enable_shared_with_static_runtimes=yes
8451 darwin* | rhapsody*)
8453 rhapsody* | darwin1.[012])
8454 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8458 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8460 case ${MACOSX_DEPLOYMENT_TARGET} in
8462 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8465 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8471 archive_cmds_need_lc=no
8473 hardcode_automatic=yes
8474 hardcode_shlibpath_var=unsupported
8475 whole_archive_flag_spec=''
8476 link_all_deplibs=yes
8477 if test "$GCC" = yes ; then
8478 output_verbose_link_cmd='echo'
8479 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8480 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8481 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}"
8482 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}"
8484 case $cc_basename in
8486 output_verbose_link_cmd='echo'
8487 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8488 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8490 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}'
8491 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}'
8501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_shlibpath_var=no
8510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8511 # support. Future versions do this automatically, but an explicit c++rt0.o
8512 # does not break anything, and helps significantly (at the cost of a little
8515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8516 hardcode_libdir_flag_spec='-R$libdir'
8518 hardcode_shlibpath_var=no
8521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_minus_L=yes
8526 hardcode_shlibpath_var=no
8529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8530 freebsd* | dragonfly*)
8531 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8532 hardcode_libdir_flag_spec='-R$libdir'
8534 hardcode_shlibpath_var=no
8538 if test "$GCC" = yes; then
8539 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'
8541 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'
8543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8544 hardcode_libdir_separator=:
8547 # hardcode_minus_L: Not really in the search PATH,
8548 # but as the default location of the library.
8549 hardcode_minus_L=yes
8550 export_dynamic_flag_spec='${wl}-E'
8554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8559 if test "$with_gnu_ld" = no; then
8560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8561 hardcode_libdir_separator=:
8564 export_dynamic_flag_spec='${wl}-E'
8566 # hardcode_minus_L: Not really in the search PATH,
8567 # but as the default location of the library.
8568 hardcode_minus_L=yes
8573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8579 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8582 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8588 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8598 if test "$with_gnu_ld" = no; then
8599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8600 hardcode_libdir_separator=:
8604 hardcode_libdir_flag_spec_ld='+b $libdir'
8606 hardcode_shlibpath_var=no
8610 export_dynamic_flag_spec='${wl}-E'
8612 # hardcode_minus_L: Not really in the search PATH,
8613 # but as the default location of the library.
8614 hardcode_minus_L=yes
8620 irix5* | irix6* | nonstopux*)
8621 if test "$GCC" = yes; then
8622 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'
8624 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'
8625 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8628 hardcode_libdir_separator=:
8629 link_all_deplibs=yes
8632 netbsd* | netbsdelf*-gnu)
8633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8636 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8638 hardcode_libdir_flag_spec='-R$libdir'
8640 hardcode_shlibpath_var=no
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647 hardcode_libdir_separator=:
8648 hardcode_shlibpath_var=no
8652 if test -f /usr/libexec/ld.so; then
8654 hardcode_shlibpath_var=no
8655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8659 export_dynamic_flag_spec='${wl}-E'
8662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_libdir_flag_spec='-R$libdir'
8667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8678 hardcode_libdir_flag_spec='-L$libdir'
8679 hardcode_minus_L=yes
8680 allow_undefined_flag=unsupported
8681 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'
8682 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8686 if test "$GCC" = yes; then
8687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8688 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'
8690 allow_undefined_flag=' -expect_unresolved \*'
8691 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'
8693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694 hardcode_libdir_separator=:
8697 osf4* | osf5*) # as osf3* with the addition of -msym flag
8698 if test "$GCC" = yes; then
8699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8700 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'
8701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8703 allow_undefined_flag=' -expect_unresolved \*'
8704 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'
8705 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8706 $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'
8708 # Both c and cxx compiler support -rpath directly
8709 hardcode_libdir_flag_spec='-rpath $libdir'
8711 hardcode_libdir_separator=:
8715 no_undefined_flag=' -z text'
8716 if test "$GCC" = yes; then
8718 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8720 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8723 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8727 hardcode_libdir_flag_spec='-R$libdir'
8728 hardcode_shlibpath_var=no
8730 solaris2.[0-5] | solaris2.[0-5].*) ;;
8732 # The compiler driver will combine and reorder linker options,
8733 # but understands `-z linker_flag'. GCC discards it without `$wl',
8734 # but is careful enough not to reorder.
8735 # Supported since Solaris 2.6 (maybe 2.5.1?)
8736 if test "$GCC" = yes; then
8737 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8739 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8743 link_all_deplibs=yes
8747 if test "x$host_vendor" = xsequent; then
8748 # Use $CC to link under sequent, because it throws in some extra .o
8749 # files that make .init and .fini sections work.
8750 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_libdir_flag_spec='-L$libdir'
8756 hardcode_minus_L=yes
8757 hardcode_shlibpath_var=no
8761 case $host_vendor in
8763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764 hardcode_direct=yes # is this really true???
8767 ## LD is ld it makes a PLAMLIB
8768 ## CC just makes a GrossModule.
8769 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8770 reload_cmds='$CC -r -o $output$reload_objs'
8774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8778 runpath_var='LD_RUN_PATH'
8779 hardcode_shlibpath_var=no
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_shlibpath_var=no
8785 export_dynamic_flag_spec='-Bexport'
8789 if test -d /usr/nec; then
8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_shlibpath_var=no
8792 runpath_var=LD_RUN_PATH
8793 hardcode_runpath_var=yes
8798 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8799 no_undefined_flag='${wl}-z,text'
8800 archive_cmds_need_lc=no
8801 hardcode_shlibpath_var=no
8802 runpath_var='LD_RUN_PATH'
8804 if test "$GCC" = yes; then
8805 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8808 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813 sysv5* | sco3.2v5* | sco5v6*)
8814 # Note: We can NOT use -z defs as we might desire, because we do not
8815 # link with -lc, and that would cause any symbols used from libc to
8816 # always be unresolved, which means just about no library would
8817 # ever link correctly. If we're not using GNU ld we use -z text
8818 # though, which does catch some bad symbols but isn't as heavy-handed
8820 no_undefined_flag='${wl}-z,text'
8821 allow_undefined_flag='${wl}-z,nodefs'
8822 archive_cmds_need_lc=no
8823 hardcode_shlibpath_var=no
8824 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8825 hardcode_libdir_separator=':'
8826 link_all_deplibs=yes
8827 export_dynamic_flag_spec='${wl}-Bexport'
8828 runpath_var='LD_RUN_PATH'
8830 if test "$GCC" = yes; then
8831 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_shlibpath_var=no
8851 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8852 echo "${ECHO_T}$ld_shlibs" >&6; }
8853 test "$ld_shlibs" = no && can_build_shared=no
8856 # Do we need to explicitly link libc?
8858 case "x$archive_cmds_need_lc" in
8860 # Assume -lc should be added
8861 archive_cmds_need_lc=yes
8863 if test "$enable_shared" = yes && test "$GCC" = yes; then
8864 case $archive_cmds in
8866 # FIXME: we may have to deal with multi-command sequences.
8869 # Test whether the compiler implicitly links with -lc since on some
8870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8871 # to ld, don't add -lc before -lgcc.
8872 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8873 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } 2>conftest.err; then
8884 libobjs=conftest.$ac_objext
8886 wl=$lt_prog_compiler_wl
8887 pic_flag=$lt_prog_compiler_pic
8893 lt_save_allow_undefined_flag=$allow_undefined_flag
8894 allow_undefined_flag=
8895 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8896 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }
8901 archive_cmds_need_lc=no
8903 archive_cmds_need_lc=yes
8905 allow_undefined_flag=$lt_save_allow_undefined_flag
8907 cat conftest.err 1>&5
8910 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8911 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8918 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8921 libname_spec='lib$name'
8929 shlibpath_overrides_runpath=unknown
8931 dynamic_linker="$host_os ld.so"
8932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8934 if test "$GCC" = yes; then
8936 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8937 *) lt_awk_arg="/^libraries:/" ;;
8939 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8940 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8941 # if the path contains ";" then we assume it to be the separator
8942 # otherwise default to the standard path separator (i.e. ":") - it is
8943 # assumed that no part of a normal pathname contains ";" but that should
8944 # okay in the real world where ";" in dirpaths is itself problematic.
8945 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8947 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8949 # Ok, now we have the path, separated by spaces, we can step through it
8950 # and add multilib dir if necessary.
8951 lt_tmp_lt_search_path_spec=
8952 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8953 for lt_sys_path in $lt_search_path_spec; do
8954 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8955 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8957 test -d "$lt_sys_path" && \
8958 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8961 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8962 BEGIN {RS=" "; FS="/|\n";} {
8965 for (lt_i = NF; lt_i > 0; lt_i--) {
8966 if ($lt_i != "" && $lt_i != ".") {
8967 if ($lt_i == "..") {
8970 if (lt_count == 0) {
8971 lt_foo="/" $lt_i lt_foo;
8978 if (lt_foo != "") { lt_freq[lt_foo]++; }
8979 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8981 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8985 need_lib_prefix=unknown
8986 hardcode_into_libs=no
8988 # when you set need_version to no, make sure it does not cause -set_version
8989 # flags to be left without arguments
8990 need_version=unknown
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8996 shlibpath_var=LIBPATH
8998 # AIX 3 has no versioning support, so we append a major version to the name.
8999 soname_spec='${libname}${release}${shared_ext}$major'
9006 hardcode_into_libs=yes
9007 if test "$host_cpu" = ia64; then
9008 # AIX 5 supports IA64
9009 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9010 shlibpath_var=LD_LIBRARY_PATH
9012 # With GCC up to 2.95.x, collect2 would create an import file
9013 # for dependence libraries. The import file would start with
9014 # the line `#! .'. This would cause the generated library to
9015 # depend on `.', always an invalid library. This was fixed in
9016 # development snapshots of GCC prior to 3.0.
9018 aix4 | aix4.[01] | aix4.[01].*)
9019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9021 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9028 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9029 # soname into executable. Probably we can add versioning support to
9030 # collect2, so additional links can be useful in future.
9031 if test "$aix_use_runtimelinking" = yes; then
9032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9033 # instead of lib<name>.a to let people know that these are not
9034 # typical AIX shared libraries.
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 # We preserve .a as extension for shared libraries through AIX4.2
9038 # and later when we are not doing run time linking.
9039 library_names_spec='${libname}${release}.a $libname.a'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LIBPATH
9047 library_names_spec='$libname.ixlibrary $libname.a'
9048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9049 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'
9053 library_names_spec='${libname}${shared_ext}'
9054 dynamic_linker="$host_os ld.so"
9055 shlibpath_var=LIBRARY_PATH
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9066 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9067 # the default ld.so.conf also contains /usr/contrib/lib and
9068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9069 # libtool to hard-code these into programs
9072 cygwin* | mingw* | pw32*)
9073 version_type=windows
9078 case $GCC,$host_os in
9079 yes,cygwin* | yes,mingw* | yes,pw32*)
9080 library_names_spec='$libname.dll.a'
9081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9082 postinstall_cmds='base_file=`basename \${file}`~
9083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9084 dldir=$destdir/`dirname \$dlpath`~
9085 test -d \$dldir || mkdir -p \$dldir~
9086 $install_prog $dir/$dlname \$dldir/$dlname~
9087 chmod a+x \$dldir/$dlname'
9088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9089 dlpath=$dir/\$dldll~
9091 shlibpath_overrides_runpath=yes
9095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9096 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9097 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9100 # MinGW DLLs use traditional 'lib' prefix
9101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9103 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9104 # It is most probably a Windows format PATH printed by
9105 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9106 # path with ; separators, and with drive letters. We can handle the
9107 # drive letters (cygwin fileutils understands them), so leave them,
9108 # especially as we might pass files found there to a mingw objdump,
9109 # which wouldn't understand a cygwinified path. Ahh.
9110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9116 # pw32 DLLs use 'pw' prefix rather than 'lib'
9117 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9123 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9126 dynamic_linker='Win32 ld.exe'
9127 # FIXME: first we should search . and the directory the executable is in
9131 darwin* | rhapsody*)
9132 dynamic_linker="$host_os dyld"
9136 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9137 soname_spec='${libname}${release}${major}$shared_ext'
9138 shlibpath_overrides_runpath=yes
9139 shlibpath_var=DYLD_LIBRARY_PATH
9140 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9142 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9159 freebsd* | dragonfly*)
9160 # DragonFly does not have aout. When/if they implement a new
9161 # versioning mechanism, adjust this.
9162 if test -x /usr/bin/objformat; then
9163 objformat=`/usr/bin/objformat`
9166 freebsd[123]*) objformat=aout ;;
9170 version_type=freebsd-$objformat
9171 case $version_type in
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9182 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=yes
9187 freebsd3.[01]* | freebsdelf3.[01]*)
9188 shlibpath_overrides_runpath=yes
9189 hardcode_into_libs=yes
9191 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9192 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9193 shlibpath_overrides_runpath=no
9194 hardcode_into_libs=yes
9196 *) # from 4.6 on, and DragonFly
9197 shlibpath_overrides_runpath=yes
9198 hardcode_into_libs=yes
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 hardcode_into_libs=yes
9213 hpux9* | hpux10* | hpux11*)
9214 # Give a soname corresponding to the major version so that dld.sl refuses to
9215 # link against other versions.
9222 hardcode_into_libs=yes
9223 dynamic_linker="$host_os dld.so"
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 if test "X$HPUX_IA64_MODE" = X32; then
9229 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9231 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9237 hardcode_into_libs=yes
9238 dynamic_linker="$host_os dld.sl"
9239 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9248 dynamic_linker="$host_os dld.sl"
9249 shlibpath_var=SHLIB_PATH
9250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9255 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9256 postinstall_cmds='chmod 555 $lib'
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 shlibpath_overrides_runpath=no
9268 hardcode_into_libs=yes
9271 irix5* | irix6* | nonstopux*)
9273 nonstopux*) version_type=nonstopux ;;
9275 if test "$lt_cv_prog_gnu_ld" = yes; then
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9286 irix5* | nonstopux*)
9290 case $LD in # libtool.m4 will add one of these switches to LD
9291 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9292 libsuff= shlibsuff= libmagic=32-bit;;
9293 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9294 libsuff=32 shlibsuff=N32 libmagic=N32;;
9295 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9296 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9297 *) libsuff= shlibsuff= libmagic=never-match;;
9301 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9302 shlibpath_overrides_runpath=no
9303 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9304 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9305 hardcode_into_libs=yes
9308 # No shared lib support for Linux oldld, aout, or coff.
9309 linux*oldld* | linux*aout* | linux*coff*)
9313 # This must be Linux ELF.
9314 linux* | k*bsd*-gnu)
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=no
9323 # This implies no fast_install, which is unacceptable.
9324 # Some rework will be needed to allow for fast_install
9325 # before this can be enabled.
9326 hardcode_into_libs=yes
9328 # Append ld.so.conf contents to the search path
9329 if test -f /etc/ld.so.conf; then
9330 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' ' '`
9331 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9334 # We used to test for /lib/ld.so.1 and disable shared libraries on
9335 # powerpc, because MkLinux only supported shared libraries with the
9336 # GNU dynamic linker. Since this was broken with cross compilers,
9337 # most powerpc-linux boxes support dynamic linking these days and
9338 # people can always --disable-shared, the test was removed, and we
9339 # assume the GNU/Linux dynamic linker is in use.
9340 dynamic_linker='GNU/Linux ld.so'
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=no
9351 hardcode_into_libs=yes
9352 dynamic_linker='NetBSD ld.elf_so'
9359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9362 dynamic_linker='NetBSD (a.out) ld.so'
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 dynamic_linker='NetBSD ld.elf_so'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=yes
9370 hardcode_into_libs=yes
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=yes
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 shlibpath_overrides_runpath=yes
9392 sys_lib_dlsearch_path_spec="/usr/lib"
9394 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9396 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9397 *) need_version=no ;;
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9404 openbsd2.[89] | openbsd2.[89].*)
9405 shlibpath_overrides_runpath=no
9408 shlibpath_overrides_runpath=yes
9412 shlibpath_overrides_runpath=yes
9417 libname_spec='$name'
9420 library_names_spec='$libname${shared_ext} $libname.a'
9421 dynamic_linker='OS/2 ld.exe'
9422 shlibpath_var=LIBPATH
9425 osf3* | osf4* | osf5*)
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes
9448 hardcode_into_libs=yes
9449 # ldd complains unless libraries are executable
9450 postinstall_cmds='chmod +x $lib'
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=yes
9459 if test "$with_gnu_ld" = yes; then
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 shlibpath_var=LD_LIBRARY_PATH
9470 case $host_vendor in
9472 shlibpath_overrides_runpath=no
9474 export_dynamic_flag_spec='${wl}-Blargedynsym'
9475 runpath_var=LD_RUN_PATH
9483 shlibpath_overrides_runpath=no
9484 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9490 if test -d /usr/nec ;then
9492 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9493 soname_spec='$libname${shared_ext}.$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9499 version_type=freebsd-elf
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 hardcode_into_libs=yes
9506 if test "$with_gnu_ld" = yes; then
9507 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9508 shlibpath_overrides_runpath=no
9510 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9511 shlibpath_overrides_runpath=yes
9514 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9518 sys_lib_dlsearch_path_spec='/usr/lib'
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524 soname_spec='${libname}${release}${shared_ext}$major'
9525 shlibpath_var=LD_LIBRARY_PATH
9532 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9533 echo "${ECHO_T}$dynamic_linker" >&6; }
9534 test "$dynamic_linker" = no && can_build_shared=no
9536 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9542 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9543 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9552 if test "$GCC" = yes; then
9553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9556 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9557 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9559 if test -n "$hardcode_libdir_flag_spec" || \
9560 test -n "$runpath_var" || \
9561 test "X$hardcode_automatic" = "Xyes" ; then
9563 # We can hardcode non-existant directories.
9564 if test "$hardcode_direct" != no &&
9565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9566 # have to relink, otherwise we might link with an installed library
9567 # when we should be linking with a yet-to-be-installed one
9568 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9569 test "$hardcode_minus_L" != no; then
9570 # Linking always hardcodes the temporary library directory.
9571 hardcode_action=relink
9573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9574 hardcode_action=immediate
9577 # We cannot hardcode anything, or else we can only hardcode existing
9579 hardcode_action=unsupported
9581 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9582 echo "${ECHO_T}$hardcode_action" >&6; }
9584 if test "$hardcode_action" = relink; then
9585 # Fast installation is not supported
9586 enable_fast_install=no
9587 elif test "$shlibpath_overrides_runpath" = yes ||
9588 test "$enable_shared" = no; then
9589 # Fast installation is not necessary
9590 enable_fast_install=needless
9595 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9596 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9597 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9598 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9599 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9600 { echo "$as_me:$LINENO: result: yes" >&5
9601 echo "${ECHO_T}yes" >&6; }
9603 # FIXME - insert some real tests, host_os isn't really good enough
9606 if test -n "$STRIP" ; then
9607 striplib="$STRIP -x"
9608 old_striplib="$STRIP -S"
9609 { echo "$as_me:$LINENO: result: yes" >&5
9610 echo "${ECHO_T}yes" >&6; }
9612 { echo "$as_me:$LINENO: result: no" >&5
9613 echo "${ECHO_T}no" >&6; }
9617 { echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6; }
9623 if test "x$enable_dlopen" != xyes; then
9624 enable_dlopen=unknown
9625 enable_dlopen_self=unknown
9626 enable_dlopen_self_static=unknown
9633 lt_cv_dlopen="load_add_on"
9635 lt_cv_dlopen_self=yes
9639 lt_cv_dlopen="LoadLibrary"
9644 lt_cv_dlopen="dlopen"
9649 # if libdl is installed we need to link against it
9650 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9651 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 ac_check_lib_save_LIBS=$LIBS
9657 cat >conftest.$ac_ext <<_ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9664 /* Override any GCC internal prototype to avoid an error.
9665 Use char because int might match the return type of a GCC
9666 builtin and then its argument prototype would still apply. */
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_link") 2>conftest.er1
9688 grep -v '^ *+' conftest.er1 >conftest.err
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest$ac_exeext &&
9696 $as_test_x conftest$ac_exeext; then
9697 ac_cv_lib_dl_dlopen=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_cv_lib_dl_dlopen=no
9705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9706 conftest$ac_exeext conftest.$ac_ext
9707 LIBS=$ac_check_lib_save_LIBS
9709 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9710 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9711 if test $ac_cv_lib_dl_dlopen = yes; then
9712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9717 lt_cv_dlopen_self=yes
9724 { echo "$as_me:$LINENO: checking for shl_load" >&5
9725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9726 if test "${ac_cv_func_shl_load+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9737 #define shl_load innocuous_shl_load
9739 /* System header to define __stub macros and hopefully few prototypes,
9740 which can conflict with char shl_load (); below.
9741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9742 <limits.h> exists even on freestanding compilers. */
9745 # include <limits.h>
9747 # include <assert.h>
9752 /* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
9759 /* The GNU C library defines this for functions which it implements
9760 to always fail with ENOSYS. Some functions are actually named
9761 something starting with __ and the normal name is an alias. */
9762 #if defined __stub_shl_load || defined __stub___shl_load
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_link") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest$ac_exeext &&
9791 $as_test_x conftest$ac_exeext; then
9792 ac_cv_func_shl_load=yes
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_cv_func_shl_load=no
9800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801 conftest$ac_exeext conftest.$ac_ext
9803 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9804 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9805 if test $ac_cv_func_shl_load = yes; then
9806 lt_cv_dlopen="shl_load"
9808 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9809 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9810 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 ac_check_lib_save_LIBS=$LIBS
9815 cat >conftest.$ac_ext <<_ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (ac_try="$ac_link"
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_link") 2>conftest.er1
9846 grep -v '^ *+' conftest.er1 >conftest.err
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && {
9851 test -z "$ac_c_werror_flag" ||
9852 test ! -s conftest.err
9853 } && test -s conftest$ac_exeext &&
9854 $as_test_x conftest$ac_exeext; then
9855 ac_cv_lib_dld_shl_load=yes
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ac_cv_lib_dld_shl_load=no
9863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9864 conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_lib_save_LIBS
9867 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9869 if test $ac_cv_lib_dld_shl_load = yes; then
9870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9872 { echo "$as_me:$LINENO: checking for dlopen" >&5
9873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9874 if test "${ac_cv_func_dlopen+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9885 #define dlopen innocuous_dlopen
9887 /* System header to define __stub macros and hopefully few prototypes,
9888 which can conflict with char dlopen (); below.
9889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890 <limits.h> exists even on freestanding compilers. */
9893 # include <limits.h>
9895 # include <assert.h>
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9907 /* The GNU C library defines this for functions which it implements
9908 to always fail with ENOSYS. Some functions are actually named
9909 something starting with __ and the normal name is an alias. */
9910 #if defined __stub_dlopen || defined __stub___dlopen
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_link") 2>conftest.er1
9931 grep -v '^ *+' conftest.er1 >conftest.err
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && {
9936 test -z "$ac_c_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest$ac_exeext &&
9939 $as_test_x conftest$ac_exeext; then
9940 ac_cv_func_dlopen=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_func_dlopen=no
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949 conftest$ac_exeext conftest.$ac_ext
9951 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9953 if test $ac_cv_func_dlopen = yes; then
9954 lt_cv_dlopen="dlopen"
9956 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 ac_check_lib_save_LIBS=$LIBS
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_link") 2>conftest.er1
9994 grep -v '^ *+' conftest.er1 >conftest.err
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest$ac_exeext &&
10002 $as_test_x conftest$ac_exeext; then
10003 ac_cv_lib_dl_dlopen=yes
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_cv_lib_dl_dlopen=no
10011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10015 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10017 if test $ac_cv_lib_dl_dlopen = yes; then
10018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10020 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lsvld $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1 >conftest.err
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest$ac_exeext &&
10066 $as_test_x conftest$ac_exeext; then
10067 ac_cv_lib_svld_dlopen=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_lib_svld_dlopen=no
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10080 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10081 if test $ac_cv_lib_svld_dlopen = yes; then
10082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10084 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10085 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_check_lib_save_LIBS=$LIBS
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10108 return dld_link ();
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_dld_dld_link=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_lib_dld_dld_link=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10145 if test $ac_cv_lib_dld_dld_link = yes; then
10146 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10167 if test "x$lt_cv_dlopen" != xno; then
10173 case $lt_cv_dlopen in
10175 save_CPPFLAGS="$CPPFLAGS"
10176 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10178 save_LDFLAGS="$LDFLAGS"
10179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10182 LIBS="$lt_cv_dlopen_libs $LIBS"
10184 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10185 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10186 if test "${lt_cv_dlopen_self+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 if test "$cross_compiling" = yes; then :
10190 lt_cv_dlopen_self=cross
10192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10193 lt_status=$lt_dlunknown
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10195 "configure"
10196 #include "confdefs.h"
10205 # define LT_DLGLOBAL RTLD_GLOBAL
10208 # define LT_DLGLOBAL DL_GLOBAL
10210 # define LT_DLGLOBAL 0
10214 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10215 find out it does not work in some platform. */
10216 #ifndef LT_DLLAZY_OR_NOW
10218 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10221 # define LT_DLLAZY_OR_NOW DL_LAZY
10224 # define LT_DLLAZY_OR_NOW RTLD_NOW
10227 # define LT_DLLAZY_OR_NOW DL_NOW
10229 # define LT_DLLAZY_OR_NOW 0
10237 extern "C" void exit (int);
10240 void fnord() { int i=42;}
10243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10244 int status = $lt_dlunknown;
10248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10250 /* dlclose (self); */
10258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259 (eval $ac_link) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10263 (./conftest; exit; ) >&5 2>/dev/null
10265 case x$lt_status in
10266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10271 # compilation failed
10272 lt_cv_dlopen_self=no
10279 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10280 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10282 if test "x$lt_cv_dlopen_self" = xyes; then
10283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10284 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10285 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10286 if test "${lt_cv_dlopen_self_static+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 if test "$cross_compiling" = yes; then :
10290 lt_cv_dlopen_self_static=cross
10292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10293 lt_status=$lt_dlunknown
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10295 "configure"
10296 #include "confdefs.h"
10305 # define LT_DLGLOBAL RTLD_GLOBAL
10308 # define LT_DLGLOBAL DL_GLOBAL
10310 # define LT_DLGLOBAL 0
10314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10315 find out it does not work in some platform. */
10316 #ifndef LT_DLLAZY_OR_NOW
10318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10321 # define LT_DLLAZY_OR_NOW DL_LAZY
10324 # define LT_DLLAZY_OR_NOW RTLD_NOW
10327 # define LT_DLLAZY_OR_NOW DL_NOW
10329 # define LT_DLLAZY_OR_NOW 0
10337 extern "C" void exit (int);
10340 void fnord() { int i=42;}
10343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344 int status = $lt_dlunknown;
10348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350 /* dlclose (self); */
10358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359 (eval $ac_link) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10363 (./conftest; exit; ) >&5 2>/dev/null
10365 case x$lt_status in
10366 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10367 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10368 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10371 # compilation failed
10372 lt_cv_dlopen_self_static=no
10379 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10380 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10383 CPPFLAGS="$save_CPPFLAGS"
10384 LDFLAGS="$save_LDFLAGS"
10389 case $lt_cv_dlopen_self in
10390 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10391 *) enable_dlopen_self=unknown ;;
10394 case $lt_cv_dlopen_self_static in
10395 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10396 *) enable_dlopen_self_static=unknown ;;
10401 # Report which library types will actually be built
10402 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10403 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10404 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10405 echo "${ECHO_T}$can_build_shared" >&6; }
10407 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10408 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10409 test "$can_build_shared" = "no" && enable_shared=no
10411 # On AIX, shared libraries and static libraries use the same namespace, and
10412 # are all built from PIC.
10415 test "$enable_shared" = yes && enable_static=no
10416 if test -n "$RANLIB"; then
10417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10418 postinstall_cmds='$RANLIB $lib'
10423 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10424 test "$enable_shared" = yes && enable_static=no
10428 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10429 echo "${ECHO_T}$enable_shared" >&6; }
10431 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10432 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10433 # Make sure either enable_shared or enable_static is yes.
10434 test "$enable_shared" = yes || enable_static=yes
10435 { echo "$as_me:$LINENO: result: $enable_static" >&5
10436 echo "${ECHO_T}$enable_static" >&6; }
10438 # The else clause should only fire when bootstrapping the
10439 # libtool distribution, otherwise you forgot to ship ltmain.sh
10440 # with your package, and you will get complaints that there are
10441 # no rules to generate ltmain.sh.
10442 if test -f "$ltmain"; then
10443 # See if we are running on zsh, and set the options which allow our commands through
10444 # without removal of \ escapes.
10445 if test -n "${ZSH_VERSION+set}" ; then
10446 setopt NO_GLOB_SUBST
10448 # Now quote all the things that may contain metacharacters while being
10449 # careful not to overquote the AC_SUBSTed values. We take copies of the
10450 # variables and quote the copies for generation of the libtool script.
10451 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10455 deplibs_check_method reload_flag reload_cmds need_locks \
10456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10457 lt_cv_sys_global_symbol_to_c_name_address \
10458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10459 old_postinstall_cmds old_postuninstall_cmds \
10463 lt_prog_compiler_wl \
10464 lt_prog_compiler_pic \
10465 lt_prog_compiler_static \
10466 lt_prog_compiler_no_builtin_flag \
10467 export_dynamic_flag_spec \
10468 thread_safe_flag_spec \
10469 whole_archive_flag_spec \
10470 enable_shared_with_static_runtimes \
10472 old_archive_from_new_cmds \
10477 compiler_lib_search_path \
10478 compiler_lib_search_dirs \
10480 archive_expsym_cmds \
10482 postuninstall_cmds \
10483 old_archive_from_expsyms_cmds \
10484 allow_undefined_flag \
10485 no_undefined_flag \
10486 export_symbols_cmds \
10487 hardcode_libdir_flag_spec \
10488 hardcode_libdir_flag_spec_ld \
10489 hardcode_libdir_separator \
10490 hardcode_automatic \
10492 module_expsym_cmds \
10493 lt_cv_prog_compiler_c_o \
10496 include_expsyms; do
10499 old_archive_cmds | \
10500 old_archive_from_new_cmds | \
10502 archive_expsym_cmds | \
10504 module_expsym_cmds | \
10505 old_archive_from_expsyms_cmds | \
10506 export_symbols_cmds | \
10507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10508 postinstall_cmds | postuninstall_cmds | \
10509 old_postinstall_cmds | old_postuninstall_cmds | \
10510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10511 # Double-quote double-evaled strings.
10512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10521 *'\$0 --fallback-echo"')
10522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10526 cfgfile="${ofile}T"
10527 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10529 { echo "$as_me:$LINENO: creating $ofile" >&5
10530 echo "$as_me: creating $ofile" >&6;}
10532 cat <<__EOF__ >> "$cfgfile"
10535 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10536 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10537 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10539 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10540 # Free Software Foundation, Inc.
10542 # This file is part of GNU Libtool:
10543 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10545 # This program is free software; you can redistribute it and/or modify
10546 # it under the terms of the GNU General Public License as published by
10547 # the Free Software Foundation; either version 2 of the License, or
10548 # (at your option) any later version.
10550 # This program is distributed in the hope that it will be useful, but
10551 # WITHOUT ANY WARRANTY; without even the implied warranty of
10552 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10553 # General Public License for more details.
10555 # You should have received a copy of the GNU General Public License
10556 # along with this program; if not, write to the Free Software
10557 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10559 # As a special exception to the GNU General Public License, if you
10560 # distribute this file as part of a program that contains a
10561 # configuration script generated by Autoconf, you may include it under
10562 # the same distribution terms that you use for the rest of that program.
10564 # A sed program that does not truncate output.
10567 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10568 Xsed="$SED -e 1s/^X//"
10570 # The HP-UX ksh and POSIX shell print the target directory to stdout
10571 # if CDPATH is set.
10572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10574 # The names of the tagged configurations supported by this script.
10577 # ### BEGIN LIBTOOL CONFIG
10579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10581 # Shell to use when invoking shell scripts.
10584 # Whether or not to build shared libraries.
10585 build_libtool_libs=$enable_shared
10587 # Whether or not to build static libraries.
10588 build_old_libs=$enable_static
10590 # Whether or not to add -lc for building shared libraries.
10591 build_libtool_need_lc=$archive_cmds_need_lc
10593 # Whether or not to disallow shared libs when runtime libs are static
10594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10596 # Whether or not to optimize for fast installation.
10597 fast_install=$enable_fast_install
10600 host_alias=$host_alias
10604 # The build system.
10605 build_alias=$build_alias
10609 # An echo program that does not interpret backslashes.
10614 AR_FLAGS=$lt_AR_FLAGS
10619 # LTCC compiler flags.
10620 LTCFLAGS=$lt_LTCFLAGS
10622 # A language-specific compiler.
10625 # Is the compiler the GNU C compiler?
10631 # The linker used to build libraries.
10634 # Whether we need hard or soft links.
10637 # A BSD-compatible nm program.
10640 # A symbol stripping program
10643 # Used to examine libraries when file_magic_cmd begins "file"
10644 MAGIC_CMD=$MAGIC_CMD
10646 # Used on cygwin: DLL creation program.
10649 # Used on cygwin: object dumper.
10652 # Used on cygwin: assembler.
10655 # The name of the directory that contains temporary libtool files.
10658 # How to create reloadable object files.
10659 reload_flag=$lt_reload_flag
10660 reload_cmds=$lt_reload_cmds
10662 # How to pass a linker flag through the compiler.
10663 wl=$lt_lt_prog_compiler_wl
10665 # Object file suffix (normally "o").
10666 objext="$ac_objext"
10668 # Old archive suffix (normally "a").
10671 # Shared library suffix (normally ".so").
10672 shrext_cmds='$shrext_cmds'
10674 # Executable file suffix (normally "").
10677 # Additional compiler flags for building library objects.
10678 pic_flag=$lt_lt_prog_compiler_pic
10681 # What is the maximum length of a command?
10682 max_cmd_len=$lt_cv_sys_max_cmd_len
10684 # Does compiler simultaneously support -c and -o options?
10685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10687 # Must we lock files when doing compilation?
10688 need_locks=$lt_need_locks
10690 # Do we need the lib prefix for modules?
10691 need_lib_prefix=$need_lib_prefix
10693 # Do we need a version for libraries?
10694 need_version=$need_version
10696 # Whether dlopen is supported.
10697 dlopen_support=$enable_dlopen
10699 # Whether dlopen of programs is supported.
10700 dlopen_self=$enable_dlopen_self
10702 # Whether dlopen of statically linked programs is supported.
10703 dlopen_self_static=$enable_dlopen_self_static
10705 # Compiler flag to prevent dynamic linking.
10706 link_static_flag=$lt_lt_prog_compiler_static
10708 # Compiler flag to turn off builtin functions.
10709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10711 # Compiler flag to allow reflexive dlopens.
10712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10714 # Compiler flag to generate shared objects directly from archives.
10715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10717 # Compiler flag to generate thread-safe objects.
10718 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10720 # Library versioning type.
10721 version_type=$version_type
10723 # Format of library name prefix.
10724 libname_spec=$lt_libname_spec
10726 # List of archive names. First name is the real one, the rest are links.
10727 # The last name is the one that the linker finds with -lNAME.
10728 library_names_spec=$lt_library_names_spec
10730 # The coded name of the library, if different from the real name.
10731 soname_spec=$lt_soname_spec
10733 # Commands used to build and install an old-style archive.
10735 old_archive_cmds=$lt_old_archive_cmds
10736 old_postinstall_cmds=$lt_old_postinstall_cmds
10737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10739 # Create an old-style archive from a shared archive.
10740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10742 # Create a temporary old-style archive to link instead of a shared archive.
10743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10745 # Commands used to build and install a shared archive.
10746 archive_cmds=$lt_archive_cmds
10747 archive_expsym_cmds=$lt_archive_expsym_cmds
10748 postinstall_cmds=$lt_postinstall_cmds
10749 postuninstall_cmds=$lt_postuninstall_cmds
10751 # Commands used to build a loadable module (assumed same as above if empty)
10752 module_cmds=$lt_module_cmds
10753 module_expsym_cmds=$lt_module_expsym_cmds
10755 # Commands to strip libraries.
10756 old_striplib=$lt_old_striplib
10757 striplib=$lt_striplib
10759 # Dependencies to place before the objects being linked to create a
10761 predep_objects=$lt_predep_objects
10763 # Dependencies to place after the objects being linked to create a
10765 postdep_objects=$lt_postdep_objects
10767 # Dependencies to place before the objects being linked to create a
10769 predeps=$lt_predeps
10771 # Dependencies to place after the objects being linked to create a
10773 postdeps=$lt_postdeps
10775 # The directories searched by this compiler when creating a shared
10777 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10779 # The library search path used internally by the compiler when linking
10780 # a shared library.
10781 compiler_lib_search_path=$lt_compiler_lib_search_path
10783 # Method to check whether dependent libraries are shared objects.
10784 deplibs_check_method=$lt_deplibs_check_method
10786 # Command to use when deplibs_check_method == file_magic.
10787 file_magic_cmd=$lt_file_magic_cmd
10789 # Flag that allows shared libraries with undefined symbols to be built.
10790 allow_undefined_flag=$lt_allow_undefined_flag
10792 # Flag that forces no undefined symbols.
10793 no_undefined_flag=$lt_no_undefined_flag
10795 # Commands used to finish a libtool library installation in a directory.
10796 finish_cmds=$lt_finish_cmds
10798 # Same as above, but a single script fragment to be evaled but not shown.
10799 finish_eval=$lt_finish_eval
10801 # Take the output of nm and produce a listing of raw symbols and C names.
10802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10804 # Transform the output of nm in a proper C declaration
10805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10807 # Transform the output of nm in a C name address pair
10808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10810 # This is the shared library runtime path variable.
10811 runpath_var=$runpath_var
10813 # This is the shared library path variable.
10814 shlibpath_var=$shlibpath_var
10816 # Is shlibpath searched before the hard-coded library search path?
10817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10819 # How to hardcode a shared library path into an executable.
10820 hardcode_action=$hardcode_action
10822 # Whether we should hardcode library paths into libraries.
10823 hardcode_into_libs=$hardcode_into_libs
10825 # Flag to hardcode \$libdir into a binary during linking.
10826 # This must work even if \$libdir does not exist.
10827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10829 # If ld is used when linking, flag to hardcode \$libdir into
10830 # a binary during linking. This must work even if \$libdir does
10832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10834 # Whether we need a single -rpath flag with a separated argument.
10835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_direct=$hardcode_direct
10841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10842 # resulting binary.
10843 hardcode_minus_L=$hardcode_minus_L
10845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10846 # the resulting binary.
10847 hardcode_shlibpath_var=$hardcode_shlibpath_var
10849 # Set to yes if building a shared library automatically hardcodes DIR into the library
10850 # and all subsequent libraries and executables linked against it.
10851 hardcode_automatic=$hardcode_automatic
10853 # Variables whose values should be saved in libtool wrapper scripts and
10854 # restored at relink time.
10855 variables_saved_for_relink="$variables_saved_for_relink"
10857 # Whether libtool must link a program against all its dependency libraries.
10858 link_all_deplibs=$link_all_deplibs
10860 # Compile-time system search path for libraries
10861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10863 # Run-time system search path for libraries
10864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10866 # Fix the shell variable \$srcfile for the compiler.
10867 fix_srcfile_path=$lt_fix_srcfile_path
10869 # Set to yes if exported symbols are required.
10870 always_export_symbols=$always_export_symbols
10872 # The commands to list exported symbols.
10873 export_symbols_cmds=$lt_export_symbols_cmds
10875 # The commands to extract the exported symbol list from a shared archive.
10876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10878 # Symbols that should not be listed in the preloaded symbols.
10879 exclude_expsyms=$lt_exclude_expsyms
10881 # Symbols that must always be exported.
10882 include_expsyms=$lt_include_expsyms
10884 # ### END LIBTOOL CONFIG
10891 cat <<\EOF >> "$cfgfile"
10893 # AIX sometimes has problems with the GCC collect2 program. For some
10894 # reason, if we set the COLLECT_NAMES environment variable, the problems
10895 # vanish in a puff of smoke.
10896 if test "X${COLLECT_NAMES+set}" != Xset; then
10898 export COLLECT_NAMES
10904 # We use sed instead of cat because bash on DJGPP gets confused if
10905 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10906 # text mode, it properly converts lines to CR/LF. This bash problem
10907 # is reportedly fixed, but why not run on old versions too?
10908 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10910 mv -f "$cfgfile" "$ofile" || \
10911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10915 # If there is no Makefile yet, we rely on a make rule to execute
10916 # `config.status --recheck' to rerun these tests and create the
10917 # libtool script then.
10918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10919 if test -f "$ltmain_in"; then
10920 test -f Makefile && make "$ltmain"
10926 ac_cpp='$CPP $CPPFLAGS'
10927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10934 # Check whether --with-tags was given.
10935 if test "${with_tags+set}" = set; then
10936 withval=$with_tags; tagnames="$withval"
10940 if test -f "$ltmain" && test -n "$tagnames"; then
10941 if test ! -f "${ofile}"; then
10942 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10943 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10946 if test -z "$LTCC"; then
10947 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10948 if test -z "$LTCC"; then
10949 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10950 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10953 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10956 if test -z "$LTCFLAGS"; then
10957 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10960 # Extract list of available tagged configurations in $ofile.
10961 # Note that this assumes the entire list is on one line.
10962 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10965 for tagname in $tagnames; do
10967 # Check whether tagname contains only valid characters
10968 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10970 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10971 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10972 { (exit 1); exit 1; }; }
10976 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10978 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10979 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10980 { (exit 1); exit 1; }; }
10983 # Update the list of available tags.
10984 if test -n "$tagname"; then
10985 echo appending configuration tag \"$tagname\" to $ofile
10989 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10990 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10991 (test "X$CXX" != "Xg++"))) ; then
10993 ac_cpp='$CXXCPP $CPPFLAGS'
10994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11001 archive_cmds_need_lc_CXX=no
11002 allow_undefined_flag_CXX=
11003 always_export_symbols_CXX=no
11004 archive_expsym_cmds_CXX=
11005 export_dynamic_flag_spec_CXX=
11006 hardcode_direct_CXX=no
11007 hardcode_libdir_flag_spec_CXX=
11008 hardcode_libdir_flag_spec_ld_CXX=
11009 hardcode_libdir_separator_CXX=
11010 hardcode_minus_L_CXX=no
11011 hardcode_shlibpath_var_CXX=unsupported
11012 hardcode_automatic_CXX=no
11014 module_expsym_cmds_CXX=
11015 link_all_deplibs_CXX=unknown
11016 old_archive_cmds_CXX=$old_archive_cmds
11017 no_undefined_flag_CXX=
11018 whole_archive_flag_spec_CXX=
11019 enable_shared_with_static_runtimes_CXX=no
11021 # Dependencies to place before and after the object being linked:
11022 predep_objects_CXX=
11023 postdep_objects_CXX=
11026 compiler_lib_search_path_CXX=
11027 compiler_lib_search_dirs_CXX=
11029 # Source file extension for C++ test sources.
11032 # Object file extension for compiled C++ test sources.
11036 # Code to be used in simple compile tests
11037 lt_simple_compile_test_code="int some_variable = 0;"
11039 # Code to be used in simple link tests
11040 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11044 # If no C compiler was specified, use CC.
11047 # If no C compiler flags were specified, use CFLAGS.
11048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11050 # Allow CC to be a program name with arguments.
11054 # save warnings/boilerplate of simple test code
11055 ac_outfile=conftest.$ac_objext
11056 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11058 _lt_compiler_boilerplate=`cat conftest.err`
11061 ac_outfile=conftest.$ac_objext
11062 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11064 _lt_linker_boilerplate=`cat conftest.err`
11068 # Allow CC to be a program name with arguments.
11073 lt_save_with_gnu_ld=$with_gnu_ld
11074 lt_save_path_LD=$lt_cv_path_LD
11075 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11076 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11078 $as_unset lt_cv_prog_gnu_ld
11080 if test -n "${lt_cv_path_LDCXX+set}"; then
11081 lt_cv_path_LD=$lt_cv_path_LDCXX
11083 $as_unset lt_cv_path_LD
11085 test -z "${LDCXX+set}" || LD=$LDCXX
11089 for cc_temp in $compiler""; do
11091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11100 # We don't want -fno-exception wen compiling C++ code, so set the
11101 # no_builtin_flag separately
11102 if test "$GXX" = yes; then
11103 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11105 lt_prog_compiler_no_builtin_flag_CXX=
11108 if test "$GXX" = yes; then
11109 # Set up default GNU C++ configuration
11112 # Check whether --with-gnu-ld was given.
11113 if test "${with_gnu_ld+set}" = set; then
11114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11120 if test "$GCC" = yes; then
11121 # Check if gcc -print-prog-name=ld gives a path.
11122 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11123 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11126 # gcc leaves a trailing carriage return which upsets mingw
11127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11132 # Accept absolute paths.
11134 re_direlt='/[^/][^/]*/\.\./'
11135 # Canonicalize the pathname of ld
11136 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11137 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11138 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11140 test -z "$LD" && LD="$ac_prog"
11143 # If it fails, then pretend we aren't using GCC.
11147 # If it is relative, then search for the first ld in PATH.
11148 with_gnu_ld=unknown
11151 elif test "$with_gnu_ld" = yes; then
11152 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11155 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11158 if test "${lt_cv_path_LD+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 if test -z "$LD"; then
11162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11163 for ac_dir in $PATH; do
11165 test -z "$ac_dir" && ac_dir=.
11166 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11167 lt_cv_path_LD="$ac_dir/$ac_prog"
11168 # Check to see if the program is GNU ld. I'd rather use --version,
11169 # but apparently some variants of GNU ld only accept -v.
11170 # Break only if it was the GNU/non-GNU ld that we prefer.
11171 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11172 *GNU* | *'with BFD'*)
11173 test "$with_gnu_ld" != no && break
11176 test "$with_gnu_ld" != yes && break
11183 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11187 LD="$lt_cv_path_LD"
11188 if test -n "$LD"; then
11189 { echo "$as_me:$LINENO: result: $LD" >&5
11190 echo "${ECHO_T}$LD" >&6; }
11192 { echo "$as_me:$LINENO: result: no" >&5
11193 echo "${ECHO_T}no" >&6; }
11195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11197 { (exit 1); exit 1; }; }
11198 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11200 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11204 case `$LD -v 2>&1 </dev/null` in
11205 *GNU* | *'with BFD'*)
11206 lt_cv_prog_gnu_ld=yes
11209 lt_cv_prog_gnu_ld=no
11213 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11214 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11215 with_gnu_ld=$lt_cv_prog_gnu_ld
11219 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11220 # archiving commands below assume that GNU ld is being used.
11221 if test "$with_gnu_ld" = yes; then
11222 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11223 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'
11225 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11226 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11228 # If archive_cmds runs LD, not CC, wlarc should be empty
11229 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11230 # investigate it a little bit more. (MM)
11233 # ancient GNU ld didn't support --whole-archive et. al.
11234 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11235 grep 'no-whole-archive' > /dev/null; then
11236 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11238 whole_archive_flag_spec_CXX=
11244 # A generic and very simple default shared library creation
11245 # command for GNU C++ for the case where it uses the native
11246 # linker, instead of GNU ld. If possible, this setting should
11247 # overridden to take advantage of the native linker features on
11248 # the platform it is being used on.
11249 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11252 # Commands to make compiler produce verbose output that lists
11253 # what "hidden" libraries, object files and flags are used when
11254 # linking a shared library.
11255 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11263 # PORTME: fill in a description of your system's C++ link characteristics
11264 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11265 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11269 # FIXME: insert proper C++ library support
11273 if test "$host_cpu" = ia64; then
11274 # On IA64, the linker does run time linking by default, so we don't
11275 # have to do anything special.
11276 aix_use_runtimelinking=no
11277 exp_sym_flag='-Bexport'
11280 aix_use_runtimelinking=no
11282 # Test if we are trying to use run time linking or normal
11283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11284 # need to do runtime linking.
11285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11286 for ld_flag in $LDFLAGS; do
11289 aix_use_runtimelinking=yes
11297 exp_sym_flag='-bexport'
11298 no_entry_flag='-bnoentry'
11301 # When large executables or shared objects are built, AIX ld can
11302 # have problems creating the table of contents. If linking a library
11303 # or program results in "error TOC overflow" add -mminimal-toc to
11304 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11305 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11307 archive_cmds_CXX=''
11308 hardcode_direct_CXX=yes
11309 hardcode_libdir_separator_CXX=':'
11310 link_all_deplibs_CXX=yes
11312 if test "$GXX" = yes; then
11313 case $host_os in aix4.[012]|aix4.[012].*)
11314 # We only want to do this on AIX 4.2 and lower, the check
11315 # below for broken collect2 doesn't work under 4.3+
11316 collect2name=`${CC} -print-prog-name=collect2`
11317 if test -f "$collect2name" && \
11318 strings "$collect2name" | grep resolve_lib_name >/dev/null
11320 # We have reworked collect2
11323 # We have old collect2
11324 hardcode_direct_CXX=unsupported
11325 # It fails to find uninstalled libraries when the uninstalled
11326 # path is not listed in the libpath. Setting hardcode_minus_L
11327 # to unsupported forces relinking
11328 hardcode_minus_L_CXX=yes
11329 hardcode_libdir_flag_spec_CXX='-L$libdir'
11330 hardcode_libdir_separator_CXX=
11334 shared_flag='-shared'
11335 if test "$aix_use_runtimelinking" = yes; then
11336 shared_flag="$shared_flag "'${wl}-G'
11340 if test "$host_cpu" = ia64; then
11341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11342 # chokes on -Wl,-G. The following line is correct:
11345 if test "$aix_use_runtimelinking" = yes; then
11346 shared_flag='${wl}-G'
11348 shared_flag='${wl}-bM:SRE'
11353 # It seems that -bexpall does not export symbols beginning with
11354 # underscore (_), so it is better to generate a list of symbols to export.
11355 always_export_symbols_CXX=yes
11356 if test "$aix_use_runtimelinking" = yes; then
11357 # Warning - without using the other runtime loading flags (-brtl),
11358 # -berok will link without error, but may produce a broken library.
11359 allow_undefined_flag_CXX='-berok'
11360 # Determine the default libpath from the value encoded in an empty executable.
11361 cat >conftest.$ac_ext <<_ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (ac_try="$ac_link"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_link") 2>conftest.er1
11385 grep -v '^ *+' conftest.er1 >conftest.err
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } && {
11390 test -z "$ac_cxx_werror_flag" ||
11391 test ! -s conftest.err
11392 } && test -s conftest$ac_exeext &&
11393 $as_test_x conftest$ac_exeext; then
11395 lt_aix_libpath_sed='
11396 /Import File Strings/,/^$/ {
11402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403 # Check for a 64-bit object if we didn't find anything.
11404 if test -z "$aix_libpath"; then
11405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11415 conftest$ac_exeext conftest.$ac_ext
11416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11418 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11420 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"
11422 if test "$host_cpu" = ia64; then
11423 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11424 allow_undefined_flag_CXX="-z nodefs"
11425 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"
11427 # Determine the default libpath from the value encoded in an empty executable.
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_link") 2>conftest.er1
11452 grep -v '^ *+' conftest.er1 >conftest.err
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_cxx_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest$ac_exeext &&
11460 $as_test_x conftest$ac_exeext; then
11462 lt_aix_libpath_sed='
11463 /Import File Strings/,/^$/ {
11469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11470 # Check for a 64-bit object if we didn't find anything.
11471 if test -z "$aix_libpath"; then
11472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11482 conftest$ac_exeext conftest.$ac_ext
11483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11485 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11486 # Warning - without using the other run time loading flags,
11487 # -berok will link without error, but may produce a broken library.
11488 no_undefined_flag_CXX=' ${wl}-bernotok'
11489 allow_undefined_flag_CXX=' ${wl}-berok'
11490 # Exported symbols can be pulled into shared objects from archives
11491 whole_archive_flag_spec_CXX='$convenience'
11492 archive_cmds_need_lc_CXX=yes
11493 # This is similar to how AIX traditionally builds its shared libraries.
11494 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'
11500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11501 allow_undefined_flag_CXX=unsupported
11502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11503 # support --undefined. This deserves some investigation. FIXME
11504 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11511 case $cc_basename in
11513 # FIXME: insert proper C++ library support
11519 cygwin* | mingw* | pw32*)
11520 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11521 # as there is no search path for DLLs.
11522 hardcode_libdir_flag_spec_CXX='-L$libdir'
11523 allow_undefined_flag_CXX=unsupported
11524 always_export_symbols_CXX=no
11525 enable_shared_with_static_runtimes_CXX=yes
11527 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11528 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'
11529 # If the export-symbols file already is a .def file (1st line
11530 # is EXPORTS), use it as is; otherwise, prepend...
11531 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11532 cp $export_symbols $output_objdir/$soname.def;
11534 echo EXPORTS > $output_objdir/$soname.def;
11535 cat $export_symbols >> $output_objdir/$soname.def;
11537 $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'
11542 darwin* | rhapsody*)
11543 archive_cmds_need_lc_CXX=no
11544 hardcode_direct_CXX=no
11545 hardcode_automatic_CXX=yes
11546 hardcode_shlibpath_var_CXX=unsupported
11547 whole_archive_flag_spec_CXX=''
11548 link_all_deplibs_CXX=yes
11549 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11550 if test "$GXX" = yes ; then
11551 output_verbose_link_cmd='echo'
11552 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}"
11553 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11554 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}"
11555 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}"
11556 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11557 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}"
11558 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}"
11561 case $cc_basename in
11563 output_verbose_link_cmd='echo'
11564 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'
11565 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11567 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}'
11568 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}'
11578 case $cc_basename in
11580 # FIXME: insert proper C++ library support
11584 # Green Hills C++ Compiler
11585 # FIXME: insert proper C++ library support
11589 # FIXME: insert proper C++ library support
11595 # C++ shared libraries reported to be fairly broken before switch to ELF
11599 archive_cmds_need_lc_CXX=no
11601 freebsd* | dragonfly*)
11602 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11609 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11610 hardcode_libdir_separator_CXX=:
11611 export_dynamic_flag_spec_CXX='${wl}-E'
11612 hardcode_direct_CXX=yes
11613 hardcode_minus_L_CXX=yes # Not in the search PATH,
11614 # but as the default
11615 # location of the library.
11617 case $cc_basename in
11619 # FIXME: insert proper C++ library support
11623 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'
11624 # Commands to make compiler produce verbose output that lists
11625 # what "hidden" libraries, object files and flags are used when
11626 # linking a shared library.
11628 # There doesn't appear to be a way to prevent this compiler from
11629 # explicitly linking system object files so we need to strip them
11630 # from the output so that they don't get included in the library
11632 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'
11635 if test "$GXX" = yes; then
11636 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'
11638 # FIXME: insert proper C++ library support
11645 if test $with_gnu_ld = no; then
11646 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11647 hardcode_libdir_separator_CXX=:
11652 export_dynamic_flag_spec_CXX='${wl}-E'
11658 hardcode_direct_CXX=no
11659 hardcode_shlibpath_var_CXX=no
11662 hardcode_direct_CXX=yes
11663 hardcode_minus_L_CXX=yes # Not in the search PATH,
11664 # but as the default
11665 # location of the library.
11669 case $cc_basename in
11671 # FIXME: insert proper C++ library support
11677 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11680 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11683 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11686 # Commands to make compiler produce verbose output that lists
11687 # what "hidden" libraries, object files and flags are used when
11688 # linking a shared library.
11690 # There doesn't appear to be a way to prevent this compiler from
11691 # explicitly linking system object files so we need to strip them
11692 # from the output so that they don't get included in the library
11694 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'
11697 if test "$GXX" = yes; then
11698 if test $with_gnu_ld = no; then
11701 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11707 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'
11712 # FIXME: insert proper C++ library support
11719 hardcode_direct_CXX=no
11720 hardcode_shlibpath_var_CXX=no
11721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11722 export_dynamic_flag_spec_CXX='${wl}-E'
11723 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11724 # Instead, shared libraries are loaded at an image base (0x10000000 by
11725 # default) and relocated if they conflict, which is a slow very memory
11726 # consuming and fragmenting process. To avoid this, we pick a random,
11727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11728 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11729 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'
11730 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'
11733 case $cc_basename in
11736 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'
11738 # Archives containing C++ object files must be created using
11739 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11740 # necessary to make sure instantiated templates are included
11742 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11745 if test "$GXX" = yes; then
11746 if test "$with_gnu_ld" = no; then
11747 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'
11749 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'
11752 link_all_deplibs_CXX=yes
11755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11756 hardcode_libdir_separator_CXX=:
11758 linux* | k*bsd*-gnu)
11759 case $cc_basename in
11761 # Kuck and Associates, Inc. (KAI) C++ Compiler
11763 # KCC will only create a shared library if the output file
11764 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11765 # to its proper name (with version) after linking.
11766 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'
11767 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'
11768 # Commands to make compiler produce verbose output that lists
11769 # what "hidden" libraries, object files and flags are used when
11770 # linking a shared library.
11772 # There doesn't appear to be a way to prevent this compiler from
11773 # explicitly linking system object files so we need to strip them
11774 # from the output so that they don't get included in the library
11776 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'
11778 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11781 # Archives containing C++ object files must be created using
11782 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11783 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11788 # version 8.0 and above of icpc choke on multiply defined symbols
11789 # if we add $predep_objects and $postdep_objects, however 7.1 and
11790 # earlier do not add the objects themselves.
11791 case `$CC -V 2>&1` in
11793 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11794 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'
11796 *) # Version 8.0 or newer
11799 ia64*) tmp_idyn=' -i_dynamic';;
11801 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802 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'
11805 archive_cmds_need_lc_CXX=no
11806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11808 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11811 # Portland Group C++ compiler
11812 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11813 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'
11815 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11816 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11817 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'
11821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11822 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'
11824 runpath_var=LD_RUN_PATH
11825 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11826 hardcode_libdir_separator_CXX=:
11828 # Commands to make compiler produce verbose output that lists
11829 # what "hidden" libraries, object files and flags are used when
11830 # linking a shared library.
11832 # There doesn't appear to be a way to prevent this compiler from
11833 # explicitly linking system object files so we need to strip them
11834 # from the output so that they don't get included in the library
11836 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'
11839 case `$CC -V 2>&1 | sed 5q` in
11842 no_undefined_flag_CXX=' -zdefs'
11843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844 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'
11845 hardcode_libdir_flag_spec_CXX='-R$libdir'
11846 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'
11848 # Not sure whether something based on
11849 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11851 output_verbose_link_cmd='echo'
11853 # Archives containing C++ object files must be created using
11854 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11855 # necessary to make sure instantiated templates are included
11857 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11864 # FIXME: insert proper C++ library support
11868 # FIXME: insert proper C++ library support
11872 case $cc_basename in
11874 # FIXME: insert proper C++ library support
11878 # FIXME: insert proper C++ library support
11883 netbsd* | netbsdelf*-gnu)
11884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11885 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11887 hardcode_libdir_flag_spec_CXX='-R$libdir'
11888 hardcode_direct_CXX=yes
11889 hardcode_shlibpath_var_CXX=no
11891 # Workaround some broken pre-1.5 toolchains
11892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11895 # C++ shared libraries are fairly broken
11899 if test -f /usr/libexec/ld.so; then
11900 hardcode_direct_CXX=yes
11901 hardcode_shlibpath_var_CXX=no
11902 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11905 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11906 export_dynamic_flag_spec_CXX='${wl}-E'
11907 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11909 output_verbose_link_cmd='echo'
11915 case $cc_basename in
11917 # Kuck and Associates, Inc. (KAI) C++ Compiler
11919 # KCC will only create a shared library if the output file
11920 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11921 # to its proper name (with version) after linking.
11922 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'
11924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11925 hardcode_libdir_separator_CXX=:
11927 # Archives containing C++ object files must be created using
11928 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11929 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11933 # Rational C++ 2.4.1
11934 # FIXME: insert proper C++ library support
11938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11939 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'
11941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11942 hardcode_libdir_separator_CXX=:
11944 # Commands to make compiler produce verbose output that lists
11945 # what "hidden" libraries, object files and flags are used when
11946 # linking a shared library.
11948 # There doesn't appear to be a way to prevent this compiler from
11949 # explicitly linking system object files so we need to strip them
11950 # from the output so that they don't get included in the library
11952 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'
11955 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11957 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'
11959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960 hardcode_libdir_separator_CXX=:
11962 # Commands to make compiler produce verbose output that lists
11963 # what "hidden" libraries, object files and flags are used when
11964 # linking a shared library.
11965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11968 # FIXME: insert proper C++ library support
11975 case $cc_basename in
11977 # Kuck and Associates, Inc. (KAI) C++ Compiler
11979 # KCC will only create a shared library if the output file
11980 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11981 # to its proper name (with version) after linking.
11982 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'
11984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11985 hardcode_libdir_separator_CXX=:
11987 # Archives containing C++ object files must be created using
11988 # the KAI C++ compiler.
11989 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11992 # Rational C++ 2.4.1
11993 # FIXME: insert proper C++ library support
11997 allow_undefined_flag_CXX=' -expect_unresolved \*'
11998 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'
11999 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12000 echo "-hidden">> $lib.exp~
12001 $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~
12004 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12005 hardcode_libdir_separator_CXX=:
12007 # Commands to make compiler produce verbose output that lists
12008 # what "hidden" libraries, object files and flags are used when
12009 # linking a shared library.
12011 # There doesn't appear to be a way to prevent this compiler from
12012 # explicitly linking system object files so we need to strip them
12013 # from the output so that they don't get included in the library
12015 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'
12018 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12020 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'
12022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12023 hardcode_libdir_separator_CXX=:
12025 # Commands to make compiler produce verbose output that lists
12026 # what "hidden" libraries, object files and flags are used when
12027 # linking a shared library.
12028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12031 # FIXME: insert proper C++ library support
12038 # FIXME: insert proper C++ library support
12042 case $cc_basename in
12045 # FIXME: insert proper C++ library support
12050 # FIXME: insert proper C++ library support
12054 # FIXME: insert proper C++ library support
12060 case $cc_basename in
12062 # Sun C++ 4.2, 5.x and Centerline C++
12063 archive_cmds_need_lc_CXX=yes
12064 no_undefined_flag_CXX=' -zdefs'
12065 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12066 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12067 $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'
12069 hardcode_libdir_flag_spec_CXX='-R$libdir'
12070 hardcode_shlibpath_var_CXX=no
12072 solaris2.[0-5] | solaris2.[0-5].*) ;;
12074 # The compiler driver will combine and reorder linker options,
12075 # but understands `-z linker_flag'.
12076 # Supported since Solaris 2.6 (maybe 2.5.1?)
12077 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12080 link_all_deplibs_CXX=yes
12082 output_verbose_link_cmd='echo'
12084 # Archives containing C++ object files must be created using
12085 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12086 # necessary to make sure instantiated templates are included
12088 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12091 # Green Hills C++ Compiler
12092 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12094 # The C++ compiler must be used to create the archive.
12095 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12098 # GNU C++ compiler with Solaris linker
12099 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12100 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12101 if $CC --version | grep -v '^2\.7' > /dev/null; then
12102 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12103 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12104 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12106 # Commands to make compiler produce verbose output that lists
12107 # what "hidden" libraries, object files and flags are used when
12108 # linking a shared library.
12109 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12111 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12113 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12114 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12115 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12117 # Commands to make compiler produce verbose output that lists
12118 # what "hidden" libraries, object files and flags are used when
12119 # linking a shared library.
12120 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12123 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12125 solaris2.[0-5] | solaris2.[0-5].*) ;;
12127 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12135 no_undefined_flag_CXX='${wl}-z,text'
12136 archive_cmds_need_lc_CXX=no
12137 hardcode_shlibpath_var_CXX=no
12138 runpath_var='LD_RUN_PATH'
12140 case $cc_basename in
12142 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151 sysv5* | sco3.2v5* | sco5v6*)
12152 # Note: We can NOT use -z defs as we might desire, because we do not
12153 # link with -lc, and that would cause any symbols used from libc to
12154 # always be unresolved, which means just about no library would
12155 # ever link correctly. If we're not using GNU ld we use -z text
12156 # though, which does catch some bad symbols but isn't as heavy-handed
12158 # For security reasons, it is highly recommended that you always
12159 # use absolute paths for naming shared libraries, and exclude the
12160 # DT_RUNPATH tag from executables and libraries. But doing so
12161 # requires that you compile everything twice, which is a pain.
12162 # So that behaviour is only enabled if SCOABSPATH is set to a
12163 # non-empty value in the environment. Most likely only useful for
12164 # creating official distributions of packages.
12165 # This is a hack until libtool officially supports absolute path
12166 # names for shared libraries.
12167 no_undefined_flag_CXX='${wl}-z,text'
12168 allow_undefined_flag_CXX='${wl}-z,nodefs'
12169 archive_cmds_need_lc_CXX=no
12170 hardcode_shlibpath_var_CXX=no
12171 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12172 hardcode_libdir_separator_CXX=':'
12173 link_all_deplibs_CXX=yes
12174 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12175 runpath_var='LD_RUN_PATH'
12177 case $cc_basename in
12179 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12183 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12184 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12189 case $cc_basename in
12191 # NonStop-UX NCC 3.20
12192 # FIXME: insert proper C++ library support
12196 # FIXME: insert proper C++ library support
12202 # FIXME: insert proper C++ library support
12206 # FIXME: insert proper C++ library support
12210 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12211 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12212 test "$ld_shlibs_CXX" = no && can_build_shared=no
12217 cat > conftest.$ac_ext <<EOF
12221 Foo (void) { a = 0; }
12227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; then
12232 # Parse the compiler output and extract the necessary
12233 # objects, libraries and library flags.
12235 # Sentinel used to keep track of whether or not we are before
12236 # the conftest object file.
12237 pre_test_object_deps_done=no
12239 # The `*' in the case matches for architectures that use `case' in
12240 # $output_verbose_cmd can trigger glob expansion during the loop
12241 # eval without this substitution.
12242 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12244 for p in `eval $output_verbose_link_cmd`; do
12248 # Some compilers place space between "-{L,R}" and the path.
12249 # Remove the space.
12250 if test $p = "-L" \
12251 || test $p = "-R"; then
12258 if test "$pre_test_object_deps_done" = no; then
12261 # Internal compiler library paths should come after those
12262 # provided the user. The postdeps already come after the
12263 # user supplied libs so there is no need to process them.
12264 if test -z "$compiler_lib_search_path_CXX"; then
12265 compiler_lib_search_path_CXX="${prev}${p}"
12267 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12270 # The "-l" case would never come before the object being
12271 # linked, so don't bother handling this case.
12274 if test -z "$postdeps_CXX"; then
12275 postdeps_CXX="${prev}${p}"
12277 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12283 # This assumes that the test object file only shows up
12284 # once in the compiler output.
12285 if test "$p" = "conftest.$objext"; then
12286 pre_test_object_deps_done=yes
12290 if test "$pre_test_object_deps_done" = no; then
12291 if test -z "$predep_objects_CXX"; then
12292 predep_objects_CXX="$p"
12294 predep_objects_CXX="$predep_objects_CXX $p"
12297 if test -z "$postdep_objects_CXX"; then
12298 postdep_objects_CXX="$p"
12300 postdep_objects_CXX="$postdep_objects_CXX $p"
12305 *) ;; # Ignore the rest.
12313 echo "libtool.m4: error: problem compiling CXX test program"
12316 $rm -f confest.$objext
12318 compiler_lib_search_dirs_CXX=
12319 if test -n "$compiler_lib_search_path_CXX"; then
12320 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12323 # PORTME: override above test on systems where it is broken
12326 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12327 # hack all around it, let's just trust "g++" to DTRT.
12328 predep_objects_CXX=
12329 postdep_objects_CXX=
12334 case `$CC -V 2>&1 | sed 5q` in
12338 # The more standards-conforming stlport4 library is
12339 # incompatible with the Cstd library. Avoid specifying
12340 # it if it's in CXXFLAGS. Ignore libCrun as
12341 # -library=stlport4 depends on it.
12342 case " $CXX $CXXFLAGS " in
12343 *" -library=stlport4 "*)
12344 solaris_use_stlport4=yes
12347 if test "$solaris_use_stlport4" != yes; then
12348 postdeps_CXX='-library=Cstd -library=Crun'
12355 case $cc_basename in
12357 # The more standards-conforming stlport4 library is
12358 # incompatible with the Cstd library. Avoid specifying
12359 # it if it's in CXXFLAGS. Ignore libCrun as
12360 # -library=stlport4 depends on it.
12361 case " $CXX $CXXFLAGS " in
12362 *" -library=stlport4 "*)
12363 solaris_use_stlport4=yes
12367 # Adding this requires a known-good setup of shared libraries for
12368 # Sun compiler versions before 5.6, else PIC objects from an old
12369 # archive will be linked into the output, leading to subtle bugs.
12370 if test "$solaris_use_stlport4" != yes; then
12371 postdeps_CXX='-library=Cstd -library=Crun'
12378 case " $postdeps_CXX " in
12379 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12382 lt_prog_compiler_wl_CXX=
12383 lt_prog_compiler_pic_CXX=
12384 lt_prog_compiler_static_CXX=
12386 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12389 # C++ specific cases for pic, static, wl, etc.
12390 if test "$GXX" = yes; then
12391 lt_prog_compiler_wl_CXX='-Wl,'
12392 lt_prog_compiler_static_CXX='-static'
12396 # All AIX code is PIC.
12397 if test "$host_cpu" = ia64; then
12398 # AIX 5 now supports IA64 processor
12399 lt_prog_compiler_static_CXX='-Bstatic'
12403 # FIXME: we need at least 68020 code to build shared libraries, but
12404 # adding the `-m68020' flag to GCC prevents building anything better,
12406 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12409 # PIC is the default for these OSes.
12411 mingw* | cygwin* | os2* | pw32*)
12412 # This hack is so that the source file can tell whether it is being
12413 # built for inclusion in a dll (and should export symbols for example).
12414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12415 # (--disable-auto-import) libraries
12416 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12418 darwin* | rhapsody*)
12419 # PIC is the default on this platform
12420 # Common symbols not allowed in MH_DYLIB files
12421 lt_prog_compiler_pic_CXX='-fno-common'
12424 # DJGPP does not support shared libraries at all
12425 lt_prog_compiler_pic_CXX=
12428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12429 # Instead, we relocate shared libraries at runtime.
12432 if test -d /usr/nec; then
12433 lt_prog_compiler_pic_CXX=-Kconform_pic
12437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12438 # not for PA HP-UX.
12443 lt_prog_compiler_pic_CXX='-fPIC'
12448 lt_prog_compiler_pic_CXX='-fPIC'
12454 # All AIX code is PIC.
12455 if test "$host_cpu" = ia64; then
12456 # AIX 5 now supports IA64 processor
12457 lt_prog_compiler_static_CXX='-Bstatic'
12459 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12463 case $cc_basename in
12465 # Green Hills C++ Compiler
12466 # _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"
12471 # PIC is the default on this platform
12472 # Common symbols not allowed in MH_DYLIB files
12473 case $cc_basename in
12475 lt_prog_compiler_pic_CXX='-qnocommon'
12476 lt_prog_compiler_wl_CXX='-Wl,'
12481 case $cc_basename in
12483 lt_prog_compiler_pic_CXX='-KPIC'
12486 # Green Hills C++ Compiler
12487 lt_prog_compiler_pic_CXX='-pic'
12493 freebsd* | dragonfly*)
12494 # FreeBSD uses GNU C++
12496 hpux9* | hpux10* | hpux11*)
12497 case $cc_basename in
12499 lt_prog_compiler_wl_CXX='-Wl,'
12500 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12501 if test "$host_cpu" != ia64; then
12502 lt_prog_compiler_pic_CXX='+Z'
12506 lt_prog_compiler_wl_CXX='-Wl,'
12507 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12513 lt_prog_compiler_pic_CXX='+Z'
12522 # This is c89, which is MS Visual C++ (no shared libs)
12523 # Anyone wants to do a port?
12525 irix5* | irix6* | nonstopux*)
12526 case $cc_basename in
12528 lt_prog_compiler_wl_CXX='-Wl,'
12529 lt_prog_compiler_static_CXX='-non_shared'
12530 # CC pic flag -KPIC is the default.
12536 linux* | k*bsd*-gnu)
12537 case $cc_basename in
12540 lt_prog_compiler_wl_CXX='--backend -Wl,'
12541 lt_prog_compiler_pic_CXX='-fPIC'
12545 lt_prog_compiler_wl_CXX='-Wl,'
12546 lt_prog_compiler_pic_CXX='-KPIC'
12547 lt_prog_compiler_static_CXX='-static'
12550 # Portland Group C++ compiler.
12551 lt_prog_compiler_wl_CXX='-Wl,'
12552 lt_prog_compiler_pic_CXX='-fpic'
12553 lt_prog_compiler_static_CXX='-Bstatic'
12557 # Make sure the PIC flag is empty. It appears that all Alpha
12558 # Linux and Compaq Tru64 Unix objects are PIC.
12559 lt_prog_compiler_pic_CXX=
12560 lt_prog_compiler_static_CXX='-non_shared'
12563 case `$CC -V 2>&1 | sed 5q` in
12566 lt_prog_compiler_pic_CXX='-KPIC'
12567 lt_prog_compiler_static_CXX='-Bstatic'
12568 lt_prog_compiler_wl_CXX='-Qoption ld '
12579 case $cc_basename in
12581 lt_prog_compiler_pic_CXX='-W c,exportall'
12587 netbsd* | netbsdelf*-gnu)
12589 osf3* | osf4* | osf5*)
12590 case $cc_basename in
12592 lt_prog_compiler_wl_CXX='--backend -Wl,'
12595 # Rational C++ 2.4.1
12596 lt_prog_compiler_pic_CXX='-pic'
12599 # Digital/Compaq C++
12600 lt_prog_compiler_wl_CXX='-Wl,'
12601 # Make sure the PIC flag is empty. It appears that all Alpha
12602 # Linux and Compaq Tru64 Unix objects are PIC.
12603 lt_prog_compiler_pic_CXX=
12604 lt_prog_compiler_static_CXX='-non_shared'
12613 case $cc_basename in
12615 # Sun C++ 4.2, 5.x and Centerline C++
12616 lt_prog_compiler_pic_CXX='-KPIC'
12617 lt_prog_compiler_static_CXX='-Bstatic'
12618 lt_prog_compiler_wl_CXX='-Qoption ld '
12621 # Green Hills C++ Compiler
12622 lt_prog_compiler_pic_CXX='-PIC'
12629 case $cc_basename in
12632 lt_prog_compiler_pic_CXX='-pic'
12633 lt_prog_compiler_static_CXX='-Bstatic'
12637 lt_prog_compiler_pic_CXX='-pic'
12644 case $cc_basename in
12646 # NonStop-UX NCC 3.20
12647 lt_prog_compiler_pic_CXX='-KPIC'
12653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12654 case $cc_basename in
12656 lt_prog_compiler_wl_CXX='-Wl,'
12657 lt_prog_compiler_pic_CXX='-KPIC'
12658 lt_prog_compiler_static_CXX='-Bstatic'
12665 lt_prog_compiler_can_build_shared_CXX=no
12670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12671 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12674 # Check to make sure the PIC flag actually works.
12676 if test -n "$lt_prog_compiler_pic_CXX"; then
12678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12680 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 lt_cv_prog_compiler_pic_works_CXX=no
12684 ac_outfile=conftest.$ac_objext
12685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12686 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12687 # Insert the option either (1) after the last *FLAGS variable, or
12688 # (2) before a word containing "conftest.", or (3) at the end.
12689 # Note that $ac_compile itself does not contain backslashes and begins
12690 # with a dollar sign (not a hyphen), so the echo should work correctly.
12691 # The option is referenced via a variable to avoid confusing sed.
12692 lt_compile=`echo "$ac_compile" | $SED \
12693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12695 -e 's:$: $lt_compiler_flag:'`
12696 (eval echo "\"\$as_me:12696: $lt_compile\"" >&5)
12697 (eval "$lt_compile" 2>conftest.err)
12699 cat conftest.err >&5
12700 echo "$as_me:12700: \$? = $ac_status" >&5
12701 if (exit $ac_status) && test -s "$ac_outfile"; then
12702 # The compiler can only warn and ignore the option if not recognized
12703 # So say no if there are warnings other than the usual output.
12704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12707 lt_cv_prog_compiler_pic_works_CXX=yes
12713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12714 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12716 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12717 case $lt_prog_compiler_pic_CXX in
12719 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12722 lt_prog_compiler_pic_CXX=
12723 lt_prog_compiler_can_build_shared_CXX=no
12728 # For platforms which do not support PIC, -DPIC is meaningless:
12730 lt_prog_compiler_pic_CXX=
12733 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12738 # Check to make sure the static flag actually works.
12740 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12741 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12742 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12743 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 lt_cv_prog_compiler_static_works_CXX=no
12747 save_LDFLAGS="$LDFLAGS"
12748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12751 # The linker can only warn and ignore the option if not recognized
12752 # So say no if there are warnings
12753 if test -s conftest.err; then
12754 # Append any errors to the config.log.
12755 cat conftest.err 1>&5
12756 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12758 if diff conftest.exp conftest.er2 >/dev/null; then
12759 lt_cv_prog_compiler_static_works_CXX=yes
12762 lt_cv_prog_compiler_static_works_CXX=yes
12766 LDFLAGS="$save_LDFLAGS"
12769 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12770 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12772 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12775 lt_prog_compiler_static_CXX=
12779 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12781 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 lt_cv_prog_compiler_c_o_CXX=no
12785 $rm -r conftest 2>/dev/null
12789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12791 lt_compiler_flag="-o out/conftest2.$ac_objext"
12792 # Insert the option either (1) after the last *FLAGS variable, or
12793 # (2) before a word containing "conftest.", or (3) at the end.
12794 # Note that $ac_compile itself does not contain backslashes and begins
12795 # with a dollar sign (not a hyphen), so the echo should work correctly.
12796 lt_compile=`echo "$ac_compile" | $SED \
12797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12799 -e 's:$: $lt_compiler_flag:'`
12800 (eval echo "\"\$as_me:12800: $lt_compile\"" >&5)
12801 (eval "$lt_compile" 2>out/conftest.err)
12803 cat out/conftest.err >&5
12804 echo "$as_me:12804: \$? = $ac_status" >&5
12805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12807 # The compiler can only warn and ignore the option if not recognized
12808 # So say no if there are warnings
12809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12812 lt_cv_prog_compiler_c_o_CXX=yes
12817 # SGI C++ compiler will create directory out/ii_files/ for
12818 # template instantiation
12819 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12820 $rm out/* && rmdir out
12826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12827 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12830 hard_links="nottested"
12831 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12832 # do not overwrite the value of need_locks provided by the user
12833 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12834 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12839 ln conftest.a conftest.b 2>&5 || hard_links=no
12840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12841 { echo "$as_me:$LINENO: result: $hard_links" >&5
12842 echo "${ECHO_T}$hard_links" >&6; }
12843 if test "$hard_links" = no; then
12844 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12845 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12852 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12855 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12858 # If we're using GNU nm, then we don't want the "-C" option.
12859 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12860 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12861 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'
12863 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'
12867 export_symbols_cmds_CXX="$ltdll_cmds"
12870 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'
12872 linux* | k*bsd*-gnu)
12873 link_all_deplibs_CXX=no
12876 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12879 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12881 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12882 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12883 test "$ld_shlibs_CXX" = no && can_build_shared=no
12886 # Do we need to explicitly link libc?
12888 case "x$archive_cmds_need_lc_CXX" in
12890 # Assume -lc should be added
12891 archive_cmds_need_lc_CXX=yes
12893 if test "$enable_shared" = yes && test "$GCC" = yes; then
12894 case $archive_cmds_CXX in
12896 # FIXME: we may have to deal with multi-command sequences.
12899 # Test whether the compiler implicitly links with -lc since on some
12900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12901 # to ld, don't add -lc before -lgcc.
12902 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } 2>conftest.err; then
12914 libobjs=conftest.$ac_objext
12916 wl=$lt_prog_compiler_wl_CXX
12917 pic_flag=$lt_prog_compiler_pic_CXX
12923 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12924 allow_undefined_flag_CXX=
12925 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12926 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }
12931 archive_cmds_need_lc_CXX=no
12933 archive_cmds_need_lc_CXX=yes
12935 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12937 cat conftest.err 1>&5
12940 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12941 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12948 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12950 library_names_spec=
12951 libname_spec='lib$name'
12955 postuninstall_cmds=
12959 shlibpath_overrides_runpath=unknown
12961 dynamic_linker="$host_os ld.so"
12962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12964 need_lib_prefix=unknown
12965 hardcode_into_libs=no
12967 # when you set need_version to no, make sure it does not cause -set_version
12968 # flags to be left without arguments
12969 need_version=unknown
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12975 shlibpath_var=LIBPATH
12977 # AIX 3 has no versioning support, so we append a major version to the name.
12978 soname_spec='${libname}${release}${shared_ext}$major'
12985 hardcode_into_libs=yes
12986 if test "$host_cpu" = ia64; then
12987 # AIX 5 supports IA64
12988 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12989 shlibpath_var=LD_LIBRARY_PATH
12991 # With GCC up to 2.95.x, collect2 would create an import file
12992 # for dependence libraries. The import file would start with
12993 # the line `#! .'. This would cause the generated library to
12994 # depend on `.', always an invalid library. This was fixed in
12995 # development snapshots of GCC prior to 3.0.
12997 aix4 | aix4.[01] | aix4.[01].*)
12998 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13000 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13003 can_build_shared=no
13007 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13008 # soname into executable. Probably we can add versioning support to
13009 # collect2, so additional links can be useful in future.
13010 if test "$aix_use_runtimelinking" = yes; then
13011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13012 # instead of lib<name>.a to let people know that these are not
13013 # typical AIX shared libraries.
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13016 # We preserve .a as extension for shared libraries through AIX4.2
13017 # and later when we are not doing run time linking.
13018 library_names_spec='${libname}${release}.a $libname.a'
13019 soname_spec='${libname}${release}${shared_ext}$major'
13021 shlibpath_var=LIBPATH
13026 library_names_spec='$libname.ixlibrary $libname.a'
13027 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13028 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'
13032 library_names_spec='${libname}${shared_ext}'
13033 dynamic_linker="$host_os ld.so"
13034 shlibpath_var=LIBRARY_PATH
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041 soname_spec='${libname}${release}${shared_ext}$major'
13042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13046 # the default ld.so.conf also contains /usr/contrib/lib and
13047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13048 # libtool to hard-code these into programs
13051 cygwin* | mingw* | pw32*)
13052 version_type=windows
13057 case $GCC,$host_os in
13058 yes,cygwin* | yes,mingw* | yes,pw32*)
13059 library_names_spec='$libname.dll.a'
13060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13061 postinstall_cmds='base_file=`basename \${file}`~
13062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13063 dldir=$destdir/`dirname \$dlpath`~
13064 test -d \$dldir || mkdir -p \$dldir~
13065 $install_prog $dir/$dlname \$dldir/$dlname~
13066 chmod a+x \$dldir/$dlname'
13067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13068 dlpath=$dir/\$dldll~
13070 shlibpath_overrides_runpath=yes
13074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13076 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13079 # MinGW DLLs use traditional 'lib' prefix
13080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13082 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13083 # It is most probably a Windows format PATH printed by
13084 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13085 # path with ; separators, and with drive letters. We can handle the
13086 # drive letters (cygwin fileutils understands them), so leave them,
13087 # especially as we might pass files found there to a mingw objdump,
13088 # which wouldn't understand a cygwinified path. Ahh.
13089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13095 # pw32 DLLs use 'pw' prefix rather than 'lib'
13096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13105 dynamic_linker='Win32 ld.exe'
13106 # FIXME: first we should search . and the directory the executable is in
13110 darwin* | rhapsody*)
13111 dynamic_linker="$host_os dyld"
13112 version_type=darwin
13115 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13116 soname_spec='${libname}${release}${major}$shared_ext'
13117 shlibpath_overrides_runpath=yes
13118 shlibpath_var=DYLD_LIBRARY_PATH
13119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13129 soname_spec='${libname}${release}${shared_ext}$major'
13130 shlibpath_var=LD_LIBRARY_PATH
13137 freebsd* | dragonfly*)
13138 # DragonFly does not have aout. When/if they implement a new
13139 # versioning mechanism, adjust this.
13140 if test -x /usr/bin/objformat; then
13141 objformat=`/usr/bin/objformat`
13144 freebsd[123]*) objformat=aout ;;
13145 *) objformat=elf ;;
13148 version_type=freebsd-$objformat
13149 case $version_type in
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13160 shlibpath_var=LD_LIBRARY_PATH
13163 shlibpath_overrides_runpath=yes
13165 freebsd3.[01]* | freebsdelf3.[01]*)
13166 shlibpath_overrides_runpath=yes
13167 hardcode_into_libs=yes
13169 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13170 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13171 shlibpath_overrides_runpath=no
13172 hardcode_into_libs=yes
13174 *) # from 4.6 on, and DragonFly
13175 shlibpath_overrides_runpath=yes
13176 hardcode_into_libs=yes
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 hardcode_into_libs=yes
13191 hpux9* | hpux10* | hpux11*)
13192 # Give a soname corresponding to the major version so that dld.sl refuses to
13193 # link against other versions.
13200 hardcode_into_libs=yes
13201 dynamic_linker="$host_os dld.so"
13202 shlibpath_var=LD_LIBRARY_PATH
13203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 if test "X$HPUX_IA64_MODE" = X32; then
13207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13215 hardcode_into_libs=yes
13216 dynamic_linker="$host_os dld.sl"
13217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13226 dynamic_linker="$host_os dld.sl"
13227 shlibpath_var=SHLIB_PATH
13228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13230 soname_spec='${libname}${release}${shared_ext}$major'
13233 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13234 postinstall_cmds='chmod 555 $lib'
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13242 soname_spec='${libname}${release}${shared_ext}$major'
13243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13244 shlibpath_var=LD_LIBRARY_PATH
13245 shlibpath_overrides_runpath=no
13246 hardcode_into_libs=yes
13249 irix5* | irix6* | nonstopux*)
13251 nonstopux*) version_type=nonstopux ;;
13253 if test "$lt_cv_prog_gnu_ld" = yes; then
13261 soname_spec='${libname}${release}${shared_ext}$major'
13262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13264 irix5* | nonstopux*)
13265 libsuff= shlibsuff=
13268 case $LD in # libtool.m4 will add one of these switches to LD
13269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13270 libsuff= shlibsuff= libmagic=32-bit;;
13271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13272 libsuff=32 shlibsuff=N32 libmagic=N32;;
13273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13275 *) libsuff= shlibsuff= libmagic=never-match;;
13279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13280 shlibpath_overrides_runpath=no
13281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13283 hardcode_into_libs=yes
13286 # No shared lib support for Linux oldld, aout, or coff.
13287 linux*oldld* | linux*aout* | linux*coff*)
13291 # This must be Linux ELF.
13292 linux* | k*bsd*-gnu)
13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297 soname_spec='${libname}${release}${shared_ext}$major'
13298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 shlibpath_overrides_runpath=no
13301 # This implies no fast_install, which is unacceptable.
13302 # Some rework will be needed to allow for fast_install
13303 # before this can be enabled.
13304 hardcode_into_libs=yes
13306 # Append ld.so.conf contents to the search path
13307 if test -f /etc/ld.so.conf; then
13308 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' ' '`
13309 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13312 # We used to test for /lib/ld.so.1 and disable shared libraries on
13313 # powerpc, because MkLinux only supported shared libraries with the
13314 # GNU dynamic linker. Since this was broken with cross compilers,
13315 # most powerpc-linux boxes support dynamic linking these days and
13316 # people can always --disable-shared, the test was removed, and we
13317 # assume the GNU/Linux dynamic linker is in use.
13318 dynamic_linker='GNU/Linux ld.so'
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13326 soname_spec='${libname}${release}${shared_ext}$major'
13327 shlibpath_var=LD_LIBRARY_PATH
13328 shlibpath_overrides_runpath=no
13329 hardcode_into_libs=yes
13330 dynamic_linker='NetBSD ld.elf_so'
13337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13340 dynamic_linker='NetBSD (a.out) ld.so'
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13343 soname_spec='${libname}${release}${shared_ext}$major'
13344 dynamic_linker='NetBSD ld.elf_so'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath=yes
13348 hardcode_into_libs=yes
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 shlibpath_var=LD_LIBRARY_PATH
13365 shlibpath_overrides_runpath=yes
13370 sys_lib_dlsearch_path_spec="/usr/lib"
13372 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13374 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13375 *) need_version=no ;;
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13379 shlibpath_var=LD_LIBRARY_PATH
13380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13382 openbsd2.[89] | openbsd2.[89].*)
13383 shlibpath_overrides_runpath=no
13386 shlibpath_overrides_runpath=yes
13390 shlibpath_overrides_runpath=yes
13395 libname_spec='$name'
13398 library_names_spec='$libname${shared_ext} $libname.a'
13399 dynamic_linker='OS/2 ld.exe'
13400 shlibpath_var=LIBPATH
13403 osf3* | osf4* | osf5*)
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409 shlibpath_var=LD_LIBRARY_PATH
13410 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13411 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 shlibpath_overrides_runpath=yes
13426 hardcode_into_libs=yes
13427 # ldd complains unless libraries are executable
13428 postinstall_cmds='chmod +x $lib'
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=yes
13437 if test "$with_gnu_ld" = yes; then
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 case $host_vendor in
13450 shlibpath_overrides_runpath=no
13452 export_dynamic_flag_spec='${wl}-Blargedynsym'
13453 runpath_var=LD_RUN_PATH
13461 shlibpath_overrides_runpath=no
13462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13468 if test -d /usr/nec ;then
13470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13471 soname_spec='$libname${shared_ext}.$major'
13472 shlibpath_var=LD_LIBRARY_PATH
13476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13477 version_type=freebsd-elf
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13481 soname_spec='${libname}${release}${shared_ext}$major'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 hardcode_into_libs=yes
13484 if test "$with_gnu_ld" = yes; then
13485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13486 shlibpath_overrides_runpath=no
13488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13489 shlibpath_overrides_runpath=yes
13492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13496 sys_lib_dlsearch_path_spec='/usr/lib'
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 shlibpath_var=LD_LIBRARY_PATH
13510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13511 echo "${ECHO_T}$dynamic_linker" >&6; }
13512 test "$dynamic_linker" = no && can_build_shared=no
13514 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13520 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13521 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13527 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13529 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13530 if test "$GCC" = yes; then
13531 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13534 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13536 hardcode_action_CXX=
13537 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13538 test -n "$runpath_var_CXX" || \
13539 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13541 # We can hardcode non-existant directories.
13542 if test "$hardcode_direct_CXX" != no &&
13543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13544 # have to relink, otherwise we might link with an installed library
13545 # when we should be linking with a yet-to-be-installed one
13546 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13547 test "$hardcode_minus_L_CXX" != no; then
13548 # Linking always hardcodes the temporary library directory.
13549 hardcode_action_CXX=relink
13551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13552 hardcode_action_CXX=immediate
13555 # We cannot hardcode anything, or else we can only hardcode existing
13557 hardcode_action_CXX=unsupported
13559 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13560 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13562 if test "$hardcode_action_CXX" = relink; then
13563 # Fast installation is not supported
13564 enable_fast_install=no
13565 elif test "$shlibpath_overrides_runpath" = yes ||
13566 test "$enable_shared" = no; then
13567 # Fast installation is not necessary
13568 enable_fast_install=needless
13572 # The else clause should only fire when bootstrapping the
13573 # libtool distribution, otherwise you forgot to ship ltmain.sh
13574 # with your package, and you will get complaints that there are
13575 # no rules to generate ltmain.sh.
13576 if test -f "$ltmain"; then
13577 # See if we are running on zsh, and set the options which allow our commands through
13578 # without removal of \ escapes.
13579 if test -n "${ZSH_VERSION+set}" ; then
13580 setopt NO_GLOB_SUBST
13582 # Now quote all the things that may contain metacharacters while being
13583 # careful not to overquote the AC_SUBSTed values. We take copies of the
13584 # variables and quote the copies for generation of the libtool script.
13585 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13587 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13588 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13589 deplibs_check_method reload_flag reload_cmds need_locks \
13590 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13591 lt_cv_sys_global_symbol_to_c_name_address \
13592 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13593 old_postinstall_cmds old_postuninstall_cmds \
13597 lt_prog_compiler_wl_CXX \
13598 lt_prog_compiler_pic_CXX \
13599 lt_prog_compiler_static_CXX \
13600 lt_prog_compiler_no_builtin_flag_CXX \
13601 export_dynamic_flag_spec_CXX \
13602 thread_safe_flag_spec_CXX \
13603 whole_archive_flag_spec_CXX \
13604 enable_shared_with_static_runtimes_CXX \
13605 old_archive_cmds_CXX \
13606 old_archive_from_new_cmds_CXX \
13607 predep_objects_CXX \
13608 postdep_objects_CXX \
13611 compiler_lib_search_path_CXX \
13612 compiler_lib_search_dirs_CXX \
13614 archive_expsym_cmds_CXX \
13615 postinstall_cmds_CXX \
13616 postuninstall_cmds_CXX \
13617 old_archive_from_expsyms_cmds_CXX \
13618 allow_undefined_flag_CXX \
13619 no_undefined_flag_CXX \
13620 export_symbols_cmds_CXX \
13621 hardcode_libdir_flag_spec_CXX \
13622 hardcode_libdir_flag_spec_ld_CXX \
13623 hardcode_libdir_separator_CXX \
13624 hardcode_automatic_CXX \
13626 module_expsym_cmds_CXX \
13627 lt_cv_prog_compiler_c_o_CXX \
13628 fix_srcfile_path_CXX \
13629 exclude_expsyms_CXX \
13630 include_expsyms_CXX; do
13633 old_archive_cmds_CXX | \
13634 old_archive_from_new_cmds_CXX | \
13635 archive_cmds_CXX | \
13636 archive_expsym_cmds_CXX | \
13637 module_cmds_CXX | \
13638 module_expsym_cmds_CXX | \
13639 old_archive_from_expsyms_cmds_CXX | \
13640 export_symbols_cmds_CXX | \
13641 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13642 postinstall_cmds | postuninstall_cmds | \
13643 old_postinstall_cmds | old_postuninstall_cmds | \
13644 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13645 # Double-quote double-evaled strings.
13646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13655 *'\$0 --fallback-echo"')
13656 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13662 cat <<__EOF__ >> "$cfgfile"
13663 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13667 # Shell to use when invoking shell scripts.
13670 # Whether or not to build shared libraries.
13671 build_libtool_libs=$enable_shared
13673 # Whether or not to build static libraries.
13674 build_old_libs=$enable_static
13676 # Whether or not to add -lc for building shared libraries.
13677 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13679 # Whether or not to disallow shared libs when runtime libs are static
13680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13682 # Whether or not to optimize for fast installation.
13683 fast_install=$enable_fast_install
13686 host_alias=$host_alias
13690 # The build system.
13691 build_alias=$build_alias
13695 # An echo program that does not interpret backslashes.
13700 AR_FLAGS=$lt_AR_FLAGS
13705 # LTCC compiler flags.
13706 LTCFLAGS=$lt_LTCFLAGS
13708 # A language-specific compiler.
13709 CC=$lt_compiler_CXX
13711 # Is the compiler the GNU C compiler?
13717 # The linker used to build libraries.
13720 # Whether we need hard or soft links.
13723 # A BSD-compatible nm program.
13726 # A symbol stripping program
13729 # Used to examine libraries when file_magic_cmd begins "file"
13730 MAGIC_CMD=$MAGIC_CMD
13732 # Used on cygwin: DLL creation program.
13735 # Used on cygwin: object dumper.
13738 # Used on cygwin: assembler.
13741 # The name of the directory that contains temporary libtool files.
13744 # How to create reloadable object files.
13745 reload_flag=$lt_reload_flag
13746 reload_cmds=$lt_reload_cmds
13748 # How to pass a linker flag through the compiler.
13749 wl=$lt_lt_prog_compiler_wl_CXX
13751 # Object file suffix (normally "o").
13752 objext="$ac_objext"
13754 # Old archive suffix (normally "a").
13757 # Shared library suffix (normally ".so").
13758 shrext_cmds='$shrext_cmds'
13760 # Executable file suffix (normally "").
13763 # Additional compiler flags for building library objects.
13764 pic_flag=$lt_lt_prog_compiler_pic_CXX
13767 # What is the maximum length of a command?
13768 max_cmd_len=$lt_cv_sys_max_cmd_len
13770 # Does compiler simultaneously support -c and -o options?
13771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13773 # Must we lock files when doing compilation?
13774 need_locks=$lt_need_locks
13776 # Do we need the lib prefix for modules?
13777 need_lib_prefix=$need_lib_prefix
13779 # Do we need a version for libraries?
13780 need_version=$need_version
13782 # Whether dlopen is supported.
13783 dlopen_support=$enable_dlopen
13785 # Whether dlopen of programs is supported.
13786 dlopen_self=$enable_dlopen_self
13788 # Whether dlopen of statically linked programs is supported.
13789 dlopen_self_static=$enable_dlopen_self_static
13791 # Compiler flag to prevent dynamic linking.
13792 link_static_flag=$lt_lt_prog_compiler_static_CXX
13794 # Compiler flag to turn off builtin functions.
13795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13797 # Compiler flag to allow reflexive dlopens.
13798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13800 # Compiler flag to generate shared objects directly from archives.
13801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13803 # Compiler flag to generate thread-safe objects.
13804 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13806 # Library versioning type.
13807 version_type=$version_type
13809 # Format of library name prefix.
13810 libname_spec=$lt_libname_spec
13812 # List of archive names. First name is the real one, the rest are links.
13813 # The last name is the one that the linker finds with -lNAME.
13814 library_names_spec=$lt_library_names_spec
13816 # The coded name of the library, if different from the real name.
13817 soname_spec=$lt_soname_spec
13819 # Commands used to build and install an old-style archive.
13821 old_archive_cmds=$lt_old_archive_cmds_CXX
13822 old_postinstall_cmds=$lt_old_postinstall_cmds
13823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13825 # Create an old-style archive from a shared archive.
13826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13828 # Create a temporary old-style archive to link instead of a shared archive.
13829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13831 # Commands used to build and install a shared archive.
13832 archive_cmds=$lt_archive_cmds_CXX
13833 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13834 postinstall_cmds=$lt_postinstall_cmds
13835 postuninstall_cmds=$lt_postuninstall_cmds
13837 # Commands used to build a loadable module (assumed same as above if empty)
13838 module_cmds=$lt_module_cmds_CXX
13839 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13841 # Commands to strip libraries.
13842 old_striplib=$lt_old_striplib
13843 striplib=$lt_striplib
13845 # Dependencies to place before the objects being linked to create a
13847 predep_objects=$lt_predep_objects_CXX
13849 # Dependencies to place after the objects being linked to create a
13851 postdep_objects=$lt_postdep_objects_CXX
13853 # Dependencies to place before the objects being linked to create a
13855 predeps=$lt_predeps_CXX
13857 # Dependencies to place after the objects being linked to create a
13859 postdeps=$lt_postdeps_CXX
13861 # The directories searched by this compiler when creating a shared
13863 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13865 # The library search path used internally by the compiler when linking
13866 # a shared library.
13867 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13869 # Method to check whether dependent libraries are shared objects.
13870 deplibs_check_method=$lt_deplibs_check_method
13872 # Command to use when deplibs_check_method == file_magic.
13873 file_magic_cmd=$lt_file_magic_cmd
13875 # Flag that allows shared libraries with undefined symbols to be built.
13876 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13878 # Flag that forces no undefined symbols.
13879 no_undefined_flag=$lt_no_undefined_flag_CXX
13881 # Commands used to finish a libtool library installation in a directory.
13882 finish_cmds=$lt_finish_cmds
13884 # Same as above, but a single script fragment to be evaled but not shown.
13885 finish_eval=$lt_finish_eval
13887 # Take the output of nm and produce a listing of raw symbols and C names.
13888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13890 # Transform the output of nm in a proper C declaration
13891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13893 # Transform the output of nm in a C name address pair
13894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13896 # This is the shared library runtime path variable.
13897 runpath_var=$runpath_var
13899 # This is the shared library path variable.
13900 shlibpath_var=$shlibpath_var
13902 # Is shlibpath searched before the hard-coded library search path?
13903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13905 # How to hardcode a shared library path into an executable.
13906 hardcode_action=$hardcode_action_CXX
13908 # Whether we should hardcode library paths into libraries.
13909 hardcode_into_libs=$hardcode_into_libs
13911 # Flag to hardcode \$libdir into a binary during linking.
13912 # This must work even if \$libdir does not exist.
13913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13915 # If ld is used when linking, flag to hardcode \$libdir into
13916 # a binary during linking. This must work even if \$libdir does
13918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13920 # Whether we need a single -rpath flag with a separated argument.
13921 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13924 # resulting binary.
13925 hardcode_direct=$hardcode_direct_CXX
13927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13928 # resulting binary.
13929 hardcode_minus_L=$hardcode_minus_L_CXX
13931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13932 # the resulting binary.
13933 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13935 # Set to yes if building a shared library automatically hardcodes DIR into the library
13936 # and all subsequent libraries and executables linked against it.
13937 hardcode_automatic=$hardcode_automatic_CXX
13939 # Variables whose values should be saved in libtool wrapper scripts and
13940 # restored at relink time.
13941 variables_saved_for_relink="$variables_saved_for_relink"
13943 # Whether libtool must link a program against all its dependency libraries.
13944 link_all_deplibs=$link_all_deplibs_CXX
13946 # Compile-time system search path for libraries
13947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13949 # Run-time system search path for libraries
13950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13952 # Fix the shell variable \$srcfile for the compiler.
13953 fix_srcfile_path=$lt_fix_srcfile_path
13955 # Set to yes if exported symbols are required.
13956 always_export_symbols=$always_export_symbols_CXX
13958 # The commands to list exported symbols.
13959 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13961 # The commands to extract the exported symbol list from a shared archive.
13962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13964 # Symbols that should not be listed in the preloaded symbols.
13965 exclude_expsyms=$lt_exclude_expsyms_CXX
13967 # Symbols that must always be exported.
13968 include_expsyms=$lt_include_expsyms_CXX
13970 # ### END LIBTOOL TAG CONFIG: $tagname
13976 # If there is no Makefile yet, we rely on a make rule to execute
13977 # `config.status --recheck' to rerun these tests and create the
13978 # libtool script then.
13979 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13980 if test -f "$ltmain_in"; then
13981 test -f Makefile && make "$ltmain"
13987 ac_cpp='$CPP $CPPFLAGS'
13988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13996 with_gnu_ldcxx=$with_gnu_ld
13997 with_gnu_ld=$lt_save_with_gnu_ld
13998 lt_cv_path_LDCXX=$lt_cv_path_LD
13999 lt_cv_path_LD=$lt_save_path_LD
14000 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14001 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14009 if test -n "$F77" && test "X$F77" != "Xno"; then
14012 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14013 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14017 archive_cmds_need_lc_F77=no
14018 allow_undefined_flag_F77=
14019 always_export_symbols_F77=no
14020 archive_expsym_cmds_F77=
14021 export_dynamic_flag_spec_F77=
14022 hardcode_direct_F77=no
14023 hardcode_libdir_flag_spec_F77=
14024 hardcode_libdir_flag_spec_ld_F77=
14025 hardcode_libdir_separator_F77=
14026 hardcode_minus_L_F77=no
14027 hardcode_automatic_F77=no
14029 module_expsym_cmds_F77=
14030 link_all_deplibs_F77=unknown
14031 old_archive_cmds_F77=$old_archive_cmds
14032 no_undefined_flag_F77=
14033 whole_archive_flag_spec_F77=
14034 enable_shared_with_static_runtimes_F77=no
14036 # Source file extension for f77 test sources.
14039 # Object file extension for compiled f77 test sources.
14043 # Code to be used in simple compile tests
14044 lt_simple_compile_test_code="\
14050 # Code to be used in simple link tests
14051 lt_simple_link_test_code="\
14056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14058 # If no C compiler was specified, use CC.
14061 # If no C compiler flags were specified, use CFLAGS.
14062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14064 # Allow CC to be a program name with arguments.
14068 # save warnings/boilerplate of simple test code
14069 ac_outfile=conftest.$ac_objext
14070 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14072 _lt_compiler_boilerplate=`cat conftest.err`
14075 ac_outfile=conftest.$ac_objext
14076 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14078 _lt_linker_boilerplate=`cat conftest.err`
14082 # Allow CC to be a program name with arguments.
14087 for cc_temp in $compiler""; do
14089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14098 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14099 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14100 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14101 echo "${ECHO_T}$can_build_shared" >&6; }
14103 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14104 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14105 test "$can_build_shared" = "no" && enable_shared=no
14107 # On AIX, shared libraries and static libraries use the same namespace, and
14108 # are all built from PIC.
14111 test "$enable_shared" = yes && enable_static=no
14112 if test -n "$RANLIB"; then
14113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14114 postinstall_cmds='$RANLIB $lib'
14118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14119 test "$enable_shared" = yes && enable_static=no
14123 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14124 echo "${ECHO_T}$enable_shared" >&6; }
14126 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14127 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14128 # Make sure either enable_shared or enable_static is yes.
14129 test "$enable_shared" = yes || enable_static=yes
14130 { echo "$as_me:$LINENO: result: $enable_static" >&5
14131 echo "${ECHO_T}$enable_static" >&6; }
14136 lt_prog_compiler_wl_F77=
14137 lt_prog_compiler_pic_F77=
14138 lt_prog_compiler_static_F77=
14140 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14143 if test "$GCC" = yes; then
14144 lt_prog_compiler_wl_F77='-Wl,'
14145 lt_prog_compiler_static_F77='-static'
14149 # All AIX code is PIC.
14150 if test "$host_cpu" = ia64; then
14151 # AIX 5 now supports IA64 processor
14152 lt_prog_compiler_static_F77='-Bstatic'
14157 # FIXME: we need at least 68020 code to build shared libraries, but
14158 # adding the `-m68020' flag to GCC prevents building anything better,
14160 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14163 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14164 # PIC is the default for these OSes.
14167 mingw* | cygwin* | pw32* | os2*)
14168 # This hack is so that the source file can tell whether it is being
14169 # built for inclusion in a dll (and should export symbols for example).
14170 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14171 # (--disable-auto-import) libraries
14172 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14175 darwin* | rhapsody*)
14176 # PIC is the default on this platform
14177 # Common symbols not allowed in MH_DYLIB files
14178 lt_prog_compiler_pic_F77='-fno-common'
14182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14183 # Instead, we relocate shared libraries at runtime.
14187 # Just because we use GCC doesn't mean we suddenly get shared libraries
14188 # on systems that don't support them.
14189 lt_prog_compiler_can_build_shared_F77=no
14194 if test -d /usr/nec; then
14195 lt_prog_compiler_pic_F77=-Kconform_pic
14200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14201 # not for PA HP-UX.
14207 lt_prog_compiler_pic_F77='-fPIC'
14213 lt_prog_compiler_pic_F77='-fPIC'
14217 # PORTME Check for flag to pass linker flags through the system compiler.
14220 lt_prog_compiler_wl_F77='-Wl,'
14221 if test "$host_cpu" = ia64; then
14222 # AIX 5 now supports IA64 processor
14223 lt_prog_compiler_static_F77='-Bstatic'
14225 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14229 # PIC is the default on this platform
14230 # Common symbols not allowed in MH_DYLIB files
14231 case $cc_basename in
14233 lt_prog_compiler_pic_F77='-qnocommon'
14234 lt_prog_compiler_wl_F77='-Wl,'
14239 mingw* | cygwin* | pw32* | os2*)
14240 # This hack is so that the source file can tell whether it is being
14241 # built for inclusion in a dll (and should export symbols for example).
14242 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14245 hpux9* | hpux10* | hpux11*)
14246 lt_prog_compiler_wl_F77='-Wl,'
14247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14248 # not for PA HP-UX.
14254 lt_prog_compiler_pic_F77='+Z'
14257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14258 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14261 irix5* | irix6* | nonstopux*)
14262 lt_prog_compiler_wl_F77='-Wl,'
14263 # PIC (with -KPIC) is the default.
14264 lt_prog_compiler_static_F77='-non_shared'
14268 lt_prog_compiler_pic_F77='-KPIC'
14269 lt_prog_compiler_static_F77='-Bstatic'
14272 linux* | k*bsd*-gnu)
14273 case $cc_basename in
14275 lt_prog_compiler_wl_F77='-Wl,'
14276 lt_prog_compiler_pic_F77='-KPIC'
14277 lt_prog_compiler_static_F77='-static'
14279 pgcc* | pgf77* | pgf90* | pgf95*)
14280 # Portland Group compilers (*not* the Pentium gcc compiler,
14281 # which looks to be a dead project)
14282 lt_prog_compiler_wl_F77='-Wl,'
14283 lt_prog_compiler_pic_F77='-fpic'
14284 lt_prog_compiler_static_F77='-Bstatic'
14287 lt_prog_compiler_wl_F77='-Wl,'
14288 # All Alpha code is PIC.
14289 lt_prog_compiler_static_F77='-non_shared'
14292 case `$CC -V 2>&1 | sed 5q` in
14295 lt_prog_compiler_pic_F77='-KPIC'
14296 lt_prog_compiler_static_F77='-Bstatic'
14297 lt_prog_compiler_wl_F77='-Wl,'
14300 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14301 lt_prog_compiler_pic_F77='-KPIC'
14302 lt_prog_compiler_static_F77='-Bstatic'
14303 lt_prog_compiler_wl_F77=''
14310 osf3* | osf4* | osf5*)
14311 lt_prog_compiler_wl_F77='-Wl,'
14312 # All OSF/1 code is PIC.
14313 lt_prog_compiler_static_F77='-non_shared'
14317 lt_prog_compiler_static_F77='-non_shared'
14321 lt_prog_compiler_pic_F77='-KPIC'
14322 lt_prog_compiler_static_F77='-Bstatic'
14323 case $cc_basename in
14324 f77* | f90* | f95*)
14325 lt_prog_compiler_wl_F77='-Qoption ld ';;
14327 lt_prog_compiler_wl_F77='-Wl,';;
14332 lt_prog_compiler_wl_F77='-Qoption ld '
14333 lt_prog_compiler_pic_F77='-PIC'
14334 lt_prog_compiler_static_F77='-Bstatic'
14337 sysv4 | sysv4.2uw2* | sysv4.3*)
14338 lt_prog_compiler_wl_F77='-Wl,'
14339 lt_prog_compiler_pic_F77='-KPIC'
14340 lt_prog_compiler_static_F77='-Bstatic'
14344 if test -d /usr/nec ;then
14345 lt_prog_compiler_pic_F77='-Kconform_pic'
14346 lt_prog_compiler_static_F77='-Bstatic'
14350 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14351 lt_prog_compiler_wl_F77='-Wl,'
14352 lt_prog_compiler_pic_F77='-KPIC'
14353 lt_prog_compiler_static_F77='-Bstatic'
14357 lt_prog_compiler_wl_F77='-Wl,'
14358 lt_prog_compiler_can_build_shared_F77=no
14362 lt_prog_compiler_pic_F77='-pic'
14363 lt_prog_compiler_static_F77='-Bstatic'
14367 lt_prog_compiler_can_build_shared_F77=no
14372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14373 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14376 # Check to make sure the PIC flag actually works.
14378 if test -n "$lt_prog_compiler_pic_F77"; then
14380 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14381 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14382 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 lt_cv_prog_compiler_pic_works_F77=no
14386 ac_outfile=conftest.$ac_objext
14387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14388 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14389 # Insert the option either (1) after the last *FLAGS variable, or
14390 # (2) before a word containing "conftest.", or (3) at the end.
14391 # Note that $ac_compile itself does not contain backslashes and begins
14392 # with a dollar sign (not a hyphen), so the echo should work correctly.
14393 # The option is referenced via a variable to avoid confusing sed.
14394 lt_compile=`echo "$ac_compile" | $SED \
14395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397 -e 's:$: $lt_compiler_flag:'`
14398 (eval echo "\"\$as_me:14398: $lt_compile\"" >&5)
14399 (eval "$lt_compile" 2>conftest.err)
14401 cat conftest.err >&5
14402 echo "$as_me:14402: \$? = $ac_status" >&5
14403 if (exit $ac_status) && test -s "$ac_outfile"; then
14404 # The compiler can only warn and ignore the option if not recognized
14405 # So say no if there are warnings other than the usual output.
14406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14409 lt_cv_prog_compiler_pic_works_F77=yes
14415 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14416 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14418 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14419 case $lt_prog_compiler_pic_F77 in
14421 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14424 lt_prog_compiler_pic_F77=
14425 lt_prog_compiler_can_build_shared_F77=no
14430 # For platforms which do not support PIC, -DPIC is meaningless:
14432 lt_prog_compiler_pic_F77=
14435 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14440 # Check to make sure the static flag actually works.
14442 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14443 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14444 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14445 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 lt_cv_prog_compiler_static_works_F77=no
14449 save_LDFLAGS="$LDFLAGS"
14450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14453 # The linker can only warn and ignore the option if not recognized
14454 # So say no if there are warnings
14455 if test -s conftest.err; then
14456 # Append any errors to the config.log.
14457 cat conftest.err 1>&5
14458 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14460 if diff conftest.exp conftest.er2 >/dev/null; then
14461 lt_cv_prog_compiler_static_works_F77=yes
14464 lt_cv_prog_compiler_static_works_F77=yes
14468 LDFLAGS="$save_LDFLAGS"
14471 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14472 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14474 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14477 lt_prog_compiler_static_F77=
14481 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14482 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14483 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 lt_cv_prog_compiler_c_o_F77=no
14487 $rm -r conftest 2>/dev/null
14491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14493 lt_compiler_flag="-o out/conftest2.$ac_objext"
14494 # Insert the option either (1) after the last *FLAGS variable, or
14495 # (2) before a word containing "conftest.", or (3) at the end.
14496 # Note that $ac_compile itself does not contain backslashes and begins
14497 # with a dollar sign (not a hyphen), so the echo should work correctly.
14498 lt_compile=`echo "$ac_compile" | $SED \
14499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14501 -e 's:$: $lt_compiler_flag:'`
14502 (eval echo "\"\$as_me:14502: $lt_compile\"" >&5)
14503 (eval "$lt_compile" 2>out/conftest.err)
14505 cat out/conftest.err >&5
14506 echo "$as_me:14506: \$? = $ac_status" >&5
14507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14509 # The compiler can only warn and ignore the option if not recognized
14510 # So say no if there are warnings
14511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14514 lt_cv_prog_compiler_c_o_F77=yes
14519 # SGI C++ compiler will create directory out/ii_files/ for
14520 # template instantiation
14521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14522 $rm out/* && rmdir out
14528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14529 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14532 hard_links="nottested"
14533 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14534 # do not overwrite the value of need_locks provided by the user
14535 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14536 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14541 ln conftest.a conftest.b 2>&5 || hard_links=no
14542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543 { echo "$as_me:$LINENO: result: $hard_links" >&5
14544 echo "${ECHO_T}$hard_links" >&6; }
14545 if test "$hard_links" = no; then
14546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14547 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14554 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14558 allow_undefined_flag_F77=
14559 enable_shared_with_static_runtimes_F77=no
14561 archive_expsym_cmds_F77=
14562 old_archive_From_new_cmds_F77=
14563 old_archive_from_expsyms_cmds_F77=
14564 export_dynamic_flag_spec_F77=
14565 whole_archive_flag_spec_F77=
14566 thread_safe_flag_spec_F77=
14567 hardcode_libdir_flag_spec_F77=
14568 hardcode_libdir_flag_spec_ld_F77=
14569 hardcode_libdir_separator_F77=
14570 hardcode_direct_F77=no
14571 hardcode_minus_L_F77=no
14572 hardcode_shlibpath_var_F77=unsupported
14573 link_all_deplibs_F77=unknown
14574 hardcode_automatic_F77=no
14576 module_expsym_cmds_F77=
14577 always_export_symbols_F77=no
14578 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14579 # include_expsyms should be a list of space-separated symbols to be *always*
14580 # included in the symbol list
14581 include_expsyms_F77=
14582 # exclude_expsyms can be an extended regexp of symbols to exclude
14583 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14584 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14585 # as well as any symbol that contains `d'.
14586 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14587 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14588 # platforms (ab)use it in PIC code, but their linkers get confused if
14589 # the symbol is explicitly referenced. Since portable code cannot
14590 # rely on this symbol name, it's probably fine to never include it in
14591 # preloaded symbol tables.
14592 # Exclude shared library initialization/finalization symbols.
14593 extract_expsyms_cmds=
14594 # Just being paranoid about ensuring that cc_basename is set.
14595 for cc_temp in $compiler""; do
14597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14603 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14606 cygwin* | mingw* | pw32*)
14607 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14608 # When not using gcc, we currently assume that we are using
14609 # Microsoft Visual C++.
14610 if test "$GCC" != yes; then
14615 # we just hope/assume this is gcc and not c89 (= MSVC++)
14624 if test "$with_gnu_ld" = yes; then
14625 # If archive_cmds runs LD, not CC, wlarc should be empty
14628 # Set some defaults for GNU ld with shared library support. These
14629 # are reset later if shared libraries are not supported. Putting them
14630 # here allows them to be overridden if necessary.
14631 runpath_var=LD_RUN_PATH
14632 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14633 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14634 # ancient GNU ld didn't support --whole-archive et. al.
14635 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14636 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14638 whole_archive_flag_spec_F77=
14640 supports_anon_versioning=no
14641 case `$LD -v 2>/dev/null` in
14642 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14643 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14644 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14645 *\ 2.11.*) ;; # other 2.11 versions
14646 *) supports_anon_versioning=yes ;;
14649 # See if GNU ld supports shared libraries.
14652 # On AIX/PPC, the GNU linker is very broken
14653 if test "$host_cpu" != ia64; then
14657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14658 *** to be unable to reliably create shared libraries on AIX.
14659 *** Therefore, libtool is disabling shared libraries support. If you
14660 *** really care for shared libraries, you may want to modify your PATH
14661 *** so that a non-GNU linker is found, and then restart.
14668 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)'
14669 hardcode_libdir_flag_spec_F77='-L$libdir'
14670 hardcode_minus_L_F77=yes
14672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14673 # that the semantics of dynamic libraries on AmigaOS, at least up
14674 # to version 4, is to share data among multiple programs linked
14675 # with the same dynamic library. Since this doesn't match the
14676 # behavior of shared libraries on other platforms, we can't use
14682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14683 allow_undefined_flag_F77=unsupported
14684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14685 # support --undefined. This deserves some investigation. FIXME
14686 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14692 cygwin* | mingw* | pw32*)
14693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14694 # as there is no search path for DLLs.
14695 hardcode_libdir_flag_spec_F77='-L$libdir'
14696 allow_undefined_flag_F77=unsupported
14697 always_export_symbols_F77=no
14698 enable_shared_with_static_runtimes_F77=yes
14699 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14703 # If the export-symbols file already is a .def file (1st line
14704 # is EXPORTS), use it as is; otherwise, prepend...
14705 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14706 cp $export_symbols $output_objdir/$soname.def;
14708 echo EXPORTS > $output_objdir/$soname.def;
14709 cat $export_symbols >> $output_objdir/$soname.def;
14711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718 hardcode_direct_F77=no
14719 hardcode_shlibpath_var_F77=no
14720 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14721 export_dynamic_flag_spec_F77='${wl}-E'
14722 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14723 # Instead, shared libraries are loaded at an image base (0x10000000 by
14724 # default) and relocated if they conflict, which is a slow very memory
14725 # consuming and fragmenting process. To avoid this, we pick a random,
14726 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14727 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14728 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'
14729 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'
14732 gnu* | linux* | k*bsd*-gnu)
14733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14735 case $cc_basename,$host_cpu in
14736 pgcc*) # Portland Group C compiler
14737 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'
14738 tmp_addflag=' $pic_flag'
14740 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14741 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'
14742 tmp_addflag=' $pic_flag -Mnomain' ;;
14743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14744 tmp_addflag=' -i_dynamic' ;;
14745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14746 tmp_addflag=' -i_dynamic -nofor_main' ;;
14747 ifc* | ifort*) # Intel Fortran compiler
14748 tmp_addflag=' -nofor_main' ;;
14750 case `$CC -V 2>&1 | sed 5q` in
14751 *Sun\ C*) # Sun C 5.9
14752 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'
14753 tmp_sharedflag='-G' ;;
14754 *Sun\ F*) # Sun Fortran 8.3
14755 tmp_sharedflag='-G' ;;
14757 tmp_sharedflag='-shared' ;;
14759 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14761 if test $supports_anon_versioning = yes; then
14762 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14764 $echo "local: *; };" >> $output_objdir/$libname.ver~
14765 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14767 link_all_deplibs_F77=no
14773 netbsd* | netbsdelf*-gnu)
14774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14778 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14779 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14784 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14789 *** create shared libraries on Solaris systems. Therefore, libtool
14790 *** is disabling shared libraries support. We urge you to upgrade GNU
14791 *** binutils to release 2.9.1 or newer. Another option is to modify
14792 *** your PATH or compiler configuration so that the native linker is
14793 *** used, and then restart.
14796 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14797 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14798 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14805 case `$LD -v 2>&1` in
14806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14811 *** reliably create shared libraries on SCO systems. Therefore, libtool
14812 *** is disabling shared libraries support. We urge you to upgrade GNU
14813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14814 *** your PATH or compiler configuration so that the native linker is
14815 *** used, and then restart.
14820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14821 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14822 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14823 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14832 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14834 hardcode_direct_F77=yes
14835 hardcode_shlibpath_var_F77=no
14839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14840 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14841 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14848 if test "$ld_shlibs_F77" = no; then
14850 hardcode_libdir_flag_spec_F77=
14851 export_dynamic_flag_spec_F77=
14852 whole_archive_flag_spec_F77=
14855 # PORTME fill in a description of your system's linker (not GNU ld)
14858 allow_undefined_flag_F77=unsupported
14859 always_export_symbols_F77=yes
14860 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'
14861 # Note: this linker hardcodes the directories in LIBPATH if there
14862 # are no directories specified by -L.
14863 hardcode_minus_L_F77=yes
14864 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14865 # Neither direct hardcoding nor static linking is supported with a
14867 hardcode_direct_F77=unsupported
14872 if test "$host_cpu" = ia64; then
14873 # On IA64, the linker does run time linking by default, so we don't
14874 # have to do anything special.
14875 aix_use_runtimelinking=no
14876 exp_sym_flag='-Bexport'
14879 # If we're using GNU nm, then we don't want the "-C" option.
14880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14881 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14882 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'
14884 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'
14886 aix_use_runtimelinking=no
14888 # Test if we are trying to use run time linking or normal
14889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14890 # need to do runtime linking.
14891 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14892 for ld_flag in $LDFLAGS; do
14893 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14894 aix_use_runtimelinking=yes
14901 exp_sym_flag='-bexport'
14902 no_entry_flag='-bnoentry'
14905 # When large executables or shared objects are built, AIX ld can
14906 # have problems creating the table of contents. If linking a library
14907 # or program results in "error TOC overflow" add -mminimal-toc to
14908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14911 archive_cmds_F77=''
14912 hardcode_direct_F77=yes
14913 hardcode_libdir_separator_F77=':'
14914 link_all_deplibs_F77=yes
14916 if test "$GCC" = yes; then
14917 case $host_os in aix4.[012]|aix4.[012].*)
14918 # We only want to do this on AIX 4.2 and lower, the check
14919 # below for broken collect2 doesn't work under 4.3+
14920 collect2name=`${CC} -print-prog-name=collect2`
14921 if test -f "$collect2name" && \
14922 strings "$collect2name" | grep resolve_lib_name >/dev/null
14924 # We have reworked collect2
14927 # We have old collect2
14928 hardcode_direct_F77=unsupported
14929 # It fails to find uninstalled libraries when the uninstalled
14930 # path is not listed in the libpath. Setting hardcode_minus_L
14931 # to unsupported forces relinking
14932 hardcode_minus_L_F77=yes
14933 hardcode_libdir_flag_spec_F77='-L$libdir'
14934 hardcode_libdir_separator_F77=
14938 shared_flag='-shared'
14939 if test "$aix_use_runtimelinking" = yes; then
14940 shared_flag="$shared_flag "'${wl}-G'
14944 if test "$host_cpu" = ia64; then
14945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14946 # chokes on -Wl,-G. The following line is correct:
14949 if test "$aix_use_runtimelinking" = yes; then
14950 shared_flag='${wl}-G'
14952 shared_flag='${wl}-bM:SRE'
14957 # It seems that -bexpall does not export symbols beginning with
14958 # underscore (_), so it is better to generate a list of symbols to export.
14959 always_export_symbols_F77=yes
14960 if test "$aix_use_runtimelinking" = yes; then
14961 # Warning - without using the other runtime loading flags (-brtl),
14962 # -berok will link without error, but may produce a broken library.
14963 allow_undefined_flag_F77='-berok'
14964 # Determine the default libpath from the value encoded in an empty executable.
14965 cat >conftest.$ac_ext <<_ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_link") 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_f77_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest$ac_exeext &&
14987 $as_test_x conftest$ac_exeext; then
14989 lt_aix_libpath_sed='
14990 /Import File Strings/,/^$/ {
14996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14997 # Check for a 64-bit object if we didn't find anything.
14998 if test -z "$aix_libpath"; then
14999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15009 conftest$ac_exeext conftest.$ac_ext
15010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15012 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15013 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"
15015 if test "$host_cpu" = ia64; then
15016 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15017 allow_undefined_flag_F77="-z nodefs"
15018 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"
15020 # Determine the default libpath from the value encoded in an empty executable.
15021 cat >conftest.$ac_ext <<_ACEOF
15026 rm -f conftest.$ac_objext conftest$ac_exeext
15027 if { (ac_try="$ac_link"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_link") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_f77_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest$ac_exeext &&
15043 $as_test_x conftest$ac_exeext; then
15045 lt_aix_libpath_sed='
15046 /Import File Strings/,/^$/ {
15052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15053 # Check for a 64-bit object if we didn't find anything.
15054 if test -z "$aix_libpath"; then
15055 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065 conftest$ac_exeext conftest.$ac_ext
15066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15068 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15069 # Warning - without using the other run time loading flags,
15070 # -berok will link without error, but may produce a broken library.
15071 no_undefined_flag_F77=' ${wl}-bernotok'
15072 allow_undefined_flag_F77=' ${wl}-berok'
15073 # Exported symbols can be pulled into shared objects from archives
15074 whole_archive_flag_spec_F77='$convenience'
15075 archive_cmds_need_lc_F77=yes
15076 # This is similar to how AIX traditionally builds its shared libraries.
15077 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'
15083 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)'
15084 hardcode_libdir_flag_spec_F77='-L$libdir'
15085 hardcode_minus_L_F77=yes
15086 # see comment about different semantics on the GNU ld section
15091 export_dynamic_flag_spec_F77=-rdynamic
15094 cygwin* | mingw* | pw32*)
15095 # When not using gcc, we currently assume that we are using
15096 # Microsoft Visual C++.
15097 # hardcode_libdir_flag_spec is actually meaningless, as there is
15098 # no search path for DLLs.
15099 hardcode_libdir_flag_spec_F77=' '
15100 allow_undefined_flag_F77=unsupported
15101 # Tell ltmain to make .lib files, not .a files.
15103 # Tell ltmain to make .dll files, not .so files.
15105 # FIXME: Setting linknames here is a bad hack.
15106 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15107 # The linker will automatically build a .lib file if we build a DLL.
15108 old_archive_From_new_cmds_F77='true'
15109 # FIXME: Should let the user specify the lib program.
15110 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15111 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15112 enable_shared_with_static_runtimes_F77=yes
15115 darwin* | rhapsody*)
15117 rhapsody* | darwin1.[012])
15118 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15121 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15122 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15124 case ${MACOSX_DEPLOYMENT_TARGET} in
15126 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15129 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15135 archive_cmds_need_lc_F77=no
15136 hardcode_direct_F77=no
15137 hardcode_automatic_F77=yes
15138 hardcode_shlibpath_var_F77=unsupported
15139 whole_archive_flag_spec_F77=''
15140 link_all_deplibs_F77=yes
15141 if test "$GCC" = yes ; then
15142 output_verbose_link_cmd='echo'
15143 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}"
15144 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15145 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}"
15146 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}"
15148 case $cc_basename in
15150 output_verbose_link_cmd='echo'
15151 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15152 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15154 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}'
15155 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}'
15165 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15166 hardcode_libdir_flag_spec_F77='-L$libdir'
15167 hardcode_shlibpath_var_F77=no
15174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15175 # support. Future versions do this automatically, but an explicit c++rt0.o
15176 # does not break anything, and helps significantly (at the cost of a little
15179 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15180 hardcode_libdir_flag_spec_F77='-R$libdir'
15181 hardcode_direct_F77=yes
15182 hardcode_shlibpath_var_F77=no
15185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15187 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15188 hardcode_direct_F77=yes
15189 hardcode_minus_L_F77=yes
15190 hardcode_shlibpath_var_F77=no
15193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15194 freebsd* | dragonfly*)
15195 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15196 hardcode_libdir_flag_spec_F77='-R$libdir'
15197 hardcode_direct_F77=yes
15198 hardcode_shlibpath_var_F77=no
15202 if test "$GCC" = yes; then
15203 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'
15205 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'
15207 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15208 hardcode_libdir_separator_F77=:
15209 hardcode_direct_F77=yes
15211 # hardcode_minus_L: Not really in the search PATH,
15212 # but as the default location of the library.
15213 hardcode_minus_L_F77=yes
15214 export_dynamic_flag_spec_F77='${wl}-E'
15218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15219 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15223 if test "$with_gnu_ld" = no; then
15224 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15225 hardcode_libdir_separator_F77=:
15227 hardcode_direct_F77=yes
15228 export_dynamic_flag_spec_F77='${wl}-E'
15230 # hardcode_minus_L: Not really in the search PATH,
15231 # but as the default location of the library.
15232 hardcode_minus_L_F77=yes
15237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15240 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15246 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15252 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15258 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15262 if test "$with_gnu_ld" = no; then
15263 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15264 hardcode_libdir_separator_F77=:
15268 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15269 hardcode_direct_F77=no
15270 hardcode_shlibpath_var_F77=no
15273 hardcode_direct_F77=yes
15274 export_dynamic_flag_spec_F77='${wl}-E'
15276 # hardcode_minus_L: Not really in the search PATH,
15277 # but as the default location of the library.
15278 hardcode_minus_L_F77=yes
15284 irix5* | irix6* | nonstopux*)
15285 if test "$GCC" = yes; then
15286 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'
15288 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'
15289 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15291 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15292 hardcode_libdir_separator_F77=:
15293 link_all_deplibs_F77=yes
15296 netbsd* | netbsdelf*-gnu)
15297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15298 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15300 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15302 hardcode_libdir_flag_spec_F77='-R$libdir'
15303 hardcode_direct_F77=yes
15304 hardcode_shlibpath_var_F77=no
15308 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15309 hardcode_direct_F77=yes
15310 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15311 hardcode_libdir_separator_F77=:
15312 hardcode_shlibpath_var_F77=no
15316 if test -f /usr/libexec/ld.so; then
15317 hardcode_direct_F77=yes
15318 hardcode_shlibpath_var_F77=no
15319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15320 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15321 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15322 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15323 export_dynamic_flag_spec_F77='${wl}-E'
15326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15327 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15328 hardcode_libdir_flag_spec_F77='-R$libdir'
15331 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15332 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15342 hardcode_libdir_flag_spec_F77='-L$libdir'
15343 hardcode_minus_L_F77=yes
15344 allow_undefined_flag_F77=unsupported
15345 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'
15346 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15350 if test "$GCC" = yes; then
15351 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15352 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'
15354 allow_undefined_flag_F77=' -expect_unresolved \*'
15355 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'
15357 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15358 hardcode_libdir_separator_F77=:
15361 osf4* | osf5*) # as osf3* with the addition of -msym flag
15362 if test "$GCC" = yes; then
15363 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15364 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'
15365 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15367 allow_undefined_flag_F77=' -expect_unresolved \*'
15368 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'
15369 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~
15370 $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'
15372 # Both c and cxx compiler support -rpath directly
15373 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15375 hardcode_libdir_separator_F77=:
15379 no_undefined_flag_F77=' -z text'
15380 if test "$GCC" = yes; then
15382 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15383 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15384 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15387 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15391 hardcode_libdir_flag_spec_F77='-R$libdir'
15392 hardcode_shlibpath_var_F77=no
15394 solaris2.[0-5] | solaris2.[0-5].*) ;;
15396 # The compiler driver will combine and reorder linker options,
15397 # but understands `-z linker_flag'. GCC discards it without `$wl',
15398 # but is careful enough not to reorder.
15399 # Supported since Solaris 2.6 (maybe 2.5.1?)
15400 if test "$GCC" = yes; then
15401 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15403 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15407 link_all_deplibs_F77=yes
15411 if test "x$host_vendor" = xsequent; then
15412 # Use $CC to link under sequent, because it throws in some extra .o
15413 # files that make .init and .fini sections work.
15414 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15416 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15418 hardcode_libdir_flag_spec_F77='-L$libdir'
15419 hardcode_direct_F77=yes
15420 hardcode_minus_L_F77=yes
15421 hardcode_shlibpath_var_F77=no
15425 case $host_vendor in
15427 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_direct_F77=yes # is this really true???
15431 ## LD is ld it makes a PLAMLIB
15432 ## CC just makes a GrossModule.
15433 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15434 reload_cmds_F77='$CC -r -o $output$reload_objs'
15435 hardcode_direct_F77=no
15438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15442 runpath_var='LD_RUN_PATH'
15443 hardcode_shlibpath_var_F77=no
15447 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448 hardcode_shlibpath_var_F77=no
15449 export_dynamic_flag_spec_F77='-Bexport'
15453 if test -d /usr/nec; then
15454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_shlibpath_var_F77=no
15456 runpath_var=LD_RUN_PATH
15457 hardcode_runpath_var=yes
15462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15463 no_undefined_flag_F77='${wl}-z,text'
15464 archive_cmds_need_lc_F77=no
15465 hardcode_shlibpath_var_F77=no
15466 runpath_var='LD_RUN_PATH'
15468 if test "$GCC" = yes; then
15469 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15477 sysv5* | sco3.2v5* | sco5v6*)
15478 # Note: We can NOT use -z defs as we might desire, because we do not
15479 # link with -lc, and that would cause any symbols used from libc to
15480 # always be unresolved, which means just about no library would
15481 # ever link correctly. If we're not using GNU ld we use -z text
15482 # though, which does catch some bad symbols but isn't as heavy-handed
15484 no_undefined_flag_F77='${wl}-z,text'
15485 allow_undefined_flag_F77='${wl}-z,nodefs'
15486 archive_cmds_need_lc_F77=no
15487 hardcode_shlibpath_var_F77=no
15488 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15489 hardcode_libdir_separator_F77=':'
15490 link_all_deplibs_F77=yes
15491 export_dynamic_flag_spec_F77='${wl}-Bexport'
15492 runpath_var='LD_RUN_PATH'
15494 if test "$GCC" = yes; then
15495 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15499 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15505 hardcode_libdir_flag_spec_F77='-L$libdir'
15506 hardcode_shlibpath_var_F77=no
15515 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15516 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15517 test "$ld_shlibs_F77" = no && can_build_shared=no
15520 # Do we need to explicitly link libc?
15522 case "x$archive_cmds_need_lc_F77" in
15524 # Assume -lc should be added
15525 archive_cmds_need_lc_F77=yes
15527 if test "$enable_shared" = yes && test "$GCC" = yes; then
15528 case $archive_cmds_F77 in
15530 # FIXME: we may have to deal with multi-command sequences.
15533 # Test whether the compiler implicitly links with -lc since on some
15534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15535 # to ld, don't add -lc before -lgcc.
15536 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15537 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } 2>conftest.err; then
15548 libobjs=conftest.$ac_objext
15550 wl=$lt_prog_compiler_wl_F77
15551 pic_flag=$lt_prog_compiler_pic_F77
15557 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15558 allow_undefined_flag_F77=
15559 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15560 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }
15565 archive_cmds_need_lc_F77=no
15567 archive_cmds_need_lc_F77=yes
15569 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15571 cat conftest.err 1>&5
15574 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15575 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15582 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15583 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15584 library_names_spec=
15585 libname_spec='lib$name'
15589 postuninstall_cmds=
15593 shlibpath_overrides_runpath=unknown
15595 dynamic_linker="$host_os ld.so"
15596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15598 need_lib_prefix=unknown
15599 hardcode_into_libs=no
15601 # when you set need_version to no, make sure it does not cause -set_version
15602 # flags to be left without arguments
15603 need_version=unknown
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15609 shlibpath_var=LIBPATH
15611 # AIX 3 has no versioning support, so we append a major version to the name.
15612 soname_spec='${libname}${release}${shared_ext}$major'
15619 hardcode_into_libs=yes
15620 if test "$host_cpu" = ia64; then
15621 # AIX 5 supports IA64
15622 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15623 shlibpath_var=LD_LIBRARY_PATH
15625 # With GCC up to 2.95.x, collect2 would create an import file
15626 # for dependence libraries. The import file would start with
15627 # the line `#! .'. This would cause the generated library to
15628 # depend on `.', always an invalid library. This was fixed in
15629 # development snapshots of GCC prior to 3.0.
15631 aix4 | aix4.[01] | aix4.[01].*)
15632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15634 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15637 can_build_shared=no
15641 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15642 # soname into executable. Probably we can add versioning support to
15643 # collect2, so additional links can be useful in future.
15644 if test "$aix_use_runtimelinking" = yes; then
15645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15646 # instead of lib<name>.a to let people know that these are not
15647 # typical AIX shared libraries.
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 # We preserve .a as extension for shared libraries through AIX4.2
15651 # and later when we are not doing run time linking.
15652 library_names_spec='${libname}${release}.a $libname.a'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15655 shlibpath_var=LIBPATH
15660 library_names_spec='$libname.ixlibrary $libname.a'
15661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15662 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'
15666 library_names_spec='${libname}${shared_ext}'
15667 dynamic_linker="$host_os ld.so"
15668 shlibpath_var=LIBRARY_PATH
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15680 # the default ld.so.conf also contains /usr/contrib/lib and
15681 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15682 # libtool to hard-code these into programs
15685 cygwin* | mingw* | pw32*)
15686 version_type=windows
15691 case $GCC,$host_os in
15692 yes,cygwin* | yes,mingw* | yes,pw32*)
15693 library_names_spec='$libname.dll.a'
15694 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15695 postinstall_cmds='base_file=`basename \${file}`~
15696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15697 dldir=$destdir/`dirname \$dlpath`~
15698 test -d \$dldir || mkdir -p \$dldir~
15699 $install_prog $dir/$dlname \$dldir/$dlname~
15700 chmod a+x \$dldir/$dlname'
15701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15702 dlpath=$dir/\$dldll~
15704 shlibpath_overrides_runpath=yes
15708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15713 # MinGW DLLs use traditional 'lib' prefix
15714 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15716 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15717 # It is most probably a Windows format PATH printed by
15718 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15719 # path with ; separators, and with drive letters. We can handle the
15720 # drive letters (cygwin fileutils understands them), so leave them,
15721 # especially as we might pass files found there to a mingw objdump,
15722 # which wouldn't understand a cygwinified path. Ahh.
15723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15729 # pw32 DLLs use 'pw' prefix rather than 'lib'
15730 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15736 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15739 dynamic_linker='Win32 ld.exe'
15740 # FIXME: first we should search . and the directory the executable is in
15744 darwin* | rhapsody*)
15745 dynamic_linker="$host_os dyld"
15746 version_type=darwin
15749 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15750 soname_spec='${libname}${release}${major}$shared_ext'
15751 shlibpath_overrides_runpath=yes
15752 shlibpath_var=DYLD_LIBRARY_PATH
15753 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 shlibpath_var=LD_LIBRARY_PATH
15771 freebsd* | dragonfly*)
15772 # DragonFly does not have aout. When/if they implement a new
15773 # versioning mechanism, adjust this.
15774 if test -x /usr/bin/objformat; then
15775 objformat=`/usr/bin/objformat`
15778 freebsd[123]*) objformat=aout ;;
15779 *) objformat=elf ;;
15782 version_type=freebsd-$objformat
15783 case $version_type in
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15794 shlibpath_var=LD_LIBRARY_PATH
15797 shlibpath_overrides_runpath=yes
15799 freebsd3.[01]* | freebsdelf3.[01]*)
15800 shlibpath_overrides_runpath=yes
15801 hardcode_into_libs=yes
15803 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15804 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15805 shlibpath_overrides_runpath=no
15806 hardcode_into_libs=yes
15808 *) # from 4.6 on, and DragonFly
15809 shlibpath_overrides_runpath=yes
15810 hardcode_into_libs=yes
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15820 soname_spec='${libname}${release}${shared_ext}$major'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 hardcode_into_libs=yes
15825 hpux9* | hpux10* | hpux11*)
15826 # Give a soname corresponding to the major version so that dld.sl refuses to
15827 # link against other versions.
15834 hardcode_into_libs=yes
15835 dynamic_linker="$host_os dld.so"
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 if test "X$HPUX_IA64_MODE" = X32; then
15841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15849 hardcode_into_libs=yes
15850 dynamic_linker="$host_os dld.sl"
15851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15860 dynamic_linker="$host_os dld.sl"
15861 shlibpath_var=SHLIB_PATH
15862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15868 postinstall_cmds='chmod 555 $lib'
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15876 soname_spec='${libname}${release}${shared_ext}$major'
15877 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 shlibpath_overrides_runpath=no
15880 hardcode_into_libs=yes
15883 irix5* | irix6* | nonstopux*)
15885 nonstopux*) version_type=nonstopux ;;
15887 if test "$lt_cv_prog_gnu_ld" = yes; then
15895 soname_spec='${libname}${release}${shared_ext}$major'
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15898 irix5* | nonstopux*)
15899 libsuff= shlibsuff=
15902 case $LD in # libtool.m4 will add one of these switches to LD
15903 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15904 libsuff= shlibsuff= libmagic=32-bit;;
15905 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15906 libsuff=32 shlibsuff=N32 libmagic=N32;;
15907 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15908 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15909 *) libsuff= shlibsuff= libmagic=never-match;;
15913 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15914 shlibpath_overrides_runpath=no
15915 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15916 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15917 hardcode_into_libs=yes
15920 # No shared lib support for Linux oldld, aout, or coff.
15921 linux*oldld* | linux*aout* | linux*coff*)
15925 # This must be Linux ELF.
15926 linux* | k*bsd*-gnu)
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 shlibpath_overrides_runpath=no
15935 # This implies no fast_install, which is unacceptable.
15936 # Some rework will be needed to allow for fast_install
15937 # before this can be enabled.
15938 hardcode_into_libs=yes
15940 # Append ld.so.conf contents to the search path
15941 if test -f /etc/ld.so.conf; then
15942 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' ' '`
15943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15946 # We used to test for /lib/ld.so.1 and disable shared libraries on
15947 # powerpc, because MkLinux only supported shared libraries with the
15948 # GNU dynamic linker. Since this was broken with cross compilers,
15949 # most powerpc-linux boxes support dynamic linking these days and
15950 # people can always --disable-shared, the test was removed, and we
15951 # assume the GNU/Linux dynamic linker is in use.
15952 dynamic_linker='GNU/Linux ld.so'
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 shlibpath_var=LD_LIBRARY_PATH
15962 shlibpath_overrides_runpath=no
15963 hardcode_into_libs=yes
15964 dynamic_linker='NetBSD ld.elf_so'
15971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15974 dynamic_linker='NetBSD (a.out) ld.so'
15976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15977 soname_spec='${libname}${release}${shared_ext}$major'
15978 dynamic_linker='NetBSD ld.elf_so'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=yes
15982 hardcode_into_libs=yes
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=yes
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 shlibpath_overrides_runpath=yes
16004 sys_lib_dlsearch_path_spec="/usr/lib"
16006 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16008 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16009 *) need_version=no ;;
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16016 openbsd2.[89] | openbsd2.[89].*)
16017 shlibpath_overrides_runpath=no
16020 shlibpath_overrides_runpath=yes
16024 shlibpath_overrides_runpath=yes
16029 libname_spec='$name'
16032 library_names_spec='$libname${shared_ext} $libname.a'
16033 dynamic_linker='OS/2 ld.exe'
16034 shlibpath_var=LIBPATH
16037 osf3* | osf4* | osf5*)
16041 soname_spec='${libname}${release}${shared_ext}$major'
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes
16060 hardcode_into_libs=yes
16061 # ldd complains unless libraries are executable
16062 postinstall_cmds='chmod +x $lib'
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=yes
16071 if test "$with_gnu_ld" = yes; then
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 case $host_vendor in
16084 shlibpath_overrides_runpath=no
16086 export_dynamic_flag_spec='${wl}-Blargedynsym'
16087 runpath_var=LD_RUN_PATH
16095 shlibpath_overrides_runpath=no
16096 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16102 if test -d /usr/nec ;then
16104 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16105 soname_spec='$libname${shared_ext}.$major'
16106 shlibpath_var=LD_LIBRARY_PATH
16110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16111 version_type=freebsd-elf
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16115 soname_spec='${libname}${release}${shared_ext}$major'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 hardcode_into_libs=yes
16118 if test "$with_gnu_ld" = yes; then
16119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16120 shlibpath_overrides_runpath=no
16122 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16123 shlibpath_overrides_runpath=yes
16126 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16130 sys_lib_dlsearch_path_spec='/usr/lib'
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 shlibpath_var=LD_LIBRARY_PATH
16144 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16145 echo "${ECHO_T}$dynamic_linker" >&6; }
16146 test "$dynamic_linker" = no && can_build_shared=no
16148 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16154 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16155 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16161 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16164 if test "$GCC" = yes; then
16165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16168 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16170 hardcode_action_F77=
16171 if test -n "$hardcode_libdir_flag_spec_F77" || \
16172 test -n "$runpath_var_F77" || \
16173 test "X$hardcode_automatic_F77" = "Xyes" ; then
16175 # We can hardcode non-existant directories.
16176 if test "$hardcode_direct_F77" != no &&
16177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16178 # have to relink, otherwise we might link with an installed library
16179 # when we should be linking with a yet-to-be-installed one
16180 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16181 test "$hardcode_minus_L_F77" != no; then
16182 # Linking always hardcodes the temporary library directory.
16183 hardcode_action_F77=relink
16185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16186 hardcode_action_F77=immediate
16189 # We cannot hardcode anything, or else we can only hardcode existing
16191 hardcode_action_F77=unsupported
16193 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16194 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16196 if test "$hardcode_action_F77" = relink; then
16197 # Fast installation is not supported
16198 enable_fast_install=no
16199 elif test "$shlibpath_overrides_runpath" = yes ||
16200 test "$enable_shared" = no; then
16201 # Fast installation is not necessary
16202 enable_fast_install=needless
16206 # The else clause should only fire when bootstrapping the
16207 # libtool distribution, otherwise you forgot to ship ltmain.sh
16208 # with your package, and you will get complaints that there are
16209 # no rules to generate ltmain.sh.
16210 if test -f "$ltmain"; then
16211 # See if we are running on zsh, and set the options which allow our commands through
16212 # without removal of \ escapes.
16213 if test -n "${ZSH_VERSION+set}" ; then
16214 setopt NO_GLOB_SUBST
16216 # Now quote all the things that may contain metacharacters while being
16217 # careful not to overquote the AC_SUBSTed values. We take copies of the
16218 # variables and quote the copies for generation of the libtool script.
16219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16223 deplibs_check_method reload_flag reload_cmds need_locks \
16224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16225 lt_cv_sys_global_symbol_to_c_name_address \
16226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16227 old_postinstall_cmds old_postuninstall_cmds \
16231 lt_prog_compiler_wl_F77 \
16232 lt_prog_compiler_pic_F77 \
16233 lt_prog_compiler_static_F77 \
16234 lt_prog_compiler_no_builtin_flag_F77 \
16235 export_dynamic_flag_spec_F77 \
16236 thread_safe_flag_spec_F77 \
16237 whole_archive_flag_spec_F77 \
16238 enable_shared_with_static_runtimes_F77 \
16239 old_archive_cmds_F77 \
16240 old_archive_from_new_cmds_F77 \
16241 predep_objects_F77 \
16242 postdep_objects_F77 \
16245 compiler_lib_search_path_F77 \
16246 compiler_lib_search_dirs_F77 \
16248 archive_expsym_cmds_F77 \
16249 postinstall_cmds_F77 \
16250 postuninstall_cmds_F77 \
16251 old_archive_from_expsyms_cmds_F77 \
16252 allow_undefined_flag_F77 \
16253 no_undefined_flag_F77 \
16254 export_symbols_cmds_F77 \
16255 hardcode_libdir_flag_spec_F77 \
16256 hardcode_libdir_flag_spec_ld_F77 \
16257 hardcode_libdir_separator_F77 \
16258 hardcode_automatic_F77 \
16260 module_expsym_cmds_F77 \
16261 lt_cv_prog_compiler_c_o_F77 \
16262 fix_srcfile_path_F77 \
16263 exclude_expsyms_F77 \
16264 include_expsyms_F77; do
16267 old_archive_cmds_F77 | \
16268 old_archive_from_new_cmds_F77 | \
16269 archive_cmds_F77 | \
16270 archive_expsym_cmds_F77 | \
16271 module_cmds_F77 | \
16272 module_expsym_cmds_F77 | \
16273 old_archive_from_expsyms_cmds_F77 | \
16274 export_symbols_cmds_F77 | \
16275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16276 postinstall_cmds | postuninstall_cmds | \
16277 old_postinstall_cmds | old_postuninstall_cmds | \
16278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16279 # Double-quote double-evaled strings.
16280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16289 *'\$0 --fallback-echo"')
16290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16296 cat <<__EOF__ >> "$cfgfile"
16297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16301 # Shell to use when invoking shell scripts.
16304 # Whether or not to build shared libraries.
16305 build_libtool_libs=$enable_shared
16307 # Whether or not to build static libraries.
16308 build_old_libs=$enable_static
16310 # Whether or not to add -lc for building shared libraries.
16311 build_libtool_need_lc=$archive_cmds_need_lc_F77
16313 # Whether or not to disallow shared libs when runtime libs are static
16314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16316 # Whether or not to optimize for fast installation.
16317 fast_install=$enable_fast_install
16320 host_alias=$host_alias
16324 # The build system.
16325 build_alias=$build_alias
16329 # An echo program that does not interpret backslashes.
16334 AR_FLAGS=$lt_AR_FLAGS
16339 # LTCC compiler flags.
16340 LTCFLAGS=$lt_LTCFLAGS
16342 # A language-specific compiler.
16343 CC=$lt_compiler_F77
16345 # Is the compiler the GNU C compiler?
16351 # The linker used to build libraries.
16354 # Whether we need hard or soft links.
16357 # A BSD-compatible nm program.
16360 # A symbol stripping program
16363 # Used to examine libraries when file_magic_cmd begins "file"
16364 MAGIC_CMD=$MAGIC_CMD
16366 # Used on cygwin: DLL creation program.
16369 # Used on cygwin: object dumper.
16372 # Used on cygwin: assembler.
16375 # The name of the directory that contains temporary libtool files.
16378 # How to create reloadable object files.
16379 reload_flag=$lt_reload_flag
16380 reload_cmds=$lt_reload_cmds
16382 # How to pass a linker flag through the compiler.
16383 wl=$lt_lt_prog_compiler_wl_F77
16385 # Object file suffix (normally "o").
16386 objext="$ac_objext"
16388 # Old archive suffix (normally "a").
16391 # Shared library suffix (normally ".so").
16392 shrext_cmds='$shrext_cmds'
16394 # Executable file suffix (normally "").
16397 # Additional compiler flags for building library objects.
16398 pic_flag=$lt_lt_prog_compiler_pic_F77
16401 # What is the maximum length of a command?
16402 max_cmd_len=$lt_cv_sys_max_cmd_len
16404 # Does compiler simultaneously support -c and -o options?
16405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16407 # Must we lock files when doing compilation?
16408 need_locks=$lt_need_locks
16410 # Do we need the lib prefix for modules?
16411 need_lib_prefix=$need_lib_prefix
16413 # Do we need a version for libraries?
16414 need_version=$need_version
16416 # Whether dlopen is supported.
16417 dlopen_support=$enable_dlopen
16419 # Whether dlopen of programs is supported.
16420 dlopen_self=$enable_dlopen_self
16422 # Whether dlopen of statically linked programs is supported.
16423 dlopen_self_static=$enable_dlopen_self_static
16425 # Compiler flag to prevent dynamic linking.
16426 link_static_flag=$lt_lt_prog_compiler_static_F77
16428 # Compiler flag to turn off builtin functions.
16429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16431 # Compiler flag to allow reflexive dlopens.
16432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16434 # Compiler flag to generate shared objects directly from archives.
16435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16437 # Compiler flag to generate thread-safe objects.
16438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16440 # Library versioning type.
16441 version_type=$version_type
16443 # Format of library name prefix.
16444 libname_spec=$lt_libname_spec
16446 # List of archive names. First name is the real one, the rest are links.
16447 # The last name is the one that the linker finds with -lNAME.
16448 library_names_spec=$lt_library_names_spec
16450 # The coded name of the library, if different from the real name.
16451 soname_spec=$lt_soname_spec
16453 # Commands used to build and install an old-style archive.
16455 old_archive_cmds=$lt_old_archive_cmds_F77
16456 old_postinstall_cmds=$lt_old_postinstall_cmds
16457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16459 # Create an old-style archive from a shared archive.
16460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16462 # Create a temporary old-style archive to link instead of a shared archive.
16463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16465 # Commands used to build and install a shared archive.
16466 archive_cmds=$lt_archive_cmds_F77
16467 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16468 postinstall_cmds=$lt_postinstall_cmds
16469 postuninstall_cmds=$lt_postuninstall_cmds
16471 # Commands used to build a loadable module (assumed same as above if empty)
16472 module_cmds=$lt_module_cmds_F77
16473 module_expsym_cmds=$lt_module_expsym_cmds_F77
16475 # Commands to strip libraries.
16476 old_striplib=$lt_old_striplib
16477 striplib=$lt_striplib
16479 # Dependencies to place before the objects being linked to create a
16481 predep_objects=$lt_predep_objects_F77
16483 # Dependencies to place after the objects being linked to create a
16485 postdep_objects=$lt_postdep_objects_F77
16487 # Dependencies to place before the objects being linked to create a
16489 predeps=$lt_predeps_F77
16491 # Dependencies to place after the objects being linked to create a
16493 postdeps=$lt_postdeps_F77
16495 # The directories searched by this compiler when creating a shared
16497 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16499 # The library search path used internally by the compiler when linking
16500 # a shared library.
16501 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16503 # Method to check whether dependent libraries are shared objects.
16504 deplibs_check_method=$lt_deplibs_check_method
16506 # Command to use when deplibs_check_method == file_magic.
16507 file_magic_cmd=$lt_file_magic_cmd
16509 # Flag that allows shared libraries with undefined symbols to be built.
16510 allow_undefined_flag=$lt_allow_undefined_flag_F77
16512 # Flag that forces no undefined symbols.
16513 no_undefined_flag=$lt_no_undefined_flag_F77
16515 # Commands used to finish a libtool library installation in a directory.
16516 finish_cmds=$lt_finish_cmds
16518 # Same as above, but a single script fragment to be evaled but not shown.
16519 finish_eval=$lt_finish_eval
16521 # Take the output of nm and produce a listing of raw symbols and C names.
16522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16524 # Transform the output of nm in a proper C declaration
16525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16527 # Transform the output of nm in a C name address pair
16528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16530 # This is the shared library runtime path variable.
16531 runpath_var=$runpath_var
16533 # This is the shared library path variable.
16534 shlibpath_var=$shlibpath_var
16536 # Is shlibpath searched before the hard-coded library search path?
16537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16539 # How to hardcode a shared library path into an executable.
16540 hardcode_action=$hardcode_action_F77
16542 # Whether we should hardcode library paths into libraries.
16543 hardcode_into_libs=$hardcode_into_libs
16545 # Flag to hardcode \$libdir into a binary during linking.
16546 # This must work even if \$libdir does not exist.
16547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16549 # If ld is used when linking, flag to hardcode \$libdir into
16550 # a binary during linking. This must work even if \$libdir does
16552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16554 # Whether we need a single -rpath flag with a separated argument.
16555 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16557 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16558 # resulting binary.
16559 hardcode_direct=$hardcode_direct_F77
16561 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16562 # resulting binary.
16563 hardcode_minus_L=$hardcode_minus_L_F77
16565 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16566 # the resulting binary.
16567 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16569 # Set to yes if building a shared library automatically hardcodes DIR into the library
16570 # and all subsequent libraries and executables linked against it.
16571 hardcode_automatic=$hardcode_automatic_F77
16573 # Variables whose values should be saved in libtool wrapper scripts and
16574 # restored at relink time.
16575 variables_saved_for_relink="$variables_saved_for_relink"
16577 # Whether libtool must link a program against all its dependency libraries.
16578 link_all_deplibs=$link_all_deplibs_F77
16580 # Compile-time system search path for libraries
16581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16583 # Run-time system search path for libraries
16584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16586 # Fix the shell variable \$srcfile for the compiler.
16587 fix_srcfile_path=$lt_fix_srcfile_path
16589 # Set to yes if exported symbols are required.
16590 always_export_symbols=$always_export_symbols_F77
16592 # The commands to list exported symbols.
16593 export_symbols_cmds=$lt_export_symbols_cmds_F77
16595 # The commands to extract the exported symbol list from a shared archive.
16596 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16598 # Symbols that should not be listed in the preloaded symbols.
16599 exclude_expsyms=$lt_exclude_expsyms_F77
16601 # Symbols that must always be exported.
16602 include_expsyms=$lt_include_expsyms_F77
16604 # ### END LIBTOOL TAG CONFIG: $tagname
16610 # If there is no Makefile yet, we rely on a make rule to execute
16611 # `config.status --recheck' to rerun these tests and create the
16612 # libtool script then.
16613 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16614 if test -f "$ltmain_in"; then
16615 test -f Makefile && make "$ltmain"
16621 ac_cpp='$CPP $CPPFLAGS'
16622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16637 # Source file extension for Java test sources.
16640 # Object file extension for compiled Java test sources.
16644 # Code to be used in simple compile tests
16645 lt_simple_compile_test_code="class foo {}"
16647 # Code to be used in simple link tests
16648 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16652 # If no C compiler was specified, use CC.
16655 # If no C compiler flags were specified, use CFLAGS.
16656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16658 # Allow CC to be a program name with arguments.
16662 # save warnings/boilerplate of simple test code
16663 ac_outfile=conftest.$ac_objext
16664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16666 _lt_compiler_boilerplate=`cat conftest.err`
16669 ac_outfile=conftest.$ac_objext
16670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16672 _lt_linker_boilerplate=`cat conftest.err`
16676 # Allow CC to be a program name with arguments.
16681 for cc_temp in $compiler""; do
16683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16689 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16692 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16693 archive_cmds_need_lc_GCJ=no
16695 old_archive_cmds_GCJ=$old_archive_cmds
16698 lt_prog_compiler_no_builtin_flag_GCJ=
16700 if test "$GCC" = yes; then
16701 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16704 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 lt_cv_prog_compiler_rtti_exceptions=no
16710 ac_outfile=conftest.$ac_objext
16711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16712 lt_compiler_flag="-fno-rtti -fno-exceptions"
16713 # Insert the option either (1) after the last *FLAGS variable, or
16714 # (2) before a word containing "conftest.", or (3) at the end.
16715 # Note that $ac_compile itself does not contain backslashes and begins
16716 # with a dollar sign (not a hyphen), so the echo should work correctly.
16717 # The option is referenced via a variable to avoid confusing sed.
16718 lt_compile=`echo "$ac_compile" | $SED \
16719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16721 -e 's:$: $lt_compiler_flag:'`
16722 (eval echo "\"\$as_me:16722: $lt_compile\"" >&5)
16723 (eval "$lt_compile" 2>conftest.err)
16725 cat conftest.err >&5
16726 echo "$as_me:16726: \$? = $ac_status" >&5
16727 if (exit $ac_status) && test -s "$ac_outfile"; then
16728 # The compiler can only warn and ignore the option if not recognized
16729 # So say no if there are warnings other than the usual output.
16730 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16733 lt_cv_prog_compiler_rtti_exceptions=yes
16739 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16740 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16743 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16750 lt_prog_compiler_wl_GCJ=
16751 lt_prog_compiler_pic_GCJ=
16752 lt_prog_compiler_static_GCJ=
16754 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16757 if test "$GCC" = yes; then
16758 lt_prog_compiler_wl_GCJ='-Wl,'
16759 lt_prog_compiler_static_GCJ='-static'
16763 # All AIX code is PIC.
16764 if test "$host_cpu" = ia64; then
16765 # AIX 5 now supports IA64 processor
16766 lt_prog_compiler_static_GCJ='-Bstatic'
16771 # FIXME: we need at least 68020 code to build shared libraries, but
16772 # adding the `-m68020' flag to GCC prevents building anything better,
16774 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16777 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16778 # PIC is the default for these OSes.
16781 mingw* | cygwin* | pw32* | os2*)
16782 # This hack is so that the source file can tell whether it is being
16783 # built for inclusion in a dll (and should export symbols for example).
16784 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16785 # (--disable-auto-import) libraries
16789 darwin* | rhapsody*)
16790 # PIC is the default on this platform
16791 # Common symbols not allowed in MH_DYLIB files
16792 lt_prog_compiler_pic_GCJ='-fno-common'
16796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16797 # Instead, we relocate shared libraries at runtime.
16801 # Just because we use GCC doesn't mean we suddenly get shared libraries
16802 # on systems that don't support them.
16803 lt_prog_compiler_can_build_shared_GCJ=no
16808 if test -d /usr/nec; then
16809 lt_prog_compiler_pic_GCJ=-Kconform_pic
16814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16815 # not for PA HP-UX.
16821 lt_prog_compiler_pic_GCJ='-fPIC'
16827 lt_prog_compiler_pic_GCJ='-fPIC'
16831 # PORTME Check for flag to pass linker flags through the system compiler.
16834 lt_prog_compiler_wl_GCJ='-Wl,'
16835 if test "$host_cpu" = ia64; then
16836 # AIX 5 now supports IA64 processor
16837 lt_prog_compiler_static_GCJ='-Bstatic'
16839 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16843 # PIC is the default on this platform
16844 # Common symbols not allowed in MH_DYLIB files
16845 case $cc_basename in
16847 lt_prog_compiler_pic_GCJ='-qnocommon'
16848 lt_prog_compiler_wl_GCJ='-Wl,'
16853 mingw* | cygwin* | pw32* | os2*)
16854 # This hack is so that the source file can tell whether it is being
16855 # built for inclusion in a dll (and should export symbols for example).
16859 hpux9* | hpux10* | hpux11*)
16860 lt_prog_compiler_wl_GCJ='-Wl,'
16861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16862 # not for PA HP-UX.
16868 lt_prog_compiler_pic_GCJ='+Z'
16871 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16872 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16875 irix5* | irix6* | nonstopux*)
16876 lt_prog_compiler_wl_GCJ='-Wl,'
16877 # PIC (with -KPIC) is the default.
16878 lt_prog_compiler_static_GCJ='-non_shared'
16882 lt_prog_compiler_pic_GCJ='-KPIC'
16883 lt_prog_compiler_static_GCJ='-Bstatic'
16886 linux* | k*bsd*-gnu)
16887 case $cc_basename in
16889 lt_prog_compiler_wl_GCJ='-Wl,'
16890 lt_prog_compiler_pic_GCJ='-KPIC'
16891 lt_prog_compiler_static_GCJ='-static'
16893 pgcc* | pgf77* | pgf90* | pgf95*)
16894 # Portland Group compilers (*not* the Pentium gcc compiler,
16895 # which looks to be a dead project)
16896 lt_prog_compiler_wl_GCJ='-Wl,'
16897 lt_prog_compiler_pic_GCJ='-fpic'
16898 lt_prog_compiler_static_GCJ='-Bstatic'
16901 lt_prog_compiler_wl_GCJ='-Wl,'
16902 # All Alpha code is PIC.
16903 lt_prog_compiler_static_GCJ='-non_shared'
16906 case `$CC -V 2>&1 | sed 5q` in
16909 lt_prog_compiler_pic_GCJ='-KPIC'
16910 lt_prog_compiler_static_GCJ='-Bstatic'
16911 lt_prog_compiler_wl_GCJ='-Wl,'
16914 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16915 lt_prog_compiler_pic_GCJ='-KPIC'
16916 lt_prog_compiler_static_GCJ='-Bstatic'
16917 lt_prog_compiler_wl_GCJ=''
16924 osf3* | osf4* | osf5*)
16925 lt_prog_compiler_wl_GCJ='-Wl,'
16926 # All OSF/1 code is PIC.
16927 lt_prog_compiler_static_GCJ='-non_shared'
16931 lt_prog_compiler_static_GCJ='-non_shared'
16935 lt_prog_compiler_pic_GCJ='-KPIC'
16936 lt_prog_compiler_static_GCJ='-Bstatic'
16937 case $cc_basename in
16938 f77* | f90* | f95*)
16939 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16941 lt_prog_compiler_wl_GCJ='-Wl,';;
16946 lt_prog_compiler_wl_GCJ='-Qoption ld '
16947 lt_prog_compiler_pic_GCJ='-PIC'
16948 lt_prog_compiler_static_GCJ='-Bstatic'
16951 sysv4 | sysv4.2uw2* | sysv4.3*)
16952 lt_prog_compiler_wl_GCJ='-Wl,'
16953 lt_prog_compiler_pic_GCJ='-KPIC'
16954 lt_prog_compiler_static_GCJ='-Bstatic'
16958 if test -d /usr/nec ;then
16959 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16960 lt_prog_compiler_static_GCJ='-Bstatic'
16964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16965 lt_prog_compiler_wl_GCJ='-Wl,'
16966 lt_prog_compiler_pic_GCJ='-KPIC'
16967 lt_prog_compiler_static_GCJ='-Bstatic'
16971 lt_prog_compiler_wl_GCJ='-Wl,'
16972 lt_prog_compiler_can_build_shared_GCJ=no
16976 lt_prog_compiler_pic_GCJ='-pic'
16977 lt_prog_compiler_static_GCJ='-Bstatic'
16981 lt_prog_compiler_can_build_shared_GCJ=no
16986 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16987 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16990 # Check to make sure the PIC flag actually works.
16992 if test -n "$lt_prog_compiler_pic_GCJ"; then
16994 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16995 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16996 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 lt_cv_prog_compiler_pic_works_GCJ=no
17000 ac_outfile=conftest.$ac_objext
17001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17002 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17003 # Insert the option either (1) after the last *FLAGS variable, or
17004 # (2) before a word containing "conftest.", or (3) at the end.
17005 # Note that $ac_compile itself does not contain backslashes and begins
17006 # with a dollar sign (not a hyphen), so the echo should work correctly.
17007 # The option is referenced via a variable to avoid confusing sed.
17008 lt_compile=`echo "$ac_compile" | $SED \
17009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17011 -e 's:$: $lt_compiler_flag:'`
17012 (eval echo "\"\$as_me:17012: $lt_compile\"" >&5)
17013 (eval "$lt_compile" 2>conftest.err)
17015 cat conftest.err >&5
17016 echo "$as_me:17016: \$? = $ac_status" >&5
17017 if (exit $ac_status) && test -s "$ac_outfile"; then
17018 # The compiler can only warn and ignore the option if not recognized
17019 # So say no if there are warnings other than the usual output.
17020 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17023 lt_cv_prog_compiler_pic_works_GCJ=yes
17029 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17030 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17032 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17033 case $lt_prog_compiler_pic_GCJ in
17035 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17038 lt_prog_compiler_pic_GCJ=
17039 lt_prog_compiler_can_build_shared_GCJ=no
17044 # For platforms which do not support PIC, -DPIC is meaningless:
17046 lt_prog_compiler_pic_GCJ=
17049 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17054 # Check to make sure the static flag actually works.
17056 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17057 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17058 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17059 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 lt_cv_prog_compiler_static_works_GCJ=no
17063 save_LDFLAGS="$LDFLAGS"
17064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17067 # The linker can only warn and ignore the option if not recognized
17068 # So say no if there are warnings
17069 if test -s conftest.err; then
17070 # Append any errors to the config.log.
17071 cat conftest.err 1>&5
17072 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17074 if diff conftest.exp conftest.er2 >/dev/null; then
17075 lt_cv_prog_compiler_static_works_GCJ=yes
17078 lt_cv_prog_compiler_static_works_GCJ=yes
17082 LDFLAGS="$save_LDFLAGS"
17085 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17086 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17088 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17091 lt_prog_compiler_static_GCJ=
17095 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17096 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17097 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 lt_cv_prog_compiler_c_o_GCJ=no
17101 $rm -r conftest 2>/dev/null
17105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17107 lt_compiler_flag="-o out/conftest2.$ac_objext"
17108 # Insert the option either (1) after the last *FLAGS variable, or
17109 # (2) before a word containing "conftest.", or (3) at the end.
17110 # Note that $ac_compile itself does not contain backslashes and begins
17111 # with a dollar sign (not a hyphen), so the echo should work correctly.
17112 lt_compile=`echo "$ac_compile" | $SED \
17113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17115 -e 's:$: $lt_compiler_flag:'`
17116 (eval echo "\"\$as_me:17116: $lt_compile\"" >&5)
17117 (eval "$lt_compile" 2>out/conftest.err)
17119 cat out/conftest.err >&5
17120 echo "$as_me:17120: \$? = $ac_status" >&5
17121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17123 # The compiler can only warn and ignore the option if not recognized
17124 # So say no if there are warnings
17125 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17128 lt_cv_prog_compiler_c_o_GCJ=yes
17133 # SGI C++ compiler will create directory out/ii_files/ for
17134 # template instantiation
17135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17136 $rm out/* && rmdir out
17142 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17143 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17146 hard_links="nottested"
17147 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17148 # do not overwrite the value of need_locks provided by the user
17149 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17150 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17155 ln conftest.a conftest.b 2>&5 || hard_links=no
17156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17157 { echo "$as_me:$LINENO: result: $hard_links" >&5
17158 echo "${ECHO_T}$hard_links" >&6; }
17159 if test "$hard_links" = no; then
17160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17161 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17168 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17169 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17172 allow_undefined_flag_GCJ=
17173 enable_shared_with_static_runtimes_GCJ=no
17175 archive_expsym_cmds_GCJ=
17176 old_archive_From_new_cmds_GCJ=
17177 old_archive_from_expsyms_cmds_GCJ=
17178 export_dynamic_flag_spec_GCJ=
17179 whole_archive_flag_spec_GCJ=
17180 thread_safe_flag_spec_GCJ=
17181 hardcode_libdir_flag_spec_GCJ=
17182 hardcode_libdir_flag_spec_ld_GCJ=
17183 hardcode_libdir_separator_GCJ=
17184 hardcode_direct_GCJ=no
17185 hardcode_minus_L_GCJ=no
17186 hardcode_shlibpath_var_GCJ=unsupported
17187 link_all_deplibs_GCJ=unknown
17188 hardcode_automatic_GCJ=no
17190 module_expsym_cmds_GCJ=
17191 always_export_symbols_GCJ=no
17192 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17193 # include_expsyms should be a list of space-separated symbols to be *always*
17194 # included in the symbol list
17195 include_expsyms_GCJ=
17196 # exclude_expsyms can be an extended regexp of symbols to exclude
17197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17199 # as well as any symbol that contains `d'.
17200 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17202 # platforms (ab)use it in PIC code, but their linkers get confused if
17203 # the symbol is explicitly referenced. Since portable code cannot
17204 # rely on this symbol name, it's probably fine to never include it in
17205 # preloaded symbol tables.
17206 # Exclude shared library initialization/finalization symbols.
17207 extract_expsyms_cmds=
17208 # Just being paranoid about ensuring that cc_basename is set.
17209 for cc_temp in $compiler""; do
17211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17217 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17220 cygwin* | mingw* | pw32*)
17221 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17222 # When not using gcc, we currently assume that we are using
17223 # Microsoft Visual C++.
17224 if test "$GCC" != yes; then
17229 # we just hope/assume this is gcc and not c89 (= MSVC++)
17238 if test "$with_gnu_ld" = yes; then
17239 # If archive_cmds runs LD, not CC, wlarc should be empty
17242 # Set some defaults for GNU ld with shared library support. These
17243 # are reset later if shared libraries are not supported. Putting them
17244 # here allows them to be overridden if necessary.
17245 runpath_var=LD_RUN_PATH
17246 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17247 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17248 # ancient GNU ld didn't support --whole-archive et. al.
17249 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17250 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17252 whole_archive_flag_spec_GCJ=
17254 supports_anon_versioning=no
17255 case `$LD -v 2>/dev/null` in
17256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17259 *\ 2.11.*) ;; # other 2.11 versions
17260 *) supports_anon_versioning=yes ;;
17263 # See if GNU ld supports shared libraries.
17266 # On AIX/PPC, the GNU linker is very broken
17267 if test "$host_cpu" != ia64; then
17271 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17272 *** to be unable to reliably create shared libraries on AIX.
17273 *** Therefore, libtool is disabling shared libraries support. If you
17274 *** really care for shared libraries, you may want to modify your PATH
17275 *** so that a non-GNU linker is found, and then restart.
17282 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)'
17283 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17284 hardcode_minus_L_GCJ=yes
17286 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17287 # that the semantics of dynamic libraries on AmigaOS, at least up
17288 # to version 4, is to share data among multiple programs linked
17289 # with the same dynamic library. Since this doesn't match the
17290 # behavior of shared libraries on other platforms, we can't use
17296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17297 allow_undefined_flag_GCJ=unsupported
17298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17299 # support --undefined. This deserves some investigation. FIXME
17300 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17306 cygwin* | mingw* | pw32*)
17307 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17308 # as there is no search path for DLLs.
17309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17310 allow_undefined_flag_GCJ=unsupported
17311 always_export_symbols_GCJ=no
17312 enable_shared_with_static_runtimes_GCJ=yes
17313 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17315 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17316 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17317 # If the export-symbols file already is a .def file (1st line
17318 # is EXPORTS), use it as is; otherwise, prepend...
17319 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17320 cp $export_symbols $output_objdir/$soname.def;
17322 echo EXPORTS > $output_objdir/$soname.def;
17323 cat $export_symbols >> $output_objdir/$soname.def;
17325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17332 hardcode_direct_GCJ=no
17333 hardcode_shlibpath_var_GCJ=no
17334 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17335 export_dynamic_flag_spec_GCJ='${wl}-E'
17336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17337 # Instead, shared libraries are loaded at an image base (0x10000000 by
17338 # default) and relocated if they conflict, which is a slow very memory
17339 # consuming and fragmenting process. To avoid this, we pick a random,
17340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17342 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'
17343 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'
17346 gnu* | linux* | k*bsd*-gnu)
17347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17349 case $cc_basename,$host_cpu in
17350 pgcc*) # Portland Group C compiler
17351 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'
17352 tmp_addflag=' $pic_flag'
17354 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17355 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'
17356 tmp_addflag=' $pic_flag -Mnomain' ;;
17357 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17358 tmp_addflag=' -i_dynamic' ;;
17359 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17360 tmp_addflag=' -i_dynamic -nofor_main' ;;
17361 ifc* | ifort*) # Intel Fortran compiler
17362 tmp_addflag=' -nofor_main' ;;
17364 case `$CC -V 2>&1 | sed 5q` in
17365 *Sun\ C*) # Sun C 5.9
17366 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'
17367 tmp_sharedflag='-G' ;;
17368 *Sun\ F*) # Sun Fortran 8.3
17369 tmp_sharedflag='-G' ;;
17371 tmp_sharedflag='-shared' ;;
17373 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17375 if test $supports_anon_versioning = yes; then
17376 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17378 $echo "local: *; };" >> $output_objdir/$libname.ver~
17379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17381 link_all_deplibs_GCJ=no
17387 netbsd* | netbsdelf*-gnu)
17388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17389 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17392 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17398 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17403 *** create shared libraries on Solaris systems. Therefore, libtool
17404 *** is disabling shared libraries support. We urge you to upgrade GNU
17405 *** binutils to release 2.9.1 or newer. Another option is to modify
17406 *** your PATH or compiler configuration so that the native linker is
17407 *** used, and then restart.
17410 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17419 case `$LD -v 2>&1` in
17420 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17425 *** reliably create shared libraries on SCO systems. Therefore, libtool
17426 *** is disabling shared libraries support. We urge you to upgrade GNU
17427 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17428 *** your PATH or compiler configuration so that the native linker is
17429 *** used, and then restart.
17434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17435 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17437 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17446 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17448 hardcode_direct_GCJ=yes
17449 hardcode_shlibpath_var_GCJ=no
17453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17455 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17462 if test "$ld_shlibs_GCJ" = no; then
17464 hardcode_libdir_flag_spec_GCJ=
17465 export_dynamic_flag_spec_GCJ=
17466 whole_archive_flag_spec_GCJ=
17469 # PORTME fill in a description of your system's linker (not GNU ld)
17472 allow_undefined_flag_GCJ=unsupported
17473 always_export_symbols_GCJ=yes
17474 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'
17475 # Note: this linker hardcodes the directories in LIBPATH if there
17476 # are no directories specified by -L.
17477 hardcode_minus_L_GCJ=yes
17478 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17479 # Neither direct hardcoding nor static linking is supported with a
17481 hardcode_direct_GCJ=unsupported
17486 if test "$host_cpu" = ia64; then
17487 # On IA64, the linker does run time linking by default, so we don't
17488 # have to do anything special.
17489 aix_use_runtimelinking=no
17490 exp_sym_flag='-Bexport'
17493 # If we're using GNU nm, then we don't want the "-C" option.
17494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17495 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17496 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'
17498 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'
17500 aix_use_runtimelinking=no
17502 # Test if we are trying to use run time linking or normal
17503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17504 # need to do runtime linking.
17505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17506 for ld_flag in $LDFLAGS; do
17507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17508 aix_use_runtimelinking=yes
17515 exp_sym_flag='-bexport'
17516 no_entry_flag='-bnoentry'
17519 # When large executables or shared objects are built, AIX ld can
17520 # have problems creating the table of contents. If linking a library
17521 # or program results in "error TOC overflow" add -mminimal-toc to
17522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17525 archive_cmds_GCJ=''
17526 hardcode_direct_GCJ=yes
17527 hardcode_libdir_separator_GCJ=':'
17528 link_all_deplibs_GCJ=yes
17530 if test "$GCC" = yes; then
17531 case $host_os in aix4.[012]|aix4.[012].*)
17532 # We only want to do this on AIX 4.2 and lower, the check
17533 # below for broken collect2 doesn't work under 4.3+
17534 collect2name=`${CC} -print-prog-name=collect2`
17535 if test -f "$collect2name" && \
17536 strings "$collect2name" | grep resolve_lib_name >/dev/null
17538 # We have reworked collect2
17541 # We have old collect2
17542 hardcode_direct_GCJ=unsupported
17543 # It fails to find uninstalled libraries when the uninstalled
17544 # path is not listed in the libpath. Setting hardcode_minus_L
17545 # to unsupported forces relinking
17546 hardcode_minus_L_GCJ=yes
17547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548 hardcode_libdir_separator_GCJ=
17552 shared_flag='-shared'
17553 if test "$aix_use_runtimelinking" = yes; then
17554 shared_flag="$shared_flag "'${wl}-G'
17558 if test "$host_cpu" = ia64; then
17559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17560 # chokes on -Wl,-G. The following line is correct:
17563 if test "$aix_use_runtimelinking" = yes; then
17564 shared_flag='${wl}-G'
17566 shared_flag='${wl}-bM:SRE'
17571 # It seems that -bexpall does not export symbols beginning with
17572 # underscore (_), so it is better to generate a list of symbols to export.
17573 always_export_symbols_GCJ=yes
17574 if test "$aix_use_runtimelinking" = yes; then
17575 # Warning - without using the other runtime loading flags (-brtl),
17576 # -berok will link without error, but may produce a broken library.
17577 allow_undefined_flag_GCJ='-berok'
17578 # Determine the default libpath from the value encoded in an empty executable.
17579 cat >conftest.$ac_ext <<_ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_link") 2>conftest.er1
17603 grep -v '^ *+' conftest.er1 >conftest.err
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } && {
17608 test -z "$ac_c_werror_flag" ||
17609 test ! -s conftest.err
17610 } && test -s conftest$ac_exeext &&
17611 $as_test_x conftest$ac_exeext; then
17613 lt_aix_libpath_sed='
17614 /Import File Strings/,/^$/ {
17620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17621 # Check for a 64-bit object if we didn't find anything.
17622 if test -z "$aix_libpath"; then
17623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17636 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17637 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"
17639 if test "$host_cpu" = ia64; then
17640 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17641 allow_undefined_flag_GCJ="-z nodefs"
17642 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"
17644 # Determine the default libpath from the value encoded in an empty executable.
17645 cat >conftest.$ac_ext <<_ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (ac_try="$ac_link"
17662 case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_link") 2>conftest.er1
17669 grep -v '^ *+' conftest.er1 >conftest.err
17671 cat conftest.err >&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } && {
17674 test -z "$ac_c_werror_flag" ||
17675 test ! -s conftest.err
17676 } && test -s conftest$ac_exeext &&
17677 $as_test_x conftest$ac_exeext; then
17679 lt_aix_libpath_sed='
17680 /Import File Strings/,/^$/ {
17686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17687 # Check for a 64-bit object if we didn't find anything.
17688 if test -z "$aix_libpath"; then
17689 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17699 conftest$ac_exeext conftest.$ac_ext
17700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17702 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17703 # Warning - without using the other run time loading flags,
17704 # -berok will link without error, but may produce a broken library.
17705 no_undefined_flag_GCJ=' ${wl}-bernotok'
17706 allow_undefined_flag_GCJ=' ${wl}-berok'
17707 # Exported symbols can be pulled into shared objects from archives
17708 whole_archive_flag_spec_GCJ='$convenience'
17709 archive_cmds_need_lc_GCJ=yes
17710 # This is similar to how AIX traditionally builds its shared libraries.
17711 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'
17717 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)'
17718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17719 hardcode_minus_L_GCJ=yes
17720 # see comment about different semantics on the GNU ld section
17725 export_dynamic_flag_spec_GCJ=-rdynamic
17728 cygwin* | mingw* | pw32*)
17729 # When not using gcc, we currently assume that we are using
17730 # Microsoft Visual C++.
17731 # hardcode_libdir_flag_spec is actually meaningless, as there is
17732 # no search path for DLLs.
17733 hardcode_libdir_flag_spec_GCJ=' '
17734 allow_undefined_flag_GCJ=unsupported
17735 # Tell ltmain to make .lib files, not .a files.
17737 # Tell ltmain to make .dll files, not .so files.
17739 # FIXME: Setting linknames here is a bad hack.
17740 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17741 # The linker will automatically build a .lib file if we build a DLL.
17742 old_archive_From_new_cmds_GCJ='true'
17743 # FIXME: Should let the user specify the lib program.
17744 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17745 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17746 enable_shared_with_static_runtimes_GCJ=yes
17749 darwin* | rhapsody*)
17751 rhapsody* | darwin1.[012])
17752 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17755 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17756 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17758 case ${MACOSX_DEPLOYMENT_TARGET} in
17760 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17763 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17769 archive_cmds_need_lc_GCJ=no
17770 hardcode_direct_GCJ=no
17771 hardcode_automatic_GCJ=yes
17772 hardcode_shlibpath_var_GCJ=unsupported
17773 whole_archive_flag_spec_GCJ=''
17774 link_all_deplibs_GCJ=yes
17775 if test "$GCC" = yes ; then
17776 output_verbose_link_cmd='echo'
17777 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}"
17778 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17779 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}"
17780 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}"
17782 case $cc_basename in
17784 output_verbose_link_cmd='echo'
17785 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17786 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17787 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17788 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}'
17789 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}'
17799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17801 hardcode_shlibpath_var_GCJ=no
17808 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17809 # support. Future versions do this automatically, but an explicit c++rt0.o
17810 # does not break anything, and helps significantly (at the cost of a little
17813 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17814 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17815 hardcode_direct_GCJ=yes
17816 hardcode_shlibpath_var_GCJ=no
17819 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17821 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17822 hardcode_direct_GCJ=yes
17823 hardcode_minus_L_GCJ=yes
17824 hardcode_shlibpath_var_GCJ=no
17827 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17828 freebsd* | dragonfly*)
17829 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17830 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17831 hardcode_direct_GCJ=yes
17832 hardcode_shlibpath_var_GCJ=no
17836 if test "$GCC" = yes; then
17837 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'
17839 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'
17841 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17842 hardcode_libdir_separator_GCJ=:
17843 hardcode_direct_GCJ=yes
17845 # hardcode_minus_L: Not really in the search PATH,
17846 # but as the default location of the library.
17847 hardcode_minus_L_GCJ=yes
17848 export_dynamic_flag_spec_GCJ='${wl}-E'
17852 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17853 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17855 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17857 if test "$with_gnu_ld" = no; then
17858 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17859 hardcode_libdir_separator_GCJ=:
17861 hardcode_direct_GCJ=yes
17862 export_dynamic_flag_spec_GCJ='${wl}-E'
17864 # hardcode_minus_L: Not really in the search PATH,
17865 # but as the default location of the library.
17866 hardcode_minus_L_GCJ=yes
17871 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17874 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17877 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17880 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17886 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17889 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17892 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17896 if test "$with_gnu_ld" = no; then
17897 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17898 hardcode_libdir_separator_GCJ=:
17902 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17903 hardcode_direct_GCJ=no
17904 hardcode_shlibpath_var_GCJ=no
17907 hardcode_direct_GCJ=yes
17908 export_dynamic_flag_spec_GCJ='${wl}-E'
17910 # hardcode_minus_L: Not really in the search PATH,
17911 # but as the default location of the library.
17912 hardcode_minus_L_GCJ=yes
17918 irix5* | irix6* | nonstopux*)
17919 if test "$GCC" = yes; then
17920 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'
17922 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'
17923 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17925 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17926 hardcode_libdir_separator_GCJ=:
17927 link_all_deplibs_GCJ=yes
17930 netbsd* | netbsdelf*-gnu)
17931 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17932 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17934 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17936 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17937 hardcode_direct_GCJ=yes
17938 hardcode_shlibpath_var_GCJ=no
17942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17943 hardcode_direct_GCJ=yes
17944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17945 hardcode_libdir_separator_GCJ=:
17946 hardcode_shlibpath_var_GCJ=no
17950 if test -f /usr/libexec/ld.so; then
17951 hardcode_direct_GCJ=yes
17952 hardcode_shlibpath_var_GCJ=no
17953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17954 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17955 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17957 export_dynamic_flag_spec_GCJ='${wl}-E'
17960 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17965 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17977 hardcode_minus_L_GCJ=yes
17978 allow_undefined_flag_GCJ=unsupported
17979 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'
17980 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17984 if test "$GCC" = yes; then
17985 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17986 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'
17988 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17989 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'
17991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17992 hardcode_libdir_separator_GCJ=:
17995 osf4* | osf5*) # as osf3* with the addition of -msym flag
17996 if test "$GCC" = yes; then
17997 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17998 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'
17999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18001 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18002 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'
18003 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~
18004 $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'
18006 # Both c and cxx compiler support -rpath directly
18007 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18009 hardcode_libdir_separator_GCJ=:
18013 no_undefined_flag_GCJ=' -z text'
18014 if test "$GCC" = yes; then
18016 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18017 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18018 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18021 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18026 hardcode_shlibpath_var_GCJ=no
18028 solaris2.[0-5] | solaris2.[0-5].*) ;;
18030 # The compiler driver will combine and reorder linker options,
18031 # but understands `-z linker_flag'. GCC discards it without `$wl',
18032 # but is careful enough not to reorder.
18033 # Supported since Solaris 2.6 (maybe 2.5.1?)
18034 if test "$GCC" = yes; then
18035 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18037 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18041 link_all_deplibs_GCJ=yes
18045 if test "x$host_vendor" = xsequent; then
18046 # Use $CC to link under sequent, because it throws in some extra .o
18047 # files that make .init and .fini sections work.
18048 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18050 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18053 hardcode_direct_GCJ=yes
18054 hardcode_minus_L_GCJ=yes
18055 hardcode_shlibpath_var_GCJ=no
18059 case $host_vendor in
18061 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18062 hardcode_direct_GCJ=yes # is this really true???
18065 ## LD is ld it makes a PLAMLIB
18066 ## CC just makes a GrossModule.
18067 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18068 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18069 hardcode_direct_GCJ=no
18072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18076 runpath_var='LD_RUN_PATH'
18077 hardcode_shlibpath_var_GCJ=no
18081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082 hardcode_shlibpath_var_GCJ=no
18083 export_dynamic_flag_spec_GCJ='-Bexport'
18087 if test -d /usr/nec; then
18088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18089 hardcode_shlibpath_var_GCJ=no
18090 runpath_var=LD_RUN_PATH
18091 hardcode_runpath_var=yes
18096 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18097 no_undefined_flag_GCJ='${wl}-z,text'
18098 archive_cmds_need_lc_GCJ=no
18099 hardcode_shlibpath_var_GCJ=no
18100 runpath_var='LD_RUN_PATH'
18102 if test "$GCC" = yes; then
18103 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18107 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18111 sysv5* | sco3.2v5* | sco5v6*)
18112 # Note: We can NOT use -z defs as we might desire, because we do not
18113 # link with -lc, and that would cause any symbols used from libc to
18114 # always be unresolved, which means just about no library would
18115 # ever link correctly. If we're not using GNU ld we use -z text
18116 # though, which does catch some bad symbols but isn't as heavy-handed
18118 no_undefined_flag_GCJ='${wl}-z,text'
18119 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18120 archive_cmds_need_lc_GCJ=no
18121 hardcode_shlibpath_var_GCJ=no
18122 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18123 hardcode_libdir_separator_GCJ=':'
18124 link_all_deplibs_GCJ=yes
18125 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18126 runpath_var='LD_RUN_PATH'
18128 if test "$GCC" = yes; then
18129 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18133 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140 hardcode_shlibpath_var_GCJ=no
18149 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18150 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18151 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18154 # Do we need to explicitly link libc?
18156 case "x$archive_cmds_need_lc_GCJ" in
18158 # Assume -lc should be added
18159 archive_cmds_need_lc_GCJ=yes
18161 if test "$enable_shared" = yes && test "$GCC" = yes; then
18162 case $archive_cmds_GCJ in
18164 # FIXME: we may have to deal with multi-command sequences.
18167 # Test whether the compiler implicitly links with -lc since on some
18168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18169 # to ld, don't add -lc before -lgcc.
18170 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18171 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18176 (eval $ac_compile) 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } 2>conftest.err; then
18182 libobjs=conftest.$ac_objext
18184 wl=$lt_prog_compiler_wl_GCJ
18185 pic_flag=$lt_prog_compiler_pic_GCJ
18191 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18192 allow_undefined_flag_GCJ=
18193 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18194 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }
18199 archive_cmds_need_lc_GCJ=no
18201 archive_cmds_need_lc_GCJ=yes
18203 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18205 cat conftest.err 1>&5
18208 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18209 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18216 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18217 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18218 library_names_spec=
18219 libname_spec='lib$name'
18223 postuninstall_cmds=
18227 shlibpath_overrides_runpath=unknown
18229 dynamic_linker="$host_os ld.so"
18230 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18232 need_lib_prefix=unknown
18233 hardcode_into_libs=no
18235 # when you set need_version to no, make sure it does not cause -set_version
18236 # flags to be left without arguments
18237 need_version=unknown
18242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18243 shlibpath_var=LIBPATH
18245 # AIX 3 has no versioning support, so we append a major version to the name.
18246 soname_spec='${libname}${release}${shared_ext}$major'
18253 hardcode_into_libs=yes
18254 if test "$host_cpu" = ia64; then
18255 # AIX 5 supports IA64
18256 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18257 shlibpath_var=LD_LIBRARY_PATH
18259 # With GCC up to 2.95.x, collect2 would create an import file
18260 # for dependence libraries. The import file would start with
18261 # the line `#! .'. This would cause the generated library to
18262 # depend on `.', always an invalid library. This was fixed in
18263 # development snapshots of GCC prior to 3.0.
18265 aix4 | aix4.[01] | aix4.[01].*)
18266 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18268 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18271 can_build_shared=no
18275 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18276 # soname into executable. Probably we can add versioning support to
18277 # collect2, so additional links can be useful in future.
18278 if test "$aix_use_runtimelinking" = yes; then
18279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18280 # instead of lib<name>.a to let people know that these are not
18281 # typical AIX shared libraries.
18282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18284 # We preserve .a as extension for shared libraries through AIX4.2
18285 # and later when we are not doing run time linking.
18286 library_names_spec='${libname}${release}.a $libname.a'
18287 soname_spec='${libname}${release}${shared_ext}$major'
18289 shlibpath_var=LIBPATH
18294 library_names_spec='$libname.ixlibrary $libname.a'
18295 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18296 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'
18300 library_names_spec='${libname}${shared_ext}'
18301 dynamic_linker="$host_os ld.so"
18302 shlibpath_var=LIBRARY_PATH
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 soname_spec='${libname}${release}${shared_ext}$major'
18310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18314 # the default ld.so.conf also contains /usr/contrib/lib and
18315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18316 # libtool to hard-code these into programs
18319 cygwin* | mingw* | pw32*)
18320 version_type=windows
18325 case $GCC,$host_os in
18326 yes,cygwin* | yes,mingw* | yes,pw32*)
18327 library_names_spec='$libname.dll.a'
18328 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18329 postinstall_cmds='base_file=`basename \${file}`~
18330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18331 dldir=$destdir/`dirname \$dlpath`~
18332 test -d \$dldir || mkdir -p \$dldir~
18333 $install_prog $dir/$dlname \$dldir/$dlname~
18334 chmod a+x \$dldir/$dlname'
18335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18336 dlpath=$dir/\$dldll~
18338 shlibpath_overrides_runpath=yes
18342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18347 # MinGW DLLs use traditional 'lib' prefix
18348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18351 # It is most probably a Windows format PATH printed by
18352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18353 # path with ; separators, and with drive letters. We can handle the
18354 # drive letters (cygwin fileutils understands them), so leave them,
18355 # especially as we might pass files found there to a mingw objdump,
18356 # which wouldn't understand a cygwinified path. Ahh.
18357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18363 # pw32 DLLs use 'pw' prefix rather than 'lib'
18364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18373 dynamic_linker='Win32 ld.exe'
18374 # FIXME: first we should search . and the directory the executable is in
18378 darwin* | rhapsody*)
18379 dynamic_linker="$host_os dyld"
18380 version_type=darwin
18383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18384 soname_spec='${libname}${release}${major}$shared_ext'
18385 shlibpath_overrides_runpath=yes
18386 shlibpath_var=DYLD_LIBRARY_PATH
18387 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 shlibpath_var=LD_LIBRARY_PATH
18405 freebsd* | dragonfly*)
18406 # DragonFly does not have aout. When/if they implement a new
18407 # versioning mechanism, adjust this.
18408 if test -x /usr/bin/objformat; then
18409 objformat=`/usr/bin/objformat`
18412 freebsd[123]*) objformat=aout ;;
18413 *) objformat=elf ;;
18416 version_type=freebsd-$objformat
18417 case $version_type in
18419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18428 shlibpath_var=LD_LIBRARY_PATH
18431 shlibpath_overrides_runpath=yes
18433 freebsd3.[01]* | freebsdelf3.[01]*)
18434 shlibpath_overrides_runpath=yes
18435 hardcode_into_libs=yes
18437 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18438 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18439 shlibpath_overrides_runpath=no
18440 hardcode_into_libs=yes
18442 *) # from 4.6 on, and DragonFly
18443 shlibpath_overrides_runpath=yes
18444 hardcode_into_libs=yes
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 hardcode_into_libs=yes
18459 hpux9* | hpux10* | hpux11*)
18460 # Give a soname corresponding to the major version so that dld.sl refuses to
18461 # link against other versions.
18468 hardcode_into_libs=yes
18469 dynamic_linker="$host_os dld.so"
18470 shlibpath_var=LD_LIBRARY_PATH
18471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473 soname_spec='${libname}${release}${shared_ext}$major'
18474 if test "X$HPUX_IA64_MODE" = X32; then
18475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18477 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18483 hardcode_into_libs=yes
18484 dynamic_linker="$host_os dld.sl"
18485 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18494 dynamic_linker="$host_os dld.sl"
18495 shlibpath_var=SHLIB_PATH
18496 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18498 soname_spec='${libname}${release}${shared_ext}$major'
18501 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18502 postinstall_cmds='chmod 555 $lib'
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18510 soname_spec='${libname}${release}${shared_ext}$major'
18511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=no
18514 hardcode_into_libs=yes
18517 irix5* | irix6* | nonstopux*)
18519 nonstopux*) version_type=nonstopux ;;
18521 if test "$lt_cv_prog_gnu_ld" = yes; then
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18532 irix5* | nonstopux*)
18533 libsuff= shlibsuff=
18536 case $LD in # libtool.m4 will add one of these switches to LD
18537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18538 libsuff= shlibsuff= libmagic=32-bit;;
18539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18540 libsuff=32 shlibsuff=N32 libmagic=N32;;
18541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18542 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18543 *) libsuff= shlibsuff= libmagic=never-match;;
18547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18548 shlibpath_overrides_runpath=no
18549 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18550 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18551 hardcode_into_libs=yes
18554 # No shared lib support for Linux oldld, aout, or coff.
18555 linux*oldld* | linux*aout* | linux*coff*)
18559 # This must be Linux ELF.
18560 linux* | k*bsd*-gnu)
18564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565 soname_spec='${libname}${release}${shared_ext}$major'
18566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 shlibpath_overrides_runpath=no
18569 # This implies no fast_install, which is unacceptable.
18570 # Some rework will be needed to allow for fast_install
18571 # before this can be enabled.
18572 hardcode_into_libs=yes
18574 # Append ld.so.conf contents to the search path
18575 if test -f /etc/ld.so.conf; then
18576 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' ' '`
18577 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18580 # We used to test for /lib/ld.so.1 and disable shared libraries on
18581 # powerpc, because MkLinux only supported shared libraries with the
18582 # GNU dynamic linker. Since this was broken with cross compilers,
18583 # most powerpc-linux boxes support dynamic linking these days and
18584 # people can always --disable-shared, the test was removed, and we
18585 # assume the GNU/Linux dynamic linker is in use.
18586 dynamic_linker='GNU/Linux ld.so'
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 shlibpath_var=LD_LIBRARY_PATH
18596 shlibpath_overrides_runpath=no
18597 hardcode_into_libs=yes
18598 dynamic_linker='NetBSD ld.elf_so'
18605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18608 dynamic_linker='NetBSD (a.out) ld.so'
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 dynamic_linker='NetBSD ld.elf_so'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=yes
18616 hardcode_into_libs=yes
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 shlibpath_overrides_runpath=yes
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 shlibpath_var=LD_LIBRARY_PATH
18633 shlibpath_overrides_runpath=yes
18638 sys_lib_dlsearch_path_spec="/usr/lib"
18640 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18642 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18643 *) need_version=no ;;
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18647 shlibpath_var=LD_LIBRARY_PATH
18648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18650 openbsd2.[89] | openbsd2.[89].*)
18651 shlibpath_overrides_runpath=no
18654 shlibpath_overrides_runpath=yes
18658 shlibpath_overrides_runpath=yes
18663 libname_spec='$name'
18666 library_names_spec='$libname${shared_ext} $libname.a'
18667 dynamic_linker='OS/2 ld.exe'
18668 shlibpath_var=LIBPATH
18671 osf3* | osf4* | osf5*)
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 shlibpath_overrides_runpath=yes
18694 hardcode_into_libs=yes
18695 # ldd complains unless libraries are executable
18696 postinstall_cmds='chmod +x $lib'
18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18703 shlibpath_var=LD_LIBRARY_PATH
18704 shlibpath_overrides_runpath=yes
18705 if test "$with_gnu_ld" = yes; then
18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714 soname_spec='${libname}${release}${shared_ext}$major'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 case $host_vendor in
18718 shlibpath_overrides_runpath=no
18720 export_dynamic_flag_spec='${wl}-Blargedynsym'
18721 runpath_var=LD_RUN_PATH
18729 shlibpath_overrides_runpath=no
18730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18736 if test -d /usr/nec ;then
18738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18739 soname_spec='$libname${shared_ext}.$major'
18740 shlibpath_var=LD_LIBRARY_PATH
18744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18745 version_type=freebsd-elf
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 hardcode_into_libs=yes
18752 if test "$with_gnu_ld" = yes; then
18753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18754 shlibpath_overrides_runpath=no
18756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18757 shlibpath_overrides_runpath=yes
18760 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18764 sys_lib_dlsearch_path_spec='/usr/lib'
18769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770 soname_spec='${libname}${release}${shared_ext}$major'
18771 shlibpath_var=LD_LIBRARY_PATH
18778 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18779 echo "${ECHO_T}$dynamic_linker" >&6; }
18780 test "$dynamic_linker" = no && can_build_shared=no
18782 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18795 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18798 if test "$GCC" = yes; then
18799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18804 hardcode_action_GCJ=
18805 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18806 test -n "$runpath_var_GCJ" || \
18807 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18809 # We can hardcode non-existant directories.
18810 if test "$hardcode_direct_GCJ" != no &&
18811 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18812 # have to relink, otherwise we might link with an installed library
18813 # when we should be linking with a yet-to-be-installed one
18814 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18815 test "$hardcode_minus_L_GCJ" != no; then
18816 # Linking always hardcodes the temporary library directory.
18817 hardcode_action_GCJ=relink
18819 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18820 hardcode_action_GCJ=immediate
18823 # We cannot hardcode anything, or else we can only hardcode existing
18825 hardcode_action_GCJ=unsupported
18827 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18828 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18830 if test "$hardcode_action_GCJ" = relink; then
18831 # Fast installation is not supported
18832 enable_fast_install=no
18833 elif test "$shlibpath_overrides_runpath" = yes ||
18834 test "$enable_shared" = no; then
18835 # Fast installation is not necessary
18836 enable_fast_install=needless
18840 # The else clause should only fire when bootstrapping the
18841 # libtool distribution, otherwise you forgot to ship ltmain.sh
18842 # with your package, and you will get complaints that there are
18843 # no rules to generate ltmain.sh.
18844 if test -f "$ltmain"; then
18845 # See if we are running on zsh, and set the options which allow our commands through
18846 # without removal of \ escapes.
18847 if test -n "${ZSH_VERSION+set}" ; then
18848 setopt NO_GLOB_SUBST
18850 # Now quote all the things that may contain metacharacters while being
18851 # careful not to overquote the AC_SUBSTed values. We take copies of the
18852 # variables and quote the copies for generation of the libtool script.
18853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18857 deplibs_check_method reload_flag reload_cmds need_locks \
18858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18859 lt_cv_sys_global_symbol_to_c_name_address \
18860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18861 old_postinstall_cmds old_postuninstall_cmds \
18865 lt_prog_compiler_wl_GCJ \
18866 lt_prog_compiler_pic_GCJ \
18867 lt_prog_compiler_static_GCJ \
18868 lt_prog_compiler_no_builtin_flag_GCJ \
18869 export_dynamic_flag_spec_GCJ \
18870 thread_safe_flag_spec_GCJ \
18871 whole_archive_flag_spec_GCJ \
18872 enable_shared_with_static_runtimes_GCJ \
18873 old_archive_cmds_GCJ \
18874 old_archive_from_new_cmds_GCJ \
18875 predep_objects_GCJ \
18876 postdep_objects_GCJ \
18879 compiler_lib_search_path_GCJ \
18880 compiler_lib_search_dirs_GCJ \
18882 archive_expsym_cmds_GCJ \
18883 postinstall_cmds_GCJ \
18884 postuninstall_cmds_GCJ \
18885 old_archive_from_expsyms_cmds_GCJ \
18886 allow_undefined_flag_GCJ \
18887 no_undefined_flag_GCJ \
18888 export_symbols_cmds_GCJ \
18889 hardcode_libdir_flag_spec_GCJ \
18890 hardcode_libdir_flag_spec_ld_GCJ \
18891 hardcode_libdir_separator_GCJ \
18892 hardcode_automatic_GCJ \
18894 module_expsym_cmds_GCJ \
18895 lt_cv_prog_compiler_c_o_GCJ \
18896 fix_srcfile_path_GCJ \
18897 exclude_expsyms_GCJ \
18898 include_expsyms_GCJ; do
18901 old_archive_cmds_GCJ | \
18902 old_archive_from_new_cmds_GCJ | \
18903 archive_cmds_GCJ | \
18904 archive_expsym_cmds_GCJ | \
18905 module_cmds_GCJ | \
18906 module_expsym_cmds_GCJ | \
18907 old_archive_from_expsyms_cmds_GCJ | \
18908 export_symbols_cmds_GCJ | \
18909 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18910 postinstall_cmds | postuninstall_cmds | \
18911 old_postinstall_cmds | old_postuninstall_cmds | \
18912 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18913 # Double-quote double-evaled strings.
18914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18923 *'\$0 --fallback-echo"')
18924 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18930 cat <<__EOF__ >> "$cfgfile"
18931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18935 # Shell to use when invoking shell scripts.
18938 # Whether or not to build shared libraries.
18939 build_libtool_libs=$enable_shared
18941 # Whether or not to build static libraries.
18942 build_old_libs=$enable_static
18944 # Whether or not to add -lc for building shared libraries.
18945 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18947 # Whether or not to disallow shared libs when runtime libs are static
18948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18950 # Whether or not to optimize for fast installation.
18951 fast_install=$enable_fast_install
18954 host_alias=$host_alias
18958 # The build system.
18959 build_alias=$build_alias
18963 # An echo program that does not interpret backslashes.
18968 AR_FLAGS=$lt_AR_FLAGS
18973 # LTCC compiler flags.
18974 LTCFLAGS=$lt_LTCFLAGS
18976 # A language-specific compiler.
18977 CC=$lt_compiler_GCJ
18979 # Is the compiler the GNU C compiler?
18985 # The linker used to build libraries.
18988 # Whether we need hard or soft links.
18991 # A BSD-compatible nm program.
18994 # A symbol stripping program
18997 # Used to examine libraries when file_magic_cmd begins "file"
18998 MAGIC_CMD=$MAGIC_CMD
19000 # Used on cygwin: DLL creation program.
19003 # Used on cygwin: object dumper.
19006 # Used on cygwin: assembler.
19009 # The name of the directory that contains temporary libtool files.
19012 # How to create reloadable object files.
19013 reload_flag=$lt_reload_flag
19014 reload_cmds=$lt_reload_cmds
19016 # How to pass a linker flag through the compiler.
19017 wl=$lt_lt_prog_compiler_wl_GCJ
19019 # Object file suffix (normally "o").
19020 objext="$ac_objext"
19022 # Old archive suffix (normally "a").
19025 # Shared library suffix (normally ".so").
19026 shrext_cmds='$shrext_cmds'
19028 # Executable file suffix (normally "").
19031 # Additional compiler flags for building library objects.
19032 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19035 # What is the maximum length of a command?
19036 max_cmd_len=$lt_cv_sys_max_cmd_len
19038 # Does compiler simultaneously support -c and -o options?
19039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19041 # Must we lock files when doing compilation?
19042 need_locks=$lt_need_locks
19044 # Do we need the lib prefix for modules?
19045 need_lib_prefix=$need_lib_prefix
19047 # Do we need a version for libraries?
19048 need_version=$need_version
19050 # Whether dlopen is supported.
19051 dlopen_support=$enable_dlopen
19053 # Whether dlopen of programs is supported.
19054 dlopen_self=$enable_dlopen_self
19056 # Whether dlopen of statically linked programs is supported.
19057 dlopen_self_static=$enable_dlopen_self_static
19059 # Compiler flag to prevent dynamic linking.
19060 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19062 # Compiler flag to turn off builtin functions.
19063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19065 # Compiler flag to allow reflexive dlopens.
19066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19068 # Compiler flag to generate shared objects directly from archives.
19069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19071 # Compiler flag to generate thread-safe objects.
19072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19074 # Library versioning type.
19075 version_type=$version_type
19077 # Format of library name prefix.
19078 libname_spec=$lt_libname_spec
19080 # List of archive names. First name is the real one, the rest are links.
19081 # The last name is the one that the linker finds with -lNAME.
19082 library_names_spec=$lt_library_names_spec
19084 # The coded name of the library, if different from the real name.
19085 soname_spec=$lt_soname_spec
19087 # Commands used to build and install an old-style archive.
19089 old_archive_cmds=$lt_old_archive_cmds_GCJ
19090 old_postinstall_cmds=$lt_old_postinstall_cmds
19091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19093 # Create an old-style archive from a shared archive.
19094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19096 # Create a temporary old-style archive to link instead of a shared archive.
19097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19099 # Commands used to build and install a shared archive.
19100 archive_cmds=$lt_archive_cmds_GCJ
19101 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19102 postinstall_cmds=$lt_postinstall_cmds
19103 postuninstall_cmds=$lt_postuninstall_cmds
19105 # Commands used to build a loadable module (assumed same as above if empty)
19106 module_cmds=$lt_module_cmds_GCJ
19107 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19109 # Commands to strip libraries.
19110 old_striplib=$lt_old_striplib
19111 striplib=$lt_striplib
19113 # Dependencies to place before the objects being linked to create a
19115 predep_objects=$lt_predep_objects_GCJ
19117 # Dependencies to place after the objects being linked to create a
19119 postdep_objects=$lt_postdep_objects_GCJ
19121 # Dependencies to place before the objects being linked to create a
19123 predeps=$lt_predeps_GCJ
19125 # Dependencies to place after the objects being linked to create a
19127 postdeps=$lt_postdeps_GCJ
19129 # The directories searched by this compiler when creating a shared
19131 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19133 # The library search path used internally by the compiler when linking
19134 # a shared library.
19135 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19137 # Method to check whether dependent libraries are shared objects.
19138 deplibs_check_method=$lt_deplibs_check_method
19140 # Command to use when deplibs_check_method == file_magic.
19141 file_magic_cmd=$lt_file_magic_cmd
19143 # Flag that allows shared libraries with undefined symbols to be built.
19144 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19146 # Flag that forces no undefined symbols.
19147 no_undefined_flag=$lt_no_undefined_flag_GCJ
19149 # Commands used to finish a libtool library installation in a directory.
19150 finish_cmds=$lt_finish_cmds
19152 # Same as above, but a single script fragment to be evaled but not shown.
19153 finish_eval=$lt_finish_eval
19155 # Take the output of nm and produce a listing of raw symbols and C names.
19156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19158 # Transform the output of nm in a proper C declaration
19159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19161 # Transform the output of nm in a C name address pair
19162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19164 # This is the shared library runtime path variable.
19165 runpath_var=$runpath_var
19167 # This is the shared library path variable.
19168 shlibpath_var=$shlibpath_var
19170 # Is shlibpath searched before the hard-coded library search path?
19171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19173 # How to hardcode a shared library path into an executable.
19174 hardcode_action=$hardcode_action_GCJ
19176 # Whether we should hardcode library paths into libraries.
19177 hardcode_into_libs=$hardcode_into_libs
19179 # Flag to hardcode \$libdir into a binary during linking.
19180 # This must work even if \$libdir does not exist.
19181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19183 # If ld is used when linking, flag to hardcode \$libdir into
19184 # a binary during linking. This must work even if \$libdir does
19186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19188 # Whether we need a single -rpath flag with a separated argument.
19189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19192 # resulting binary.
19193 hardcode_direct=$hardcode_direct_GCJ
19195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19196 # resulting binary.
19197 hardcode_minus_L=$hardcode_minus_L_GCJ
19199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19200 # the resulting binary.
19201 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19203 # Set to yes if building a shared library automatically hardcodes DIR into the library
19204 # and all subsequent libraries and executables linked against it.
19205 hardcode_automatic=$hardcode_automatic_GCJ
19207 # Variables whose values should be saved in libtool wrapper scripts and
19208 # restored at relink time.
19209 variables_saved_for_relink="$variables_saved_for_relink"
19211 # Whether libtool must link a program against all its dependency libraries.
19212 link_all_deplibs=$link_all_deplibs_GCJ
19214 # Compile-time system search path for libraries
19215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19217 # Run-time system search path for libraries
19218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19220 # Fix the shell variable \$srcfile for the compiler.
19221 fix_srcfile_path=$lt_fix_srcfile_path
19223 # Set to yes if exported symbols are required.
19224 always_export_symbols=$always_export_symbols_GCJ
19226 # The commands to list exported symbols.
19227 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19229 # The commands to extract the exported symbol list from a shared archive.
19230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19232 # Symbols that should not be listed in the preloaded symbols.
19233 exclude_expsyms=$lt_exclude_expsyms_GCJ
19235 # Symbols that must always be exported.
19236 include_expsyms=$lt_include_expsyms_GCJ
19238 # ### END LIBTOOL TAG CONFIG: $tagname
19244 # If there is no Makefile yet, we rely on a make rule to execute
19245 # `config.status --recheck' to rerun these tests and create the
19246 # libtool script then.
19247 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19248 if test -f "$ltmain_in"; then
19249 test -f Makefile && make "$ltmain"
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270 # Source file extension for RC test sources.
19273 # Object file extension for compiled RC test sources.
19277 # Code to be used in simple compile tests
19278 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19280 # Code to be used in simple link tests
19281 lt_simple_link_test_code="$lt_simple_compile_test_code"
19283 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19285 # If no C compiler was specified, use CC.
19288 # If no C compiler flags were specified, use CFLAGS.
19289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19291 # Allow CC to be a program name with arguments.
19295 # save warnings/boilerplate of simple test code
19296 ac_outfile=conftest.$ac_objext
19297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19299 _lt_compiler_boilerplate=`cat conftest.err`
19302 ac_outfile=conftest.$ac_objext
19303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19305 _lt_linker_boilerplate=`cat conftest.err`
19309 # Allow CC to be a program name with arguments.
19314 for cc_temp in $compiler""; do
19316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19324 lt_cv_prog_compiler_c_o_RC=yes
19326 # The else clause should only fire when bootstrapping the
19327 # libtool distribution, otherwise you forgot to ship ltmain.sh
19328 # with your package, and you will get complaints that there are
19329 # no rules to generate ltmain.sh.
19330 if test -f "$ltmain"; then
19331 # See if we are running on zsh, and set the options which allow our commands through
19332 # without removal of \ escapes.
19333 if test -n "${ZSH_VERSION+set}" ; then
19334 setopt NO_GLOB_SUBST
19336 # Now quote all the things that may contain metacharacters while being
19337 # careful not to overquote the AC_SUBSTed values. We take copies of the
19338 # variables and quote the copies for generation of the libtool script.
19339 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19341 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19342 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19343 deplibs_check_method reload_flag reload_cmds need_locks \
19344 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19345 lt_cv_sys_global_symbol_to_c_name_address \
19346 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19347 old_postinstall_cmds old_postuninstall_cmds \
19351 lt_prog_compiler_wl_RC \
19352 lt_prog_compiler_pic_RC \
19353 lt_prog_compiler_static_RC \
19354 lt_prog_compiler_no_builtin_flag_RC \
19355 export_dynamic_flag_spec_RC \
19356 thread_safe_flag_spec_RC \
19357 whole_archive_flag_spec_RC \
19358 enable_shared_with_static_runtimes_RC \
19359 old_archive_cmds_RC \
19360 old_archive_from_new_cmds_RC \
19361 predep_objects_RC \
19362 postdep_objects_RC \
19365 compiler_lib_search_path_RC \
19366 compiler_lib_search_dirs_RC \
19368 archive_expsym_cmds_RC \
19369 postinstall_cmds_RC \
19370 postuninstall_cmds_RC \
19371 old_archive_from_expsyms_cmds_RC \
19372 allow_undefined_flag_RC \
19373 no_undefined_flag_RC \
19374 export_symbols_cmds_RC \
19375 hardcode_libdir_flag_spec_RC \
19376 hardcode_libdir_flag_spec_ld_RC \
19377 hardcode_libdir_separator_RC \
19378 hardcode_automatic_RC \
19380 module_expsym_cmds_RC \
19381 lt_cv_prog_compiler_c_o_RC \
19382 fix_srcfile_path_RC \
19383 exclude_expsyms_RC \
19384 include_expsyms_RC; do
19387 old_archive_cmds_RC | \
19388 old_archive_from_new_cmds_RC | \
19389 archive_cmds_RC | \
19390 archive_expsym_cmds_RC | \
19392 module_expsym_cmds_RC | \
19393 old_archive_from_expsyms_cmds_RC | \
19394 export_symbols_cmds_RC | \
19395 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19396 postinstall_cmds | postuninstall_cmds | \
19397 old_postinstall_cmds | old_postuninstall_cmds | \
19398 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19399 # Double-quote double-evaled strings.
19400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19409 *'\$0 --fallback-echo"')
19410 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19416 cat <<__EOF__ >> "$cfgfile"
19417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19421 # Shell to use when invoking shell scripts.
19424 # Whether or not to build shared libraries.
19425 build_libtool_libs=$enable_shared
19427 # Whether or not to build static libraries.
19428 build_old_libs=$enable_static
19430 # Whether or not to add -lc for building shared libraries.
19431 build_libtool_need_lc=$archive_cmds_need_lc_RC
19433 # Whether or not to disallow shared libs when runtime libs are static
19434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19436 # Whether or not to optimize for fast installation.
19437 fast_install=$enable_fast_install
19440 host_alias=$host_alias
19444 # The build system.
19445 build_alias=$build_alias
19449 # An echo program that does not interpret backslashes.
19454 AR_FLAGS=$lt_AR_FLAGS
19459 # LTCC compiler flags.
19460 LTCFLAGS=$lt_LTCFLAGS
19462 # A language-specific compiler.
19465 # Is the compiler the GNU C compiler?
19471 # The linker used to build libraries.
19474 # Whether we need hard or soft links.
19477 # A BSD-compatible nm program.
19480 # A symbol stripping program
19483 # Used to examine libraries when file_magic_cmd begins "file"
19484 MAGIC_CMD=$MAGIC_CMD
19486 # Used on cygwin: DLL creation program.
19489 # Used on cygwin: object dumper.
19492 # Used on cygwin: assembler.
19495 # The name of the directory that contains temporary libtool files.
19498 # How to create reloadable object files.
19499 reload_flag=$lt_reload_flag
19500 reload_cmds=$lt_reload_cmds
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl_RC
19505 # Object file suffix (normally "o").
19506 objext="$ac_objext"
19508 # Old archive suffix (normally "a").
19511 # Shared library suffix (normally ".so").
19512 shrext_cmds='$shrext_cmds'
19514 # Executable file suffix (normally "").
19517 # Additional compiler flags for building library objects.
19518 pic_flag=$lt_lt_prog_compiler_pic_RC
19521 # What is the maximum length of a command?
19522 max_cmd_len=$lt_cv_sys_max_cmd_len
19524 # Does compiler simultaneously support -c and -o options?
19525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19527 # Must we lock files when doing compilation?
19528 need_locks=$lt_need_locks
19530 # Do we need the lib prefix for modules?
19531 need_lib_prefix=$need_lib_prefix
19533 # Do we need a version for libraries?
19534 need_version=$need_version
19536 # Whether dlopen is supported.
19537 dlopen_support=$enable_dlopen
19539 # Whether dlopen of programs is supported.
19540 dlopen_self=$enable_dlopen_self
19542 # Whether dlopen of statically linked programs is supported.
19543 dlopen_self_static=$enable_dlopen_self_static
19545 # Compiler flag to prevent dynamic linking.
19546 link_static_flag=$lt_lt_prog_compiler_static_RC
19548 # Compiler flag to turn off builtin functions.
19549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19551 # Compiler flag to allow reflexive dlopens.
19552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19554 # Compiler flag to generate shared objects directly from archives.
19555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19557 # Compiler flag to generate thread-safe objects.
19558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19560 # Library versioning type.
19561 version_type=$version_type
19563 # Format of library name prefix.
19564 libname_spec=$lt_libname_spec
19566 # List of archive names. First name is the real one, the rest are links.
19567 # The last name is the one that the linker finds with -lNAME.
19568 library_names_spec=$lt_library_names_spec
19570 # The coded name of the library, if different from the real name.
19571 soname_spec=$lt_soname_spec
19573 # Commands used to build and install an old-style archive.
19575 old_archive_cmds=$lt_old_archive_cmds_RC
19576 old_postinstall_cmds=$lt_old_postinstall_cmds
19577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19579 # Create an old-style archive from a shared archive.
19580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19582 # Create a temporary old-style archive to link instead of a shared archive.
19583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19585 # Commands used to build and install a shared archive.
19586 archive_cmds=$lt_archive_cmds_RC
19587 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19588 postinstall_cmds=$lt_postinstall_cmds
19589 postuninstall_cmds=$lt_postuninstall_cmds
19591 # Commands used to build a loadable module (assumed same as above if empty)
19592 module_cmds=$lt_module_cmds_RC
19593 module_expsym_cmds=$lt_module_expsym_cmds_RC
19595 # Commands to strip libraries.
19596 old_striplib=$lt_old_striplib
19597 striplib=$lt_striplib
19599 # Dependencies to place before the objects being linked to create a
19601 predep_objects=$lt_predep_objects_RC
19603 # Dependencies to place after the objects being linked to create a
19605 postdep_objects=$lt_postdep_objects_RC
19607 # Dependencies to place before the objects being linked to create a
19609 predeps=$lt_predeps_RC
19611 # Dependencies to place after the objects being linked to create a
19613 postdeps=$lt_postdeps_RC
19615 # The directories searched by this compiler when creating a shared
19617 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19619 # The library search path used internally by the compiler when linking
19620 # a shared library.
19621 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19623 # Method to check whether dependent libraries are shared objects.
19624 deplibs_check_method=$lt_deplibs_check_method
19626 # Command to use when deplibs_check_method == file_magic.
19627 file_magic_cmd=$lt_file_magic_cmd
19629 # Flag that allows shared libraries with undefined symbols to be built.
19630 allow_undefined_flag=$lt_allow_undefined_flag_RC
19632 # Flag that forces no undefined symbols.
19633 no_undefined_flag=$lt_no_undefined_flag_RC
19635 # Commands used to finish a libtool library installation in a directory.
19636 finish_cmds=$lt_finish_cmds
19638 # Same as above, but a single script fragment to be evaled but not shown.
19639 finish_eval=$lt_finish_eval
19641 # Take the output of nm and produce a listing of raw symbols and C names.
19642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19644 # Transform the output of nm in a proper C declaration
19645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19647 # Transform the output of nm in a C name address pair
19648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19650 # This is the shared library runtime path variable.
19651 runpath_var=$runpath_var
19653 # This is the shared library path variable.
19654 shlibpath_var=$shlibpath_var
19656 # Is shlibpath searched before the hard-coded library search path?
19657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19659 # How to hardcode a shared library path into an executable.
19660 hardcode_action=$hardcode_action_RC
19662 # Whether we should hardcode library paths into libraries.
19663 hardcode_into_libs=$hardcode_into_libs
19665 # Flag to hardcode \$libdir into a binary during linking.
19666 # This must work even if \$libdir does not exist.
19667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19669 # If ld is used when linking, flag to hardcode \$libdir into
19670 # a binary during linking. This must work even if \$libdir does
19672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19674 # Whether we need a single -rpath flag with a separated argument.
19675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_direct=$hardcode_direct_RC
19681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19682 # resulting binary.
19683 hardcode_minus_L=$hardcode_minus_L_RC
19685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19686 # the resulting binary.
19687 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19689 # Set to yes if building a shared library automatically hardcodes DIR into the library
19690 # and all subsequent libraries and executables linked against it.
19691 hardcode_automatic=$hardcode_automatic_RC
19693 # Variables whose values should be saved in libtool wrapper scripts and
19694 # restored at relink time.
19695 variables_saved_for_relink="$variables_saved_for_relink"
19697 # Whether libtool must link a program against all its dependency libraries.
19698 link_all_deplibs=$link_all_deplibs_RC
19700 # Compile-time system search path for libraries
19701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19703 # Run-time system search path for libraries
19704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19706 # Fix the shell variable \$srcfile for the compiler.
19707 fix_srcfile_path=$lt_fix_srcfile_path
19709 # Set to yes if exported symbols are required.
19710 always_export_symbols=$always_export_symbols_RC
19712 # The commands to list exported symbols.
19713 export_symbols_cmds=$lt_export_symbols_cmds_RC
19715 # The commands to extract the exported symbol list from a shared archive.
19716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19718 # Symbols that should not be listed in the preloaded symbols.
19719 exclude_expsyms=$lt_exclude_expsyms_RC
19721 # Symbols that must always be exported.
19722 include_expsyms=$lt_include_expsyms_RC
19724 # ### END LIBTOOL TAG CONFIG: $tagname
19730 # If there is no Makefile yet, we rely on a make rule to execute
19731 # `config.status --recheck' to rerun these tests and create the
19732 # libtool script then.
19733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19734 if test -f "$ltmain_in"; then
19735 test -f Makefile && make "$ltmain"
19741 ac_cpp='$CPP $CPPFLAGS'
19742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19752 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19753 { (exit 1); exit 1; }; }
19757 # Append the new tag name to the list of available tags.
19758 if test -n "$tagname" ; then
19759 available_tags="$available_tags $tagname"
19765 # Now substitute the updated list of available tags.
19766 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19767 mv "${ofile}T" "$ofile"
19771 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19772 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19773 { (exit 1); exit 1; }; }
19779 # This can be used to rebuild libtool when needed
19780 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19782 # Always use our own libtool.
19783 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19785 # Prevent multiple expansion
19808 # Check whether some low-level functions/files are available
19809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19811 if test "${ac_cv_header_stdc+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <stdlib.h>
19821 #include <stdarg.h>
19822 #include <string.h>
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest.$ac_objext; then
19850 ac_cv_header_stdc=yes
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19855 ac_cv_header_stdc=no
19858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19860 if test $ac_cv_header_stdc = yes; then
19861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19862 cat >conftest.$ac_ext <<_ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 #include <string.h>
19871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19872 $EGREP "memchr" >/dev/null 2>&1; then
19875 ac_cv_header_stdc=no
19881 if test $ac_cv_header_stdc = yes; then
19882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 #include <stdlib.h>
19892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19893 $EGREP "free" >/dev/null 2>&1; then
19896 ac_cv_header_stdc=no
19902 if test $ac_cv_header_stdc = yes; then
19903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19904 if test "$cross_compiling" = yes; then
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 #include <stdlib.h>
19915 #if ((' ' & 0x0FF) == 0x020)
19916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19919 # define ISLOWER(c) \
19920 (('a' <= (c) && (c) <= 'i') \
19921 || ('j' <= (c) && (c) <= 'r') \
19922 || ('s' <= (c) && (c) <= 'z'))
19923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19931 for (i = 0; i < 256; i++)
19932 if (XOR (islower (i), ISLOWER (i))
19933 || toupper (i) != TOUPPER (i))
19938 rm -f conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_link") 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; }; then
19960 echo "$as_me: program exited with status $ac_status" >&5
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ( exit $ac_status )
19965 ac_cv_header_stdc=no
19967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19975 if test $ac_cv_header_stdc = yes; then
19977 cat >>confdefs.h <<\_ACEOF
19978 #define STDC_HEADERS 1
19984 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19985 if test "${ac_cv_header_stdint_h+set}" = set; then
19986 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19987 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19988 if test "${ac_cv_header_stdint_h+set}" = set; then
19989 echo $ECHO_N "(cached) $ECHO_C" >&6
19991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19992 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19994 # Is the header compilable?
19995 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19996 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19997 cat >conftest.$ac_ext <<_ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 $ac_includes_default
20004 #include <stdint.h>
20006 rm -f conftest.$ac_objext
20007 if { (ac_try="$ac_compile"
20008 case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_compile") 2>conftest.er1
20015 grep -v '^ *+' conftest.er1 >conftest.err
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } && {
20020 test -z "$ac_c_werror_flag" ||
20021 test ! -s conftest.err
20022 } && test -s conftest.$ac_objext; then
20023 ac_header_compiler=yes
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20028 ac_header_compiler=no
20031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20033 echo "${ECHO_T}$ac_header_compiler" >&6; }
20035 # Is the header present?
20036 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20037 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 #include <stdint.h>
20046 if { (ac_try="$ac_cpp conftest.$ac_ext"
20047 case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } >/dev/null && {
20059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20062 ac_header_preproc=yes
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 ac_header_preproc=no
20070 rm -f conftest.err conftest.$ac_ext
20071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20072 echo "${ECHO_T}$ac_header_preproc" >&6; }
20074 # So? What about this header?
20075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20077 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20078 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20080 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20081 ac_header_preproc=yes
20084 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20085 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20087 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20089 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20091 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20092 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20093 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20095 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20097 ## ------------------------------------ ##
20098 ## Report this to opensource@google.com ##
20099 ## ------------------------------------ ##
20101 ) | sed "s/^/$as_me: WARNING: /" >&2
20104 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20105 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20106 if test "${ac_cv_header_stdint_h+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 ac_cv_header_stdint_h=$ac_header_preproc
20111 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20112 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20115 if test $ac_cv_header_stdint_h = yes; then
20116 ac_cv_have_stdint_h=1
20118 ac_cv_have_stdint_h=0
20122 if test "${ac_cv_header_sys_types_h+set}" = set; then
20123 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20124 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20125 if test "${ac_cv_header_sys_types_h+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20129 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20131 # Is the header compilable?
20132 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20133 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20141 #include <sys/types.h>
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest.$ac_objext; then
20160 ac_header_compiler=yes
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_header_compiler=no
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6; }
20172 # Is the header present?
20173 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20174 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 #include <sys/types.h>
20183 if { (ac_try="$ac_cpp conftest.$ac_ext"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20191 grep -v '^ *+' conftest.er1 >conftest.err
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } >/dev/null && {
20196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20199 ac_header_preproc=yes
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_header_preproc=no
20207 rm -f conftest.err conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20209 echo "${ECHO_T}$ac_header_preproc" >&6; }
20211 # So? What about this header?
20212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20214 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20215 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20217 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20218 ac_header_preproc=yes
20221 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20222 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20224 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20226 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20228 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20230 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20232 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20234 ## ------------------------------------ ##
20235 ## Report this to opensource@google.com ##
20236 ## ------------------------------------ ##
20238 ) | sed "s/^/$as_me: WARNING: /" >&2
20241 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20242 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20243 if test "${ac_cv_header_sys_types_h+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 ac_cv_header_sys_types_h=$ac_header_preproc
20248 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20249 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20252 if test $ac_cv_header_sys_types_h = yes; then
20253 ac_cv_have_systypes_h=1
20255 ac_cv_have_systypes_h=0
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20261 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20262 if test "${ac_cv_header_inttypes_h+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20266 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20268 # Is the header compilable?
20269 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20270 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20271 cat >conftest.$ac_ext <<_ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 $ac_includes_default
20278 #include <inttypes.h>
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest.$ac_objext; then
20297 ac_header_compiler=yes
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_header_compiler=no
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20307 echo "${ECHO_T}$ac_header_compiler" >&6; }
20309 # Is the header present?
20310 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20311 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 #include <inttypes.h>
20320 if { (ac_try="$ac_cpp conftest.$ac_ext"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } >/dev/null && {
20333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20336 ac_header_preproc=yes
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_header_preproc=no
20344 rm -f conftest.err conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20346 echo "${ECHO_T}$ac_header_preproc" >&6; }
20348 # So? What about this header?
20349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20351 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20352 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20354 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20355 ac_header_preproc=yes
20358 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20359 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20361 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20363 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20365 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20367 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20369 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20371 ## ------------------------------------ ##
20372 ## Report this to opensource@google.com ##
20373 ## ------------------------------------ ##
20375 ) | sed "s/^/$as_me: WARNING: /" >&2
20378 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20379 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20380 if test "${ac_cv_header_inttypes_h+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 ac_cv_header_inttypes_h=$ac_header_preproc
20385 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20386 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20389 if test $ac_cv_header_inttypes_h = yes; then
20390 ac_cv_have_inttypes_h=1
20392 ac_cv_have_inttypes_h=0
20397 for ac_header in unistd.h
20399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 ac_res=`eval echo '${'$as_ac_Header'}'`
20407 { echo "$as_me:$LINENO: result: $ac_res" >&5
20408 echo "${ECHO_T}$ac_res" >&6; }
20410 # Is the header compilable?
20411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419 $ac_includes_default
20420 #include <$ac_header>
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_compile") 2>conftest.er1
20431 grep -v '^ *+' conftest.er1 >conftest.err
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && {
20436 test -z "$ac_c_werror_flag" ||
20437 test ! -s conftest.err
20438 } && test -s conftest.$ac_objext; then
20439 ac_header_compiler=yes
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 ac_header_compiler=no
20447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20449 echo "${ECHO_T}$ac_header_compiler" >&6; }
20451 # Is the header present?
20452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 #include <$ac_header>
20462 if { (ac_try="$ac_cpp conftest.$ac_ext"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } >/dev/null && {
20475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20478 ac_header_preproc=yes
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_header_preproc=no
20486 rm -f conftest.err conftest.$ac_ext
20487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20488 echo "${ECHO_T}$ac_header_preproc" >&6; }
20490 # So? What about this header?
20491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20497 ac_header_preproc=yes
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20513 ## ------------------------------------ ##
20514 ## Report this to opensource@google.com ##
20515 ## ------------------------------------ ##
20517 ) | sed "s/^/$as_me: WARNING: /" >&2
20520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 eval "$as_ac_Header=\$ac_header_preproc"
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528 { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20533 cat >>confdefs.h <<_ACEOF
20534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20536 ac_cv_have_unistd_h=1
20538 ac_cv_have_unistd_h=0
20544 for ac_header in syscall.h
20546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 ac_res=`eval echo '${'$as_ac_Header'}'`
20554 { echo "$as_me:$LINENO: result: $ac_res" >&5
20555 echo "${ECHO_T}$ac_res" >&6; }
20557 # Is the header compilable?
20558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20560 cat >conftest.$ac_ext <<_ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 $ac_includes_default
20567 #include <$ac_header>
20569 rm -f conftest.$ac_objext
20570 if { (ac_try="$ac_compile"
20571 case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576 (eval "$ac_compile") 2>conftest.er1
20578 grep -v '^ *+' conftest.er1 >conftest.err
20580 cat conftest.err >&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && {
20583 test -z "$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 } && test -s conftest.$ac_objext; then
20586 ac_header_compiler=yes
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_header_compiler=no
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20596 echo "${ECHO_T}$ac_header_compiler" >&6; }
20598 # Is the header present?
20599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20601 cat >conftest.$ac_ext <<_ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 #include <$ac_header>
20609 if { (ac_try="$ac_cpp conftest.$ac_ext"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } >/dev/null && {
20622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20625 ac_header_preproc=yes
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_header_preproc=no
20633 rm -f conftest.err conftest.$ac_ext
20634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20635 echo "${ECHO_T}$ac_header_preproc" >&6; }
20637 # So? What about this header?
20638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20644 ac_header_preproc=yes
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20660 ## ------------------------------------ ##
20661 ## Report this to opensource@google.com ##
20662 ## ------------------------------------ ##
20664 ) | sed "s/^/$as_me: WARNING: /" >&2
20667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 eval "$as_ac_Header=\$ac_header_preproc"
20674 ac_res=`eval echo '${'$as_ac_Header'}'`
20675 { echo "$as_me:$LINENO: result: $ac_res" >&5
20676 echo "${ECHO_T}$ac_res" >&6; }
20679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20689 for ac_header in sys/syscall.h
20691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 ac_res=`eval echo '${'$as_ac_Header'}'`
20699 { echo "$as_me:$LINENO: result: $ac_res" >&5
20700 echo "${ECHO_T}$ac_res" >&6; }
20702 # Is the header compilable?
20703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20705 cat >conftest.$ac_ext <<_ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20711 $ac_includes_default
20712 #include <$ac_header>
20714 rm -f conftest.$ac_objext
20715 if { (ac_try="$ac_compile"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_compile") 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } && {
20728 test -z "$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20730 } && test -s conftest.$ac_objext; then
20731 ac_header_compiler=yes
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_header_compiler=no
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20741 echo "${ECHO_T}$ac_header_compiler" >&6; }
20743 # Is the header present?
20744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20746 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20752 #include <$ac_header>
20754 if { (ac_try="$ac_cpp conftest.$ac_ext"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20762 grep -v '^ *+' conftest.er1 >conftest.err
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } >/dev/null && {
20767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20770 ac_header_preproc=yes
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ac_header_preproc=no
20778 rm -f conftest.err conftest.$ac_ext
20779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20780 echo "${ECHO_T}$ac_header_preproc" >&6; }
20782 # So? What about this header?
20783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20789 ac_header_preproc=yes
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20805 ## ------------------------------------ ##
20806 ## Report this to opensource@google.com ##
20807 ## ------------------------------------ ##
20809 ) | sed "s/^/$as_me: WARNING: /" >&2
20812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 eval "$as_ac_Header=\$ac_header_preproc"
20819 ac_res=`eval echo '${'$as_ac_Header'}'`
20820 { echo "$as_me:$LINENO: result: $ac_res" >&5
20821 echo "${ECHO_T}$ac_res" >&6; }
20824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20825 cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20833 # For backtrace with glibc.
20835 for ac_header in execinfo.h
20837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 ac_res=`eval echo '${'$as_ac_Header'}'`
20845 { echo "$as_me:$LINENO: result: $ac_res" >&5
20846 echo "${ECHO_T}$ac_res" >&6; }
20848 # Is the header compilable?
20849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 $ac_includes_default
20858 #include <$ac_header>
20860 rm -f conftest.$ac_objext
20861 if { (ac_try="$ac_compile"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_compile") 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } && {
20874 test -z "$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 } && test -s conftest.$ac_objext; then
20877 ac_header_compiler=yes
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ac_header_compiler=no
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6; }
20889 # Is the header present?
20890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <$ac_header>
20900 if { (ac_try="$ac_cpp conftest.$ac_ext"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } >/dev/null && {
20913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20916 ac_header_preproc=yes
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ac_header_preproc=no
20924 rm -f conftest.err conftest.$ac_ext
20925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20926 echo "${ECHO_T}$ac_header_preproc" >&6; }
20928 # So? What about this header?
20929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20935 ac_header_preproc=yes
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20951 ## ------------------------------------ ##
20952 ## Report this to opensource@google.com ##
20953 ## ------------------------------------ ##
20955 ) | sed "s/^/$as_me: WARNING: /" >&2
20958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 eval "$as_ac_Header=\$ac_header_preproc"
20965 ac_res=`eval echo '${'$as_ac_Header'}'`
20966 { echo "$as_me:$LINENO: result: $ac_res" >&5
20967 echo "${ECHO_T}$ac_res" >&6; }
20970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20971 cat >>confdefs.h <<_ACEOF
20972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979 # For backtrace with libunwind.
20981 for ac_header in libunwind.h
20983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 ac_res=`eval echo '${'$as_ac_Header'}'`
20991 { echo "$as_me:$LINENO: result: $ac_res" >&5
20992 echo "${ECHO_T}$ac_res" >&6; }
20994 # Is the header compilable?
20995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003 $ac_includes_default
21004 #include <$ac_header>
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_compile") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest.$ac_objext; then
21023 ac_header_compiler=yes
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_header_compiler=no
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21033 echo "${ECHO_T}$ac_header_compiler" >&6; }
21035 # Is the header present?
21036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <$ac_header>
21046 if { (ac_try="$ac_cpp conftest.$ac_ext"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } >/dev/null && {
21059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21060 test ! -s conftest.err
21062 ac_header_preproc=yes
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_header_preproc=no
21070 rm -f conftest.err conftest.$ac_ext
21071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21072 echo "${ECHO_T}$ac_header_preproc" >&6; }
21074 # So? What about this header?
21075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21081 ac_header_preproc=yes
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21097 ## ------------------------------------ ##
21098 ## Report this to opensource@google.com ##
21099 ## ------------------------------------ ##
21101 ) | sed "s/^/$as_me: WARNING: /" >&2
21104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 eval "$as_ac_Header=\$ac_header_preproc"
21111 ac_res=`eval echo '${'$as_ac_Header'}'`
21112 { echo "$as_me:$LINENO: result: $ac_res" >&5
21113 echo "${ECHO_T}$ac_res" >&6; }
21116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21117 cat >>confdefs.h <<_ACEOF
21118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21126 for ac_header in ucontext.h
21128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 ac_res=`eval echo '${'$as_ac_Header'}'`
21136 { echo "$as_me:$LINENO: result: $ac_res" >&5
21137 echo "${ECHO_T}$ac_res" >&6; }
21139 # Is the header compilable?
21140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 $ac_includes_default
21149 #include <$ac_header>
21151 rm -f conftest.$ac_objext
21152 if { (ac_try="$ac_compile"
21153 case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_compile") 2>conftest.er1
21160 grep -v '^ *+' conftest.er1 >conftest.err
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } && {
21165 test -z "$ac_c_werror_flag" ||
21166 test ! -s conftest.err
21167 } && test -s conftest.$ac_objext; then
21168 ac_header_compiler=yes
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_header_compiler=no
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21178 echo "${ECHO_T}$ac_header_compiler" >&6; }
21180 # Is the header present?
21181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 #include <$ac_header>
21191 if { (ac_try="$ac_cpp conftest.$ac_ext"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21199 grep -v '^ *+' conftest.er1 >conftest.err
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } >/dev/null && {
21204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21207 ac_header_preproc=yes
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_header_preproc=no
21215 rm -f conftest.err conftest.$ac_ext
21216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6; }
21219 # So? What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21226 ac_header_preproc=yes
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21242 ## ------------------------------------ ##
21243 ## Report this to opensource@google.com ##
21244 ## ------------------------------------ ##
21246 ) | sed "s/^/$as_me: WARNING: /" >&2
21249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 eval "$as_ac_Header=\$ac_header_preproc"
21256 ac_res=`eval echo '${'$as_ac_Header'}'`
21257 { echo "$as_me:$LINENO: result: $ac_res" >&5
21258 echo "${ECHO_T}$ac_res" >&6; }
21261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21262 cat >>confdefs.h <<_ACEOF
21263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21271 for ac_header in sys/utsname.h
21273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_res=`eval echo '${'$as_ac_Header'}'`
21281 { echo "$as_me:$LINENO: result: $ac_res" >&5
21282 echo "${ECHO_T}$ac_res" >&6; }
21284 # Is the header compilable?
21285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 $ac_includes_default
21294 #include <$ac_header>
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21305 grep -v '^ *+' conftest.er1 >conftest.err
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_header_compiler=yes
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_compiler=no
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21323 echo "${ECHO_T}$ac_header_compiler" >&6; }
21325 # Is the header present?
21326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 #include <$ac_header>
21336 if { (ac_try="$ac_cpp conftest.$ac_ext"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null && {
21349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21352 ac_header_preproc=yes
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ac_header_preproc=no
21360 rm -f conftest.err conftest.$ac_ext
21361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21362 echo "${ECHO_T}$ac_header_preproc" >&6; }
21364 # So? What about this header?
21365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21371 ac_header_preproc=yes
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21387 ## ------------------------------------ ##
21388 ## Report this to opensource@google.com ##
21389 ## ------------------------------------ ##
21391 ) | sed "s/^/$as_me: WARNING: /" >&2
21394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 eval "$as_ac_Header=\$ac_header_preproc"
21401 ac_res=`eval echo '${'$as_ac_Header'}'`
21402 { echo "$as_me:$LINENO: result: $ac_res" >&5
21403 echo "${ECHO_T}$ac_res" >&6; }
21406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21407 cat >>confdefs.h <<_ACEOF
21408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21416 for ac_header in pwd.h
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 ac_res=`eval echo '${'$as_ac_Header'}'`
21426 { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21429 # Is the header compilable?
21430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 $ac_includes_default
21439 #include <$ac_header>
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_compile") 2>conftest.er1
21450 grep -v '^ *+' conftest.er1 >conftest.err
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } && {
21455 test -z "$ac_c_werror_flag" ||
21456 test ! -s conftest.err
21457 } && test -s conftest.$ac_objext; then
21458 ac_header_compiler=yes
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 ac_header_compiler=no
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21468 echo "${ECHO_T}$ac_header_compiler" >&6; }
21470 # Is the header present?
21471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 #include <$ac_header>
21481 if { (ac_try="$ac_cpp conftest.$ac_ext"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } >/dev/null && {
21494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21497 ac_header_preproc=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_header_preproc=no
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21509 # So? What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516 ac_header_preproc=yes
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21532 ## ------------------------------------ ##
21533 ## Report this to opensource@google.com ##
21534 ## ------------------------------------ ##
21536 ) | sed "s/^/$as_me: WARNING: /" >&2
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 eval "$as_ac_Header=\$ac_header_preproc"
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552 cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21561 for ac_header in syslog.h
21563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 ac_res=`eval echo '${'$as_ac_Header'}'`
21571 { echo "$as_me:$LINENO: result: $ac_res" >&5
21572 echo "${ECHO_T}$ac_res" >&6; }
21574 # Is the header compilable?
21575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 #include <$ac_header>
21586 rm -f conftest.$ac_objext
21587 if { (ac_try="$ac_compile"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_compile") 2>conftest.er1
21595 grep -v '^ *+' conftest.er1 >conftest.err
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } && {
21600 test -z "$ac_c_werror_flag" ||
21601 test ! -s conftest.err
21602 } && test -s conftest.$ac_objext; then
21603 ac_header_compiler=yes
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_header_compiler=no
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6; }
21615 # Is the header present?
21616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 #include <$ac_header>
21626 if { (ac_try="$ac_cpp conftest.$ac_ext"
21627 case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21634 grep -v '^ *+' conftest.er1 >conftest.err
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } >/dev/null && {
21639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21640 test ! -s conftest.err
21642 ac_header_preproc=yes
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ac_header_preproc=no
21650 rm -f conftest.err conftest.$ac_ext
21651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652 echo "${ECHO_T}$ac_header_preproc" >&6; }
21654 # So? What about this header?
21655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21661 ac_header_preproc=yes
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21677 ## ------------------------------------ ##
21678 ## Report this to opensource@google.com ##
21679 ## ------------------------------------ ##
21681 ) | sed "s/^/$as_me: WARNING: /" >&2
21684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 eval "$as_ac_Header=\$ac_header_preproc"
21691 ac_res=`eval echo '${'$as_ac_Header'}'`
21692 { echo "$as_me:$LINENO: result: $ac_res" >&5
21693 echo "${ECHO_T}$ac_res" >&6; }
21696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21697 cat >>confdefs.h <<_ACEOF
21698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21706 for ac_header in sys/time.h
21708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 ac_res=`eval echo '${'$as_ac_Header'}'`
21716 { echo "$as_me:$LINENO: result: $ac_res" >&5
21717 echo "${ECHO_T}$ac_res" >&6; }
21719 # Is the header compilable?
21720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21722 cat >conftest.$ac_ext <<_ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728 $ac_includes_default
21729 #include <$ac_header>
21731 rm -f conftest.$ac_objext
21732 if { (ac_try="$ac_compile"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_compile") 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest.$ac_objext; then
21748 ac_header_compiler=yes
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21753 ac_header_compiler=no
21756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21758 echo "${ECHO_T}$ac_header_compiler" >&6; }
21760 # Is the header present?
21761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 #include <$ac_header>
21771 if { (ac_try="$ac_cpp conftest.$ac_ext"
21772 case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21779 grep -v '^ *+' conftest.er1 >conftest.err
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } >/dev/null && {
21784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21785 test ! -s conftest.err
21787 ac_header_preproc=yes
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ac_header_preproc=no
21795 rm -f conftest.err conftest.$ac_ext
21796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21797 echo "${ECHO_T}$ac_header_preproc" >&6; }
21799 # So? What about this header?
21800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21806 ac_header_preproc=yes
21809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21822 ## ------------------------------------ ##
21823 ## Report this to opensource@google.com ##
21824 ## ------------------------------------ ##
21826 ) | sed "s/^/$as_me: WARNING: /" >&2
21829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21832 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 eval "$as_ac_Header=\$ac_header_preproc"
21836 ac_res=`eval echo '${'$as_ac_Header'}'`
21837 { echo "$as_me:$LINENO: result: $ac_res" >&5
21838 echo "${ECHO_T}$ac_res" >&6; }
21841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21842 cat >>confdefs.h <<_ACEOF
21843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21851 for ac_header in glob.h
21853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21858 echo $ECHO_N "(cached) $ECHO_C" >&6
21860 ac_res=`eval echo '${'$as_ac_Header'}'`
21861 { echo "$as_me:$LINENO: result: $ac_res" >&5
21862 echo "${ECHO_T}$ac_res" >&6; }
21864 # Is the header compilable?
21865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 $ac_includes_default
21874 #include <$ac_header>
21876 rm -f conftest.$ac_objext
21877 if { (ac_try="$ac_compile"
21878 case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_compile") 2>conftest.er1
21885 grep -v '^ *+' conftest.er1 >conftest.err
21887 cat conftest.err >&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } && {
21890 test -z "$ac_c_werror_flag" ||
21891 test ! -s conftest.err
21892 } && test -s conftest.$ac_objext; then
21893 ac_header_compiler=yes
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21898 ac_header_compiler=no
21901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21903 echo "${ECHO_T}$ac_header_compiler" >&6; }
21905 # Is the header present?
21906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21908 cat >conftest.$ac_ext <<_ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 #include <$ac_header>
21916 if { (ac_try="$ac_cpp conftest.$ac_ext"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } >/dev/null && {
21929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21932 ac_header_preproc=yes
21934 echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21937 ac_header_preproc=no
21940 rm -f conftest.err conftest.$ac_ext
21941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21942 echo "${ECHO_T}$ac_header_preproc" >&6; }
21944 # So? What about this header?
21945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21951 ac_header_preproc=yes
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21967 ## ------------------------------------ ##
21968 ## Report this to opensource@google.com ##
21969 ## ------------------------------------ ##
21971 ) | sed "s/^/$as_me: WARNING: /" >&2
21974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 eval "$as_ac_Header=\$ac_header_preproc"
21981 ac_res=`eval echo '${'$as_ac_Header'}'`
21982 { echo "$as_me:$LINENO: result: $ac_res" >&5
21983 echo "${ECHO_T}$ac_res" >&6; }
21986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21987 cat >>confdefs.h <<_ACEOF
21988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21996 { echo "$as_me:$LINENO: checking for void *" >&5
21997 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21998 if test "${ac_cv_type_void_p+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 cat >conftest.$ac_ext <<_ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 $ac_includes_default
22008 typedef void * ac__type_new_;
22012 if ((ac__type_new_ *) 0)
22014 if (sizeof (ac__type_new_))
22020 rm -f conftest.$ac_objext
22021 if { (ac_try="$ac_compile"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_compile") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } && {
22034 test -z "$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 } && test -s conftest.$ac_objext; then
22037 ac_cv_type_void_p=yes
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ac_cv_type_void_p=no
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22048 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22050 # The cast to long int works around a bug in the HP C Compiler
22051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22053 # This bug is HP SR number 8606223364.
22054 { echo "$as_me:$LINENO: checking size of void *" >&5
22055 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22056 if test "${ac_cv_sizeof_void_p+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 if test "$cross_compiling" = yes; then
22060 # Depending upon the size, compute the lo and hi bounds.
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 $ac_includes_default
22068 typedef void * ac__type_sizeof_;
22072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22088 grep -v '^ *+' conftest.er1 >conftest.err
22090 cat conftest.err >&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest.$ac_objext; then
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 $ac_includes_default
22105 typedef void * ac__type_sizeof_;
22109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22116 rm -f conftest.$ac_objext
22117 if { (ac_try="$ac_compile"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_compile") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest.$ac_objext; then
22133 ac_hi=$ac_mid; break
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ac_lo=`expr $ac_mid + 1`
22139 if test $ac_lo -le $ac_mid; then
22143 ac_mid=`expr 2 '*' $ac_mid + 1`
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 cat >conftest.$ac_ext <<_ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 $ac_includes_default
22159 typedef void * ac__type_sizeof_;
22163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22170 rm -f conftest.$ac_objext
22171 if { (ac_try="$ac_compile"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_compile") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1 >conftest.err
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest.$ac_objext; then
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22196 typedef void * ac__type_sizeof_;
22200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_compile") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest.$ac_objext; then
22224 ac_lo=$ac_mid; break
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ac_hi=`expr '(' $ac_mid ')' - 1`
22230 if test $ac_mid -le $ac_hi; then
22234 ac_mid=`expr 2 '*' $ac_mid`
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 # Binary search between lo and hi bounds.
22251 while test "x$ac_lo" != "x$ac_hi"; do
22252 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 $ac_includes_default
22260 typedef void * ac__type_sizeof_;
22264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_compile") 2>conftest.er1
22280 grep -v '^ *+' conftest.er1 >conftest.err
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest.$ac_objext; then
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 ac_lo=`expr '(' $ac_mid ')' + 1`
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22300 '') if test "$ac_cv_type_void_p" = yes; then
22301 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22302 See \`config.log' for more details." >&5
22303 echo "$as_me: error: cannot compute sizeof (void *)
22304 See \`config.log' for more details." >&2;}
22305 { (exit 77); exit 77; }; }
22307 ac_cv_sizeof_void_p=0
22311 cat >conftest.$ac_ext <<_ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 $ac_includes_default
22318 typedef void * ac__type_sizeof_;
22319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22322 #include <stdlib.h>
22327 FILE *f = fopen ("conftest.val", "w");
22330 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22332 long int i = longval ();
22333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22335 fprintf (f, "%ld\n", i);
22339 unsigned long int i = ulongval ();
22340 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22342 fprintf (f, "%lu\n", i);
22344 return ferror (f) || fclose (f) != 0;
22350 rm -f conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361 { (case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_try") 2>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_cv_sizeof_void_p=`cat conftest.val`
22372 echo "$as_me: program exited with status $ac_status" >&5
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ( exit $ac_status )
22377 if test "$ac_cv_type_void_p" = yes; then
22378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22379 See \`config.log' for more details." >&5
22380 echo "$as_me: error: cannot compute sizeof (void *)
22381 See \`config.log' for more details." >&2;}
22382 { (exit 77); exit 77; }; }
22384 ac_cv_sizeof_void_p=0
22387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22391 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22392 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22396 cat >>confdefs.h <<_ACEOF
22397 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22402 # These are the types I need. We look for them in either stdint.h,
22403 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22404 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22405 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22406 if test "${ac_cv_type_uint16_t+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 cat >conftest.$ac_ext <<_ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 $ac_includes_default
22416 typedef uint16_t ac__type_new_;
22420 if ((ac__type_new_ *) 0)
22422 if (sizeof (ac__type_new_))
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 ac_cv_type_uint16_t=yes
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_cv_type_uint16_t=no
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22456 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22457 if test $ac_cv_type_uint16_t = yes; then
22458 ac_cv_have_uint16_t=1
22460 ac_cv_have_uint16_t=0
22463 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22464 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22465 if test "${ac_cv_type_u_int16_t+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 $ac_includes_default
22475 typedef u_int16_t ac__type_new_;
22479 if ((ac__type_new_ *) 0)
22481 if (sizeof (ac__type_new_))
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22496 grep -v '^ *+' conftest.er1 >conftest.err
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.$ac_objext; then
22504 ac_cv_type_u_int16_t=yes
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 ac_cv_type_u_int16_t=no
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22515 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22516 if test $ac_cv_type_u_int16_t = yes; then
22517 ac_cv_have_u_int16_t=1
22519 ac_cv_have_u_int16_t=0
22522 { echo "$as_me:$LINENO: checking for __uint16" >&5
22523 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22524 if test "${ac_cv_type___uint16+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 $ac_includes_default
22534 typedef __uint16 ac__type_new_;
22538 if ((ac__type_new_ *) 0)
22540 if (sizeof (ac__type_new_))
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_compile") 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } && {
22560 test -z "$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 } && test -s conftest.$ac_objext; then
22563 ac_cv_type___uint16=yes
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_cv_type___uint16=no
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22574 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22575 if test $ac_cv_type___uint16 = yes; then
22576 ac_cv_have___uint16=1
22578 ac_cv_have___uint16=0
22582 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22583 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22584 if test "${ac_cv_func_sigaltstack+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22595 #define sigaltstack innocuous_sigaltstack
22597 /* System header to define __stub macros and hopefully few prototypes,
22598 which can conflict with char sigaltstack (); below.
22599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600 <limits.h> exists even on freestanding compilers. */
22603 # include <limits.h>
22605 # include <assert.h>
22610 /* Override any GCC internal prototype to avoid an error.
22611 Use char because int might match the return type of a GCC
22612 builtin and then its argument prototype would still apply. */
22616 char sigaltstack ();
22617 /* The GNU C library defines this for functions which it implements
22618 to always fail with ENOSYS. Some functions are actually named
22619 something starting with __ and the normal name is an alias. */
22620 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22627 return sigaltstack ();
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (ac_try="$ac_link"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_link") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest$ac_exeext &&
22649 $as_test_x conftest$ac_exeext; then
22650 ac_cv_func_sigaltstack=yes
22652 echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22655 ac_cv_func_sigaltstack=no
22658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659 conftest$ac_exeext conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22662 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22663 if test $ac_cv_func_sigaltstack = yes; then
22665 cat >>confdefs.h <<\_ACEOF
22666 #define HAVE_SIGALTSTACK 1
22671 { echo "$as_me:$LINENO: checking for dladdr" >&5
22672 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22673 if test "${ac_cv_func_dladdr+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 cat >conftest.$ac_ext <<_ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22684 #define dladdr innocuous_dladdr
22686 /* System header to define __stub macros and hopefully few prototypes,
22687 which can conflict with char dladdr (); below.
22688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22689 <limits.h> exists even on freestanding compilers. */
22692 # include <limits.h>
22694 # include <assert.h>
22699 /* Override any GCC internal prototype to avoid an error.
22700 Use char because int might match the return type of a GCC
22701 builtin and then its argument prototype would still apply. */
22706 /* The GNU C library defines this for functions which it implements
22707 to always fail with ENOSYS. Some functions are actually named
22708 something starting with __ and the normal name is an alias. */
22709 #if defined __stub_dladdr || defined __stub___dladdr
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_link") 2>conftest.er1
22730 grep -v '^ *+' conftest.er1 >conftest.err
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } && {
22735 test -z "$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22737 } && test -s conftest$ac_exeext &&
22738 $as_test_x conftest$ac_exeext; then
22739 ac_cv_func_dladdr=yes
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_cv_func_dladdr=no
22747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22748 conftest$ac_exeext conftest.$ac_ext
22750 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22751 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22752 if test $ac_cv_func_dladdr = yes; then
22754 cat >>confdefs.h <<\_ACEOF
22755 #define HAVE_DLADDR 1
22760 { echo "$as_me:$LINENO: checking for fcntl" >&5
22761 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22762 if test "${ac_cv_func_fcntl+set}" = set; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22773 #define fcntl innocuous_fcntl
22775 /* System header to define __stub macros and hopefully few prototypes,
22776 which can conflict with char fcntl (); below.
22777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22778 <limits.h> exists even on freestanding compilers. */
22781 # include <limits.h>
22783 # include <assert.h>
22788 /* Override any GCC internal prototype to avoid an error.
22789 Use char because int might match the return type of a GCC
22790 builtin and then its argument prototype would still apply. */
22795 /* The GNU C library defines this for functions which it implements
22796 to always fail with ENOSYS. Some functions are actually named
22797 something starting with __ and the normal name is an alias. */
22798 #if defined __stub_fcntl || defined __stub___fcntl
22810 rm -f conftest.$ac_objext conftest$ac_exeext
22811 if { (ac_try="$ac_link"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817 (eval "$ac_link") 2>conftest.er1
22819 grep -v '^ *+' conftest.er1 >conftest.err
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest$ac_exeext &&
22827 $as_test_x conftest$ac_exeext; then
22828 ac_cv_func_fcntl=yes
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ac_cv_func_fcntl=no
22836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22837 conftest$ac_exeext conftest.$ac_ext
22839 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22840 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22841 if test $ac_cv_func_fcntl = yes; then
22843 cat >>confdefs.h <<\_ACEOF
22844 #define HAVE_FCNTL 1
22851 { echo "$as_me:$LINENO: checking for __attribute__" >&5
22852 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22853 if test "${ac_cv___attribute__+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 #include <stdlib.h>
22864 static void foo(void) __attribute__ ((unused));
22865 void foo(void) { exit(1); }
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_compile") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1 >conftest.err
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest.$ac_objext; then
22891 ac_cv___attribute__=yes
22893 echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_cv___attribute__=no
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 if test "$ac_cv___attribute__" = "yes"; then
22905 cat >>confdefs.h <<\_ACEOF
22906 #define HAVE___ATTRIBUTE__ 1
22910 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22911 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22913 # We only care about these two attributes.
22914 if test x"$ac_cv___attribute__" = x"yes"; then
22915 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22916 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22918 ac_cv___attribute___noreturn=
22919 ac_cv___attribute___printf_4_5=
22923 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22924 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22925 if test "${ac_cv___builtin_expect+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22944 rm -f conftest.$ac_objext
22945 if { (ac_try="$ac_compile"
22946 case "(($ac_try" in
22947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948 *) ac_try_echo=$ac_try;;
22950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951 (eval "$ac_compile") 2>conftest.er1
22953 grep -v '^ *+' conftest.er1 >conftest.err
22955 cat conftest.err >&5
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } && {
22958 test -z "$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22960 } && test -s conftest.$ac_objext; then
22961 ac_cv___builtin_expect=yes
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 ac_cv___builtin_expect=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22973 if test "$ac_cv___builtin_expect" = "yes"; then
22975 cat >>confdefs.h <<\_ACEOF
22976 #define HAVE___BUILTIN_EXPECT 1
22980 { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22981 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22983 if test x"$ac_cv___builtin_expect" = x"yes"; then
22984 ac_cv_have___builtin_expect=1
22986 ac_cv_have___builtin_expect=0
22990 { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22991 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22992 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 cat >conftest.$ac_ext <<_ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23002 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23011 rm -f conftest.$ac_objext conftest$ac_exeext
23012 if { (ac_try="$ac_link"
23013 case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018 (eval "$ac_link") 2>conftest.er1
23020 grep -v '^ *+' conftest.er1 >conftest.err
23022 cat conftest.err >&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && {
23025 test -z "$ac_c_werror_flag" ||
23026 test ! -s conftest.err
23027 } && test -s conftest$ac_exeext &&
23028 $as_test_x conftest$ac_exeext; then
23029 ac_cv___sync_val_compare_and_swap=yes
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 ac_cv___sync_val_compare_and_swap=no
23038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23039 conftest$ac_exeext conftest.$ac_ext
23042 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23044 cat >>confdefs.h <<\_ACEOF
23045 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23049 { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23050 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23053 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23054 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23055 # Check whether --enable-frame_pointers was given.
23056 if test "${enable_frame_pointers+set}" = set; then
23057 enableval=$enable_frame_pointers; enable_frame_pointers=no
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23070 return __x86_64__ == 1 ? 0 : 1
23075 rm -f conftest.$ac_objext
23076 if { (ac_try="$ac_compile"
23077 case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_compile") 2>conftest.er1
23084 grep -v '^ *+' conftest.er1 >conftest.err
23086 cat conftest.err >&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } && {
23089 test -z "$ac_c_werror_flag" ||
23090 test ! -s conftest.err
23091 } && test -s conftest.$ac_objext; then
23094 echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 if test "$enable_frame_pointers" = yes; then
23102 ENABLE_FRAME_POINTERS_TRUE=
23103 ENABLE_FRAME_POINTERS_FALSE='#'
23105 ENABLE_FRAME_POINTERS_TRUE='#'
23106 ENABLE_FRAME_POINTERS_FALSE=
23109 if test "$is_x86_64" = yes; then
23118 # Some of the code in this directory depends on pthreads
23123 ac_cpp='$CPP $CPPFLAGS'
23124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23130 # We used to check for pthread.h first, but this fails if pthread.h
23131 # requires special compiler flags (e.g. on True64 or Sequent).
23132 # It gets checked for in the link test anyway.
23134 # First of all, check if the user has set any of the PTHREAD_LIBS,
23135 # etcetera environment variables, and if threads linking works using
23137 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23138 save_CFLAGS="$CFLAGS"
23139 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23141 LIBS="$PTHREAD_LIBS $LIBS"
23142 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23143 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23144 cat >conftest.$ac_ext <<_ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23151 /* Override any GCC internal prototype to avoid an error.
23152 Use char because int might match the return type of a GCC
23153 builtin and then its argument prototype would still apply. */
23157 char pthread_join ();
23161 return pthread_join ();
23166 rm -f conftest.$ac_objext conftest$ac_exeext
23167 if { (ac_try="$ac_link"
23168 case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_link") 2>conftest.er1
23175 grep -v '^ *+' conftest.er1 >conftest.err
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } && {
23180 test -z "$ac_c_werror_flag" ||
23181 test ! -s conftest.err
23182 } && test -s conftest$ac_exeext &&
23183 $as_test_x conftest$ac_exeext; then
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23193 conftest$ac_exeext conftest.$ac_ext
23194 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23195 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23196 if test x"$acx_pthread_ok" = xno; then
23201 CFLAGS="$save_CFLAGS"
23204 # We must check for the threads library under a number of different
23205 # names; the ordering is very important because some systems
23206 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23207 # libraries is broken (non-POSIX).
23209 # Create a list of thread flags to try. Items starting with a "-" are
23210 # C compiler flags, and other items are library names, except for "none"
23211 # which indicates that we try without any flags at all, and "pthread-config"
23212 # which is a program returning the flags for the Pth emulation library.
23214 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23216 # The ordering *is* (sometimes) important. Some notes on the
23217 # individual items follow:
23219 # pthreads: AIX (must check this before -lpthread)
23220 # none: in case threads are in libc; should be tried before -Kthread and
23221 # other compiler flags to prevent continual compiler warnings
23222 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23223 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23224 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23225 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23226 # -pthreads: Solaris/gcc
23227 # -mthreads: Mingw32/gcc, Lynx/gcc
23228 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23229 # doesn't hurt to check since this sometimes defines pthreads too;
23230 # also defines -D_REENTRANT)
23231 # ... -mt is also the pthreads flag for HP/aCC
23232 # pthread: Linux, etcetera
23233 # --thread-safe: KAI C++
23234 # pthread-config: use pthread-config program (for GNU Pth library)
23236 case "${host_cpu}-${host_os}" in
23239 # On Solaris (at least, for some versions), libc contains stubbed
23240 # (non-functional) versions of the pthreads routines, so link-based
23241 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
23242 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23243 # a function called by this macro, so we could check for that, but
23244 # who knows whether they'll stub that too in a future libc.) So,
23245 # we'll just look for -pthreads and -lpthread first:
23247 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23251 if test x"$acx_pthread_ok" = xno; then
23252 for flag in $acx_pthread_flags; do
23256 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23257 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23261 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23262 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23263 PTHREAD_CFLAGS="$flag"
23267 # Extract the first word of "pthread-config", so it can be a program name with args.
23268 set dummy pthread-config; ac_word=$2
23269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23271 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23274 if test -n "$acx_pthread_config"; then
23275 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23278 for as_dir in $PATH
23281 test -z "$as_dir" && as_dir=.
23282 for ac_exec_ext in '' $ac_executable_extensions; do
23283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23284 ac_cv_prog_acx_pthread_config="yes"
23285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23292 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23295 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23296 if test -n "$acx_pthread_config"; then
23297 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23298 echo "${ECHO_T}$acx_pthread_config" >&6; }
23300 { echo "$as_me:$LINENO: result: no" >&5
23301 echo "${ECHO_T}no" >&6; }
23305 if test x"$acx_pthread_config" = xno; then continue; fi
23306 PTHREAD_CFLAGS="`pthread-config --cflags`"
23307 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23311 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23312 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23313 PTHREAD_LIBS="-l$flag"
23318 save_CFLAGS="$CFLAGS"
23319 LIBS="$PTHREAD_LIBS $LIBS"
23320 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23322 # Check for various functions. We must include pthread.h,
23323 # since some functions may be macros. (On the Sequent, we
23324 # need a special flag -Kthread to make this header compile.)
23325 # We check for pthread_join because it is in -lpthread on IRIX
23326 # while pthread_create is in libc. We check for pthread_attr_init
23327 # due to DEC craziness with -lpthreads. We check for
23328 # pthread_cleanup_push because it is one of the few pthread
23329 # functions on Solaris that doesn't have a non-functional libc stub.
23330 # We try pthread_create on general principles.
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 #include <pthread.h>
23341 pthread_t th; pthread_join(th, 0);
23342 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23343 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23348 rm -f conftest.$ac_objext conftest$ac_exeext
23349 if { (ac_try="$ac_link"
23350 case "(($ac_try" in
23351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352 *) ac_try_echo=$ac_try;;
23354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23355 (eval "$ac_link") 2>conftest.er1
23357 grep -v '^ *+' conftest.er1 >conftest.err
23359 cat conftest.err >&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest$ac_exeext &&
23365 $as_test_x conftest$ac_exeext; then
23368 echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23375 conftest$ac_exeext conftest.$ac_ext
23378 CFLAGS="$save_CFLAGS"
23380 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23381 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23382 if test "x$acx_pthread_ok" = xyes; then
23391 # Various other checks:
23392 if test "x$acx_pthread_ok" = xyes; then
23394 LIBS="$PTHREAD_LIBS $LIBS"
23395 save_CFLAGS="$CFLAGS"
23396 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23398 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23399 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23400 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23402 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23403 cat >conftest.$ac_ext <<_ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 #include <pthread.h>
23413 int attr=$attr; return attr;
23418 rm -f conftest.$ac_objext conftest$ac_exeext
23419 if { (ac_try="$ac_link"
23420 case "(($ac_try" in
23421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422 *) ac_try_echo=$ac_try;;
23424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425 (eval "$ac_link") 2>conftest.er1
23427 grep -v '^ *+' conftest.er1 >conftest.err
23429 cat conftest.err >&5
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); } && {
23432 test -z "$ac_c_werror_flag" ||
23433 test ! -s conftest.err
23434 } && test -s conftest$ac_exeext &&
23435 $as_test_x conftest$ac_exeext; then
23436 attr_name=$attr; break
23438 echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23445 conftest$ac_exeext conftest.$ac_ext
23447 { echo "$as_me:$LINENO: result: $attr_name" >&5
23448 echo "${ECHO_T}$attr_name" >&6; }
23449 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23451 cat >>confdefs.h <<_ACEOF
23452 #define PTHREAD_CREATE_JOINABLE $attr_name
23457 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23458 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23460 case "${host_cpu}-${host_os}" in
23461 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23462 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23464 { echo "$as_me:$LINENO: result: ${flag}" >&5
23465 echo "${ECHO_T}${flag}" >&6; }
23466 if test "x$flag" != xno; then
23467 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23471 CFLAGS="$save_CFLAGS"
23472 # More AIX lossage: must compile with xlc_r or cc_r
23473 if test x"$GCC" != xyes; then
23474 for ac_prog in xlc_r cc_r
23476 # Extract the first word of "$ac_prog", so it can be a program name with args.
23477 set dummy $ac_prog; ac_word=$2
23478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23480 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23483 if test -n "$PTHREAD_CC"; then
23484 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23487 for as_dir in $PATH
23490 test -z "$as_dir" && as_dir=.
23491 for ac_exec_ext in '' $ac_executable_extensions; do
23492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23493 ac_cv_prog_PTHREAD_CC="$ac_prog"
23494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23503 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23504 if test -n "$PTHREAD_CC"; then
23505 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23506 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23508 { echo "$as_me:$LINENO: result: no" >&5
23509 echo "${ECHO_T}no" >&6; }
23513 test -n "$PTHREAD_CC" && break
23515 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23521 # The next part tries to detect GCC inconsistency with -shared on some
23522 # architectures and systems. The problem is that in certain
23523 # configurations, when -shared is specified, GCC "forgets" to
23524 # internally use various flags which are still necessary.
23526 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23527 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23528 check_inconsistencies=yes
23529 case "${host_cpu}-${host_os}" in
23530 *-darwin*) check_inconsistencies=no ;;
23532 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
23533 { echo "$as_me:$LINENO: result: no" >&5
23534 echo "${ECHO_T}no" >&6; }
23536 { echo "$as_me:$LINENO: result: yes" >&5
23537 echo "${ECHO_T}yes" >&6; }
23539 # In order not to create several levels of indentation, we test
23540 # the value of "$ok" until we find out the cure or run out of
23545 # Prepare the flags
23547 save_CFLAGS="$CFLAGS"
23550 # Try with the flags determined by the earlier checks.
23552 # -Wl,-z,defs forces link-time symbol resolution, so that the
23553 # linking checks with -shared actually have any value
23555 # FIXME: -fPIC is required for -shared on many architectures,
23556 # so we specify it here, but the right way would probably be to
23557 # properly detect whether it is actually required.
23558 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23559 LIBS="$PTHREAD_LIBS $LIBS"
23562 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23563 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23564 cat >conftest.$ac_ext <<_ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 #include <pthread.h>
23574 pthread_t th; pthread_join(th, 0);
23575 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23576 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23581 rm -f conftest.$ac_objext conftest$ac_exeext
23582 if { (ac_try="$ac_link"
23583 case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588 (eval "$ac_link") 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && {
23595 test -z "$ac_c_werror_flag" ||
23596 test ! -s conftest.err
23597 } && test -s conftest$ac_exeext &&
23598 $as_test_x conftest$ac_exeext; then
23601 echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608 conftest$ac_exeext conftest.$ac_ext
23610 if test "x$ok" = xyes; then
23611 { echo "$as_me:$LINENO: result: yes" >&5
23612 echo "${ECHO_T}yes" >&6; }
23614 { echo "$as_me:$LINENO: result: no" >&5
23615 echo "${ECHO_T}no" >&6; }
23619 # Linux gcc on some architectures such as mips/mipsel forgets
23622 if test x"$ok" = xno; then
23623 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23624 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23625 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23632 #include <pthread.h>
23636 pthread_t th; pthread_join(th, 0);
23637 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23638 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23643 rm -f conftest.$ac_objext conftest$ac_exeext
23644 if { (ac_try="$ac_link"
23645 case "(($ac_try" in
23646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647 *) ac_try_echo=$ac_try;;
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650 (eval "$ac_link") 2>conftest.er1
23652 grep -v '^ *+' conftest.er1 >conftest.err
23654 cat conftest.err >&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && {
23657 test -z "$ac_c_werror_flag" ||
23658 test ! -s conftest.err
23659 } && test -s conftest$ac_exeext &&
23660 $as_test_x conftest$ac_exeext; then
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670 conftest$ac_exeext conftest.$ac_ext
23672 if test "x$ok" = xyes; then
23673 { echo "$as_me:$LINENO: result: yes" >&5
23674 echo "${ECHO_T}yes" >&6; }
23675 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23677 { echo "$as_me:$LINENO: result: no" >&5
23678 echo "${ECHO_T}no" >&6; }
23682 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23684 if test x"$ok" = xno; then
23685 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23686 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23687 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23688 cat >conftest.$ac_ext <<_ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 #include <pthread.h>
23698 pthread_t th; pthread_join(th, 0);
23699 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23700 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (ac_try="$ac_link"
23707 case "(($ac_try" in
23708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709 *) ac_try_echo=$ac_try;;
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712 (eval "$ac_link") 2>conftest.er1
23714 grep -v '^ *+' conftest.er1 >conftest.err
23716 cat conftest.err >&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } && {
23719 test -z "$ac_c_werror_flag" ||
23720 test ! -s conftest.err
23721 } && test -s conftest$ac_exeext &&
23722 $as_test_x conftest$ac_exeext; then
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23732 conftest$ac_exeext conftest.$ac_ext
23734 if test "x$ok" = xyes; then
23735 { echo "$as_me:$LINENO: result: yes" >&5
23736 echo "${ECHO_T}yes" >&6; }
23737 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23739 { echo "$as_me:$LINENO: result: no" >&5
23740 echo "${ECHO_T}no" >&6; }
23743 if test x"$ok" = xno; then
23744 # OK, we have run out of ideas
23745 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23746 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23748 # so it's not safe to assume that we may use pthreads
23752 CFLAGS="$save_CFLAGS"
23764 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23765 if test x"$acx_pthread_ok" = xyes; then
23767 cat >>confdefs.h <<\_ACEOF
23768 #define HAVE_PTHREAD 1
23777 ac_cpp='$CPP $CPPFLAGS'
23778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23783 # To make libglog depend on libpthread on Linux, we need to add
23784 # -lpthread in addition to -pthread.
23786 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23787 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23788 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23789 echo $ECHO_N "(cached) $ECHO_C" >&6
23791 ac_check_lib_save_LIBS=$LIBS
23792 LIBS="-lpthread $LIBS"
23793 cat >conftest.$ac_ext <<_ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h. */
23800 /* Override any GCC internal prototype to avoid an error.
23801 Use char because int might match the return type of a GCC
23802 builtin and then its argument prototype would still apply. */
23806 char pthread_self ();
23810 return pthread_self ();
23815 rm -f conftest.$ac_objext conftest$ac_exeext
23816 if { (ac_try="$ac_link"
23817 case "(($ac_try" in
23818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23819 *) ac_try_echo=$ac_try;;
23821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23822 (eval "$ac_link") 2>conftest.er1
23824 grep -v '^ *+' conftest.er1 >conftest.err
23826 cat conftest.err >&5
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); } && {
23829 test -z "$ac_c_werror_flag" ||
23830 test ! -s conftest.err
23831 } && test -s conftest$ac_exeext &&
23832 $as_test_x conftest$ac_exeext; then
23833 ac_cv_lib_pthread_pthread_self=yes
23835 echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23838 ac_cv_lib_pthread_pthread_self=no
23841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23842 conftest$ac_exeext conftest.$ac_ext
23843 LIBS=$ac_check_lib_save_LIBS
23845 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23846 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23847 if test $ac_cv_lib_pthread_pthread_self = yes; then
23848 cat >>confdefs.h <<_ACEOF
23849 #define HAVE_LIBPTHREAD 1
23852 LIBS="-lpthread $LIBS"
23857 # Check if there is google-gflags library installed.
23858 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23859 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23860 if test "${ac_cv_lib_gflags_main+set}" = set; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23863 ac_check_lib_save_LIBS=$LIBS
23864 LIBS="-lgflags $LIBS"
23865 cat >conftest.$ac_ext <<_ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
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_c_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_gflags_main=yes
23901 echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23904 ac_cv_lib_gflags_main=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_gflags_main" >&5
23912 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23913 if test $ac_cv_lib_gflags_main = yes; then
23914 ac_cv_have_libgflags=1
23916 ac_cv_have_libgflags=0
23919 if test x"$ac_cv_have_libgflags" = x"1"; then
23920 GFLAGS_LIBS=-lgflags
23922 cat >>confdefs.h <<\_ACEOF
23923 #define HAVE_LIB_GFLAGS 1
23930 # Check if there is gtest library installed.
23931 { echo "$as_me:$LINENO: checking for main in -lgtest" >&5
23932 echo $ECHO_N "checking for main in -lgtest... $ECHO_C" >&6; }
23933 if test "${ac_cv_lib_gtest_main+set}" = set; then
23934 echo $ECHO_N "(cached) $ECHO_C" >&6
23936 ac_check_lib_save_LIBS=$LIBS
23937 LIBS="-lgtest $LIBS"
23938 cat >conftest.$ac_ext <<_ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (ac_try="$ac_link"
23956 case "(($ac_try" in
23957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961 (eval "$ac_link") 2>conftest.er1
23963 grep -v '^ *+' conftest.er1 >conftest.err
23965 cat conftest.err >&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } && {
23968 test -z "$ac_c_werror_flag" ||
23969 test ! -s conftest.err
23970 } && test -s conftest$ac_exeext &&
23971 $as_test_x conftest$ac_exeext; then
23972 ac_cv_lib_gtest_main=yes
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23977 ac_cv_lib_gtest_main=no
23980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23981 conftest$ac_exeext conftest.$ac_ext
23982 LIBS=$ac_check_lib_save_LIBS
23984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gtest_main" >&5
23985 echo "${ECHO_T}$ac_cv_lib_gtest_main" >&6; }
23986 if test $ac_cv_lib_gtest_main = yes; then
23987 ac_cv_have_libgtest=1
23989 ac_cv_have_libgtest=0
23992 if test x"$ac_cv_have_libgtest" = x"1"; then
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_LIB_GTEST 1
24000 # Check if there is gmock library installed.
24001 { echo "$as_me:$LINENO: checking for main in -lgmock" >&5
24002 echo $ECHO_N "checking for main in -lgmock... $ECHO_C" >&6; }
24003 if test "${ac_cv_lib_gmock_main+set}" = set; then
24004 echo $ECHO_N "(cached) $ECHO_C" >&6
24006 ac_check_lib_save_LIBS=$LIBS
24007 LIBS="-lgmock $GTEST_LIBS $LIBS"
24008 cat >conftest.$ac_ext <<_ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24024 rm -f conftest.$ac_objext conftest$ac_exeext
24025 if { (ac_try="$ac_link"
24026 case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031 (eval "$ac_link") 2>conftest.er1
24033 grep -v '^ *+' conftest.er1 >conftest.err
24035 cat conftest.err >&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } && {
24038 test -z "$ac_c_werror_flag" ||
24039 test ! -s conftest.err
24040 } && test -s conftest$ac_exeext &&
24041 $as_test_x conftest$ac_exeext; then
24042 ac_cv_lib_gmock_main=yes
24044 echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24047 ac_cv_lib_gmock_main=no
24050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24051 conftest$ac_exeext conftest.$ac_ext
24052 LIBS=$ac_check_lib_save_LIBS
24054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmock_main" >&5
24055 echo "${ECHO_T}$ac_cv_lib_gmock_main" >&6; }
24056 if test $ac_cv_lib_gmock_main = yes; then
24057 ac_cv_have_libgmock=1
24059 ac_cv_have_libgmock=0
24062 if test x"$ac_cv_have_libgmock" = x"1"; then
24065 cat >>confdefs.h <<\_ACEOF
24066 #define HAVE_LIB_GMOCK 1
24076 # We want to link in libunwind if it exists
24078 # Unfortunately, we need to check the header file in addition to the
24079 # lib file to check if libunwind is available since libunwind-0.98
24080 # doesn't install all necessary header files.
24081 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24082 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24083 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24084 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24085 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 ac_check_lib_save_LIBS=$LIBS
24088 LIBS="-lunwind $LIBS"
24089 cat >conftest.$ac_ext <<_ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24096 /* Override any GCC internal prototype to avoid an error.
24097 Use char because int might match the return type of a GCC
24098 builtin and then its argument prototype would still apply. */
24106 return backtrace ();
24111 rm -f conftest.$ac_objext conftest$ac_exeext
24112 if { (ac_try="$ac_link"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_link") 2>conftest.er1
24120 grep -v '^ *+' conftest.er1 >conftest.err
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest$ac_exeext &&
24128 $as_test_x conftest$ac_exeext; then
24129 ac_cv_lib_unwind_backtrace=yes
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 ac_cv_lib_unwind_backtrace=no
24137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24138 conftest$ac_exeext conftest.$ac_ext
24139 LIBS=$ac_check_lib_save_LIBS
24141 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24142 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24143 if test $ac_cv_lib_unwind_backtrace = yes; then
24144 UNWIND_LIBS=-lunwind
24149 if test x"$UNWIND_LIBS" != x""; then
24151 cat >>confdefs.h <<\_ACEOF
24152 #define HAVE_LIB_UNWIND 1
24157 # We'd like to use read/write locks in several places in the code.
24158 # See if our pthreads support extends to that. Note: for linux, it
24159 # does as long as you define _XOPEN_SOURCE appropriately.
24160 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24161 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24162 if test "${ac_rwlock+set}" = set; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24167 ac_cpp='$CPP $CPPFLAGS'
24168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24172 cat >conftest.$ac_ext <<_ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24178 #define _XOPEN_SOURCE 500
24179 #include <pthread.h>
24183 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24184 pthread_rwlock_rdlock(&l);
24190 rm -f conftest.$ac_objext
24191 if { (ac_try="$ac_compile"
24192 case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197 (eval "$ac_compile") 2>conftest.er1
24199 grep -v '^ *+' conftest.er1 >conftest.err
24201 cat conftest.err >&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } && {
24204 test -z "$ac_c_werror_flag" ||
24205 test ! -s conftest.err
24206 } && test -s conftest.$ac_objext; then
24209 echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 ac_cpp='$CPP $CPPFLAGS'
24218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24224 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24225 echo "${ECHO_T}$ac_rwlock" >&6; }
24226 if test "$ac_rwlock" = yes; then
24228 cat >>confdefs.h <<\_ACEOF
24229 #define HAVE_RWLOCK 1
24235 # Find out what namespace 'normal' STL code lives in, and also what namespace
24236 # the user wants our classes to be defined in
24237 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24238 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24239 if test "${ac_cv_cxx_namespaces+set}" = set; then
24240 echo $ECHO_N "(cached) $ECHO_C" >&6
24244 ac_cpp='$CXXCPP $CPPFLAGS'
24245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24249 cat >conftest.$ac_ext <<_ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24256 namespace Inner { int i = 0; }}
24260 using namespace Outer::Inner; return i;
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269 *) ac_try_echo=$ac_try;;
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272 (eval "$ac_compile") 2>conftest.er1
24274 grep -v '^ *+' conftest.er1 >conftest.err
24276 cat conftest.err >&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } && {
24279 test -z "$ac_cxx_werror_flag" ||
24280 test ! -s conftest.err
24281 } && test -s conftest.$ac_objext; then
24282 ac_cv_cxx_namespaces=yes
24284 echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24287 ac_cv_cxx_namespaces=no
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24292 ac_cpp='$CPP $CPPFLAGS'
24293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24298 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24299 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24300 if test "$ac_cv_cxx_namespaces" = yes; then
24302 cat >>confdefs.h <<\_ACEOF
24303 #define HAVE_NAMESPACES 1
24307 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24308 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24309 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24310 echo $ECHO_N "(cached) $ECHO_C" >&6
24315 ac_cpp='$CXXCPP $CPPFLAGS'
24316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24320 cat >conftest.$ac_ext <<_ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24330 vector<int> t; return 0;
24335 rm -f conftest.$ac_objext
24336 if { (ac_try="$ac_compile"
24337 case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342 (eval "$ac_compile") 2>conftest.er1
24344 grep -v '^ *+' conftest.er1 >conftest.err
24346 cat conftest.err >&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } && {
24349 test -z "$ac_cxx_werror_flag" ||
24350 test ! -s conftest.err
24351 } && test -s conftest.$ac_objext; then
24352 ac_cv_cxx_stl_namespace=none
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24371 std::vector<int> t; return 0;
24376 rm -f conftest.$ac_objext
24377 if { (ac_try="$ac_compile"
24378 case "(($ac_try" in
24379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380 *) ac_try_echo=$ac_try;;
24382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24383 (eval "$ac_compile") 2>conftest.er1
24385 grep -v '^ *+' conftest.er1 >conftest.err
24387 cat conftest.err >&5
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); } && {
24390 test -z "$ac_cxx_werror_flag" ||
24391 test ! -s conftest.err
24392 } && test -s conftest.$ac_objext; then
24393 ac_cv_cxx_stl_namespace=std
24395 echo "$as_me: failed program was:" >&5
24396 sed 's/^/| /' conftest.$ac_ext >&5
24401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 ac_cpp='$CPP $CPPFLAGS'
24404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24409 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24410 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24411 if test "$ac_cv_cxx_stl_namespace" = none; then
24413 cat >>confdefs.h <<\_ACEOF
24414 #define STL_NAMESPACE
24418 if test "$ac_cv_cxx_stl_namespace" = std; then
24420 cat >>confdefs.h <<\_ACEOF
24421 #define STL_NAMESPACE std
24426 google_namespace_default=google
24427 # Check whether --enable-namespace was given.
24428 if test "${enable_namespace+set}" = set; then
24429 enableval=$enable_namespace; case "$enableval" in
24430 yes) google_namespace="$google_namespace_default" ;;
24431 no) google_namespace="" ;;
24432 *) google_namespace="$enableval" ;;
24435 google_namespace="$google_namespace_default"
24438 if test -n "$google_namespace"; then
24439 ac_google_namespace="$google_namespace"
24440 ac_google_start_namespace="namespace $google_namespace {"
24441 ac_google_end_namespace="}"
24443 ac_google_namespace=""
24444 ac_google_start_namespace=""
24445 ac_google_end_namespace=""
24448 cat >>confdefs.h <<_ACEOF
24449 #define GOOGLE_NAMESPACE $ac_google_namespace
24453 cat >>confdefs.h <<_ACEOF
24454 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24458 cat >>confdefs.h <<_ACEOF
24459 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24464 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24465 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24466 if test "${ac_cv_cxx_using_operator+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24471 ac_cpp='$CXXCPP $CPPFLAGS'
24472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24476 cat >conftest.$ac_ext <<_ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24482 #include <iostream>
24483 std::ostream& operator<<(std::ostream&, struct s);
24487 using ::operator<<; return 0;
24492 rm -f conftest.$ac_objext
24493 if { (ac_try="$ac_compile"
24494 case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_compile") 2>conftest.er1
24501 grep -v '^ *+' conftest.er1 >conftest.err
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && {
24506 test -z "$ac_cxx_werror_flag" ||
24507 test ! -s conftest.err
24508 } && test -s conftest.$ac_objext; then
24509 ac_cv_cxx_using_operator=1
24511 echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24514 ac_cv_cxx_using_operator=0
24517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519 ac_cpp='$CPP $CPPFLAGS'
24520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24525 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24526 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24527 if test "$ac_cv_cxx_using_operator" = 1; then
24529 cat >>confdefs.h <<\_ACEOF
24530 #define HAVE_USING_OPERATOR 1
24535 # We want to access the "PC" (Program Counter) register from a struct
24536 # ucontext. Every system has its own way of doing that. We try all the
24537 # possibilities we know about. Note REG_PC should come first (REG_RIP
24538 # is also defined on solaris, but does the wrong thing).
24539 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24540 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24541 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
24542 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24543 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24544 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
24545 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24546 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
24547 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
24548 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
24549 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
24550 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
24551 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
24552 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
24553 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
24554 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
24555 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
24556 pc_field_found=false
24557 for pc_field in $pc_fields; do
24558 if ! $pc_field_found; then
24559 cat >conftest.$ac_ext <<_ACEOF
24562 cat confdefs.h >>conftest.$ac_ext
24563 cat >>conftest.$ac_ext <<_ACEOF
24564 /* end confdefs.h. */
24565 #define _GNU_SOURCE 1
24566 #include <ucontext.h>
24570 ucontext_t u; return u.$pc_field == 0;
24575 rm -f conftest.$ac_objext
24576 if { (ac_try="$ac_compile"
24577 case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_compile") 2>conftest.er1
24584 grep -v '^ *+' conftest.er1 >conftest.err
24586 cat conftest.err >&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && {
24589 test -z "$ac_c_werror_flag" ||
24590 test ! -s conftest.err
24591 } && test -s conftest.$ac_objext; then
24593 cat >>confdefs.h <<_ACEOF
24594 #define PC_FROM_UCONTEXT $pc_field
24597 { echo "$as_me:$LINENO: result: $pc_field" >&5
24598 echo "${ECHO_T}$pc_field" >&6; }
24599 pc_field_found=true
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24610 if ! $pc_field_found; then
24611 { echo "$as_me:$LINENO: WARNING: Could not find the PC. Will not output failed addresses..." >&5
24612 echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
24615 # These are what's needed by logging.h.in and raw_logging.h.in
24635 # Write generated configuration file
24636 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"
24638 cat >confcache <<\_ACEOF
24639 # This file is a shell script that caches the results of configure
24640 # tests run on this system so they can be shared between configure
24641 # scripts and configure runs, see configure's option --config-cache.
24642 # It is not useful on other systems. If it contains results you don't
24643 # want to keep, you may remove or edit it.
24645 # config.status only pays attention to the cache file if you give it
24646 # the --recheck option to rerun configure.
24648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24650 # following values.
24654 # The following way of writing the cache mishandles newlines in values,
24655 # but we know of no workaround that is simple, portable, and efficient.
24656 # So, we kill variables containing newlines.
24657 # Ultrix sh set writes to stderr and can't be redirected directly,
24658 # and sets the high bit in the cache file unless we assign to the vars.
24660 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24661 eval ac_val=\$$ac_var
24665 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24666 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24669 _ | IFS | as_nl) ;; #(
24670 *) $as_unset $ac_var ;;
24676 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24677 *${as_nl}ac_space=\ *)
24678 # `set' does not quote correctly, so add quotes (double-quote
24679 # substitution turns \\\\ into \\, and sed turns \\ into \).
24682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24685 # `set' quotes correctly as required by POSIX, so do not add quotes.
24686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24699 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24700 if test -w "$cache_file"; then
24701 test "x$cache_file" != "x/dev/null" &&
24702 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24703 echo "$as_me: updating cache $cache_file" >&6;}
24704 cat confcache >$cache_file
24706 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24707 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24713 # Let make expand exec_prefix.
24714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24716 DEFS=-DHAVE_CONFIG_H
24720 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24721 # 1. Remove the extension, and $U if already installed.
24722 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24723 ac_i=`echo "$ac_i" | sed "$ac_script"`
24724 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24725 # will be set to the directory where LIBOBJS objects are built.
24726 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24727 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24729 LIBOBJS=$ac_libobjs
24731 LTLIBOBJS=$ac_ltlibobjs
24734 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24735 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24736 Usually this means the macro was only invoked conditionally." >&5
24737 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24738 Usually this means the macro was only invoked conditionally." >&2;}
24739 { (exit 1); exit 1; }; }
24741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24742 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24743 Usually this means the macro was only invoked conditionally." >&5
24744 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24745 Usually this means the macro was only invoked conditionally." >&2;}
24746 { (exit 1); exit 1; }; }
24748 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24749 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24750 Usually this means the macro was only invoked conditionally." >&5
24751 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24752 Usually this means the macro was only invoked conditionally." >&2;}
24753 { (exit 1); exit 1; }; }
24755 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24756 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24757 Usually this means the macro was only invoked conditionally." >&5
24758 echo "$as_me: error: conditional \"GCC\" was never defined.
24759 Usually this means the macro was only invoked conditionally." >&2;}
24760 { (exit 1); exit 1; }; }
24762 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24763 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24764 Usually this means the macro was only invoked conditionally." >&5
24765 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24766 Usually this means the macro was only invoked conditionally." >&2;}
24767 { (exit 1); exit 1; }; }
24769 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24770 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24771 Usually this means the macro was only invoked conditionally." >&5
24772 echo "$as_me: error: conditional \"X86_64\" was never defined.
24773 Usually this means the macro was only invoked conditionally." >&2;}
24774 { (exit 1); exit 1; }; }
24777 : ${CONFIG_STATUS=./config.status}
24778 ac_clean_files_save=$ac_clean_files
24779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24780 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24781 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24782 cat >$CONFIG_STATUS <<_ACEOF
24784 # Generated by $as_me.
24785 # Run this file to recreate the current configuration.
24786 # Compiler output produced by configure, useful for debugging
24787 # configure, is in config.log if it exists.
24790 ac_cs_recheck=false
24792 SHELL=\${CONFIG_SHELL-$SHELL}
24795 cat >>$CONFIG_STATUS <<\_ACEOF
24796 ## --------------------- ##
24797 ## M4sh Initialization. ##
24798 ## --------------------- ##
24800 # Be more Bourne compatible
24801 DUALCASE=1; export DUALCASE # for MKS sh
24802 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24805 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24806 # is contrary to our usage. Disable this feature.
24807 alias -g '${1+"$@"}'='"$@"'
24808 setopt NO_GLOB_SUBST
24810 case `(set -o) 2>/dev/null` in
24811 *posix*) set -o posix ;;
24820 # Avoid depending upon Character Ranges.
24821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24824 as_cr_digits='0123456789'
24825 as_cr_alnum=$as_cr_Letters$as_cr_digits
24827 # The user is always right.
24828 if test "${PATH_SEPARATOR+set}" != set; then
24829 echo "#! /bin/sh" >conf$$.sh
24830 echo "exit 0" >>conf$$.sh
24832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24840 # Support unset when possible.
24841 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24849 # We need space, tab and new line, in precisely that order. Quoting is
24850 # there to prevent editors from complaining about space-tab.
24851 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24852 # splitting by setting IFS to empty value.)
24857 # Find who we are. Look in the path if we contain no directory separator.
24859 *[\\/]* ) as_myself=$0 ;;
24860 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24861 for as_dir in $PATH
24864 test -z "$as_dir" && as_dir=.
24865 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24871 # We did not find ourselves, most probably we were run as `sh COMMAND'
24872 # in which case we are not to be found in the path.
24873 if test "x$as_myself" = x; then
24876 if test ! -f "$as_myself"; then
24877 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24878 { (exit 1); exit 1; }
24881 # Work around bugs in pre-3.0 UWIN ksh.
24882 for as_var in ENV MAIL MAILPATH
24883 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24891 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24892 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24893 LC_TELEPHONE LC_TIME
24895 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24896 eval $as_var=C; export $as_var
24898 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24902 # Required to use basename.
24903 if expr a : '\(a\)' >/dev/null 2>&1 &&
24904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24911 as_basename=basename
24917 # Name of the executable.
24918 as_me=`$as_basename -- "$0" ||
24919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24920 X"$0" : 'X\(//\)$' \| \
24921 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24923 sed '/^.*\/\([^/][^/]*\)\/*$/{
24942 as_lineno_1=$LINENO
24943 as_lineno_2=$LINENO
24944 test "x$as_lineno_1" != "x$as_lineno_2" &&
24945 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24947 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24948 # uniformly replaced by the line number. The first 'sed' inserts a
24949 # line-number line after each line using $LINENO; the second 'sed'
24950 # does the real work. The second script uses 'N' to pair each
24951 # line-number line with the line containing $LINENO, and appends
24952 # trailing '-' during substitution so that $LINENO is not a special
24953 # case at line end.
24954 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24955 # scripts with optimization help from Paolo Bonzini. Blame Lee
24956 # E. McMahon (1931-1989) for sed's syntax. :-)
24968 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24971 ' >$as_me.lineno &&
24972 chmod +x "$as_me.lineno" ||
24973 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24974 { (exit 1); exit 1; }; }
24976 # Don't try to exec as it changes $[0], causing all sort of problems
24977 # (the dirname of $[0] is not the place where we might find the
24978 # original and so on. Autoconf is especially sensitive to this).
24979 . "./$as_me.lineno"
24980 # Exit status is that of the last command.
24985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24991 ECHO_C= ECHO_N= ECHO_T=
24992 case `echo -n x` in
24994 case `echo 'x\c'` in
24995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25002 if expr a : '\(a\)' >/dev/null 2>&1 &&
25003 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25009 rm -f conf$$ conf$$.exe conf$$.file
25010 if test -d conf$$.dir; then
25011 rm -f conf$$.dir/conf$$.file
25017 if ln -s conf$$.file conf$$ 2>/dev/null; then
25019 # ... but there are two gotchas:
25020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25022 # In both cases, we have to default to `cp -p'.
25023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25025 elif ln conf$$.file conf$$ 2>/dev/null; then
25030 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25031 rmdir conf$$.dir 2>/dev/null
25033 if mkdir -p . 2>/dev/null; then
25036 test -d ./-p && rmdir ./-p
25040 if test -x / >/dev/null 2>&1; then
25041 as_test_x='test -x'
25043 if ls -dL / >/dev/null 2>&1; then
25050 if test -d "$1"; then
25056 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25057 ???[sx]*):;;*)false;;esac;fi
25061 as_executable_p=$as_test_x
25063 # Sed expression to map a string onto a valid CPP name.
25064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25066 # Sed expression to map a string onto a valid variable name.
25067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25072 # Save the log message, to keep $[0] and so on meaningful, and to
25073 # report actual input values of CONFIG_FILES etc. instead of their
25074 # values after options handling.
25076 This file was extended by glog $as_me 0.1.2, which was
25077 generated by GNU Autoconf 2.61. Invocation command line was
25079 CONFIG_FILES = $CONFIG_FILES
25080 CONFIG_HEADERS = $CONFIG_HEADERS
25081 CONFIG_LINKS = $CONFIG_LINKS
25082 CONFIG_COMMANDS = $CONFIG_COMMANDS
25085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25090 cat >>$CONFIG_STATUS <<_ACEOF
25091 # Files that config.status was made for.
25092 config_files="$ac_config_files"
25093 config_headers="$ac_config_headers"
25094 config_commands="$ac_config_commands"
25098 cat >>$CONFIG_STATUS <<\_ACEOF
25100 \`$as_me' instantiates files from templates according to the
25101 current configuration.
25103 Usage: $0 [OPTIONS] [FILE]...
25105 -h, --help print this help, then exit
25106 -V, --version print version number and configuration settings, then exit
25107 -q, --quiet do not print progress messages
25108 -d, --debug don't remove temporary files
25109 --recheck update $as_me by reconfiguring in the same conditions
25110 --file=FILE[:TEMPLATE]
25111 instantiate the configuration file FILE
25112 --header=FILE[:TEMPLATE]
25113 instantiate the configuration header FILE
25115 Configuration files:
25118 Configuration headers:
25121 Configuration commands:
25124 Report bugs to <bug-autoconf@gnu.org>."
25127 cat >>$CONFIG_STATUS <<_ACEOF
25129 glog config.status 0.1.2
25130 configured by $0, generated by GNU Autoconf 2.61,
25131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25133 Copyright (C) 2006 Free Software Foundation, Inc.
25134 This config.status script is free software; the Free Software Foundation
25135 gives unlimited permission to copy, distribute and modify it."
25143 cat >>$CONFIG_STATUS <<\_ACEOF
25144 # If no file are specified by the user, then we need to provide default
25145 # value. By we need to know if files were specified by the user.
25151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25152 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25163 # Handling of the options.
25164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25166 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25167 echo "$ac_cs_version"; exit ;;
25168 --debug | --debu | --deb | --de | --d | -d )
25170 --file | --fil | --fi | --f )
25172 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25173 ac_need_defaults=false;;
25174 --header | --heade | --head | --hea )
25176 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25177 ac_need_defaults=false;;
25179 # Conflict between --help and --header
25180 { echo "$as_me: error: ambiguous option: $1
25181 Try \`$0 --help' for more information." >&2
25182 { (exit 1); exit 1; }; };;
25183 --help | --hel | -h )
25184 echo "$ac_cs_usage"; exit ;;
25185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25186 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25189 # This is an error.
25190 -*) { echo "$as_me: error: unrecognized option: $1
25191 Try \`$0 --help' for more information." >&2
25192 { (exit 1); exit 1; }; } ;;
25194 *) ac_config_targets="$ac_config_targets $1"
25195 ac_need_defaults=false ;;
25201 ac_configure_extra_args=
25203 if $ac_cs_silent; then
25205 ac_configure_extra_args="$ac_configure_extra_args --silent"
25209 cat >>$CONFIG_STATUS <<_ACEOF
25210 if \$ac_cs_recheck; then
25211 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25212 CONFIG_SHELL=$SHELL
25213 export CONFIG_SHELL
25214 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25218 cat >>$CONFIG_STATUS <<\_ACEOF
25222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25223 ## Running $as_me. ##
25229 cat >>$CONFIG_STATUS <<_ACEOF
25233 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25237 cat >>$CONFIG_STATUS <<\_ACEOF
25239 # Handling of arguments.
25240 for ac_config_target in $ac_config_targets
25242 case $ac_config_target in
25243 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25244 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25246 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25247 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25248 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25249 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25251 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25252 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25253 { (exit 1); exit 1; }; };;
25258 # If the user did not use the arguments to specify the items to instantiate,
25259 # then the envvar interface is used. Set only those that are not.
25260 # We use the long form for the default assignment because of an extremely
25261 # bizarre bug on SunOS 4.1.3.
25262 if $ac_need_defaults; then
25263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25265 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25268 # Have a temporary directory for convenience. Make it in the build tree
25269 # simply because there is no reason against having it here, and in addition,
25270 # creating and moving files from /tmp can sometimes cause problems.
25271 # Hook for its removal unless debugging.
25272 # Note that there is a small window in which the directory will not be cleaned:
25273 # after its creation but before its name has been assigned to `$tmp'.
25277 trap 'exit_status=$?
25278 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25280 trap '{ (exit 1); exit 1; }' 1 2 13 15
25282 # Create a (secure) tmp directory for tmp files.
25285 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25286 test -n "$tmp" && test -d "$tmp"
25289 tmp=./conf$$-$RANDOM
25290 (umask 077 && mkdir "$tmp")
25293 echo "$me: cannot create a temporary directory in ." >&2
25294 { (exit 1); exit 1; }
25298 # Set up the sed scripts for CONFIG_FILES section.
25301 # No need to generate the scripts if there are no CONFIG_FILES.
25302 # This happens for instance when ./config.status config.h
25303 if test -n "$CONFIG_FILES"; then
25310 for ac_last_try in false false false false false :; do
25311 cat >conf$$subs.sed <<_ACEOF
25312 SHELL!$SHELL$ac_delim
25313 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25314 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25315 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25316 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25317 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25318 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25319 exec_prefix!$exec_prefix$ac_delim
25320 prefix!$prefix$ac_delim
25321 program_transform_name!$program_transform_name$ac_delim
25322 bindir!$bindir$ac_delim
25323 sbindir!$sbindir$ac_delim
25324 libexecdir!$libexecdir$ac_delim
25325 datarootdir!$datarootdir$ac_delim
25326 datadir!$datadir$ac_delim
25327 sysconfdir!$sysconfdir$ac_delim
25328 sharedstatedir!$sharedstatedir$ac_delim
25329 localstatedir!$localstatedir$ac_delim
25330 includedir!$includedir$ac_delim
25331 oldincludedir!$oldincludedir$ac_delim
25332 docdir!$docdir$ac_delim
25333 infodir!$infodir$ac_delim
25334 htmldir!$htmldir$ac_delim
25335 dvidir!$dvidir$ac_delim
25336 pdfdir!$pdfdir$ac_delim
25337 psdir!$psdir$ac_delim
25338 libdir!$libdir$ac_delim
25339 localedir!$localedir$ac_delim
25340 mandir!$mandir$ac_delim
25341 DEFS!$DEFS$ac_delim
25342 ECHO_C!$ECHO_C$ac_delim
25343 ECHO_N!$ECHO_N$ac_delim
25344 ECHO_T!$ECHO_T$ac_delim
25345 LIBS!$LIBS$ac_delim
25346 build_alias!$build_alias$ac_delim
25347 host_alias!$host_alias$ac_delim
25348 target_alias!$target_alias$ac_delim
25349 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25350 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25351 INSTALL_DATA!$INSTALL_DATA$ac_delim
25352 am__isrc!$am__isrc$ac_delim
25353 CYGPATH_W!$CYGPATH_W$ac_delim
25354 PACKAGE!$PACKAGE$ac_delim
25355 VERSION!$VERSION$ac_delim
25356 ACLOCAL!$ACLOCAL$ac_delim
25357 AUTOCONF!$AUTOCONF$ac_delim
25358 AUTOMAKE!$AUTOMAKE$ac_delim
25359 AUTOHEADER!$AUTOHEADER$ac_delim
25360 MAKEINFO!$MAKEINFO$ac_delim
25361 install_sh!$install_sh$ac_delim
25362 STRIP!$STRIP$ac_delim
25363 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25364 mkdir_p!$mkdir_p$ac_delim
25366 SET_MAKE!$SET_MAKE$ac_delim
25367 am__leading_dot!$am__leading_dot$ac_delim
25368 AMTAR!$AMTAR$ac_delim
25369 am__tar!$am__tar$ac_delim
25370 am__untar!$am__untar$ac_delim
25372 CFLAGS!$CFLAGS$ac_delim
25373 LDFLAGS!$LDFLAGS$ac_delim
25374 CPPFLAGS!$CPPFLAGS$ac_delim
25375 ac_ct_CC!$ac_ct_CC$ac_delim
25376 EXEEXT!$EXEEXT$ac_delim
25377 OBJEXT!$OBJEXT$ac_delim
25378 DEPDIR!$DEPDIR$ac_delim
25379 am__include!$am__include$ac_delim
25380 am__quote!$am__quote$ac_delim
25381 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25382 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25383 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25384 CCDEPMODE!$CCDEPMODE$ac_delim
25385 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25386 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25389 CXXFLAGS!$CXXFLAGS$ac_delim
25390 ac_ct_CXX!$ac_ct_CXX$ac_delim
25391 CXXDEPMODE!$CXXDEPMODE$ac_delim
25392 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25393 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25394 GCC_TRUE!$GCC_TRUE$ac_delim
25395 GCC_FALSE!$GCC_FALSE$ac_delim
25396 build!$build$ac_delim
25397 build_cpu!$build_cpu$ac_delim
25398 build_vendor!$build_vendor$ac_delim
25399 build_os!$build_os$ac_delim
25400 host!$host$ac_delim
25401 host_cpu!$host_cpu$ac_delim
25402 host_vendor!$host_vendor$ac_delim
25403 host_os!$host_os$ac_delim
25405 GREP!$GREP$ac_delim
25406 EGREP!$EGREP$ac_delim
25407 LN_S!$LN_S$ac_delim
25408 ECHO!$ECHO$ac_delim
25411 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25413 elif $ac_last_try; then
25414 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25415 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25416 { (exit 1); exit 1; }; }
25418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25422 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25423 if test -n "$ac_eof"; then
25424 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25425 ac_eof=`expr $ac_eof + 1`
25428 cat >>$CONFIG_STATUS <<_ACEOF
25429 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25433 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25434 s/^/s,@/; s/!/@,|#_!!_#|/
25437 s/'"$ac_delim"'$/,g/; t
25439 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25440 ' >>$CONFIG_STATUS <conf$$subs.sed
25441 rm -f conf$$subs.sed
25442 cat >>$CONFIG_STATUS <<_ACEOF
25448 for ac_last_try in false false false false false :; do
25449 cat >conf$$subs.sed <<_ACEOF
25451 RANLIB!$RANLIB$ac_delim
25452 DSYMUTIL!$DSYMUTIL$ac_delim
25453 NMEDIT!$NMEDIT$ac_delim
25454 CXXCPP!$CXXCPP$ac_delim
25456 FFLAGS!$FFLAGS$ac_delim
25457 ac_ct_F77!$ac_ct_F77$ac_delim
25458 LIBTOOL!$LIBTOOL$ac_delim
25459 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25460 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25461 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25462 X86_64_TRUE!$X86_64_TRUE$ac_delim
25463 X86_64_FALSE!$X86_64_FALSE$ac_delim
25464 acx_pthread_config!$acx_pthread_config$ac_delim
25465 PTHREAD_CC!$PTHREAD_CC$ac_delim
25466 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25467 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25468 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25469 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25470 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25471 ac_google_namespace!$ac_google_namespace$ac_delim
25472 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25473 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25474 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25475 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25476 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25477 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25478 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25479 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25480 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25481 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25482 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25483 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25484 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25485 GTEST_LIBS!$GTEST_LIBS$ac_delim
25486 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25487 LIBOBJS!$LIBOBJS$ac_delim
25488 LTLIBOBJS!$LTLIBOBJS$ac_delim
25491 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
25493 elif $ac_last_try; then
25494 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25495 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25496 { (exit 1); exit 1; }; }
25498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25502 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25503 if test -n "$ac_eof"; then
25504 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25505 ac_eof=`expr $ac_eof + 1`
25508 cat >>$CONFIG_STATUS <<_ACEOF
25509 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25513 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25514 s/^/s,@/; s/!/@,|#_!!_#|/
25517 s/'"$ac_delim"'$/,g/; t
25519 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25520 ' >>$CONFIG_STATUS <conf$$subs.sed
25521 rm -f conf$$subs.sed
25522 cat >>$CONFIG_STATUS <<_ACEOF
25529 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25530 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25531 # trailing colons and then remove the whole line if VPATH becomes empty
25532 # (actually we leave an empty line to preserve line numbers).
25533 if test "x$srcdir" = x.; then
25534 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25535 s/:*\$(srcdir):*/:/
25536 s/:*\${srcdir}:*/:/
25538 s/^\([^=]*=[ ]*\):*/\1/
25544 cat >>$CONFIG_STATUS <<\_ACEOF
25545 fi # test -n "$CONFIG_FILES"
25548 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25551 :[FHLC]) ac_mode=$ac_tag; continue;;
25553 case $ac_mode$ac_tag in
25555 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25556 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25557 { (exit 1); exit 1; }; };;
25558 :[FH]-) ac_tag=-:-;;
25559 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25576 -) ac_f="$tmp/stdin";;
25577 *) # Look for the file first in the build tree, then in the source tree
25578 # (if the path is not absolute). The absolute path cannot be DOS-style,
25579 # because $ac_f cannot contain `:'.
25583 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25585 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25586 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25587 { (exit 1); exit 1; }; };;
25589 ac_file_inputs="$ac_file_inputs $ac_f"
25592 # Let's still pretend it is `configure' which instantiates (i.e., don't
25593 # use $as_me), people would be surprised to read:
25594 # /* config.h. Generated by config.status. */
25595 configure_input="Generated from "`IFS=:
25596 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25597 if test x"$ac_file" != x-; then
25598 configure_input="$ac_file. $configure_input"
25599 { echo "$as_me:$LINENO: creating $ac_file" >&5
25600 echo "$as_me: creating $ac_file" >&6;}
25604 *:-:* | *:-) cat >"$tmp/stdin";;
25609 ac_dir=`$as_dirname -- "$ac_file" ||
25610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25611 X"$ac_file" : 'X\(//\)[^/]' \| \
25612 X"$ac_file" : 'X\(//\)$' \| \
25613 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25619 /^X\(\/\/\)[^/].*/{
25634 -*) as_dir=./$as_dir;;
25636 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25640 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25641 *) as_qdir=$as_dir;;
25643 as_dirs="'$as_qdir' $as_dirs"
25644 as_dir=`$as_dirname -- "$as_dir" ||
25645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25646 X"$as_dir" : 'X\(//\)[^/]' \| \
25647 X"$as_dir" : 'X\(//\)$' \| \
25648 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25654 /^X\(\/\/\)[^/].*/{
25667 test -d "$as_dir" && break
25669 test -z "$as_dirs" || eval "mkdir $as_dirs"
25670 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25671 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25672 { (exit 1); exit 1; }; }; }
25676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25678 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25679 # A ".." for each directory in $ac_dir_suffix.
25680 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25681 case $ac_top_builddir_sub in
25682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25686 ac_abs_top_builddir=$ac_pwd
25687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25688 # for backward compatibility:
25689 ac_top_builddir=$ac_top_build_prefix
25692 .) # We are building in place.
25694 ac_top_srcdir=$ac_top_builddir_sub
25695 ac_abs_top_srcdir=$ac_pwd ;;
25696 [\\/]* | ?:[\\/]* ) # Absolute name.
25697 ac_srcdir=$srcdir$ac_dir_suffix;
25698 ac_top_srcdir=$srcdir
25699 ac_abs_top_srcdir=$srcdir ;;
25700 *) # Relative name.
25701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25702 ac_top_srcdir=$ac_top_build_prefix$srcdir
25703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25715 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25716 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25718 ac_MKDIR_P=$MKDIR_P
25720 [\\/$]* | ?:[\\/]* ) ;;
25721 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25725 cat >>$CONFIG_STATUS <<\_ACEOF
25726 # If the template does not know about datarootdir, expand it.
25727 # FIXME: This hack should be removed a few years after 2.60.
25728 ac_datarootdir_hack=; ac_datarootdir_seen=
25730 case `sed -n '/datarootdir/ {
25739 ' $ac_file_inputs` in
25740 *datarootdir*) ac_datarootdir_seen=yes;;
25741 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25742 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25743 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25745 cat >>$CONFIG_STATUS <<_ACEOF
25746 ac_datarootdir_hack='
25747 s&@datadir@&$datadir&g
25748 s&@docdir@&$docdir&g
25749 s&@infodir@&$infodir&g
25750 s&@localedir@&$localedir&g
25751 s&@mandir@&$mandir&g
25752 s&\\\${datarootdir}&$datarootdir&g' ;;
25756 # Neutralize VPATH when `$srcdir' = `.'.
25757 # Shell code in configure.ac might set extrasub.
25758 # FIXME: do we really want to maintain this feature?
25759 cat >>$CONFIG_STATUS <<_ACEOF
25763 cat >>$CONFIG_STATUS <<\_ACEOF
25765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25766 s&@configure_input@&$configure_input&;t t
25767 s&@top_builddir@&$ac_top_builddir_sub&;t t
25768 s&@srcdir@&$ac_srcdir&;t t
25769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25770 s&@top_srcdir@&$ac_top_srcdir&;t t
25771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25772 s&@builddir@&$ac_builddir&;t t
25773 s&@abs_builddir@&$ac_abs_builddir&;t t
25774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25775 s&@INSTALL@&$ac_INSTALL&;t t
25776 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25777 $ac_datarootdir_hack
25778 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25781 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25782 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25783 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25784 which seems to be undefined. Please make sure it is defined." >&5
25785 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25786 which seems to be undefined. Please make sure it is defined." >&2;}
25790 -) cat "$tmp/out"; rm -f "$tmp/out";;
25791 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25800 # Transform confdefs.h into a sed script `conftest.defines', that
25801 # substitutes the proper values into config.h.in to produce config.h.
25802 rm -f conftest.defines conftest.tail
25803 # First, append a space to every undef/define line, to ease matching.
25804 echo 's/$/ /' >conftest.defines
25805 # Then, protect against being on the right side of a sed subst, or in
25806 # an unquoted here document, in config.status. If some macros were
25807 # called several times there might be several #defines for the same
25808 # symbol, which is useless. But do not sort them, since the last
25809 # AC_DEFINE must be honored.
25810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25811 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25812 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25813 # PARAMS is the parameter list in the macro definition--in most cases, it's
25814 # just an empty string.
25815 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25816 ac_dB='\\)[ (].*,\\1define\\2'
25824 s/^[ ]*#[ ]*define[ ][ ]*//
25829 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25830 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25831 ' >>conftest.defines
25833 # Remove the space that was appended to ease matching.
25834 # Then replace #undef with comments. This is necessary, for
25835 # example, in the case of _POSIX_SOURCE, which is predefined and required
25836 # on some systems where configure will not decide to define it.
25837 # (The regexp can be short, since the line contains either #define or #undef.)
25839 s,^[ #]*u.*,/* & */,' >>conftest.defines
25841 # Break up conftest.defines:
25842 ac_max_sed_lines=50
25844 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25845 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25846 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25848 ac_in='$ac_file_inputs'
25849 ac_out='"$tmp/out1"'
25850 ac_nxt='"$tmp/out2"'
25854 # Write a here document:
25855 cat >>$CONFIG_STATUS <<_ACEOF
25856 # First, check the format of the line:
25857 cat >"\$tmp/defines.sed" <<\\CEOF
25858 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25859 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25863 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25865 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25866 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25867 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25868 grep . conftest.tail >/dev/null || break
25869 rm -f conftest.defines
25870 mv conftest.tail conftest.defines
25872 rm -f conftest.defines conftest.tail
25874 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25875 cat >>$CONFIG_STATUS <<\_ACEOF
25876 if test x"$ac_file" != x-; then
25877 echo "/* $configure_input */" >"$tmp/config.h"
25878 cat "$ac_result" >>"$tmp/config.h"
25879 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25880 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25881 echo "$as_me: $ac_file is unchanged" >&6;}
25884 mv "$tmp/config.h" $ac_file
25887 echo "/* $configure_input */"
25891 # Compute $ac_file's index in $config_headers.
25894 for _am_header in $config_headers :; do
25895 case $_am_header in
25896 $_am_arg | $_am_arg:* )
25899 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25902 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25903 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25904 X"$_am_arg" : 'X\(//\)[^/]' \| \
25905 X"$_am_arg" : 'X\(//\)$' \| \
25906 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25912 /^X\(\/\/\)[^/].*/{
25924 s/.*/./; q'`/stamp-h$_am_stamp_count
25927 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25928 echo "$as_me: executing $ac_file commands" >&6;}
25933 case $ac_file$ac_mode in
25934 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25935 # Strip MF so we end up with the name of the file.
25936 mf=`echo "$mf" | sed -e 's/:.*$//'`
25937 # Check whether this is an Automake generated Makefile or not.
25938 # We used to match only the files named `Makefile.in', but
25939 # some people rename them; so instead we look at the file content.
25940 # Grep'ing the first line is not enough: some people post-process
25941 # each Makefile.in and add a new line on top of each file to say so.
25942 # Grep'ing the whole file is not good either: AIX grep has a line
25943 # limit of 2048, but all sed's we know have understand at least 4000.
25944 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25945 dirpart=`$as_dirname -- "$mf" ||
25946 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25947 X"$mf" : 'X\(//\)[^/]' \| \
25948 X"$mf" : 'X\(//\)$' \| \
25949 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25955 /^X\(\/\/\)[^/].*/{
25971 # Extract the definition of DEPDIR, am__include, and am__quote
25972 # from the Makefile without running `make'.
25973 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25974 test -z "$DEPDIR" && continue
25975 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25976 test -z "am__include" && continue
25977 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25978 # When using ansi2knr, U may be empty or an underscore; expand it
25979 U=`sed -n 's/^U = //p' < "$mf"`
25980 # Find all dependency output files, they are included files with
25981 # $(DEPDIR) in their names. We invoke sed twice because it is the
25982 # simplest approach to changing $(DEPDIR) to its actual value in the
25984 for file in `sed -n "
25985 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25986 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25987 # Make sure the directory exists.
25988 test -f "$dirpart/$file" && continue
25989 fdir=`$as_dirname -- "$file" ||
25990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25991 X"$file" : 'X\(//\)[^/]' \| \
25992 X"$file" : 'X\(//\)$' \| \
25993 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25999 /^X\(\/\/\)[^/].*/{
26012 { as_dir=$dirpart/$fdir
26014 -*) as_dir=./$as_dir;;
26016 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26020 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26021 *) as_qdir=$as_dir;;
26023 as_dirs="'$as_qdir' $as_dirs"
26024 as_dir=`$as_dirname -- "$as_dir" ||
26025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26026 X"$as_dir" : 'X\(//\)[^/]' \| \
26027 X"$as_dir" : 'X\(//\)$' \| \
26028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26034 /^X\(\/\/\)[^/].*/{
26047 test -d "$as_dir" && break
26049 test -z "$as_dirs" || eval "mkdir $as_dirs"
26050 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26052 { (exit 1); exit 1; }; }; }
26053 # echo "creating $dirpart/$file"
26054 echo '# dummy' > "$dirpart/$file"
26063 { (exit 0); exit 0; }
26065 chmod +x $CONFIG_STATUS
26066 ac_clean_files=$ac_clean_files_save
26069 # configure is writing to config.log, and then calls config.status.
26070 # config.status does its own redirection, appending to config.log.
26071 # Unfortunately, on DOS this fails, as config.log is still kept open
26072 # by configure, so config.status won't be able to write to it; its
26073 # output is simply discarded. So we exec the FD to /dev/null,
26074 # effectively closing config.log, so it can be properly (re)opened and
26075 # appended to by config.status. When coming back to configure, we
26076 # need to make the FD available again.
26077 if test "$no_create" != yes; then
26079 ac_config_status_args=
26080 test "$silent" = yes &&
26081 ac_config_status_args="$ac_config_status_args --quiet"
26083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26086 # would make configure fail if this is the last instruction.
26087 $ac_cs_success || { (exit 1); exit 1; }