2 # From configure.in Id: configure.in,v 1.352 2007/11/26 20:38:39 sshwarts Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
25 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
26 DUALCASE
=1; export DUALCASE
# for MKS sh
30 # Avoid depending upon Character Ranges.
31 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
34 as_cr_digits
='0123456789'
35 as_cr_alnum
=$as_cr_Letters$as_cr_digits
37 # The user is always right.
38 if test "${PATH_SEPARATOR+set}" != set; then
39 echo "#! /bin/sh" >conf$$.sh
40 echo "exit 0" >>conf$$.sh
42 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
50 # Support unset when possible.
51 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
59 # We need space, tab and new line, in precisely that order. Quoting is
60 # there to prevent editors from complaining about space-tab.
61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62 # splitting by setting IFS to empty value.)
67 # Find who we are. Look in the path if we contain no directory separator.
69 *[\\/]* ) as_myself
=$0 ;;
70 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
74 test -z "$as_dir" && as_dir
=.
75 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
81 # We did not find ourselves, most probably we were run as `sh COMMAND'
82 # in which case we are not to be found in the path.
83 if test "x$as_myself" = x
; then
86 if test ! -f "$as_myself"; then
87 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 # Work around bugs in pre-3.0 UWIN ksh.
92 for as_var
in ENV MAIL MAILPATH
93 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106 eval $as_var=C
; export $as_var
108 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
112 # Required to use basename.
113 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
114 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
120 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 # Name of the executable.
128 as_me
=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130 X"$0" : 'X\(//\)$' \| \
131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 sed '/^.*\/\([^/][^/]*\)\/*$/{
151 if test "x$CONFIG_SHELL" = x
; then
152 if (eval ":") 2>/dev
/null
; then
158 if test $as_have_required = yes && (eval ":
168 as_func_ret_success () {
171 as_func_ret_failure () {
176 if as_func_success; then
180 echo as_func_success failed.
183 if as_func_failure; then
185 echo as_func_failure succeeded.
188 if as_func_ret_success; then
192 echo as_func_ret_success failed.
195 if as_func_ret_failure; then
197 echo as_func_ret_failure succeeded.
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 echo positional parameters were not saved.
207 test \$exitcode = 0) || { (exit 1); exit 1; }
212 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev
/null
; then
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
219 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
222 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
233 for as_shell
in $as_candidate_shells $SHELL; do
234 # Try only shells that exist, to save several forks.
235 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
236 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242 # is contrary to our usage. Disable this feature.
243 alias -g '${1+"$@"}'='"$@"'
246 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
248 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
249 DUALCASE
=1; export DUALCASE
# for MKS sh
254 CONFIG_SHELL
=$as_shell
256 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
261 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
266 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
268 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
269 DUALCASE
=1; export DUALCASE
# for MKS sh
281 as_func_ret_success
() {
284 as_func_ret_failure
() {
289 if as_func_success
; then
293 echo as_func_success failed.
296 if as_func_failure
; then
298 echo as_func_failure succeeded.
301 if as_func_ret_success
; then
305 echo as_func_ret_success failed.
308 if as_func_ret_failure
; then
310 echo as_func_ret_failure succeeded.
313 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
317 echo positional parameters were not saved.
320 test $exitcode = 0) ||
{ (exit 1); exit 1; }
325 test "x$as_lineno_1" != "x$as_lineno_2" &&
326 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
337 if test "x$CONFIG_SHELL" != x
; then
338 for as_var
in BASH_ENV ENV
339 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
342 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 if test $as_have_required = no
; then
347 echo This
script requires a shell
more modern than all the
348 echo shells that I found on your system. Please
install a
349 echo modern shell
, or manually run the
script under such a
350 echo shell
if you
do have one.
351 { (exit 1); exit 1; }
361 (eval "as_func_return () {
370 as_func_ret_success () {
373 as_func_ret_failure () {
378 if as_func_success; then
382 echo as_func_success failed.
385 if as_func_failure; then
387 echo as_func_failure succeeded.
390 if as_func_ret_success; then
394 echo as_func_ret_success failed.
397 if as_func_ret_failure; then
399 echo as_func_ret_failure succeeded.
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 echo positional parameters were not saved.
409 test \$exitcode = 0") ||
{
410 echo No shell found that supports shell functions.
411 echo Please tell autoconf@gnu.org about your system
,
412 echo including any error possibly output before this
420 test "x$as_lineno_1" != "x$as_lineno_2" &&
421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424 # uniformly replaced by the line number. The first 'sed' inserts a
425 # line-number line after each line using $LINENO; the second 'sed'
426 # does the real work. The second script uses 'N' to pair each
427 # line-number line with the line containing $LINENO, and appends
428 # trailing '-' during substitution so that $LINENO is not a special
430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431 # scripts with optimization help from Paolo Bonzini. Blame Lee
432 # E. McMahon (1931-1989) for sed's syntax. :-)
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 chmod +x
"$as_me.lineno" ||
449 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450 { (exit 1); exit 1; }; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
461 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
467 ECHO_C
= ECHO_N
= ECHO_T
=
471 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
478 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
479 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
485 rm -f conf$$ conf$$.exe conf$$.
file
486 if test -d conf$$.dir
; then
487 rm -f conf$$.dir
/conf$$.
file
493 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
501 elif ln conf$$.
file conf$$
2>/dev
/null
; then
506 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
507 rmdir conf$$.dir
2>/dev
/null
509 if mkdir
-p .
2>/dev
/null
; then
512 test -d .
/-p && rmdir .
/-p
516 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.
file <<_ASEOF
523 if test -x conf$$.
file >/dev
/null
2>&1; then
524 as_executable_p
="test -x"
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 # Check that we are running under the correct shell.
540 SHELL
=${CONFIG_SHELL-/bin/sh}
544 # Remove one level of quotation (which was required for Make).
545 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 if test "X$1" = X--no-reexec
; then
551 # Discard the --no-reexec flag, and continue.
553 elif test "X$1" = X--fallback-echo
; then
554 # Avoid inline document here, it may be left over
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557 # Yippee, $echo works!
560 # Restart under the correct shell.
561 exec $SHELL "$0" --no-reexec ${1+"$@"}
564 if test "X$1" = X--fallback-echo
; then
565 # used as fallback echo
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset
; then
579 # find a string as large as possible, as long as the shell can cope with it
580 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
583 echo_test_string
="`eval $cmd`" &&
584 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
600 # So, first we look for a working echo in the user's PATH.
602 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
603 for dir
in $PATH /usr
/ucb
; do
605 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
615 if test "X$echo" = Xecho
; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
622 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
623 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL
=/bin
/ksh
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
638 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
644 SHELL
="$CONFIG_SHELL"
646 echo="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 echo="$CONFIG_SHELL $0 --fallback-echo"
653 # maybe with a smaller string...
656 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string
=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 # Oops. We lost completely, so just stick with echo.
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
688 tagnames
=${tagnames+${tagnames},}CXX
690 tagnames
=${tagnames+${tagnames},}F77
692 exec 7<&0 </dev
/null
6>&1
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
702 ac_default_prefix
=/usr
/local
704 ac_config_libobj_dir
=.
710 SHELL
=${CONFIG_SHELL-/bin/sh}
712 # Identity of this package.
719 ac_unique_file
="bochs.h"
720 # Factoring default headers for most tests.
721 ac_includes_default
="\
724 # include <sys/types.h>
727 # include <sys/stat.h>
738 # if !STDC_HEADERS && HAVE_MEMORY_H
744 # include <strings.h>
747 # include <inttypes.h>
765 program_transform_name
837 NONPLUGIN_GUI_LINK_OPTS
840 BX_COMPRESSED_HD_SUPPORT
849 PCIDEV_MODULE_MAKE_ALL
896 INSTALL_LIST_FOR_PLATFORM
915 PLUGIN_LIBNAME_TRANSFORMATION
926 IODEV_NON_PLUGIN_OBJS
936 ac_precious_vars
='build_alias
956 # Initialize some variables set by options.
958 ac_init_version
=false
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
968 program_transform_name
=s
,x
,x
,
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir
='${exec_prefix}/bin'
983 sbindir
='${exec_prefix}/sbin'
984 libexecdir
='${exec_prefix}/libexec'
985 datarootdir
='${prefix}/share'
986 datadir
='${datarootdir}'
987 sysconfdir
='${prefix}/etc'
988 sharedstatedir
='${prefix}/com'
989 localstatedir
='${prefix}/var'
990 includedir
='${prefix}/include'
991 oldincludedir
='/usr/include'
992 docdir
='${datarootdir}/doc/${PACKAGE}'
993 infodir
='${datarootdir}/info'
998 libdir
='${exec_prefix}/lib'
999 localedir
='${datarootdir}/locale'
1000 mandir
='${datarootdir}/man'
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\
$ac_option
1014 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1024 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1026 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1027 bindir
=$ac_optarg ;;
1029 -build |
--build |
--buil |
--bui |
--bu)
1030 ac_prev
=build_alias
;;
1031 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1032 build_alias
=$ac_optarg ;;
1034 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1035 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1036 ac_prev
=cache_file
;;
1037 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1038 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1039 cache_file
=$ac_optarg ;;
1041 --config-cache |
-C)
1042 cache_file
=config.cache
;;
1044 -datadir |
--datadir |
--datadi |
--datad)
1046 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1047 datadir
=$ac_optarg ;;
1049 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1050 |
--dataroo |
--dataro |
--datar)
1051 ac_prev
=datarootdir
;;
1052 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1053 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1054 datarootdir
=$ac_optarg ;;
1056 -disable-* |
--disable-*)
1057 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1063 eval enable_
$ac_feature=no
;;
1065 -docdir |
--docdir |
--docdi |
--doc |
--do)
1067 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1068 docdir
=$ac_optarg ;;
1070 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1072 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1073 dvidir
=$ac_optarg ;;
1075 -enable-* |
--enable-*)
1076 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1082 eval enable_
$ac_feature=\
$ac_optarg ;;
1084 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1085 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1086 |
--exec |
--exe |
--ex)
1087 ac_prev
=exec_prefix
;;
1088 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1089 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1090 |
--exec=* |
--exe=* |
--ex=*)
1091 exec_prefix
=$ac_optarg ;;
1093 -gas |
--gas |
--ga |
--g)
1094 # Obsolete; use --with-gas.
1097 -help |
--help |
--hel |
--he |
-h)
1098 ac_init_help
=long
;;
1099 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1100 ac_init_help
=recursive
;;
1101 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1102 ac_init_help
=short
;;
1104 -host |
--host |
--hos |
--ho)
1105 ac_prev
=host_alias
;;
1106 -host=* |
--host=* |
--hos=* |
--ho=*)
1107 host_alias
=$ac_optarg ;;
1109 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1111 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1113 htmldir
=$ac_optarg ;;
1115 -includedir |
--includedir |
--includedi |
--included |
--include \
1116 |
--includ |
--inclu |
--incl |
--inc)
1117 ac_prev
=includedir
;;
1118 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1119 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1120 includedir
=$ac_optarg ;;
1122 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1124 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1125 infodir
=$ac_optarg ;;
1127 -libdir |
--libdir |
--libdi |
--libd)
1129 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1130 libdir
=$ac_optarg ;;
1132 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1133 |
--libexe |
--libex |
--libe)
1134 ac_prev
=libexecdir
;;
1135 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1136 |
--libexe=* |
--libex=* |
--libe=*)
1137 libexecdir
=$ac_optarg ;;
1139 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1140 ac_prev
=localedir
;;
1141 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1142 localedir
=$ac_optarg ;;
1144 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1145 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1146 ac_prev
=localstatedir
;;
1147 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1148 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1149 localstatedir
=$ac_optarg ;;
1151 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1153 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1154 mandir
=$ac_optarg ;;
1156 -nfp |
--nfp |
--nf)
1157 # Obsolete; use --without-fp.
1160 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1161 |
--no-cr |
--no-c |
-n)
1164 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1165 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1168 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1169 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1170 |
--oldin |
--oldi |
--old |
--ol |
--o)
1171 ac_prev
=oldincludedir
;;
1172 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1173 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1174 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1175 oldincludedir
=$ac_optarg ;;
1177 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1179 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1180 prefix
=$ac_optarg ;;
1182 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1183 |
--program-pre |
--program-pr |
--program-p)
1184 ac_prev
=program_prefix
;;
1185 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1186 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1187 program_prefix
=$ac_optarg ;;
1189 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1190 |
--program-suf |
--program-su |
--program-s)
1191 ac_prev
=program_suffix
;;
1192 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1193 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1194 program_suffix
=$ac_optarg ;;
1196 -program-transform-name |
--program-transform-name \
1197 |
--program-transform-nam |
--program-transform-na \
1198 |
--program-transform-n |
--program-transform- \
1199 |
--program-transform |
--program-transfor \
1200 |
--program-transfo |
--program-transf \
1201 |
--program-trans |
--program-tran \
1202 |
--progr-tra |
--program-tr |
--program-t)
1203 ac_prev
=program_transform_name
;;
1204 -program-transform-name=* |
--program-transform-name=* \
1205 |
--program-transform-nam=* |
--program-transform-na=* \
1206 |
--program-transform-n=* |
--program-transform-=* \
1207 |
--program-transform=* |
--program-transfor=* \
1208 |
--program-transfo=* |
--program-transf=* \
1209 |
--program-trans=* |
--program-tran=* \
1210 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1211 program_transform_name
=$ac_optarg ;;
1213 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1215 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1216 pdfdir
=$ac_optarg ;;
1218 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1220 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1223 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1224 |
-silent |
--silent |
--silen |
--sile |
--sil)
1227 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1229 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1231 sbindir
=$ac_optarg ;;
1233 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1234 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1235 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1237 ac_prev
=sharedstatedir
;;
1238 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1239 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1240 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1242 sharedstatedir
=$ac_optarg ;;
1244 -site |
--site |
--sit)
1246 -site=* |
--site=* |
--sit=*)
1249 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1251 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1252 srcdir
=$ac_optarg ;;
1254 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1255 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1256 ac_prev
=sysconfdir
;;
1257 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1258 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1259 sysconfdir
=$ac_optarg ;;
1261 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1262 ac_prev
=target_alias
;;
1263 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1264 target_alias
=$ac_optarg ;;
1266 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1269 -version |
--version |
--versio |
--versi |
--vers |
-V)
1270 ac_init_version
=: ;;
1273 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1279 eval with_
$ac_package=\
$ac_optarg ;;
1281 -without-* |
--without-*)
1282 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1288 eval with_
$ac_package=no
;;
1291 # Obsolete; use --with-x.
1294 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1295 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1296 ac_prev
=x_includes
;;
1297 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1298 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1299 x_includes
=$ac_optarg ;;
1301 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1302 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1303 ac_prev
=x_libraries
;;
1304 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1305 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1306 x_libraries
=$ac_optarg ;;
1308 -*) { echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1314 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
1319 eval $ac_envvar=\
$ac_optarg
1320 export $ac_envvar ;;
1323 # FIXME: should be removed in autoconf 3.0.
1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 if test -n "$ac_prev"; then
1334 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1335 { echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1339 # Be sure to have absolute directory names.
1340 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val
=\$
$ac_var
1347 [\\/$
]* | ?
:[\\/]* ) continue;;
1348 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351 { (exit 1); exit 1; }; }
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1359 target
=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x
; then
1363 if test "x$build_alias" = x
; then
1364 cross_compiling
=maybe
1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1375 test "$silent" = yes && exec 6>/dev
/null
1378 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di
=`ls -di .` &&
1380 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1381 { echo "$as_me: error: Working directory cannot be determined" >&2
1382 { (exit 1); exit 1; }; }
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 { echo "$as_me: error: pwd does not report name of working directory" >&2
1385 { (exit 1); exit 1; }; }
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted
=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir
=`$as_dirname -- "$0" ||
1393 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$0" : 'X\(//\)[^/]' \| \
1395 X"$0" : 'X\(//\)$' \| \
1396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1420 ac_srcdir_defaulted
=no
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1425 { (exit 1); exit 1; }; }
1427 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1430 { (exit 1); exit 1; }; }
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 for ac_var
in $ac_precious_vars; do
1443 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1445 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures this package to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --x-includes=DIR X include files are
in DIR
1515 --x-libraries=DIR X library files are
in DIR
1518 --build=BUILD configure
for building on BUILD
[guessed
]
1519 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1520 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1524 if test -n "$ac_init_help"; then
1529 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1530 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1531 --enable-static[=PKGS
] build static libraries
[default
=no
]
1532 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1533 --enable-fast-install[=PKGS
]
1534 optimize
for fast installation
[default
=yes]
1535 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1536 --enable-ltdl-install install libltdl
1537 --disable-largefile omit support
for large files
1538 --enable-idle-hack use Roland Mainz
's idle hack
1539 --enable-plugins enable plugins
1540 --enable-x86-64 compile in support for x86-64 instructions
1541 --enable-smp compile in support for SMP configurations
1542 --enable-cpu-level select cpu level (3,4,5,6)
1543 --enable-apic enable APIC support
1544 --enable-compressed-hd allows compressed (zlib) hard disk image (not implemented yet)
1545 --enable-ne2000 enable limited ne2000 support
1546 --enable-acpi enable ACPI support
1547 --enable-pci enable limited i440FX PCI support
1548 --enable-pcidev enable PCI host device mapping support (linux host only)
1549 --enable-usb enable limited USB support
1550 --enable-pnic enable PCI pseudo NIC support
1551 --enable-large-pages support for large pages (2M/4M pages)
1552 --enable-pae support Physical Address Extensions
1553 --enable-global-pages support for global pages in PDE/PTE
1554 --enable-mtrr support for MTRRs
1555 --enable-guest2host-tlb support guest to host addr TLB for speed
1556 --enable-repeat-speedups support repeated IO and mem copy speedups
1557 --enable-icache support instruction cache
1558 --enable-fast-function-calls support for fast function calls (gcc on x86 only)
1559 --enable-host-specific-asms support for host specific inline assembly
1560 --enable-ignore-bad-msr ignore bad MSR references
1561 --enable-port-e9-hack writes to port e9 go to console
1562 --enable-show-ips show IPS in Bochs log file
1563 --enable-cpp use .cpp as C++ suffix
1564 --enable-debugger compile in support for Bochs internal debugger
1565 --enable-external-debugger enable external debugger support (win32 only)
1566 --enable-magic-breakpoints enable magic debugger breakpoints
1567 --enable-disasm compile in support for disassembler
1568 --enable-all-optimizations compile in all possible optimizations
1569 --enable-readline use readline library, if available
1570 --enable-instrumentation compile in support for instrumentation
1571 --enable-logging enable logging
1572 --enable-raw-serial use raw serial port access
1573 --enable-vbe use VESA BIOS extensions
1574 --enable-clgd54xx enable CLGD54XX emulation
1575 --enable-fpu compile in FPU emulation
1576 --enable-vme virtual 8086 mode extensions
1577 --enable-mmx MMX support
1578 --enable-3dnow 3DNow! support
1579 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1580 --enable-sse-extension support for SSE extensions
1581 --enable-daz denormals-are-zeroes support
1582 --enable-alignment-check alignment check (#AC) support
1583 --enable-misaligned-sse misaligned SSE support
1584 --enable-sep SYSENTER/SYSEXIT support
1585 --enable-popcnt support for POPCNT instruction
1586 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental)
1587 --enable-x86-debugger x86 debugger support
1588 --enable-cdrom CDROM support
1589 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1590 --enable-gameport enable standard PC gameport support
1591 --enable-gdb-stub enable gdb stub support
1592 --enable-iodebug enable I/O interface to debugger
1593 --enable-docbook build the Docbook documentation
1594 --enable-xpm enable the check for XPM support
1595 --enable-save-restore enables save/restore (deprecated)
1596 --enable-processors select number of processors (deprecated)
1597 --enable-reset-on-triple-fault reset when cpu detects a triple fault (deprecated)
1598 --enable-pni PNI support (deprecated)
1599 --enable-new-pit use Greg Alexander's new PIT model
(deprecated
)
1602 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1603 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1604 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1605 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1607 --with-tags[=TAGS
] include additional configurations
[automatic
]
1608 --with-x use the X Window System
1609 --with-x11 use X11 GUI
1610 --with-beos use BeOS GUI
1611 --with-win32 use Win32 GUI
1612 --with-macos use Macintosh
/CodeWarrior environment
1613 --with-carbon compile
for MacOS X with Carbon GUI
1614 --with-nogui no native GUI
, just use blank stubs
1615 --with-term textmode terminal environment
1616 --with-rfb use RFB protocol
, works with VNC viewer
1617 --with-amigaos use AmigaOS
(or MorphOS
) GUI
1618 --with-sdl use SDL libraries
1619 --with-svga use SVGALib libraries
1620 --with-wx use wxWidgets libraries
1621 --with-all-libs compile all guis that Bochs supports
1623 Some influential environment variables
:
1624 CC C compiler
command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1627 nonstandard directory
<lib dir
>
1628 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1629 you have headers
in a nonstandard directory
<include dir
>
1630 CXX C
++ compiler
command
1631 CXXFLAGS C
++ compiler flags
1633 CXXCPP C
++ preprocessor
1634 F77 Fortran
77 compiler
command
1635 FFLAGS Fortran
77 compiler flags
1636 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1637 PKG_CONFIG path to pkg-config utility
1638 GTK_CFLAGS C compiler flags
for GTK
, overriding pkg-config
1639 GTK_LIBS linker flags
for GTK
, overriding pkg-config
1641 Use these variables to override the choices made by
`configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" || continue
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1671 .) # We are building in place.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1695 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1705 generated by GNU Autoconf 2.60
1707 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1708 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1714 cat >config.log <<_ACEOF
1715 This file contains any messages produced by compilers while
1716 running configure, to aid debugging if configure makes a mistake.
1718 It was created by $as_me, which was
1719 generated by GNU Autoconf 2.60. Invocation command line was
1731 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1732 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1733 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1734 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1735 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1737 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1738 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1740 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1741 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1742 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1743 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1744 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1745 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1746 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 test -z "$as_dir" && as_dir=.
1755 echo "PATH: $as_dir"
1771 # Keep a trace of the command line.
1772 # Strip out --no-create and --no-recursion so they do not pile up.
1773 # Strip out --silent because we don't want to record it for future runs.
1774 # Also quote any args containing shell meta-characters.
1775 # Make two passes to allow for proper duplicate-argument suppression.
1779 ac_must_keep_next=false
1785 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787 | -silent | --silent | --silen | --sile | --sil)
1790 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1793 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1795 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1796 if test $ac_must_keep_next = true; then
1797 ac_must_keep_next=false # Got value, back to normal.
1800 *=* | --config-cache | -C | -disable-* | --disable-* \
1801 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803 | -with-* | --with-* | -without-* | --without-* | --x)
1804 case "$ac_configure_args0 " in
1805 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 -* ) ac_must_keep_next=true ;;
1811 ac_configure_args="$ac_configure_args '$ac_arg'"
1816 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1817 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1819 # When interrupted or exit'd, cleanup temporary files, and complete
1820 # config.log. We remove comments because anyway the quotes in there
1821 # would cause problems or look ugly.
1822 # WARNING: Use '\'' to represent an apostrophe within the trap.
1823 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824 trap 'exit_status=$?
1825 # Save into config.log some information that might help in debugging.
1830 ## ---------------- ##
1831 ## Cache variables. ##
1832 ## ---------------- ##
1835 # The following way of writing the cache mishandles newlines in values,
1837 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1838 eval ac_val=\$$ac_var
1842 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1843 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1846 _ | IFS | as_nl) ;; #(
1847 *) $as_unset $ac_var ;;
1852 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1853 *${as_nl}ac_space=\ *)
1855 "s/'\''/'\''\\\\'\'''\''/g;
1856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1867 ## ----------------- ##
1868 ## Output variables. ##
1869 ## ----------------- ##
1872 for ac_var in $ac_subst_vars
1874 eval ac_val=\$$ac_var
1876 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 echo "$ac_var='\''$ac_val'\''"
1882 if test -n "$ac_subst_files"; then
1884 ## ------------------- ##
1885 ## File substitutions. ##
1886 ## ------------------- ##
1889 for ac_var in $ac_subst_files
1891 eval ac_val=\$$ac_var
1893 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 echo "$ac_var='\''$ac_val'\''"
1900 if test -s confdefs.h; then
1910 test "$ac_signal" != 0 &&
1911 echo "$as_me: caught signal $ac_signal"
1912 echo "$as_me: exit $exit_status"
1914 rm -f core *.core core.conftest.* &&
1915 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1918 for ac_signal in 1 2 13 15; do
1919 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1923 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1924 rm -f -r conftest* confdefs.h
1926 # Predefined preprocessor variables.
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_NAME "$PACKAGE_NAME"
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_STRING "$PACKAGE_STRING"
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953 # Let the site file select an alternate cache file if it wants to.
1954 # Prefer explicitly selected file to automatically selected ones.
1955 if test -n "$CONFIG_SITE"; then
1956 set x "$CONFIG_SITE"
1957 elif test "x$prefix" != xNONE; then
1958 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1960 set x "$ac_default_prefix/share/config.site" \
1961 "$ac_default_prefix/etc/config.site"
1966 if test -r "$ac_site_file"; then
1967 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1968 echo "$as_me: loading site script $ac_site_file" >&6;}
1969 sed 's/^/| /' "$ac_site_file" >&5
1974 if test -r "$cache_file"; then
1975 # Some versions of bash will fail to source /dev/null (special
1976 # files actually), so we avoid doing that.
1977 if test -f "$cache_file"; then
1978 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1979 echo "$as_me: loading cache $cache_file" >&6;}
1981 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1982 *) . "./$cache_file";;
1986 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1987 echo "$as_me: creating cache $cache_file" >&6;}
1991 # Check that the precious variables saved in the cache have kept the same
1993 ac_cache_corrupted=false
1994 for ac_var in $ac_precious_vars; do
1995 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1996 eval ac_new_set=\$ac_env_${ac_var}_set
1997 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1998 eval ac_new_val=\$ac_env_${ac_var}_value
1999 case $ac_old_set,$ac_new_set in
2001 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2002 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2003 ac_cache_corrupted=: ;;
2005 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
2006 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2007 ac_cache_corrupted=: ;;
2010 if test "x$ac_old_val" != "x$ac_new_val"; then
2011 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2012 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2013 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
2014 echo "$as_me: former value
: $ac_old_val" >&2;}
2015 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
2016 echo "$as_me: current value
: $ac_new_val" >&2;}
2017 ac_cache_corrupted=:
2020 # Pass precious variables to config.status.
2021 if test "$ac_new_set" = set; then
2023 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2024 *) ac_arg=$ac_var=$ac_new_val ;;
2026 case " $ac_configure_args " in
2027 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2028 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2032 if $ac_cache_corrupted; then
2033 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2034 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2035 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2036 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2037 { (exit 1); exit 1; }; }
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 ac_config_headers="$ac_config_headers config.h"
2066 ac_config_headers="$ac_config_headers ltdlconf.h"
2070 VER_STRING="2.3.5.cvs"
2071 REL_STRING="Build from CVS snapshot, after release 2.3.5"
2077 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2078 if test -f "$ac_dir/install-sh"; then
2080 ac_install_sh="$ac_aux_dir/install-sh -c"
2082 elif test -f "$ac_dir/install.sh"; then
2084 ac_install_sh="$ac_aux_dir/install.sh -c"
2086 elif test -f "$ac_dir/shtool"; then
2088 ac_install_sh="$ac_aux_dir/shtool install -c"
2092 if test -z "$ac_aux_dir"; then
2093 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2094 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2095 { (exit 1); exit 1; }; }
2098 # These three variables are undocumented and unsupported,
2099 # and are intended to be withdrawn in a future Autoconf release.
2100 # They can cause serious problems if a builder's source tree is in a directory
2101 # whose full name contains unusual characters.
2102 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2103 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2104 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107 # Make sure we can run config.sub.
2108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2109 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2110 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2111 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: checking build system type" >&5
2114 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_build+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 ac_build_alias=$build_alias
2119 test "x$ac_build_alias" = x &&
2120 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2121 test "x$ac_build_alias" = x &&
2122 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2123 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2124 { (exit 1); exit 1; }; }
2125 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2126 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2128 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2132 echo "${ECHO_T}$ac_cv_build" >&6; }
2133 case $ac_cv_build in
2135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2136 echo "$as_me: error: invalid value of canonical build" >&2;}
2137 { (exit 1); exit 1; }; };;
2140 ac_save_IFS=$IFS; IFS='-'
2146 # Remember, the first character of IFS is used to create $*,
2147 # except with old shells:
2150 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2153 { echo "$as_me:$LINENO: checking host system type" >&5
2154 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2155 if test "${ac_cv_host+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test "x$host_alias" = x; then
2159 ac_cv_host=$ac_cv_build
2161 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169 echo "${ECHO_T}$ac_cv_host" >&6; }
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2173 echo "$as_me: error: invalid value of canonical host" >&2;}
2174 { (exit 1); exit 1; }; };;
2177 ac_save_IFS=$IFS; IFS='-'
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2187 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2190 { echo "$as_me:$LINENO: checking target system type" >&5
2191 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_target+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test "x$target_alias" = x; then
2196 ac_cv_target=$ac_cv_host
2198 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2199 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2205 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2206 echo "${ECHO_T}$ac_cv_target" >&6; }
2207 case $ac_cv_target in
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2210 echo "$as_me: error: invalid value of canonical target" >&2;}
2211 { (exit 1); exit 1; }; };;
2213 target=$ac_cv_target
2214 ac_save_IFS=$IFS; IFS='-'
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2224 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2227 # The aliases save the names the user supplied, while $host etc.
2228 # will get canonicalized.
2229 test -n "$target_alias" &&
2230 test "$program_prefix$program_suffix$program_transform_name" = \
2232 program_prefix=${target_alias}-
2234 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2235 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2236 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2241 { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2246 # this case statement defines the compile flags which are needed to
2247 # compile bochs on a platform. Don't put things like optimization settings
2248 # into the configure.in file, since people will want to be able to change
2249 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2251 need_dlcompat_for_plugins=0
2253 *-pc-windows* | *-pc-winnt*)
2254 DEFAULT_GUI=win32 # default to win32 gui
2256 *-pc-cygwin* | *-pc-mingw32*)
2257 NO_LT=1 # do not use libtool at all on cygwin
2258 if test "$with_term" = yes; then
2259 # ncurses won't compile with -mno-cygwin or -DWIN32
2260 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2261 # see /usr/include/curses.h for details.
2262 ADD_FLAGS="-DBROKEN_LINKER=1"
2265 ADD_FLAGS="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2266 DEFAULT_GUI=win32 # default to win32 gui
2269 *-macosx* | *-darwin*)
2270 ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2271 DEFAULT_GUI=carbon # default to carbon
2272 need_dlcompat_for_plugins=1
2275 DEFAULT_GUI=macos # macos defaults to macos
2278 ADD_FLAGS="-Wno-multichar"
2279 DEFAULT_GUI=beos # beos defaults to beos
2281 *-amigaos* | *-morphos*)
2282 DEFAULT_GUI=amigaos # amigaos or morphos defaults to amigaos gui
2285 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2286 LIBS="$LIBS -lsocket -lnsl"
2293 if test "${ADD_FLAGS:+set}" = set; then
2294 CFLAGS="$CFLAGS $ADD_FLAGS"
2295 CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2296 CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2299 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2300 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2301 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2302 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2304 if (test "$with_sdl" != yes) && \
2305 (test "$with_svga" != yes) && \
2306 (test "$with_x11" != yes) && \
2307 (test "$with_beos" != yes) && \
2308 (test "$with_win32" != yes) && \
2309 (test "$with_nogui" != yes) && \
2310 (test "$with_term" != yes) && \
2311 (test "$with_rfb" != yes) && \
2312 (test "$with_amigaos" != yes) && \
2313 (test "$with_carbon" != yes) && \
2314 (test "$with_wx" != yes) && \
2315 (test "$with_macos" != yes); then
2316 # use DEFAULT_GUI. Set the appropriate variable.
2317 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2318 # valid $with_* variable will be set and who knows what will happen?
2319 eval "with_${DEFAULT_GUI}=yes"
2323 ac_cpp='$CPP $CPPFLAGS'
2324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327 if test -n "$ac_tool_prefix"; then
2328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 if test -n "$CC"; then
2336 ac_cv_prog_CC="$CC" # Let the user override the test.
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2345 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 if test -n "$CC"; then
2357 { echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6; }
2360 { echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6; }
2366 if test -z "$ac_cv_prog_CC"; then
2368 # Extract the first word of "gcc", so it can be a program name with args.
2369 set dummy gcc; ac_word=$2
2370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 if test -n "$ac_ct_CC"; then
2376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_ac_ct_CC="gcc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2396 if test -n "$ac_ct_CC"; then
2397 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2398 echo "${ECHO_T}$ac_ct_CC" >&6; }
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2404 if test "x$ac_ct_CC" = x; then
2407 case $cross_compiling:$ac_tool_warned in
2409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2410 whose name does not start with the host triplet. If you think this
2411 configuration is useful to you, please write to autoconf@gnu.org." >&5
2412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2415 ac_tool_warned=yes ;;
2423 if test -z "$CC"; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}cc; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_CC="${ac_tool_prefix}cc"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 if test -n "$CC"; then
2454 { echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6; }
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2464 if test -z "$CC"; then
2465 # Extract the first word of "cc", so it can be a program name with args.
2466 set dummy cc; ac_word=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2484 ac_prog_rejected=yes
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test $ac_prog_rejected = yes; then
2496 # We found a bogon in the path, so make sure we never use it.
2497 set dummy $ac_cv_prog_CC
2499 if test $# != 0; then
2500 # We chose a different compiler from the bogus one.
2501 # However, it has the same basename, so the bogon will be chosen
2502 # first if we set CC to just the basename; use the full file name.
2504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2520 if test -z "$CC"; then
2521 if test -n "$ac_tool_prefix"; then
2522 for ac_prog in cl.exe
2524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 if test -n "$CC"; then
2553 { echo "$as_me:$LINENO: result: $CC" >&5
2554 echo "${ECHO_T}$CC" >&6; }
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2561 test -n "$CC" && break
2564 if test -z "$CC"; then
2566 for ac_prog in cl.exe
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_ac_ct_CC="$ac_prog"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596 if test -n "$ac_ct_CC"; then
2597 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598 echo "${ECHO_T}$ac_ct_CC" >&6; }
2600 { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2605 test -n "$ac_ct_CC" && break
2608 if test "x$ac_ct_CC" = x; then
2611 case $cross_compiling:$ac_tool_warned in
2613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2614 whose name does not start with the host triplet. If you think this
2615 configuration is useful to you, please write to autoconf@gnu.org." >&5
2616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2617 whose name does not start with the host triplet. If you think this
2618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2619 ac_tool_warned=yes ;;
2628 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2629 See \`config.log
' for more details." >&5
2630 echo "$as_me: error: no acceptable C compiler found in \$PATH
2631 See \`config.log' for more details.
" >&2;}
2632 { (exit 1); exit 1; }; }
2634 # Provide some information about the compiler.
2635 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2636 ac_compiler=`set X $ac_compile; echo $2`
2637 { (ac_try="$ac_compiler --version >&5"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compiler --version >&5") 2>&5
2645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2646 (exit $ac_status); }
2647 { (ac_try="$ac_compiler -v >&5"
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compiler -v >&5") 2>&5
2655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2656 (exit $ac_status); }
2657 { (ac_try="$ac_compiler -V >&5"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compiler -V >&5") 2>&5
2665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2666 (exit $ac_status); }
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2683 ac_clean_files_save=$ac_clean_files
2684 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2685 # Try to create an executable without -o first, disregard a.out.
2686 # It will help us diagnose broken compilers, and finding out an intuition
2688 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2689 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2690 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2692 # List of possible output files, starting from the most likely.
2693 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2694 # only as a last resort. b.out is created by i960 compilers.
2695 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2697 # The IRIX 6 linker writes into existing files which may not be
2698 # executable, retaining their permissions. Remove them first so a
2699 # subsequent execution test works.
2701 for ac_file in $ac_files
2704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2705 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2710 if { (ac_try="$ac_link_default"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_link_default") 2>&5
2718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2719 (exit $ac_status); }; then
2720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2722 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2723 # so that the user can short-circuit this test for compilers unknown to
2725 for ac_file in $ac_files
2727 test -f "$ac_file" || continue
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2732 # We found the default executable, but exeext='' is most
2736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2740 # We set ac_cv_exeext here because the later test for it is not
2741 # safe: cross compilers may not add the suffix if given an `-o'
2742 # argument, so we may need to know it at that point already.
2743 # Even if this section looks crufty: it has the advantage of
2750 test "$ac_cv_exeext" = no && ac_cv_exeext=
2753 echo "$as_me: failed program was
:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2757 See \
`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log
' for more details." >&2;}
2760 { (exit 77); exit 77; }; }
2763 ac_exeext=$ac_cv_exeext
2764 { echo "$as_me:$LINENO: result: $ac_file" >&5
2765 echo "${ECHO_T}$ac_file" >&6; }
2767 # Check that the compiler produces executables we can run. If not, either
2768 # the compiler is broken, or we cross compile.
2769 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2770 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2772 # If not cross compiling, check that we can run a simple program.
2773 if test "$cross_compiling" != yes; then
2774 if { ac_try='.
/$ac_file'
2775 { (case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_try") 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2786 if test "$cross_compiling" = maybe; then
2789 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \
`config.log' for more details." >&5
2792 echo "$as_me: error: cannot run C compiled programs.
2793 If you meant to cross compile, use \`--host'.
2794 See \`config.log' for more details.
" >&2;}
2795 { (exit 1); exit 1; }; }
2799 { echo "$as_me:$LINENO: result
: yes" >&5
2800 echo "${ECHO_T}yes" >&6; }
2802 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 # Check that the compiler produces executables we can run. If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2807 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2808 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2809 echo "${ECHO_T}$cross_compiling" >&6; }
2811 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2812 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2813 if { (ac_try="$ac_link"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_link") 2>&5
2821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2822 (exit $ac_status); }; then
2823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2825 # work properly (i.e., refer to `conftest.exe'), while it won't with
2827 for ac_file in conftest.exe conftest conftest.*; do
2828 test -f "$ac_file" || continue
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2838 See \
`config.log' for more details." >&5
2839 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2840 See \`config.log
' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2844 rm -f conftest$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2846 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2848 rm -f conftest.$ac_ext
2849 EXEEXT=$ac_cv_exeext
2851 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2852 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2853 if test "${ac_cv_objext+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2871 rm -f conftest.o conftest.obj
2872 if { (ac_try="$ac_compile"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 for ac_file in conftest.o conftest.obj conftest.*; do
2883 test -f "$ac_file" || continue;
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2886 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2891 echo "$as_me: failed program was:" >&5
2892 sed 's
/^
/|
/' conftest.$ac_ext >&5
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details.
" >&5
2896 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2897 See \
`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2903 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2904 echo "${ECHO_T}$ac_cv_objext" >&6; }
2905 OBJEXT=$ac_cv_objext
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2934 *) ac_try_echo
=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1
>conftest.err
2941 cat conftest.err
>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2957 *) ac_try_echo
=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.
$ac_ext >&5
2972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2973 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS
=${CFLAGS+set}
2980 ac_save_CFLAGS
=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_c_werror_flag
=$ac_c_werror_flag
2987 ac_c_werror_flag
=yes
2990 cat >conftest.
$ac_ext <<_ACEOF
2993 cat confdefs.h
>>conftest.
$ac_ext
2994 cat >>conftest.
$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.
$ac_objext
3006 if { (ac_try
="$ac_compile"
3008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3022 *) ac_try_echo
=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try
='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3064 *) ac_try_echo
=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1
>conftest.err
3071 cat conftest.err
>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
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_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3087 *) ac_try_echo
=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.
$ac_ext >&5
3099 ac_c_werror_flag
=$ac_save_c_werror_flag
3101 cat >conftest.
$ac_ext <<_ACEOF
3104 cat confdefs.h
>>conftest.
$ac_ext
3105 cat >>conftest.
$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.
$ac_objext
3117 if { (ac_try
="$ac_compile"
3119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3133 *) ac_try_echo
=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try
='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_c_werror_flag=$ac_save_c_werror_flag
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3169 if test "$ac_test_CFLAGS" = set; then
3170 CFLAGS=$ac_save_CFLAGS
3171 elif test $ac_cv_prog_cc_g = yes; then
3172 if test "$GCC" = yes; then
3178 if test "$GCC" = yes; then
3184 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3185 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3186 if test "${ac_cv_prog_cc_c89+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 ac_cv_prog_cc_c89=no
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3199 #include <sys/types.h>
3200 #include <sys/stat.h>
3201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3202 struct buf { int x; };
3203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3204 static char *e (p, i)
3210 static char *f (char * (*g) (char **, int), char **p, ...)
3215 s = g (p, va_arg (v,int));
3220 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3221 function prototypes and stuff, but not '\xHH' hex character constants.
3222 These don't provoke an error unfortunately, instead are silently treated
3223 as 'x'. The following induces an error, until -std is added to get
3224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3225 array size at least. It's necessary to write '\x00'==0 to get something
3226 that's true only with -std. */
3227 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3229 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3230 inside strings and character constants. */
3232 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3234 int test (int i, double x);
3235 struct s1 {int (*f) (int a);};
3236 struct s2 {int (*f) (double a);};
3237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3243 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3248 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3249 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3251 CC="$ac_save_CC $ac_arg"
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
3255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3256 *) ac_try_echo
=$ac_try;;
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compile") 2>conftest.er1
3261 grep -v '^ *+' conftest.er1
>conftest.err
3263 cat conftest.err
>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3267 { (case "(($ac_try" in
3268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_try") 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3279 *) ac_try_echo
=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 ac_cv_prog_cc_c89
=$ac_arg
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.
$ac_ext >&5
3294 rm -f core conftest.err conftest.
$ac_objext
3295 test "x$ac_cv_prog_cc_c89" != "xno" && break
3297 rm -f conftest.
$ac_ext
3302 case "x$ac_cv_prog_cc_c89" in
3304 { echo "$as_me:$LINENO: result: none needed" >&5
3305 echo "${ECHO_T}none needed" >&6; } ;;
3307 { echo "$as_me:$LINENO: result: unsupported" >&5
3308 echo "${ECHO_T}unsupported" >&6; } ;;
3310 CC
="$CC $ac_cv_prog_cc_c89"
3311 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3312 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3317 ac_cpp
='$CPP $CPPFLAGS'
3318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3323 ac_cpp
='$CXXCPP $CPPFLAGS'
3324 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3327 if test -z "$CXX"; then
3328 if test -n "$CCC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3338 if test "${ac_cv_prog_CXX+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if test -n "$CXX"; then
3342 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir
=.
3349 for ac_exec_ext
in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 if test -n "$CXX"; then
3363 { echo "$as_me:$LINENO: result: $CXX" >&5
3364 echo "${ECHO_T}$CXX" >&6; }
3366 { echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6; }
3371 test -n "$CXX" && break
3374 if test -z "$CXX"; then
3376 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy
$ac_prog; ac_word
=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if test -n "$ac_ct_CXX"; then
3386 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir
=.
3393 for ac_exec_ext
in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3406 if test -n "$ac_ct_CXX"; then
3407 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3408 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3410 { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3415 test -n "$ac_ct_CXX" && break
3418 if test "x$ac_ct_CXX" = x
; then
3421 case $cross_compiling:$ac_tool_warned in
3423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3424 whose name does not start with the host triplet. If you think this
3425 configuration is useful to you, please write to autoconf@gnu.org." >&5
3426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3427 whose name does not start with the host triplet. If you think this
3428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3429 ac_tool_warned
=yes ;;
3437 # Provide some information about the compiler.
3438 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3439 ac_compiler
=`set X $ac_compile; echo $2`
3440 { (ac_try
="$ac_compiler --version >&5"
3442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_compiler --version >&5") 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }
3450 { (ac_try="$ac_compiler -v >&5"
3452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3453 *) ac_try_echo
=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compiler -v >&5") 2>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }
3460 { (ac_try
="$ac_compiler -V >&5"
3462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compiler -V >&5") 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }
3471 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3472 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3473 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3498 *) ac_try_echo
=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1
>conftest.err
3505 cat conftest.err
>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3509 { (case "(($ac_try" in
3510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_try") 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; } &&
3518 { ac_try='test -s conftest.$ac_objext'
3519 { (case "(($ac_try" in
3520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3521 *) ac_try_echo
=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_try") 2>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.
$ac_ext >&5
3536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3537 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3540 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3542 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3543 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3544 ac_save_CXXFLAGS
=$CXXFLAGS
3545 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3546 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3547 if test "${ac_cv_prog_cxx_g+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3551 ac_cxx_werror_flag
=yes
3554 cat >conftest.
$ac_ext <<_ACEOF
3557 cat confdefs.h
>>conftest.
$ac_ext
3558 cat >>conftest.
$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3569 rm -f conftest.
$ac_objext
3570 if { (ac_try
="$ac_compile"
3572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3584 { (case "(($ac_try" in
3585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3586 *) ac_try_echo
=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_try") 2>&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (case "(($ac_try" in
3595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_try") 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_cv_prog_cxx_g=yes
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3628 *) ac_try_echo
=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1
>conftest.err
3635 cat conftest.err
>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3639 { (case "(($ac_try" in
3640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_try") 2>&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (case "(($ac_try" in
3650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3651 *) ac_try_echo
=$ac_try;;
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_try") 2>&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.
$ac_ext >&5
3663 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3665 cat >conftest.
$ac_ext <<_ACEOF
3668 cat confdefs.h
>>conftest.
$ac_ext
3669 cat >>conftest.
$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3680 rm -f conftest.
$ac_objext
3681 if { (ac_try
="$ac_compile"
3683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3689 grep -v '^ *+' conftest.er1 >conftest.err
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3695 { (case "(($ac_try" in
3696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3697 *) ac_try_echo
=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try
='test -s conftest.$ac_objext'
3705 { (case "(($ac_try" in
3706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_prog_cxx_g=yes
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3731 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3732 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3733 if test "$ac_test_CXXFLAGS" = set; then
3734 CXXFLAGS=$ac_save_CXXFLAGS
3735 elif test $ac_cv_prog_cxx_g = yes; then
3736 if test "$GXX" = yes; then
3742 if test "$GXX" = yes; then
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3755 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3756 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3757 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 cat >conftest.make <<\_ACEOF
3763 @echo '@@@%%%=$(MAKE)=@@@%%%'
3765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3766 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
3768 eval ac_cv_prog_make_${ac_make}_set=yes;;
3770 eval ac_cv_prog_make_${ac_make}_set=no;;
3774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3775 { echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6; }
3779 { echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6; }
3781 SET_MAKE="MAKE=${MAKE-make}"
3785 # Check whether --enable-static was given.
3786 if test "${enable_static+set}" = set; then
3787 enableval=$enable_static; p=${PACKAGE-default}
3789 yes) enable_static=yes ;;
3790 no) enable_static=no ;;
3793 # Look at the argument we got. We use all the common list separators.
3794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3795 for pkg in $enableval; do
3797 if test "X$pkg" = "X$p"; then
3812 # Check whether --enable-shared was given.
3813 if test "${enable_shared+set}" = set; then
3814 enableval=$enable_shared; p=${PACKAGE-default}
3816 yes) enable_shared=yes ;;
3817 no) enable_shared=no ;;
3820 # Look at the argument we got. We use all the common list separators.
3821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3822 for pkg in $enableval; do
3824 if test "X$pkg" = "X$p"; then
3836 # Check whether --enable-fast-install was given.
3837 if test "${enable_fast_install+set}" = set; then
3838 enableval=$enable_fast_install; p=${PACKAGE-default}
3840 yes) enable_fast_install=yes ;;
3841 no) enable_fast_install=no ;;
3843 enable_fast_install=no
3844 # Look at the argument we got. We use all the common list separators.
3845 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3846 for pkg in $enableval; do
3848 if test "X$pkg" = "X$p"; then
3849 enable_fast_install=yes
3856 enable_fast_install=yes
3860 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3861 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3862 if test "${lt_cv_path_SED+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 # Loop through the user's path and test for sed and gsed.
3866 # Then use that list of sed's as ones to test for truncation.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for lt_ac_prog in sed gsed; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3875 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3882 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3883 # along with /bin/sed that truncates output.
3884 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3885 test ! -f $lt_ac_sed && break
3886 cat /dev/null > conftest.in
3888 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3889 # Check for GNU sed and select it if it is found.
3890 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3891 lt_cv_path_SED=$lt_ac_sed
3895 cat conftest.in conftest.in >conftest.tmp
3896 mv conftest.tmp conftest.in
3897 cp conftest.in conftest.nl
3899 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3900 cmp -s conftest.out conftest.nl || break
3901 # 10000 chars as input seems more than enough
3902 test $lt_ac_count -gt 10 && break
3903 lt_ac_count=`expr $lt_ac_count + 1`
3904 if test $lt_ac_count -gt $lt_ac_max; then
3905 lt_ac_max=$lt_ac_count
3906 lt_cv_path_SED=$lt_ac_sed
3914 { echo "$as_me:$LINENO: result: $SED" >&5
3915 echo "${ECHO_T}$SED" >&6; }
3917 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919 if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 # Extract the first word of "grep ggrep" to use in msg output
3923 if test -z "$GREP"; then
3924 set dummy grep ggrep; ac_prog_name=$2
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 ac_path_GREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
3940 # Check for GNU $ac_path_GREP
3941 case `"$ac_path_GREP" --version 2>&1` in
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 echo 'GREP' >> "conftest.nl"
3953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 ac_count=`expr $ac_count + 1`
3956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968 $ac_path_GREP_found && break 3
3978 GREP="$ac_cv_path_GREP"
3979 if test -z "$GREP"; then
3980 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3986 ac_cv_path_GREP=$GREP
3991 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3996 { echo "$as_me:$LINENO: checking for egrep" >&5
3997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002 then ac_cv_path_EGREP="$GREP -E"
4004 # Extract the first word of "egrep" to use in msg output
4005 if test -z "$EGREP"; then
4006 set dummy egrep; ac_prog_name=$2
4007 if test "${ac_cv_path_EGREP+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 ac_path_EGREP_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in egrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022 # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 echo 'EGREP' >> "conftest.nl"
4035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 ac_count=`expr $ac_count + 1`
4038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP="$ac_path_EGREP"
4041 ac_path_EGREP_max=$ac_count
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4050 $ac_path_EGREP_found && break 3
4060 EGREP="$ac_cv_path_EGREP"
4061 if test -z "$EGREP"; then
4062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064 { (exit 1); exit 1; }; }
4068 ac_cv_path_EGREP=$EGREP
4074 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4080 # Check whether --with-gnu-ld was given.
4081 if test "${with_gnu_ld+set}" = set; then
4082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4088 if test "$GCC" = yes; then
4089 # Check if gcc -print-prog-name=ld gives a path.
4090 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4094 # gcc leaves a trailing carriage return which upsets mingw
4095 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4097 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4100 # Accept absolute paths.
4102 re_direlt='/[^/][^/]*/\.\./'
4103 # Canonicalize the pathname of ld
4104 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
4105 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4106 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
4108 test -z "$LD" && LD="$ac_prog"
4111 # If it fails, then pretend we aren't using GCC.
4115 # If it is relative, then search for the first ld in PATH.
4119 elif test "$with_gnu_ld" = yes; then
4120 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4123 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4126 if test "${lt_cv_path_LD+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -z "$LD"; then
4130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4131 for ac_dir in $PATH; do
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4135 lt_cv_path_LD="$ac_dir/$ac_prog"
4136 # Check to see if the program is GNU ld. I'd rather use --version,
4137 # but apparently some GNU ld's only accept -v.
4138 # Break only if it was the GNU/non-GNU ld that we prefer.
4139 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4140 *GNU* | *'with BFD'*)
4141 test "$with_gnu_ld" != no && break
4144 test "$with_gnu_ld" != yes && break
4151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4156 if test -n "$LD"; then
4157 { echo "$as_me:$LINENO: result: $LD" >&5
4158 echo "${ECHO_T}$LD" >&6; }
4160 { echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6; }
4163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4165 { (exit 1); exit 1; }; }
4166 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4172 case `$LD -v 2>&1 </dev
/null
` in
4173 *GNU* | *'with BFD'*)
4174 lt_cv_prog_gnu_ld=yes
4177 lt_cv_prog_gnu_ld=no
4181 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4183 with_gnu_ld=$lt_cv_prog_gnu_ld
4186 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4187 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4188 if test "${lt_cv_ld_reload_flag+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 lt_cv_ld_reload_flag='-r'
4193 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4194 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4195 reload_flag=$lt_cv_ld_reload_flag
4196 case $reload_flag in
4198 *) reload_flag=" $reload_flag" ;;
4200 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4202 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4203 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4204 if test "${lt_cv_path_NM+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 if test -n "$NM"; then
4208 # Let the user override the test.
4211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4212 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4214 test -z "$ac_dir" && ac_dir=.
4215 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4217 # Check to see if the nm accepts a BSD-compat flag.
4218 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
4219 # nm: unknown option "B" ignored
4220 # Tru64's nm complains that
/dev
/null is an invalid object
file
4221 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4222 */dev
/null
* |
*'Invalid file or object type'*)
4223 lt_cv_path_NM
="$tmp_nm -B"
4227 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4229 lt_cv_path_NM
="$tmp_nm -p"
4233 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4234 continue # so that we can try to find one that supports BSD flags
4241 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4244 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4245 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4248 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4249 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4251 if test "$LN_S" = "ln -s"; then
4252 { echo "$as_me:$LINENO: result: yes" >&5
4253 echo "${ECHO_T}yes" >&6; }
4255 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4256 echo "${ECHO_T}no, using $LN_S" >&6; }
4259 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4260 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4261 if test "${lt_cv_deplibs_check_method+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4265 lt_cv_file_magic_test_file
=
4266 lt_cv_deplibs_check_method
='unknown'
4267 # Need to set the preceding variable on all platforms that support
4268 # interlibrary dependencies.
4269 # 'none' -- dependencies not supported.
4270 # `unknown' -- same as none, but documents that we really don't know.
4271 # 'pass_all' -- all dependencies passed with no checks.
4272 # 'test_compile' -- check by making test program.
4273 # 'file_magic [[regex]]' -- check by looking for files in library path
4274 # which responds to the $file_magic_cmd with a given extended regex.
4275 # If you have `file' or equivalent on your system and you're not sure
4276 # whether `pass_all' will *always* work, you probably want this one.
4280 lt_cv_deplibs_check_method
=pass_all
4284 lt_cv_deplibs_check_method
=pass_all
4288 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4289 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4290 lt_cv_file_magic_test_file
=/shlib
/libc.so
4293 cygwin
* | mingw
* | pw32
*)
4294 # win32_libid is a shell function defined in ltmain.sh
4295 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4296 lt_cv_file_magic_cmd
='win32_libid'
4299 darwin
* | rhapsody
*)
4300 # this will be overwritten by pass_all, but leave it in just in case
4301 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
4302 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4304 rhapsody
* | darwin1.
[012])
4305 lt_cv_file_magic_test_file
=`/System/Library/Frameworks/System.framework/System`
4308 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
4311 lt_cv_deplibs_check_method
=pass_all
4314 freebsd
* | kfreebsd
*-gnu)
4315 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4318 # Not sure whether the presence of OpenBSD here was a mistake.
4319 # Let's accept both of them until this is cleared up.
4320 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4321 lt_cv_file_magic_cmd
=/usr
/bin
/file
4322 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4326 lt_cv_deplibs_check_method
=pass_all
4331 lt_cv_deplibs_check_method
=pass_all
4334 hpux10.20
* | hpux11
*)
4335 lt_cv_file_magic_cmd
=/usr
/bin
/file
4338 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4339 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4342 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]'
4343 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4346 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4347 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4352 irix5
* | irix6
* | nonstopux
*)
4354 irix5
* | nonstopux
*)
4355 # this will be overridden with pass_all, but let us keep it just in case
4356 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4360 *-32|
*"-32 ") libmagic
=32-bit;;
4361 *-n32|
*"-n32 ") libmagic
=N32
;;
4362 *-64|
*"-64 ") libmagic
=64-bit;;
4363 *) libmagic
=never-match
;;
4365 # this will be overridden with pass_all, but let us keep it just in case
4366 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4369 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
4370 lt_cv_deplibs_check_method
=pass_all
4373 # This must be Linux ELF.
4376 alpha
* | hppa
* | i
*86 | ia64
* | m68
* | mips
* | powerpc
* | sparc
* | s390
* | sh
*)
4377 lt_cv_deplibs_check_method
=pass_all
;;
4379 # glibc up to 2.1.1 does not perform some relocations on ARM
4380 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4382 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
4386 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4387 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4389 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4394 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4395 lt_cv_file_magic_cmd
=/usr
/bin
/file
4396 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4400 lt_cv_deplibs_check_method
=unknown
4404 lt_cv_file_magic_cmd
=/usr
/bin
/file
4405 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4407 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4409 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
4413 osf3
* | osf4
* | osf5
*)
4414 # this will be overridden with pass_all, but let us keep it just in case
4415 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
4416 lt_cv_file_magic_test_file
=/shlib
/libc.so
4417 lt_cv_deplibs_check_method
=pass_all
4421 lt_cv_deplibs_check_method
=pass_all
4425 lt_cv_deplibs_check_method
=pass_all
4426 lt_cv_file_magic_test_file
=/lib
/libc.so
4429 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4430 case $host_vendor in
4432 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]'
4433 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4436 lt_cv_deplibs_check_method
=pass_all
4439 lt_cv_file_magic_cmd
='/bin/file'
4440 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4443 lt_cv_file_magic_cmd
='/bin/file'
4444 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4445 lt_cv_file_magic_test_file
=/lib
/libc.so
4448 lt_cv_deplibs_check_method
=pass_all
4453 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
4454 lt_cv_deplibs_check_method
=pass_all
4459 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4460 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4461 file_magic_cmd
=$lt_cv_file_magic_cmd
4462 deplibs_check_method
=$lt_cv_deplibs_check_method
4463 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4468 # If no C compiler was specified, use CC.
4471 # Allow CC to be a program name with arguments.
4475 # Check whether --enable-libtool-lock was given.
4476 if test "${enable_libtool_lock+set}" = set; then
4477 enableval
=$enable_libtool_lock;
4480 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4482 # Some flags need to be propagated to the compiler or linker for good
4486 # Find out which ABI we are using.
4487 echo 'int i;' > conftest.
$ac_ext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; then
4493 case `/usr/bin/file conftest.$ac_objext` in
4505 # Find out which ABI we are using.
4506 echo '#line 4506 "configure"' > conftest.
$ac_ext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 if test "$lt_cv_prog_gnu_ld" = yes; then
4513 case `/usr/bin/file conftest.$ac_objext` in
4515 LD
="${LD-ld} -melf32bsmip"
4518 LD
="${LD-ld} -melf32bmipn32"
4521 LD
="${LD-ld} -melf64bmip"
4525 case `/usr/bin/file conftest.$ac_objext` in
4541 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4542 # Find out which ABI we are using.
4543 echo 'int i;' > conftest.
$ac_ext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 case "`/usr/bin/file conftest.o`" in
4553 LD
="${LD-ld} -m elf_i386"
4555 ppc64-
*linux
*|powerpc64-
*linux
*)
4556 LD
="${LD-ld} -m elf32ppclinux"
4559 LD
="${LD-ld} -m elf_s390"
4562 LD
="${LD-ld} -m elf32_sparc"
4569 LD
="${LD-ld} -m elf_x86_64"
4571 ppc
*-*linux
*|powerpc
*-*linux
*)
4572 LD
="${LD-ld} -m elf64ppc"
4575 LD
="${LD-ld} -m elf64_s390"
4578 LD
="${LD-ld} -m elf64_sparc"
4588 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4589 SAVE_CFLAGS
="$CFLAGS"
4590 CFLAGS
="$CFLAGS -belf"
4591 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4592 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4593 if test "${lt_cv_cc_needs_belf+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 ac_cpp
='$CPP $CPPFLAGS'
4598 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4602 cat >conftest.
$ac_ext <<_ACEOF
4605 cat confdefs.h
>>conftest.
$ac_ext
4606 cat >>conftest.
$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4617 rm -f conftest.
$ac_objext conftest
$ac_exeext
4618 if { (ac_try
="$ac_link"
4620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_link") 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4634 *) ac_try_echo
=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try
='test -s conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 lt_cv_cc_needs_belf=yes
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 lt_cv_cc_needs_belf=no
4659 rm -f core conftest.err conftest.$ac_objext \
4660 conftest$ac_exeext conftest.$ac_ext
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4669 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4670 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4671 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4672 CFLAGS="$SAVE_CFLAGS"
4678 need_locks="$enable_libtool_lock"
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4687 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4688 # On Suns, sometimes $CPP names a directory.
4689 if test -n "$CPP" && test -d "$CPP"; then
4692 if test -z "$CPP"; then
4693 if test "${ac_cv_prog_CPP+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 # Double quotes because CPP needs to be expanded
4697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4700 for ac_c_preproc_warn_flag in '' yes
4702 # Use a header file that comes with gcc, so configuring glibc
4703 # with a fresh cross-compiler works.
4704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4705 # <limits.h> exists even on freestanding compilers.
4706 # On the NeXT, cc -E runs the code through the compiler's parser,
4707 # not just through cpp. "Syntax error" is here to catch this case.
4708 cat >conftest.$ac_ext <<_ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4715 # include <limits.h>
4717 # include <assert.h>
4721 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4724 *) ac_try_echo
=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729 grep -v '^ *+' conftest.er1
>conftest.err
4731 cat conftest.err
>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev
/null
; then
4734 if test -s conftest.err
; then
4735 ac_cpp_err
=$ac_c_preproc_warn_flag
4736 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4743 if test -z "$ac_cpp_err"; then
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.
$ac_ext >&5
4749 # Broken: fails on valid input.
4753 rm -f conftest.err conftest.
$ac_ext
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat >conftest.
$ac_ext <<_ACEOF
4760 cat confdefs.h
>>conftest.
$ac_ext
4761 cat >>conftest.
$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ac_nonexistent.h>
4765 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null; then
4778 if test -s conftest.err; then
4779 ac_cpp_err=$ac_c_preproc_warn_flag
4780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4787 if test -z "$ac_cpp_err"; then
4788 # Broken: success on invalid input.
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Passes both tests.
4799 rm -f conftest.err conftest.$ac_ext
4802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4803 rm -f conftest.err conftest.
$ac_ext
4804 if $ac_preproc_ok; then
4816 { echo "$as_me:$LINENO: result: $CPP" >&5
4817 echo "${ECHO_T}$CPP" >&6; }
4819 for ac_c_preproc_warn_flag
in '' yes
4821 # Use a header file that comes with gcc, so configuring glibc
4822 # with a fresh cross-compiler works.
4823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4824 # <limits.h> exists even on freestanding compilers.
4825 # On the NeXT, cc -E runs the code through the compiler's parser,
4826 # not just through cpp. "Syntax error" is here to catch this case.
4827 cat >conftest.
$ac_ext <<_ACEOF
4830 cat confdefs.h
>>conftest.
$ac_ext
4831 cat >>conftest.
$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4834 # include <limits.h>
4836 # include <assert.h>
4840 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null; then
4853 if test -s conftest.err; then
4854 ac_cpp_err=$ac_c_preproc_warn_flag
4855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4862 if test -z "$ac_cpp_err"; then
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 # Broken: fails on valid input.
4872 rm -f conftest.err conftest.$ac_ext
4874 # OK, works on sane cases. Now check whether nonexistent headers
4875 # can be detected and how.
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 #include <ac_nonexistent.h>
4884 if { (ac_try="$ac_cpp conftest.$ac_ext"
4886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4887 *) ac_try_echo
=$ac_try;;
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4892 grep -v '^ *+' conftest.er1
>conftest.err
4894 cat conftest.err
>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } >/dev
/null
; then
4897 if test -s conftest.err
; then
4898 ac_cpp_err
=$ac_c_preproc_warn_flag
4899 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4906 if test -z "$ac_cpp_err"; then
4907 # Broken: success on invalid input.
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.
$ac_ext >&5
4913 # Passes both tests.
4918 rm -f conftest.err conftest.
$ac_ext
4921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4922 rm -f conftest.err conftest.
$ac_ext
4923 if $ac_preproc_ok; then
4926 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4927 See \`config.log' for more details." >&5
4928 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4929 See \`config.log' for more details." >&2;}
4930 { (exit 1); exit 1; }; }
4934 ac_cpp
='$CPP $CPPFLAGS'
4935 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4940 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4942 if test "${ac_cv_header_stdc+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4964 rm -f conftest.
$ac_objext
4965 if { (ac_try
="$ac_compile"
4967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_compile") 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4979 { (case "(($ac_try" in
4980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4981 *) ac_try_echo
=$ac_try;;
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try
='test -s conftest.$ac_objext'
4989 { (case "(($ac_try" in
4990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_try") 2>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_header_stdc=yes
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_header_stdc=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 if test $ac_cv_header_stdc = yes; then
5009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020 $EGREP "memchr" >/dev/null 2>&1; then
5023 ac_cv_header_stdc=no
5029 if test $ac_cv_header_stdc = yes; then
5030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041 $EGREP "free" >/dev/null 2>&1; then
5044 ac_cv_header_stdc=no
5050 if test $ac_cv_header_stdc = yes; then
5051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5052 if test "$cross_compiling" = yes; then
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5063 #if ((' ' & 0x0FF) == 0x020)
5064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5067 # define ISLOWER(c) \
5068 (('a' <= (c) && (c) <= 'i') \
5069 || ('j' <= (c) && (c) <= 'r') \
5070 || ('s' <= (c) && (c) <= 'z'))
5071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5079 for (i = 0; i < 256; i++)
5080 if (XOR (islower (i), ISLOWER (i))
5081 || toupper (i) != TOUPPER (i))
5086 rm -f conftest$ac_exeext
5087 if { (ac_try="$ac_link"
5089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5090 *) ac_try_echo
=$ac_try;;
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_link") 2>&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5097 { (case "(($ac_try" in
5098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_try") 2>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5108 echo "$as_me: program exited with status $ac_status" >&5
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_cv_header_stdc=no
5115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5121 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5122 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5123 if test $ac_cv_header_stdc = yes; then
5125 cat >>confdefs.h <<\_ACEOF
5126 #define STDC_HEADERS 1
5131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5141 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5142 inttypes.h stdint.h unistd.h
5144 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 cat >conftest.$ac_ext <<_ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 $ac_includes_default
5158 #include <$ac_header>
5160 rm -f conftest.$ac_objext
5161 if { (ac_try="$ac_compile"
5163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5164 *) ac_try_echo
=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_compile") 2>conftest.er1
5169 grep -v '^ *+' conftest.er1
>conftest.err
5171 cat conftest.err
>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5175 { (case "(($ac_try" in
5176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_try") 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (case "(($ac_try" in
5186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5187 *) ac_try_echo
=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_try") 2>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 eval "$as_ac_Header=yes"
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.
$ac_ext >&5
5199 eval "$as_ac_Header=no"
5202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5204 ac_res
=`eval echo '${'$as_ac_Header'}'`
5205 { echo "$as_me:$LINENO: result: $ac_res" >&5
5206 echo "${ECHO_T}$ac_res" >&6; }
5207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5208 cat >>confdefs.h
<<_ACEOF
5209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5218 for ac_header
in dlfcn.h
5220 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5221 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5224 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_res
=`eval echo '${'$as_ac_Header'}'`
5228 { echo "$as_me:$LINENO: result: $ac_res" >&5
5229 echo "${ECHO_T}$ac_res" >&6; }
5231 # Is the header compilable?
5232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5234 cat >conftest.
$ac_ext <<_ACEOF
5237 cat confdefs.h
>>conftest.
$ac_ext
5238 cat >>conftest.
$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 $ac_includes_default
5241 #include <$ac_header>
5243 rm -f conftest.
$ac_objext
5244 if { (ac_try
="$ac_compile"
5246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5258 { (case "(($ac_try" in
5259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5260 *) ac_try_echo
=$ac_try;;
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_try") 2>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try
='test -s conftest.$ac_objext'
5268 { (case "(($ac_try" in
5269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_header_compiler=yes
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 ac_header_compiler=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5287 echo "${ECHO_T}$ac_header_compiler" >&6; }
5289 # Is the header present?
5290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <$ac_header>
5300 if { (ac_try="$ac_cpp conftest.$ac_ext"
5302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5303 *) ac_try_echo
=$ac_try;;
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5308 grep -v '^ *+' conftest.er1
>conftest.err
5310 cat conftest.err
>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } >/dev
/null
; then
5313 if test -s conftest.err
; then
5314 ac_cpp_err
=$ac_c_preproc_warn_flag
5315 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5322 if test -z "$ac_cpp_err"; then
5323 ac_header_preproc
=yes
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.
$ac_ext >&5
5328 ac_header_preproc
=no
5331 rm -f conftest.err conftest.
$ac_ext
5332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5333 echo "${ECHO_T}$ac_header_preproc" >&6; }
5335 # So? What about this header?
5336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5342 ac_header_preproc
=yes
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 eval "$as_ac_Header=\$ac_header_preproc"
5367 ac_res
=`eval echo '${'$as_ac_Header'}'`
5368 { echo "$as_me:$LINENO: result: $ac_res" >&5
5369 echo "${ECHO_T}$ac_res" >&6; }
5372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5373 cat >>confdefs.h
<<_ACEOF
5374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5382 ac_cpp
='$CXXCPP $CPPFLAGS'
5383 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5386 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5387 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5388 if test -z "$CXXCPP"; then
5389 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 # Double quotes because CXXCPP needs to be expanded
5393 for CXXCPP
in "$CXX -E" "/lib/cpp"
5396 for ac_cxx_preproc_warn_flag
in '' yes
5398 # Use a header file that comes with gcc, so configuring glibc
5399 # with a fresh cross-compiler works.
5400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5401 # <limits.h> exists even on freestanding compilers.
5402 # On the NeXT, cc -E runs the code through the compiler's parser,
5403 # not just through cpp. "Syntax error" is here to catch this case.
5404 cat >conftest.
$ac_ext <<_ACEOF
5407 cat confdefs.h
>>conftest.
$ac_ext
5408 cat >>conftest.
$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5411 # include <limits.h>
5413 # include <assert.h>
5417 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null; then
5430 if test -s conftest.err; then
5431 ac_cpp_err=$ac_cxx_preproc_warn_flag
5432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5439 if test -z "$ac_cpp_err"; then
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 # Broken: fails on valid input.
5449 rm -f conftest.err conftest.$ac_ext
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <ac_nonexistent.h>
5461 if { (ac_try="$ac_cpp conftest.$ac_ext"
5463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5464 *) ac_try_echo
=$ac_try;;
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5469 grep -v '^ *+' conftest.er1
>conftest.err
5471 cat conftest.err
>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } >/dev
/null
; then
5474 if test -s conftest.err
; then
5475 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5476 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5483 if test -z "$ac_cpp_err"; then
5484 # Broken: success on invalid input.
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.
$ac_ext >&5
5490 # Passes both tests.
5495 rm -f conftest.err conftest.
$ac_ext
5498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5499 rm -f conftest.err conftest.
$ac_ext
5500 if $ac_preproc_ok; then
5505 ac_cv_prog_CXXCPP
=$CXXCPP
5508 CXXCPP
=$ac_cv_prog_CXXCPP
5510 ac_cv_prog_CXXCPP
=$CXXCPP
5512 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5513 echo "${ECHO_T}$CXXCPP" >&6; }
5515 for ac_cxx_preproc_warn_flag
in '' yes
5517 # Use a header file that comes with gcc, so configuring glibc
5518 # with a fresh cross-compiler works.
5519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5520 # <limits.h> exists even on freestanding compilers.
5521 # On the NeXT, cc -E runs the code through the compiler's parser,
5522 # not just through cpp. "Syntax error" is here to catch this case.
5523 cat >conftest.
$ac_ext <<_ACEOF
5526 cat confdefs.h
>>conftest.
$ac_ext
5527 cat >>conftest.
$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5530 # include <limits.h>
5532 # include <assert.h>
5536 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } >/dev/null; then
5549 if test -s conftest.err; then
5550 ac_cpp_err=$ac_cxx_preproc_warn_flag
5551 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5558 if test -z "$ac_cpp_err"; then
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 # Broken: fails on valid input.
5568 rm -f conftest.err conftest.$ac_ext
5570 # OK, works on sane cases. Now check whether nonexistent headers
5571 # can be detected and how.
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 #include <ac_nonexistent.h>
5580 if { (ac_try="$ac_cpp conftest.$ac_ext"
5582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5583 *) ac_try_echo
=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5588 grep -v '^ *+' conftest.er1
>conftest.err
5590 cat conftest.err
>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } >/dev
/null
; then
5593 if test -s conftest.err
; then
5594 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5595 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5602 if test -z "$ac_cpp_err"; then
5603 # Broken: success on invalid input.
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.
$ac_ext >&5
5609 # Passes both tests.
5614 rm -f conftest.err conftest.
$ac_ext
5617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5618 rm -f conftest.err conftest.
$ac_ext
5619 if $ac_preproc_ok; then
5622 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5623 See \`config.log' for more details." >&5
5624 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5625 See \`config.log' for more details." >&2;}
5626 { (exit 1); exit 1; }; }
5630 ac_cpp
='$CXXCPP $CPPFLAGS'
5631 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5637 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5638 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5640 if test -n "$ac_tool_prefix"; then
5641 for ac_prog
in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5644 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5647 if test "${ac_cv_prog_F77+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 if test -n "$F77"; then
5651 ac_cv_prog_F77
="$F77" # Let the user override the test.
5653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir
=.
5658 for ac_exec_ext
in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 if test -n "$F77"; then
5672 { echo "$as_me:$LINENO: result: $F77" >&5
5673 echo "${ECHO_T}$F77" >&6; }
5675 { echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6; }
5680 test -n "$F77" && break
5683 if test -z "$F77"; then
5685 for ac_prog
in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy
$ac_prog; ac_word
=$2
5689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5691 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 if test -n "$ac_ct_F77"; then
5695 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5701 test -z "$as_dir" && as_dir
=.
5702 for ac_exec_ext
in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_ac_ct_F77
="$ac_prog"
5705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5715 if test -n "$ac_ct_F77"; then
5716 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5717 echo "${ECHO_T}$ac_ct_F77" >&6; }
5719 { echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6; }
5724 test -n "$ac_ct_F77" && break
5727 if test "x$ac_ct_F77" = x
; then
5730 case $cross_compiling:$ac_tool_warned in
5732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5733 whose name does not start with the host triplet. If you think this
5734 configuration is useful to you, please write to autoconf@gnu.org." >&5
5735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5736 whose name does not start with the host triplet. If you think this
5737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5738 ac_tool_warned
=yes ;;
5745 # Provide some information about the compiler.
5746 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5747 ac_compiler
=`set X $ac_compile; echo $2`
5748 { (ac_try
="$ac_compiler --version >&5"
5750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compiler --version >&5") 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }
5758 { (ac_try="$ac_compiler -v >&5"
5760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5761 *) ac_try_echo
=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compiler -v >&5") 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768 { (ac_try
="$ac_compiler -V >&5"
5770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler -V >&5") 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5780 # If we don't use `.F
' as extension, the preprocessor is not run on the
5781 # input file. (Note that this only needs to work for GNU compilers.)
5784 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5806 grep -v '^
*+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_f77_werror_flag" ||
test ! -s conftest.err
'
5812 { (case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_try") 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest.
$ac_objext'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5833 echo "$as_me: failed program was:" >&5
5834 sed 's
/^
/|
/' conftest.$ac_ext >&5
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5843 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5844 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5846 ac_test_FFLAGS=${FFLAGS+set}
5847 ac_save_FFLAGS=$FFLAGS
5849 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5850 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_f77_g+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5869 grep -v '^
*+' conftest.er1 >conftest.err
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_f77_werror_flag" ||
test ! -s conftest.err
'
5875 { (case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_try") 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.
$ac_objext'
5885 { (case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_try") 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_prog_f77_g=yes
5896 echo "$as_me: failed program was:" >&5
5897 sed 's
/^
/|
/' conftest.$ac_ext >&5
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5906 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5907 if test "$ac_test_FFLAGS" = set; then
5908 FFLAGS=$ac_save_FFLAGS
5909 elif test $ac_cv_prog_f77_g = yes; then
5910 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5916 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5923 G77=`test $ac_compiler_gnu = yes && echo yes`
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5927 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
5934 # find the maximum length of command line arguments
5935 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5936 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5937 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 # On DJGPP, this test can blow up pretty badly due to problems in libc
5946 # (any single argument exceeding 2000 bytes causes a buffer overrun
5947 # during glob expansion). Even if it were fixed, the result of this
5948 # check would be larger than it should be.
5949 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5953 # Under GNU Hurd, this test is not required because there is
5954 # no limit to the length of command line arguments.
5955 # Libtool will interpret -1 as no limit whatsoever
5956 lt_cv_sys_max_cmd_len
=-1;
5960 # On Win9x/ME, this test blows up -- it succeeds, but takes
5961 # about 5 minutes as the teststring grows exponentially.
5962 # Worse, since 9x/ME are not pre-emptively multitasking,
5963 # you end up with a "frozen" computer, even though with patience
5964 # the test eventually succeeds (with a max line length of 256k).
5965 # Instead, let's just punt: use the minimum linelength reported by
5966 # all of the supported platforms: 8192 (on NT/2K/XP).
5967 lt_cv_sys_max_cmd_len
=8192;
5970 amigaos
* | morphos
*)
5971 # On AmigaOS with pdksh, this test takes hours, literally.
5972 # So we just punt and use a minimum line length of 8192.
5973 lt_cv_sys_max_cmd_len
=8192;
5977 # If test is not a shell built-in, we'll probably end up computing a
5978 # maximum length that is only half of the actual maximum length, but
5980 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5981 = "XX$testring") >/dev
/null
2>&1 &&
5982 new_result
=`expr "X$testring" : ".*" 2>&1` &&
5983 lt_cv_sys_max_cmd_len
=$new_result &&
5984 test $i != 17 # 1/2 MB should be enough
5987 testring
=$testring$testring
5990 # Add a significant safety factor because C++ compilers can tack on massive
5991 # amounts of additional arguments before passing them to the linker.
5992 # It appears as though 1/2 is a usable value.
5993 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5999 if test -n $lt_cv_sys_max_cmd_len ; then
6000 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6001 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6003 { echo "$as_me:$LINENO: result: none" >&5
6004 echo "${ECHO_T}none" >&6; }
6010 # Check for command to grab the raw symbol name followed by C symbol from nm.
6011 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6012 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6013 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 # These are sane defaults that work on at least a few old systems.
6018 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6020 # Character class describing NM global symbol codes.
6021 symcode
='[BCDEGRST]'
6023 # Regexp to match symbols that can be accessed directly from C.
6024 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6026 # Transform the above into a raw symbol and a C symbol.
6027 symxfrm
='\1 \2\3 \3'
6029 # Transform an extracted symbol line into a proper C declaration
6030 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6032 # Transform an extracted symbol line into symbol name and symbol address
6033 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'"
6035 # Define system-specific variables.
6040 cygwin
* | mingw
* | pw32
*)
6041 symcode
='[ABCDGISTW]'
6043 hpux
*) # Its linker distinguishes data from code symbols
6044 if test "$host_cpu" = ia64
; then
6045 symcode
='[ABCDEGRST]'
6047 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6048 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'"
6051 symcode
='[BCDEGRST]'
6054 symcode
='[BCDEGQRST]'
6064 # Handle CRLF in mingw tool chain
6068 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6072 # If we're using GNU nm, then use its standard symbol codes.
6073 case `$NM -V 2>&1` in
6074 *GNU
* |
*'with BFD'*)
6075 symcode
='[ABCDGIRSTW]' ;;
6078 # Try without a prefix undercore, then with it.
6079 for ac_symprfx
in "" "_"; do
6081 # Write the raw and C identifiers.
6082 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6084 # Check to see that the pipe works correctly.
6088 cat > conftest.
$ac_ext <<EOF
6093 void nm_test_func(){}
6097 int main(){nm_test_var='a';nm_test_func();return(0);}
6100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6101 (eval $ac_compile) 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; then
6105 # Now try to grab the symbols.
6107 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6108 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && test -s "$nlist"; then
6112 # Try sorting and uniquifying the output.
6113 if sort "$nlist" |
uniq > "$nlist"T
; then
6114 mv -f "$nlist"T
"$nlist"
6119 # Make sure that we snagged all the symbols we need.
6120 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6121 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6122 cat <<EOF > conftest.$ac_ext
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6131 cat <<EOF >> conftest.$ac_ext
6132 #if defined (__STDC__) && __STDC__
6133 # define lt_ptr_t void *
6135 # define lt_ptr_t char *
6139 /* The mapping between symbol names and symbols. */
6144 lt_preloaded_symbols[] =
6147 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6148 cat <<\EOF
>> conftest.
$ac_ext
6156 # Now try linking the two files.
6157 mv conftest.
$ac_objext conftstm.
$ac_objext
6158 lt_save_LIBS
="$LIBS"
6159 lt_save_CFLAGS
="$CFLAGS"
6160 LIBS
="conftstm.$ac_objext"
6161 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163 (eval $ac_link) 2>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6169 LIBS
="$lt_save_LIBS"
6170 CFLAGS
="$lt_save_CFLAGS"
6172 echo "cannot find nm_test_func in $nlist" >&5
6175 echo "cannot find nm_test_var in $nlist" >&5
6178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6181 echo "$progname: failed program was:" >&5
6182 cat conftest.
$ac_ext >&5
6184 rm -f conftest
* conftst
*
6186 # Do not use the global_symbol_pipe unless it works.
6187 if test "$pipe_works" = yes; then
6190 lt_cv_sys_global_symbol_pipe
=
6196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6197 lt_cv_sys_global_symbol_to_cdecl
=
6199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6200 { echo "$as_me:$LINENO: result: failed" >&5
6201 echo "${ECHO_T}failed" >&6; }
6203 { echo "$as_me:$LINENO: result: ok" >&5
6204 echo "${ECHO_T}ok" >&6; }
6207 { echo "$as_me:$LINENO: checking for objdir" >&5
6208 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6209 if test "${lt_cv_objdir+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 rm -f .libs
2>/dev
/null
6213 mkdir .libs
2>/dev
/null
6214 if test -d .libs
; then
6217 # MS-DOS does not allow filenames that begin with a dot.
6220 rmdir .libs
2>/dev
/null
6222 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6223 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6224 objdir
=$lt_cv_objdir
6232 # AIX sometimes has problems with the GCC collect2 program. For some
6233 # reason, if we set the COLLECT_NAMES environment variable, the problems
6234 # vanish in a puff of smoke.
6235 if test "X${COLLECT_NAMES+set}" != Xset
; then
6237 export COLLECT_NAMES
6242 # Sed substitution that helps us do robust quoting. It backslashifies
6243 # metacharacters that are still active within double-quoted strings.
6244 Xsed
='sed -e s/^X//'
6245 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6247 # Same as above, but do not quote variable references.
6248 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6250 # Sed substitution to delay expansion of an escaped shell variable in a
6251 # double_quote_subst'ed string.
6252 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6254 # Sed substitution to avoid accidental globbing in evaled expressions
6255 no_glob_subst
='s/\*/\\\*/g'
6261 default_ofile
=libtool
6262 can_build_shared
=yes
6264 # All known linkers require a `.a' archive for static linking (except M$VC,
6265 # which needs '.lib').
6267 ltmain
="$ac_aux_dir/ltmain.sh"
6268 ofile
="$default_ofile"
6269 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6273 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_AR+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 if test -n "$AR"; then
6280 ac_cv_prog_AR
="$AR" # Let the user override the test.
6282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir
=.
6287 for ac_exec_ext
in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 if test -n "$AR"; then
6301 { echo "$as_me:$LINENO: result: $AR" >&5
6302 echo "${ECHO_T}$AR" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6310 if test -z "$ac_cv_prog_AR"; then
6312 # Extract the first word of "ar", so it can be a program name with args.
6313 set dummy
ar; ac_word
=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 if test -n "$ac_ct_AR"; then
6320 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir
=.
6327 for ac_exec_ext
in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_ac_ct_AR
="ar"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6340 if test -n "$ac_ct_AR"; then
6341 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6342 echo "${ECHO_T}$ac_ct_AR" >&6; }
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6348 if test "x$ac_ct_AR" = x
; then
6351 case $cross_compiling:$ac_tool_warned in
6353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6354 whose name does not start with the host triplet. If you think this
6355 configuration is useful to you, please write to autoconf@gnu.org." >&5
6356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6357 whose name does not start with the host triplet. If you think this
6358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6359 ac_tool_warned
=yes ;;
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6369 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_prog_RANLIB+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 if test -n "$RANLIB"; then
6376 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir
=.
6383 for ac_exec_ext
in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 RANLIB
=$ac_cv_prog_RANLIB
6396 if test -n "$RANLIB"; then
6397 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6398 echo "${ECHO_T}$RANLIB" >&6; }
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6406 if test -z "$ac_cv_prog_RANLIB"; then
6407 ac_ct_RANLIB
=$RANLIB
6408 # Extract the first word of "ranlib", so it can be a program name with args.
6409 set dummy ranlib
; ac_word
=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 if test -n "$ac_ct_RANLIB"; then
6416 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir
=.
6423 for ac_exec_ext
in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6436 if test -n "$ac_ct_RANLIB"; then
6437 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6438 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6440 { echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6; }
6444 if test "x$ac_ct_RANLIB" = x
; then
6447 case $cross_compiling:$ac_tool_warned in
6449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6450 whose name does not start with the host triplet. If you think this
6451 configuration is useful to you, please write to autoconf@gnu.org." >&5
6452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6453 whose name does not start with the host triplet. If you think this
6454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6455 ac_tool_warned
=yes ;;
6457 RANLIB
=$ac_ct_RANLIB
6460 RANLIB
="$ac_cv_prog_RANLIB"
6463 if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6465 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6468 if test "${ac_cv_prog_STRIP+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 if test -n "$STRIP"; then
6472 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir
=.
6479 for ac_exec_ext
in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 STRIP
=$ac_cv_prog_STRIP
6492 if test -n "$STRIP"; then
6493 { echo "$as_me:$LINENO: result: $STRIP" >&5
6494 echo "${ECHO_T}$STRIP" >&6; }
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6502 if test -z "$ac_cv_prog_STRIP"; then
6504 # Extract the first word of "strip", so it can be a program name with args.
6505 set dummy strip
; ac_word
=$2
6506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 if test -n "$ac_ct_STRIP"; then
6512 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir
=.
6519 for ac_exec_ext
in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_ac_ct_STRIP
="strip"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6532 if test -n "$ac_ct_STRIP"; then
6533 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6534 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6536 { echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6; }
6540 if test "x$ac_ct_STRIP" = x
; then
6543 case $cross_compiling:$ac_tool_warned in
6545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6546 whose name does not start with the host triplet. If you think this
6547 configuration is useful to you, please write to autoconf@gnu.org." >&5
6548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6549 whose name does not start with the host triplet. If you think this
6550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6551 ac_tool_warned
=yes ;;
6556 STRIP
="$ac_cv_prog_STRIP"
6561 old_CFLAGS
="$CFLAGS"
6563 # Set sane defaults for various variables
6564 test -z "$AR" && AR
=ar
6565 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6566 test -z "$AS" && AS
=as
6567 test -z "$CC" && CC
=cc
6568 test -z "$LTCC" && LTCC
=$CC
6569 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6570 test -z "$LD" && LD
=ld
6571 test -z "$LN_S" && LN_S
="ln -s"
6572 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6573 test -z "$NM" && NM
=nm
6574 test -z "$SED" && SED
=sed
6575 test -z "$OBJDUMP" && OBJDUMP
=objdump
6576 test -z "$RANLIB" && RANLIB
=:
6577 test -z "$STRIP" && STRIP
=:
6578 test -z "$ac_objext" && ac_objext
=o
6580 # Determine commands to create old-style static archives.
6581 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6582 old_postinstall_cmds
='chmod 644 $oldlib'
6583 old_postuninstall_cmds
=
6585 if test -n "$RANLIB"; then
6588 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6591 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6594 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6597 # Only perform the check for file, if the check method requires it
6598 case $deplibs_check_method in
6600 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6601 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6602 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6603 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6611 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6612 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6613 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6614 for ac_dir
in $ac_dummy; do
6616 test -z "$ac_dir" && ac_dir
=.
6617 if test -f $ac_dir/${ac_tool_prefix}file; then
6618 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6619 if test -n "$file_magic_test_file"; then
6620 case $deplibs_check_method in
6622 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6623 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6624 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6625 $EGREP "$file_magic_regex" > /dev
/null
; then
6630 *** Warning: the command libtool uses to detect shared libraries,
6631 *** $file_magic_cmd, produces output that libtool cannot recognize.
6632 *** The result is that libtool may fail to recognize shared libraries
6633 *** as such. This will affect the creation of libtool libraries that
6634 *** depend on shared libraries, but programs linked with such libtool
6635 *** libraries will work regardless of this problem. Nevertheless, you
6636 *** may want to report the problem to your system manager and/or to
6637 *** bug-libtool@gnu.org
6647 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6652 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6653 if test -n "$MAGIC_CMD"; then
6654 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6655 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6661 if test -z "$lt_cv_path_MAGIC_CMD"; then
6662 if test -n "$ac_tool_prefix"; then
6663 { echo "$as_me:$LINENO: checking for file" >&5
6664 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6665 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6673 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6674 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6675 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6676 for ac_dir
in $ac_dummy; do
6678 test -z "$ac_dir" && ac_dir
=.
6679 if test -f $ac_dir/file; then
6680 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6681 if test -n "$file_magic_test_file"; then
6682 case $deplibs_check_method in
6684 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6685 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6686 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6687 $EGREP "$file_magic_regex" > /dev
/null
; then
6692 *** Warning: the command libtool uses to detect shared libraries,
6693 *** $file_magic_cmd, produces output that libtool cannot recognize.
6694 *** The result is that libtool may fail to recognize shared libraries
6695 *** as such. This will affect the creation of libtool libraries that
6696 *** depend on shared libraries, but programs linked with such libtool
6697 *** libraries will work regardless of this problem. Nevertheless, you
6698 *** may want to report the problem to your system manager and/or to
6699 *** bug-libtool@gnu.org
6709 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6714 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6715 if test -n "$MAGIC_CMD"; then
6716 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6717 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6719 { echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6; }
6735 # Check whether --enable-libtool-lock was given.
6736 if test "${enable_libtool_lock+set}" = set; then
6737 enableval
=$enable_libtool_lock;
6740 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6743 # Check whether --with-pic was given.
6744 if test "${with_pic+set}" = set; then
6745 withval
=$with_pic; pic_mode
="$withval"
6750 test -z "$pic_mode" && pic_mode
=default
6752 # Use C for the default configuration in the libtool script
6756 ac_cpp
='$CPP $CPPFLAGS'
6757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6762 # Source file extension for C test sources.
6765 # Object file extension for compiled C test sources.
6769 # Code to be used in simple compile tests
6770 lt_simple_compile_test_code
="int some_variable = 0;\n"
6772 # Code to be used in simple link tests
6773 lt_simple_link_test_code
='int main(){return(0);}\n'
6776 # If no C compiler was specified, use CC.
6779 # Allow CC to be a program name with arguments.
6784 # Check for any special shared library compilation flags.
6787 if test "$GCC" = no
; then
6790 lt_prog_cc_shlib
='-belf'
6794 if test -n "$lt_prog_cc_shlib"; then
6795 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6796 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6797 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6799 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6800 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6801 lt_cv_prog_cc_can_build_shared
=no
6807 # Check to make sure the static flag actually works.
6809 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6810 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6811 if test "${lt_prog_compiler_static_works+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 lt_prog_compiler_static_works
=no
6815 save_LDFLAGS
="$LDFLAGS"
6816 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6817 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6818 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6819 # The compiler can only warn and ignore the option if not recognized
6820 # So say no if there are warnings
6821 if test -s conftest.err
; then
6822 # Append any errors to the config.log.
6823 cat conftest.err
1>&5
6825 lt_prog_compiler_static_works
=yes
6829 LDFLAGS
="$save_LDFLAGS"
6832 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6833 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6835 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6838 lt_prog_compiler_static
=
6844 ## There is no encapsulation within the following macros, do not change
6845 ## the running order or otherwise move them around unless you know exactly
6846 ## what you are doing...
6848 lt_prog_compiler_no_builtin_flag
=
6850 if test "$GCC" = yes; then
6851 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6854 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6855 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6856 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 lt_cv_prog_compiler_rtti_exceptions
=no
6860 ac_outfile
=conftest.
$ac_objext
6861 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6862 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6863 # Insert the option either (1) after the last *FLAGS variable, or
6864 # (2) before a word containing "conftest.", or (3) at the end.
6865 # Note that $ac_compile itself does not contain backslashes and begins
6866 # with a dollar sign (not a hyphen), so the echo should work correctly.
6867 # The option is referenced via a variable to avoid confusing sed.
6868 lt_compile
=`echo "$ac_compile" | $SED \
6869 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6871 -e 's:$: $lt_compiler_flag:'`
6872 (eval echo "\"\$as_me:6872: $lt_compile\"" >&5)
6873 (eval "$lt_compile" 2>conftest.err
)
6875 cat conftest.err
>&5
6876 echo "$as_me:6876: \$? = $ac_status" >&5
6877 if (exit $ac_status) && test -s "$ac_outfile"; then
6878 # The compiler can only warn and ignore the option if not recognized
6879 # So say no if there are warnings
6880 if test ! -s conftest.err
; then
6881 lt_cv_prog_compiler_rtti_exceptions
=yes
6887 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6888 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6890 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6891 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6898 lt_prog_compiler_wl
=
6899 lt_prog_compiler_pic
=
6900 lt_prog_compiler_static
=
6902 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6903 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6905 if test "$GCC" = yes; then
6906 lt_prog_compiler_wl
='-Wl,'
6907 lt_prog_compiler_static
='-static'
6911 # All AIX code is PIC.
6912 if test "$host_cpu" = ia64
; then
6913 # AIX 5 now supports IA64 processor
6914 lt_prog_compiler_static
='-Bstatic'
6919 # FIXME: we need at least 68020 code to build shared libraries, but
6920 # adding the `-m68020' flag to GCC prevents building anything better,
6922 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6925 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6926 # PIC is the default for these OSes.
6929 mingw
* | pw32
* | os2
*)
6930 # This hack is so that the source file can tell whether it is being
6931 # built for inclusion in a dll (and should export symbols for example).
6932 lt_prog_compiler_pic
='-DDLL_EXPORT'
6935 darwin
* | rhapsody
*)
6936 # PIC is the default on this platform
6937 # Common symbols not allowed in MH_DYLIB files
6938 lt_prog_compiler_pic
='-fno-common'
6942 # Just because we use GCC doesn't mean we suddenly get shared libraries
6943 # on systems that don't support them.
6944 lt_prog_compiler_can_build_shared
=no
6949 if test -d /usr
/nec
; then
6950 lt_prog_compiler_pic
=-Kconform_pic
6955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6962 lt_prog_compiler_pic
='-fPIC'
6968 lt_prog_compiler_pic
='-fPIC'
6972 # PORTME Check for flag to pass linker flags through the system compiler.
6975 lt_prog_compiler_wl
='-Wl,'
6976 if test "$host_cpu" = ia64
; then
6977 # AIX 5 now supports IA64 processor
6978 lt_prog_compiler_static
='-Bstatic'
6980 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6984 mingw
* | pw32
* | os2
*)
6985 # This hack is so that the source file can tell whether it is being
6986 # built for inclusion in a dll (and should export symbols for example).
6987 lt_prog_compiler_pic
='-DDLL_EXPORT'
6990 hpux9
* | hpux10
* | hpux11
*)
6991 lt_prog_compiler_wl
='-Wl,'
6992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6999 lt_prog_compiler_pic
='+Z'
7002 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7003 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7006 irix5
* | irix6
* | nonstopux
*)
7007 lt_prog_compiler_wl
='-Wl,'
7008 # PIC (with -KPIC) is the default.
7009 lt_prog_compiler_static
='-non_shared'
7013 lt_prog_compiler_pic
='-KPIC'
7014 lt_prog_compiler_static
='-Bstatic'
7020 lt_prog_compiler_wl
='-Wl,'
7021 lt_prog_compiler_pic
='-KPIC'
7022 lt_prog_compiler_static
='-static'
7025 lt_prog_compiler_wl
='-Wl,'
7026 # All Alpha code is PIC.
7027 lt_prog_compiler_static
='-non_shared'
7032 osf3
* | osf4
* | osf5
*)
7033 lt_prog_compiler_wl
='-Wl,'
7034 # All OSF/1 code is PIC.
7035 lt_prog_compiler_static
='-non_shared'
7039 lt_prog_compiler_pic
='-Kpic'
7040 lt_prog_compiler_static
='-dn'
7044 lt_prog_compiler_wl
='-Wl,'
7045 lt_prog_compiler_pic
='-KPIC'
7046 lt_prog_compiler_static
='-Bstatic'
7050 lt_prog_compiler_wl
='-Qoption ld '
7051 lt_prog_compiler_pic
='-PIC'
7052 lt_prog_compiler_static
='-Bstatic'
7055 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
7056 lt_prog_compiler_wl
='-Wl,'
7057 lt_prog_compiler_pic
='-KPIC'
7058 lt_prog_compiler_static
='-Bstatic'
7062 if test -d /usr
/nec
;then
7063 lt_prog_compiler_pic
='-Kconform_pic'
7064 lt_prog_compiler_static
='-Bstatic'
7069 lt_prog_compiler_pic
='-pic'
7070 lt_prog_compiler_static
='-Bstatic'
7074 lt_prog_compiler_can_build_shared
=no
7079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7080 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7083 # Check to make sure the PIC flag actually works.
7085 if test -n "$lt_prog_compiler_pic"; then
7087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7089 if test "${lt_prog_compiler_pic_works+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 lt_prog_compiler_pic_works
=no
7093 ac_outfile
=conftest.
$ac_objext
7094 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7095 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7096 # Insert the option either (1) after the last *FLAGS variable, or
7097 # (2) before a word containing "conftest.", or (3) at the end.
7098 # Note that $ac_compile itself does not contain backslashes and begins
7099 # with a dollar sign (not a hyphen), so the echo should work correctly.
7100 # The option is referenced via a variable to avoid confusing sed.
7101 lt_compile
=`echo "$ac_compile" | $SED \
7102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7104 -e 's:$: $lt_compiler_flag:'`
7105 (eval echo "\"\$as_me:7105: $lt_compile\"" >&5)
7106 (eval "$lt_compile" 2>conftest.err
)
7108 cat conftest.err
>&5
7109 echo "$as_me:7109: \$? = $ac_status" >&5
7110 if (exit $ac_status) && test -s "$ac_outfile"; then
7111 # The compiler can only warn and ignore the option if not recognized
7112 # So say no if there are warnings
7113 if test ! -s conftest.err
; then
7114 lt_prog_compiler_pic_works
=yes
7120 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7121 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7123 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7124 case $lt_prog_compiler_pic in
7126 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7129 lt_prog_compiler_pic
=
7130 lt_prog_compiler_can_build_shared
=no
7135 # For platforms which do not support PIC, -DPIC is meaningless:
7137 lt_prog_compiler_pic
=
7140 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7144 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7145 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7146 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 lt_cv_prog_compiler_c_o
=no
7150 $rm -r conftest
2>/dev
/null
7154 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7156 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7157 # that will create temporary files in the current directory regardless of
7158 # the output directory. Thus, making CWD read-only will cause this test
7159 # to fail, enabling locking or at least warning the user not to do parallel
7163 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7164 # Insert the option either (1) after the last *FLAGS variable, or
7165 # (2) before a word containing "conftest.", or (3) at the end.
7166 # Note that $ac_compile itself does not contain backslashes and begins
7167 # with a dollar sign (not a hyphen), so the echo should work correctly.
7168 lt_compile
=`echo "$ac_compile" | $SED \
7169 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7171 -e 's:$: $lt_compiler_flag:'`
7172 (eval echo "\"\$as_me:7172: $lt_compile\"" >&5)
7173 (eval "$lt_compile" 2>out
/conftest.err
)
7175 cat out
/conftest.err
>&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7179 # The compiler can only warn and ignore the option if not recognized
7180 # So say no if there are warnings
7181 if test ! -s out
/conftest.err
; then
7182 lt_cv_prog_compiler_c_o
=yes
7187 # SGI C++ compiler will create directory out/ii_files/ for
7188 # template instantiation
7189 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7190 $rm out
/* && rmdir out
7196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7200 hard_links
="nottested"
7201 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7202 # do not overwrite the value of need_locks provided by the user
7203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7207 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7209 ln conftest.a conftest.b
2>&5 || hard_links
=no
7210 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7211 { echo "$as_me:$LINENO: result: $hard_links" >&5
7212 echo "${ECHO_T}$hard_links" >&6; }
7213 if test "$hard_links" = no
; then
7214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7222 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7226 allow_undefined_flag
=
7227 enable_shared_with_static_runtimes
=no
7229 archive_expsym_cmds
=
7230 old_archive_From_new_cmds
=
7231 old_archive_from_expsyms_cmds
=
7232 export_dynamic_flag_spec
=
7233 whole_archive_flag_spec
=
7234 thread_safe_flag_spec
=
7235 hardcode_libdir_flag_spec
=
7236 hardcode_libdir_flag_spec_ld
=
7237 hardcode_libdir_separator
=
7240 hardcode_shlibpath_var
=unsupported
7241 link_all_deplibs
=unknown
7242 hardcode_automatic
=no
7245 always_export_symbols
=no
7246 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7247 # include_expsyms should be a list of space-separated symbols to be *always*
7248 # included in the symbol list
7250 # exclude_expsyms can be an extended regexp of symbols to exclude
7251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7253 # as well as any symbol that contains `d'.
7254 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7256 # platforms (ab)use it in PIC code, but their linkers get confused if
7257 # the symbol is explicitly referenced. Since portable code cannot
7258 # rely on this symbol name, it's probably fine to never include it in
7259 # preloaded symbol tables.
7260 extract_expsyms_cmds
=
7263 cygwin
* | mingw
* | pw32
*)
7264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7265 # When not using gcc, we currently assume that we are using
7266 # Microsoft Visual C++.
7267 if test "$GCC" != yes; then
7277 if test "$with_gnu_ld" = yes; then
7278 # If archive_cmds runs LD, not CC, wlarc should be empty
7281 # See if GNU ld supports shared libraries.
7283 aix3
* | aix4
* | aix5
*)
7284 # On AIX/PPC, the GNU linker is very broken
7285 if test "$host_cpu" != ia64
; then
7289 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7290 *** to be unable to reliably create shared libraries on AIX.
7291 *** Therefore, libtool is disabling shared libraries support. If you
7292 *** really care for shared libraries, you may want to modify your PATH
7293 *** so that a non-GNU linker is found, and then restart.
7300 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)'
7301 hardcode_libdir_flag_spec
='-L$libdir'
7302 hardcode_minus_L
=yes
7304 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7305 # that the semantics of dynamic libraries on AmigaOS, at least up
7306 # to version 4, is to share data among multiple programs linked
7307 # with the same dynamic library. Since this doesn't match the
7308 # behavior of shared libraries on other platforms, we can't use
7314 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7315 allow_undefined_flag
=unsupported
7316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7317 # support --undefined. This deserves some investigation. FIXME
7318 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7324 cygwin
* | mingw
* | pw32
*)
7325 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7326 # as there is no search path for DLLs.
7327 hardcode_libdir_flag_spec
='-L$libdir'
7328 allow_undefined_flag
=unsupported
7329 always_export_symbols
=no
7330 enable_shared_with_static_runtimes
=yes
7331 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7333 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7334 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7335 # If the export-symbols file already is a .def file (1st line
7336 # is EXPORTS), use it as is; otherwise, prepend...
7337 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7338 cp $export_symbols $output_objdir/$soname.def;
7340 echo EXPORTS > $output_objdir/$soname.def;
7341 cat $export_symbols >> $output_objdir/$soname.def;
7343 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7350 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7351 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7354 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7355 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7360 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7365 *** create shared libraries on Solaris systems. Therefore, libtool
7366 *** is disabling shared libraries support. We urge you to upgrade GNU
7367 *** binutils to release 2.9.1 or newer. Another option is to modify
7368 *** your PATH or compiler configuration so that the native linker is
7369 *** used, and then restart.
7372 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7373 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7374 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7381 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7384 hardcode_shlibpath_var
=no
7388 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
7389 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7390 archive_cmds
="$tmp_archive_cmds"
7391 supports_anon_versioning
=no
7392 case `$LD -v 2>/dev/null` in
7393 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7394 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7395 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7396 *\
2.11.
*) ;; # other 2.11 versions
7397 *) supports_anon_versioning
=yes ;;
7399 if test $supports_anon_versioning = yes; then
7400 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7402 $echo "local: *; };" >> $output_objdir/$libname.ver~
7403 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7405 archive_expsym_cmds
="$tmp_archive_cmds"
7413 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7414 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7415 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7422 if test "$ld_shlibs" = yes; then
7423 runpath_var
=LD_RUN_PATH
7424 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7425 export_dynamic_flag_spec
='${wl}--export-dynamic'
7426 # ancient GNU ld didn't support --whole-archive et. al.
7427 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7428 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7430 whole_archive_flag_spec
=
7434 # PORTME fill in a description of your system's linker (not GNU ld)
7437 allow_undefined_flag
=unsupported
7438 always_export_symbols
=yes
7439 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'
7440 # Note: this linker hardcodes the directories in LIBPATH if there
7441 # are no directories specified by -L.
7442 hardcode_minus_L
=yes
7443 if test "$GCC" = yes && test -z "$link_static_flag"; then
7444 # Neither direct hardcoding nor static linking is supported with a
7446 hardcode_direct
=unsupported
7451 if test "$host_cpu" = ia64
; then
7452 # On IA64, the linker does run time linking by default, so we don't
7453 # have to do anything special.
7454 aix_use_runtimelinking
=no
7455 exp_sym_flag
='-Bexport'
7458 # If we're using GNU nm, then we don't want the "-C" option.
7459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7460 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7461 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'
7463 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'
7465 aix_use_runtimelinking
=no
7467 # Test if we are trying to use run time linking or normal
7468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7469 # need to do runtime linking.
7470 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7471 for ld_flag
in $LDFLAGS; do
7472 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7473 aix_use_runtimelinking
=yes
7479 exp_sym_flag
='-bexport'
7480 no_entry_flag
='-bnoentry'
7483 # When large executables or shared objects are built, AIX ld can
7484 # have problems creating the table of contents. If linking a library
7485 # or program results in "error TOC overflow" add -mminimal-toc to
7486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7491 hardcode_libdir_separator
=':'
7492 link_all_deplibs
=yes
7494 if test "$GCC" = yes; then
7495 case $host_os in aix4.012|aix4.012.
*)
7496 # We only want to do this on AIX 4.2 and lower, the check
7497 # below for broken collect2 doesn't work under 4.3+
7498 collect2name
=`${CC} -print-prog-name=collect2`
7499 if test -f "$collect2name" && \
7500 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7502 # We have reworked collect2
7505 # We have old collect2
7506 hardcode_direct
=unsupported
7507 # It fails to find uninstalled libraries when the uninstalled
7508 # path is not listed in the libpath. Setting hardcode_minus_L
7509 # to unsupported forces relinking
7510 hardcode_minus_L
=yes
7511 hardcode_libdir_flag_spec
='-L$libdir'
7512 hardcode_libdir_separator
=
7515 shared_flag
='-shared'
7518 if test "$host_cpu" = ia64
; then
7519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7520 # chokes on -Wl,-G. The following line is correct:
7523 if test "$aix_use_runtimelinking" = yes; then
7524 shared_flag
='${wl}-G'
7526 shared_flag
='${wl}-bM:SRE'
7531 # It seems that -bexpall does not export symbols beginning with
7532 # underscore (_), so it is better to generate a list of symbols to export.
7533 always_export_symbols
=yes
7534 if test "$aix_use_runtimelinking" = yes; then
7535 # Warning - without using the other runtime loading flags (-brtl),
7536 # -berok will link without error, but may produce a broken library.
7537 allow_undefined_flag
='-berok'
7538 # Determine the default libpath from the value encoded in an empty executable.
7539 cat >conftest.
$ac_ext <<_ACEOF
7542 cat confdefs.h
>>conftest.
$ac_ext
7543 cat >>conftest.
$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7554 rm -f conftest.
$ac_objext conftest
$ac_exeext
7555 if { (ac_try
="$ac_link"
7557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_link") 2>conftest.er1
7563 grep -v '^ *+' conftest.er1 >conftest.err
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7569 { (case "(($ac_try" in
7570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7571 *) ac_try_echo
=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_try") 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try
='test -s conftest$ac_exeext'
7579 { (case "(($ac_try" in
7580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_try") 2>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7589 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7591 # Check for a 64-bit object if we didn't find anything.
7592 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7601 rm -f core conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7605 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7606 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7608 if test "$host_cpu" = ia64
; then
7609 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7610 allow_undefined_flag
="-z nodefs"
7611 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7613 # Determine the default libpath from the value encoded in an empty executable.
7614 cat >conftest.$ac_ext <<_ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_link") 2>conftest.er1
7638 grep -v '^
*+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
7644 { (case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_try") 2>&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest
$ac_exeext'
7654 { (case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_try") 2>&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
7666 # Check for a 64-bit object if we didn't
find anything.
7667 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.
$ac_ext >&5
7676 rm -f core conftest.err conftest.
$ac_objext \
7677 conftest
$ac_exeext conftest.
$ac_ext
7678 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7680 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7681 # Warning - without using the other run time loading flags,
7682 # -berok will link without error, but may produce a broken library.
7683 no_undefined_flag
=' ${wl}-bernotok'
7684 allow_undefined_flag
=' ${wl}-berok'
7685 # -bexpall does not export symbols beginning with underscore (_)
7686 always_export_symbols
=yes
7687 # Exported symbols can be pulled into shared objects from archives
7688 whole_archive_flag_spec
=' '
7689 archive_cmds_need_lc
=yes
7690 # This is similar to how AIX traditionally builds it's shared libraries.
7691 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7697 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)'
7698 hardcode_libdir_flag_spec
='-L$libdir'
7699 hardcode_minus_L
=yes
7700 # see comment about different semantics on the GNU ld section
7705 export_dynamic_flag_spec
=-rdynamic
7708 cygwin
* | mingw
* | pw32
*)
7709 # When not using gcc, we currently assume that we are using
7710 # Microsoft Visual C++.
7711 # hardcode_libdir_flag_spec is actually meaningless, as there is
7712 # no search path for DLLs.
7713 hardcode_libdir_flag_spec
=' '
7714 allow_undefined_flag
=unsupported
7715 # Tell ltmain to make .lib files, not .a files.
7717 # Tell ltmain to make .dll files, not .so files.
7719 # FIXME: Setting linknames here is a bad hack.
7720 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7721 # The linker will automatically build a .lib file if we build a DLL.
7722 old_archive_From_new_cmds
='true'
7723 # FIXME: Should let the user specify the lib program.
7724 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7725 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7726 enable_shared_with_static_runtimes
=yes
7729 darwin
* | rhapsody
*)
7730 if test "$GXX" = yes ; then
7731 archive_cmds_need_lc
=no
7733 rhapsody
* | darwin1.
[012])
7734 allow_undefined_flag
='-undefined suppress'
7737 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7738 allow_undefined_flag
='-flat_namespace -undefined suppress'
7740 case ${MACOSX_DEPLOYMENT_TARGET} in
7742 allow_undefined_flag
='-flat_namespace -undefined suppress'
7745 allow_undefined_flag
='-undefined dynamic_lookup'
7751 lt_int_apple_cc_single_mod
=no
7752 output_verbose_link_cmd
='echo'
7753 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
7754 lt_int_apple_cc_single_mod
=yes
7756 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7757 archive_cmds
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7759 archive_cmds
='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7761 module_cmds
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7762 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7763 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7764 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7766 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7768 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}'
7770 hardcode_automatic
=yes
7771 hardcode_shlibpath_var
=unsupported
7772 whole_archive_flag_spec
='-all_load $convenience'
7773 link_all_deplibs
=yes
7780 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7781 hardcode_libdir_flag_spec
='-L$libdir'
7782 hardcode_shlibpath_var
=no
7789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7790 # support. Future versions do this automatically, but an explicit c++rt0.o
7791 # does not break anything, and helps significantly (at the cost of a little
7794 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7795 hardcode_libdir_flag_spec
='-R$libdir'
7797 hardcode_shlibpath_var
=no
7800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7802 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7804 hardcode_minus_L
=yes
7805 hardcode_shlibpath_var
=no
7808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7809 freebsd
* | kfreebsd
*-gnu)
7810 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7811 hardcode_libdir_flag_spec
='-R$libdir'
7813 hardcode_shlibpath_var
=no
7817 if test "$GCC" = yes; then
7818 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'
7820 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'
7822 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7823 hardcode_libdir_separator
=:
7826 # hardcode_minus_L: Not really in the search PATH,
7827 # but as the default location of the library.
7828 hardcode_minus_L
=yes
7829 export_dynamic_flag_spec
='${wl}-E'
7833 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7836 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7839 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7845 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7848 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7852 if test "$with_gnu_ld" = no
; then
7855 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7856 hardcode_libdir_flag_spec_ld
='+b $libdir'
7857 hardcode_libdir_separator
=:
7859 hardcode_shlibpath_var
=no
7862 hardcode_libdir_flag_spec
='-L$libdir'
7864 hardcode_shlibpath_var
=no
7866 # hardcode_minus_L: Not really in the search PATH,
7867 # but as the default location of the library.
7868 hardcode_minus_L
=yes
7871 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7872 hardcode_libdir_separator
=:
7874 export_dynamic_flag_spec
='${wl}-E'
7876 # hardcode_minus_L: Not really in the search PATH,
7877 # but as the default location of the library.
7878 hardcode_minus_L
=yes
7884 irix5
* | irix6
* | nonstopux
*)
7885 if test "$GCC" = yes; then
7886 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'
7888 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'
7889 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7891 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7892 hardcode_libdir_separator
=:
7893 link_all_deplibs
=yes
7897 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7898 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7900 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7902 hardcode_libdir_flag_spec
='-R$libdir'
7904 hardcode_shlibpath_var
=no
7908 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7910 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7911 hardcode_libdir_separator
=:
7912 hardcode_shlibpath_var
=no
7917 hardcode_shlibpath_var
=no
7918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7919 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7920 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7921 export_dynamic_flag_spec
='${wl}-E'
7924 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7925 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7926 hardcode_libdir_flag_spec
='-R$libdir'
7929 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7930 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7937 hardcode_libdir_flag_spec
='-L$libdir'
7938 hardcode_minus_L
=yes
7939 allow_undefined_flag
=unsupported
7940 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'
7941 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7945 if test "$GCC" = yes; then
7946 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7947 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'
7949 allow_undefined_flag
=' -expect_unresolved \*'
7950 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'
7952 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7953 hardcode_libdir_separator
=:
7956 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7957 if test "$GCC" = yes; then
7958 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7959 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'
7960 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7962 allow_undefined_flag
=' -expect_unresolved \*'
7963 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'
7964 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7965 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7967 # Both c and cxx compiler support -rpath directly
7968 hardcode_libdir_flag_spec
='-rpath $libdir'
7970 hardcode_libdir_separator
=:
7974 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7975 hardcode_shlibpath_var
=no
7976 export_dynamic_flag_spec
='${wl}-Bexport'
7977 runpath_var
=LD_RUN_PATH
7978 hardcode_runpath_var
=yes
7982 no_undefined_flag
=' -z text'
7983 if test "$GCC" = yes; then
7984 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7985 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7986 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7988 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7989 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7992 hardcode_libdir_flag_spec
='-R$libdir'
7993 hardcode_shlibpath_var
=no
7995 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7996 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7997 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7999 link_all_deplibs
=yes
8003 if test "x$host_vendor" = xsequent
; then
8004 # Use $CC to link under sequent, because it throws in some extra .o
8005 # files that make .init and .fini sections work.
8006 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8008 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8010 hardcode_libdir_flag_spec
='-L$libdir'
8012 hardcode_minus_L
=yes
8013 hardcode_shlibpath_var
=no
8017 case $host_vendor in
8019 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_direct
=yes # is this really true???
8023 ## LD is ld it makes a PLAMLIB
8024 ## CC just makes a GrossModule.
8025 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8026 reload_cmds
='$CC -r -o $output$reload_objs'
8030 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8031 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8034 runpath_var
='LD_RUN_PATH'
8035 hardcode_shlibpath_var
=no
8039 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040 hardcode_shlibpath_var
=no
8041 export_dynamic_flag_spec
='-Bexport'
8045 if test -d /usr
/nec
; then
8046 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_shlibpath_var
=no
8048 runpath_var
=LD_RUN_PATH
8049 hardcode_runpath_var
=yes
8055 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8058 hardcode_shlibpath_var
=no
8059 hardcode_runpath_var
=yes
8060 runpath_var
=LD_RUN_PATH
8063 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
8064 no_undefined_flag
='${wl}-z ${wl}text'
8065 if test "$GCC" = yes; then
8066 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8070 runpath_var
='LD_RUN_PATH'
8071 hardcode_shlibpath_var
=no
8075 no_undefined_flag
=' -z text'
8076 # $CC -shared without GNU ld will not create a library from C++
8077 # object files and a static libstdc++, better avoid it by now
8078 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8079 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8081 hardcode_libdir_flag_spec
=
8082 hardcode_shlibpath_var
=no
8083 runpath_var
='LD_RUN_PATH'
8087 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8088 hardcode_libdir_flag_spec
='-L$libdir'
8089 hardcode_shlibpath_var
=no
8098 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8099 echo "${ECHO_T}$ld_shlibs" >&6; }
8100 test "$ld_shlibs" = no
&& can_build_shared
=no
8102 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8103 if test "$GCC" = yes; then
8104 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8108 # Do we need to explicitly link libc?
8110 case "x$archive_cmds_need_lc" in
8112 # Assume -lc should be added
8113 archive_cmds_need_lc
=yes
8115 if test "$enable_shared" = yes && test "$GCC" = yes; then
8116 case $archive_cmds in
8118 # FIXME: we may have to deal with multi-command sequences.
8121 # Test whether the compiler implicitly links with -lc since on some
8122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8123 # to ld, don't add -lc before -lgcc.
8124 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8125 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8127 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } 2>conftest.err
; then
8136 libobjs
=conftest.
$ac_objext
8138 wl
=$lt_prog_compiler_wl
8144 lt_save_allow_undefined_flag
=$allow_undefined_flag
8145 allow_undefined_flag
=
8146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8147 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }
8152 archive_cmds_need_lc
=no
8154 archive_cmds_need_lc
=yes
8156 allow_undefined_flag
=$lt_save_allow_undefined_flag
8158 cat conftest.err
1>&5
8161 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8162 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8169 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8172 libname_spec
='lib$name'
8180 shlibpath_overrides_runpath
=unknown
8182 dynamic_linker
="$host_os ld.so"
8183 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8184 if test "$GCC" = yes; then
8185 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8186 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8187 # if the path contains ";" then we assume it to be the separator
8188 # otherwise default to the standard path separator (i.e. ":") - it is
8189 # assumed that no part of a normal pathname contains ";" but that should
8190 # okay in the real world where ";" in dirpaths is itself problematic.
8191 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8193 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8196 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8198 need_lib_prefix
=unknown
8199 hardcode_into_libs
=no
8201 # when you set need_version to no, make sure it does not cause -set_version
8202 # flags to be left without arguments
8203 need_version
=unknown
8208 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8209 shlibpath_var
=LIBPATH
8211 # AIX 3 has no versioning support, so we append a major version to the name.
8212 soname_spec
='${libname}${release}${shared_ext}$major'
8219 hardcode_into_libs
=yes
8220 if test "$host_cpu" = ia64
; then
8221 # AIX 5 supports IA64
8222 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8223 shlibpath_var
=LD_LIBRARY_PATH
8225 # With GCC up to 2.95.x, collect2 would create an import file
8226 # for dependence libraries. The import file would start with
8227 # the line `#! .'. This would cause the generated library to
8228 # depend on `.', always an invalid library. This was fixed in
8229 # development snapshots of GCC prior to 3.0.
8231 aix4 | aix4.
[01] | aix4.
[01].
*)
8232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8234 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8242 # soname into executable. Probably we can add versioning support to
8243 # collect2, so additional links can be useful in future.
8244 if test "$aix_use_runtimelinking" = yes; then
8245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8246 # instead of lib<name>.a to let people know that these are not
8247 # typical AIX shared libraries.
8248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8250 # We preserve .a as extension for shared libraries through AIX4.2
8251 # and later when we are not doing run time linking.
8252 library_names_spec
='${libname}${release}.a $libname.a'
8253 soname_spec
='${libname}${release}${shared_ext}$major'
8255 shlibpath_var
=LIBPATH
8260 library_names_spec
='$libname.ixlibrary $libname.a'
8261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8262 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'
8266 library_names_spec
='${libname}${shared_ext}'
8267 dynamic_linker
="$host_os ld.so"
8268 shlibpath_var
=LIBRARY_PATH
8274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275 soname_spec
='${libname}${release}${shared_ext}$major'
8276 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8277 shlibpath_var
=LD_LIBRARY_PATH
8278 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8279 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8280 # the default ld.so.conf also contains /usr/contrib/lib and
8281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8282 # libtool to hard-code these into programs
8285 cygwin
* | mingw
* | pw32
*)
8286 version_type
=windows
8291 case $GCC,$host_os in
8292 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8293 library_names_spec
='$libname.dll.a'
8294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8295 postinstall_cmds
='base_file=`basename \${file}`~
8296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8297 dldir=$destdir/`dirname \$dlpath`~
8298 test -d \$dldir || mkdir -p \$dldir~
8299 $install_prog $dir/$dlname \$dldir/$dlname'
8300 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8301 dlpath=$dir/\$dldll~
8303 shlibpath_overrides_runpath
=yes
8307 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8308 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8309 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8312 # MinGW DLLs use traditional 'lib' prefix
8313 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8314 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8315 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8316 # It is most probably a Windows format PATH printed by
8317 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8318 # path with ; separators, and with drive letters. We can handle the
8319 # drive letters (cygwin fileutils understands them), so leave them,
8320 # especially as we might pass files found there to a mingw objdump,
8321 # which wouldn't understand a cygwinified path. Ahh.
8322 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8324 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8328 # pw32 DLLs use 'pw' prefix rather than 'lib'
8329 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8335 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8338 dynamic_linker
='Win32 ld.exe'
8339 # FIXME: first we should search . and the directory the executable is in
8343 darwin
* | rhapsody
*)
8344 dynamic_linker
="$host_os dyld"
8348 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8349 soname_spec
='${libname}${release}${major}$shared_ext'
8350 shlibpath_overrides_runpath
=yes
8351 shlibpath_var
=DYLD_LIBRARY_PATH
8352 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
8353 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8354 if test "$GCC" = yes; then
8355 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8357 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8359 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8367 soname_spec
='${libname}${release}${shared_ext}$major'
8368 shlibpath_var
=LD_LIBRARY_PATH
8379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8380 soname_spec
='${libname}${release}${shared_ext}$major'
8381 shlibpath_var
=LD_LIBRARY_PATH
8382 shlibpath_overrides_runpath
=no
8383 hardcode_into_libs
=yes
8384 dynamic_linker
='GNU ld.so'
8388 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8389 version_type
=freebsd-
$objformat
8390 case $version_type in
8392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8397 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8401 shlibpath_var
=LD_LIBRARY_PATH
8404 shlibpath_overrides_runpath
=yes
8406 freebsd3.01
* | freebsdelf3.01
*)
8407 shlibpath_overrides_runpath
=yes
8408 hardcode_into_libs
=yes
8411 shlibpath_overrides_runpath
=no
8412 hardcode_into_libs
=yes
8421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8422 soname_spec
='${libname}${release}${shared_ext}$major'
8423 shlibpath_var
=LD_LIBRARY_PATH
8424 hardcode_into_libs
=yes
8427 hpux9
* | hpux10
* | hpux11
*)
8428 # Give a soname corresponding to the major version so that dld.sl refuses to
8429 # link against other versions.
8436 hardcode_into_libs
=yes
8437 dynamic_linker
="$host_os dld.so"
8438 shlibpath_var
=LD_LIBRARY_PATH
8439 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8441 soname_spec
='${libname}${release}${shared_ext}$major'
8442 if test "X$HPUX_IA64_MODE" = X32
; then
8443 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8445 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8447 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8451 hardcode_into_libs
=yes
8452 dynamic_linker
="$host_os dld.sl"
8453 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8454 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456 soname_spec
='${libname}${release}${shared_ext}$major'
8457 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8458 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8462 dynamic_linker
="$host_os dld.sl"
8463 shlibpath_var
=SHLIB_PATH
8464 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8466 soname_spec
='${libname}${release}${shared_ext}$major'
8469 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8470 postinstall_cmds
='chmod 555 $lib'
8473 irix5
* | irix6
* | nonstopux
*)
8475 nonstopux
*) version_type
=nonstopux
;;
8477 if test "$lt_cv_prog_gnu_ld" = yes; then
8485 soname_spec
='${libname}${release}${shared_ext}$major'
8486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8488 irix5
* | nonstopux
*)
8492 case $LD in # libtool.m4 will add one of these switches to LD
8493 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8494 libsuff
= shlibsuff
= libmagic
=32-bit;;
8495 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8496 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8497 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8498 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8499 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8503 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8504 shlibpath_overrides_runpath
=no
8505 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8506 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8507 hardcode_into_libs
=yes
8510 # No shared lib support for Linux oldld, aout, or coff.
8511 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8515 # This must be Linux ELF.
8520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521 soname_spec
='${libname}${release}${shared_ext}$major'
8522 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8523 shlibpath_var
=LD_LIBRARY_PATH
8524 shlibpath_overrides_runpath
=no
8525 # This implies no fast_install, which is unacceptable.
8526 # Some rework will be needed to allow for fast_install
8527 # before this can be enabled.
8528 hardcode_into_libs
=yes
8530 # We used to test for /lib/ld.so.1 and disable shared libraries on
8531 # powerpc, because MkLinux only supported shared libraries with the
8532 # GNU dynamic linker. Since this was broken with cross compilers,
8533 # most powerpc-linux boxes support dynamic linking these days and
8534 # people can always --disable-shared, the test was removed, and we
8535 # assume the GNU/Linux dynamic linker is in use.
8536 dynamic_linker
='GNU/Linux ld.so'
8543 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8545 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8546 dynamic_linker
='NetBSD (a.out) ld.so'
8548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8549 soname_spec
='${libname}${release}${shared_ext}$major'
8550 dynamic_linker
='NetBSD ld.elf_so'
8552 shlibpath_var
=LD_LIBRARY_PATH
8553 shlibpath_overrides_runpath
=yes
8554 hardcode_into_libs
=yes
8559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 shlibpath_var
=LD_LIBRARY_PATH
8561 shlibpath_overrides_runpath
=yes
8568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8569 soname_spec
='${libname}${release}${shared_ext}$major'
8570 shlibpath_var
=LD_LIBRARY_PATH
8571 shlibpath_overrides_runpath
=yes
8578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8579 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8580 shlibpath_var
=LD_LIBRARY_PATH
8581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8583 openbsd2.
[89] | openbsd2.
[89].
*)
8584 shlibpath_overrides_runpath
=no
8587 shlibpath_overrides_runpath
=yes
8591 shlibpath_overrides_runpath
=yes
8596 libname_spec
='$name'
8599 library_names_spec
='$libname${shared_ext} $libname.a'
8600 dynamic_linker
='OS/2 ld.exe'
8601 shlibpath_var
=LIBPATH
8604 osf3
* | osf4
* | osf5
*)
8608 soname_spec
='${libname}${release}${shared_ext}$major'
8609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610 shlibpath_var
=LD_LIBRARY_PATH
8611 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8612 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8617 soname_spec
='${libname}${release}${shared_ext}$major'
8618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 shlibpath_var
=LD_LIBRARY_PATH
8626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8627 soname_spec
='${libname}${release}${shared_ext}$major'
8628 shlibpath_var
=LD_LIBRARY_PATH
8629 shlibpath_overrides_runpath
=yes
8630 hardcode_into_libs
=yes
8631 # ldd complains unless libraries are executable
8632 postinstall_cmds
='chmod +x $lib'
8637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8638 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8639 shlibpath_var
=LD_LIBRARY_PATH
8640 shlibpath_overrides_runpath
=yes
8641 if test "$with_gnu_ld" = yes; then
8647 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 soname_spec
='${libname}${release}${shared_ext}$major'
8651 shlibpath_var
=LD_LIBRARY_PATH
8652 case $host_vendor in
8654 shlibpath_overrides_runpath
=no
8656 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8657 runpath_var
=LD_RUN_PATH
8665 shlibpath_overrides_runpath
=no
8666 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8672 if test -d /usr
/nec
;then
8674 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8675 soname_spec
='$libname${shared_ext}.$major'
8676 shlibpath_var
=LD_LIBRARY_PATH
8682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683 soname_spec
='${libname}${release}${shared_ext}$major'
8684 shlibpath_var
=LD_LIBRARY_PATH
8691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8692 echo "${ECHO_T}$dynamic_linker" >&6; }
8693 test "$dynamic_linker" = no
&& can_build_shared
=no
8695 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8698 if test -n "$hardcode_libdir_flag_spec" || \
8699 test -n "$runpath_var " || \
8700 test "X$hardcode_automatic"="Xyes" ; then
8702 # We can hardcode non-existant directories.
8703 if test "$hardcode_direct" != no
&&
8704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8705 # have to relink, otherwise we might link with an installed library
8706 # when we should be linking with a yet-to-be-installed one
8707 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8708 test "$hardcode_minus_L" != no
; then
8709 # Linking always hardcodes the temporary library directory.
8710 hardcode_action
=relink
8712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8713 hardcode_action
=immediate
8716 # We cannot hardcode anything, or else we can only hardcode existing
8718 hardcode_action
=unsupported
8720 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8721 echo "${ECHO_T}$hardcode_action" >&6; }
8723 if test "$hardcode_action" = relink
; then
8724 # Fast installation is not supported
8725 enable_fast_install
=no
8726 elif test "$shlibpath_overrides_runpath" = yes ||
8727 test "$enable_shared" = no
; then
8728 # Fast installation is not necessary
8729 enable_fast_install
=needless
8734 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8735 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8736 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8737 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8738 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8739 { echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6; }
8742 # FIXME - insert some real tests, host_os isn't really good enough
8745 if test -n "$STRIP" ; then
8746 striplib
="$STRIP -x"
8747 { echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6; }
8750 { echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6; }
8755 { echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6; }
8761 if test "x$enable_dlopen" != xyes
; then
8762 enable_dlopen
=unknown
8763 enable_dlopen_self
=unknown
8764 enable_dlopen_self_static
=unknown
8771 lt_cv_dlopen
="load_add_on"
8773 lt_cv_dlopen_self
=yes
8777 lt_cv_dlopen
="LoadLibrary"
8782 lt_cv_dlopen
="dlopen"
8787 # if libdl is installed we need to link against it
8788 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_check_lib_save_LIBS
=$LIBS
8795 cat >conftest.
$ac_ext <<_ACEOF
8798 cat confdefs.h
>>conftest.
$ac_ext
8799 cat >>conftest.
$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
8817 rm -f conftest.
$ac_objext conftest
$ac_exeext
8818 if { (ac_try
="$ac_link"
8820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832 { (case "(($ac_try" in
8833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8834 *) ac_try_echo
=$ac_try;;
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_try") 2>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; } &&
8841 { ac_try
='test -s conftest$ac_exeext'
8842 { (case "(($ac_try" in
8843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_try") 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_lib_dl_dlopen=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_cv_lib_dl_dlopen=no
8859 rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 LIBS=$ac_check_lib_save_LIBS
8863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8865 if test $ac_cv_lib_dl_dlopen = yes; then
8866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8871 lt_cv_dlopen_self=yes
8878 { echo "$as_me:$LINENO: checking for shl_load" >&5
8879 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8880 if test "${ac_cv_func_shl_load+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8891 #define shl_load innocuous_shl_load
8893 /* System header to define __stub macros and hopefully few prototypes,
8894 which can conflict with char shl_load (); below.
8895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8896 <limits.h> exists even on freestanding compilers. */
8899 # include <limits.h>
8901 # include <assert.h>
8906 /* Override any GCC internal prototype to avoid an error.
8907 Use char because int might match the return type of a GCC
8908 builtin and then its argument prototype would still apply. */
8913 /* The GNU C library defines this for functions which it implements
8914 to always fail with ENOSYS. Some functions are actually named
8915 something starting with __ and the normal name is an alias. */
8916 #if defined __stub_shl_load || defined __stub___shl_load
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8932 *) ac_try_echo
=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1
>conftest.err
8939 cat conftest.err
>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943 { (case "(($ac_try" in
8944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8955 *) ac_try_echo
=$ac_try;;
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_func_shl_load
=yes
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.
$ac_ext >&5
8967 ac_cv_func_shl_load
=no
8970 rm -f core conftest.err conftest.
$ac_objext \
8971 conftest
$ac_exeext conftest.
$ac_ext
8973 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8974 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8975 if test $ac_cv_func_shl_load = yes; then
8976 lt_cv_dlopen
="shl_load"
8978 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8979 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8980 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 ac_check_lib_save_LIBS
=$LIBS
8985 cat >conftest.
$ac_ext <<_ACEOF
8988 cat confdefs.h
>>conftest.
$ac_ext
8989 cat >>conftest.
$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8992 /* Override any GCC internal prototype to avoid an error.
8993 Use char because int might match the return type of a GCC
8994 builtin and then its argument prototype would still apply. */
9007 rm -f conftest.
$ac_objext conftest
$ac_exeext
9008 if { (ac_try
="$ac_link"
9010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014 (eval "$ac_link") 2>conftest.er1
9016 grep -v '^ *+' conftest.er1 >conftest.err
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9022 { (case "(($ac_try" in
9023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9024 *) ac_try_echo
=$ac_try;;
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_try") 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try
='test -s conftest$ac_exeext'
9032 { (case "(($ac_try" in
9033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_try") 2>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_lib_dld_shl_load=yes
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 ac_cv_lib_dld_shl_load=no
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9053 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9054 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9055 if test $ac_cv_lib_dld_shl_load = yes; then
9056 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9058 { echo "$as_me:$LINENO: checking for dlopen" >&5
9059 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9060 if test "${ac_cv_func_dlopen+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9071 #define dlopen innocuous_dlopen
9073 /* System header to define __stub macros and hopefully few prototypes,
9074 which can conflict with char dlopen (); below.
9075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9076 <limits.h> exists even on freestanding compilers. */
9079 # include <limits.h>
9081 # include <assert.h>
9086 /* Override any GCC internal prototype to avoid an error.
9087 Use char because int might match the return type of a GCC
9088 builtin and then its argument prototype would still apply. */
9093 /* The GNU C library defines this for functions which it implements
9094 to always fail with ENOSYS. Some functions are actually named
9095 something starting with __ and the normal name is an alias. */
9096 #if defined __stub_dlopen || defined __stub___dlopen
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9112 *) ac_try_echo
=$ac_try;;
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_link") 2>conftest.er1
9117 grep -v '^ *+' conftest.er1
>conftest.err
9119 cat conftest.err
>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123 { (case "(($ac_try" in
9124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_try") 2>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (case "(($ac_try" in
9134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9135 *) ac_try_echo
=$ac_try;;
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_func_dlopen
=yes
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.
$ac_ext >&5
9147 ac_cv_func_dlopen
=no
9150 rm -f core conftest.err conftest.
$ac_objext \
9151 conftest
$ac_exeext conftest.
$ac_ext
9153 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9154 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9155 if test $ac_cv_func_dlopen = yes; then
9156 lt_cv_dlopen
="dlopen"
9158 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 ac_check_lib_save_LIBS
=$LIBS
9165 cat >conftest.
$ac_ext <<_ACEOF
9168 cat confdefs.h
>>conftest.
$ac_ext
9169 cat >>conftest.
$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9172 /* Override any GCC internal prototype to avoid an error.
9173 Use char because int might match the return type of a GCC
9174 builtin and then its argument prototype would still apply. */
9187 rm -f conftest.
$ac_objext conftest
$ac_exeext
9188 if { (ac_try
="$ac_link"
9190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_link") 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9204 *) ac_try_echo
=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try
='test -s conftest$ac_exeext'
9212 { (case "(($ac_try" in
9213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_try") 2>&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 ac_cv_lib_dl_dlopen=yes
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_cv_lib_dl_dlopen=no
9229 rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_lib_save_LIBS
9233 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9235 if test $ac_cv_lib_dl_dlopen = yes; then
9236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9238 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9239 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9240 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 ac_check_lib_save_LIBS=$LIBS
9245 cat >conftest.$ac_ext <<_ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (ac_try="$ac_link"
9270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9271 *) ac_try_echo
=$ac_try;;
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
9276 grep -v '^ *+' conftest.er1
>conftest.err
9278 cat conftest.err
>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9282 { (case "(($ac_try" in
9283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_try") 2>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9294 *) ac_try_echo
=$ac_try;;
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_cv_lib_svld_dlopen
=yes
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.
$ac_ext >&5
9306 ac_cv_lib_svld_dlopen
=no
9309 rm -f core conftest.err conftest.
$ac_objext \
9310 conftest
$ac_exeext conftest.
$ac_ext
9311 LIBS
=$ac_check_lib_save_LIBS
9313 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9314 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9315 if test $ac_cv_lib_svld_dlopen = yes; then
9316 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9318 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9319 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9320 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 ac_check_lib_save_LIBS
=$LIBS
9325 cat >conftest.
$ac_ext <<_ACEOF
9328 cat confdefs.h
>>conftest.
$ac_ext
9329 cat >>conftest.
$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9332 /* Override any GCC internal prototype to avoid an error.
9333 Use char because int might match the return type of a GCC
9334 builtin and then its argument prototype would still apply. */
9347 rm -f conftest.
$ac_objext conftest
$ac_exeext
9348 if { (ac_try
="$ac_link"
9350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_link") 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9362 { (case "(($ac_try" in
9363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9364 *) ac_try_echo
=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_try") 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try
='test -s conftest$ac_exeext'
9372 { (case "(($ac_try" in
9373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_try") 2>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_lib_dld_dld_link=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_cv_lib_dld_dld_link=no
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9394 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9395 if test $ac_cv_lib_dld_dld_link = yes; then
9396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9417 if test "x$lt_cv_dlopen" != xno; then
9423 case $lt_cv_dlopen in
9425 save_CPPFLAGS="$CPPFLAGS"
9426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9428 save_LDFLAGS="$LDFLAGS"
9429 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9432 LIBS="$lt_cv_dlopen_libs $LIBS"
9434 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9435 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9436 if test "${lt_cv_dlopen_self+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 if test "$cross_compiling" = yes; then :
9440 lt_cv_dlopen_self=cross
9442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9443 lt_status=$lt_dlunknown
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9445 "configure"
9446 #include "confdefs.h"
9455 # define LT_DLGLOBAL RTLD_GLOBAL
9458 # define LT_DLGLOBAL DL_GLOBAL
9460 # define LT_DLGLOBAL 0
9464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9465 find out it does not work in some platform. */
9466 #ifndef LT_DLLAZY_OR_NOW
9468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9471 # define LT_DLLAZY_OR_NOW DL_LAZY
9474 # define LT_DLLAZY_OR_NOW RTLD_NOW
9477 # define LT_DLLAZY_OR_NOW DL_NOW
9479 # define LT_DLLAZY_OR_NOW 0
9487 extern "C" void exit (int);
9490 void fnord() { int i=42;}
9493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9494 int status = $lt_dlunknown;
9498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9499 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9500 /* dlclose (self); */
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9511 (./conftest; exit; ) 2>/dev/null
9514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9516 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9519 # compilation failed
9520 lt_cv_dlopen_self=no
9527 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9528 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9530 if test "x$lt_cv_dlopen_self" = xyes; then
9531 LDFLAGS="$LDFLAGS $link_static_flag"
9532 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9533 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9534 if test "${lt_cv_dlopen_self_static+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 if test "$cross_compiling" = yes; then :
9538 lt_cv_dlopen_self_static=cross
9540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9541 lt_status=$lt_dlunknown
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9543 "configure"
9544 #include "confdefs.h"
9553 # define LT_DLGLOBAL RTLD_GLOBAL
9556 # define LT_DLGLOBAL DL_GLOBAL
9558 # define LT_DLGLOBAL 0
9562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9563 find out it does not work in some platform. */
9564 #ifndef LT_DLLAZY_OR_NOW
9566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9569 # define LT_DLLAZY_OR_NOW DL_LAZY
9572 # define LT_DLLAZY_OR_NOW RTLD_NOW
9575 # define LT_DLLAZY_OR_NOW DL_NOW
9577 # define LT_DLLAZY_OR_NOW 0
9585 extern "C" void exit (int);
9588 void fnord() { int i=42;}
9591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9592 int status = $lt_dlunknown;
9596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9598 /* dlclose (self); */
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9609 (./conftest; exit; ) 2>/dev/null
9612 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9613 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9614 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9617 # compilation failed
9618 lt_cv_dlopen_self_static=no
9625 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9626 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9629 CPPFLAGS="$save_CPPFLAGS"
9630 LDFLAGS="$save_LDFLAGS"
9635 case $lt_cv_dlopen_self in
9636 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9637 *) enable_dlopen_self=unknown ;;
9640 case $lt_cv_dlopen_self_static in
9641 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9642 *) enable_dlopen_self_static=unknown ;;
9647 # Report which librarie types wil actually be built
9648 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9649 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9650 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9651 echo "${ECHO_T}$can_build_shared" >&6; }
9653 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9654 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9655 test "$can_build_shared" = "no" && enable_shared=no
9657 # On AIX, shared libraries and static libraries use the same namespace, and
9658 # are all built from PIC.
9661 test "$enable_shared" = yes && enable_static=no
9662 if test -n "$RANLIB"; then
9663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9664 postinstall_cmds='$RANLIB $lib'
9669 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9670 test "$enable_shared" = yes && enable_static=no
9673 darwin* | rhapsody*)
9674 if test "$GCC" = yes; then
9675 archive_cmds_need_lc=no
9677 rhapsody* | darwin1.[012])
9678 allow_undefined_flag='-undefined suppress'
9681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9682 allow_undefined_flag='-flat_namespace -undefined suppress'
9684 case ${MACOSX_DEPLOYMENT_TARGET} in
9686 allow_undefined_flag='-flat_namespace -undefined suppress'
9689 allow_undefined_flag='-undefined dynamic_lookup'
9695 output_verbose_link_cmd='echo'
9696 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9697 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9698 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9699 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9700 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}'
9702 hardcode_automatic=yes
9703 hardcode_shlibpath_var=unsupported
9704 whole_archive_flag_spec='-all_load $convenience'
9705 link_all_deplibs=yes
9711 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9712 echo "${ECHO_T}$enable_shared" >&6; }
9714 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9715 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9716 # Make sure either enable_shared or enable_static is yes.
9717 test "$enable_shared" = yes || enable_static=yes
9718 { echo "$as_me:$LINENO: result: $enable_static" >&5
9719 echo "${ECHO_T}$enable_static" >&6; }
9721 # The else clause should only fire when bootstrapping the
9722 # libtool distribution, otherwise you forgot to ship ltmain.sh
9723 # with your package, and you will get complaints that there are
9724 # no rules to generate ltmain.sh.
9725 if test -f "$ltmain"; then
9726 # See if we are running on zsh, and set the options which allow our commands through
9727 # without removal of \ escapes.
9728 if test -n "${ZSH_VERSION+set}" ; then
9729 setopt NO_GLOB_SUBST
9731 # Now quote all the things that may contain metacharacters while being
9732 # careful not to overquote the AC_SUBSTed values. We take copies of the
9733 # variables and quote the copies for generation of the libtool script.
9734 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9737 deplibs_check_method reload_flag reload_cmds need_locks \
9738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9739 lt_cv_sys_global_symbol_to_c_name_address \
9740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9741 old_postinstall_cmds old_postuninstall_cmds \
9745 lt_prog_compiler_wl \
9746 lt_prog_compiler_pic \
9747 lt_prog_compiler_static \
9748 lt_prog_compiler_no_builtin_flag \
9749 export_dynamic_flag_spec \
9750 thread_safe_flag_spec \
9751 whole_archive_flag_spec \
9752 enable_shared_with_static_runtimes \
9754 old_archive_from_new_cmds \
9759 compiler_lib_search_path \
9761 archive_expsym_cmds \
9763 postuninstall_cmds \
9764 old_archive_from_expsyms_cmds \
9765 allow_undefined_flag \
9767 export_symbols_cmds \
9768 hardcode_libdir_flag_spec \
9769 hardcode_libdir_flag_spec_ld \
9770 hardcode_libdir_separator \
9771 hardcode_automatic \
9773 module_expsym_cmds \
9774 lt_cv_prog_compiler_c_o \
9779 old_archive_cmds | \
9780 old_archive_from_new_cmds | \
9782 archive_expsym_cmds | \
9784 module_expsym_cmds | \
9785 old_archive_from_expsyms_cmds | \
9786 export_symbols_cmds | \
9787 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9788 postinstall_cmds | postuninstall_cmds | \
9789 old_postinstall_cmds | old_postuninstall_cmds | \
9790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9791 # Double-quote double-evaled strings.
9792 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
9795 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
9801 *'\$0 --fallback-echo"')
9802 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9807 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9809 { echo "$as_me:$LINENO: creating $ofile" >&5
9810 echo "$as_me: creating $ofile" >&6;}
9812 cat <<__EOF__ >> "$cfgfile"
9815 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
9816 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9817 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9819 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9820 # Free Software Foundation, Inc.
9822 # This file is part of GNU Libtool:
9823 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9825 # This program is free software; you can redistribute it and/or modify
9826 # it under the terms of the GNU General Public License as published by
9827 # the Free Software Foundation; either version 2 of the License, or
9828 # (at your option) any later version.
9830 # This program is distributed in the hope that it will be useful, but
9831 # WITHOUT ANY WARRANTY; without even the implied warranty of
9832 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9833 # General Public License for more details.
9835 # You should have received a copy of the GNU General Public License
9836 # along with this program; if not, write to the Free Software
9837 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9839 # As a special exception to the GNU General Public License, if you
9840 # distribute this file as part of a program that contains a
9841 # configuration script generated by Autoconf, you may include it under
9842 # the same distribution terms that you use for the rest of that program.
9844 # A sed program that does not truncate output.
9847 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9848 Xsed="$SED -e s/^X//"
9850 # The HP-UX ksh and POSIX shell print the target directory to stdout
9852 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9854 # The names of the tagged configurations supported by this script.
9857 # ### BEGIN LIBTOOL CONFIG
9859 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
9861 # Shell to use when invoking shell scripts.
9864 # Whether or not to build shared libraries.
9865 build_libtool_libs=$enable_shared
9867 # Whether or not to build static libraries.
9868 build_old_libs=$enable_static
9870 # Whether or not to add -lc for building shared libraries.
9871 build_libtool_need_lc=$archive_cmds_need_lc
9873 # Whether or not to disallow shared libs when runtime libs are static
9874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9876 # Whether or not to optimize for fast installation.
9877 fast_install=$enable_fast_install
9880 host_alias=$host_alias
9883 # An echo program that does not interpret backslashes.
9888 AR_FLAGS=$lt_AR_FLAGS
9893 # A language-specific compiler.
9896 # Is the compiler the GNU C compiler?
9902 # The linker used to build libraries.
9905 # Whether we need hard or soft links.
9908 # A BSD-compatible nm program.
9911 # A symbol stripping program
9914 # Used to examine libraries when file_magic_cmd begins "file"
9915 MAGIC_CMD=$MAGIC_CMD
9917 # Used on cygwin: DLL creation program.
9920 # Used on cygwin: object dumper.
9923 # Used on cygwin: assembler.
9926 # The name of the directory that contains temporary libtool files.
9929 # How to create reloadable object files.
9930 reload_flag=$lt_reload_flag
9931 reload_cmds=$lt_reload_cmds
9933 # How to pass a linker flag through the compiler.
9934 wl=$lt_lt_prog_compiler_wl
9936 # Object file suffix (normally "o").
9939 # Old archive suffix (normally "a").
9942 # Shared library suffix (normally ".so").
9945 # Executable file suffix (normally "").
9948 # Additional compiler flags for building library objects.
9949 pic_flag=$lt_lt_prog_compiler_pic
9952 # What is the maximum length of a command?
9953 max_cmd_len=$lt_cv_sys_max_cmd_len
9955 # Does compiler simultaneously support -c and -o options?
9956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9958 # Must we lock files when doing compilation ?
9959 need_locks=$lt_need_locks
9961 # Do we need the lib prefix for modules?
9962 need_lib_prefix=$need_lib_prefix
9964 # Do we need a version for libraries?
9965 need_version=$need_version
9967 # Whether dlopen is supported.
9968 dlopen_support=$enable_dlopen
9970 # Whether dlopen of programs is supported.
9971 dlopen_self=$enable_dlopen_self
9973 # Whether dlopen of statically linked programs is supported.
9974 dlopen_self_static=$enable_dlopen_self_static
9976 # Compiler flag to prevent dynamic linking.
9977 link_static_flag=$lt_lt_prog_compiler_static
9979 # Compiler flag to turn off builtin functions.
9980 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9982 # Compiler flag to allow reflexive dlopens.
9983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9985 # Compiler flag to generate shared objects directly from archives.
9986 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9988 # Compiler flag to generate thread-safe objects.
9989 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9991 # Library versioning type.
9992 version_type=$version_type
9994 # Format of library name prefix.
9995 libname_spec=$lt_libname_spec
9997 # List of archive names. First name is the real one, the rest are links.
9998 # The last name is the one that the linker finds with -lNAME.
9999 library_names_spec=$lt_library_names_spec
10001 # The coded name of the library, if different from the real name.
10002 soname_spec=$lt_soname_spec
10004 # Commands used to build and install an old-style archive.
10006 old_archive_cmds=$lt_old_archive_cmds
10007 old_postinstall_cmds=$lt_old_postinstall_cmds
10008 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10010 # Create an old-style archive from a shared archive.
10011 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10013 # Create a temporary old-style archive to link instead of a shared archive.
10014 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10016 # Commands used to build and install a shared archive.
10017 archive_cmds=$lt_archive_cmds
10018 archive_expsym_cmds=$lt_archive_expsym_cmds
10019 postinstall_cmds=$lt_postinstall_cmds
10020 postuninstall_cmds=$lt_postuninstall_cmds
10022 # Commands used to build a loadable module (assumed same as above if empty)
10023 module_cmds=$lt_module_cmds
10024 module_expsym_cmds=$lt_module_expsym_cmds
10026 # Commands to strip libraries.
10027 old_striplib=$lt_old_striplib
10028 striplib=$lt_striplib
10030 # Dependencies to place before the objects being linked to create a
10032 predep_objects=$lt_predep_objects
10034 # Dependencies to place after the objects being linked to create a
10036 postdep_objects=$lt_postdep_objects
10038 # Dependencies to place before the objects being linked to create a
10040 predeps=$lt_predeps
10042 # Dependencies to place after the objects being linked to create a
10044 postdeps=$lt_postdeps
10046 # The library search path used internally by the compiler when linking
10047 # a shared library.
10048 compiler_lib_search_path=$lt_compiler_lib_search_path
10050 # Method to check whether dependent libraries are shared objects.
10051 deplibs_check_method=$lt_deplibs_check_method
10053 # Command to use when deplibs_check_method == file_magic.
10054 file_magic_cmd=$lt_file_magic_cmd
10056 # Flag that allows shared libraries with undefined symbols to be built.
10057 allow_undefined_flag=$lt_allow_undefined_flag
10059 # Flag that forces no undefined symbols.
10060 no_undefined_flag=$lt_no_undefined_flag
10062 # Commands used to finish a libtool library installation in a directory.
10063 finish_cmds=$lt_finish_cmds
10065 # Same as above, but a single script fragment to be evaled but not shown.
10066 finish_eval=$lt_finish_eval
10068 # Take the output of nm and produce a listing of raw symbols and C names.
10069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10071 # Transform the output of nm in a proper C declaration
10072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10074 # Transform the output of nm in a C name address pair
10075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10077 # This is the shared library runtime path variable.
10078 runpath_var=$runpath_var
10080 # This is the shared library path variable.
10081 shlibpath_var=$shlibpath_var
10083 # Is shlibpath searched before the hard-coded library search path?
10084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10086 # How to hardcode a shared library path into an executable.
10087 hardcode_action=$hardcode_action
10089 # Whether we should hardcode library paths into libraries.
10090 hardcode_into_libs=$hardcode_into_libs
10092 # Flag to hardcode \$libdir into a binary during linking.
10093 # This must work even if \$libdir does not exist.
10094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10096 # If ld is used when linking, flag to hardcode \$libdir into
10097 # a binary during linking. This must work even if \$libdir does
10099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10101 # Whether we need a single -rpath flag with a separated argument.
10102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10105 # resulting binary.
10106 hardcode_direct=$hardcode_direct
10108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10109 # resulting binary.
10110 hardcode_minus_L=$hardcode_minus_L
10112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10113 # the resulting binary.
10114 hardcode_shlibpath_var=$hardcode_shlibpath_var
10116 # Set to yes if building a shared library automatically hardcodes DIR into the library
10117 # and all subsequent libraries and executables linked against it.
10118 hardcode_automatic=$hardcode_automatic
10120 # Variables whose values should be saved in libtool wrapper scripts and
10121 # restored at relink time.
10122 variables_saved_for_relink="$variables_saved_for_relink"
10124 # Whether libtool must link a program against all its dependency libraries.
10125 link_all_deplibs=$link_all_deplibs
10127 # Compile-time system search path for libraries
10128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10130 # Run-time system search path for libraries
10131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10133 # Fix the shell variable \$srcfile for the compiler.
10134 fix_srcfile_path="$fix_srcfile_path"
10136 # Set to yes if exported symbols are required.
10137 always_export_symbols=$always_export_symbols
10139 # The commands to list exported symbols.
10140 export_symbols_cmds=$lt_export_symbols_cmds
10142 # The commands to extract the exported symbol list from a shared archive.
10143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10145 # Symbols that should not be listed in the preloaded symbols.
10146 exclude_expsyms=$lt_exclude_expsyms
10148 # Symbols that must always be exported.
10149 include_expsyms=$lt_include_expsyms
10151 # ### END LIBTOOL CONFIG
10158 cat <<\EOF >> "$cfgfile"
10160 # AIX sometimes has problems with the GCC collect2 program. For some
10161 # reason, if we set the COLLECT_NAMES environment variable, the problems
10162 # vanish in a puff of smoke.
10163 if test "X${COLLECT_NAMES+set}" != Xset; then
10165 export COLLECT_NAMES
10171 # We use sed instead of cat because bash on DJGPP gets confused if
10172 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10173 # text mode, it properly converts lines to CR/LF. This bash problem
10174 # is reportedly fixed, but why not run on old versions too?
10175 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10177 mv -f "$cfgfile" "$ofile" || \
10178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10182 # If there is no Makefile yet, we rely on a make rule to execute
10183 # `config.status
--recheck' to rerun these tests and create the
10184 # libtool script then.
10185 test -f Makefile && make "$ltmain"
10190 ac_cpp='$CPP $CPPFLAGS'
10191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10192 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10198 # Check whether --with-tags was given.
10199 if test "${with_tags+set}" = set; then
10200 withval=$with_tags; tagnames="$withval"
10204 if test -f "$ltmain" && test -n "$tagnames"; then
10205 if test ! -f "${ofile}"; then
10206 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10207 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10210 if test -z "$LTCC"; then
10211 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10212 if test -z "$LTCC"; then
10213 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10214 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10216 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10217 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10221 # Extract list of available tagged configurations in $ofile.
10222 # Note that this assumes the entire list is on one line.
10223 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10226 for tagname in $tagnames; do
10228 # Check whether tagname contains only valid characters
10229 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10231 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10232 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10233 { (exit 1); exit 1; }; }
10237 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10239 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10240 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10241 { (exit 1); exit 1; }; }
10244 # Update the list of available tags.
10245 if test -n "$tagname"; then
10246 echo appending configuration tag \"$tagname\" to $ofile
10250 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10252 ac_cpp='$CXXCPP $CPPFLAGS'
10253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10260 archive_cmds_need_lc_CXX=no
10261 allow_undefined_flag_CXX=
10262 always_export_symbols_CXX=no
10263 archive_expsym_cmds_CXX=
10264 export_dynamic_flag_spec_CXX=
10265 hardcode_direct_CXX=no
10266 hardcode_libdir_flag_spec_CXX=
10267 hardcode_libdir_flag_spec_ld_CXX=
10268 hardcode_libdir_separator_CXX=
10269 hardcode_minus_L_CXX=no
10270 hardcode_automatic_CXX=no
10272 module_expsym_cmds_CXX=
10273 link_all_deplibs_CXX=unknown
10274 old_archive_cmds_CXX=$old_archive_cmds
10275 no_undefined_flag_CXX=
10276 whole_archive_flag_spec_CXX=
10277 enable_shared_with_static_runtimes_CXX=no
10279 # Dependencies to place before and after the object being linked:
10280 predep_objects_CXX=
10281 postdep_objects_CXX=
10284 compiler_lib_search_path_CXX=
10286 # Source file extension for C++ test sources.
10289 # Object file extension for compiled C++ test sources.
10293 # Code to be used in simple compile tests
10294 lt_simple_compile_test_code="int some_variable = 0;\n"
10296 # Code to be used in simple link tests
10297 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10301 # If no C compiler was specified, use CC.
10304 # Allow CC to be a program name with arguments.
10308 # Allow CC to be a program name with arguments.
10313 lt_save_with_gnu_ld=$with_gnu_ld
10314 lt_save_path_LD=$lt_cv_path_LD
10315 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10316 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10318 unset lt_cv_prog_gnu_ld
10320 if test -n "${lt_cv_path_LDCXX+set}"; then
10321 lt_cv_path_LD=$lt_cv_path_LDCXX
10323 unset lt_cv_path_LD
10325 test -z "${LDCXX+set}" || LD=$LDCXX
10329 cc_basename=`$echo X
"$compiler" |
$Xsed -e 's%^.*/%%'`
10331 # We don't want -fno-exception wen compiling C++ code, so set the
10332 # no_builtin_flag separately
10333 if test "$GXX" = yes; then
10334 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10336 lt_prog_compiler_no_builtin_flag_CXX=
10339 if test "$GXX" = yes; then
10340 # Set up default GNU C++ configuration
10343 # Check whether --with-gnu-ld was given.
10344 if test "${with_gnu_ld+set}" = set; then
10345 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10351 if test "$GCC" = yes; then
10352 # Check if gcc -print-prog-name=ld gives a path.
10353 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10354 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10357 # gcc leaves a trailing carriage return which upsets mingw
10358 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10360 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10363 # Accept absolute paths.
10365 re_direlt='/[^/][^/]*/\.\./'
10366 # Canonicalize the pathname of ld
10367 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10368 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10369 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10371 test -z "$LD" && LD="$ac_prog"
10374 # If it fails, then pretend we aren't using GCC.
10378 # If it is relative, then search for the first ld in PATH.
10379 with_gnu_ld=unknown
10382 elif test "$with_gnu_ld" = yes; then
10383 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10384 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10386 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10387 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10389 if test "${lt_cv_path_LD+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 if test -z "$LD"; then
10393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10394 for ac_dir in $PATH; do
10396 test -z "$ac_dir" && ac_dir=.
10397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10398 lt_cv_path_LD="$ac_dir/$ac_prog"
10399 # Check to see if the program is GNU ld. I'd rather use --version,
10400 # but apparently some GNU ld's only accept -v.
10401 # Break only if it was the GNU/non-GNU ld that we prefer.
10402 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10403 *GNU* | *'with BFD'*)
10404 test "$with_gnu_ld" != no && break
10407 test "$with_gnu_ld" != yes && break
10414 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10418 LD="$lt_cv_path_LD"
10419 if test -n "$LD"; then
10420 { echo "$as_me:$LINENO: result: $LD" >&5
10421 echo "${ECHO_T}$LD" >&6; }
10423 { echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6; }
10426 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10427 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10428 { (exit 1); exit 1; }; }
10429 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10430 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10431 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10435 case `$LD -v 2>&1 </dev
/null
` in
10436 *GNU* | *'with BFD'*)
10437 lt_cv_prog_gnu_ld=yes
10440 lt_cv_prog_gnu_ld=no
10444 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10445 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10446 with_gnu_ld=$lt_cv_prog_gnu_ld
10450 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10451 # archiving commands below assume that GNU ld is being used.
10452 if test "$with_gnu_ld" = yes; then
10453 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454 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'
10456 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10459 # If archive_cmds runs LD, not CC, wlarc should be empty
10460 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10461 # investigate it a little bit more. (MM)
10464 # ancient GNU ld didn't support --whole-archive et. al.
10465 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10466 grep 'no-whole-archive' > /dev/null; then
10467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10469 whole_archive_flag_spec_CXX=
10475 # A generic and very simple default shared library creation
10476 # command for GNU C++ for the case where it uses the native
10477 # linker, instead of GNU ld. If possible, this setting should
10478 # overridden to take advantage of the native linker features on
10479 # the platform it is being used on.
10480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10483 # Commands to make compiler produce verbose output that lists
10484 # what "hidden" libraries, object files and flags are used when
10485 # linking a shared library.
10486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10494 # PORTME: fill in a description of your system's C++ link characteristics
10495 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10496 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10500 # FIXME: insert proper C++ library support
10504 if test "$host_cpu" = ia64; then
10505 # On IA64, the linker does run time linking by default, so we don't
10506 # have to do anything special.
10507 aix_use_runtimelinking=no
10508 exp_sym_flag='-Bexport'
10511 aix_use_runtimelinking=no
10513 # Test if we are trying to use run time linking or normal
10514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10515 # need to do runtime linking.
10516 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10517 for ld_flag in $LDFLAGS; do
10520 aix_use_runtimelinking=yes
10527 exp_sym_flag='-bexport'
10528 no_entry_flag='-bnoentry'
10531 # When large executables or shared objects are built, AIX ld can
10532 # have problems creating the table of contents. If linking a library
10533 # or program results in "error TOC overflow" add -mminimal-toc to
10534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10537 archive_cmds_CXX=''
10538 hardcode_direct_CXX=yes
10539 hardcode_libdir_separator_CXX=':'
10540 link_all_deplibs_CXX=yes
10542 if test "$GXX" = yes; then
10543 case $host_os in aix4.012|aix4.012.*)
10544 # We only want to do this on AIX 4.2 and lower, the check
10545 # below for broken collect2 doesn't work under 4.3+
10546 collect2name=`${CC} -print-prog-name=collect2
`
10547 if test -f "$collect2name" && \
10548 strings "$collect2name" | grep resolve_lib_name >/dev/null
10550 # We have reworked collect2
10551 hardcode_direct_CXX=yes
10553 # We have old collect2
10554 hardcode_direct_CXX=unsupported
10555 # It fails to find uninstalled libraries when the uninstalled
10556 # path is not listed in the libpath. Setting hardcode_minus_L
10557 # to unsupported forces relinking
10558 hardcode_minus_L_CXX=yes
10559 hardcode_libdir_flag_spec_CXX='-L$libdir'
10560 hardcode_libdir_separator_CXX=
10563 shared_flag='-shared'
10566 if test "$host_cpu" = ia64; then
10567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10568 # chokes on -Wl,-G. The following line is correct:
10571 if test "$aix_use_runtimelinking" = yes; then
10572 shared_flag='${wl}-G'
10574 shared_flag='${wl}-bM:SRE'
10579 # It seems that -bexpall does not export symbols beginning with
10580 # underscore (_), so it is better to generate a list of symbols to export.
10581 always_export_symbols_CXX=yes
10582 if test "$aix_use_runtimelinking" = yes; then
10583 # Warning - without using the other runtime loading flags (-brtl),
10584 # -berok will link without error, but may produce a broken library.
10585 allow_undefined_flag_CXX='-berok'
10586 # Determine the default libpath from the value encoded in an empty executable.
10587 cat >conftest.$ac_ext <<_ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10606 *) ac_try_echo
=$ac_try;;
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1
>conftest.err
10613 cat conftest.err
>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10617 { (case "(($ac_try" in
10618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest$ac_exeext'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10629 *) ac_try_echo
=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10637 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10639 # Check for a 64-bit object if we didn't find anything.
10640 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.
$ac_ext >&5
10649 rm -f core conftest.err conftest.
$ac_objext \
10650 conftest
$ac_exeext conftest.
$ac_ext
10651 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10653 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10655 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10657 if test "$host_cpu" = ia64; then
10658 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
10659 allow_undefined_flag_CXX="-z nodefs"
10660 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
10662 # Determine the default libpath from the value encoded in an empty executable.
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10711 (exit $ac_status); }; }; then
10713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10715 # Check for a 64-bit object if we didn't find anything.
10716 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10719 echo "$as_me: failed program was
:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10729 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10730 # Warning - without using the other run time loading flags,
10731 # -berok will link without error, but may produce a broken library.
10732 no_undefined_flag_CXX=' ${wl}-bernotok'
10733 allow_undefined_flag_CXX=' ${wl}-berok'
10734 # -bexpall does not export symbols beginning with underscore (_)
10735 always_export_symbols_CXX=yes
10736 # Exported symbols can be pulled into shared objects from archives
10737 whole_archive_flag_spec_CXX=' '
10738 archive_cmds_need_lc_CXX=yes
10739 # This is similar to how AIX traditionally builds it's shared libraries.
10740 archive_expsym_cmds_CXX="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10745 case $cc_basename in
10747 # FIXME: insert proper C++ library support
10753 cygwin* | mingw* | pw32*)
10754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10755 # as there is no search path for DLLs.
10756 hardcode_libdir_flag_spec_CXX='-L$libdir'
10757 allow_undefined_flag_CXX=unsupported
10758 always_export_symbols_CXX=no
10759 enable_shared_with_static_runtimes_CXX=yes
10761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10763 # If the export-symbols file already is a .def file (1st line
10764 # is EXPORTS), use it as is; otherwise, prepend...
10765 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10766 cp $export_symbols $output_objdir/$soname.def;
10768 echo EXPORTS > $output_objdir/$soname.def;
10769 cat $export_symbols >> $output_objdir/$soname.def;
10771 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10777 darwin* | rhapsody*)
10778 if test "$GXX" = yes; then
10779 archive_cmds_need_lc_CXX=no
10781 rhapsody* | darwin1.[012])
10782 allow_undefined_flag_CXX='-undefined suppress'
10785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10786 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10788 case ${MACOSX_DEPLOYMENT_TARGET} in
10790 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10793 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10799 lt_int_apple_cc_single_mod=no
10800 output_verbose_link_cmd='echo'
10801 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10802 lt_int_apple_cc_single_mod=yes
10804 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10805 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10807 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10809 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10812 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10813 archive_expsym_cmds_CXX='sed -e "s
,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10815 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10817 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}'
10818 hardcode_direct_CXX
=no
10819 hardcode_automatic_CXX
=yes
10820 hardcode_shlibpath_var_CXX
=unsupported
10821 whole_archive_flag_spec_CXX
='-all_load $convenience'
10822 link_all_deplibs_CXX
=yes
10829 case $cc_basename in
10831 # FIXME: insert proper C++ library support
10835 # Green Hills C++ Compiler
10836 # FIXME: insert proper C++ library support
10840 # FIXME: insert proper C++ library support
10846 # C++ shared libraries reported to be fairly broken before switch to ELF
10850 archive_cmds_need_lc_CXX
=no
10852 freebsd
* | kfreebsd
*-gnu)
10853 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10860 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10861 hardcode_libdir_separator_CXX
=:
10862 export_dynamic_flag_spec_CXX
='${wl}-E'
10863 hardcode_direct_CXX
=yes
10864 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10865 # but as the default
10866 # location of the library.
10868 case $cc_basename in
10870 # FIXME: insert proper C++ library support
10874 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'
10875 # Commands to make compiler produce verbose output that lists
10876 # what "hidden" libraries, object files and flags are used when
10877 # linking a shared library.
10879 # There doesn't appear to be a way to prevent this compiler from
10880 # explicitly linking system object files so we need to strip them
10881 # from the output so that they don't get included in the library
10883 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10886 if test "$GXX" = yes; then
10887 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'
10889 # FIXME: insert proper C++ library support
10896 if test $with_gnu_ld = no
; then
10897 case "$host_cpu" in
10899 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10900 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10901 hardcode_libdir_separator_CXX
=:
10904 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10907 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10908 hardcode_libdir_separator_CXX
=:
10909 export_dynamic_flag_spec_CXX
='${wl}-E'
10913 case "$host_cpu" in
10915 hardcode_direct_CXX
=no
10916 hardcode_shlibpath_var_CXX
=no
10919 hardcode_direct_CXX
=no
10920 hardcode_shlibpath_var_CXX
=no
10921 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10922 # but as the default
10923 # location of the library.
10926 hardcode_direct_CXX
=yes
10927 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10928 # but as the default
10929 # location of the library.
10933 case $cc_basename in
10935 # FIXME: insert proper C++ library support
10939 case "$host_cpu" in
10941 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10944 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10951 # There doesn't appear to be a way to prevent this compiler from
10952 # explicitly linking system object files so we need to strip them
10953 # from the output so that they don't get included in the library
10955 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'
10958 if test "$GXX" = yes; then
10959 if test $with_gnu_ld = no
; then
10960 case "$host_cpu" in
10962 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10965 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'
10970 # FIXME: insert proper C++ library support
10977 case $cc_basename in
10980 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10982 # Archives containing C++ object files must be created using
10983 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10984 # necessary to make sure instantiated templates are included
10986 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10989 if test "$GXX" = yes; then
10990 if test "$with_gnu_ld" = no
; then
10991 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10993 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'
10996 link_all_deplibs_CXX
=yes
10999 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11000 hardcode_libdir_separator_CXX
=:
11003 case $cc_basename in
11005 # Kuck and Associates, Inc. (KAI) C++ Compiler
11007 # KCC will only create a shared library if the output file
11008 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11009 # to its proper name (with version) after linking.
11010 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'
11011 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'
11012 # Commands to make compiler produce verbose output that lists
11013 # what "hidden" libraries, object files and flags are used when
11014 # linking a shared library.
11016 # There doesn't appear to be a way to prevent this compiler from
11017 # explicitly linking system object files so we need to strip them
11018 # from the output so that they don't get included in the library
11020 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'
11022 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11023 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11025 # Archives containing C++ object files must be created using
11026 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11027 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11032 archive_cmds_need_lc_CXX
=no
11033 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 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'
11035 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11036 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11037 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11041 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042 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'
11044 runpath_var
=LD_RUN_PATH
11045 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11046 hardcode_libdir_separator_CXX
=:
11048 # Commands to make compiler produce verbose output that lists
11049 # what "hidden" libraries, object files and flags are used when
11050 # linking a shared library.
11052 # There doesn't appear to be a way to prevent this compiler from
11053 # explicitly linking system object files so we need to strip them
11054 # from the output so that they don't get included in the library
11056 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'
11061 # FIXME: insert proper C++ library support
11065 # FIXME: insert proper C++ library support
11069 case $cc_basename in
11071 # FIXME: insert proper C++ library support
11075 # FIXME: insert proper C++ library support
11081 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11082 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11084 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11085 hardcode_direct_CXX
=yes
11086 hardcode_shlibpath_var_CXX
=no
11088 # Workaround some broken pre-1.5 toolchains
11089 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11092 case $cc_basename in
11094 # Kuck and Associates, Inc. (KAI) C++ Compiler
11096 # KCC will only create a shared library if the output file
11097 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11098 # to its proper name (with version) after linking.
11099 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'
11101 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11102 hardcode_libdir_separator_CXX
=:
11104 # Archives containing C++ object files must be created using
11105 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11106 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11110 # Rational C++ 2.4.1
11111 # FIXME: insert proper C++ library support
11115 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11116 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11118 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11119 hardcode_libdir_separator_CXX
=:
11121 # Commands to make compiler produce verbose output that lists
11122 # what "hidden" libraries, object files and flags are used when
11123 # linking a shared library.
11125 # There doesn't appear to be a way to prevent this compiler from
11126 # explicitly linking system object files so we need to strip them
11127 # from the output so that they don't get included in the library
11129 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'
11132 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11133 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11134 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11136 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11137 hardcode_libdir_separator_CXX
=:
11139 # Commands to make compiler produce verbose output that lists
11140 # what "hidden" libraries, object files and flags are used when
11141 # linking a shared library.
11142 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11145 # FIXME: insert proper C++ library support
11152 case $cc_basename in
11154 # Kuck and Associates, Inc. (KAI) C++ Compiler
11156 # KCC will only create a shared library if the output file
11157 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11158 # to its proper name (with version) after linking.
11159 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'
11161 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11162 hardcode_libdir_separator_CXX
=:
11164 # Archives containing C++ object files must be created using
11165 # the KAI C++ compiler.
11166 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11169 # Rational C++ 2.4.1
11170 # FIXME: insert proper C++ library support
11174 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11175 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11176 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11177 echo "-hidden">> $lib.exp~
11178 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11181 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11182 hardcode_libdir_separator_CXX
=:
11184 # Commands to make compiler produce verbose output that lists
11185 # what "hidden" libraries, object files and flags are used when
11186 # linking a shared library.
11188 # There doesn't appear to be a way to prevent this compiler from
11189 # explicitly linking system object files so we need to strip them
11190 # from the output so that they don't get included in the library
11192 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'
11195 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11196 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11197 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11199 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11200 hardcode_libdir_separator_CXX
=:
11202 # Commands to make compiler produce verbose output that lists
11203 # what "hidden" libraries, object files and flags are used when
11204 # linking a shared library.
11205 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11208 # FIXME: insert proper C++ library support
11215 # FIXME: insert proper C++ library support
11219 archive_cmds_need_lc_CXX
=no
11220 case $cc_basename in
11222 # FIXME: insert proper C++ library support
11226 # FIXME: insert proper C++ library support
11232 case $cc_basename in
11235 # FIXME: insert proper C++ library support
11240 # FIXME: insert proper C++ library support
11244 # FIXME: insert proper C++ library support
11250 case $cc_basename in
11252 # Sun C++ 4.2, 5.x and Centerline C++
11253 no_undefined_flag_CXX
=' -zdefs'
11254 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11255 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11256 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11258 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11259 hardcode_shlibpath_var_CXX
=no
11261 solaris2.0
-5 | solaris2.0
-5.
*) ;;
11263 # The C++ compiler is used as linker so we must use $wl
11264 # flag to pass the commands to the underlying system
11266 # Supported since Solaris 2.6 (maybe 2.5.1?)
11267 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11270 link_all_deplibs_CXX
=yes
11272 # Commands to make compiler produce verbose output that lists
11273 # what "hidden" libraries, object files and flags are used when
11274 # linking a shared library.
11276 # There doesn't appear to be a way to prevent this compiler from
11277 # explicitly linking system object files so we need to strip them
11278 # from the output so that they don't get included in the library
11280 output_verbose_link_cmd
='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11282 # Archives containing C++ object files must be created using
11283 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11284 # necessary to make sure instantiated templates are included
11286 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11289 # Green Hills C++ Compiler
11290 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11292 # The C++ compiler must be used to create the archive.
11293 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11296 # GNU C++ compiler with Solaris linker
11297 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11298 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11299 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11300 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11301 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11302 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11304 # Commands to make compiler produce verbose output that lists
11305 # what "hidden" libraries, object files and flags are used when
11306 # linking a shared library.
11307 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11309 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11311 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11312 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11313 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11315 # Commands to make compiler produce verbose output that lists
11316 # what "hidden" libraries, object files and flags are used when
11317 # linking a shared library.
11318 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11321 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11326 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
11327 archive_cmds_need_lc_CXX
=no
11330 case $cc_basename in
11332 # NonStop-UX NCC 3.20
11333 # FIXME: insert proper C++ library support
11337 # FIXME: insert proper C++ library support
11343 # FIXME: insert proper C++ library support
11347 # FIXME: insert proper C++ library support
11351 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11352 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11353 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11359 ## There is no encapsulation within the following macros, do not change
11360 ## the running order or otherwise move them around unless you know exactly
11361 ## what you are doing...
11363 cat > conftest.
$ac_ext <<EOF
11367 Foo (void) { a = 0; }
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; then
11378 # Parse the compiler output and extract the necessary
11379 # objects, libraries and library flags.
11381 # Sentinel used to keep track of whether or not we are before
11382 # the conftest object file.
11383 pre_test_object_deps_done
=no
11385 # The `*' in the case matches for architectures that use `case' in
11386 # $output_verbose_cmd can trigger glob expansion during the loop
11387 # eval without this substitution.
11388 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11390 for p
in `eval $output_verbose_link_cmd`; do
11394 # Some compilers place space between "-{L,R}" and the path.
11395 # Remove the space.
11396 if test $p = "-L" \
11397 ||
test $p = "-R"; then
11404 if test "$pre_test_object_deps_done" = no
; then
11407 # Internal compiler library paths should come after those
11408 # provided the user. The postdeps already come after the
11409 # user supplied libs so there is no need to process them.
11410 if test -z "$compiler_lib_search_path_CXX"; then
11411 compiler_lib_search_path_CXX
="${prev}${p}"
11413 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11416 # The "-l" case would never come before the object being
11417 # linked, so don't bother handling this case.
11420 if test -z "$postdeps_CXX"; then
11421 postdeps_CXX
="${prev}${p}"
11423 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11429 # This assumes that the test object file only shows up
11430 # once in the compiler output.
11431 if test "$p" = "conftest.$objext"; then
11432 pre_test_object_deps_done
=yes
11436 if test "$pre_test_object_deps_done" = no
; then
11437 if test -z "$predep_objects_CXX"; then
11438 predep_objects_CXX
="$p"
11440 predep_objects_CXX
="$predep_objects_CXX $p"
11443 if test -z "$postdep_objects_CXX"; then
11444 postdep_objects_CXX
="$p"
11446 postdep_objects_CXX
="$postdep_objects_CXX $p"
11451 *) ;; # Ignore the rest.
11459 echo "libtool.m4: error: problem compiling CXX test program"
11462 $rm -f confest.
$objext
11464 case " $postdeps_CXX " in
11465 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11468 lt_prog_compiler_wl_CXX
=
11469 lt_prog_compiler_pic_CXX
=
11470 lt_prog_compiler_static_CXX
=
11472 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11475 # C++ specific cases for pic, static, wl, etc.
11476 if test "$GXX" = yes; then
11477 lt_prog_compiler_wl_CXX
='-Wl,'
11478 lt_prog_compiler_static_CXX
='-static'
11482 # All AIX code is PIC.
11483 if test "$host_cpu" = ia64
; then
11484 # AIX 5 now supports IA64 processor
11485 lt_prog_compiler_static_CXX
='-Bstatic'
11489 # FIXME: we need at least 68020 code to build shared libraries, but
11490 # adding the `-m68020' flag to GCC prevents building anything better,
11492 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11494 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11495 # PIC is the default for these OSes.
11497 mingw
* | os2
* | pw32
*)
11498 # This hack is so that the source file can tell whether it is being
11499 # built for inclusion in a dll (and should export symbols for example).
11500 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11502 darwin
* | rhapsody
*)
11503 # PIC is the default on this platform
11504 # Common symbols not allowed in MH_DYLIB files
11505 lt_prog_compiler_pic_CXX
='-fno-common'
11508 # DJGPP does not support shared libraries at all
11509 lt_prog_compiler_pic_CXX
=
11512 if test -d /usr
/nec
; then
11513 lt_prog_compiler_pic_CXX
=-Kconform_pic
11517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11518 # not for PA HP-UX.
11519 case "$host_cpu" in
11523 lt_prog_compiler_pic_CXX
='-fPIC'
11528 lt_prog_compiler_pic_CXX
='-fPIC'
11534 # All AIX code is PIC.
11535 if test "$host_cpu" = ia64
; then
11536 # AIX 5 now supports IA64 processor
11537 lt_prog_compiler_static_CXX
='-Bstatic'
11539 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11543 case $cc_basename in
11545 # Green Hills C++ Compiler
11546 # _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"
11551 case $cc_basename in
11553 lt_prog_compiler_pic_CXX
='-KPIC'
11556 # Green Hills C++ Compiler
11557 lt_prog_compiler_pic_CXX
='-pic'
11563 freebsd
* | kfreebsd
*-gnu)
11564 # FreeBSD uses GNU C++
11566 hpux9
* | hpux10
* | hpux11
*)
11567 case $cc_basename in
11569 lt_prog_compiler_wl_CXX
='-Wl,'
11570 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11571 if test "$host_cpu" != ia64
; then
11572 lt_prog_compiler_pic_CXX
='+Z'
11576 lt_prog_compiler_wl_CXX
='-Wl,'
11577 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11578 case "$host_cpu" in
11583 lt_prog_compiler_pic_CXX
='+Z'
11591 irix5
* | irix6
* | nonstopux
*)
11592 case $cc_basename in
11594 lt_prog_compiler_wl_CXX
='-Wl,'
11595 lt_prog_compiler_static_CXX
='-non_shared'
11596 # CC pic flag -KPIC is the default.
11603 case $cc_basename in
11606 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11607 lt_prog_compiler_pic_CXX
='-fPIC'
11611 lt_prog_compiler_wl_CXX
='-Wl,'
11612 lt_prog_compiler_pic_CXX
='-KPIC'
11613 lt_prog_compiler_static_CXX
='-static'
11617 # Make sure the PIC flag is empty. It appears that all Alpha
11618 # Linux and Compaq Tru64 Unix objects are PIC.
11619 lt_prog_compiler_pic_CXX
=
11620 lt_prog_compiler_static_CXX
='-non_shared'
11631 case $cc_basename in
11633 lt_prog_compiler_pic_CXX
='-W c,exportall'
11641 osf3
* | osf4
* | osf5
*)
11642 case $cc_basename in
11644 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11647 # Rational C++ 2.4.1
11648 lt_prog_compiler_pic_CXX
='-pic'
11651 # Digital/Compaq C++
11652 lt_prog_compiler_wl_CXX
='-Wl,'
11653 # Make sure the PIC flag is empty. It appears that all Alpha
11654 # Linux and Compaq Tru64 Unix objects are PIC.
11655 lt_prog_compiler_pic_CXX
=
11656 lt_prog_compiler_static_CXX
='-non_shared'
11665 case $cc_basename in
11667 lt_prog_compiler_pic_CXX
='-fPIC'
11674 case $cc_basename in
11676 # Sun C++ 4.2, 5.x and Centerline C++
11677 lt_prog_compiler_pic_CXX
='-KPIC'
11678 lt_prog_compiler_static_CXX
='-Bstatic'
11679 lt_prog_compiler_wl_CXX
='-Qoption ld '
11682 # Green Hills C++ Compiler
11683 lt_prog_compiler_pic_CXX
='-PIC'
11690 case $cc_basename in
11693 lt_prog_compiler_pic_CXX
='-pic'
11694 lt_prog_compiler_static_CXX
='-Bstatic'
11698 lt_prog_compiler_pic_CXX
='-pic'
11705 case $cc_basename in
11707 # NonStop-UX NCC 3.20
11708 lt_prog_compiler_pic_CXX
='-KPIC'
11719 lt_prog_compiler_can_build_shared_CXX
=no
11724 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11725 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11728 # Check to make sure the PIC flag actually works.
11730 if test -n "$lt_prog_compiler_pic_CXX"; then
11732 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11733 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11734 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 lt_prog_compiler_pic_works_CXX
=no
11738 ac_outfile
=conftest.
$ac_objext
11739 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11740 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11741 # Insert the option either (1) after the last *FLAGS variable, or
11742 # (2) before a word containing "conftest.", or (3) at the end.
11743 # Note that $ac_compile itself does not contain backslashes and begins
11744 # with a dollar sign (not a hyphen), so the echo should work correctly.
11745 # The option is referenced via a variable to avoid confusing sed.
11746 lt_compile
=`echo "$ac_compile" | $SED \
11747 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11749 -e 's:$: $lt_compiler_flag:'`
11750 (eval echo "\"\$as_me:11750: $lt_compile\"" >&5)
11751 (eval "$lt_compile" 2>conftest.err
)
11753 cat conftest.err
>&5
11754 echo "$as_me:11754: \$? = $ac_status" >&5
11755 if (exit $ac_status) && test -s "$ac_outfile"; then
11756 # The compiler can only warn and ignore the option if not recognized
11757 # So say no if there are warnings
11758 if test ! -s conftest.err
; then
11759 lt_prog_compiler_pic_works_CXX
=yes
11765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11766 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11768 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11769 case $lt_prog_compiler_pic_CXX in
11771 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11774 lt_prog_compiler_pic_CXX
=
11775 lt_prog_compiler_can_build_shared_CXX
=no
11780 # For platforms which do not support PIC, -DPIC is meaningless:
11782 lt_prog_compiler_pic_CXX
=
11785 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11789 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11790 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11791 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 lt_cv_prog_compiler_c_o_CXX
=no
11795 $rm -r conftest
2>/dev
/null
11799 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11801 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11802 # that will create temporary files in the current directory regardless of
11803 # the output directory. Thus, making CWD read-only will cause this test
11804 # to fail, enabling locking or at least warning the user not to do parallel
11808 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11809 # Insert the option either (1) after the last *FLAGS variable, or
11810 # (2) before a word containing "conftest.", or (3) at the end.
11811 # Note that $ac_compile itself does not contain backslashes and begins
11812 # with a dollar sign (not a hyphen), so the echo should work correctly.
11813 lt_compile
=`echo "$ac_compile" | $SED \
11814 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11816 -e 's:$: $lt_compiler_flag:'`
11817 (eval echo "\"\$as_me:11817: $lt_compile\"" >&5)
11818 (eval "$lt_compile" 2>out
/conftest.err
)
11820 cat out
/conftest.err
>&5
11821 echo "$as_me:11821: \$? = $ac_status" >&5
11822 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11824 # The compiler can only warn and ignore the option if not recognized
11825 # So say no if there are warnings
11826 if test ! -s out
/conftest.err
; then
11827 lt_cv_prog_compiler_c_o_CXX
=yes
11832 # SGI C++ compiler will create directory out/ii_files/ for
11833 # template instantiation
11834 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11835 $rm out
/* && rmdir out
11841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11845 hard_links
="nottested"
11846 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11847 # do not overwrite the value of need_locks provided by the user
11848 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11852 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11854 ln conftest.a conftest.b
2>&5 || hard_links
=no
11855 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11856 { echo "$as_me:$LINENO: result: $hard_links" >&5
11857 echo "${ECHO_T}$hard_links" >&6; }
11858 if test "$hard_links" = no
; then
11859 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11870 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11873 # If we're using GNU nm, then we don't want the "-C" option.
11874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11875 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11876 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'
11878 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'
11882 export_symbols_cmds_CXX
="$ltdll_cmds"
11885 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11888 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11892 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11893 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11894 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11896 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11897 if test "$GCC" = yes; then
11898 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11902 # Do we need to explicitly link libc?
11904 case "x$archive_cmds_need_lc_CXX" in
11906 # Assume -lc should be added
11907 archive_cmds_need_lc_CXX
=yes
11909 if test "$enable_shared" = yes && test "$GCC" = yes; then
11910 case $archive_cmds_CXX in
11912 # FIXME: we may have to deal with multi-command sequences.
11915 # Test whether the compiler implicitly links with -lc since on some
11916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11917 # to ld, don't add -lc before -lgcc.
11918 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11919 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11921 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11924 (eval $ac_compile) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } 2>conftest.err
; then
11930 libobjs
=conftest.
$ac_objext
11932 wl
=$lt_prog_compiler_wl_CXX
11938 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11939 allow_undefined_flag_CXX
=
11940 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11941 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }
11946 archive_cmds_need_lc_CXX
=no
11948 archive_cmds_need_lc_CXX
=yes
11950 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11952 cat conftest.err
1>&5
11955 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11956 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11963 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11964 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11965 library_names_spec
=
11966 libname_spec
='lib$name'
11970 postuninstall_cmds
=
11974 shlibpath_overrides_runpath
=unknown
11976 dynamic_linker
="$host_os ld.so"
11977 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11978 if test "$GCC" = yes; then
11979 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11980 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11981 # if the path contains ";" then we assume it to be the separator
11982 # otherwise default to the standard path separator (i.e. ":") - it is
11983 # assumed that no part of a normal pathname contains ";" but that should
11984 # okay in the real world where ";" in dirpaths is itself problematic.
11985 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11987 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11990 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11992 need_lib_prefix
=unknown
11993 hardcode_into_libs
=no
11995 # when you set need_version to no, make sure it does not cause -set_version
11996 # flags to be left without arguments
11997 need_version
=unknown
12002 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12003 shlibpath_var
=LIBPATH
12005 # AIX 3 has no versioning support, so we append a major version to the name.
12006 soname_spec
='${libname}${release}${shared_ext}$major'
12013 hardcode_into_libs
=yes
12014 if test "$host_cpu" = ia64
; then
12015 # AIX 5 supports IA64
12016 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12017 shlibpath_var
=LD_LIBRARY_PATH
12019 # With GCC up to 2.95.x, collect2 would create an import file
12020 # for dependence libraries. The import file would start with
12021 # the line `#! .'. This would cause the generated library to
12022 # depend on `.', always an invalid library. This was fixed in
12023 # development snapshots of GCC prior to 3.0.
12025 aix4 | aix4.
[01] | aix4.
[01].
*)
12026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12028 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12031 can_build_shared
=no
12035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12036 # soname into executable. Probably we can add versioning support to
12037 # collect2, so additional links can be useful in future.
12038 if test "$aix_use_runtimelinking" = yes; then
12039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12040 # instead of lib<name>.a to let people know that these are not
12041 # typical AIX shared libraries.
12042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12044 # We preserve .a as extension for shared libraries through AIX4.2
12045 # and later when we are not doing run time linking.
12046 library_names_spec
='${libname}${release}.a $libname.a'
12047 soname_spec
='${libname}${release}${shared_ext}$major'
12049 shlibpath_var
=LIBPATH
12054 library_names_spec
='$libname.ixlibrary $libname.a'
12055 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12056 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'
12060 library_names_spec
='${libname}${shared_ext}'
12061 dynamic_linker
="$host_os ld.so"
12062 shlibpath_var
=LIBRARY_PATH
12068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 soname_spec
='${libname}${release}${shared_ext}$major'
12070 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12071 shlibpath_var
=LD_LIBRARY_PATH
12072 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12073 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12074 # the default ld.so.conf also contains /usr/contrib/lib and
12075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12076 # libtool to hard-code these into programs
12079 cygwin
* | mingw
* | pw32
*)
12080 version_type
=windows
12085 case $GCC,$host_os in
12086 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12087 library_names_spec
='$libname.dll.a'
12088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12089 postinstall_cmds
='base_file=`basename \${file}`~
12090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12091 dldir=$destdir/`dirname \$dlpath`~
12092 test -d \$dldir || mkdir -p \$dldir~
12093 $install_prog $dir/$dlname \$dldir/$dlname'
12094 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12095 dlpath=$dir/\$dldll~
12097 shlibpath_overrides_runpath
=yes
12101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12102 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12103 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12106 # MinGW DLLs use traditional 'lib' prefix
12107 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12108 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12109 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12110 # It is most probably a Windows format PATH printed by
12111 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12112 # path with ; separators, and with drive letters. We can handle the
12113 # drive letters (cygwin fileutils understands them), so leave them,
12114 # especially as we might pass files found there to a mingw objdump,
12115 # which wouldn't understand a cygwinified path. Ahh.
12116 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12118 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12122 # pw32 DLLs use 'pw' prefix rather than 'lib'
12123 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12129 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12132 dynamic_linker
='Win32 ld.exe'
12133 # FIXME: first we should search . and the directory the executable is in
12137 darwin
* | rhapsody
*)
12138 dynamic_linker
="$host_os dyld"
12139 version_type
=darwin
12142 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12143 soname_spec
='${libname}${release}${major}$shared_ext'
12144 shlibpath_overrides_runpath
=yes
12145 shlibpath_var
=DYLD_LIBRARY_PATH
12146 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
12147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12148 if test "$GCC" = yes; then
12149 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12151 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12153 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12161 soname_spec
='${libname}${release}${shared_ext}$major'
12162 shlibpath_var
=LD_LIBRARY_PATH
12173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12174 soname_spec
='${libname}${release}${shared_ext}$major'
12175 shlibpath_var
=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath
=no
12177 hardcode_into_libs
=yes
12178 dynamic_linker
='GNU ld.so'
12182 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12183 version_type
=freebsd-
$objformat
12184 case $version_type in
12186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12191 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12195 shlibpath_var
=LD_LIBRARY_PATH
12198 shlibpath_overrides_runpath
=yes
12200 freebsd3.01
* | freebsdelf3.01
*)
12201 shlibpath_overrides_runpath
=yes
12202 hardcode_into_libs
=yes
12205 shlibpath_overrides_runpath
=no
12206 hardcode_into_libs
=yes
12215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12216 soname_spec
='${libname}${release}${shared_ext}$major'
12217 shlibpath_var
=LD_LIBRARY_PATH
12218 hardcode_into_libs
=yes
12221 hpux9
* | hpux10
* | hpux11
*)
12222 # Give a soname corresponding to the major version so that dld.sl refuses to
12223 # link against other versions.
12227 case "$host_cpu" in
12230 hardcode_into_libs
=yes
12231 dynamic_linker
="$host_os dld.so"
12232 shlibpath_var
=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec
='${libname}${release}${shared_ext}$major'
12236 if test "X$HPUX_IA64_MODE" = X32
; then
12237 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12239 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12241 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12245 hardcode_into_libs
=yes
12246 dynamic_linker
="$host_os dld.sl"
12247 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12248 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 soname_spec
='${libname}${release}${shared_ext}$major'
12251 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12252 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12256 dynamic_linker
="$host_os dld.sl"
12257 shlibpath_var
=SHLIB_PATH
12258 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec
='${libname}${release}${shared_ext}$major'
12263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12264 postinstall_cmds
='chmod 555 $lib'
12267 irix5
* | irix6
* | nonstopux
*)
12269 nonstopux
*) version_type
=nonstopux
;;
12271 if test "$lt_cv_prog_gnu_ld" = yes; then
12279 soname_spec
='${libname}${release}${shared_ext}$major'
12280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12282 irix5
* | nonstopux
*)
12283 libsuff
= shlibsuff
=
12286 case $LD in # libtool.m4 will add one of these switches to LD
12287 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12288 libsuff
= shlibsuff
= libmagic
=32-bit;;
12289 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12290 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12291 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12292 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12293 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12297 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12298 shlibpath_overrides_runpath
=no
12299 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12300 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12301 hardcode_into_libs
=yes
12304 # No shared lib support for Linux oldld, aout, or coff.
12305 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12309 # This must be Linux ELF.
12314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec
='${libname}${release}${shared_ext}$major'
12316 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12317 shlibpath_var
=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath
=no
12319 # This implies no fast_install, which is unacceptable.
12320 # Some rework will be needed to allow for fast_install
12321 # before this can be enabled.
12322 hardcode_into_libs
=yes
12324 # We used to test for /lib/ld.so.1 and disable shared libraries on
12325 # powerpc, because MkLinux only supported shared libraries with the
12326 # GNU dynamic linker. Since this was broken with cross compilers,
12327 # most powerpc-linux boxes support dynamic linking these days and
12328 # people can always --disable-shared, the test was removed, and we
12329 # assume the GNU/Linux dynamic linker is in use.
12330 dynamic_linker
='GNU/Linux ld.so'
12337 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12339 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12340 dynamic_linker
='NetBSD (a.out) ld.so'
12342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12343 soname_spec
='${libname}${release}${shared_ext}$major'
12344 dynamic_linker
='NetBSD ld.elf_so'
12346 shlibpath_var
=LD_LIBRARY_PATH
12347 shlibpath_overrides_runpath
=yes
12348 hardcode_into_libs
=yes
12353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 shlibpath_var
=LD_LIBRARY_PATH
12355 shlibpath_overrides_runpath
=yes
12362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363 soname_spec
='${libname}${release}${shared_ext}$major'
12364 shlibpath_var
=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath
=yes
12372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12373 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12374 shlibpath_var
=LD_LIBRARY_PATH
12375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12377 openbsd2.
[89] | openbsd2.
[89].
*)
12378 shlibpath_overrides_runpath
=no
12381 shlibpath_overrides_runpath
=yes
12385 shlibpath_overrides_runpath
=yes
12390 libname_spec
='$name'
12393 library_names_spec
='$libname${shared_ext} $libname.a'
12394 dynamic_linker
='OS/2 ld.exe'
12395 shlibpath_var
=LIBPATH
12398 osf3
* | osf4
* | osf5
*)
12402 soname_spec
='${libname}${release}${shared_ext}$major'
12403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 shlibpath_var
=LD_LIBRARY_PATH
12405 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12406 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12411 soname_spec
='${libname}${release}${shared_ext}$major'
12412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12413 shlibpath_var
=LD_LIBRARY_PATH
12420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12421 soname_spec
='${libname}${release}${shared_ext}$major'
12422 shlibpath_var
=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath
=yes
12424 hardcode_into_libs
=yes
12425 # ldd complains unless libraries are executable
12426 postinstall_cmds
='chmod +x $lib'
12431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12432 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12433 shlibpath_var
=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath
=yes
12435 if test "$with_gnu_ld" = yes; then
12441 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
12443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12444 soname_spec
='${libname}${release}${shared_ext}$major'
12445 shlibpath_var
=LD_LIBRARY_PATH
12446 case $host_vendor in
12448 shlibpath_overrides_runpath
=no
12450 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12451 runpath_var
=LD_RUN_PATH
12459 shlibpath_overrides_runpath
=no
12460 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12466 if test -d /usr
/nec
;then
12468 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12469 soname_spec
='$libname${shared_ext}.$major'
12470 shlibpath_var
=LD_LIBRARY_PATH
12476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12477 soname_spec
='${libname}${release}${shared_ext}$major'
12478 shlibpath_var
=LD_LIBRARY_PATH
12485 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12486 echo "${ECHO_T}$dynamic_linker" >&6; }
12487 test "$dynamic_linker" = no
&& can_build_shared
=no
12489 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12490 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12491 hardcode_action_CXX
=
12492 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12493 test -n "$runpath_var CXX" || \
12494 test "X$hardcode_automatic_CXX"="Xyes" ; then
12496 # We can hardcode non-existant directories.
12497 if test "$hardcode_direct_CXX" != no
&&
12498 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12499 # have to relink, otherwise we might link with an installed library
12500 # when we should be linking with a yet-to-be-installed one
12501 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12502 test "$hardcode_minus_L_CXX" != no
; then
12503 # Linking always hardcodes the temporary library directory.
12504 hardcode_action_CXX
=relink
12506 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12507 hardcode_action_CXX
=immediate
12510 # We cannot hardcode anything, or else we can only hardcode existing
12512 hardcode_action_CXX
=unsupported
12514 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12515 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12517 if test "$hardcode_action_CXX" = relink
; then
12518 # Fast installation is not supported
12519 enable_fast_install
=no
12520 elif test "$shlibpath_overrides_runpath" = yes ||
12521 test "$enable_shared" = no
; then
12522 # Fast installation is not necessary
12523 enable_fast_install
=needless
12528 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12529 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12530 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12531 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12532 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12533 { echo "$as_me:$LINENO: result: yes" >&5
12534 echo "${ECHO_T}yes" >&6; }
12536 # FIXME - insert some real tests, host_os isn't really good enough
12539 if test -n "$STRIP" ; then
12540 striplib
="$STRIP -x"
12541 { echo "$as_me:$LINENO: result: yes" >&5
12542 echo "${ECHO_T}yes" >&6; }
12544 { echo "$as_me:$LINENO: result: no" >&5
12545 echo "${ECHO_T}no" >&6; }
12549 { echo "$as_me:$LINENO: result: no" >&5
12550 echo "${ECHO_T}no" >&6; }
12555 if test "x$enable_dlopen" != xyes
; then
12556 enable_dlopen
=unknown
12557 enable_dlopen_self
=unknown
12558 enable_dlopen_self_static
=unknown
12565 lt_cv_dlopen
="load_add_on"
12567 lt_cv_dlopen_self
=yes
12571 lt_cv_dlopen
="LoadLibrary"
12576 lt_cv_dlopen
="dlopen"
12581 # if libdl is installed we need to link against it
12582 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12583 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12584 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 ac_check_lib_save_LIBS
=$LIBS
12589 cat >conftest.
$ac_ext <<_ACEOF
12592 cat confdefs.h
>>conftest.
$ac_ext
12593 cat >>conftest.
$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12596 /* Override any GCC internal prototype to avoid an error.
12597 Use char because int might match the return type of a GCC
12598 builtin and then its argument prototype would still apply. */
12611 rm -f conftest.
$ac_objext conftest
$ac_exeext
12612 if { (ac_try
="$ac_link"
12613 case "(($ac_try" in
12614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12628 *) ac_try_echo
=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try
='test -s conftest$ac_exeext'
12636 { (case "(($ac_try" in
12637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_lib_dl_dlopen=yes
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_cv_lib_dl_dlopen=no
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12657 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12658 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12659 if test $ac_cv_lib_dl_dlopen = yes; then
12660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12663 lt_cv_dlopen="dyld"
12665 lt_cv_dlopen_self=yes
12672 { echo "$as_me:$LINENO: checking for shl_load" >&5
12673 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12674 if test "${ac_cv_func_shl_load+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12685 #define shl_load innocuous_shl_load
12687 /* System header to define __stub macros and hopefully few prototypes,
12688 which can conflict with char shl_load (); below.
12689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690 <limits.h> exists even on freestanding compilers. */
12693 # include <limits.h>
12695 # include <assert.h>
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12707 /* The GNU C library defines this for functions which it implements
12708 to always fail with ENOSYS. Some functions are actually named
12709 something starting with __ and the normal name is an alias. */
12710 #if defined __stub_shl_load || defined __stub___shl_load
12717 return shl_load ();
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12726 *) ac_try_echo
=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1
>conftest.err
12733 cat conftest.err
>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12749 *) ac_try_echo
=$ac_try;;
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_func_shl_load
=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.
$ac_ext >&5
12761 ac_cv_func_shl_load
=no
12764 rm -f core conftest.err conftest.
$ac_objext \
12765 conftest
$ac_exeext conftest.
$ac_ext
12767 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12768 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12769 if test $ac_cv_func_shl_load = yes; then
12770 lt_cv_dlopen
="shl_load"
12772 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12773 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12774 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 ac_check_lib_save_LIBS
=$LIBS
12779 cat >conftest.
$ac_ext <<_ACEOF
12782 cat confdefs.h
>>conftest.
$ac_ext
12783 cat >>conftest.
$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12786 /* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12796 return shl_load ();
12801 rm -f conftest.
$ac_objext conftest
$ac_exeext
12802 if { (ac_try
="$ac_link"
12803 case "(($ac_try" in
12804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_link") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12818 *) ac_try_echo
=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try
='test -s conftest$ac_exeext'
12826 { (case "(($ac_try" in
12827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_try") 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_cv_lib_dld_shl_load=yes
12837 echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12840 ac_cv_lib_dld_shl_load=no
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 LIBS=$ac_check_lib_save_LIBS
12847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12848 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12849 if test $ac_cv_lib_dld_shl_load = yes; then
12850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12852 { echo "$as_me:$LINENO: checking for dlopen" >&5
12853 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12854 if test "${ac_cv_func_dlopen+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12865 #define dlopen innocuous_dlopen
12867 /* System header to define __stub macros and hopefully few prototypes,
12868 which can conflict with char dlopen (); below.
12869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12870 <limits.h> exists even on freestanding compilers. */
12873 # include <limits.h>
12875 # include <assert.h>
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12887 /* The GNU C library defines this for functions which it implements
12888 to always fail with ENOSYS. Some functions are actually named
12889 something starting with __ and the normal name is an alias. */
12890 #if defined __stub_dlopen || defined __stub___dlopen
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (ac_try="$ac_link"
12904 case "(($ac_try" in
12905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12906 *) ac_try_echo
=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_link") 2>conftest.er1
12911 grep -v '^ *+' conftest.er1
>conftest.err
12913 cat conftest.err
>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12917 { (case "(($ac_try" in
12918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_try") 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest$ac_exeext'
12927 { (case "(($ac_try" in
12928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12929 *) ac_try_echo
=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_try") 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_func_dlopen
=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.
$ac_ext >&5
12941 ac_cv_func_dlopen
=no
12944 rm -f core conftest.err conftest.
$ac_objext \
12945 conftest
$ac_exeext conftest.
$ac_ext
12947 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12948 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12949 if test $ac_cv_func_dlopen = yes; then
12950 lt_cv_dlopen
="dlopen"
12952 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 ac_check_lib_save_LIBS
=$LIBS
12959 cat >conftest.
$ac_ext <<_ACEOF
12962 cat confdefs.h
>>conftest.
$ac_ext
12963 cat >>conftest.
$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12981 rm -f conftest.
$ac_objext conftest
$ac_exeext
12982 if { (ac_try
="$ac_link"
12983 case "(($ac_try" in
12984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>conftest.er1
12990 grep -v '^ *+' conftest.er1 >conftest.err
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12998 *) ac_try_echo
=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } &&
13005 { ac_try
='test -s conftest$ac_exeext'
13006 { (case "(($ac_try" in
13007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_try") 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_lib_dl_dlopen=yes
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 ac_cv_lib_dl_dlopen=no
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LIBS=$ac_check_lib_save_LIBS
13027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13029 if test $ac_cv_lib_dl_dlopen = yes; then
13030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13032 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 ac_check_lib_save_LIBS=$LIBS
13038 LIBS="-lsvld $LIBS"
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (ac_try="$ac_link"
13063 case "(($ac_try" in
13064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13065 *) ac_try_echo
=$ac_try;;
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_link") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1
>conftest.err
13072 cat conftest.err
>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13076 { (case "(($ac_try" in
13077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_try") 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (case "(($ac_try" in
13087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13088 *) ac_try_echo
=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_cv_lib_svld_dlopen
=yes
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.
$ac_ext >&5
13100 ac_cv_lib_svld_dlopen
=no
13103 rm -f core conftest.err conftest.
$ac_objext \
13104 conftest
$ac_exeext conftest.
$ac_ext
13105 LIBS
=$ac_check_lib_save_LIBS
13107 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13108 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13109 if test $ac_cv_lib_svld_dlopen = yes; then
13110 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13112 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13113 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 ac_check_lib_save_LIBS
=$LIBS
13119 cat >conftest.
$ac_ext <<_ACEOF
13122 cat confdefs.h
>>conftest.
$ac_ext
13123 cat >>conftest.
$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13136 return dld_link ();
13141 rm -f conftest.
$ac_objext conftest
$ac_exeext
13142 if { (ac_try
="$ac_link"
13143 case "(($ac_try" in
13144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_link") 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13158 *) ac_try_echo
=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try
='test -s conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_lib_dld_dld_link=yes
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_cv_lib_dld_dld_link=no
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185 LIBS=$ac_check_lib_save_LIBS
13187 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13188 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13189 if test $ac_cv_lib_dld_dld_link = yes; then
13190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13211 if test "x$lt_cv_dlopen" != xno; then
13217 case $lt_cv_dlopen in
13219 save_CPPFLAGS="$CPPFLAGS"
13220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13222 save_LDFLAGS="$LDFLAGS"
13223 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13226 LIBS="$lt_cv_dlopen_libs $LIBS"
13228 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13229 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13230 if test "${lt_cv_dlopen_self+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 if test "$cross_compiling" = yes; then :
13234 lt_cv_dlopen_self=cross
13236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13237 lt_status=$lt_dlunknown
13238 cat > conftest.$ac_ext <<EOF
13239 #line 13239 "configure"
13240 #include "confdefs.h"
13249 # define LT_DLGLOBAL RTLD_GLOBAL
13252 # define LT_DLGLOBAL DL_GLOBAL
13254 # define LT_DLGLOBAL 0
13258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13259 find out it does not work in some platform. */
13260 #ifndef LT_DLLAZY_OR_NOW
13262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13265 # define LT_DLLAZY_OR_NOW DL_LAZY
13268 # define LT_DLLAZY_OR_NOW RTLD_NOW
13271 # define LT_DLLAZY_OR_NOW DL_NOW
13273 # define LT_DLLAZY_OR_NOW 0
13281 extern "C" void exit (int);
13284 void fnord() { int i=42;}
13287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288 int status = $lt_dlunknown;
13292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13294 /* dlclose (self); */
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301 (eval $ac_link) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13305 (./conftest; exit; ) 2>/dev/null
13307 case x$lt_status in
13308 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13309 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13310 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13313 # compilation failed
13314 lt_cv_dlopen_self=no
13321 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13322 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13324 if test "x$lt_cv_dlopen_self" = xyes; then
13325 LDFLAGS="$LDFLAGS $link_static_flag"
13326 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13327 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13328 if test "${lt_cv_dlopen_self_static+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 if test "$cross_compiling" = yes; then :
13332 lt_cv_dlopen_self_static=cross
13334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13335 lt_status=$lt_dlunknown
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13337 "configure"
13338 #include "confdefs.h"
13347 # define LT_DLGLOBAL RTLD_GLOBAL
13350 # define LT_DLGLOBAL DL_GLOBAL
13352 # define LT_DLGLOBAL 0
13356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13357 find out it does not work in some platform. */
13358 #ifndef LT_DLLAZY_OR_NOW
13360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13363 # define LT_DLLAZY_OR_NOW DL_LAZY
13366 # define LT_DLLAZY_OR_NOW RTLD_NOW
13369 # define LT_DLLAZY_OR_NOW DL_NOW
13371 # define LT_DLLAZY_OR_NOW 0
13379 extern "C" void exit (int);
13382 void fnord() { int i=42;}
13385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13386 int status = $lt_dlunknown;
13390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13391 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13392 /* dlclose (self); */
13398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13399 (eval $ac_link) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13403 (./conftest; exit; ) 2>/dev/null
13405 case x$lt_status in
13406 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13407 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13408 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13411 # compilation failed
13412 lt_cv_dlopen_self_static=no
13419 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13420 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13423 CPPFLAGS="$save_CPPFLAGS"
13424 LDFLAGS="$save_LDFLAGS"
13429 case $lt_cv_dlopen_self in
13430 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13431 *) enable_dlopen_self=unknown ;;
13434 case $lt_cv_dlopen_self_static in
13435 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13436 *) enable_dlopen_self_static=unknown ;;
13441 # The else clause should only fire when bootstrapping the
13442 # libtool distribution, otherwise you forgot to ship ltmain.sh
13443 # with your package, and you will get complaints that there are
13444 # no rules to generate ltmain.sh.
13445 if test -f "$ltmain"; then
13446 # See if we are running on zsh, and set the options which allow our commands through
13447 # without removal of \ escapes.
13448 if test -n "${ZSH_VERSION+set}" ; then
13449 setopt NO_GLOB_SUBST
13451 # Now quote all the things that may contain metacharacters while being
13452 # careful not to overquote the AC_SUBSTed values. We take copies of the
13453 # variables and quote the copies for generation of the libtool script.
13454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13457 deplibs_check_method reload_flag reload_cmds need_locks \
13458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13459 lt_cv_sys_global_symbol_to_c_name_address \
13460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13461 old_postinstall_cmds old_postuninstall_cmds \
13465 lt_prog_compiler_wl_CXX \
13466 lt_prog_compiler_pic_CXX \
13467 lt_prog_compiler_static_CXX \
13468 lt_prog_compiler_no_builtin_flag_CXX \
13469 export_dynamic_flag_spec_CXX \
13470 thread_safe_flag_spec_CXX \
13471 whole_archive_flag_spec_CXX \
13472 enable_shared_with_static_runtimes_CXX \
13473 old_archive_cmds_CXX \
13474 old_archive_from_new_cmds_CXX \
13475 predep_objects_CXX \
13476 postdep_objects_CXX \
13479 compiler_lib_search_path_CXX \
13481 archive_expsym_cmds_CXX \
13482 postinstall_cmds_CXX \
13483 postuninstall_cmds_CXX \
13484 old_archive_from_expsyms_cmds_CXX \
13485 allow_undefined_flag_CXX \
13486 no_undefined_flag_CXX \
13487 export_symbols_cmds_CXX \
13488 hardcode_libdir_flag_spec_CXX \
13489 hardcode_libdir_flag_spec_ld_CXX \
13490 hardcode_libdir_separator_CXX \
13491 hardcode_automatic_CXX \
13493 module_expsym_cmds_CXX \
13494 lt_cv_prog_compiler_c_o_CXX \
13495 exclude_expsyms_CXX \
13496 include_expsyms_CXX; do
13499 old_archive_cmds_CXX | \
13500 old_archive_from_new_cmds_CXX | \
13501 archive_cmds_CXX | \
13502 archive_expsym_cmds_CXX | \
13503 module_cmds_CXX | \
13504 module_expsym_cmds_CXX | \
13505 old_archive_from_expsyms_cmds_CXX | \
13506 export_symbols_cmds_CXX | \
13507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13508 postinstall_cmds | postuninstall_cmds | \
13509 old_postinstall_cmds | old_postuninstall_cmds | \
13510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13511 # Double-quote double-evaled strings.
13512 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
13515 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
13521 *'\$0 --fallback-echo"')
13522 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13528 cat <<__EOF__ >> "$cfgfile"
13529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13531 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
13533 # Shell to use when invoking shell scripts.
13536 # Whether or not to build shared libraries.
13537 build_libtool_libs=$enable_shared
13539 # Whether or not to build static libraries.
13540 build_old_libs=$enable_static
13542 # Whether or not to add -lc for building shared libraries.
13543 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13545 # Whether or not to disallow shared libs when runtime libs are static
13546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13548 # Whether or not to optimize for fast installation.
13549 fast_install=$enable_fast_install
13552 host_alias=$host_alias
13555 # An echo program that does not interpret backslashes.
13560 AR_FLAGS=$lt_AR_FLAGS
13565 # A language-specific compiler.
13566 CC=$lt_compiler_CXX
13568 # Is the compiler the GNU C compiler?
13574 # The linker used to build libraries.
13577 # Whether we need hard or soft links.
13580 # A BSD-compatible nm program.
13583 # A symbol stripping program
13586 # Used to examine libraries when file_magic_cmd begins "file"
13587 MAGIC_CMD=$MAGIC_CMD
13589 # Used on cygwin: DLL creation program.
13592 # Used on cygwin: object dumper.
13595 # Used on cygwin: assembler.
13598 # The name of the directory that contains temporary libtool files.
13601 # How to create reloadable object files.
13602 reload_flag=$lt_reload_flag
13603 reload_cmds=$lt_reload_cmds
13605 # How to pass a linker flag through the compiler.
13606 wl=$lt_lt_prog_compiler_wl_CXX
13608 # Object file suffix (normally "o").
13609 objext="$ac_objext"
13611 # Old archive suffix (normally "a").
13614 # Shared library suffix (normally ".so").
13617 # Executable file suffix (normally "").
13620 # Additional compiler flags for building library objects.
13621 pic_flag=$lt_lt_prog_compiler_pic_CXX
13624 # What is the maximum length of a command?
13625 max_cmd_len=$lt_cv_sys_max_cmd_len
13627 # Does compiler simultaneously support -c and -o options?
13628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13630 # Must we lock files when doing compilation ?
13631 need_locks=$lt_need_locks
13633 # Do we need the lib prefix for modules?
13634 need_lib_prefix=$need_lib_prefix
13636 # Do we need a version for libraries?
13637 need_version=$need_version
13639 # Whether dlopen is supported.
13640 dlopen_support=$enable_dlopen
13642 # Whether dlopen of programs is supported.
13643 dlopen_self=$enable_dlopen_self
13645 # Whether dlopen of statically linked programs is supported.
13646 dlopen_self_static=$enable_dlopen_self_static
13648 # Compiler flag to prevent dynamic linking.
13649 link_static_flag=$lt_lt_prog_compiler_static_CXX
13651 # Compiler flag to turn off builtin functions.
13652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13654 # Compiler flag to allow reflexive dlopens.
13655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13657 # Compiler flag to generate shared objects directly from archives.
13658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13660 # Compiler flag to generate thread-safe objects.
13661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13663 # Library versioning type.
13664 version_type=$version_type
13666 # Format of library name prefix.
13667 libname_spec=$lt_libname_spec
13669 # List of archive names. First name is the real one, the rest are links.
13670 # The last name is the one that the linker finds with -lNAME.
13671 library_names_spec=$lt_library_names_spec
13673 # The coded name of the library, if different from the real name.
13674 soname_spec=$lt_soname_spec
13676 # Commands used to build and install an old-style archive.
13678 old_archive_cmds=$lt_old_archive_cmds_CXX
13679 old_postinstall_cmds=$lt_old_postinstall_cmds
13680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13682 # Create an old-style archive from a shared archive.
13683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13685 # Create a temporary old-style archive to link instead of a shared archive.
13686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13688 # Commands used to build and install a shared archive.
13689 archive_cmds=$lt_archive_cmds_CXX
13690 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13691 postinstall_cmds=$lt_postinstall_cmds
13692 postuninstall_cmds=$lt_postuninstall_cmds
13694 # Commands used to build a loadable module (assumed same as above if empty)
13695 module_cmds=$lt_module_cmds_CXX
13696 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13698 # Commands to strip libraries.
13699 old_striplib=$lt_old_striplib
13700 striplib=$lt_striplib
13702 # Dependencies to place before the objects being linked to create a
13704 predep_objects=$lt_predep_objects_CXX
13706 # Dependencies to place after the objects being linked to create a
13708 postdep_objects=$lt_postdep_objects_CXX
13710 # Dependencies to place before the objects being linked to create a
13712 predeps=$lt_predeps_CXX
13714 # Dependencies to place after the objects being linked to create a
13716 postdeps=$lt_postdeps_CXX
13718 # The library search path used internally by the compiler when linking
13719 # a shared library.
13720 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13722 # Method to check whether dependent libraries are shared objects.
13723 deplibs_check_method=$lt_deplibs_check_method
13725 # Command to use when deplibs_check_method == file_magic.
13726 file_magic_cmd=$lt_file_magic_cmd
13728 # Flag that allows shared libraries with undefined symbols to be built.
13729 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13731 # Flag that forces no undefined symbols.
13732 no_undefined_flag=$lt_no_undefined_flag_CXX
13734 # Commands used to finish a libtool library installation in a directory.
13735 finish_cmds=$lt_finish_cmds
13737 # Same as above, but a single script fragment to be evaled but not shown.
13738 finish_eval=$lt_finish_eval
13740 # Take the output of nm and produce a listing of raw symbols and C names.
13741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13743 # Transform the output of nm in a proper C declaration
13744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13746 # Transform the output of nm in a C name address pair
13747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13749 # This is the shared library runtime path variable.
13750 runpath_var=$runpath_var
13752 # This is the shared library path variable.
13753 shlibpath_var=$shlibpath_var
13755 # Is shlibpath searched before the hard-coded library search path?
13756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13758 # How to hardcode a shared library path into an executable.
13759 hardcode_action=$hardcode_action_CXX
13761 # Whether we should hardcode library paths into libraries.
13762 hardcode_into_libs=$hardcode_into_libs
13764 # Flag to hardcode \$libdir into a binary during linking.
13765 # This must work even if \$libdir does not exist.
13766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13768 # If ld is used when linking, flag to hardcode \$libdir into
13769 # a binary during linking. This must work even if \$libdir does
13771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13773 # Whether we need a single -rpath flag with a separated argument.
13774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13777 # resulting binary.
13778 hardcode_direct=$hardcode_direct_CXX
13780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13781 # resulting binary.
13782 hardcode_minus_L=$hardcode_minus_L_CXX
13784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13785 # the resulting binary.
13786 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13788 # Set to yes if building a shared library automatically hardcodes DIR into the library
13789 # and all subsequent libraries and executables linked against it.
13790 hardcode_automatic=$hardcode_automatic_CXX
13792 # Variables whose values should be saved in libtool wrapper scripts and
13793 # restored at relink time.
13794 variables_saved_for_relink="$variables_saved_for_relink"
13796 # Whether libtool must link a program against all its dependency libraries.
13797 link_all_deplibs=$link_all_deplibs_CXX
13799 # Compile-time system search path for libraries
13800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13802 # Run-time system search path for libraries
13803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13805 # Fix the shell variable \$srcfile for the compiler.
13806 fix_srcfile_path="$fix_srcfile_path_CXX"
13808 # Set to yes if exported symbols are required.
13809 always_export_symbols=$always_export_symbols_CXX
13811 # The commands to list exported symbols.
13812 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13814 # The commands to extract the exported symbol list from a shared archive.
13815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13817 # Symbols that should not be listed in the preloaded symbols.
13818 exclude_expsyms=$lt_exclude_expsyms_CXX
13820 # Symbols that must always be exported.
13821 include_expsyms=$lt_include_expsyms_CXX
13823 # ### END LIBTOOL TAG CONFIG: $tagname
13829 # If there is no Makefile yet, we rely on a make rule to execute
13830 # `config.status
--recheck' to rerun these tests and create the
13831 # libtool script then.
13832 test -f Makefile && make "$ltmain"
13837 ac_cpp='$CPP $CPPFLAGS'
13838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13839 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13846 with_gnu_ldcxx=$with_gnu_ld
13847 with_gnu_ld=$lt_save_with_gnu_ld
13848 lt_cv_path_LDCXX=$lt_cv_path_LD
13849 lt_cv_path_LD=$lt_save_path_LD
13850 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13851 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13859 if test -n "$F77" && test "X$F77" != "Xno"; then
13862 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13863 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13864 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13867 archive_cmds_need_lc_F77=no
13868 allow_undefined_flag_F77=
13869 always_export_symbols_F77=no
13870 archive_expsym_cmds_F77=
13871 export_dynamic_flag_spec_F77=
13872 hardcode_direct_F77=no
13873 hardcode_libdir_flag_spec_F77=
13874 hardcode_libdir_flag_spec_ld_F77=
13875 hardcode_libdir_separator_F77=
13876 hardcode_minus_L_F77=no
13877 hardcode_automatic_F77=no
13879 module_expsym_cmds_F77=
13880 link_all_deplibs_F77=unknown
13881 old_archive_cmds_F77=$old_archive_cmds
13882 no_undefined_flag_F77=
13883 whole_archive_flag_spec_F77=
13884 enable_shared_with_static_runtimes_F77=no
13886 # Source file extension for f77 test sources.
13889 # Object file extension for compiled f77 test sources.
13893 # Code to be used in simple compile tests
13894 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13896 # Code to be used in simple link tests
13897 lt_simple_link_test_code=" program t\n end\n"
13899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13901 # If no C compiler was specified, use CC.
13904 # Allow CC to be a program name with arguments.
13908 # Allow CC to be a program name with arguments.
13913 cc_basename=`$echo X"$compiler" | $Xsed -e 's
%^.
*/%%'`
13915 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13916 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13917 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13918 echo "${ECHO_T}$can_build_shared" >&6; }
13920 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13921 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13922 test "$can_build_shared" = "no" && enable_shared=no
13924 # On AIX, shared libraries and static libraries use the same namespace, and
13925 # are all built from PIC.
13928 test "$enable_shared" = yes && enable_static=no
13929 if test -n "$RANLIB"; then
13930 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13931 postinstall_cmds='$RANLIB $lib'
13935 test "$enable_shared" = yes && enable_static=no
13938 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13939 echo "${ECHO_T}$enable_shared" >&6; }
13941 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13942 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13943 # Make sure either enable_shared or enable_static is yes.
13944 test "$enable_shared" = yes || enable_static=yes
13945 { echo "$as_me:$LINENO: result: $enable_static" >&5
13946 echo "${ECHO_T}$enable_static" >&6; }
13948 test "$ld_shlibs_F77" = no && can_build_shared=no
13953 lt_prog_compiler_wl_F77=
13954 lt_prog_compiler_pic_F77=
13955 lt_prog_compiler_static_F77=
13957 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13960 if test "$GCC" = yes; then
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 lt_prog_compiler_static_F77='-static'
13966 # All AIX code is PIC.
13967 if test "$host_cpu" = ia64; then
13968 # AIX 5 now supports IA64 processor
13969 lt_prog_compiler_static_F77='-Bstatic'
13974 # FIXME: we need at least 68020 code to build shared libraries, but
13975 # adding the `-m68020' flag to GCC prevents building anything better
,
13977 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13980 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13981 # PIC is the default for these OSes.
13984 mingw
* | pw32
* | os2
*)
13985 # This hack is so that the source file can tell whether it is being
13986 # built for inclusion in a dll (and should export symbols for example).
13987 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13990 darwin
* | rhapsody
*)
13991 # PIC is the default on this platform
13992 # Common symbols not allowed in MH_DYLIB files
13993 lt_prog_compiler_pic_F77
='-fno-common'
13997 # Just because we use GCC doesn't mean we suddenly get shared libraries
13998 # on systems that don't support them.
13999 lt_prog_compiler_can_build_shared_F77
=no
14004 if test -d /usr
/nec
; then
14005 lt_prog_compiler_pic_F77
=-Kconform_pic
14010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14011 # not for PA HP-UX.
14012 case "$host_cpu" in
14017 lt_prog_compiler_pic_F77
='-fPIC'
14023 lt_prog_compiler_pic_F77
='-fPIC'
14027 # PORTME Check for flag to pass linker flags through the system compiler.
14030 lt_prog_compiler_wl_F77
='-Wl,'
14031 if test "$host_cpu" = ia64
; then
14032 # AIX 5 now supports IA64 processor
14033 lt_prog_compiler_static_F77
='-Bstatic'
14035 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14039 mingw
* | pw32
* | os2
*)
14040 # This hack is so that the source file can tell whether it is being
14041 # built for inclusion in a dll (and should export symbols for example).
14042 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14045 hpux9
* | hpux10
* | hpux11
*)
14046 lt_prog_compiler_wl_F77
='-Wl,'
14047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14048 # not for PA HP-UX.
14049 case "$host_cpu" in
14054 lt_prog_compiler_pic_F77
='+Z'
14057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14058 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14061 irix5
* | irix6
* | nonstopux
*)
14062 lt_prog_compiler_wl_F77
='-Wl,'
14063 # PIC (with -KPIC) is the default.
14064 lt_prog_compiler_static_F77
='-non_shared'
14068 lt_prog_compiler_pic_F77
='-KPIC'
14069 lt_prog_compiler_static_F77
='-Bstatic'
14075 lt_prog_compiler_wl_F77
='-Wl,'
14076 lt_prog_compiler_pic_F77
='-KPIC'
14077 lt_prog_compiler_static_F77
='-static'
14080 lt_prog_compiler_wl_F77
='-Wl,'
14081 # All Alpha code is PIC.
14082 lt_prog_compiler_static_F77
='-non_shared'
14087 osf3
* | osf4
* | osf5
*)
14088 lt_prog_compiler_wl_F77
='-Wl,'
14089 # All OSF/1 code is PIC.
14090 lt_prog_compiler_static_F77
='-non_shared'
14094 lt_prog_compiler_pic_F77
='-Kpic'
14095 lt_prog_compiler_static_F77
='-dn'
14099 lt_prog_compiler_wl_F77
='-Wl,'
14100 lt_prog_compiler_pic_F77
='-KPIC'
14101 lt_prog_compiler_static_F77
='-Bstatic'
14105 lt_prog_compiler_wl_F77
='-Qoption ld '
14106 lt_prog_compiler_pic_F77
='-PIC'
14107 lt_prog_compiler_static_F77
='-Bstatic'
14110 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
14111 lt_prog_compiler_wl_F77
='-Wl,'
14112 lt_prog_compiler_pic_F77
='-KPIC'
14113 lt_prog_compiler_static_F77
='-Bstatic'
14117 if test -d /usr
/nec
;then
14118 lt_prog_compiler_pic_F77
='-Kconform_pic'
14119 lt_prog_compiler_static_F77
='-Bstatic'
14124 lt_prog_compiler_pic_F77
='-pic'
14125 lt_prog_compiler_static_F77
='-Bstatic'
14129 lt_prog_compiler_can_build_shared_F77
=no
14134 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14135 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14138 # Check to make sure the PIC flag actually works.
14140 if test -n "$lt_prog_compiler_pic_F77"; then
14142 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14143 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14144 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 lt_prog_compiler_pic_works_F77
=no
14148 ac_outfile
=conftest.
$ac_objext
14149 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14150 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14151 # Insert the option either (1) after the last *FLAGS variable, or
14152 # (2) before a word containing "conftest.", or (3) at the end.
14153 # Note that $ac_compile itself does not contain backslashes and begins
14154 # with a dollar sign (not a hyphen), so the echo should work correctly.
14155 # The option is referenced via a variable to avoid confusing sed.
14156 lt_compile
=`echo "$ac_compile" | $SED \
14157 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159 -e 's:$: $lt_compiler_flag:'`
14160 (eval echo "\"\$as_me:14160: $lt_compile\"" >&5)
14161 (eval "$lt_compile" 2>conftest.err
)
14163 cat conftest.err
>&5
14164 echo "$as_me:14164: \$? = $ac_status" >&5
14165 if (exit $ac_status) && test -s "$ac_outfile"; then
14166 # The compiler can only warn and ignore the option if not recognized
14167 # So say no if there are warnings
14168 if test ! -s conftest.err
; then
14169 lt_prog_compiler_pic_works_F77
=yes
14175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14176 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14178 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14179 case $lt_prog_compiler_pic_F77 in
14181 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14184 lt_prog_compiler_pic_F77
=
14185 lt_prog_compiler_can_build_shared_F77
=no
14190 # For platforms which do not support PIC, -DPIC is meaningless:
14192 lt_prog_compiler_pic_F77
=
14195 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14199 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14200 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14201 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 lt_cv_prog_compiler_c_o_F77
=no
14205 $rm -r conftest
2>/dev
/null
14209 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14211 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14212 # that will create temporary files in the current directory regardless of
14213 # the output directory. Thus, making CWD read-only will cause this test
14214 # to fail, enabling locking or at least warning the user not to do parallel
14218 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14219 # Insert the option either (1) after the last *FLAGS variable, or
14220 # (2) before a word containing "conftest.", or (3) at the end.
14221 # Note that $ac_compile itself does not contain backslashes and begins
14222 # with a dollar sign (not a hyphen), so the echo should work correctly.
14223 lt_compile
=`echo "$ac_compile" | $SED \
14224 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14226 -e 's:$: $lt_compiler_flag:'`
14227 (eval echo "\"\$as_me:14227: $lt_compile\"" >&5)
14228 (eval "$lt_compile" 2>out
/conftest.err
)
14230 cat out
/conftest.err
>&5
14231 echo "$as_me:14231: \$? = $ac_status" >&5
14232 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14234 # The compiler can only warn and ignore the option if not recognized
14235 # So say no if there are warnings
14236 if test ! -s out
/conftest.err
; then
14237 lt_cv_prog_compiler_c_o_F77
=yes
14242 # SGI C++ compiler will create directory out/ii_files/ for
14243 # template instantiation
14244 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14245 $rm out
/* && rmdir out
14251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14255 hard_links
="nottested"
14256 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14257 # do not overwrite the value of need_locks provided by the user
14258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14262 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14264 ln conftest.a conftest.b
2>&5 || hard_links
=no
14265 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14266 { echo "$as_me:$LINENO: result: $hard_links" >&5
14267 echo "${ECHO_T}$hard_links" >&6; }
14268 if test "$hard_links" = no
; then
14269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14281 allow_undefined_flag_F77
=
14282 enable_shared_with_static_runtimes_F77
=no
14284 archive_expsym_cmds_F77
=
14285 old_archive_From_new_cmds_F77
=
14286 old_archive_from_expsyms_cmds_F77
=
14287 export_dynamic_flag_spec_F77
=
14288 whole_archive_flag_spec_F77
=
14289 thread_safe_flag_spec_F77
=
14290 hardcode_libdir_flag_spec_F77
=
14291 hardcode_libdir_flag_spec_ld_F77
=
14292 hardcode_libdir_separator_F77
=
14293 hardcode_direct_F77
=no
14294 hardcode_minus_L_F77
=no
14295 hardcode_shlibpath_var_F77
=unsupported
14296 link_all_deplibs_F77
=unknown
14297 hardcode_automatic_F77
=no
14299 module_expsym_cmds_F77
=
14300 always_export_symbols_F77
=no
14301 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14302 # include_expsyms should be a list of space-separated symbols to be *always*
14303 # included in the symbol list
14304 include_expsyms_F77
=
14305 # exclude_expsyms can be an extended regexp of symbols to exclude
14306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14308 # as well as any symbol that contains `d'.
14309 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14311 # platforms (ab)use it in PIC code, but their linkers get confused if
14312 # the symbol is explicitly referenced. Since portable code cannot
14313 # rely on this symbol name, it's probably fine to never include it in
14314 # preloaded symbol tables.
14315 extract_expsyms_cmds
=
14318 cygwin
* | mingw
* | pw32
*)
14319 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14320 # When not using gcc, we currently assume that we are using
14321 # Microsoft Visual C++.
14322 if test "$GCC" != yes; then
14332 if test "$with_gnu_ld" = yes; then
14333 # If archive_cmds runs LD, not CC, wlarc should be empty
14336 # See if GNU ld supports shared libraries.
14338 aix3
* | aix4
* | aix5
*)
14339 # On AIX/PPC, the GNU linker is very broken
14340 if test "$host_cpu" != ia64
; then
14344 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14345 *** to be unable to reliably create shared libraries on AIX.
14346 *** Therefore, libtool is disabling shared libraries support. If you
14347 *** really care for shared libraries, you may want to modify your PATH
14348 *** so that a non-GNU linker is found, and then restart.
14355 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)'
14356 hardcode_libdir_flag_spec_F77
='-L$libdir'
14357 hardcode_minus_L_F77
=yes
14359 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14360 # that the semantics of dynamic libraries on AmigaOS, at least up
14361 # to version 4, is to share data among multiple programs linked
14362 # with the same dynamic library. Since this doesn't match the
14363 # behavior of shared libraries on other platforms, we can't use
14369 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14370 allow_undefined_flag_F77
=unsupported
14371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14372 # support --undefined. This deserves some investigation. FIXME
14373 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 cygwin
* | mingw
* | pw32
*)
14380 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14381 # as there is no search path for DLLs.
14382 hardcode_libdir_flag_spec_F77
='-L$libdir'
14383 allow_undefined_flag_F77
=unsupported
14384 always_export_symbols_F77
=no
14385 enable_shared_with_static_runtimes_F77
=yes
14386 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14388 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14389 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14390 # If the export-symbols file already is a .def file (1st line
14391 # is EXPORTS), use it as is; otherwise, prepend...
14392 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14393 cp $export_symbols $output_objdir/$soname.def;
14395 echo EXPORTS > $output_objdir/$soname.def;
14396 cat $export_symbols >> $output_objdir/$soname.def;
14398 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14405 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14406 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14409 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14415 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14420 *** create shared libraries on Solaris systems. Therefore, libtool
14421 *** is disabling shared libraries support. We urge you to upgrade GNU
14422 *** binutils to release 2.9.1 or newer. Another option is to modify
14423 *** your PATH or compiler configuration so that the native linker is
14424 *** used, and then restart.
14427 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14428 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14436 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14438 hardcode_direct_F77
=yes
14439 hardcode_shlibpath_var_F77
=no
14443 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
14444 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445 archive_cmds_F77
="$tmp_archive_cmds"
14446 supports_anon_versioning
=no
14447 case `$LD -v 2>/dev/null` in
14448 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14449 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14450 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14451 *\
2.11.
*) ;; # other 2.11 versions
14452 *) supports_anon_versioning
=yes ;;
14454 if test $supports_anon_versioning = yes; then
14455 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14457 $echo "local: *; };" >> $output_objdir/$libname.ver~
14458 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14460 archive_expsym_cmds_F77
="$tmp_archive_cmds"
14468 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14469 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14477 if test "$ld_shlibs_F77" = yes; then
14478 runpath_var
=LD_RUN_PATH
14479 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14480 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14481 # ancient GNU ld didn't support --whole-archive et. al.
14482 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14483 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14485 whole_archive_flag_spec_F77
=
14489 # PORTME fill in a description of your system's linker (not GNU ld)
14492 allow_undefined_flag_F77
=unsupported
14493 always_export_symbols_F77
=yes
14494 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'
14495 # Note: this linker hardcodes the directories in LIBPATH if there
14496 # are no directories specified by -L.
14497 hardcode_minus_L_F77
=yes
14498 if test "$GCC" = yes && test -z "$link_static_flag"; then
14499 # Neither direct hardcoding nor static linking is supported with a
14501 hardcode_direct_F77
=unsupported
14506 if test "$host_cpu" = ia64
; then
14507 # On IA64, the linker does run time linking by default, so we don't
14508 # have to do anything special.
14509 aix_use_runtimelinking
=no
14510 exp_sym_flag
='-Bexport'
14513 # If we're using GNU nm, then we don't want the "-C" option.
14514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14515 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14516 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'
14518 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'
14520 aix_use_runtimelinking
=no
14522 # Test if we are trying to use run time linking or normal
14523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14524 # need to do runtime linking.
14525 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14526 for ld_flag
in $LDFLAGS; do
14527 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14528 aix_use_runtimelinking
=yes
14534 exp_sym_flag
='-bexport'
14535 no_entry_flag
='-bnoentry'
14538 # When large executables or shared objects are built, AIX ld can
14539 # have problems creating the table of contents. If linking a library
14540 # or program results in "error TOC overflow" add -mminimal-toc to
14541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14544 archive_cmds_F77
=''
14545 hardcode_direct_F77
=yes
14546 hardcode_libdir_separator_F77
=':'
14547 link_all_deplibs_F77
=yes
14549 if test "$GCC" = yes; then
14550 case $host_os in aix4.012|aix4.012.
*)
14551 # We only want to do this on AIX 4.2 and lower, the check
14552 # below for broken collect2 doesn't work under 4.3+
14553 collect2name
=`${CC} -print-prog-name=collect2`
14554 if test -f "$collect2name" && \
14555 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14557 # We have reworked collect2
14558 hardcode_direct_F77
=yes
14560 # We have old collect2
14561 hardcode_direct_F77
=unsupported
14562 # It fails to find uninstalled libraries when the uninstalled
14563 # path is not listed in the libpath. Setting hardcode_minus_L
14564 # to unsupported forces relinking
14565 hardcode_minus_L_F77
=yes
14566 hardcode_libdir_flag_spec_F77
='-L$libdir'
14567 hardcode_libdir_separator_F77
=
14570 shared_flag
='-shared'
14573 if test "$host_cpu" = ia64
; then
14574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14575 # chokes on -Wl,-G. The following line is correct:
14578 if test "$aix_use_runtimelinking" = yes; then
14579 shared_flag
='${wl}-G'
14581 shared_flag
='${wl}-bM:SRE'
14586 # It seems that -bexpall does not export symbols beginning with
14587 # underscore (_), so it is better to generate a list of symbols to export.
14588 always_export_symbols_F77
=yes
14589 if test "$aix_use_runtimelinking" = yes; then
14590 # Warning - without using the other runtime loading flags (-brtl),
14591 # -berok will link without error, but may produce a broken library.
14592 allow_undefined_flag_F77
='-berok'
14593 # Determine the default libpath from the value encoded in an empty executable.
14594 cat >conftest.
$ac_ext <<_ACEOF
14599 rm -f conftest.
$ac_objext conftest
$ac_exeext
14600 if { (ac_try
="$ac_link"
14601 case "(($ac_try" in
14602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>conftest.er1
14608 grep -v '^ *+' conftest.er1 >conftest.err
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14614 { (case "(($ac_try" in
14615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14616 *) ac_try_echo
=$ac_try;;
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_try") 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; } &&
14623 { ac_try
='test -s conftest$ac_exeext'
14624 { (case "(($ac_try" in
14625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14634 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14636 # Check for a 64-bit object if we didn't find anything.
14637 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14650 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14651 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14653 if test "$host_cpu" = ia64
; then
14654 hardcode_libdir_flag_spec_F77
='${wl}-R $libdir:/usr/lib:/lib'
14655 allow_undefined_flag_F77
="-z nodefs"
14656 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14658 # Determine the default libpath from the value encoded in an empty executable.
14659 cat >conftest.$ac_ext <<_ACEOF
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (ac_try="$ac_link"
14666 case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_link") 2>conftest.er1
14673 grep -v '^
*+' conftest.er1 >conftest.err
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try='test -z "$ac_f77_werror_flag" ||
test ! -s conftest.err
'
14679 { (case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_try") 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest
$ac_exeext'
14689 { (case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_try") 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
14701 # Check for a 64-bit object if we didn't
find anything.
14702 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.
$ac_ext >&5
14711 rm -f core conftest.err conftest.
$ac_objext \
14712 conftest
$ac_exeext conftest.
$ac_ext
14713 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14715 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14716 # Warning - without using the other run time loading flags,
14717 # -berok will link without error, but may produce a broken library.
14718 no_undefined_flag_F77
=' ${wl}-bernotok'
14719 allow_undefined_flag_F77
=' ${wl}-berok'
14720 # -bexpall does not export symbols beginning with underscore (_)
14721 always_export_symbols_F77
=yes
14722 # Exported symbols can be pulled into shared objects from archives
14723 whole_archive_flag_spec_F77
=' '
14724 archive_cmds_need_lc_F77
=yes
14725 # This is similar to how AIX traditionally builds it's shared libraries.
14726 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14732 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)'
14733 hardcode_libdir_flag_spec_F77
='-L$libdir'
14734 hardcode_minus_L_F77
=yes
14735 # see comment about different semantics on the GNU ld section
14740 export_dynamic_flag_spec_F77
=-rdynamic
14743 cygwin
* | mingw
* | pw32
*)
14744 # When not using gcc, we currently assume that we are using
14745 # Microsoft Visual C++.
14746 # hardcode_libdir_flag_spec is actually meaningless, as there is
14747 # no search path for DLLs.
14748 hardcode_libdir_flag_spec_F77
=' '
14749 allow_undefined_flag_F77
=unsupported
14750 # Tell ltmain to make .lib files, not .a files.
14752 # Tell ltmain to make .dll files, not .so files.
14754 # FIXME: Setting linknames here is a bad hack.
14755 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14756 # The linker will automatically build a .lib file if we build a DLL.
14757 old_archive_From_new_cmds_F77
='true'
14758 # FIXME: Should let the user specify the lib program.
14759 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14760 fix_srcfile_path
='`cygpath -w "$srcfile"`'
14761 enable_shared_with_static_runtimes_F77
=yes
14764 darwin
* | rhapsody
*)
14765 if test "$GXX" = yes ; then
14766 archive_cmds_need_lc_F77
=no
14768 rhapsody
* | darwin1.
[012])
14769 allow_undefined_flag_F77
='-undefined suppress'
14772 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14773 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
14775 case ${MACOSX_DEPLOYMENT_TARGET} in
14777 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
14780 allow_undefined_flag_F77
='-undefined dynamic_lookup'
14786 lt_int_apple_cc_single_mod
=no
14787 output_verbose_link_cmd
='echo'
14788 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
14789 lt_int_apple_cc_single_mod
=yes
14791 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14792 archive_cmds_F77
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14794 archive_cmds_F77
='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14796 module_cmds_F77
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14797 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14798 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14799 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14801 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14803 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}'
14804 hardcode_direct_F77
=no
14805 hardcode_automatic_F77
=yes
14806 hardcode_shlibpath_var_F77
=unsupported
14807 whole_archive_flag_spec_F77
='-all_load $convenience'
14808 link_all_deplibs_F77
=yes
14815 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14816 hardcode_libdir_flag_spec_F77
='-L$libdir'
14817 hardcode_shlibpath_var_F77
=no
14824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14825 # support. Future versions do this automatically, but an explicit c++rt0.o
14826 # does not break anything, and helps significantly (at the cost of a little
14829 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14830 hardcode_libdir_flag_spec_F77
='-R$libdir'
14831 hardcode_direct_F77
=yes
14832 hardcode_shlibpath_var_F77
=no
14835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14837 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_direct_F77
=yes
14839 hardcode_minus_L_F77
=yes
14840 hardcode_shlibpath_var_F77
=no
14843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14844 freebsd
* | kfreebsd
*-gnu)
14845 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14846 hardcode_libdir_flag_spec_F77
='-R$libdir'
14847 hardcode_direct_F77
=yes
14848 hardcode_shlibpath_var_F77
=no
14852 if test "$GCC" = yes; then
14853 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'
14855 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'
14857 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14858 hardcode_libdir_separator_F77
=:
14859 hardcode_direct_F77
=yes
14861 # hardcode_minus_L: Not really in the search PATH,
14862 # but as the default location of the library.
14863 hardcode_minus_L_F77
=yes
14864 export_dynamic_flag_spec_F77
='${wl}-E'
14868 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14869 case "$host_cpu" in
14871 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14874 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14878 case "$host_cpu" in
14880 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14883 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14887 if test "$with_gnu_ld" = no
; then
14888 case "$host_cpu" in
14890 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14891 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14892 hardcode_libdir_separator_F77
=:
14893 hardcode_direct_F77
=no
14894 hardcode_shlibpath_var_F77
=no
14897 hardcode_libdir_flag_spec_F77
='-L$libdir'
14898 hardcode_direct_F77
=no
14899 hardcode_shlibpath_var_F77
=no
14901 # hardcode_minus_L: Not really in the search PATH,
14902 # but as the default location of the library.
14903 hardcode_minus_L_F77
=yes
14906 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14907 hardcode_libdir_separator_F77
=:
14908 hardcode_direct_F77
=yes
14909 export_dynamic_flag_spec_F77
='${wl}-E'
14911 # hardcode_minus_L: Not really in the search PATH,
14912 # but as the default location of the library.
14913 hardcode_minus_L_F77
=yes
14919 irix5
* | irix6
* | nonstopux
*)
14920 if test "$GCC" = yes; then
14921 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'
14923 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'
14924 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14926 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14927 hardcode_libdir_separator_F77
=:
14928 link_all_deplibs_F77
=yes
14932 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14933 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14935 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14937 hardcode_libdir_flag_spec_F77
='-R$libdir'
14938 hardcode_direct_F77
=yes
14939 hardcode_shlibpath_var_F77
=no
14943 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14944 hardcode_direct_F77
=yes
14945 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14946 hardcode_libdir_separator_F77
=:
14947 hardcode_shlibpath_var_F77
=no
14951 hardcode_direct_F77
=yes
14952 hardcode_shlibpath_var_F77
=no
14953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14954 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14955 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14956 export_dynamic_flag_spec_F77
='${wl}-E'
14959 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14960 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_libdir_flag_spec_F77
='-R$libdir'
14964 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14965 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14972 hardcode_libdir_flag_spec_F77
='-L$libdir'
14973 hardcode_minus_L_F77
=yes
14974 allow_undefined_flag_F77
=unsupported
14975 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'
14976 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14980 if test "$GCC" = yes; then
14981 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14982 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'
14984 allow_undefined_flag_F77
=' -expect_unresolved \*'
14985 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'
14987 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14988 hardcode_libdir_separator_F77
=:
14991 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14992 if test "$GCC" = yes; then
14993 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14994 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'
14995 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14997 allow_undefined_flag_F77
=' -expect_unresolved \*'
14998 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'
14999 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~
15000 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15002 # Both c and cxx compiler support -rpath directly
15003 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15005 hardcode_libdir_separator_F77
=:
15009 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010 hardcode_shlibpath_var_F77
=no
15011 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15012 runpath_var
=LD_RUN_PATH
15013 hardcode_runpath_var
=yes
15017 no_undefined_flag_F77
=' -z text'
15018 if test "$GCC" = yes; then
15019 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15021 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15023 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15024 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15027 hardcode_libdir_flag_spec_F77
='-R$libdir'
15028 hardcode_shlibpath_var_F77
=no
15030 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15031 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15032 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
15034 link_all_deplibs_F77
=yes
15038 if test "x$host_vendor" = xsequent
; then
15039 # Use $CC to link under sequent, because it throws in some extra .o
15040 # files that make .init and .fini sections work.
15041 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15043 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_libdir_flag_spec_F77
='-L$libdir'
15046 hardcode_direct_F77
=yes
15047 hardcode_minus_L_F77
=yes
15048 hardcode_shlibpath_var_F77
=no
15052 case $host_vendor in
15054 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15055 hardcode_direct_F77
=yes # is this really true???
15058 ## LD is ld it makes a PLAMLIB
15059 ## CC just makes a GrossModule.
15060 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15061 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15062 hardcode_direct_F77
=no
15065 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15069 runpath_var
='LD_RUN_PATH'
15070 hardcode_shlibpath_var_F77
=no
15074 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_shlibpath_var_F77
=no
15076 export_dynamic_flag_spec_F77
='-Bexport'
15080 if test -d /usr
/nec
; then
15081 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15082 hardcode_shlibpath_var_F77
=no
15083 runpath_var
=LD_RUN_PATH
15084 hardcode_runpath_var
=yes
15090 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15091 hardcode_direct_F77
=yes
15092 hardcode_minus_L_F77
=no
15093 hardcode_shlibpath_var_F77
=no
15094 hardcode_runpath_var
=yes
15095 runpath_var
=LD_RUN_PATH
15098 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
15099 no_undefined_flag_F77
='${wl}-z ${wl}text'
15100 if test "$GCC" = yes; then
15101 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 runpath_var
='LD_RUN_PATH'
15106 hardcode_shlibpath_var_F77
=no
15110 no_undefined_flag_F77
=' -z text'
15111 # $CC -shared without GNU ld will not create a library from C++
15112 # object files and a static libstdc++, better avoid it by now
15113 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15116 hardcode_libdir_flag_spec_F77
=
15117 hardcode_shlibpath_var_F77
=no
15118 runpath_var
='LD_RUN_PATH'
15122 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123 hardcode_libdir_flag_spec_F77
='-L$libdir'
15124 hardcode_shlibpath_var_F77
=no
15133 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15134 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15135 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15137 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15138 if test "$GCC" = yes; then
15139 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15143 # Do we need to explicitly link libc?
15145 case "x$archive_cmds_need_lc_F77" in
15147 # Assume -lc should be added
15148 archive_cmds_need_lc_F77
=yes
15150 if test "$enable_shared" = yes && test "$GCC" = yes; then
15151 case $archive_cmds_F77 in
15153 # FIXME: we may have to deal with multi-command sequences.
15156 # Test whether the compiler implicitly links with -lc since on some
15157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15158 # to ld, don't add -lc before -lgcc.
15159 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15162 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165 (eval $ac_compile) 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } 2>conftest.err
; then
15171 libobjs
=conftest.
$ac_objext
15173 wl
=$lt_prog_compiler_wl_F77
15179 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15180 allow_undefined_flag_F77
=
15181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15182 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }
15187 archive_cmds_need_lc_F77
=no
15189 archive_cmds_need_lc_F77
=yes
15191 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15193 cat conftest.err
1>&5
15196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15197 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15206 library_names_spec
=
15207 libname_spec
='lib$name'
15211 postuninstall_cmds
=
15215 shlibpath_overrides_runpath
=unknown
15217 dynamic_linker
="$host_os ld.so"
15218 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15219 if test "$GCC" = yes; then
15220 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15221 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15222 # if the path contains ";" then we assume it to be the separator
15223 # otherwise default to the standard path separator (i.e. ":") - it is
15224 # assumed that no part of a normal pathname contains ";" but that should
15225 # okay in the real world where ";" in dirpaths is itself problematic.
15226 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15228 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15231 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15233 need_lib_prefix
=unknown
15234 hardcode_into_libs
=no
15236 # when you set need_version to no, make sure it does not cause -set_version
15237 # flags to be left without arguments
15238 need_version
=unknown
15243 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15244 shlibpath_var
=LIBPATH
15246 # AIX 3 has no versioning support, so we append a major version to the name.
15247 soname_spec
='${libname}${release}${shared_ext}$major'
15254 hardcode_into_libs
=yes
15255 if test "$host_cpu" = ia64
; then
15256 # AIX 5 supports IA64
15257 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15258 shlibpath_var
=LD_LIBRARY_PATH
15260 # With GCC up to 2.95.x, collect2 would create an import file
15261 # for dependence libraries. The import file would start with
15262 # the line `#! .'. This would cause the generated library to
15263 # depend on `.', always an invalid library. This was fixed in
15264 # development snapshots of GCC prior to 3.0.
15266 aix4 | aix4.
[01] | aix4.
[01].
*)
15267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15269 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15272 can_build_shared
=no
15276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15277 # soname into executable. Probably we can add versioning support to
15278 # collect2, so additional links can be useful in future.
15279 if test "$aix_use_runtimelinking" = yes; then
15280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15281 # instead of lib<name>.a to let people know that these are not
15282 # typical AIX shared libraries.
15283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 # We preserve .a as extension for shared libraries through AIX4.2
15286 # and later when we are not doing run time linking.
15287 library_names_spec
='${libname}${release}.a $libname.a'
15288 soname_spec
='${libname}${release}${shared_ext}$major'
15290 shlibpath_var
=LIBPATH
15295 library_names_spec
='$libname.ixlibrary $libname.a'
15296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15297 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'
15301 library_names_spec
='${libname}${shared_ext}'
15302 dynamic_linker
="$host_os ld.so"
15303 shlibpath_var
=LIBRARY_PATH
15309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec
='${libname}${release}${shared_ext}$major'
15311 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15312 shlibpath_var
=LD_LIBRARY_PATH
15313 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15314 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15315 # the default ld.so.conf also contains /usr/contrib/lib and
15316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15317 # libtool to hard-code these into programs
15320 cygwin
* | mingw
* | pw32
*)
15321 version_type
=windows
15326 case $GCC,$host_os in
15327 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15328 library_names_spec
='$libname.dll.a'
15329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15330 postinstall_cmds
='base_file=`basename \${file}`~
15331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15332 dldir=$destdir/`dirname \$dlpath`~
15333 test -d \$dldir || mkdir -p \$dldir~
15334 $install_prog $dir/$dlname \$dldir/$dlname'
15335 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15336 dlpath=$dir/\$dldll~
15338 shlibpath_overrides_runpath
=yes
15342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15343 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15344 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15347 # MinGW DLLs use traditional 'lib' prefix
15348 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15349 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15350 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15351 # It is most probably a Windows format PATH printed by
15352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15353 # path with ; separators, and with drive letters. We can handle the
15354 # drive letters (cygwin fileutils understands them), so leave them,
15355 # especially as we might pass files found there to a mingw objdump,
15356 # which wouldn't understand a cygwinified path. Ahh.
15357 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15359 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15363 # pw32 DLLs use 'pw' prefix rather than 'lib'
15364 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15370 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15373 dynamic_linker
='Win32 ld.exe'
15374 # FIXME: first we should search . and the directory the executable is in
15378 darwin
* | rhapsody
*)
15379 dynamic_linker
="$host_os dyld"
15380 version_type
=darwin
15383 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15384 soname_spec
='${libname}${release}${major}$shared_ext'
15385 shlibpath_overrides_runpath
=yes
15386 shlibpath_var
=DYLD_LIBRARY_PATH
15387 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
15388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15389 if test "$GCC" = yes; then
15390 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15392 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15394 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15402 soname_spec
='${libname}${release}${shared_ext}$major'
15403 shlibpath_var
=LD_LIBRARY_PATH
15414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415 soname_spec
='${libname}${release}${shared_ext}$major'
15416 shlibpath_var
=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath
=no
15418 hardcode_into_libs
=yes
15419 dynamic_linker
='GNU ld.so'
15423 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15424 version_type
=freebsd-
$objformat
15425 case $version_type in
15427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15432 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15436 shlibpath_var
=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath
=yes
15441 freebsd3.01
* | freebsdelf3.01
*)
15442 shlibpath_overrides_runpath
=yes
15443 hardcode_into_libs
=yes
15446 shlibpath_overrides_runpath
=no
15447 hardcode_into_libs
=yes
15456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15457 soname_spec
='${libname}${release}${shared_ext}$major'
15458 shlibpath_var
=LD_LIBRARY_PATH
15459 hardcode_into_libs
=yes
15462 hpux9
* | hpux10
* | hpux11
*)
15463 # Give a soname corresponding to the major version so that dld.sl refuses to
15464 # link against other versions.
15468 case "$host_cpu" in
15471 hardcode_into_libs
=yes
15472 dynamic_linker
="$host_os dld.so"
15473 shlibpath_var
=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476 soname_spec
='${libname}${release}${shared_ext}$major'
15477 if test "X$HPUX_IA64_MODE" = X32
; then
15478 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15480 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15482 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15486 hardcode_into_libs
=yes
15487 dynamic_linker
="$host_os dld.sl"
15488 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15489 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec
='${libname}${release}${shared_ext}$major'
15492 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15493 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15497 dynamic_linker
="$host_os dld.sl"
15498 shlibpath_var
=SHLIB_PATH
15499 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501 soname_spec
='${libname}${release}${shared_ext}$major'
15504 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15505 postinstall_cmds
='chmod 555 $lib'
15508 irix5
* | irix6
* | nonstopux
*)
15510 nonstopux
*) version_type
=nonstopux
;;
15512 if test "$lt_cv_prog_gnu_ld" = yes; then
15520 soname_spec
='${libname}${release}${shared_ext}$major'
15521 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15523 irix5
* | nonstopux
*)
15524 libsuff
= shlibsuff
=
15527 case $LD in # libtool.m4 will add one of these switches to LD
15528 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15529 libsuff
= shlibsuff
= libmagic
=32-bit;;
15530 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15531 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15532 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15533 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15534 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15538 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15539 shlibpath_overrides_runpath
=no
15540 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15541 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15542 hardcode_into_libs
=yes
15545 # No shared lib support for Linux oldld, aout, or coff.
15546 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15550 # This must be Linux ELF.
15555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556 soname_spec
='${libname}${release}${shared_ext}$major'
15557 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15558 shlibpath_var
=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath
=no
15560 # This implies no fast_install, which is unacceptable.
15561 # Some rework will be needed to allow for fast_install
15562 # before this can be enabled.
15563 hardcode_into_libs
=yes
15565 # We used to test for /lib/ld.so.1 and disable shared libraries on
15566 # powerpc, because MkLinux only supported shared libraries with the
15567 # GNU dynamic linker. Since this was broken with cross compilers,
15568 # most powerpc-linux boxes support dynamic linking these days and
15569 # people can always --disable-shared, the test was removed, and we
15570 # assume the GNU/Linux dynamic linker is in use.
15571 dynamic_linker
='GNU/Linux ld.so'
15578 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15580 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15581 dynamic_linker
='NetBSD (a.out) ld.so'
15583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15584 soname_spec
='${libname}${release}${shared_ext}$major'
15585 dynamic_linker
='NetBSD ld.elf_so'
15587 shlibpath_var
=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath
=yes
15589 hardcode_into_libs
=yes
15594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 shlibpath_var
=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath
=yes
15603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec
='${libname}${release}${shared_ext}$major'
15605 shlibpath_var
=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath
=yes
15613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15614 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15615 shlibpath_var
=LD_LIBRARY_PATH
15616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15618 openbsd2.
[89] | openbsd2.
[89].
*)
15619 shlibpath_overrides_runpath
=no
15622 shlibpath_overrides_runpath
=yes
15626 shlibpath_overrides_runpath
=yes
15631 libname_spec
='$name'
15634 library_names_spec
='$libname${shared_ext} $libname.a'
15635 dynamic_linker
='OS/2 ld.exe'
15636 shlibpath_var
=LIBPATH
15639 osf3
* | osf4
* | osf5
*)
15643 soname_spec
='${libname}${release}${shared_ext}$major'
15644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 shlibpath_var
=LD_LIBRARY_PATH
15646 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15647 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15652 soname_spec
='${libname}${release}${shared_ext}$major'
15653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 shlibpath_var
=LD_LIBRARY_PATH
15661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662 soname_spec
='${libname}${release}${shared_ext}$major'
15663 shlibpath_var
=LD_LIBRARY_PATH
15664 shlibpath_overrides_runpath
=yes
15665 hardcode_into_libs
=yes
15666 # ldd complains unless libraries are executable
15667 postinstall_cmds
='chmod +x $lib'
15672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15674 shlibpath_var
=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath
=yes
15676 if test "$with_gnu_ld" = yes; then
15682 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec
='${libname}${release}${shared_ext}$major'
15686 shlibpath_var
=LD_LIBRARY_PATH
15687 case $host_vendor in
15689 shlibpath_overrides_runpath
=no
15691 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15692 runpath_var
=LD_RUN_PATH
15700 shlibpath_overrides_runpath
=no
15701 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15707 if test -d /usr
/nec
;then
15709 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15710 soname_spec
='$libname${shared_ext}.$major'
15711 shlibpath_var
=LD_LIBRARY_PATH
15717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718 soname_spec
='${libname}${release}${shared_ext}$major'
15719 shlibpath_var
=LD_LIBRARY_PATH
15726 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15727 echo "${ECHO_T}$dynamic_linker" >&6; }
15728 test "$dynamic_linker" = no
&& can_build_shared
=no
15730 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15732 hardcode_action_F77
=
15733 if test -n "$hardcode_libdir_flag_spec_F77" || \
15734 test -n "$runpath_var F77" || \
15735 test "X$hardcode_automatic_F77"="Xyes" ; then
15737 # We can hardcode non-existant directories.
15738 if test "$hardcode_direct_F77" != no
&&
15739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15740 # have to relink, otherwise we might link with an installed library
15741 # when we should be linking with a yet-to-be-installed one
15742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15743 test "$hardcode_minus_L_F77" != no
; then
15744 # Linking always hardcodes the temporary library directory.
15745 hardcode_action_F77
=relink
15747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15748 hardcode_action_F77
=immediate
15751 # We cannot hardcode anything, or else we can only hardcode existing
15753 hardcode_action_F77
=unsupported
15755 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15756 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15758 if test "$hardcode_action_F77" = relink
; then
15759 # Fast installation is not supported
15760 enable_fast_install
=no
15761 elif test "$shlibpath_overrides_runpath" = yes ||
15762 test "$enable_shared" = no
; then
15763 # Fast installation is not necessary
15764 enable_fast_install
=needless
15769 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15771 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15772 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15773 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15774 { echo "$as_me:$LINENO: result: yes" >&5
15775 echo "${ECHO_T}yes" >&6; }
15777 # FIXME - insert some real tests, host_os isn't really good enough
15780 if test -n "$STRIP" ; then
15781 striplib
="$STRIP -x"
15782 { echo "$as_me:$LINENO: result: yes" >&5
15783 echo "${ECHO_T}yes" >&6; }
15785 { echo "$as_me:$LINENO: result: no" >&5
15786 echo "${ECHO_T}no" >&6; }
15790 { echo "$as_me:$LINENO: result: no" >&5
15791 echo "${ECHO_T}no" >&6; }
15798 # The else clause should only fire when bootstrapping the
15799 # libtool distribution, otherwise you forgot to ship ltmain.sh
15800 # with your package, and you will get complaints that there are
15801 # no rules to generate ltmain.sh.
15802 if test -f "$ltmain"; then
15803 # See if we are running on zsh, and set the options which allow our commands through
15804 # without removal of \ escapes.
15805 if test -n "${ZSH_VERSION+set}" ; then
15806 setopt NO_GLOB_SUBST
15808 # Now quote all the things that may contain metacharacters while being
15809 # careful not to overquote the AC_SUBSTed values. We take copies of the
15810 # variables and quote the copies for generation of the libtool script.
15811 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15814 deplibs_check_method reload_flag reload_cmds need_locks \
15815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15816 lt_cv_sys_global_symbol_to_c_name_address \
15817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15818 old_postinstall_cmds old_postuninstall_cmds \
15822 lt_prog_compiler_wl_F77 \
15823 lt_prog_compiler_pic_F77 \
15824 lt_prog_compiler_static_F77 \
15825 lt_prog_compiler_no_builtin_flag_F77 \
15826 export_dynamic_flag_spec_F77 \
15827 thread_safe_flag_spec_F77 \
15828 whole_archive_flag_spec_F77 \
15829 enable_shared_with_static_runtimes_F77 \
15830 old_archive_cmds_F77 \
15831 old_archive_from_new_cmds_F77 \
15832 predep_objects_F77 \
15833 postdep_objects_F77 \
15836 compiler_lib_search_path_F77 \
15838 archive_expsym_cmds_F77 \
15839 postinstall_cmds_F77 \
15840 postuninstall_cmds_F77 \
15841 old_archive_from_expsyms_cmds_F77 \
15842 allow_undefined_flag_F77 \
15843 no_undefined_flag_F77 \
15844 export_symbols_cmds_F77 \
15845 hardcode_libdir_flag_spec_F77 \
15846 hardcode_libdir_flag_spec_ld_F77 \
15847 hardcode_libdir_separator_F77 \
15848 hardcode_automatic_F77 \
15850 module_expsym_cmds_F77 \
15851 lt_cv_prog_compiler_c_o_F77 \
15852 exclude_expsyms_F77 \
15853 include_expsyms_F77
; do
15856 old_archive_cmds_F77 | \
15857 old_archive_from_new_cmds_F77 | \
15858 archive_cmds_F77 | \
15859 archive_expsym_cmds_F77 | \
15860 module_cmds_F77 | \
15861 module_expsym_cmds_F77 | \
15862 old_archive_from_expsyms_cmds_F77 | \
15863 export_symbols_cmds_F77 | \
15864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15865 postinstall_cmds | postuninstall_cmds | \
15866 old_postinstall_cmds | old_postuninstall_cmds | \
15867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15868 # Double-quote double-evaled strings.
15869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15878 *'\$0 --fallback-echo"')
15879 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15885 cat <<__EOF__ >> "$cfgfile"
15886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15890 # Shell to use when invoking shell scripts.
15893 # Whether or not to build shared libraries.
15894 build_libtool_libs=$enable_shared
15896 # Whether or not to build static libraries.
15897 build_old_libs=$enable_static
15899 # Whether or not to add -lc for building shared libraries.
15900 build_libtool_need_lc=$archive_cmds_need_lc_F77
15902 # Whether or not to disallow shared libs when runtime libs are static
15903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15905 # Whether or not to optimize for fast installation.
15906 fast_install=$enable_fast_install
15909 host_alias=$host_alias
15912 # An echo program that does not interpret backslashes.
15917 AR_FLAGS=$lt_AR_FLAGS
15922 # A language-specific compiler.
15923 CC=$lt_compiler_F77
15925 # Is the compiler the GNU C compiler?
15931 # The linker used to build libraries.
15934 # Whether we need hard or soft links.
15937 # A BSD-compatible nm program.
15940 # A symbol stripping program
15943 # Used to examine libraries when file_magic_cmd begins "file"
15944 MAGIC_CMD=$MAGIC_CMD
15946 # Used on cygwin: DLL creation program.
15949 # Used on cygwin: object dumper.
15952 # Used on cygwin: assembler.
15955 # The name of the directory that contains temporary libtool files.
15958 # How to create reloadable object files.
15959 reload_flag=$lt_reload_flag
15960 reload_cmds=$lt_reload_cmds
15962 # How to pass a linker flag through the compiler.
15963 wl=$lt_lt_prog_compiler_wl_F77
15965 # Object file suffix (normally "o").
15966 objext="$ac_objext"
15968 # Old archive suffix (normally "a").
15971 # Shared library suffix (normally ".so").
15974 # Executable file suffix (normally "").
15977 # Additional compiler flags for building library objects.
15978 pic_flag=$lt_lt_prog_compiler_pic_F77
15981 # What is the maximum length of a command?
15982 max_cmd_len=$lt_cv_sys_max_cmd_len
15984 # Does compiler simultaneously support -c and -o options?
15985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15987 # Must we lock files when doing compilation ?
15988 need_locks=$lt_need_locks
15990 # Do we need the lib prefix for modules?
15991 need_lib_prefix=$need_lib_prefix
15993 # Do we need a version for libraries?
15994 need_version=$need_version
15996 # Whether dlopen is supported.
15997 dlopen_support=$enable_dlopen
15999 # Whether dlopen of programs is supported.
16000 dlopen_self=$enable_dlopen_self
16002 # Whether dlopen of statically linked programs is supported.
16003 dlopen_self_static=$enable_dlopen_self_static
16005 # Compiler flag to prevent dynamic linking.
16006 link_static_flag=$lt_lt_prog_compiler_static_F77
16008 # Compiler flag to turn off builtin functions.
16009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16011 # Compiler flag to allow reflexive dlopens.
16012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16014 # Compiler flag to generate shared objects directly from archives.
16015 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16017 # Compiler flag to generate thread-safe objects.
16018 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16020 # Library versioning type.
16021 version_type=$version_type
16023 # Format of library name prefix.
16024 libname_spec=$lt_libname_spec
16026 # List of archive names. First name is the real one, the rest are links.
16027 # The last name is the one that the linker finds with -lNAME.
16028 library_names_spec=$lt_library_names_spec
16030 # The coded name of the library, if different from the real name.
16031 soname_spec=$lt_soname_spec
16033 # Commands used to build and install an old-style archive.
16035 old_archive_cmds=$lt_old_archive_cmds_F77
16036 old_postinstall_cmds=$lt_old_postinstall_cmds
16037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16039 # Create an old-style archive from a shared archive.
16040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16042 # Create a temporary old-style archive to link instead of a shared archive.
16043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16045 # Commands used to build and install a shared archive.
16046 archive_cmds=$lt_archive_cmds_F77
16047 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16048 postinstall_cmds=$lt_postinstall_cmds
16049 postuninstall_cmds=$lt_postuninstall_cmds
16051 # Commands used to build a loadable module (assumed same as above if empty)
16052 module_cmds=$lt_module_cmds_F77
16053 module_expsym_cmds=$lt_module_expsym_cmds_F77
16055 # Commands to strip libraries.
16056 old_striplib=$lt_old_striplib
16057 striplib=$lt_striplib
16059 # Dependencies to place before the objects being linked to create a
16061 predep_objects=$lt_predep_objects_F77
16063 # Dependencies to place after the objects being linked to create a
16065 postdep_objects=$lt_postdep_objects_F77
16067 # Dependencies to place before the objects being linked to create a
16069 predeps=$lt_predeps_F77
16071 # Dependencies to place after the objects being linked to create a
16073 postdeps=$lt_postdeps_F77
16075 # The library search path used internally by the compiler when linking
16076 # a shared library.
16077 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16079 # Method to check whether dependent libraries are shared objects.
16080 deplibs_check_method=$lt_deplibs_check_method
16082 # Command to use when deplibs_check_method == file_magic.
16083 file_magic_cmd=$lt_file_magic_cmd
16085 # Flag that allows shared libraries with undefined symbols to be built.
16086 allow_undefined_flag=$lt_allow_undefined_flag_F77
16088 # Flag that forces no undefined symbols.
16089 no_undefined_flag=$lt_no_undefined_flag_F77
16091 # Commands used to finish a libtool library installation in a directory.
16092 finish_cmds=$lt_finish_cmds
16094 # Same as above, but a single script fragment to be evaled but not shown.
16095 finish_eval=$lt_finish_eval
16097 # Take the output of nm and produce a listing of raw symbols and C names.
16098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16100 # Transform the output of nm in a proper C declaration
16101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16103 # Transform the output of nm in a C name address pair
16104 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16106 # This is the shared library runtime path variable.
16107 runpath_var=$runpath_var
16109 # This is the shared library path variable.
16110 shlibpath_var=$shlibpath_var
16112 # Is shlibpath searched before the hard-coded library search path?
16113 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16115 # How to hardcode a shared library path into an executable.
16116 hardcode_action=$hardcode_action_F77
16118 # Whether we should hardcode library paths into libraries.
16119 hardcode_into_libs=$hardcode_into_libs
16121 # Flag to hardcode \$libdir into a binary during linking.
16122 # This must work even if \$libdir does not exist.
16123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16125 # If ld is used when linking, flag to hardcode \$libdir into
16126 # a binary during linking. This must work even if \$libdir does
16128 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16130 # Whether we need a single -rpath flag with a separated argument.
16131 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16133 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16134 # resulting binary.
16135 hardcode_direct=$hardcode_direct_F77
16137 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16138 # resulting binary.
16139 hardcode_minus_L=$hardcode_minus_L_F77
16141 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16142 # the resulting binary.
16143 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16145 # Set to yes if building a shared library automatically hardcodes DIR into the library
16146 # and all subsequent libraries and executables linked against it.
16147 hardcode_automatic=$hardcode_automatic_F77
16149 # Variables whose values should be saved in libtool wrapper scripts and
16150 # restored at relink time.
16151 variables_saved_for_relink="$variables_saved_for_relink"
16153 # Whether libtool must link a program against all its dependency libraries.
16154 link_all_deplibs=$link_all_deplibs_F77
16156 # Compile-time system search path for libraries
16157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16159 # Run-time system search path for libraries
16160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16162 # Fix the shell variable \$srcfile for the compiler.
16163 fix_srcfile_path="$fix_srcfile_path_F77"
16165 # Set to yes if exported symbols are required.
16166 always_export_symbols=$always_export_symbols_F77
16168 # The commands to list exported symbols.
16169 export_symbols_cmds=$lt_export_symbols_cmds_F77
16171 # The commands to extract the exported symbol list from a shared archive.
16172 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16174 # Symbols that should not be listed in the preloaded symbols.
16175 exclude_expsyms=$lt_exclude_expsyms_F77
16177 # Symbols that must always be exported.
16178 include_expsyms=$lt_include_expsyms_F77
16180 # ### END LIBTOOL TAG CONFIG: $tagname
16186 # If there is no Makefile yet, we rely on a make rule to execute
16187 # `config.status --recheck' to rerun these tests and create the
16188 # libtool script then.
16189 test -f Makefile
&& make "$ltmain"
16194 ac_cpp
='$CPP $CPPFLAGS'
16195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16207 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16210 # Source file extension for Java test sources.
16213 # Object file extension for compiled Java test sources.
16217 # Code to be used in simple compile tests
16218 lt_simple_compile_test_code
="class foo {}\n"
16220 # Code to be used in simple link tests
16221 lt_simple_link_test_code
='public class conftest { public static void main(String argv) {}; }\n'
16223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16225 # If no C compiler was specified, use CC.
16228 # Allow CC to be a program name with arguments.
16232 # Allow CC to be a program name with arguments.
16238 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16239 archive_cmds_need_lc_GCJ
=no
16242 ## There is no encapsulation within the following macros, do not change
16243 ## the running order or otherwise move them around unless you know exactly
16244 ## what you are doing...
16246 lt_prog_compiler_no_builtin_flag_GCJ
=
16248 if test "$GCC" = yes; then
16249 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16252 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16253 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16254 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 lt_cv_prog_compiler_rtti_exceptions
=no
16258 ac_outfile
=conftest.
$ac_objext
16259 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16260 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16261 # Insert the option either (1) after the last *FLAGS variable, or
16262 # (2) before a word containing "conftest.", or (3) at the end.
16263 # Note that $ac_compile itself does not contain backslashes and begins
16264 # with a dollar sign (not a hyphen), so the echo should work correctly.
16265 # The option is referenced via a variable to avoid confusing sed.
16266 lt_compile
=`echo "$ac_compile" | $SED \
16267 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16269 -e 's:$: $lt_compiler_flag:'`
16270 (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16271 (eval "$lt_compile" 2>conftest.err
)
16273 cat conftest.err
>&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 if (exit $ac_status) && test -s "$ac_outfile"; then
16276 # The compiler can only warn and ignore the option if not recognized
16277 # So say no if there are warnings
16278 if test ! -s conftest.err
; then
16279 lt_cv_prog_compiler_rtti_exceptions
=yes
16285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16286 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16288 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16289 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16296 lt_prog_compiler_wl_GCJ
=
16297 lt_prog_compiler_pic_GCJ
=
16298 lt_prog_compiler_static_GCJ
=
16300 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16301 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16303 if test "$GCC" = yes; then
16304 lt_prog_compiler_wl_GCJ
='-Wl,'
16305 lt_prog_compiler_static_GCJ
='-static'
16309 # All AIX code is PIC.
16310 if test "$host_cpu" = ia64
; then
16311 # AIX 5 now supports IA64 processor
16312 lt_prog_compiler_static_GCJ
='-Bstatic'
16317 # FIXME: we need at least 68020 code to build shared libraries, but
16318 # adding the `-m68020' flag to GCC prevents building anything better,
16320 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16323 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16324 # PIC is the default for these OSes.
16327 mingw
* | pw32
* | os2
*)
16328 # This hack is so that the source file can tell whether it is being
16329 # built for inclusion in a dll (and should export symbols for example).
16330 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16333 darwin
* | rhapsody
*)
16334 # PIC is the default on this platform
16335 # Common symbols not allowed in MH_DYLIB files
16336 lt_prog_compiler_pic_GCJ
='-fno-common'
16340 # Just because we use GCC doesn't mean we suddenly get shared libraries
16341 # on systems that don't support them.
16342 lt_prog_compiler_can_build_shared_GCJ
=no
16347 if test -d /usr
/nec
; then
16348 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354 # not for PA HP-UX.
16355 case "$host_cpu" in
16360 lt_prog_compiler_pic_GCJ
='-fPIC'
16366 lt_prog_compiler_pic_GCJ
='-fPIC'
16370 # PORTME Check for flag to pass linker flags through the system compiler.
16373 lt_prog_compiler_wl_GCJ
='-Wl,'
16374 if test "$host_cpu" = ia64
; then
16375 # AIX 5 now supports IA64 processor
16376 lt_prog_compiler_static_GCJ
='-Bstatic'
16378 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16382 mingw
* | pw32
* | os2
*)
16383 # This hack is so that the source file can tell whether it is being
16384 # built for inclusion in a dll (and should export symbols for example).
16385 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16388 hpux9
* | hpux10
* | hpux11
*)
16389 lt_prog_compiler_wl_GCJ
='-Wl,'
16390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16391 # not for PA HP-UX.
16392 case "$host_cpu" in
16397 lt_prog_compiler_pic_GCJ
='+Z'
16400 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16401 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16404 irix5
* | irix6
* | nonstopux
*)
16405 lt_prog_compiler_wl_GCJ
='-Wl,'
16406 # PIC (with -KPIC) is the default.
16407 lt_prog_compiler_static_GCJ
='-non_shared'
16411 lt_prog_compiler_pic_GCJ
='-KPIC'
16412 lt_prog_compiler_static_GCJ
='-Bstatic'
16418 lt_prog_compiler_wl_GCJ
='-Wl,'
16419 lt_prog_compiler_pic_GCJ
='-KPIC'
16420 lt_prog_compiler_static_GCJ
='-static'
16423 lt_prog_compiler_wl_GCJ
='-Wl,'
16424 # All Alpha code is PIC.
16425 lt_prog_compiler_static_GCJ
='-non_shared'
16430 osf3
* | osf4
* | osf5
*)
16431 lt_prog_compiler_wl_GCJ
='-Wl,'
16432 # All OSF/1 code is PIC.
16433 lt_prog_compiler_static_GCJ
='-non_shared'
16437 lt_prog_compiler_pic_GCJ
='-Kpic'
16438 lt_prog_compiler_static_GCJ
='-dn'
16442 lt_prog_compiler_wl_GCJ
='-Wl,'
16443 lt_prog_compiler_pic_GCJ
='-KPIC'
16444 lt_prog_compiler_static_GCJ
='-Bstatic'
16448 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16449 lt_prog_compiler_pic_GCJ
='-PIC'
16450 lt_prog_compiler_static_GCJ
='-Bstatic'
16453 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16454 lt_prog_compiler_wl_GCJ
='-Wl,'
16455 lt_prog_compiler_pic_GCJ
='-KPIC'
16456 lt_prog_compiler_static_GCJ
='-Bstatic'
16460 if test -d /usr
/nec
;then
16461 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16462 lt_prog_compiler_static_GCJ
='-Bstatic'
16467 lt_prog_compiler_pic_GCJ
='-pic'
16468 lt_prog_compiler_static_GCJ
='-Bstatic'
16472 lt_prog_compiler_can_build_shared_GCJ
=no
16477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16478 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16481 # Check to make sure the PIC flag actually works.
16483 if test -n "$lt_prog_compiler_pic_GCJ"; then
16485 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16487 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 lt_prog_compiler_pic_works_GCJ
=no
16491 ac_outfile
=conftest.
$ac_objext
16492 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16493 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16494 # Insert the option either (1) after the last *FLAGS variable, or
16495 # (2) before a word containing "conftest.", or (3) at the end.
16496 # Note that $ac_compile itself does not contain backslashes and begins
16497 # with a dollar sign (not a hyphen), so the echo should work correctly.
16498 # The option is referenced via a variable to avoid confusing sed.
16499 lt_compile
=`echo "$ac_compile" | $SED \
16500 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16502 -e 's:$: $lt_compiler_flag:'`
16503 (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
16504 (eval "$lt_compile" 2>conftest.err
)
16506 cat conftest.err
>&5
16507 echo "$as_me:16507: \$? = $ac_status" >&5
16508 if (exit $ac_status) && test -s "$ac_outfile"; then
16509 # The compiler can only warn and ignore the option if not recognized
16510 # So say no if there are warnings
16511 if test ! -s conftest.err
; then
16512 lt_prog_compiler_pic_works_GCJ
=yes
16518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16519 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16521 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16522 case $lt_prog_compiler_pic_GCJ in
16524 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16527 lt_prog_compiler_pic_GCJ
=
16528 lt_prog_compiler_can_build_shared_GCJ
=no
16533 # For platforms which do not support PIC, -DPIC is meaningless:
16535 lt_prog_compiler_pic_GCJ
=
16538 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16544 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 lt_cv_prog_compiler_c_o_GCJ
=no
16548 $rm -r conftest
2>/dev
/null
16552 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16554 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16555 # that will create temporary files in the current directory regardless of
16556 # the output directory. Thus, making CWD read-only will cause this test
16557 # to fail, enabling locking or at least warning the user not to do parallel
16561 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16562 # Insert the option either (1) after the last *FLAGS variable, or
16563 # (2) before a word containing "conftest.", or (3) at the end.
16564 # Note that $ac_compile itself does not contain backslashes and begins
16565 # with a dollar sign (not a hyphen), so the echo should work correctly.
16566 lt_compile
=`echo "$ac_compile" | $SED \
16567 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16569 -e 's:$: $lt_compiler_flag:'`
16570 (eval echo "\"\$as_me:16570: $lt_compile\"" >&5)
16571 (eval "$lt_compile" 2>out
/conftest.err
)
16573 cat out
/conftest.err
>&5
16574 echo "$as_me:16574: \$? = $ac_status" >&5
16575 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16577 # The compiler can only warn and ignore the option if not recognized
16578 # So say no if there are warnings
16579 if test ! -s out
/conftest.err
; then
16580 lt_cv_prog_compiler_c_o_GCJ
=yes
16585 # SGI C++ compiler will create directory out/ii_files/ for
16586 # template instantiation
16587 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16588 $rm out
/* && rmdir out
16594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16595 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16598 hard_links
="nottested"
16599 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16600 # do not overwrite the value of need_locks provided by the user
16601 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16605 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16607 ln conftest.a conftest.b
2>&5 || hard_links
=no
16608 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16609 { echo "$as_me:$LINENO: result: $hard_links" >&5
16610 echo "${ECHO_T}$hard_links" >&6; }
16611 if test "$hard_links" = no
; then
16612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16620 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16621 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16624 allow_undefined_flag_GCJ
=
16625 enable_shared_with_static_runtimes_GCJ
=no
16627 archive_expsym_cmds_GCJ
=
16628 old_archive_From_new_cmds_GCJ
=
16629 old_archive_from_expsyms_cmds_GCJ
=
16630 export_dynamic_flag_spec_GCJ
=
16631 whole_archive_flag_spec_GCJ
=
16632 thread_safe_flag_spec_GCJ
=
16633 hardcode_libdir_flag_spec_GCJ
=
16634 hardcode_libdir_flag_spec_ld_GCJ
=
16635 hardcode_libdir_separator_GCJ
=
16636 hardcode_direct_GCJ
=no
16637 hardcode_minus_L_GCJ
=no
16638 hardcode_shlibpath_var_GCJ
=unsupported
16639 link_all_deplibs_GCJ
=unknown
16640 hardcode_automatic_GCJ
=no
16642 module_expsym_cmds_GCJ
=
16643 always_export_symbols_GCJ
=no
16644 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16645 # include_expsyms should be a list of space-separated symbols to be *always*
16646 # included in the symbol list
16647 include_expsyms_GCJ
=
16648 # exclude_expsyms can be an extended regexp of symbols to exclude
16649 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16650 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16651 # as well as any symbol that contains `d'.
16652 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16653 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16654 # platforms (ab)use it in PIC code, but their linkers get confused if
16655 # the symbol is explicitly referenced. Since portable code cannot
16656 # rely on this symbol name, it's probably fine to never include it in
16657 # preloaded symbol tables.
16658 extract_expsyms_cmds
=
16661 cygwin
* | mingw
* | pw32
*)
16662 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16663 # When not using gcc, we currently assume that we are using
16664 # Microsoft Visual C++.
16665 if test "$GCC" != yes; then
16675 if test "$with_gnu_ld" = yes; then
16676 # If archive_cmds runs LD, not CC, wlarc should be empty
16679 # See if GNU ld supports shared libraries.
16681 aix3
* | aix4
* | aix5
*)
16682 # On AIX/PPC, the GNU linker is very broken
16683 if test "$host_cpu" != ia64
; then
16687 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16688 *** to be unable to reliably create shared libraries on AIX.
16689 *** Therefore, libtool is disabling shared libraries support. If you
16690 *** really care for shared libraries, you may want to modify your PATH
16691 *** so that a non-GNU linker is found, and then restart.
16698 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)'
16699 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16700 hardcode_minus_L_GCJ
=yes
16702 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16703 # that the semantics of dynamic libraries on AmigaOS, at least up
16704 # to version 4, is to share data among multiple programs linked
16705 # with the same dynamic library. Since this doesn't match the
16706 # behavior of shared libraries on other platforms, we can't use
16712 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16713 allow_undefined_flag_GCJ
=unsupported
16714 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16715 # support --undefined. This deserves some investigation. FIXME
16716 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16722 cygwin
* | mingw
* | pw32
*)
16723 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16724 # as there is no search path for DLLs.
16725 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16726 allow_undefined_flag_GCJ
=unsupported
16727 always_export_symbols_GCJ
=no
16728 enable_shared_with_static_runtimes_GCJ
=yes
16729 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16731 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16732 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16733 # If the export-symbols file already is a .def file (1st line
16734 # is EXPORTS), use it as is; otherwise, prepend...
16735 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16736 cp $export_symbols $output_objdir/$soname.def;
16738 echo EXPORTS > $output_objdir/$soname.def;
16739 cat $export_symbols >> $output_objdir/$soname.def;
16741 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16748 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16749 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16752 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16753 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16758 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16763 *** create shared libraries on Solaris systems. Therefore, libtool
16764 *** is disabling shared libraries support. We urge you to upgrade GNU
16765 *** binutils to release 2.9.1 or newer. Another option is to modify
16766 *** your PATH or compiler configuration so that the native linker is
16767 *** used, and then restart.
16770 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16771 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16772 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16779 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16781 hardcode_direct_GCJ
=yes
16782 hardcode_shlibpath_var_GCJ
=no
16786 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
16787 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16788 archive_cmds_GCJ
="$tmp_archive_cmds"
16789 supports_anon_versioning
=no
16790 case `$LD -v 2>/dev/null` in
16791 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16792 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16793 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16794 *\
2.11.
*) ;; # other 2.11 versions
16795 *) supports_anon_versioning
=yes ;;
16797 if test $supports_anon_versioning = yes; then
16798 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800 $echo "local: *; };" >> $output_objdir/$libname.ver~
16801 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16803 archive_expsym_cmds_GCJ
="$tmp_archive_cmds"
16811 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16812 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16813 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16820 if test "$ld_shlibs_GCJ" = yes; then
16821 runpath_var
=LD_RUN_PATH
16822 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16823 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16824 # ancient GNU ld didn't support --whole-archive et. al.
16825 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16826 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16828 whole_archive_flag_spec_GCJ
=
16832 # PORTME fill in a description of your system's linker (not GNU ld)
16835 allow_undefined_flag_GCJ
=unsupported
16836 always_export_symbols_GCJ
=yes
16837 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'
16838 # Note: this linker hardcodes the directories in LIBPATH if there
16839 # are no directories specified by -L.
16840 hardcode_minus_L_GCJ
=yes
16841 if test "$GCC" = yes && test -z "$link_static_flag"; then
16842 # Neither direct hardcoding nor static linking is supported with a
16844 hardcode_direct_GCJ
=unsupported
16849 if test "$host_cpu" = ia64
; then
16850 # On IA64, the linker does run time linking by default, so we don't
16851 # have to do anything special.
16852 aix_use_runtimelinking
=no
16853 exp_sym_flag
='-Bexport'
16856 # If we're using GNU nm, then we don't want the "-C" option.
16857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16858 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16859 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'
16861 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'
16863 aix_use_runtimelinking
=no
16865 # Test if we are trying to use run time linking or normal
16866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16867 # need to do runtime linking.
16868 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16869 for ld_flag
in $LDFLAGS; do
16870 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16871 aix_use_runtimelinking
=yes
16877 exp_sym_flag
='-bexport'
16878 no_entry_flag
='-bnoentry'
16881 # When large executables or shared objects are built, AIX ld can
16882 # have problems creating the table of contents. If linking a library
16883 # or program results in "error TOC overflow" add -mminimal-toc to
16884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16887 archive_cmds_GCJ
=''
16888 hardcode_direct_GCJ
=yes
16889 hardcode_libdir_separator_GCJ
=':'
16890 link_all_deplibs_GCJ
=yes
16892 if test "$GCC" = yes; then
16893 case $host_os in aix4.012|aix4.012.
*)
16894 # We only want to do this on AIX 4.2 and lower, the check
16895 # below for broken collect2 doesn't work under 4.3+
16896 collect2name
=`${CC} -print-prog-name=collect2`
16897 if test -f "$collect2name" && \
16898 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16900 # We have reworked collect2
16901 hardcode_direct_GCJ
=yes
16903 # We have old collect2
16904 hardcode_direct_GCJ
=unsupported
16905 # It fails to find uninstalled libraries when the uninstalled
16906 # path is not listed in the libpath. Setting hardcode_minus_L
16907 # to unsupported forces relinking
16908 hardcode_minus_L_GCJ
=yes
16909 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16910 hardcode_libdir_separator_GCJ
=
16913 shared_flag
='-shared'
16916 if test "$host_cpu" = ia64
; then
16917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16918 # chokes on -Wl,-G. The following line is correct:
16921 if test "$aix_use_runtimelinking" = yes; then
16922 shared_flag
='${wl}-G'
16924 shared_flag
='${wl}-bM:SRE'
16929 # It seems that -bexpall does not export symbols beginning with
16930 # underscore (_), so it is better to generate a list of symbols to export.
16931 always_export_symbols_GCJ
=yes
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # Warning - without using the other runtime loading flags (-brtl),
16934 # -berok will link without error, but may produce a broken library.
16935 allow_undefined_flag_GCJ
='-berok'
16936 # Determine the default libpath from the value encoded in an empty executable.
16937 cat >conftest.
$ac_ext <<_ACEOF
16940 cat confdefs.h
>>conftest.
$ac_ext
16941 cat >>conftest.
$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16952 rm -f conftest.
$ac_objext conftest
$ac_exeext
16953 if { (ac_try
="$ac_link"
16954 case "(($ac_try" in
16955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_link") 2>conftest.er1
16961 grep -v '^ *+' conftest.er1 >conftest.err
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16969 *) ac_try_echo
=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try
='test -s conftest$ac_exeext'
16977 { (case "(($ac_try" in
16978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_try") 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16987 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16989 # Check for a 64-bit object if we didn't find anything.
16990 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16999 rm -f core conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17003 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17004 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17006 if test "$host_cpu" = ia64
; then
17007 hardcode_libdir_flag_spec_GCJ
='${wl}-R $libdir:/usr/lib:/lib'
17008 allow_undefined_flag_GCJ
="-z nodefs"
17009 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17011 # Determine the default libpath from the value encoded in an empty executable.
17012 cat >conftest.$ac_ext <<_ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_link") 2>conftest.er1
17036 grep -v '^
*+' conftest.er1 >conftest.err
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } &&
17041 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
17042 { (case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_try") 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest
$ac_exeext'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
17064 # Check for a 64-bit object if we didn't
find anything.
17065 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.
$ac_ext >&5
17074 rm -f core conftest.err conftest.
$ac_objext \
17075 conftest
$ac_exeext conftest.
$ac_ext
17076 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17078 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17079 # Warning - without using the other run time loading flags,
17080 # -berok will link without error, but may produce a broken library.
17081 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17082 allow_undefined_flag_GCJ
=' ${wl}-berok'
17083 # -bexpall does not export symbols beginning with underscore (_)
17084 always_export_symbols_GCJ
=yes
17085 # Exported symbols can be pulled into shared objects from archives
17086 whole_archive_flag_spec_GCJ
=' '
17087 archive_cmds_need_lc_GCJ
=yes
17088 # This is similar to how AIX traditionally builds it's shared libraries.
17089 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17095 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)'
17096 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17097 hardcode_minus_L_GCJ
=yes
17098 # see comment about different semantics on the GNU ld section
17103 export_dynamic_flag_spec_GCJ
=-rdynamic
17106 cygwin
* | mingw
* | pw32
*)
17107 # When not using gcc, we currently assume that we are using
17108 # Microsoft Visual C++.
17109 # hardcode_libdir_flag_spec is actually meaningless, as there is
17110 # no search path for DLLs.
17111 hardcode_libdir_flag_spec_GCJ
=' '
17112 allow_undefined_flag_GCJ
=unsupported
17113 # Tell ltmain to make .lib files, not .a files.
17115 # Tell ltmain to make .dll files, not .so files.
17117 # FIXME: Setting linknames here is a bad hack.
17118 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17119 # The linker will automatically build a .lib file if we build a DLL.
17120 old_archive_From_new_cmds_GCJ
='true'
17121 # FIXME: Should let the user specify the lib program.
17122 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17123 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17124 enable_shared_with_static_runtimes_GCJ
=yes
17127 darwin
* | rhapsody
*)
17128 if test "$GXX" = yes ; then
17129 archive_cmds_need_lc_GCJ
=no
17131 rhapsody
* | darwin1.
[012])
17132 allow_undefined_flag_GCJ
='-undefined suppress'
17135 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17136 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
17138 case ${MACOSX_DEPLOYMENT_TARGET} in
17140 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
17143 allow_undefined_flag_GCJ
='-undefined dynamic_lookup'
17149 lt_int_apple_cc_single_mod
=no
17150 output_verbose_link_cmd
='echo'
17151 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
17152 lt_int_apple_cc_single_mod
=yes
17154 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
17155 archive_cmds_GCJ
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17157 archive_cmds_GCJ
='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17159 module_cmds_GCJ
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17161 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
17162 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17164 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17166 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}'
17167 hardcode_direct_GCJ
=no
17168 hardcode_automatic_GCJ
=yes
17169 hardcode_shlibpath_var_GCJ
=unsupported
17170 whole_archive_flag_spec_GCJ
='-all_load $convenience'
17171 link_all_deplibs_GCJ
=yes
17178 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17179 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17180 hardcode_shlibpath_var_GCJ
=no
17187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17188 # support. Future versions do this automatically, but an explicit c++rt0.o
17189 # does not break anything, and helps significantly (at the cost of a little
17192 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17193 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17194 hardcode_direct_GCJ
=yes
17195 hardcode_shlibpath_var_GCJ
=no
17198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17200 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17201 hardcode_direct_GCJ
=yes
17202 hardcode_minus_L_GCJ
=yes
17203 hardcode_shlibpath_var_GCJ
=no
17206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17207 freebsd
* | kfreebsd
*-gnu)
17208 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17209 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17210 hardcode_direct_GCJ
=yes
17211 hardcode_shlibpath_var_GCJ
=no
17215 if test "$GCC" = yes; then
17216 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'
17218 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'
17220 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17221 hardcode_libdir_separator_GCJ
=:
17222 hardcode_direct_GCJ
=yes
17224 # hardcode_minus_L: Not really in the search PATH,
17225 # but as the default location of the library.
17226 hardcode_minus_L_GCJ
=yes
17227 export_dynamic_flag_spec_GCJ
='${wl}-E'
17231 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17232 case "$host_cpu" in
17234 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17237 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17241 case "$host_cpu" in
17243 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17246 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17250 if test "$with_gnu_ld" = no
; then
17251 case "$host_cpu" in
17253 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17254 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17255 hardcode_libdir_separator_GCJ
=:
17256 hardcode_direct_GCJ
=no
17257 hardcode_shlibpath_var_GCJ
=no
17260 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17261 hardcode_direct_GCJ
=no
17262 hardcode_shlibpath_var_GCJ
=no
17264 # hardcode_minus_L: Not really in the search PATH,
17265 # but as the default location of the library.
17266 hardcode_minus_L_GCJ
=yes
17269 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17270 hardcode_libdir_separator_GCJ
=:
17271 hardcode_direct_GCJ
=yes
17272 export_dynamic_flag_spec_GCJ
='${wl}-E'
17274 # hardcode_minus_L: Not really in the search PATH,
17275 # but as the default location of the library.
17276 hardcode_minus_L_GCJ
=yes
17282 irix5
* | irix6
* | nonstopux
*)
17283 if test "$GCC" = yes; then
17284 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'
17286 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'
17287 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17289 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17290 hardcode_libdir_separator_GCJ
=:
17291 link_all_deplibs_GCJ
=yes
17295 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17296 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17298 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17300 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17301 hardcode_direct_GCJ
=yes
17302 hardcode_shlibpath_var_GCJ
=no
17306 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17307 hardcode_direct_GCJ
=yes
17308 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17309 hardcode_libdir_separator_GCJ
=:
17310 hardcode_shlibpath_var_GCJ
=no
17314 hardcode_direct_GCJ
=yes
17315 hardcode_shlibpath_var_GCJ
=no
17316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17317 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17318 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17319 export_dynamic_flag_spec_GCJ
='${wl}-E'
17322 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17323 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17324 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17327 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17328 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17335 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17336 hardcode_minus_L_GCJ
=yes
17337 allow_undefined_flag_GCJ
=unsupported
17338 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'
17339 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17343 if test "$GCC" = yes; then
17344 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17345 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'
17347 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17348 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'
17350 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17351 hardcode_libdir_separator_GCJ
=:
17354 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17355 if test "$GCC" = yes; then
17356 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17357 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'
17358 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17360 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17361 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'
17362 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~
17363 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17365 # Both c and cxx compiler support -rpath directly
17366 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17368 hardcode_libdir_separator_GCJ
=:
17372 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17373 hardcode_shlibpath_var_GCJ
=no
17374 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17375 runpath_var
=LD_RUN_PATH
17376 hardcode_runpath_var
=yes
17380 no_undefined_flag_GCJ
=' -z text'
17381 if test "$GCC" = yes; then
17382 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17383 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17384 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17386 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17390 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17391 hardcode_shlibpath_var_GCJ
=no
17393 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17394 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17395 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17397 link_all_deplibs_GCJ
=yes
17401 if test "x$host_vendor" = xsequent
; then
17402 # Use $CC to link under sequent, because it throws in some extra .o
17403 # files that make .init and .fini sections work.
17404 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17406 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17408 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17409 hardcode_direct_GCJ
=yes
17410 hardcode_minus_L_GCJ
=yes
17411 hardcode_shlibpath_var_GCJ
=no
17415 case $host_vendor in
17417 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17418 hardcode_direct_GCJ
=yes # is this really true???
17421 ## LD is ld it makes a PLAMLIB
17422 ## CC just makes a GrossModule.
17423 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17424 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17425 hardcode_direct_GCJ
=no
17428 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17429 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17432 runpath_var
='LD_RUN_PATH'
17433 hardcode_shlibpath_var_GCJ
=no
17437 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17438 hardcode_shlibpath_var_GCJ
=no
17439 export_dynamic_flag_spec_GCJ
='-Bexport'
17443 if test -d /usr
/nec
; then
17444 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_shlibpath_var_GCJ
=no
17446 runpath_var
=LD_RUN_PATH
17447 hardcode_runpath_var
=yes
17453 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_direct_GCJ
=yes
17455 hardcode_minus_L_GCJ
=no
17456 hardcode_shlibpath_var_GCJ
=no
17457 hardcode_runpath_var
=yes
17458 runpath_var
=LD_RUN_PATH
17461 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
17462 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
17463 if test "$GCC" = yes; then
17464 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17466 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17468 runpath_var
='LD_RUN_PATH'
17469 hardcode_shlibpath_var_GCJ
=no
17473 no_undefined_flag_GCJ
=' -z text'
17474 # $CC -shared without GNU ld will not create a library from C++
17475 # object files and a static libstdc++, better avoid it by now
17476 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17479 hardcode_libdir_flag_spec_GCJ
=
17480 hardcode_shlibpath_var_GCJ
=no
17481 runpath_var
='LD_RUN_PATH'
17485 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17486 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17487 hardcode_shlibpath_var_GCJ
=no
17496 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17497 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17498 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17500 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17501 if test "$GCC" = yes; then
17502 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17506 # Do we need to explicitly link libc?
17508 case "x$archive_cmds_need_lc_GCJ" in
17510 # Assume -lc should be added
17511 archive_cmds_need_lc_GCJ
=yes
17513 if test "$enable_shared" = yes && test "$GCC" = yes; then
17514 case $archive_cmds_GCJ in
17516 # FIXME: we may have to deal with multi-command sequences.
17519 # Test whether the compiler implicitly links with -lc since on some
17520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17521 # to ld, don't add -lc before -lgcc.
17522 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17523 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17525 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528 (eval $ac_compile) 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } 2>conftest.err
; then
17534 libobjs
=conftest.
$ac_objext
17536 wl
=$lt_prog_compiler_wl_GCJ
17542 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17543 allow_undefined_flag_GCJ
=
17544 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17545 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }
17550 archive_cmds_need_lc_GCJ
=no
17552 archive_cmds_need_lc_GCJ
=yes
17554 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17556 cat conftest.err
1>&5
17559 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17560 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17567 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17568 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17569 library_names_spec
=
17570 libname_spec
='lib$name'
17574 postuninstall_cmds
=
17578 shlibpath_overrides_runpath
=unknown
17580 dynamic_linker
="$host_os ld.so"
17581 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17582 if test "$GCC" = yes; then
17583 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17584 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17585 # if the path contains ";" then we assume it to be the separator
17586 # otherwise default to the standard path separator (i.e. ":") - it is
17587 # assumed that no part of a normal pathname contains ";" but that should
17588 # okay in the real world where ";" in dirpaths is itself problematic.
17589 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17591 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17594 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17596 need_lib_prefix
=unknown
17597 hardcode_into_libs
=no
17599 # when you set need_version to no, make sure it does not cause -set_version
17600 # flags to be left without arguments
17601 need_version
=unknown
17606 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17607 shlibpath_var
=LIBPATH
17609 # AIX 3 has no versioning support, so we append a major version to the name.
17610 soname_spec
='${libname}${release}${shared_ext}$major'
17617 hardcode_into_libs
=yes
17618 if test "$host_cpu" = ia64
; then
17619 # AIX 5 supports IA64
17620 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17621 shlibpath_var
=LD_LIBRARY_PATH
17623 # With GCC up to 2.95.x, collect2 would create an import file
17624 # for dependence libraries. The import file would start with
17625 # the line `#! .'. This would cause the generated library to
17626 # depend on `.', always an invalid library. This was fixed in
17627 # development snapshots of GCC prior to 3.0.
17629 aix4 | aix4.
[01] | aix4.
[01].
*)
17630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17632 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17635 can_build_shared
=no
17639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17640 # soname into executable. Probably we can add versioning support to
17641 # collect2, so additional links can be useful in future.
17642 if test "$aix_use_runtimelinking" = yes; then
17643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17644 # instead of lib<name>.a to let people know that these are not
17645 # typical AIX shared libraries.
17646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648 # We preserve .a as extension for shared libraries through AIX4.2
17649 # and later when we are not doing run time linking.
17650 library_names_spec
='${libname}${release}.a $libname.a'
17651 soname_spec
='${libname}${release}${shared_ext}$major'
17653 shlibpath_var
=LIBPATH
17658 library_names_spec
='$libname.ixlibrary $libname.a'
17659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17660 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'
17664 library_names_spec
='${libname}${shared_ext}'
17665 dynamic_linker
="$host_os ld.so"
17666 shlibpath_var
=LIBRARY_PATH
17672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 soname_spec
='${libname}${release}${shared_ext}$major'
17674 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17675 shlibpath_var
=LD_LIBRARY_PATH
17676 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17677 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17678 # the default ld.so.conf also contains /usr/contrib/lib and
17679 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17680 # libtool to hard-code these into programs
17683 cygwin
* | mingw
* | pw32
*)
17684 version_type
=windows
17689 case $GCC,$host_os in
17690 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17691 library_names_spec
='$libname.dll.a'
17692 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17693 postinstall_cmds
='base_file=`basename \${file}`~
17694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17695 dldir=$destdir/`dirname \$dlpath`~
17696 test -d \$dldir || mkdir -p \$dldir~
17697 $install_prog $dir/$dlname \$dldir/$dlname'
17698 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17699 dlpath=$dir/\$dldll~
17701 shlibpath_overrides_runpath
=yes
17705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17706 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17707 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17710 # MinGW DLLs use traditional 'lib' prefix
17711 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17712 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17713 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17714 # It is most probably a Windows format PATH printed by
17715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17716 # path with ; separators, and with drive letters. We can handle the
17717 # drive letters (cygwin fileutils understands them), so leave them,
17718 # especially as we might pass files found there to a mingw objdump,
17719 # which wouldn't understand a cygwinified path. Ahh.
17720 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17722 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17726 # pw32 DLLs use 'pw' prefix rather than 'lib'
17727 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17733 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17736 dynamic_linker
='Win32 ld.exe'
17737 # FIXME: first we should search . and the directory the executable is in
17741 darwin
* | rhapsody
*)
17742 dynamic_linker
="$host_os dyld"
17743 version_type
=darwin
17746 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17747 soname_spec
='${libname}${release}${major}$shared_ext'
17748 shlibpath_overrides_runpath
=yes
17749 shlibpath_var
=DYLD_LIBRARY_PATH
17750 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
17751 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17752 if test "$GCC" = yes; then
17753 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17755 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17757 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17765 soname_spec
='${libname}${release}${shared_ext}$major'
17766 shlibpath_var
=LD_LIBRARY_PATH
17777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17778 soname_spec
='${libname}${release}${shared_ext}$major'
17779 shlibpath_var
=LD_LIBRARY_PATH
17780 shlibpath_overrides_runpath
=no
17781 hardcode_into_libs
=yes
17782 dynamic_linker
='GNU ld.so'
17786 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17787 version_type
=freebsd-
$objformat
17788 case $version_type in
17790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17795 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17799 shlibpath_var
=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath
=yes
17804 freebsd3.01
* | freebsdelf3.01
*)
17805 shlibpath_overrides_runpath
=yes
17806 hardcode_into_libs
=yes
17809 shlibpath_overrides_runpath
=no
17810 hardcode_into_libs
=yes
17819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17820 soname_spec
='${libname}${release}${shared_ext}$major'
17821 shlibpath_var
=LD_LIBRARY_PATH
17822 hardcode_into_libs
=yes
17825 hpux9
* | hpux10
* | hpux11
*)
17826 # Give a soname corresponding to the major version so that dld.sl refuses to
17827 # link against other versions.
17831 case "$host_cpu" in
17834 hardcode_into_libs
=yes
17835 dynamic_linker
="$host_os dld.so"
17836 shlibpath_var
=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 soname_spec
='${libname}${release}${shared_ext}$major'
17840 if test "X$HPUX_IA64_MODE" = X32
; then
17841 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17843 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17845 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17849 hardcode_into_libs
=yes
17850 dynamic_linker
="$host_os dld.sl"
17851 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17852 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854 soname_spec
='${libname}${release}${shared_ext}$major'
17855 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17856 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17860 dynamic_linker
="$host_os dld.sl"
17861 shlibpath_var
=SHLIB_PATH
17862 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec
='${libname}${release}${shared_ext}$major'
17867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17868 postinstall_cmds
='chmod 555 $lib'
17871 irix5
* | irix6
* | nonstopux
*)
17873 nonstopux
*) version_type
=nonstopux
;;
17875 if test "$lt_cv_prog_gnu_ld" = yes; then
17883 soname_spec
='${libname}${release}${shared_ext}$major'
17884 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17886 irix5
* | nonstopux
*)
17887 libsuff
= shlibsuff
=
17890 case $LD in # libtool.m4 will add one of these switches to LD
17891 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17892 libsuff
= shlibsuff
= libmagic
=32-bit;;
17893 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17894 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17895 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17896 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17897 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17901 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17902 shlibpath_overrides_runpath
=no
17903 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17904 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17905 hardcode_into_libs
=yes
17908 # No shared lib support for Linux oldld, aout, or coff.
17909 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17913 # This must be Linux ELF.
17918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17919 soname_spec
='${libname}${release}${shared_ext}$major'
17920 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17921 shlibpath_var
=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath
=no
17923 # This implies no fast_install, which is unacceptable.
17924 # Some rework will be needed to allow for fast_install
17925 # before this can be enabled.
17926 hardcode_into_libs
=yes
17928 # We used to test for /lib/ld.so.1 and disable shared libraries on
17929 # powerpc, because MkLinux only supported shared libraries with the
17930 # GNU dynamic linker. Since this was broken with cross compilers,
17931 # most powerpc-linux boxes support dynamic linking these days and
17932 # people can always --disable-shared, the test was removed, and we
17933 # assume the GNU/Linux dynamic linker is in use.
17934 dynamic_linker
='GNU/Linux ld.so'
17941 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17943 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17944 dynamic_linker
='NetBSD (a.out) ld.so'
17946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17947 soname_spec
='${libname}${release}${shared_ext}$major'
17948 dynamic_linker
='NetBSD ld.elf_so'
17950 shlibpath_var
=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath
=yes
17952 hardcode_into_libs
=yes
17957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17958 shlibpath_var
=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath
=yes
17966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967 soname_spec
='${libname}${release}${shared_ext}$major'
17968 shlibpath_var
=LD_LIBRARY_PATH
17969 shlibpath_overrides_runpath
=yes
17976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17977 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17978 shlibpath_var
=LD_LIBRARY_PATH
17979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17981 openbsd2.
[89] | openbsd2.
[89].
*)
17982 shlibpath_overrides_runpath
=no
17985 shlibpath_overrides_runpath
=yes
17989 shlibpath_overrides_runpath
=yes
17994 libname_spec
='$name'
17997 library_names_spec
='$libname${shared_ext} $libname.a'
17998 dynamic_linker
='OS/2 ld.exe'
17999 shlibpath_var
=LIBPATH
18002 osf3
* | osf4
* | osf5
*)
18006 soname_spec
='${libname}${release}${shared_ext}$major'
18007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008 shlibpath_var
=LD_LIBRARY_PATH
18009 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18010 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18015 soname_spec
='${libname}${release}${shared_ext}$major'
18016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017 shlibpath_var
=LD_LIBRARY_PATH
18024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 soname_spec
='${libname}${release}${shared_ext}$major'
18026 shlibpath_var
=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath
=yes
18028 hardcode_into_libs
=yes
18029 # ldd complains unless libraries are executable
18030 postinstall_cmds
='chmod +x $lib'
18035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18036 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18037 shlibpath_var
=LD_LIBRARY_PATH
18038 shlibpath_overrides_runpath
=yes
18039 if test "$with_gnu_ld" = yes; then
18045 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 soname_spec
='${libname}${release}${shared_ext}$major'
18049 shlibpath_var
=LD_LIBRARY_PATH
18050 case $host_vendor in
18052 shlibpath_overrides_runpath
=no
18054 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18055 runpath_var
=LD_RUN_PATH
18063 shlibpath_overrides_runpath
=no
18064 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18070 if test -d /usr
/nec
;then
18072 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18073 soname_spec
='$libname${shared_ext}.$major'
18074 shlibpath_var
=LD_LIBRARY_PATH
18080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18081 soname_spec
='${libname}${release}${shared_ext}$major'
18082 shlibpath_var
=LD_LIBRARY_PATH
18089 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18090 echo "${ECHO_T}$dynamic_linker" >&6; }
18091 test "$dynamic_linker" = no
&& can_build_shared
=no
18093 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18095 hardcode_action_GCJ
=
18096 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18097 test -n "$runpath_var GCJ" || \
18098 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18100 # We can hardcode non-existant directories.
18101 if test "$hardcode_direct_GCJ" != no
&&
18102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18103 # have to relink, otherwise we might link with an installed library
18104 # when we should be linking with a yet-to-be-installed one
18105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18106 test "$hardcode_minus_L_GCJ" != no
; then
18107 # Linking always hardcodes the temporary library directory.
18108 hardcode_action_GCJ
=relink
18110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18111 hardcode_action_GCJ
=immediate
18114 # We cannot hardcode anything, or else we can only hardcode existing
18116 hardcode_action_GCJ
=unsupported
18118 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18119 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18121 if test "$hardcode_action_GCJ" = relink
; then
18122 # Fast installation is not supported
18123 enable_fast_install
=no
18124 elif test "$shlibpath_overrides_runpath" = yes ||
18125 test "$enable_shared" = no
; then
18126 # Fast installation is not necessary
18127 enable_fast_install
=needless
18132 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18134 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
18135 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18136 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18137 { echo "$as_me:$LINENO: result: yes" >&5
18138 echo "${ECHO_T}yes" >&6; }
18140 # FIXME - insert some real tests, host_os isn't really good enough
18143 if test -n "$STRIP" ; then
18144 striplib
="$STRIP -x"
18145 { echo "$as_me:$LINENO: result: yes" >&5
18146 echo "${ECHO_T}yes" >&6; }
18148 { echo "$as_me:$LINENO: result: no" >&5
18149 echo "${ECHO_T}no" >&6; }
18153 { echo "$as_me:$LINENO: result: no" >&5
18154 echo "${ECHO_T}no" >&6; }
18159 if test "x$enable_dlopen" != xyes
; then
18160 enable_dlopen
=unknown
18161 enable_dlopen_self
=unknown
18162 enable_dlopen_self_static
=unknown
18169 lt_cv_dlopen
="load_add_on"
18171 lt_cv_dlopen_self
=yes
18175 lt_cv_dlopen
="LoadLibrary"
18180 lt_cv_dlopen
="dlopen"
18185 # if libdl is installed we need to link against it
18186 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 ac_check_lib_save_LIBS
=$LIBS
18193 cat >conftest.
$ac_ext <<_ACEOF
18196 cat confdefs.h
>>conftest.
$ac_ext
18197 cat >>conftest.
$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18215 rm -f conftest.
$ac_objext conftest
$ac_exeext
18216 if { (ac_try
="$ac_link"
18217 case "(($ac_try" in
18218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18232 *) ac_try_echo
=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try
='test -s conftest$ac_exeext'
18240 { (case "(($ac_try" in
18241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_try") 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_lib_dl_dlopen=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_lib_dl_dlopen=no
18257 rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext conftest.$ac_ext
18259 LIBS=$ac_check_lib_save_LIBS
18261 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18262 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18263 if test $ac_cv_lib_dl_dlopen = yes; then
18264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18267 lt_cv_dlopen="dyld"
18269 lt_cv_dlopen_self=yes
18276 { echo "$as_me:$LINENO: checking for shl_load" >&5
18277 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18278 if test "${ac_cv_func_shl_load+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18289 #define shl_load innocuous_shl_load
18291 /* System header to define __stub macros and hopefully few prototypes,
18292 which can conflict with char shl_load (); below.
18293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18294 <limits.h> exists even on freestanding compilers. */
18297 # include <limits.h>
18299 # include <assert.h>
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18311 /* The GNU C library defines this for functions which it implements
18312 to always fail with ENOSYS. Some functions are actually named
18313 something starting with __ and the normal name is an alias. */
18314 #if defined __stub_shl_load || defined __stub___shl_load
18321 return shl_load ();
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18330 *) ac_try_echo
=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1
>conftest.err
18337 cat conftest.err
>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18341 { (case "(($ac_try" in
18342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; } &&
18350 { ac_try='test -s conftest$ac_exeext'
18351 { (case "(($ac_try" in
18352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18353 *) ac_try_echo
=$ac_try;;
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_try") 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 ac_cv_func_shl_load
=yes
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.
$ac_ext >&5
18365 ac_cv_func_shl_load
=no
18368 rm -f core conftest.err conftest.
$ac_objext \
18369 conftest
$ac_exeext conftest.
$ac_ext
18371 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18372 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18373 if test $ac_cv_func_shl_load = yes; then
18374 lt_cv_dlopen
="shl_load"
18376 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18377 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18378 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 ac_check_lib_save_LIBS
=$LIBS
18383 cat >conftest.
$ac_ext <<_ACEOF
18386 cat confdefs.h
>>conftest.
$ac_ext
18387 cat >>conftest.
$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18390 /* Override any GCC internal prototype to avoid an error.
18391 Use char because int might match the return type of a GCC
18392 builtin and then its argument prototype would still apply. */
18400 return shl_load ();
18405 rm -f conftest.
$ac_objext conftest
$ac_exeext
18406 if { (ac_try
="$ac_link"
18407 case "(($ac_try" in
18408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_link") 2>conftest.er1
18414 grep -v '^ *+' conftest.er1 >conftest.err
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18422 *) ac_try_echo
=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try
='test -s conftest$ac_exeext'
18430 { (case "(($ac_try" in
18431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_try") 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_lib_dld_shl_load=yes
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_cv_lib_dld_shl_load=no
18447 rm -f core conftest.err conftest.$ac_objext \
18448 conftest$ac_exeext conftest.$ac_ext
18449 LIBS=$ac_check_lib_save_LIBS
18451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18452 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18453 if test $ac_cv_lib_dld_shl_load = yes; then
18454 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18456 { echo "$as_me:$LINENO: checking for dlopen" >&5
18457 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18458 if test "${ac_cv_func_dlopen+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 cat >conftest.$ac_ext <<_ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18467 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18469 #define dlopen innocuous_dlopen
18471 /* System header to define __stub macros and hopefully few prototypes,
18472 which can conflict with char dlopen (); below.
18473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474 <limits.h> exists even on freestanding compilers. */
18477 # include <limits.h>
18479 # include <assert.h>
18484 /* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply. */
18491 /* The GNU C library defines this for functions which it implements
18492 to always fail with ENOSYS. Some functions are actually named
18493 something starting with __ and the normal name is an alias. */
18494 #if defined __stub_dlopen || defined __stub___dlopen
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18510 *) ac_try_echo
=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18515 grep -v '^ *+' conftest.er1
>conftest.err
18517 cat conftest.err
>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521 { (case "(($ac_try" in
18522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest$ac_exeext'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18533 *) ac_try_echo
=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_cv_func_dlopen
=yes
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.
$ac_ext >&5
18545 ac_cv_func_dlopen
=no
18548 rm -f core conftest.err conftest.
$ac_objext \
18549 conftest
$ac_exeext conftest.
$ac_ext
18551 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18552 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18553 if test $ac_cv_func_dlopen = yes; then
18554 lt_cv_dlopen
="dlopen"
18556 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 ac_check_lib_save_LIBS
=$LIBS
18563 cat >conftest.
$ac_ext <<_ACEOF
18566 cat confdefs.h
>>conftest.
$ac_ext
18567 cat >>conftest.
$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18570 /* Override any GCC internal prototype to avoid an error.
18571 Use char because int might match the return type of a GCC
18572 builtin and then its argument prototype would still apply. */
18585 rm -f conftest.
$ac_objext conftest
$ac_exeext
18586 if { (ac_try
="$ac_link"
18587 case "(($ac_try" in
18588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_link") 2>conftest.er1
18594 grep -v '^ *+' conftest.er1 >conftest.err
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18602 *) ac_try_echo
=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try
='test -s conftest$ac_exeext'
18610 { (case "(($ac_try" in
18611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_lib_dl_dlopen=yes
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_cv_lib_dl_dlopen=no
18627 rm -f core conftest.err conftest.$ac_objext \
18628 conftest$ac_exeext conftest.$ac_ext
18629 LIBS=$ac_check_lib_save_LIBS
18631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18632 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18633 if test $ac_cv_lib_dl_dlopen = yes; then
18634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18636 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18637 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18638 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 ac_check_lib_save_LIBS=$LIBS
18642 LIBS="-lsvld $LIBS"
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18650 /* Override any GCC internal prototype to avoid an error.
18651 Use char because int might match the return type of a GCC
18652 builtin and then its argument prototype would still apply. */
18665 rm -f conftest.$ac_objext conftest$ac_exeext
18666 if { (ac_try="$ac_link"
18667 case "(($ac_try" in
18668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18669 *) ac_try_echo
=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_link") 2>conftest.er1
18674 grep -v '^ *+' conftest.er1
>conftest.err
18676 cat conftest.err
>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
18679 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18680 { (case "(($ac_try" in
18681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_try") 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18692 *) ac_try_echo
=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_lib_svld_dlopen
=yes
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.
$ac_ext >&5
18704 ac_cv_lib_svld_dlopen
=no
18707 rm -f core conftest.err conftest.
$ac_objext \
18708 conftest
$ac_exeext conftest.
$ac_ext
18709 LIBS
=$ac_check_lib_save_LIBS
18711 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18712 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18713 if test $ac_cv_lib_svld_dlopen = yes; then
18714 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18716 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18717 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18718 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 ac_check_lib_save_LIBS
=$LIBS
18723 cat >conftest.
$ac_ext <<_ACEOF
18726 cat confdefs.h
>>conftest.
$ac_ext
18727 cat >>conftest.
$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18740 return dld_link ();
18745 rm -f conftest.
$ac_objext conftest
$ac_exeext
18746 if { (ac_try
="$ac_link"
18747 case "(($ac_try" in
18748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_link") 2>conftest.er1
18754 grep -v '^ *+' conftest.er1 >conftest.err
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18762 *) ac_try_echo
=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try
='test -s conftest$ac_exeext'
18770 { (case "(($ac_try" in
18771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_lib_dld_dld_link=yes
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_lib_dld_dld_link=no
18787 rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18792 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18793 if test $ac_cv_lib_dld_dld_link = yes; then
18794 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18815 if test "x$lt_cv_dlopen" != xno; then
18821 case $lt_cv_dlopen in
18823 save_CPPFLAGS="$CPPFLAGS"
18824 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18826 save_LDFLAGS="$LDFLAGS"
18827 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18830 LIBS="$lt_cv_dlopen_libs $LIBS"
18832 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18833 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18834 if test "${lt_cv_dlopen_self+set}" = set; then
18835 echo $ECHO_N "(cached) $ECHO_C" >&6
18837 if test "$cross_compiling" = yes; then :
18838 lt_cv_dlopen_self=cross
18840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18841 lt_status=$lt_dlunknown
18842 cat > conftest.$ac_ext <<EOF
18843 #line 18843 "configure"
18844 #include "confdefs.h"
18853 # define LT_DLGLOBAL RTLD_GLOBAL
18856 # define LT_DLGLOBAL DL_GLOBAL
18858 # define LT_DLGLOBAL 0
18862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18863 find out it does not work in some platform. */
18864 #ifndef LT_DLLAZY_OR_NOW
18866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18869 # define LT_DLLAZY_OR_NOW DL_LAZY
18872 # define LT_DLLAZY_OR_NOW RTLD_NOW
18875 # define LT_DLLAZY_OR_NOW DL_NOW
18877 # define LT_DLLAZY_OR_NOW 0
18885 extern "C" void exit (int);
18888 void fnord() { int i=42;}
18891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18892 int status = $lt_dlunknown;
18896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18897 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18898 /* dlclose (self); */
18904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18905 (eval $ac_link) 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18909 (./conftest; exit; ) 2>/dev/null
18911 case x$lt_status in
18912 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18913 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18914 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18917 # compilation failed
18918 lt_cv_dlopen_self=no
18925 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18926 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18928 if test "x$lt_cv_dlopen_self" = xyes; then
18929 LDFLAGS="$LDFLAGS $link_static_flag"
18930 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18931 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18932 if test "${lt_cv_dlopen_self_static+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 if test "$cross_compiling" = yes; then :
18936 lt_cv_dlopen_self_static=cross
18938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18939 lt_status=$lt_dlunknown
18940 cat > conftest.$ac_ext <<EOF
18941 #line 18941 "configure"
18942 #include "confdefs.h"
18951 # define LT_DLGLOBAL RTLD_GLOBAL
18954 # define LT_DLGLOBAL DL_GLOBAL
18956 # define LT_DLGLOBAL 0
18960 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18961 find out it does not work in some platform. */
18962 #ifndef LT_DLLAZY_OR_NOW
18964 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18967 # define LT_DLLAZY_OR_NOW DL_LAZY
18970 # define LT_DLLAZY_OR_NOW RTLD_NOW
18973 # define LT_DLLAZY_OR_NOW DL_NOW
18975 # define LT_DLLAZY_OR_NOW 0
18983 extern "C" void exit (int);
18986 void fnord() { int i=42;}
18989 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18990 int status = $lt_dlunknown;
18994 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18995 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18996 /* dlclose (self); */
19002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19003 (eval $ac_link) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19007 (./conftest; exit; ) 2>/dev/null
19009 case x$lt_status in
19010 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19011 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19012 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19015 # compilation failed
19016 lt_cv_dlopen_self_static=no
19023 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19024 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19027 CPPFLAGS="$save_CPPFLAGS"
19028 LDFLAGS="$save_LDFLAGS"
19033 case $lt_cv_dlopen_self in
19034 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19035 *) enable_dlopen_self=unknown ;;
19038 case $lt_cv_dlopen_self_static in
19039 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19040 *) enable_dlopen_self_static=unknown ;;
19045 # The else clause should only fire when bootstrapping the
19046 # libtool distribution, otherwise you forgot to ship ltmain.sh
19047 # with your package, and you will get complaints that there are
19048 # no rules to generate ltmain.sh.
19049 if test -f "$ltmain"; then
19050 # See if we are running on zsh, and set the options which allow our commands through
19051 # without removal of \ escapes.
19052 if test -n "${ZSH_VERSION+set}" ; then
19053 setopt NO_GLOB_SUBST
19055 # Now quote all the things that may contain metacharacters while being
19056 # careful not to overquote the AC_SUBSTed values. We take copies of the
19057 # variables and quote the copies for generation of the libtool script.
19058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19061 deplibs_check_method reload_flag reload_cmds need_locks \
19062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19063 lt_cv_sys_global_symbol_to_c_name_address \
19064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19065 old_postinstall_cmds old_postuninstall_cmds \
19069 lt_prog_compiler_wl_GCJ \
19070 lt_prog_compiler_pic_GCJ \
19071 lt_prog_compiler_static_GCJ \
19072 lt_prog_compiler_no_builtin_flag_GCJ \
19073 export_dynamic_flag_spec_GCJ \
19074 thread_safe_flag_spec_GCJ \
19075 whole_archive_flag_spec_GCJ \
19076 enable_shared_with_static_runtimes_GCJ \
19077 old_archive_cmds_GCJ \
19078 old_archive_from_new_cmds_GCJ \
19079 predep_objects_GCJ \
19080 postdep_objects_GCJ \
19083 compiler_lib_search_path_GCJ \
19085 archive_expsym_cmds_GCJ \
19086 postinstall_cmds_GCJ \
19087 postuninstall_cmds_GCJ \
19088 old_archive_from_expsyms_cmds_GCJ \
19089 allow_undefined_flag_GCJ \
19090 no_undefined_flag_GCJ \
19091 export_symbols_cmds_GCJ \
19092 hardcode_libdir_flag_spec_GCJ \
19093 hardcode_libdir_flag_spec_ld_GCJ \
19094 hardcode_libdir_separator_GCJ \
19095 hardcode_automatic_GCJ \
19097 module_expsym_cmds_GCJ \
19098 lt_cv_prog_compiler_c_o_GCJ \
19099 exclude_expsyms_GCJ \
19100 include_expsyms_GCJ; do
19103 old_archive_cmds_GCJ | \
19104 old_archive_from_new_cmds_GCJ | \
19105 archive_cmds_GCJ | \
19106 archive_expsym_cmds_GCJ | \
19107 module_cmds_GCJ | \
19108 module_expsym_cmds_GCJ | \
19109 old_archive_from_expsyms_cmds_GCJ | \
19110 export_symbols_cmds_GCJ | \
19111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19112 postinstall_cmds | postuninstall_cmds | \
19113 old_postinstall_cmds | old_postuninstall_cmds | \
19114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19115 # Double-quote double-evaled strings.
19116 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
19119 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
19125 *'\$0 --fallback-echo"')
19126 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19132 cat <<__EOF__ >> "$cfgfile"
19133 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19135 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
19137 # Shell to use when invoking shell scripts.
19140 # Whether or not to build shared libraries.
19141 build_libtool_libs=$enable_shared
19143 # Whether or not to build static libraries.
19144 build_old_libs=$enable_static
19146 # Whether or not to add -lc for building shared libraries.
19147 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19149 # Whether or not to disallow shared libs when runtime libs are static
19150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19152 # Whether or not to optimize for fast installation.
19153 fast_install=$enable_fast_install
19156 host_alias=$host_alias
19159 # An echo program that does not interpret backslashes.
19164 AR_FLAGS=$lt_AR_FLAGS
19169 # A language-specific compiler.
19170 CC=$lt_compiler_GCJ
19172 # Is the compiler the GNU C compiler?
19178 # The linker used to build libraries.
19181 # Whether we need hard or soft links.
19184 # A BSD-compatible nm program.
19187 # A symbol stripping program
19190 # Used to examine libraries when file_magic_cmd begins "file"
19191 MAGIC_CMD=$MAGIC_CMD
19193 # Used on cygwin: DLL creation program.
19196 # Used on cygwin: object dumper.
19199 # Used on cygwin: assembler.
19202 # The name of the directory that contains temporary libtool files.
19205 # How to create reloadable object files.
19206 reload_flag=$lt_reload_flag
19207 reload_cmds=$lt_reload_cmds
19209 # How to pass a linker flag through the compiler.
19210 wl=$lt_lt_prog_compiler_wl_GCJ
19212 # Object file suffix (normally "o").
19213 objext="$ac_objext"
19215 # Old archive suffix (normally "a").
19218 # Shared library suffix (normally ".so").
19221 # Executable file suffix (normally "").
19224 # Additional compiler flags for building library objects.
19225 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19228 # What is the maximum length of a command?
19229 max_cmd_len=$lt_cv_sys_max_cmd_len
19231 # Does compiler simultaneously support -c and -o options?
19232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19234 # Must we lock files when doing compilation ?
19235 need_locks=$lt_need_locks
19237 # Do we need the lib prefix for modules?
19238 need_lib_prefix=$need_lib_prefix
19240 # Do we need a version for libraries?
19241 need_version=$need_version
19243 # Whether dlopen is supported.
19244 dlopen_support=$enable_dlopen
19246 # Whether dlopen of programs is supported.
19247 dlopen_self=$enable_dlopen_self
19249 # Whether dlopen of statically linked programs is supported.
19250 dlopen_self_static=$enable_dlopen_self_static
19252 # Compiler flag to prevent dynamic linking.
19253 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19255 # Compiler flag to turn off builtin functions.
19256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19258 # Compiler flag to allow reflexive dlopens.
19259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19261 # Compiler flag to generate shared objects directly from archives.
19262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19264 # Compiler flag to generate thread-safe objects.
19265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19267 # Library versioning type.
19268 version_type=$version_type
19270 # Format of library name prefix.
19271 libname_spec=$lt_libname_spec
19273 # List of archive names. First name is the real one, the rest are links.
19274 # The last name is the one that the linker finds with -lNAME.
19275 library_names_spec=$lt_library_names_spec
19277 # The coded name of the library, if different from the real name.
19278 soname_spec=$lt_soname_spec
19280 # Commands used to build and install an old-style archive.
19282 old_archive_cmds=$lt_old_archive_cmds_GCJ
19283 old_postinstall_cmds=$lt_old_postinstall_cmds
19284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19286 # Create an old-style archive from a shared archive.
19287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19289 # Create a temporary old-style archive to link instead of a shared archive.
19290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19292 # Commands used to build and install a shared archive.
19293 archive_cmds=$lt_archive_cmds_GCJ
19294 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19295 postinstall_cmds=$lt_postinstall_cmds
19296 postuninstall_cmds=$lt_postuninstall_cmds
19298 # Commands used to build a loadable module (assumed same as above if empty)
19299 module_cmds=$lt_module_cmds_GCJ
19300 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19302 # Commands to strip libraries.
19303 old_striplib=$lt_old_striplib
19304 striplib=$lt_striplib
19306 # Dependencies to place before the objects being linked to create a
19308 predep_objects=$lt_predep_objects_GCJ
19310 # Dependencies to place after the objects being linked to create a
19312 postdep_objects=$lt_postdep_objects_GCJ
19314 # Dependencies to place before the objects being linked to create a
19316 predeps=$lt_predeps_GCJ
19318 # Dependencies to place after the objects being linked to create a
19320 postdeps=$lt_postdeps_GCJ
19322 # The library search path used internally by the compiler when linking
19323 # a shared library.
19324 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19326 # Method to check whether dependent libraries are shared objects.
19327 deplibs_check_method=$lt_deplibs_check_method
19329 # Command to use when deplibs_check_method == file_magic.
19330 file_magic_cmd=$lt_file_magic_cmd
19332 # Flag that allows shared libraries with undefined symbols to be built.
19333 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19335 # Flag that forces no undefined symbols.
19336 no_undefined_flag=$lt_no_undefined_flag_GCJ
19338 # Commands used to finish a libtool library installation in a directory.
19339 finish_cmds=$lt_finish_cmds
19341 # Same as above, but a single script fragment to be evaled but not shown.
19342 finish_eval=$lt_finish_eval
19344 # Take the output of nm and produce a listing of raw symbols and C names.
19345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19347 # Transform the output of nm in a proper C declaration
19348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19350 # Transform the output of nm in a C name address pair
19351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19353 # This is the shared library runtime path variable.
19354 runpath_var=$runpath_var
19356 # This is the shared library path variable.
19357 shlibpath_var=$shlibpath_var
19359 # Is shlibpath searched before the hard-coded library search path?
19360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19362 # How to hardcode a shared library path into an executable.
19363 hardcode_action=$hardcode_action_GCJ
19365 # Whether we should hardcode library paths into libraries.
19366 hardcode_into_libs=$hardcode_into_libs
19368 # Flag to hardcode \$libdir into a binary during linking.
19369 # This must work even if \$libdir does not exist.
19370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19372 # If ld is used when linking, flag to hardcode \$libdir into
19373 # a binary during linking. This must work even if \$libdir does
19375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19377 # Whether we need a single -rpath flag with a separated argument.
19378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19381 # resulting binary.
19382 hardcode_direct=$hardcode_direct_GCJ
19384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19385 # resulting binary.
19386 hardcode_minus_L=$hardcode_minus_L_GCJ
19388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19389 # the resulting binary.
19390 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19392 # Set to yes if building a shared library automatically hardcodes DIR into the library
19393 # and all subsequent libraries and executables linked against it.
19394 hardcode_automatic=$hardcode_automatic_GCJ
19396 # Variables whose values should be saved in libtool wrapper scripts and
19397 # restored at relink time.
19398 variables_saved_for_relink="$variables_saved_for_relink"
19400 # Whether libtool must link a program against all its dependency libraries.
19401 link_all_deplibs=$link_all_deplibs_GCJ
19403 # Compile-time system search path for libraries
19404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19406 # Run-time system search path for libraries
19407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19409 # Fix the shell variable \$srcfile for the compiler.
19410 fix_srcfile_path="$fix_srcfile_path_GCJ"
19412 # Set to yes if exported symbols are required.
19413 always_export_symbols=$always_export_symbols_GCJ
19415 # The commands to list exported symbols.
19416 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19418 # The commands to extract the exported symbol list from a shared archive.
19419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19421 # Symbols that should not be listed in the preloaded symbols.
19422 exclude_expsyms=$lt_exclude_expsyms_GCJ
19424 # Symbols that must always be exported.
19425 include_expsyms=$lt_include_expsyms_GCJ
19427 # ### END LIBTOOL TAG CONFIG: $tagname
19433 # If there is no Makefile yet, we rely on a make rule to execute
19434 # `config.status
--recheck' to rerun these tests and create the
19435 # libtool script then.
19436 test -f Makefile && make "$ltmain"
19441 ac_cpp='$CPP $CPPFLAGS'
19442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
19443 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
19444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19456 # Source file extension for RC test sources.
19459 # Object file extension for compiled RC test sources.
19463 # Code to be used in simple compile tests
19464 lt_simple_compile_test_code='sample MENU
{ MENUITEM
"&Soup", 100, CHECKED
}\n'
19466 # Code to be used in simple link tests
19467 lt_simple_link_test_code="$lt_simple_compile_test_code"
19469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19471 # If no C compiler was specified, use CC.
19474 # Allow CC to be a program name with arguments.
19478 # Allow CC to be a program name with arguments.
19483 lt_cv_prog_compiler_c_o_RC=yes
19485 # The else clause should only fire when bootstrapping the
19486 # libtool distribution, otherwise you forgot to ship ltmain.sh
19487 # with your package, and you will get complaints that there are
19488 # no rules to generate ltmain.sh.
19489 if test -f "$ltmain"; then
19490 # See if we are running on zsh, and set the options which allow our commands through
19491 # without removal of \ escapes.
19492 if test -n "${ZSH_VERSION+set}" ; then
19493 setopt NO_GLOB_SUBST
19495 # Now quote all the things that may contain metacharacters while being
19496 # careful not to overquote the AC_SUBSTed values. We take copies of the
19497 # variables and quote the copies for generation of the libtool script.
19498 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19499 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19500 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19501 deplibs_check_method reload_flag reload_cmds need_locks \
19502 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19503 lt_cv_sys_global_symbol_to_c_name_address \
19504 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19505 old_postinstall_cmds old_postuninstall_cmds \
19509 lt_prog_compiler_wl_RC \
19510 lt_prog_compiler_pic_RC \
19511 lt_prog_compiler_static_RC \
19512 lt_prog_compiler_no_builtin_flag_RC \
19513 export_dynamic_flag_spec_RC \
19514 thread_safe_flag_spec_RC \
19515 whole_archive_flag_spec_RC \
19516 enable_shared_with_static_runtimes_RC \
19517 old_archive_cmds_RC \
19518 old_archive_from_new_cmds_RC \
19519 predep_objects_RC \
19520 postdep_objects_RC \
19523 compiler_lib_search_path_RC \
19525 archive_expsym_cmds_RC \
19526 postinstall_cmds_RC \
19527 postuninstall_cmds_RC \
19528 old_archive_from_expsyms_cmds_RC \
19529 allow_undefined_flag_RC \
19530 no_undefined_flag_RC \
19531 export_symbols_cmds_RC \
19532 hardcode_libdir_flag_spec_RC \
19533 hardcode_libdir_flag_spec_ld_RC \
19534 hardcode_libdir_separator_RC \
19535 hardcode_automatic_RC \
19537 module_expsym_cmds_RC \
19538 lt_cv_prog_compiler_c_o_RC \
19539 exclude_expsyms_RC \
19540 include_expsyms_RC; do
19543 old_archive_cmds_RC | \
19544 old_archive_from_new_cmds_RC | \
19545 archive_cmds_RC | \
19546 archive_expsym_cmds_RC | \
19548 module_expsym_cmds_RC | \
19549 old_archive_from_expsyms_cmds_RC | \
19550 export_symbols_cmds_RC | \
19551 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19552 postinstall_cmds | postuninstall_cmds | \
19553 old_postinstall_cmds | old_postuninstall_cmds | \
19554 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19555 # Double-quote double-evaled strings.
19556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19565 *'\
$0 --fallback-echo"')
19566 lt_echo=`$echo "X
$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$
/$0 --fallback-echo"/'`
19572 cat <<__EOF__ >> "$cfgfile"
19573 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19577 # Shell to use when invoking shell scripts.
19580 # Whether or not to build shared libraries.
19581 build_libtool_libs=$enable_shared
19583 # Whether or not to build static libraries.
19584 build_old_libs=$enable_static
19586 # Whether or not to add -lc for building shared libraries.
19587 build_libtool_need_lc=$archive_cmds_need_lc_RC
19589 # Whether or not to disallow shared libs when runtime libs are static
19590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19592 # Whether or not to optimize for fast installation.
19593 fast_install=$enable_fast_install
19596 host_alias=$host_alias
19599 # An echo program that does not interpret backslashes.
19604 AR_FLAGS=$lt_AR_FLAGS
19609 # A language-specific compiler.
19612 # Is the compiler the GNU C compiler?
19618 # The linker used to build libraries.
19621 # Whether we need hard or soft links.
19624 # A BSD-compatible nm program.
19627 # A symbol stripping program
19630 # Used to examine libraries when file_magic_cmd begins "file"
19631 MAGIC_CMD=$MAGIC_CMD
19633 # Used on cygwin: DLL creation program.
19636 # Used on cygwin: object dumper.
19639 # Used on cygwin: assembler.
19642 # The name of the directory that contains temporary libtool files.
19645 # How to create reloadable object files.
19646 reload_flag=$lt_reload_flag
19647 reload_cmds=$lt_reload_cmds
19649 # How to pass a linker flag through the compiler.
19650 wl=$lt_lt_prog_compiler_wl_RC
19652 # Object file suffix (normally "o
").
19653 objext="$ac_objext"
19655 # Old archive suffix (normally "a
").
19658 # Shared library suffix (normally ".so
").
19661 # Executable file suffix (normally "").
19664 # Additional compiler flags for building library objects.
19665 pic_flag=$lt_lt_prog_compiler_pic_RC
19668 # What is the maximum length of a command?
19669 max_cmd_len=$lt_cv_sys_max_cmd_len
19671 # Does compiler simultaneously support -c and -o options?
19672 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19674 # Must we lock files when doing compilation ?
19675 need_locks=$lt_need_locks
19677 # Do we need the lib prefix for modules?
19678 need_lib_prefix=$need_lib_prefix
19680 # Do we need a version for libraries?
19681 need_version=$need_version
19683 # Whether dlopen is supported.
19684 dlopen_support=$enable_dlopen
19686 # Whether dlopen of programs is supported.
19687 dlopen_self=$enable_dlopen_self
19689 # Whether dlopen of statically linked programs is supported.
19690 dlopen_self_static=$enable_dlopen_self_static
19692 # Compiler flag to prevent dynamic linking.
19693 link_static_flag=$lt_lt_prog_compiler_static_RC
19695 # Compiler flag to turn off builtin functions.
19696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19698 # Compiler flag to allow reflexive dlopens.
19699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19701 # Compiler flag to generate shared objects directly from archives.
19702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19704 # Compiler flag to generate thread-safe objects.
19705 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19707 # Library versioning type.
19708 version_type=$version_type
19710 # Format of library name prefix.
19711 libname_spec=$lt_libname_spec
19713 # List of archive names. First name is the real one, the rest are links.
19714 # The last name is the one that the linker finds with -lNAME.
19715 library_names_spec=$lt_library_names_spec
19717 # The coded name of the library, if different from the real name.
19718 soname_spec=$lt_soname_spec
19720 # Commands used to build and install an old-style archive.
19722 old_archive_cmds=$lt_old_archive_cmds_RC
19723 old_postinstall_cmds=$lt_old_postinstall_cmds
19724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19726 # Create an old-style archive from a shared archive.
19727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19729 # Create a temporary old-style archive to link instead of a shared archive.
19730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19732 # Commands used to build and install a shared archive.
19733 archive_cmds=$lt_archive_cmds_RC
19734 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19735 postinstall_cmds=$lt_postinstall_cmds
19736 postuninstall_cmds=$lt_postuninstall_cmds
19738 # Commands used to build a loadable module (assumed same as above if empty)
19739 module_cmds=$lt_module_cmds_RC
19740 module_expsym_cmds=$lt_module_expsym_cmds_RC
19742 # Commands to strip libraries.
19743 old_striplib=$lt_old_striplib
19744 striplib=$lt_striplib
19746 # Dependencies to place before the objects being linked to create a
19748 predep_objects=$lt_predep_objects_RC
19750 # Dependencies to place after the objects being linked to create a
19752 postdep_objects=$lt_postdep_objects_RC
19754 # Dependencies to place before the objects being linked to create a
19756 predeps=$lt_predeps_RC
19758 # Dependencies to place after the objects being linked to create a
19760 postdeps=$lt_postdeps_RC
19762 # The library search path used internally by the compiler when linking
19763 # a shared library.
19764 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19766 # Method to check whether dependent libraries are shared objects.
19767 deplibs_check_method=$lt_deplibs_check_method
19769 # Command to use when deplibs_check_method == file_magic.
19770 file_magic_cmd=$lt_file_magic_cmd
19772 # Flag that allows shared libraries with undefined symbols to be built.
19773 allow_undefined_flag=$lt_allow_undefined_flag_RC
19775 # Flag that forces no undefined symbols.
19776 no_undefined_flag=$lt_no_undefined_flag_RC
19778 # Commands used to finish a libtool library installation in a directory.
19779 finish_cmds=$lt_finish_cmds
19781 # Same as above, but a single script fragment to be evaled but not shown.
19782 finish_eval=$lt_finish_eval
19784 # Take the output of nm and produce a listing of raw symbols and C names.
19785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19787 # Transform the output of nm in a proper C declaration
19788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19790 # Transform the output of nm in a C name address pair
19791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19793 # This is the shared library runtime path variable.
19794 runpath_var=$runpath_var
19796 # This is the shared library path variable.
19797 shlibpath_var=$shlibpath_var
19799 # Is shlibpath searched before the hard-coded library search path?
19800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19802 # How to hardcode a shared library path into an executable.
19803 hardcode_action=$hardcode_action_RC
19805 # Whether we should hardcode library paths into libraries.
19806 hardcode_into_libs=$hardcode_into_libs
19808 # Flag to hardcode \$libdir into a binary during linking.
19809 # This must work even if \$libdir does not exist.
19810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19812 # If ld is used when linking, flag to hardcode \$libdir into
19813 # a binary during linking. This must work even if \$libdir does
19815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19817 # Whether we need a single -rpath flag with a separated argument.
19818 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19820 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19821 # resulting binary.
19822 hardcode_direct=$hardcode_direct_RC
19824 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19825 # resulting binary.
19826 hardcode_minus_L=$hardcode_minus_L_RC
19828 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19829 # the resulting binary.
19830 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19832 # Set to yes if building a shared library automatically hardcodes DIR into the library
19833 # and all subsequent libraries and executables linked against it.
19834 hardcode_automatic=$hardcode_automatic_RC
19836 # Variables whose values should be saved in libtool wrapper scripts and
19837 # restored at relink time.
19838 variables_saved_for_relink="$variables_saved_for_relink"
19840 # Whether libtool must link a program against all its dependency libraries.
19841 link_all_deplibs=$link_all_deplibs_RC
19843 # Compile-time system search path for libraries
19844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19846 # Run-time system search path for libraries
19847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19849 # Fix the shell variable \$srcfile for the compiler.
19850 fix_srcfile_path="$fix_srcfile_path_RC"
19852 # Set to yes if exported symbols are required.
19853 always_export_symbols=$always_export_symbols_RC
19855 # The commands to list exported symbols.
19856 export_symbols_cmds=$lt_export_symbols_cmds_RC
19858 # The commands to extract the exported symbol list from a shared archive.
19859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19861 # Symbols that should not be listed in the preloaded symbols.
19862 exclude_expsyms=$lt_exclude_expsyms_RC
19864 # Symbols that must always be exported.
19865 include_expsyms=$lt_include_expsyms_RC
19867 # ### END LIBTOOL TAG CONFIG: $tagname
19873 # If there is no Makefile yet, we rely on a make rule to execute
19874 # `config.status --recheck' to rerun these tests and create the
19875 # libtool script then.
19876 test -f Makefile && make "$ltmain"
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891 { { echo "$as_me:$LINENO: error
: Unsupported tag name
: $tagname" >&5
19892 echo "$as_me: error
: Unsupported tag name
: $tagname" >&2;}
19893 { (exit 1); exit 1; }; }
19897 # Append the new tag name to the list of available tags.
19898 if test -n "$tagname" ; then
19899 available_tags="$available_tags $tagname"
19905 # Now substitute the updated list of available tags.
19906 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T
\""; then
19907 mv "${ofile}T
" "$ofile"
19911 { { echo "$as_me:$LINENO: error
: unable to update list of available tagged configurations.
" >&5
19912 echo "$as_me: error
: unable to update list of available tagged configurations.
" >&2;}
19913 { (exit 1); exit 1; }; }
19919 # This can be used to rebuild libtool when needed
19920 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh
"
19922 # Always use our own libtool.
19923 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19925 # Prevent multiple expansion
19946 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
19947 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
19948 if test "${ac_cv_c_const+set}" = set; then
19949 echo $ECHO_N "(cached
) $ECHO_C" >&6
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19961 /* FIXME: Include the comments suggested by Paul. */
19962 #ifndef __cplusplus
19963 /* Ultrix mips cc rejects this. */
19964 typedef int charset[2];
19966 /* SunOS 4.1.1 cc rejects this. */
19967 char const *const *ccp;
19969 /* NEC SVR4.0.2 mips cc rejects this. */
19970 struct point {int x, y;};
19971 static struct point const zero = {0,0};
19972 /* AIX XL C 1.02.0.0 rejects this.
19973 It does not let you subtract one const X* pointer from another in
19974 an arm of an if-expression whose if-part is not a constant
19976 const char *g = "string
";
19977 ccp = &g + (g ? g-g : 0);
19978 /* HPUX 7.0 cc rejects these. */
19981 ccp = (char const *const *) p;
19982 { /* SCO 3.2v4 cc rejects this. */
19984 char const *s = 0 ? (char *) 0 : (char const *) 0;
19989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19990 int x[] = {25, 17};
19991 const int *foo = &x[0];
19994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19995 typedef const int *iptr;
19999 { /* AIX XL C 1.02.0.0 rejects this saying
20000 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20001 struct s { int j; const int *ap[3]; };
20002 struct s *b; b->j = 5;
20004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20005 const int foo = 10;
20006 if (!foo) return 0;
20008 return !x[0] && !zero.x;
20015 rm -f conftest.$ac_objext
20016 if { (ac_try="$ac_compile"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_compile") 2>conftest.er1
20024 grep -v '^ *+' conftest.er1 >conftest.err
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest.$ac_objext'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20048 (exit $ac_status); }; }; then
20051 echo "$as_me: failed program was
:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
20060 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20061 if test $ac_cv_c_const = no; then
20063 cat >>confdefs.h <<\_ACEOF
20074 ac_header_dirent=no
20075 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20076 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
20077 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
20078 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached
) $ECHO_C" >&6
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 #include <sys/types.h>
20100 rm -f conftest.$ac_objext
20101 if { (ac_try="$ac_compile"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_compile") 2>conftest.er1
20109 grep -v '^ *+' conftest.er1 >conftest.err
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_try") 2>&5
20132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 eval "$as_ac_Header=yes"
20136 echo "$as_me: failed program was
:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 eval "$as_ac_Header=no
"
20142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 ac_res=`eval echo '${'$as_ac_Header'}'`
20145 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20146 echo "${ECHO_T}$ac_res" >&6; }
20147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20148 cat >>confdefs.h <<_ACEOF
20149 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
20152 ac_header_dirent=$ac_hdr; break
20156 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20157 if test $ac_header_dirent = dirent.h; then
20158 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
20159 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
20160 if test "${ac_cv_search_opendir+set}" = set; then
20161 echo $ECHO_N "(cached
) $ECHO_C" >&6
20163 ac_func_search_save_LIBS=$LIBS
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20186 for ac_lib in '' dir; do
20187 if test -z "$ac_lib"; then
20188 ac_res="none required
"
20191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20208 { (case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_try") 2>&5
20215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_try") 2>&5
20225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_search_opendir=$ac_res
20229 echo "$as_me: failed program was
:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20235 rm -f core conftest.err conftest.$ac_objext \
20237 if test "${ac_cv_search_opendir+set}" = set; then
20241 if test "${ac_cv_search_opendir+set}" = set; then
20244 ac_cv_search_opendir=no
20246 rm conftest.$ac_ext
20247 LIBS=$ac_func_search_save_LIBS
20249 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
20250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20251 ac_res=$ac_cv_search_opendir
20252 if test "$ac_res" != no; then
20253 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
20258 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
20259 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
20260 if test "${ac_cv_search_opendir+set}" = set; then
20261 echo $ECHO_N "(cached
) $ECHO_C" >&6
20263 ac_func_search_save_LIBS=$LIBS
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20271 /* Override any GCC internal prototype to avoid an error.
20272 Use char because int might match the return type of a GCC
20273 builtin and then its argument prototype would still apply. */
20286 for ac_lib in '' x; do
20287 if test -z "$ac_lib"; then
20288 ac_res="none required
"
20291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20293 rm -f conftest.$ac_objext conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_link") 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20308 { (case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_try") 2>&5
20315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20316 (exit $ac_status); }; } &&
20317 { ac_try='test -s conftest$ac_exeext'
20318 { (case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_try") 2>&5
20325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_cv_search_opendir=$ac_res
20329 echo "$as_me: failed program was
:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20335 rm -f core conftest.err conftest.$ac_objext \
20337 if test "${ac_cv_search_opendir+set}" = set; then
20341 if test "${ac_cv_search_opendir+set}" = set; then
20344 ac_cv_search_opendir=no
20346 rm conftest.$ac_ext
20347 LIBS=$ac_func_search_save_LIBS
20349 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
20350 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20351 ac_res=$ac_cv_search_opendir
20352 if test "$ac_res" != no; then
20353 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
20359 # Check whether --enable-ltdl-install was given.
20360 if test "${enable_ltdl_install+set}" = set; then
20361 enableval=$enable_ltdl_install;
20365 if test x"${enable_ltdl_install-no}" != xno; then
20366 cat >>confdefs.h <<\_ACEOF
20367 #define INSTALL_LTDL 1
20371 if test x"${enable_ltdl_convenience-no}" != xno; then
20372 cat >>confdefs.h <<\_ACEOF
20373 #define CONVENIENCE_LTDL 1
20379 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
20380 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
20381 if test "${libltdl_cv_shlibext+set}" = set; then
20382 echo $ECHO_N "(cached
) $ECHO_C" >&6
20386 eval libltdl_cv_shlibext=$shrext
20389 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
20390 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20391 if test -n "$libltdl_cv_shlibext"; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20400 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
20401 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
20402 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20403 echo $ECHO_N "(cached
) $ECHO_C" >&6
20405 libltdl_cv_shlibpath_var="$shlibpath_var"
20407 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
20408 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20409 if test -n "$libltdl_cv_shlibpath_var"; then
20411 cat >>confdefs.h <<_ACEOF
20412 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20418 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
20419 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
20420 if test "${libltdl_cv_sys_search_path+set}" = set; then
20421 echo $ECHO_N "(cached
) $ECHO_C" >&6
20423 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20425 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
20426 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20427 if test -n "$libltdl_cv_sys_search_path"; then
20429 for dir in $libltdl_cv_sys_search_path; do
20430 if test -z "$sys_search_path"; then
20431 sys_search_path="$dir"
20433 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20437 cat >>confdefs.h <<_ACEOF
20438 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20443 { echo "$as_me:$LINENO: checking
for objdir
" >&5
20444 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
20445 if test "${libltdl_cv_objdir+set}" = set; then
20446 echo $ECHO_N "(cached
) $ECHO_C" >&6
20448 libltdl_cv_objdir="$objdir"
20449 if test -n "$objdir"; then
20452 rm -f .libs 2>/dev/null
20453 mkdir .libs 2>/dev/null
20454 if test -d .libs; then
20455 libltdl_cv_objdir=.libs
20457 # MS-DOS does not allow filenames that begin with a dot.
20458 libltdl_cv_objdir=_libs
20460 rmdir .libs 2>/dev/null
20464 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
20465 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20467 cat >>confdefs.h <<_ACEOF
20468 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20473 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
20474 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
20475 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20476 echo $ECHO_N "(cached
) $ECHO_C" >&6
20478 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20479 libltdl_cv_preloaded_symbols=yes
20481 libltdl_cv_preloaded_symbols=no
20485 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
20486 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20487 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20489 cat >>confdefs.h <<\_ACEOF
20490 #define HAVE_PRELOADED_SYMBOLS 1
20498 ac_cpp='$CPP $CPPFLAGS'
20499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20504 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
20505 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
20506 if test "${ac_cv_func_shl_load+set}" = set; then
20507 echo $ECHO_N "(cached
) $ECHO_C" >&6
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20517 #define shl_load innocuous_shl_load
20519 /* System header to define __stub macros and hopefully few prototypes,
20520 which can conflict with char shl_load (); below.
20521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20522 <limits.h> exists even on freestanding compilers. */
20525 # include <limits.h>
20527 # include <assert.h>
20532 /* Override any GCC internal prototype to avoid an error.
20533 Use char because int might match the return type of a GCC
20534 builtin and then its argument prototype would still apply. */
20539 /* The GNU C library defines this for functions which it implements
20540 to always fail with ENOSYS. Some functions are actually named
20541 something starting with __ and the normal name is an alias. */
20542 #if defined __stub_shl_load || defined __stub___shl_load
20549 return shl_load ();
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_func_shl_load=yes
20590 echo "$as_me: failed program was
:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_func_shl_load=no
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20599 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
20600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20601 if test $ac_cv_func_shl_load = yes; then
20603 cat >>confdefs.h <<\_ACEOF
20604 #define HAVE_SHL_LOAD 1
20608 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
20609 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
20610 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20611 echo $ECHO_N "(cached
) $ECHO_C" >&6
20613 ac_check_lib_save_LIBS=$LIBS
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20632 return shl_load ();
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20650 (exit $ac_status); } &&
20651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652 { (case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_try") 2>&5
20659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20660 (exit $ac_status); }; } &&
20661 { ac_try='test -s conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_lib_dld_shl_load=yes
20673 echo "$as_me: failed program was
:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_cv_lib_dld_shl_load=no
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 LIBS=$ac_check_lib_save_LIBS
20683 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
20684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20685 if test $ac_cv_lib_dld_shl_load = yes; then
20687 cat >>confdefs.h <<\_ACEOF
20688 #define HAVE_SHL_LOAD 1
20691 LIBADD_DL="$LIBADD_DL -ldld"
20693 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
20694 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
20695 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20696 echo $ECHO_N "(cached
) $ECHO_C" >&6
20698 ac_check_lib_save_LIBS=$LIBS
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20707 /* Override any GCC internal prototype to avoid an error.
20708 Use char because int might match the return type of a GCC
20709 builtin and then its argument prototype would still apply. */
20722 rm -f conftest.$ac_objext conftest$ac_exeext
20723 if { (ac_try="$ac_link"
20724 case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20729 (eval "$ac_link") 2>conftest.er1
20731 grep -v '^ *+' conftest.er1 >conftest.err
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20735 (exit $ac_status); } &&
20736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20737 { (case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_try") 2>&5
20744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest$ac_exeext'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_lib_dl_dlopen=yes
20758 echo "$as_me: failed program was
:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_cv_lib_dl_dlopen=no
20764 rm -f core conftest.err conftest.$ac_objext \
20765 conftest$ac_exeext conftest.$ac_ext
20766 LIBS=$ac_check_lib_save_LIBS
20768 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
20769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20770 if test $ac_cv_lib_dl_dlopen = yes; then
20772 cat >>confdefs.h <<\_ACEOF
20773 #define HAVE_LIBDL 1
20776 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20785 # include <dlfcn.h>
20796 rm -f conftest.$ac_objext conftest$ac_exeext
20797 if { (ac_try="$ac_link"
20798 case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_link") 2>conftest.er1
20805 grep -v '^ *+' conftest.er1 >conftest.err
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20809 (exit $ac_status); } &&
20810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest$ac_exeext'
20821 { (case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_try") 2>&5
20828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20829 (exit $ac_status); }; }; then
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_LIBDL 1
20834 libltdl_cv_func_dlopen="yes"
20836 echo "$as_me: failed program was
:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
20840 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
20841 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20842 echo $ECHO_N "(cached
) $ECHO_C" >&6
20844 ac_check_lib_save_LIBS=$LIBS
20845 LIBS="-lsvld $LIBS"
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20853 /* Override any GCC internal prototype to avoid an error.
20854 Use char because int might match the return type of a GCC
20855 builtin and then its argument prototype would still apply. */
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (ac_try="$ac_link"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_link") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20883 { (case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_try") 2>&5
20890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20891 (exit $ac_status); }; } &&
20892 { ac_try='test -s conftest$ac_exeext'
20893 { (case "(($ac_try" in
20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_try") 2>&5
20900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20901 (exit $ac_status); }; }; then
20902 ac_cv_lib_svld_dlopen=yes
20904 echo "$as_me: failed program was
:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_lib_svld_dlopen=no
20910 rm -f core conftest.err conftest.$ac_objext \
20911 conftest$ac_exeext conftest.$ac_ext
20912 LIBS=$ac_check_lib_save_LIBS
20914 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
20915 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20916 if test $ac_cv_lib_svld_dlopen = yes; then
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_LIBDL 1
20922 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20924 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
20925 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
20926 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20927 echo $ECHO_N "(cached
) $ECHO_C" >&6
20929 ac_check_lib_save_LIBS=$LIBS
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20938 /* Override any GCC internal prototype to avoid an error.
20939 Use char because int might match the return type of a GCC
20940 builtin and then its argument prototype would still apply. */
20948 return dld_link ();
20953 rm -f conftest.$ac_objext conftest$ac_exeext
20954 if { (ac_try="$ac_link"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_link") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20966 (exit $ac_status); } &&
20967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20968 { (case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_try") 2>&5
20975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20976 (exit $ac_status); }; } &&
20977 { ac_try='test -s conftest$ac_exeext'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_cv_lib_dld_dld_link=yes
20989 echo "$as_me: failed program was
:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_cv_lib_dld_dld_link=no
20995 rm -f core conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
20997 LIBS=$ac_check_lib_save_LIBS
20999 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
21000 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21001 if test $ac_cv_lib_dld_dld_link = yes; then
21003 cat >>confdefs.h <<\_ACEOF
21007 LIBADD_DL="$LIBADD_DL -ldld"
21009 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
21010 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
21011 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21012 echo $ECHO_N "(cached
) $ECHO_C" >&6
21014 cat >conftest.$ac_ext <<_ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21022 #define _dyld_func_lookup innocuous__dyld_func_lookup
21024 /* System header to define __stub macros and hopefully few prototypes,
21025 which can conflict with char _dyld_func_lookup (); below.
21026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21027 <limits.h> exists even on freestanding compilers. */
21030 # include <limits.h>
21032 # include <assert.h>
21035 #undef _dyld_func_lookup
21037 /* Override any GCC internal prototype to avoid an error.
21038 Use char because int might match the return type of a GCC
21039 builtin and then its argument prototype would still apply. */
21043 char _dyld_func_lookup ();
21044 /* The GNU C library defines this for functions which it implements
21045 to always fail with ENOSYS. Some functions are actually named
21046 something starting with __ and the normal name is an alias. */
21047 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
21054 return _dyld_func_lookup ();
21059 rm -f conftest.$ac_objext conftest$ac_exeext
21060 if { (ac_try="$ac_link"
21061 case "(($ac_try" in
21062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_link") 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21072 (exit $ac_status); } &&
21073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21074 { (case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_try") 2>&5
21081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_try") 2>&5
21091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21092 (exit $ac_status); }; }; then
21093 ac_cv_func__dyld_func_lookup=yes
21095 echo "$as_me: failed program was
:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_cv_func__dyld_func_lookup=no
21101 rm -f core conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21104 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
21105 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
21106 if test $ac_cv_func__dyld_func_lookup = yes; then
21108 cat >>confdefs.h <<\_ACEOF
21109 #define HAVE_DYLD 1
21123 rm -f core conftest.err conftest.$ac_objext \
21124 conftest$ac_exeext conftest.$ac_ext
21135 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21137 lt_save_LIBS="$LIBS"
21138 LIBS="$LIBS $LIBADD_DL"
21140 for ac_func in dlerror
21142 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21143 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21144 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21145 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21146 echo $ECHO_N "(cached
) $ECHO_C" >&6
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21156 #define $ac_func innocuous_$ac_func
21158 /* System header to define __stub macros and hopefully few prototypes,
21159 which can conflict with char $ac_func (); below.
21160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21161 <limits.h> exists even on freestanding compilers. */
21164 # include <limits.h>
21166 # include <assert.h>
21171 /* Override any GCC internal prototype to avoid an error.
21172 Use char because int might match the return type of a GCC
21173 builtin and then its argument prototype would still apply. */
21178 /* The GNU C library defines this for functions which it implements
21179 to always fail with ENOSYS. Some functions are actually named
21180 something starting with __ and the normal name is an alias. */
21181 #if defined __stub_$ac_func || defined __stub___$ac_func
21188 return $ac_func ();
21193 rm -f conftest.$ac_objext conftest$ac_exeext
21194 if { (ac_try="$ac_link"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_link") 2>conftest.er1
21202 grep -v '^ *+' conftest.er1 >conftest.err
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21208 { (case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_try") 2>&5
21215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest$ac_exeext'
21218 { (case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_try") 2>&5
21225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 eval "$as_ac_var=yes"
21229 echo "$as_me: failed program was
:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 eval "$as_ac_var=no
"
21235 rm -f core conftest.err conftest.$ac_objext \
21236 conftest$ac_exeext conftest.$ac_ext
21238 ac_res=`eval echo '${'$as_ac_var'}'`
21239 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21240 echo "${ECHO_T}$ac_res" >&6; }
21241 if test `eval echo '${'$as_ac_var'}'` = yes; then
21242 cat >>confdefs.h <<_ACEOF
21243 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21249 LIBS="$lt_save_LIBS"
21252 ac_cpp='$CPP $CPPFLAGS'
21253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
21260 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
21261 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21262 echo $ECHO_N "(cached
) $ECHO_C" >&6
21264 ac_cv_sys_symbol_underscore=no
21265 cat > conftest.$ac_ext <<EOF
21266 void nm_test_func(){}
21267 int main(){nm_test_func;return 0;}
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>&5
21272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21273 (exit $ac_status); }; then
21274 # Now try to grab the symbols.
21275 ac_nlist=conftest.nm
21276 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
21277 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21280 (exit $ac_status); } && test -s "$ac_nlist"; then
21281 # See whether the symbols have a leading underscore.
21282 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21283 ac_cv_sys_symbol_underscore=yes
21285 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21288 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
21292 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
21295 echo "configure
: failed program was
:" >&5
21301 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
21302 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
21305 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21306 if test x"$libltdl_cv_func_dlopen" = xyes ||
21307 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21308 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
21309 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
21310 if test "${libltdl_cv_need_uscore+set}" = set; then
21311 echo $ECHO_N "(cached
) $ECHO_C" >&6
21313 libltdl_cv_need_uscore=unknown
21315 LIBS="$LIBS $LIBADD_DL"
21316 if test "$cross_compiling" = yes; then :
21317 libltdl_cv_need_uscore=cross
21319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21320 lt_status=$lt_dlunknown
21321 cat > conftest.$ac_ext <<EOF
21322 #line 21322 "configure
"
21323 #include "confdefs.h
"
21332 # define LT_DLGLOBAL RTLD_GLOBAL
21335 # define LT_DLGLOBAL DL_GLOBAL
21337 # define LT_DLGLOBAL 0
21341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21342 find out it does not work in some platform. */
21343 #ifndef LT_DLLAZY_OR_NOW
21345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21348 # define LT_DLLAZY_OR_NOW DL_LAZY
21351 # define LT_DLLAZY_OR_NOW RTLD_NOW
21354 # define LT_DLLAZY_OR_NOW DL_NOW
21356 # define LT_DLLAZY_OR_NOW 0
21364 extern "C
" void exit (int);
21367 void fnord() { int i=42;}
21370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21371 int status = $lt_dlunknown;
21375 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
21376 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
21377 /* dlclose (self); */
21383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21384 (eval $ac_link) 2>&5
21386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21388 (./conftest; exit; ) 2>/dev/null
21390 case x$lt_status in
21391 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21392 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21393 x$lt_unknown|x*) ;;
21396 # compilation failed
21405 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
21406 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21410 if test x"$libltdl_cv_need_uscore" = xyes; then
21412 cat >>confdefs.h <<\_ACEOF
21413 #define NEED_USCORE 1
21419 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
21420 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
21421 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21422 echo $ECHO_N "(cached
) $ECHO_C" >&6
21424 # PORTME does your system automatically load deplibs for dlopen?
21425 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21426 # For now, we just catch OSes we know something about -- in the
21427 # future, we'll try test this programmatically.
21428 libltdl_cv_sys_dlopen_deplibs=unknown
21430 aix3*|aix4.1.*|aix4.2.*)
21431 # Unknown whether this is true for these versions of AIX, but
21432 # we want this `case' here to explicitly catch those versions.
21433 libltdl_cv_sys_dlopen_deplibs=unknown
21436 libltdl_cv_sys_dlopen_deplibs=yes
21439 # Assuming the user has installed a libdl from somewhere, this is true
21440 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21441 libltdl_cv_sys_dlopen_deplibs=yes
21444 libltdl_cv_sys_dlopen_deplibs=yes
21447 libltdl_cv_sys_dlopen_deplibs=yes
21450 libltdl_cv_sys_dlopen_deplibs=yes
21452 irix[12345]*|irix6.[01]*)
21453 # Catch all versions of IRIX before 6.2, and indicate that we don't
21454 # know how it worked for any of those versions.
21455 libltdl_cv_sys_dlopen_deplibs=unknown
21458 # The case above catches anything before 6.2, and it's known that
21459 # at 6.2 and later dlopen does load deplibs.
21460 libltdl_cv_sys_dlopen_deplibs=yes
21463 libltdl_cv_sys_dlopen_deplibs=yes
21466 libltdl_cv_sys_dlopen_deplibs=yes
21469 libltdl_cv_sys_dlopen_deplibs=yes
21472 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21473 # it did *not* use an RPATH in a shared library to find objects the
21474 # library depends on, so we explictly say `no'.
21475 libltdl_cv_sys_dlopen_deplibs=no
21477 osf5.0|osf5.0a|osf5.1)
21478 # dlopen *does* load deplibs and with the right loader patch applied
21479 # it even uses RPATH in a shared library to search for shared objects
21480 # that the library depends on, but there's no easy way to know if that
21481 # patch is installed. Since this is the case, all we can really
21482 # say is unknown -- it depends on the patch being installed. If
21483 # it is, this changes to `yes'. Without it, it would be `no'.
21484 libltdl_cv_sys_dlopen_deplibs=unknown
21487 # the two cases above should catch all versions of osf <= 5.1. Read
21488 # the comments above for what we know about them.
21489 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21490 # is used to find them so we can finally say `yes'.
21491 libltdl_cv_sys_dlopen_deplibs=yes
21494 libltdl_cv_sys_dlopen_deplibs=yes
21499 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
21500 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21501 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define LTDL_DLOPEN_DEPLIBS 1
21510 for ac_header in argz.h
21512 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21513 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21514 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21515 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached
) $ECHO_C" >&6
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21523 # Is the header compilable?
21524 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21525 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21526 cat >conftest.$ac_ext <<_ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21532 $ac_includes_default
21533 #include <$ac_header>
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21544 grep -v '^ *+' conftest.er1 >conftest.err
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21550 { (case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_try") 2>&5
21557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_try") 2>&5
21567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_header_compiler=yes
21571 echo "$as_me: failed program was
:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_header_compiler=no
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21579 echo "${ECHO_T}$ac_header_compiler" >&6; }
21581 # Is the header present?
21582 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21583 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <$ac_header>
21592 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21600 grep -v '^ *+' conftest.er1 >conftest.err
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21604 (exit $ac_status); } >/dev/null; then
21605 if test -s conftest.err; then
21606 ac_cpp_err=$ac_c_preproc_warn_flag
21607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21614 if test -z "$ac_cpp_err"; then
21615 ac_header_preproc=yes
21617 echo "$as_me: failed program was
:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21620 ac_header_preproc=no
21623 rm -f conftest.err conftest.$ac_ext
21624 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21625 echo "${ECHO_T}$ac_header_preproc" >&6; }
21627 # So? What about this header?
21628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21630 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21631 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21632 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21634 ac_header_preproc=yes
21637 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21638 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21639 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21640 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21641 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21642 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21643 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21644 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21645 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21647 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21648 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21652 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21653 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21654 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21655 echo $ECHO_N "(cached
) $ECHO_C" >&6
21657 eval "$as_ac_Header=\
$ac_header_preproc"
21659 ac_res=`eval echo '${'$as_ac_Header'}'`
21660 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21661 echo "${ECHO_T}$ac_res" >&6; }
21664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21665 cat >>confdefs.h <<_ACEOF
21666 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21674 { echo "$as_me:$LINENO: checking
for error_t
" >&5
21675 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
21676 if test "${ac_cv_type_error_t+set}" = set; then
21677 echo $ECHO_N "(cached
) $ECHO_C" >&6
21679 cat >conftest.$ac_ext <<_ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21689 typedef error_t ac__type_new_;
21693 if ((ac__type_new_ *) 0)
21695 if (sizeof (ac__type_new_))
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
21723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21724 (exit $ac_status); }; } &&
21725 { ac_try='test -s conftest.$ac_objext'
21726 { (case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_try") 2>&5
21733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 ac_cv_type_error_t=yes
21737 echo "$as_me: failed program was
:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_cv_type_error_t=no
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
21746 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21747 if test $ac_cv_type_error_t = yes; then
21749 cat >>confdefs.h <<_ACEOF
21750 #define HAVE_ERROR_T 1
21756 cat >>confdefs.h <<\_ACEOF
21757 #define error_t int
21768 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21770 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21771 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21772 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21773 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21774 echo $ECHO_N "(cached
) $ECHO_C" >&6
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21784 #define $ac_func innocuous_$ac_func
21786 /* System header to define __stub macros and hopefully few prototypes,
21787 which can conflict with char $ac_func (); below.
21788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21789 <limits.h> exists even on freestanding compilers. */
21792 # include <limits.h>
21794 # include <assert.h>
21799 /* Override any GCC internal prototype to avoid an error.
21800 Use char because int might match the return type of a GCC
21801 builtin and then its argument prototype would still apply. */
21806 /* The GNU C library defines this for functions which it implements
21807 to always fail with ENOSYS. Some functions are actually named
21808 something starting with __ and the normal name is an alias. */
21809 #if defined __stub_$ac_func || defined __stub___$ac_func
21816 return $ac_func ();
21821 rm -f conftest.$ac_objext conftest$ac_exeext
21822 if { (ac_try="$ac_link"
21823 case "(($ac_try" in
21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825 *) ac_try_echo=$ac_try;;
21827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_link") 2>conftest.er1
21830 grep -v '^ *+' conftest.er1 >conftest.err
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21834 (exit $ac_status); } &&
21835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21836 { (case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_try") 2>&5
21843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest$ac_exeext'
21846 { (case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_try") 2>&5
21853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21854 (exit $ac_status); }; }; then
21855 eval "$as_ac_var=yes"
21857 echo "$as_me: failed program was
:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 eval "$as_ac_var=no
"
21863 rm -f core conftest.err conftest.$ac_objext \
21864 conftest$ac_exeext conftest.$ac_ext
21866 ac_res=`eval echo '${'$as_ac_var'}'`
21867 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21868 echo "${ECHO_T}$ac_res" >&6; }
21869 if test `eval echo '${'$as_ac_var'}'` = yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21904 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21907 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21908 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21909 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21910 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21911 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21912 echo $ECHO_N "(cached
) $ECHO_C" >&6
21914 ac_res=`eval echo '${'$as_ac_Header'}'`
21915 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21916 echo "${ECHO_T}$ac_res" >&6; }
21918 # Is the header compilable?
21919 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21920 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21921 cat >conftest.$ac_ext <<_ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h. */
21927 $ac_includes_default
21928 #include <$ac_header>
21930 rm -f conftest.$ac_objext
21931 if { (ac_try="$ac_compile"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_compile") 2>conftest.er1
21939 grep -v '^ *+' conftest.er1 >conftest.err
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21943 (exit $ac_status); } &&
21944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21945 { (case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_try") 2>&5
21952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21953 (exit $ac_status); }; } &&
21954 { ac_try='test -s conftest.$ac_objext'
21955 { (case "(($ac_try" in
21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957 *) ac_try_echo=$ac_try;;
21959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21960 (eval "$ac_try") 2>&5
21962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_header_compiler=yes
21966 echo "$as_me: failed program was
:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ac_header_compiler=no
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21974 echo "${ECHO_T}$ac_header_compiler" >&6; }
21976 # Is the header present?
21977 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21978 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21979 cat >conftest.$ac_ext <<_ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 #include <$ac_header>
21987 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21999 (exit $ac_status); } >/dev/null; then
22000 if test -s conftest.err; then
22001 ac_cpp_err=$ac_c_preproc_warn_flag
22002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22009 if test -z "$ac_cpp_err"; then
22010 ac_header_preproc=yes
22012 echo "$as_me: failed program was
:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_header_preproc=no
22018 rm -f conftest.err conftest.$ac_ext
22019 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22020 echo "${ECHO_T}$ac_header_preproc" >&6; }
22022 # So? What about this header?
22023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22025 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22026 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22027 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22029 ac_header_preproc=yes
22032 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22033 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22034 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22035 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22036 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22037 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22038 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22039 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22040 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22042 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22043 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22047 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22048 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22049 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22050 echo $ECHO_N "(cached
) $ECHO_C" >&6
22052 eval "$as_ac_Header=\
$ac_header_preproc"
22054 ac_res=`eval echo '${'$as_ac_Header'}'`
22055 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22056 echo "${ECHO_T}$ac_res" >&6; }
22059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22060 cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22072 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22074 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22075 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22076 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22077 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22078 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22079 echo $ECHO_N "(cached
) $ECHO_C" >&6
22081 ac_res=`eval echo '${'$as_ac_Header'}'`
22082 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22083 echo "${ECHO_T}$ac_res" >&6; }
22085 # Is the header compilable?
22086 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22087 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 $ac_includes_default
22095 #include <$ac_header>
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_compile") 2>conftest.er1
22106 grep -v '^ *+' conftest.er1 >conftest.err
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22110 (exit $ac_status); } &&
22111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22112 { (case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_try") 2>&5
22119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
22122 { (case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_try") 2>&5
22129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22130 (exit $ac_status); }; }; then
22131 ac_header_compiler=yes
22133 echo "$as_me: failed program was
:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_header_compiler=no
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22141 echo "${ECHO_T}$ac_header_compiler" >&6; }
22143 # Is the header present?
22144 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22145 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <$ac_header>
22154 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22162 grep -v '^ *+' conftest.er1 >conftest.err
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22166 (exit $ac_status); } >/dev/null; then
22167 if test -s conftest.err; then
22168 ac_cpp_err=$ac_c_preproc_warn_flag
22169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22176 if test -z "$ac_cpp_err"; then
22177 ac_header_preproc=yes
22179 echo "$as_me: failed program was
:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ac_header_preproc=no
22185 rm -f conftest.err conftest.$ac_ext
22186 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22187 echo "${ECHO_T}$ac_header_preproc" >&6; }
22189 # So? What about this header?
22190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22192 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22193 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22194 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22196 ac_header_preproc=yes
22199 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22200 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22201 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22202 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22203 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22204 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22205 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22206 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22209 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22210 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22214 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22215 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22217 echo $ECHO_N "(cached
) $ECHO_C" >&6
22219 eval "$as_ac_Header=\
$ac_header_preproc"
22221 ac_res=`eval echo '${'$as_ac_Header'}'`
22222 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22223 echo "${ECHO_T}$ac_res" >&6; }
22226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22227 cat >>confdefs.h <<_ACEOF
22228 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22237 for ac_header in string.h strings.h
22239 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22240 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22241 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22242 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22243 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22244 echo $ECHO_N "(cached
) $ECHO_C" >&6
22246 ac_res=`eval echo '${'$as_ac_Header'}'`
22247 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22248 echo "${ECHO_T}$ac_res" >&6; }
22250 # Is the header compilable?
22251 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22252 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
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 #include <$ac_header>
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_compile") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22277 { (case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_try") 2>&5
22284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22285 (exit $ac_status); }; } &&
22286 { ac_try='test -s conftest.$ac_objext'
22287 { (case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_try") 2>&5
22294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 ac_header_compiler=yes
22298 echo "$as_me: failed program was
:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ac_header_compiler=no
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22306 echo "${ECHO_T}$ac_header_compiler" >&6; }
22308 # Is the header present?
22309 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22310 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22311 cat >conftest.$ac_ext <<_ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 #include <$ac_header>
22319 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22320 case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22327 grep -v '^ *+' conftest.er1 >conftest.err
22329 cat conftest.err >&5
22330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22331 (exit $ac_status); } >/dev/null; then
22332 if test -s conftest.err; then
22333 ac_cpp_err=$ac_c_preproc_warn_flag
22334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22341 if test -z "$ac_cpp_err"; then
22342 ac_header_preproc=yes
22344 echo "$as_me: failed program was
:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ac_header_preproc=no
22350 rm -f conftest.err conftest.$ac_ext
22351 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22352 echo "${ECHO_T}$ac_header_preproc" >&6; }
22354 # So? What about this header?
22355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22357 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22358 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22361 ac_header_preproc=yes
22364 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22365 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22366 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22367 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22368 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22369 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22370 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22371 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22372 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22374 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22375 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22382 echo $ECHO_N "(cached
) $ECHO_C" >&6
22384 eval "$as_ac_Header=\
$ac_header_preproc"
22386 ac_res=`eval echo '${'$as_ac_Header'}'`
22387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22388 echo "${ECHO_T}$ac_res" >&6; }
22391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22392 cat >>confdefs.h <<_ACEOF
22393 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22403 for ac_func in strchr index
22405 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22406 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22407 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22408 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22409 echo $ECHO_N "(cached
) $ECHO_C" >&6
22411 cat >conftest.$ac_ext <<_ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22419 #define $ac_func innocuous_$ac_func
22421 /* System header to define __stub macros and hopefully few prototypes,
22422 which can conflict with char $ac_func (); below.
22423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22424 <limits.h> exists even on freestanding compilers. */
22427 # include <limits.h>
22429 # include <assert.h>
22434 /* Override any GCC internal prototype to avoid an error.
22435 Use char because int might match the return type of a GCC
22436 builtin and then its argument prototype would still apply. */
22441 /* The GNU C library defines this for functions which it implements
22442 to always fail with ENOSYS. Some functions are actually named
22443 something starting with __ and the normal name is an alias. */
22444 #if defined __stub_$ac_func || defined __stub___$ac_func
22451 return $ac_func ();
22456 rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_link") 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22471 { (case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_try") 2>&5
22478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest$ac_exeext'
22481 { (case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22486 (eval "$ac_try") 2>&5
22488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22489 (exit $ac_status); }; }; then
22490 eval "$as_ac_var=yes"
22492 echo "$as_me: failed program was
:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 eval "$as_ac_var=no
"
22498 rm -f core conftest.err conftest.$ac_objext \
22499 conftest$ac_exeext conftest.$ac_ext
22501 ac_res=`eval echo '${'$as_ac_var'}'`
22502 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22503 echo "${ECHO_T}$ac_res" >&6; }
22504 if test `eval echo '${'$as_ac_var'}'` = yes; then
22505 cat >>confdefs.h <<_ACEOF
22506 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22514 for ac_func in strrchr rindex
22516 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22517 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22518 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22519 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22520 echo $ECHO_N "(cached
) $ECHO_C" >&6
22522 cat >conftest.$ac_ext <<_ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22530 #define $ac_func innocuous_$ac_func
22532 /* System header to define __stub macros and hopefully few prototypes,
22533 which can conflict with char $ac_func (); below.
22534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22535 <limits.h> exists even on freestanding compilers. */
22538 # include <limits.h>
22540 # include <assert.h>
22545 /* Override any GCC internal prototype to avoid an error.
22546 Use char because int might match the return type of a GCC
22547 builtin and then its argument prototype would still apply. */
22552 /* The GNU C library defines this for functions which it implements
22553 to always fail with ENOSYS. Some functions are actually named
22554 something starting with __ and the normal name is an alias. */
22555 #if defined __stub_$ac_func || defined __stub___$ac_func
22562 return $ac_func ();
22567 rm -f conftest.$ac_objext conftest$ac_exeext
22568 if { (ac_try="$ac_link"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_link") 2>conftest.er1
22576 grep -v '^ *+' conftest.er1 >conftest.err
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22580 (exit $ac_status); } &&
22581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22582 { (case "(($ac_try" in
22583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584 *) ac_try_echo=$ac_try;;
22586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22587 (eval "$ac_try") 2>&5
22589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22590 (exit $ac_status); }; } &&
22591 { ac_try='test -s conftest$ac_exeext'
22592 { (case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_try") 2>&5
22599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22600 (exit $ac_status); }; }; then
22601 eval "$as_ac_var=yes"
22603 echo "$as_me: failed program was
:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22606 eval "$as_ac_var=no
"
22609 rm -f core conftest.err conftest.$ac_objext \
22610 conftest$ac_exeext conftest.$ac_ext
22612 ac_res=`eval echo '${'$as_ac_var'}'`
22613 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22614 echo "${ECHO_T}$ac_res" >&6; }
22615 if test `eval echo '${'$as_ac_var'}'` = yes; then
22616 cat >>confdefs.h <<_ACEOF
22617 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22625 for ac_func in memcpy bcopy
22627 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22628 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22629 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22630 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22631 echo $ECHO_N "(cached
) $ECHO_C" >&6
22633 cat >conftest.$ac_ext <<_ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22641 #define $ac_func innocuous_$ac_func
22643 /* System header to define __stub macros and hopefully few prototypes,
22644 which can conflict with char $ac_func (); below.
22645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22646 <limits.h> exists even on freestanding compilers. */
22649 # include <limits.h>
22651 # include <assert.h>
22656 /* Override any GCC internal prototype to avoid an error.
22657 Use char because int might match the return type of a GCC
22658 builtin and then its argument prototype would still apply. */
22663 /* The GNU C library defines this for functions which it implements
22664 to always fail with ENOSYS. Some functions are actually named
22665 something starting with __ and the normal name is an alias. */
22666 #if defined __stub_$ac_func || defined __stub___$ac_func
22673 return $ac_func ();
22678 rm -f conftest.$ac_objext conftest$ac_exeext
22679 if { (ac_try="$ac_link"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_link") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22693 { (case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_try") 2>&5
22700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22701 (exit $ac_status); }; } &&
22702 { ac_try='test -s conftest$ac_exeext'
22703 { (case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22708 (eval "$ac_try") 2>&5
22710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22711 (exit $ac_status); }; }; then
22712 eval "$as_ac_var=yes"
22714 echo "$as_me: failed program was
:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22717 eval "$as_ac_var=no
"
22720 rm -f core conftest.err conftest.$ac_objext \
22721 conftest$ac_exeext conftest.$ac_ext
22723 ac_res=`eval echo '${'$as_ac_var'}'`
22724 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22725 echo "${ECHO_T}$ac_res" >&6; }
22726 if test `eval echo '${'$as_ac_var'}'` = yes; then
22727 cat >>confdefs.h <<_ACEOF
22728 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22736 for ac_func in memmove strcmp
22738 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22739 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22740 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22741 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22742 echo $ECHO_N "(cached
) $ECHO_C" >&6
22744 cat >conftest.$ac_ext <<_ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h. */
22750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22752 #define $ac_func innocuous_$ac_func
22754 /* System header to define __stub macros and hopefully few prototypes,
22755 which can conflict with char $ac_func (); below.
22756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22757 <limits.h> exists even on freestanding compilers. */
22760 # include <limits.h>
22762 # include <assert.h>
22767 /* Override any GCC internal prototype to avoid an error.
22768 Use char because int might match the return type of a GCC
22769 builtin and then its argument prototype would still apply. */
22774 /* The GNU C library defines this for functions which it implements
22775 to always fail with ENOSYS. Some functions are actually named
22776 something starting with __ and the normal name is an alias. */
22777 #if defined __stub_$ac_func || defined __stub___$ac_func
22784 return $ac_func ();
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_link") 2>conftest.er1
22798 grep -v '^ *+' conftest.er1 >conftest.err
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22802 (exit $ac_status); } &&
22803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22804 { (case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_try") 2>&5
22811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22812 (exit $ac_status); }; } &&
22813 { ac_try='test -s conftest$ac_exeext'
22814 { (case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_try") 2>&5
22821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 eval "$as_ac_var=yes"
22825 echo "$as_me: failed program was
:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 eval "$as_ac_var=no
"
22831 rm -f core conftest.err conftest.$ac_objext \
22832 conftest$ac_exeext conftest.$ac_ext
22834 ac_res=`eval echo '${'$as_ac_var'}'`
22835 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22836 echo "${ECHO_T}$ac_res" >&6; }
22837 if test `eval echo '${'$as_ac_var'}'` = yes; then
22838 cat >>confdefs.h <<_ACEOF
22839 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22848 for ac_func in closedir opendir readdir
22850 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22851 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22852 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22853 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22854 echo $ECHO_N "(cached
) $ECHO_C" >&6
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22864 #define $ac_func innocuous_$ac_func
22866 /* System header to define __stub macros and hopefully few prototypes,
22867 which can conflict with char $ac_func (); below.
22868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22869 <limits.h> exists even on freestanding compilers. */
22872 # include <limits.h>
22874 # include <assert.h>
22879 /* Override any GCC internal prototype to avoid an error.
22880 Use char because int might match the return type of a GCC
22881 builtin and then its argument prototype would still apply. */
22886 /* The GNU C library defines this for functions which it implements
22887 to always fail with ENOSYS. Some functions are actually named
22888 something starting with __ and the normal name is an alias. */
22889 #if defined __stub_$ac_func || defined __stub___$ac_func
22896 return $ac_func ();
22901 rm -f conftest.$ac_objext conftest$ac_exeext
22902 if { (ac_try="$ac_link"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_link") 2>conftest.er1
22910 grep -v '^ *+' conftest.er1 >conftest.err
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22914 (exit $ac_status); } &&
22915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22916 { (case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22921 (eval "$ac_try") 2>&5
22923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22924 (exit $ac_status); }; } &&
22925 { ac_try='test -s conftest$ac_exeext'
22926 { (case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_try") 2>&5
22933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 eval "$as_ac_var=yes"
22937 echo "$as_me: failed program was
:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 eval "$as_ac_var=no
"
22943 rm -f core conftest.err conftest.$ac_objext \
22944 conftest$ac_exeext conftest.$ac_ext
22946 ac_res=`eval echo '${'$as_ac_var'}'`
22947 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22948 echo "${ECHO_T}$ac_res" >&6; }
22949 if test `eval echo '${'$as_ac_var'}'` = yes; then
22950 cat >>confdefs.h <<_ACEOF
22951 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22959 { echo "$as_me:$LINENO: checking
for X
" >&5
22960 echo $ECHO_N "checking
for X...
$ECHO_C" >&6; }
22963 # Check whether --with-x was given.
22964 if test "${with_x+set}" = set; then
22968 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22969 if test "x
$with_x" = xno; then
22970 # The user explicitly disabled X.
22973 case $x_includes,$x_libraries in #(
22974 *\'*) { { echo "$as_me:$LINENO: error
: Cannot use X directory names containing
'" >&5
22975 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22976 { (exit 1); exit 1; }; };; #(
22977 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22978 echo $ECHO_N "(cached
) $ECHO_C" >&6
22980 # One or both of the vars are not set, and there is no cached value.
22981 ac_x_includes=no ac_x_libraries=no
22982 rm -f -r conftest.dir
22983 if mkdir conftest.dir; then
22985 cat >Imakefile <<'_ACEOF'
22987 @echo incroot='${INCROOT}'
22989 @echo usrlibdir='${USRLIBDIR}'
22991 @echo libdir='${LIBDIR}'
22993 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22994 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
22995 for ac_var in incroot usrlibdir libdir; do
22996 eval "ac_im_
$ac_var=\
`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22998 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22999 for ac_extension in a so sl; do
23000 if test ! -f "$ac_im_usrlibdir/libX11.
$ac_extension" &&
23001 test -f "$ac_im_libdir/libX11.
$ac_extension"; then
23002 ac_im_usrlibdir=$ac_im_libdir; break
23005 # Screen out bogus values from the imake configuration. They are
23006 # bogus both because they are the default anyway, and because
23007 # using them would break gcc on systems where it needs fixed includes.
23008 case $ac_im_incroot in
23009 /usr/include) ac_x_includes= ;;
23010 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
23012 case $ac_im_usrlibdir in
23013 /usr/lib | /lib) ;;
23014 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23018 rm -f -r conftest.dir
23021 # Standard set of common directories for X headers.
23022 # Check X11 before X11Rn because it is often a symlink to the current release.
23034 /usr/local/X11/include
23035 /usr/local/X11R6/include
23036 /usr/local/X11R5/include
23037 /usr/local/X11R4/include
23039 /usr/local/include/X11
23040 /usr/local/include/X11R6
23041 /usr/local/include/X11R5
23042 /usr/local/include/X11R4
23046 /usr/XFree86/include/X11
23050 /usr/unsupported/include
23051 /usr/athena/include
23052 /usr/local/x11r5/include
23053 /usr/lpp/Xamples/include
23055 /usr/openwin/include
23056 /usr/openwin/share/include'
23058 if test "$ac_x_includes" = no; then
23059 # Guess where to find include files, by looking for Xlib.h.
23060 # First, try using that file with no special directory specified.
23061 cat >conftest.$ac_ext <<_ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 #include <X11/Xlib.h>
23069 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23077 grep -v '^ *+' conftest.er1 >conftest.err
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23081 (exit $ac_status); } >/dev/null; then
23082 if test -s conftest.err; then
23083 ac_cpp_err=$ac_c_preproc_warn_flag
23084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23091 if test -z "$ac_cpp_err"; then
23092 # We can compile using X headers with no special include directory.
23095 echo "$as_me: failed program was
:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23098 for ac_dir in $ac_x_header_dirs; do
23099 if test -r "$ac_dir/X11
/Xlib.h
"; then
23100 ac_x_includes=$ac_dir
23106 rm -f conftest.err conftest.$ac_ext
23107 fi # $ac_x_includes = no
23109 if test "$ac_x_libraries" = no; then
23110 # Check for the libraries.
23111 # See if we find them without any special options.
23112 # Don't add to $LIBS permanently.
23115 cat >conftest.$ac_ext <<_ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 #include <X11/Xlib.h>
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_link") 2>conftest.er1
23139 grep -v '^ *+' conftest.er1 >conftest.err
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23143 (exit $ac_status); } &&
23144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23145 { (case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_try") 2>&5
23152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest$ac_exeext'
23155 { (case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_try") 2>&5
23162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23163 (exit $ac_status); }; }; then
23165 # We can link X programs with no special library path.
23168 echo "$as_me: failed program was
:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23172 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23174 # Don't even attempt the hair of trying to link an X program!
23175 for ac_extension in a so sl; do
23176 if test -r "$ac_dir/libXt.
$ac_extension"; then
23177 ac_x_libraries=$ac_dir
23184 rm -f core conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
23186 fi # $ac_x_libraries = no
23188 case $ac_x_includes,$ac_x_libraries in #(
23189 no,* | *,no | *\'*)
23190 # Didn't find X, or a directory has "'" in its name.
23191 ac_cv_have_x="have_x=no";; #(
23193 # Record where we found X for the cache.
23194 ac_cv_have_x="have_x=yes\
23195 ac_x_includes='$ac_x_includes'\
23196 ac_x_libraries='$ac_x_libraries'"
23202 eval "$ac_cv_have_x"
23205 if test "$have_x" != yes; then
23206 { echo "$as_me:$LINENO: result: $have_x" >&5
23207 echo "${ECHO_T}$have_x" >&6; }
23210 # If each of the values was on the command line, it overrides each guess.
23211 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23212 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23213 # Update the cache value to reflect the command line values.
23214 ac_cv_have_x="have_x=yes\
23215 ac_x_includes='$x_includes'\
23216 ac_x_libraries='$x_libraries'"
23217 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23218 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23221 if test "$no_x" = yes; then
23222 # Not all programs may use this symbol, but it does not hurt to define it.
23224 cat >>confdefs.h <<\_ACEOF
23225 #define X_DISPLAY_MISSING 1
23228 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23230 if test -n "$x_includes"; then
23231 X_CFLAGS="$X_CFLAGS -I$x_includes"
23234 # It would also be nice to do this for all -L options, not just this one.
23235 if test -n "$x_libraries"; then
23236 X_LIBS="$X_LIBS -L$x_libraries"
23237 # For Solaris; some versions of Sun CC require a space after -R and
23238 # others require no space. Words are not sufficient . . . .
23239 case `(uname -sr) 2>/dev/null` in
23241 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23242 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23243 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23244 cat >conftest.$ac_ext <<_ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (ac_try="$ac_link"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_link") 2>conftest.er1
23268 grep -v '^
*+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23274 { (case "(($ac_try" in
23275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276 *) ac_try_echo=$ac_try;;
23278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23279 (eval "$ac_try") 2>&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; } &&
23283 { ac_try='test -s conftest
$ac_exeext'
23284 { (case "(($ac_try" in
23285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286 *) ac_try_echo=$ac_try;;
23288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23289 (eval "$ac_try") 2>&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23295 echo "$as_me: failed program was:" >&5
23296 sed 's
/^
/|
/' conftest.$ac_ext >&5
23301 rm -f core conftest.err conftest.$ac_objext \
23302 conftest$ac_exeext conftest.$ac_ext
23303 if test $ac_R_nospace = yes; then
23304 { echo "$as_me:$LINENO: result: no" >&5
23305 echo "${ECHO_T}no" >&6; }
23306 X_LIBS="$X_LIBS -R$x_libraries"
23308 LIBS="$ac_xsave_LIBS -R $x_libraries"
23309 cat >conftest.$ac_ext <<_ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23324 rm -f conftest.$ac_objext conftest$ac_exeext
23325 if { (ac_try="$ac_link"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_link") 2>conftest.er1
23333 grep -v '^
*+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23339 { (case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_try") 2>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest
$ac_exeext'
23349 { (case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_try") 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23360 echo "$as_me: failed program was:" >&5
23361 sed 's
/^
/|
/' conftest.$ac_ext >&5
23366 rm -f core conftest.err conftest.$ac_objext \
23367 conftest$ac_exeext conftest.$ac_ext
23368 if test $ac_R_space = yes; then
23369 { echo "$as_me:$LINENO: result: yes" >&5
23370 echo "${ECHO_T}yes" >&6; }
23371 X_LIBS="$X_LIBS -R $x_libraries"
23373 { echo "$as_me:$LINENO: result: neither works" >&5
23374 echo "${ECHO_T}neither works" >&6; }
23377 LIBS=$ac_xsave_LIBS
23381 # Check for system-dependent libraries X programs must link with.
23382 # Do this before checking for the system-independent R6 libraries
23383 # (-lICE), since we may need -lsocket or whatever for X linking.
23385 if test "$ISC" = yes; then
23386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23388 # Martyn Johnson says this is needed for Ultrix, if the X
23389 # libraries were built with DECnet support. And Karl Berry says
23390 # the Alpha needs dnet_stub (dnet does not exist).
23391 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23392 cat >conftest.$ac_ext <<_ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23399 /* Override any GCC internal prototype to avoid an error.
23400 Use char because int might match the return type of a GCC
23401 builtin and then its argument prototype would still apply. */
23405 char XOpenDisplay ();
23409 return XOpenDisplay ();
23414 rm -f conftest.$ac_objext conftest$ac_exeext
23415 if { (ac_try="$ac_link"
23416 case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421 (eval "$ac_link") 2>conftest.er1
23423 grep -v '^
*+' conftest.er1 >conftest.err
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
23428 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23429 { (case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 (eval "$ac_try") 2>&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest
$ac_exeext'
23439 { (case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_try") 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23450 echo "$as_me: failed program was:" >&5
23451 sed 's
/^
/|
/' conftest.$ac_ext >&5
23453 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23454 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23455 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23458 ac_check_lib_save_LIBS=$LIBS
23459 LIBS="-ldnet $LIBS"
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23467 /* Override any GCC internal prototype to avoid an error.
23468 Use char because int might match the return type of a GCC
23469 builtin and then its argument prototype would still apply. */
23477 return dnet_ntoa ();
23482 rm -f conftest.$ac_objext conftest$ac_exeext
23483 if { (ac_try="$ac_link"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23489 (eval "$ac_link") 2>conftest.er1
23491 grep -v '^
*+' conftest.er1 >conftest.err
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
23496 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23497 { (case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_try") 2>&5
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); }; } &&
23506 { ac_try='test -s conftest
$ac_exeext'
23507 { (case "(($ac_try" in
23508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509 *) ac_try_echo=$ac_try;;
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512 (eval "$ac_try") 2>&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 ac_cv_lib_dnet_dnet_ntoa=yes
23518 echo "$as_me: failed program was:" >&5
23519 sed 's
/^
/|
/' conftest.$ac_ext >&5
23521 ac_cv_lib_dnet_dnet_ntoa=no
23524 rm -f core conftest.err conftest.$ac_objext \
23525 conftest$ac_exeext conftest.$ac_ext
23526 LIBS=$ac_check_lib_save_LIBS
23528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23529 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23530 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23531 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23534 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23535 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23536 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23537 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 ac_check_lib_save_LIBS=$LIBS
23541 LIBS="-ldnet_stub $LIBS"
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23549 /* Override any GCC internal prototype to avoid an error.
23550 Use char because int might match the return type of a GCC
23551 builtin and then its argument prototype would still apply. */
23559 return dnet_ntoa ();
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (ac_try="$ac_link"
23566 case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_link") 2>conftest.er1
23573 grep -v '^
*+' conftest.er1 >conftest.err
23575 cat conftest.err >&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } &&
23578 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23579 { (case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584 (eval "$ac_try") 2>&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest
$ac_exeext'
23589 { (case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_try") 2>&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23600 echo "$as_me: failed program was:" >&5
23601 sed 's
/^
/|
/' conftest.$ac_ext >&5
23603 ac_cv_lib_dnet_stub_dnet_ntoa=no
23606 rm -f core conftest.err conftest.$ac_objext \
23607 conftest$ac_exeext conftest.$ac_ext
23608 LIBS=$ac_check_lib_save_LIBS
23610 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23611 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23612 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23613 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23619 rm -f core conftest.err conftest.$ac_objext \
23620 conftest$ac_exeext conftest.$ac_ext
23621 LIBS="$ac_xsave_LIBS"
23623 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23624 # to get the SysV transport functions.
23625 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23627 # The nsl library prevents programs from opening the X display
23628 # on Irix 5.2, according to T.E. Dickey.
23629 # The functions gethostbyname, getservbyname, and inet_addr are
23630 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23631 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23632 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23633 if test "${ac_cv_func_gethostbyname+set}" = set; then
23634 echo $ECHO_N "(cached) $ECHO_C" >&6
23636 cat >conftest.$ac_ext <<_ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h. */
23642 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23644 #define gethostbyname innocuous_gethostbyname
23646 /* System header to define __stub macros and hopefully few prototypes,
23647 which can conflict with char gethostbyname (); below.
23648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23649 <limits.h> exists even on freestanding compilers. */
23652 # include <limits.h>
23654 # include <assert.h>
23657 #undef gethostbyname
23659 /* Override any GCC internal prototype to avoid an error.
23660 Use char because int might match the return type of a GCC
23661 builtin and then its argument prototype would still apply. */
23665 char gethostbyname ();
23666 /* The GNU C library defines this for functions which it implements
23667 to always fail with ENOSYS. Some functions are actually named
23668 something starting with __ and the normal name is an alias. */
23669 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23676 return gethostbyname ();
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_link") 2>conftest.er1
23690 grep -v '^
*+' conftest.er1 >conftest.err
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } &&
23695 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23696 { (case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701 (eval "$ac_try") 2>&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; } &&
23705 { ac_try='test -s conftest
$ac_exeext'
23706 { (case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711 (eval "$ac_try") 2>&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); }; }; then
23715 ac_cv_func_gethostbyname=yes
23717 echo "$as_me: failed program was:" >&5
23718 sed 's
/^
/|
/' conftest.$ac_ext >&5
23720 ac_cv_func_gethostbyname=no
23723 rm -f core conftest.err conftest.$ac_objext \
23724 conftest$ac_exeext conftest.$ac_ext
23726 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23727 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23729 if test $ac_cv_func_gethostbyname = no; then
23730 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23731 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23732 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 ac_check_lib_save_LIBS=$LIBS
23737 cat >conftest.$ac_ext <<_ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23744 /* Override any GCC internal prototype to avoid an error.
23745 Use char because int might match the return type of a GCC
23746 builtin and then its argument prototype would still apply. */
23750 char gethostbyname ();
23754 return gethostbyname ();
23759 rm -f conftest.$ac_objext conftest$ac_exeext
23760 if { (ac_try="$ac_link"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_link") 2>conftest.er1
23768 grep -v '^
*+' conftest.er1 >conftest.err
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
23773 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23774 { (case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_try") 2>&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest
$ac_exeext'
23784 { (case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_try") 2>&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
23793 ac_cv_lib_nsl_gethostbyname=yes
23795 echo "$as_me: failed program was:" >&5
23796 sed 's
/^
/|
/' conftest.$ac_ext >&5
23798 ac_cv_lib_nsl_gethostbyname=no
23801 rm -f core conftest.err conftest.$ac_objext \
23802 conftest$ac_exeext conftest.$ac_ext
23803 LIBS=$ac_check_lib_save_LIBS
23805 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23806 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23807 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23811 if test $ac_cv_lib_nsl_gethostbyname = no; then
23812 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23813 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23814 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23817 ac_check_lib_save_LIBS=$LIBS
23819 cat >conftest.$ac_ext <<_ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h. */
23826 /* Override any GCC internal prototype to avoid an error.
23827 Use char because int might match the return type of a GCC
23828 builtin and then its argument prototype would still apply. */
23832 char gethostbyname ();
23836 return gethostbyname ();
23841 rm -f conftest.$ac_objext conftest$ac_exeext
23842 if { (ac_try="$ac_link"
23843 case "(($ac_try" in
23844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23845 *) ac_try_echo=$ac_try;;
23847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23848 (eval "$ac_link") 2>conftest.er1
23850 grep -v '^
*+' conftest.er1 >conftest.err
23852 cat conftest.err >&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); } &&
23855 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
23856 { (case "(($ac_try" in
23857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_try") 2>&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; } &&
23865 { ac_try='test -s conftest
$ac_exeext'
23866 { (case "(($ac_try" in
23867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23868 *) ac_try_echo=$ac_try;;
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871 (eval "$ac_try") 2>&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 ac_cv_lib_bsd_gethostbyname=yes
23877 echo "$as_me: failed program was:" >&5
23878 sed 's
/^
/|
/' conftest.$ac_ext >&5
23880 ac_cv_lib_bsd_gethostbyname=no
23883 rm -f core conftest.err conftest.$ac_objext \
23884 conftest$ac_exeext conftest.$ac_ext
23885 LIBS=$ac_check_lib_save_LIBS
23887 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23888 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23889 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23896 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23897 # socket/setsockopt and other routines are undefined under SCO ODT
23898 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23899 # on later versions), says Simon Leinen: it contains gethostby*
23900 # variants that don't use the name server
(or something
).
-lsocket
23901 # must be given before -lnsl if both are needed. We assume that
23902 # if connect needs -lnsl, so does gethostbyname.
23903 { echo "$as_me:$LINENO: checking for connect" >&5
23904 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23905 if test "${ac_cv_func_connect+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23908 cat >conftest.
$ac_ext <<_ACEOF
23911 cat confdefs.h
>>conftest.
$ac_ext
23912 cat >>conftest.
$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23916 #define connect innocuous_connect
23918 /* System header to define __stub macros and hopefully few prototypes,
23919 which can conflict with char connect (); below.
23920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23921 <limits.h> exists even on freestanding compilers. */
23924 # include <limits.h>
23926 # include <assert.h>
23931 /* Override any GCC internal prototype to avoid an error.
23932 Use char because int might match the return type of a GCC
23933 builtin and then its argument prototype would still apply. */
23938 /* The GNU C library defines this for functions which it implements
23939 to always fail with ENOSYS. Some functions are actually named
23940 something starting with __ and the normal name is an alias. */
23941 #if defined __stub_connect || defined __stub___connect
23953 rm -f conftest.
$ac_objext conftest
$ac_exeext
23954 if { (ac_try
="$ac_link"
23955 case "(($ac_try" in
23956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23957 *) ac_try_echo=$ac_try;;
23959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23960 (eval "$ac_link") 2>conftest.er1
23962 grep -v '^ *+' conftest.er1 >conftest.err
23964 cat conftest.err >&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } &&
23967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23968 { (case "(($ac_try" in
23969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23970 *) ac_try_echo
=$ac_try;;
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_try") 2>&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; } &&
23977 { ac_try
='test -s conftest$ac_exeext'
23978 { (case "(($ac_try" in
23979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_try") 2>&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 ac_cv_func_connect=yes
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 ac_cv_func_connect=no
23995 rm -f core conftest.err conftest.$ac_objext \
23996 conftest$ac_exeext conftest.$ac_ext
23998 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23999 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
24001 if test $ac_cv_func_connect = no; then
24002 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24003 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
24004 if test "${ac_cv_lib_socket_connect+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 ac_check_lib_save_LIBS=$LIBS
24008 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24009 cat >conftest.$ac_ext <<_ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h. */
24016 /* Override any GCC internal prototype to avoid an error.
24017 Use char because int might match the return type of a GCC
24018 builtin and then its argument prototype would still apply. */
24031 rm -f conftest.$ac_objext conftest$ac_exeext
24032 if { (ac_try="$ac_link"
24033 case "(($ac_try" in
24034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24035 *) ac_try_echo
=$ac_try;;
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_link") 2>conftest.er1
24040 grep -v '^ *+' conftest.er1
>conftest.err
24042 cat conftest.err
>&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } &&
24045 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24046 { (case "(($ac_try" in
24047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_try") 2>&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; } &&
24055 { ac_try='test -s conftest$ac_exeext'
24056 { (case "(($ac_try" in
24057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24058 *) ac_try_echo
=$ac_try;;
24060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24061 (eval "$ac_try") 2>&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); }; }; then
24065 ac_cv_lib_socket_connect
=yes
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.
$ac_ext >&5
24070 ac_cv_lib_socket_connect
=no
24073 rm -f core conftest.err conftest.
$ac_objext \
24074 conftest
$ac_exeext conftest.
$ac_ext
24075 LIBS
=$ac_check_lib_save_LIBS
24077 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24078 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
24079 if test $ac_cv_lib_socket_connect = yes; then
24080 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
24085 # Guillermo Gomez says -lposix is necessary on A/UX.
24086 { echo "$as_me:$LINENO: checking for remove" >&5
24087 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
24088 if test "${ac_cv_func_remove+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24091 cat >conftest.
$ac_ext <<_ACEOF
24094 cat confdefs.h
>>conftest.
$ac_ext
24095 cat >>conftest.
$ac_ext <<_ACEOF
24096 /* end confdefs.h. */
24097 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24099 #define remove innocuous_remove
24101 /* System header to define __stub macros and hopefully few prototypes,
24102 which can conflict with char remove (); below.
24103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24104 <limits.h> exists even on freestanding compilers. */
24107 # include <limits.h>
24109 # include <assert.h>
24114 /* Override any GCC internal prototype to avoid an error.
24115 Use char because int might match the return type of a GCC
24116 builtin and then its argument prototype would still apply. */
24121 /* The GNU C library defines this for functions which it implements
24122 to always fail with ENOSYS. Some functions are actually named
24123 something starting with __ and the normal name is an alias. */
24124 #if defined __stub_remove || defined __stub___remove
24136 rm -f conftest.
$ac_objext conftest
$ac_exeext
24137 if { (ac_try
="$ac_link"
24138 case "(($ac_try" in
24139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_link") 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24151 { (case "(($ac_try" in
24152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24153 *) ac_try_echo
=$ac_try;;
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_try") 2>&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; } &&
24160 { ac_try
='test -s conftest$ac_exeext'
24161 { (case "(($ac_try" in
24162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166 (eval "$ac_try") 2>&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_cv_func_remove=yes
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_cv_func_remove=no
24178 rm -f core conftest.err conftest.$ac_objext \
24179 conftest$ac_exeext conftest.$ac_ext
24181 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24182 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24184 if test $ac_cv_func_remove = no; then
24185 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24186 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24187 if test "${ac_cv_lib_posix_remove+set}" = set; then
24188 echo $ECHO_N "(cached) $ECHO_C" >&6
24190 ac_check_lib_save_LIBS=$LIBS
24191 LIBS="-lposix $LIBS"
24192 cat >conftest.$ac_ext <<_ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h. */
24199 /* Override any GCC internal prototype to avoid an error.
24200 Use char because int might match the return type of a GCC
24201 builtin and then its argument prototype would still apply. */
24214 rm -f conftest.$ac_objext conftest$ac_exeext
24215 if { (ac_try="$ac_link"
24216 case "(($ac_try" in
24217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24218 *) ac_try_echo
=$ac_try;;
24220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24221 (eval "$ac_link") 2>conftest.er1
24223 grep -v '^ *+' conftest.er1
>conftest.err
24225 cat conftest.err
>&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } &&
24228 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24229 { (case "(($ac_try" in
24230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_try") 2>&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); }; } &&
24238 { ac_try='test -s conftest$ac_exeext'
24239 { (case "(($ac_try" in
24240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24241 *) ac_try_echo
=$ac_try;;
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244 (eval "$ac_try") 2>&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; }; then
24248 ac_cv_lib_posix_remove
=yes
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.
$ac_ext >&5
24253 ac_cv_lib_posix_remove
=no
24256 rm -f core conftest.err conftest.
$ac_objext \
24257 conftest
$ac_exeext conftest.
$ac_ext
24258 LIBS
=$ac_check_lib_save_LIBS
24260 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24261 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24262 if test $ac_cv_lib_posix_remove = yes; then
24263 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
24268 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24269 { echo "$as_me:$LINENO: checking for shmat" >&5
24270 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24271 if test "${ac_cv_func_shmat+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 cat >conftest.
$ac_ext <<_ACEOF
24277 cat confdefs.h
>>conftest.
$ac_ext
24278 cat >>conftest.
$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24280 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24282 #define shmat innocuous_shmat
24284 /* System header to define __stub macros and hopefully few prototypes,
24285 which can conflict with char shmat (); below.
24286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24287 <limits.h> exists even on freestanding compilers. */
24290 # include <limits.h>
24292 # include <assert.h>
24297 /* Override any GCC internal prototype to avoid an error.
24298 Use char because int might match the return type of a GCC
24299 builtin and then its argument prototype would still apply. */
24304 /* The GNU C library defines this for functions which it implements
24305 to always fail with ENOSYS. Some functions are actually named
24306 something starting with __ and the normal name is an alias. */
24307 #if defined __stub_shmat || defined __stub___shmat
24319 rm -f conftest.
$ac_objext conftest
$ac_exeext
24320 if { (ac_try
="$ac_link"
24321 case "(($ac_try" in
24322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24323 *) ac_try_echo=$ac_try;;
24325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326 (eval "$ac_link") 2>conftest.er1
24328 grep -v '^ *+' conftest.er1 >conftest.err
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
24333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24334 { (case "(($ac_try" in
24335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24336 *) ac_try_echo
=$ac_try;;
24338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24339 (eval "$ac_try") 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try
='test -s conftest$ac_exeext'
24344 { (case "(($ac_try" in
24345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24346 *) ac_try_echo=$ac_try;;
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349 (eval "$ac_try") 2>&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); }; }; then
24353 ac_cv_func_shmat=yes
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358 ac_cv_func_shmat=no
24361 rm -f core conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
24364 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24365 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24367 if test $ac_cv_func_shmat = no; then
24368 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24369 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24370 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24371 echo $ECHO_N "(cached) $ECHO_C" >&6
24373 ac_check_lib_save_LIBS=$LIBS
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24382 /* Override any GCC internal prototype to avoid an error.
24383 Use char because int might match the return type of a GCC
24384 builtin and then its argument prototype would still apply. */
24397 rm -f conftest.$ac_objext conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24401 *) ac_try_echo
=$ac_try;;
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_link") 2>conftest.er1
24406 grep -v '^ *+' conftest.er1
>conftest.err
24408 cat conftest.err
>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } &&
24411 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24412 { (case "(($ac_try" in
24413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_try") 2>&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); }; } &&
24421 { ac_try='test -s conftest$ac_exeext'
24422 { (case "(($ac_try" in
24423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24424 *) ac_try_echo
=$ac_try;;
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427 (eval "$ac_try") 2>&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; }; then
24431 ac_cv_lib_ipc_shmat
=yes
24433 echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.
$ac_ext >&5
24436 ac_cv_lib_ipc_shmat
=no
24439 rm -f core conftest.err conftest.
$ac_objext \
24440 conftest
$ac_exeext conftest.
$ac_ext
24441 LIBS
=$ac_check_lib_save_LIBS
24443 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24444 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24445 if test $ac_cv_lib_ipc_shmat = yes; then
24446 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
24452 # Check for libraries that X11R6 Xt/Xaw programs need.
24453 ac_save_LDFLAGS
=$LDFLAGS
24454 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
24455 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24456 # check for ICE first), but we must link in the order -lSM -lICE or
24457 # we get undefined symbols. So assume we have SM if we have ICE.
24458 # These have to be linked with before -lX11, unlike the other
24459 # libraries we check for below, so use a different variable.
24460 # John Interrante, Karl Berry
24461 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24462 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24463 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24464 echo $ECHO_N "(cached) $ECHO_C" >&6
24466 ac_check_lib_save_LIBS
=$LIBS
24467 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
24468 cat >conftest.
$ac_ext <<_ACEOF
24471 cat confdefs.h
>>conftest.
$ac_ext
24472 cat >>conftest.
$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 /* Override any GCC internal prototype to avoid an error.
24476 Use char because int might match the return type of a GCC
24477 builtin and then its argument prototype would still apply. */
24481 char IceConnectionNumber ();
24485 return IceConnectionNumber ();
24490 rm -f conftest.
$ac_objext conftest
$ac_exeext
24491 if { (ac_try
="$ac_link"
24492 case "(($ac_try" in
24493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497 (eval "$ac_link") 2>conftest.er1
24499 grep -v '^ *+' conftest.er1 >conftest.err
24501 cat conftest.err >&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } &&
24504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24505 { (case "(($ac_try" in
24506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24507 *) ac_try_echo
=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_try") 2>&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; } &&
24514 { ac_try
='test -s conftest$ac_exeext'
24515 { (case "(($ac_try" in
24516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_try") 2>&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; }; then
24524 ac_cv_lib_ICE_IceConnectionNumber=yes
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24529 ac_cv_lib_ICE_IceConnectionNumber=no
24532 rm -f core conftest.err conftest.$ac_objext \
24533 conftest$ac_exeext conftest.$ac_ext
24534 LIBS=$ac_check_lib_save_LIBS
24536 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24537 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24538 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24539 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24542 LDFLAGS=$ac_save_LDFLAGS
24547 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24548 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24549 if test "${ac_cv_c_bigendian+set}" = set; then
24550 echo $ECHO_N "(cached) $ECHO_C" >&6
24552 # See if sys/param.h defines the BYTE_ORDER macro.
24553 cat >conftest.$ac_ext <<_ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h. */
24559 #include <sys/types.h>
24560 #include <sys/param.h>
24565 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24566 bogus endian macros
24573 rm -f conftest.$ac_objext
24574 if { (ac_try="$ac_compile"
24575 case "(($ac_try" in
24576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24577 *) ac_try_echo
=$ac_try;;
24579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24580 (eval "$ac_compile") 2>conftest.er1
24582 grep -v '^ *+' conftest.er1
>conftest.err
24584 cat conftest.err
>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); } &&
24587 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24588 { (case "(($ac_try" in
24589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_try") 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; } &&
24597 { ac_try='test -s conftest.$ac_objext'
24598 { (case "(($ac_try" in
24599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24600 *) ac_try_echo
=$ac_try;;
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_try") 2>&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; }; then
24607 # It does; now see whether it defined to BIG_ENDIAN or not.
24608 cat >conftest.
$ac_ext <<_ACEOF
24611 cat confdefs.h
>>conftest.
$ac_ext
24612 cat >>conftest.
$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24614 #include <sys/types.h>
24615 #include <sys/param.h>
24620 #if BYTE_ORDER != BIG_ENDIAN
24628 rm -f conftest.
$ac_objext
24629 if { (ac_try
="$ac_compile"
24630 case "(($ac_try" in
24631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_compile") 2>conftest.er1
24637 grep -v '^ *+' conftest.er1 >conftest.err
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } &&
24642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643 { (case "(($ac_try" in
24644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24645 *) ac_try_echo
=$ac_try;;
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_try") 2>&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; } &&
24652 { ac_try
='test -s conftest.$ac_objext'
24653 { (case "(($ac_try" in
24654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24662 ac_cv_c_bigendian=yes
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ac_cv_c_bigendian=no
24670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 # It does not; compile a test program.
24676 if test "$cross_compiling" = yes; then
24677 # try to guess the endianness by grepping values into an object file
24678 ac_cv_c_bigendian=unknown
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24686 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24687 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24688 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24689 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24690 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24694 _ascii (); _ebcdic ();
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24703 *) ac_try_echo
=$ac_try;;
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706 (eval "$ac_compile") 2>conftest.er1
24708 grep -v '^ *+' conftest.er1
>conftest.err
24710 cat conftest.err
>&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
24713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24714 { (case "(($ac_try" in
24715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_try") 2>&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; } &&
24723 { ac_try='test -s conftest.$ac_objext'
24724 { (case "(($ac_try" in
24725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24726 *) ac_try_echo
=$ac_try;;
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729 (eval "$ac_try") 2>&5
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); }; }; then
24733 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
24734 ac_cv_c_bigendian
=yes
24736 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
24737 if test "$ac_cv_c_bigendian" = unknown
; then
24738 ac_cv_c_bigendian
=no
24740 # finding both strings is unlikely to happen, but who knows?
24741 ac_cv_c_bigendian
=unknown
24745 echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.
$ac_ext >&5
24751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24753 cat >conftest.
$ac_ext <<_ACEOF
24756 cat confdefs.h
>>conftest.
$ac_ext
24757 cat >>conftest.
$ac_ext <<_ACEOF
24758 /* end confdefs.h. */
24759 $ac_includes_default
24764 /* Are we little or big endian? From Harbison&Steele. */
24768 char c[sizeof (long int)];
24771 return u.c[sizeof (long int) - 1] == 1;
24777 rm -f conftest
$ac_exeext
24778 if { (ac_try
="$ac_link"
24779 case "(($ac_try" in
24780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24781 *) ac_try_echo=$ac_try;;
24783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24784 (eval "$ac_link") 2>&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24788 { (case "(($ac_try" in
24789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24790 *) ac_try_echo
=$ac_try;;
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793 (eval "$ac_try") 2>&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); }; }; then
24797 ac_cv_c_bigendian
=no
24799 echo "$as_me: program exited with status $ac_status" >&5
24800 echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.
$ac_ext >&5
24803 ( exit $ac_status )
24804 ac_cv_c_bigendian
=yes
24806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24814 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24815 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24816 case $ac_cv_c_bigendian in
24819 cat >>confdefs.h
<<\_ACEOF
24820 #define WORDS_BIGENDIAN 1
24826 { { echo "$as_me:$LINENO: error: unknown endianness
24827 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24828 echo "$as_me: error: unknown endianness
24829 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24830 { (exit 1); exit 1; }; } ;;
24833 { echo "$as_me:$LINENO: checking for inline" >&5
24834 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24835 if test "${ac_cv_c_inline+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 for ac_kw
in inline __inline__ __inline
; do
24840 cat >conftest.
$ac_ext <<_ACEOF
24843 cat confdefs.h
>>conftest.
$ac_ext
24844 cat >>conftest.
$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 #ifndef __cplusplus
24848 static $ac_kw foo_t static_foo () {return 0; }
24849 $ac_kw foo_t foo () {return 0; }
24853 rm -f conftest.
$ac_objext
24854 if { (ac_try
="$ac_compile"
24855 case "(($ac_try" in
24856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24860 (eval "$ac_compile") 2>conftest.er1
24862 grep -v '^ *+' conftest.er1 >conftest.err
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } &&
24867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24868 { (case "(($ac_try" in
24869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24870 *) ac_try_echo
=$ac_try;;
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873 (eval "$ac_try") 2>&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; } &&
24877 { ac_try
='test -s conftest.$ac_objext'
24878 { (case "(($ac_try" in
24879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883 (eval "$ac_try") 2>&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); }; }; then
24887 ac_cv_c_inline=$ac_kw
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24896 test "$ac_cv_c_inline" != no && break
24900 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24901 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24904 case $ac_cv_c_inline in
24907 case $ac_cv_c_inline in
24909 *) ac_val=$ac_cv_c_inline;;
24911 cat >>confdefs.h <<_ACEOF
24912 #ifndef __cplusplus
24913 #define inline $ac_val
24919 { echo "$as_me:$LINENO: checking for unsigned char" >&5
24920 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
24921 if test "${ac_cv_type_unsigned_char+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 cat >conftest.$ac_ext <<_ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h. */
24930 $ac_includes_default
24931 typedef unsigned char ac__type_new_;
24935 if ((ac__type_new_ *) 0)
24937 if (sizeof (ac__type_new_))
24943 rm -f conftest.$ac_objext
24944 if { (ac_try="$ac_compile"
24945 case "(($ac_try" in
24946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24947 *) ac_try_echo
=$ac_try;;
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950 (eval "$ac_compile") 2>conftest.er1
24952 grep -v '^ *+' conftest.er1
>conftest.err
24954 cat conftest.err
>&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } &&
24957 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24958 { (case "(($ac_try" in
24959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_try") 2>&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; } &&
24967 { ac_try='test -s conftest.$ac_objext'
24968 { (case "(($ac_try" in
24969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24970 *) ac_try_echo
=$ac_try;;
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973 (eval "$ac_try") 2>&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); }; }; then
24977 ac_cv_type_unsigned_char
=yes
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.
$ac_ext >&5
24982 ac_cv_type_unsigned_char
=no
24985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24987 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
24988 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
24990 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
24991 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
24992 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 if test "$ac_cv_type_unsigned_char" = yes; then
24996 # The cast to long int works around a bug in the HP C Compiler
24997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24999 # This bug is HP SR number 8606223364.
25000 if test "$cross_compiling" = yes; then
25001 # Depending upon the size, compute the lo and hi bounds.
25002 cat >conftest.
$ac_ext <<_ACEOF
25005 cat confdefs.h
>>conftest.
$ac_ext
25006 cat >>conftest.
$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25008 $ac_includes_default
25009 typedef unsigned char ac__type_sizeof_;
25013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25020 rm -f conftest.
$ac_objext
25021 if { (ac_try
="$ac_compile"
25022 case "(($ac_try" in
25023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_compile") 2>conftest.er1
25029 grep -v '^ *+' conftest.er1 >conftest.err
25031 cat conftest.err >&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } &&
25034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25035 { (case "(($ac_try" in
25036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25037 *) ac_try_echo
=$ac_try;;
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_try") 2>&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; } &&
25044 { ac_try
='test -s conftest.$ac_objext'
25045 { (case "(($ac_try" in
25046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25047 *) ac_try_echo=$ac_try;;
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050 (eval "$ac_try") 2>&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; }; then
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 $ac_includes_default
25063 typedef unsigned char ac__type_sizeof_;
25067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25078 *) ac_try_echo
=$ac_try;;
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25083 grep -v '^ *+' conftest.er1
>conftest.err
25085 cat conftest.err
>&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } &&
25088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25089 { (case "(($ac_try" in
25090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094 (eval "$ac_try") 2>&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); }; } &&
25098 { ac_try='test -s conftest.$ac_objext'
25099 { (case "(($ac_try" in
25100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25101 *) ac_try_echo
=$ac_try;;
25103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25104 (eval "$ac_try") 2>&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; }; then
25108 ac_hi
=$ac_mid; break
25110 echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.
$ac_ext >&5
25113 ac_lo
=`expr $ac_mid + 1`
25114 if test $ac_lo -le $ac_mid; then
25118 ac_mid
=`expr 2 '*' $ac_mid + 1`
25121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25124 echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.
$ac_ext >&5
25127 cat >conftest.
$ac_ext <<_ACEOF
25130 cat confdefs.h
>>conftest.
$ac_ext
25131 cat >>conftest.
$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25133 $ac_includes_default
25134 typedef unsigned char ac__type_sizeof_;
25138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25145 rm -f conftest.
$ac_objext
25146 if { (ac_try
="$ac_compile"
25147 case "(($ac_try" in
25148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25149 *) ac_try_echo=$ac_try;;
25151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25152 (eval "$ac_compile") 2>conftest.er1
25154 grep -v '^ *+' conftest.er1 >conftest.err
25156 cat conftest.err >&5
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); } &&
25159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25160 { (case "(($ac_try" in
25161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25162 *) ac_try_echo
=$ac_try;;
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_try") 2>&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; } &&
25169 { ac_try
='test -s conftest.$ac_objext'
25170 { (case "(($ac_try" in
25171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25172 *) ac_try_echo=$ac_try;;
25174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175 (eval "$ac_try") 2>&5
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25181 cat >conftest.$ac_ext <<_ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25187 $ac_includes_default
25188 typedef unsigned char ac__type_sizeof_;
25192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25199 rm -f conftest.$ac_objext
25200 if { (ac_try="$ac_compile"
25201 case "(($ac_try" in
25202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25203 *) ac_try_echo
=$ac_try;;
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_compile") 2>conftest.er1
25208 grep -v '^ *+' conftest.er1
>conftest.err
25210 cat conftest.err
>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
25213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25214 { (case "(($ac_try" in
25215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_try") 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } &&
25223 { ac_try='test -s conftest.$ac_objext'
25224 { (case "(($ac_try" in
25225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25226 *) ac_try_echo
=$ac_try;;
25228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229 (eval "$ac_try") 2>&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); }; }; then
25233 ac_lo
=$ac_mid; break
25235 echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.
$ac_ext >&5
25238 ac_hi
=`expr '(' $ac_mid ')' - 1`
25239 if test $ac_mid -le $ac_hi; then
25243 ac_mid
=`expr 2 '*' $ac_mid`
25246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.
$ac_ext >&5
25255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25259 # Binary search between lo and hi bounds.
25260 while test "x$ac_lo" != "x$ac_hi"; do
25261 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25262 cat >conftest.
$ac_ext <<_ACEOF
25265 cat confdefs.h
>>conftest.
$ac_ext
25266 cat >>conftest.
$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 $ac_includes_default
25269 typedef unsigned char ac__type_sizeof_;
25273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25280 rm -f conftest.
$ac_objext
25281 if { (ac_try
="$ac_compile"
25282 case "(($ac_try" in
25283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25284 *) ac_try_echo=$ac_try;;
25286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25287 (eval "$ac_compile") 2>conftest.er1
25289 grep -v '^ *+' conftest.er1 >conftest.err
25291 cat conftest.err >&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); } &&
25294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25295 { (case "(($ac_try" in
25296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25297 *) ac_try_echo
=$ac_try;;
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300 (eval "$ac_try") 2>&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; } &&
25304 { ac_try
='test -s conftest.$ac_objext'
25305 { (case "(($ac_try" in
25306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25307 *) ac_try_echo=$ac_try;;
25309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25310 (eval "$ac_try") 2>&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; }; then
25316 echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25319 ac_lo=`expr '(' $ac_mid ')' + 1`
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
25326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
25327 See \`config.log
' for more details." >&5
25328 echo "$as_me: error: cannot compute sizeof (unsigned char)
25329 See \`config.log' for more details.
" >&2;}
25330 { (exit 77); exit 77; }; } ;;
25333 cat >conftest.$ac_ext <<_ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 $ac_includes_default
25340 typedef unsigned char ac__type_sizeof_;
25341 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25342 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25344 #include <stdlib.h>
25349 FILE *f = fopen ("conftest.val
", "w
");
25352 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25354 long int i = longval ();
25355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25357 fprintf (f, "%ld
\n", i);
25361 unsigned long int i = ulongval ();
25362 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25364 fprintf (f, "%lu
\n", i);
25366 return ferror (f) || fclose (f) != 0;
25372 rm -f conftest$ac_exeext
25373 if { (ac_try="$ac_link"
25374 case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_link") 2>&5
25381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25383 { (case "(($ac_try" in
25384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385 *) ac_try_echo=$ac_try;;
25387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25388 (eval "$ac_try") 2>&5
25390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25391 (exit $ac_status); }; }; then
25392 ac_cv_sizeof_unsigned_char=`cat conftest.val`
25394 echo "$as_me: program exited with status
$ac_status" >&5
25395 echo "$as_me: failed program was
:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 ( exit $ac_status )
25399 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned char
)
25400 See \
`config.log' for more details." >&5
25401 echo "$as_me: error: cannot compute sizeof (unsigned char)
25402 See \`config.log
' for more details." >&2;}
25403 { (exit 77); exit 77; }; }
25405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25409 ac_cv_sizeof_unsigned_char=0
25412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
25413 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
25414 cat >>confdefs.h <<_ACEOF
25415 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
25419 { echo "$as_me:$LINENO: checking for unsigned short" >&5
25420 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
25421 if test "${ac_cv_type_unsigned_short+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25424 cat >conftest.$ac_ext <<_ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h. */
25430 $ac_includes_default
25431 typedef unsigned short ac__type_new_;
25435 if ((ac__type_new_ *) 0)
25437 if (sizeof (ac__type_new_))
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_compile") 2>conftest.er1
25452 grep -v '^
*+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } &&
25457 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
25458 { (case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463 (eval "$ac_try") 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; } &&
25467 { ac_try='test -s conftest.
$ac_objext'
25468 { (case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_try") 2>&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; }; then
25477 ac_cv_type_unsigned_short=yes
25479 echo "$as_me: failed program was:" >&5
25480 sed 's
/^
/|
/' conftest.$ac_ext >&5
25482 ac_cv_type_unsigned_short=no
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
25488 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
25490 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
25491 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
25492 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25495 if test "$ac_cv_type_unsigned_short" = yes; then
25496 # The cast to long int works around a bug in the HP C Compiler
25497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25499 # This bug is HP SR number 8606223364.
25500 if test "$cross_compiling" = yes; then
25501 # Depending upon the size, compute the lo and hi bounds.
25502 cat >conftest.
$ac_ext <<_ACEOF
25505 cat confdefs.h
>>conftest.
$ac_ext
25506 cat >>conftest.
$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 $ac_includes_default
25509 typedef unsigned short ac__type_sizeof_;
25513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25520 rm -f conftest.
$ac_objext
25521 if { (ac_try
="$ac_compile"
25522 case "(($ac_try" in
25523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
25534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25535 { (case "(($ac_try" in
25536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25537 *) ac_try_echo
=$ac_try;;
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_try") 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; } &&
25544 { ac_try
='test -s conftest.$ac_objext'
25545 { (case "(($ac_try" in
25546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550 (eval "$ac_try") 2>&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); }; }; then
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 $ac_includes_default
25563 typedef unsigned short ac__type_sizeof_;
25567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25574 rm -f conftest.$ac_objext
25575 if { (ac_try="$ac_compile"
25576 case "(($ac_try" in
25577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25578 *) ac_try_echo
=$ac_try;;
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581 (eval "$ac_compile") 2>conftest.er1
25583 grep -v '^ *+' conftest.er1
>conftest.err
25585 cat conftest.err
>&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
25588 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25589 { (case "(($ac_try" in
25590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594 (eval "$ac_try") 2>&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; } &&
25598 { ac_try='test -s conftest.$ac_objext'
25599 { (case "(($ac_try" in
25600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25601 *) ac_try_echo
=$ac_try;;
25603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604 (eval "$ac_try") 2>&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; }; then
25608 ac_hi
=$ac_mid; break
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.
$ac_ext >&5
25613 ac_lo
=`expr $ac_mid + 1`
25614 if test $ac_lo -le $ac_mid; then
25618 ac_mid
=`expr 2 '*' $ac_mid + 1`
25621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.
$ac_ext >&5
25627 cat >conftest.
$ac_ext <<_ACEOF
25630 cat confdefs.h
>>conftest.
$ac_ext
25631 cat >>conftest.
$ac_ext <<_ACEOF
25632 /* end confdefs.h. */
25633 $ac_includes_default
25634 typedef unsigned short ac__type_sizeof_;
25638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25645 rm -f conftest.
$ac_objext
25646 if { (ac_try
="$ac_compile"
25647 case "(($ac_try" in
25648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25649 *) ac_try_echo=$ac_try;;
25651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25652 (eval "$ac_compile") 2>conftest.er1
25654 grep -v '^ *+' conftest.er1 >conftest.err
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } &&
25659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25660 { (case "(($ac_try" in
25661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25662 *) ac_try_echo
=$ac_try;;
25664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25665 (eval "$ac_try") 2>&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; } &&
25669 { ac_try
='test -s conftest.$ac_objext'
25670 { (case "(($ac_try" in
25671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675 (eval "$ac_try") 2>&5
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 $ac_includes_default
25688 typedef unsigned short ac__type_sizeof_;
25692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25699 rm -f conftest.$ac_objext
25700 if { (ac_try="$ac_compile"
25701 case "(($ac_try" in
25702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25703 *) ac_try_echo
=$ac_try;;
25705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706 (eval "$ac_compile") 2>conftest.er1
25708 grep -v '^ *+' conftest.er1
>conftest.err
25710 cat conftest.err
>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } &&
25713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25714 { (case "(($ac_try" in
25715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25716 *) ac_try_echo=$ac_try;;
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719 (eval "$ac_try") 2>&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; } &&
25723 { ac_try='test -s conftest.$ac_objext'
25724 { (case "(($ac_try" in
25725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25726 *) ac_try_echo
=$ac_try;;
25728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25729 (eval "$ac_try") 2>&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; }; then
25733 ac_lo
=$ac_mid; break
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.
$ac_ext >&5
25738 ac_hi
=`expr '(' $ac_mid ')' - 1`
25739 if test $ac_mid -le $ac_hi; then
25743 ac_mid
=`expr 2 '*' $ac_mid`
25746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25749 echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.
$ac_ext >&5
25755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25759 # Binary search between lo and hi bounds.
25760 while test "x$ac_lo" != "x$ac_hi"; do
25761 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25762 cat >conftest.
$ac_ext <<_ACEOF
25765 cat confdefs.h
>>conftest.
$ac_ext
25766 cat >>conftest.
$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25768 $ac_includes_default
25769 typedef unsigned short ac__type_sizeof_;
25773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25780 rm -f conftest.
$ac_objext
25781 if { (ac_try
="$ac_compile"
25782 case "(($ac_try" in
25783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25784 *) ac_try_echo=$ac_try;;
25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787 (eval "$ac_compile") 2>conftest.er1
25789 grep -v '^ *+' conftest.er1 >conftest.err
25791 cat conftest.err >&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } &&
25794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25795 { (case "(($ac_try" in
25796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25797 *) ac_try_echo
=$ac_try;;
25799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25800 (eval "$ac_try") 2>&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try
='test -s conftest.$ac_objext'
25805 { (case "(($ac_try" in
25806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25807 *) ac_try_echo=$ac_try;;
25809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810 (eval "$ac_try") 2>&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; }; then
25816 echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 ac_lo=`expr '(' $ac_mid ')' + 1`
25822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25825 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25827 See \`config.log
' for more details." >&5
25828 echo "$as_me: error: cannot compute sizeof (unsigned short)
25829 See \`config.log' for more details.
" >&2;}
25830 { (exit 77); exit 77; }; } ;;
25833 cat >conftest.$ac_ext <<_ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h. */
25839 $ac_includes_default
25840 typedef unsigned short ac__type_sizeof_;
25841 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25842 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25844 #include <stdlib.h>
25849 FILE *f = fopen ("conftest.val
", "w
");
25852 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25854 long int i = longval ();
25855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25857 fprintf (f, "%ld
\n", i);
25861 unsigned long int i = ulongval ();
25862 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25864 fprintf (f, "%lu
\n", i);
25866 return ferror (f) || fclose (f) != 0;
25872 rm -f conftest$ac_exeext
25873 if { (ac_try="$ac_link"
25874 case "(($ac_try" in
25875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876 *) ac_try_echo=$ac_try;;
25878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25879 (eval "$ac_link") 2>&5
25881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25883 { (case "(($ac_try" in
25884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885 *) ac_try_echo=$ac_try;;
25887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25888 (eval "$ac_try") 2>&5
25890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25891 (exit $ac_status); }; }; then
25892 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25894 echo "$as_me: program exited with status
$ac_status" >&5
25895 echo "$as_me: failed program was
:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25898 ( exit $ac_status )
25899 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned short
)
25900 See \
`config.log' for more details." >&5
25901 echo "$as_me: error: cannot compute sizeof (unsigned short)
25902 See \`config.log
' for more details." >&2;}
25903 { (exit 77); exit 77; }; }
25905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25909 ac_cv_sizeof_unsigned_short=0
25912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25913 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
25914 cat >>confdefs.h <<_ACEOF
25915 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25919 { echo "$as_me:$LINENO: checking for unsigned int" >&5
25920 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
25921 if test "${ac_cv_type_unsigned_int+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25924 cat >conftest.$ac_ext <<_ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h. */
25930 $ac_includes_default
25931 typedef unsigned int ac__type_new_;
25935 if ((ac__type_new_ *) 0)
25937 if (sizeof (ac__type_new_))
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_compile") 2>conftest.er1
25952 grep -v '^
*+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
25957 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
25958 { (case "(($ac_try" in
25959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960 *) ac_try_echo=$ac_try;;
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963 (eval "$ac_try") 2>&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; } &&
25967 { ac_try='test -s conftest.
$ac_objext'
25968 { (case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_try") 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 ac_cv_type_unsigned_int=yes
25979 echo "$as_me: failed program was:" >&5
25980 sed 's
/^
/|
/' conftest.$ac_ext >&5
25982 ac_cv_type_unsigned_int=no
25985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25987 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
25988 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
25990 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
25991 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
25992 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25993 echo $ECHO_N "(cached) $ECHO_C" >&6
25995 if test "$ac_cv_type_unsigned_int" = yes; then
25996 # The cast to long int works around a bug in the HP C Compiler
25997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25999 # This bug is HP SR number 8606223364.
26000 if test "$cross_compiling" = yes; then
26001 # Depending upon the size, compute the lo and hi bounds.
26002 cat >conftest.
$ac_ext <<_ACEOF
26005 cat confdefs.h
>>conftest.
$ac_ext
26006 cat >>conftest.
$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 $ac_includes_default
26009 typedef unsigned int ac__type_sizeof_;
26013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26020 rm -f conftest.
$ac_objext
26021 if { (ac_try
="$ac_compile"
26022 case "(($ac_try" in
26023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26029 grep -v '^ *+' conftest.er1 >conftest.err
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26035 { (case "(($ac_try" in
26036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26037 *) ac_try_echo
=$ac_try;;
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040 (eval "$ac_try") 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; } &&
26044 { ac_try
='test -s conftest.$ac_objext'
26045 { (case "(($ac_try" in
26046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26047 *) ac_try_echo=$ac_try;;
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050 (eval "$ac_try") 2>&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
26056 cat >conftest.$ac_ext <<_ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 $ac_includes_default
26063 typedef unsigned int ac__type_sizeof_;
26067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26074 rm -f conftest.$ac_objext
26075 if { (ac_try="$ac_compile"
26076 case "(($ac_try" in
26077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26078 *) ac_try_echo
=$ac_try;;
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081 (eval "$ac_compile") 2>conftest.er1
26083 grep -v '^ *+' conftest.er1
>conftest.err
26085 cat conftest.err
>&5
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } &&
26088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26089 { (case "(($ac_try" in
26090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094 (eval "$ac_try") 2>&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
26099 { (case "(($ac_try" in
26100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26101 *) ac_try_echo
=$ac_try;;
26103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26104 (eval "$ac_try") 2>&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 ac_hi
=$ac_mid; break
26110 echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.
$ac_ext >&5
26113 ac_lo
=`expr $ac_mid + 1`
26114 if test $ac_lo -le $ac_mid; then
26118 ac_mid
=`expr 2 '*' $ac_mid + 1`
26121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26124 echo "$as_me: failed program was:" >&5
26125 sed 's/^/| /' conftest.
$ac_ext >&5
26127 cat >conftest.
$ac_ext <<_ACEOF
26130 cat confdefs.h
>>conftest.
$ac_ext
26131 cat >>conftest.
$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133 $ac_includes_default
26134 typedef unsigned int ac__type_sizeof_;
26138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26145 rm -f conftest.
$ac_objext
26146 if { (ac_try
="$ac_compile"
26147 case "(($ac_try" in
26148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_compile") 2>conftest.er1
26154 grep -v '^ *+' conftest.er1 >conftest.err
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } &&
26159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26160 { (case "(($ac_try" in
26161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26162 *) ac_try_echo
=$ac_try;;
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_try") 2>&5
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); }; } &&
26169 { ac_try
='test -s conftest.$ac_objext'
26170 { (case "(($ac_try" in
26171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26172 *) ac_try_echo=$ac_try;;
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175 (eval "$ac_try") 2>&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; }; then
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 $ac_includes_default
26188 typedef unsigned int ac__type_sizeof_;
26192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26199 rm -f conftest.$ac_objext
26200 if { (ac_try="$ac_compile"
26201 case "(($ac_try" in
26202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26203 *) ac_try_echo
=$ac_try;;
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206 (eval "$ac_compile") 2>conftest.er1
26208 grep -v '^ *+' conftest.er1
>conftest.err
26210 cat conftest.err
>&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } &&
26213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26214 { (case "(($ac_try" in
26215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26216 *) ac_try_echo=$ac_try;;
26218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26219 (eval "$ac_try") 2>&5
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); }; } &&
26223 { ac_try='test -s conftest.$ac_objext'
26224 { (case "(($ac_try" in
26225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26226 *) ac_try_echo
=$ac_try;;
26228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26229 (eval "$ac_try") 2>&5
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; }; then
26233 ac_lo
=$ac_mid; break
26235 echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.
$ac_ext >&5
26238 ac_hi
=`expr '(' $ac_mid ')' - 1`
26239 if test $ac_mid -le $ac_hi; then
26243 ac_mid
=`expr 2 '*' $ac_mid`
26246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.
$ac_ext >&5
26255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26259 # Binary search between lo and hi bounds.
26260 while test "x$ac_lo" != "x$ac_hi"; do
26261 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26262 cat >conftest.
$ac_ext <<_ACEOF
26265 cat confdefs.h
>>conftest.
$ac_ext
26266 cat >>conftest.
$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26268 $ac_includes_default
26269 typedef unsigned int ac__type_sizeof_;
26273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26280 rm -f conftest.
$ac_objext
26281 if { (ac_try
="$ac_compile"
26282 case "(($ac_try" in
26283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26284 *) ac_try_echo=$ac_try;;
26286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26287 (eval "$ac_compile") 2>conftest.er1
26289 grep -v '^ *+' conftest.er1 >conftest.err
26291 cat conftest.err >&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
26294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26295 { (case "(($ac_try" in
26296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26297 *) ac_try_echo
=$ac_try;;
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_try") 2>&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; } &&
26304 { ac_try
='test -s conftest.$ac_objext'
26305 { (case "(($ac_try" in
26306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310 (eval "$ac_try") 2>&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); }; }; then
26316 echo "$as_me: failed program was:" >&5
26317 sed 's/^/| /' conftest.$ac_ext >&5
26319 ac_lo=`expr '(' $ac_mid ')' + 1`
26322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26325 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
26326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26327 See \`config.log
' for more details." >&5
26328 echo "$as_me: error: cannot compute sizeof (unsigned int)
26329 See \`config.log' for more details.
" >&2;}
26330 { (exit 77); exit 77; }; } ;;
26333 cat >conftest.$ac_ext <<_ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339 $ac_includes_default
26340 typedef unsigned int ac__type_sizeof_;
26341 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26342 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26344 #include <stdlib.h>
26349 FILE *f = fopen ("conftest.val
", "w
");
26352 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26354 long int i = longval ();
26355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26357 fprintf (f, "%ld
\n", i);
26361 unsigned long int i = ulongval ();
26362 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26364 fprintf (f, "%lu
\n", i);
26366 return ferror (f) || fclose (f) != 0;
26372 rm -f conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376 *) ac_try_echo=$ac_try;;
26378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26379 (eval "$ac_link") 2>&5
26381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26383 { (case "(($ac_try" in
26384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26388 (eval "$ac_try") 2>&5
26390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26391 (exit $ac_status); }; }; then
26392 ac_cv_sizeof_unsigned_int=`cat conftest.val`
26394 echo "$as_me: program exited with status
$ac_status" >&5
26395 echo "$as_me: failed program was
:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 ( exit $ac_status )
26399 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned int
)
26400 See \
`config.log' for more details." >&5
26401 echo "$as_me: error: cannot compute sizeof (unsigned int)
26402 See \`config.log
' for more details." >&2;}
26403 { (exit 77); exit 77; }; }
26405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26409 ac_cv_sizeof_unsigned_int=0
26412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
26413 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
26414 cat >>confdefs.h <<_ACEOF
26415 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
26419 { echo "$as_me:$LINENO: checking for unsigned long" >&5
26420 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
26421 if test "${ac_cv_type_unsigned_long+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26424 cat >conftest.$ac_ext <<_ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h. */
26430 $ac_includes_default
26431 typedef unsigned long ac__type_new_;
26435 if ((ac__type_new_ *) 0)
26437 if (sizeof (ac__type_new_))
26443 rm -f conftest.$ac_objext
26444 if { (ac_try="$ac_compile"
26445 case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_compile") 2>conftest.er1
26452 grep -v '^
*+' conftest.er1 >conftest.err
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } &&
26457 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
26458 { (case "(($ac_try" in
26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460 *) ac_try_echo=$ac_try;;
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463 (eval "$ac_try") 2>&5
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); }; } &&
26467 { ac_try='test -s conftest.
$ac_objext'
26468 { (case "(($ac_try" in
26469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470 *) ac_try_echo=$ac_try;;
26472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26473 (eval "$ac_try") 2>&5
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); }; }; then
26477 ac_cv_type_unsigned_long=yes
26479 echo "$as_me: failed program was:" >&5
26480 sed 's
/^
/|
/' conftest.$ac_ext >&5
26482 ac_cv_type_unsigned_long=no
26485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
26488 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
26490 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
26491 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
26492 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26493 echo $ECHO_N "(cached) $ECHO_C" >&6
26495 if test "$ac_cv_type_unsigned_long" = yes; then
26496 # The cast to long int works around a bug in the HP C Compiler
26497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26499 # This bug is HP SR number 8606223364.
26500 if test "$cross_compiling" = yes; then
26501 # Depending upon the size, compute the lo and hi bounds.
26502 cat >conftest.
$ac_ext <<_ACEOF
26505 cat confdefs.h
>>conftest.
$ac_ext
26506 cat >>conftest.
$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 $ac_includes_default
26509 typedef unsigned long ac__type_sizeof_;
26513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26520 rm -f conftest.
$ac_objext
26521 if { (ac_try
="$ac_compile"
26522 case "(($ac_try" in
26523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26524 *) ac_try_echo=$ac_try;;
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527 (eval "$ac_compile") 2>conftest.er1
26529 grep -v '^ *+' conftest.er1 >conftest.err
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } &&
26534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26535 { (case "(($ac_try" in
26536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26537 *) ac_try_echo
=$ac_try;;
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_try") 2>&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; } &&
26544 { ac_try
='test -s conftest.$ac_objext'
26545 { (case "(($ac_try" in
26546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26547 *) ac_try_echo=$ac_try;;
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550 (eval "$ac_try") 2>&5
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); }; }; then
26556 cat >conftest.$ac_ext <<_ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26562 $ac_includes_default
26563 typedef unsigned long ac__type_sizeof_;
26567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26574 rm -f conftest.$ac_objext
26575 if { (ac_try="$ac_compile"
26576 case "(($ac_try" in
26577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26578 *) ac_try_echo
=$ac_try;;
26580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26581 (eval "$ac_compile") 2>conftest.er1
26583 grep -v '^ *+' conftest.er1
>conftest.err
26585 cat conftest.err
>&5
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); } &&
26588 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26589 { (case "(($ac_try" in
26590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26591 *) ac_try_echo=$ac_try;;
26593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26594 (eval "$ac_try") 2>&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); }; } &&
26598 { ac_try='test -s conftest.$ac_objext'
26599 { (case "(($ac_try" in
26600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26601 *) ac_try_echo
=$ac_try;;
26603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26604 (eval "$ac_try") 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; }; then
26608 ac_hi
=$ac_mid; break
26610 echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.
$ac_ext >&5
26613 ac_lo
=`expr $ac_mid + 1`
26614 if test $ac_lo -le $ac_mid; then
26618 ac_mid
=`expr 2 '*' $ac_mid + 1`
26621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26624 echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.
$ac_ext >&5
26627 cat >conftest.
$ac_ext <<_ACEOF
26630 cat confdefs.h
>>conftest.
$ac_ext
26631 cat >>conftest.
$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 $ac_includes_default
26634 typedef unsigned long ac__type_sizeof_;
26638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26645 rm -f conftest.
$ac_objext
26646 if { (ac_try
="$ac_compile"
26647 case "(($ac_try" in
26648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652 (eval "$ac_compile") 2>conftest.er1
26654 grep -v '^ *+' conftest.er1 >conftest.err
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
26659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26660 { (case "(($ac_try" in
26661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26662 *) ac_try_echo
=$ac_try;;
26664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26665 (eval "$ac_try") 2>&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; } &&
26669 { ac_try
='test -s conftest.$ac_objext'
26670 { (case "(($ac_try" in
26671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26672 *) ac_try_echo=$ac_try;;
26674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26675 (eval "$ac_try") 2>&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26681 cat >conftest.$ac_ext <<_ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26687 $ac_includes_default
26688 typedef unsigned long ac__type_sizeof_;
26692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26699 rm -f conftest.$ac_objext
26700 if { (ac_try="$ac_compile"
26701 case "(($ac_try" in
26702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26703 *) ac_try_echo
=$ac_try;;
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_compile") 2>conftest.er1
26708 grep -v '^ *+' conftest.er1
>conftest.err
26710 cat conftest.err
>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } &&
26713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26714 { (case "(($ac_try" in
26715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_try") 2>&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest.$ac_objext'
26724 { (case "(($ac_try" in
26725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26726 *) ac_try_echo
=$ac_try;;
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729 (eval "$ac_try") 2>&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; }; then
26733 ac_lo
=$ac_mid; break
26735 echo "$as_me: failed program was:" >&5
26736 sed 's/^/| /' conftest.
$ac_ext >&5
26738 ac_hi
=`expr '(' $ac_mid ')' - 1`
26739 if test $ac_mid -le $ac_hi; then
26743 ac_mid
=`expr 2 '*' $ac_mid`
26746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26749 echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.
$ac_ext >&5
26755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26759 # Binary search between lo and hi bounds.
26760 while test "x$ac_lo" != "x$ac_hi"; do
26761 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26762 cat >conftest.
$ac_ext <<_ACEOF
26765 cat confdefs.h
>>conftest.
$ac_ext
26766 cat >>conftest.
$ac_ext <<_ACEOF
26767 /* end confdefs.h. */
26768 $ac_includes_default
26769 typedef unsigned long ac__type_sizeof_;
26773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26780 rm -f conftest.
$ac_objext
26781 if { (ac_try
="$ac_compile"
26782 case "(($ac_try" in
26783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26784 *) ac_try_echo=$ac_try;;
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787 (eval "$ac_compile") 2>conftest.er1
26789 grep -v '^ *+' conftest.er1 >conftest.err
26791 cat conftest.err >&5
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); } &&
26794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26795 { (case "(($ac_try" in
26796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26797 *) ac_try_echo
=$ac_try;;
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800 (eval "$ac_try") 2>&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; } &&
26804 { ac_try
='test -s conftest.$ac_objext'
26805 { (case "(($ac_try" in
26806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26807 *) ac_try_echo=$ac_try;;
26809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26810 (eval "$ac_try") 2>&5
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; }; then
26816 echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26819 ac_lo=`expr '(' $ac_mid ')' + 1`
26822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26827 See \`config.log
' for more details." >&5
26828 echo "$as_me: error: cannot compute sizeof (unsigned long)
26829 See \`config.log' for more details.
" >&2;}
26830 { (exit 77); exit 77; }; } ;;
26833 cat >conftest.$ac_ext <<_ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26839 $ac_includes_default
26840 typedef unsigned long ac__type_sizeof_;
26841 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26842 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26844 #include <stdlib.h>
26849 FILE *f = fopen ("conftest.val
", "w
");
26852 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26854 long int i = longval ();
26855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26857 fprintf (f, "%ld
\n", i);
26861 unsigned long int i = ulongval ();
26862 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26864 fprintf (f, "%lu
\n", i);
26866 return ferror (f) || fclose (f) != 0;
26872 rm -f conftest$ac_exeext
26873 if { (ac_try="$ac_link"
26874 case "(($ac_try" in
26875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876 *) ac_try_echo=$ac_try;;
26878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26879 (eval "$ac_link") 2>&5
26881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26883 { (case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_try") 2>&5
26890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26894 echo "$as_me: program exited with status
$ac_status" >&5
26895 echo "$as_me: failed program was
:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26898 ( exit $ac_status )
26899 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long
)
26900 See \
`config.log' for more details." >&5
26901 echo "$as_me: error: cannot compute sizeof (unsigned long)
26902 See \`config.log
' for more details." >&2;}
26903 { (exit 77); exit 77; }; }
26905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26909 ac_cv_sizeof_unsigned_long=0
26912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26913 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
26914 cat >>confdefs.h <<_ACEOF
26915 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26919 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
26920 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
26921 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 cat >conftest.$ac_ext <<_ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26930 $ac_includes_default
26931 typedef unsigned long long ac__type_new_;
26935 if ((ac__type_new_ *) 0)
26937 if (sizeof (ac__type_new_))
26943 rm -f conftest.$ac_objext
26944 if { (ac_try="$ac_compile"
26945 case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_compile") 2>conftest.er1
26952 grep -v '^
*+' conftest.er1 >conftest.err
26954 cat conftest.err >&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } &&
26957 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
26958 { (case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963 (eval "$ac_try") 2>&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; } &&
26967 { ac_try='test -s conftest.
$ac_objext'
26968 { (case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_try") 2>&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_cv_type_unsigned_long_long=yes
26979 echo "$as_me: failed program was:" >&5
26980 sed 's
/^
/|
/' conftest.$ac_ext >&5
26982 ac_cv_type_unsigned_long_long=no
26985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26987 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26988 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
26990 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
26991 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
26992 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
26993 echo $ECHO_N "(cached) $ECHO_C" >&6
26995 if test "$ac_cv_type_unsigned_long_long" = yes; then
26996 # The cast to long int works around a bug in the HP C Compiler
26997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26999 # This bug is HP SR number 8606223364.
27000 if test "$cross_compiling" = yes; then
27001 # Depending upon the size, compute the lo and hi bounds.
27002 cat >conftest.
$ac_ext <<_ACEOF
27005 cat confdefs.h
>>conftest.
$ac_ext
27006 cat >>conftest.
$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27008 $ac_includes_default
27009 typedef unsigned long long ac__type_sizeof_;
27013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27020 rm -f conftest.
$ac_objext
27021 if { (ac_try
="$ac_compile"
27022 case "(($ac_try" in
27023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_compile") 2>conftest.er1
27029 grep -v '^ *+' conftest.er1 >conftest.err
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
27034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27035 { (case "(($ac_try" in
27036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27037 *) ac_try_echo
=$ac_try;;
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_try") 2>&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; } &&
27044 { ac_try
='test -s conftest.$ac_objext'
27045 { (case "(($ac_try" in
27046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
27056 cat >conftest.$ac_ext <<_ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h. */
27062 $ac_includes_default
27063 typedef unsigned long long ac__type_sizeof_;
27067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27074 rm -f conftest.$ac_objext
27075 if { (ac_try="$ac_compile"
27076 case "(($ac_try" in
27077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27078 *) ac_try_echo
=$ac_try;;
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081 (eval "$ac_compile") 2>conftest.er1
27083 grep -v '^ *+' conftest.er1
>conftest.err
27085 cat conftest.err
>&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } &&
27088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27089 { (case "(($ac_try" in
27090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27091 *) ac_try_echo=$ac_try;;
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094 (eval "$ac_try") 2>&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; } &&
27098 { ac_try='test -s conftest.$ac_objext'
27099 { (case "(($ac_try" in
27100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27101 *) ac_try_echo
=$ac_try;;
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104 (eval "$ac_try") 2>&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108 ac_hi
=$ac_mid; break
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.
$ac_ext >&5
27113 ac_lo
=`expr $ac_mid + 1`
27114 if test $ac_lo -le $ac_mid; then
27118 ac_mid
=`expr 2 '*' $ac_mid + 1`
27121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27124 echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.
$ac_ext >&5
27127 cat >conftest.
$ac_ext <<_ACEOF
27130 cat confdefs.h
>>conftest.
$ac_ext
27131 cat >>conftest.
$ac_ext <<_ACEOF
27132 /* end confdefs.h. */
27133 $ac_includes_default
27134 typedef unsigned long long ac__type_sizeof_;
27138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27145 rm -f conftest.
$ac_objext
27146 if { (ac_try
="$ac_compile"
27147 case "(($ac_try" in
27148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_compile") 2>conftest.er1
27154 grep -v '^ *+' conftest.er1 >conftest.err
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } &&
27159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27160 { (case "(($ac_try" in
27161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27162 *) ac_try_echo
=$ac_try;;
27164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27165 (eval "$ac_try") 2>&5
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); }; } &&
27169 { ac_try
='test -s conftest.$ac_objext'
27170 { (case "(($ac_try" in
27171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27172 *) ac_try_echo=$ac_try;;
27174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27175 (eval "$ac_try") 2>&5
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); }; }; then
27181 cat >conftest.$ac_ext <<_ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27187 $ac_includes_default
27188 typedef unsigned long long ac__type_sizeof_;
27192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27199 rm -f conftest.$ac_objext
27200 if { (ac_try="$ac_compile"
27201 case "(($ac_try" in
27202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27203 *) ac_try_echo
=$ac_try;;
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206 (eval "$ac_compile") 2>conftest.er1
27208 grep -v '^ *+' conftest.er1
>conftest.err
27210 cat conftest.err
>&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); } &&
27213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27214 { (case "(($ac_try" in
27215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_try") 2>&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; } &&
27223 { ac_try='test -s conftest.$ac_objext'
27224 { (case "(($ac_try" in
27225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27226 *) ac_try_echo
=$ac_try;;
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_try") 2>&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
27233 ac_lo
=$ac_mid; break
27235 echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.
$ac_ext >&5
27238 ac_hi
=`expr '(' $ac_mid ')' - 1`
27239 if test $ac_mid -le $ac_hi; then
27243 ac_mid
=`expr 2 '*' $ac_mid`
27246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.
$ac_ext >&5
27255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27259 # Binary search between lo and hi bounds.
27260 while test "x$ac_lo" != "x$ac_hi"; do
27261 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27262 cat >conftest.
$ac_ext <<_ACEOF
27265 cat confdefs.h
>>conftest.
$ac_ext
27266 cat >>conftest.
$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 $ac_includes_default
27269 typedef unsigned long long ac__type_sizeof_;
27273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27280 rm -f conftest.
$ac_objext
27281 if { (ac_try
="$ac_compile"
27282 case "(($ac_try" in
27283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_compile") 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27297 *) ac_try_echo
=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_try") 2>&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; } &&
27304 { ac_try
='test -s conftest.$ac_objext'
27305 { (case "(($ac_try" in
27306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_lo=`expr '(' $ac_mid ')' + 1`
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27327 See \`config.log
' for more details." >&5
27328 echo "$as_me: error: cannot compute sizeof (unsigned long long)
27329 See \`config.log' for more details.
" >&2;}
27330 { (exit 77); exit 77; }; } ;;
27333 cat >conftest.$ac_ext <<_ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27339 $ac_includes_default
27340 typedef unsigned long long ac__type_sizeof_;
27341 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27342 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27344 #include <stdlib.h>
27349 FILE *f = fopen ("conftest.val
", "w
");
27352 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27354 long int i = longval ();
27355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27357 fprintf (f, "%ld
\n", i);
27361 unsigned long int i = ulongval ();
27362 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27364 fprintf (f, "%lu
\n", i);
27366 return ferror (f) || fclose (f) != 0;
27372 rm -f conftest$ac_exeext
27373 if { (ac_try="$ac_link"
27374 case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_link") 2>&5
27381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27383 { (case "(($ac_try" in
27384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385 *) ac_try_echo=$ac_try;;
27387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27388 (eval "$ac_try") 2>&5
27390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27391 (exit $ac_status); }; }; then
27392 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27394 echo "$as_me: program exited with status
$ac_status" >&5
27395 echo "$as_me: failed program was
:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27398 ( exit $ac_status )
27399 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long long
)
27400 See \
`config.log' for more details." >&5
27401 echo "$as_me: error: cannot compute sizeof (unsigned long long)
27402 See \`config.log
' for more details." >&2;}
27403 { (exit 77); exit 77; }; }
27405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27409 ac_cv_sizeof_unsigned_long_long=0
27412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27413 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
27414 cat >>confdefs.h <<_ACEOF
27415 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27419 { echo "$as_me:$LINENO: checking for int *" >&5
27420 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
27421 if test "${ac_cv_type_int_p+set}" = set; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27424 cat >conftest.$ac_ext <<_ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27430 $ac_includes_default
27431 typedef int * ac__type_new_;
27435 if ((ac__type_new_ *) 0)
27437 if (sizeof (ac__type_new_))
27443 rm -f conftest.$ac_objext
27444 if { (ac_try="$ac_compile"
27445 case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_compile") 2>conftest.er1
27452 grep -v '^
*+' conftest.er1 >conftest.err
27454 cat conftest.err >&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
27457 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
27458 { (case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_try") 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; } &&
27467 { ac_try='test -s conftest.
$ac_objext'
27468 { (case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_try") 2>&5
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; }; then
27477 ac_cv_type_int_p=yes
27479 echo "$as_me: failed program was:" >&5
27480 sed 's
/^
/|
/' conftest.$ac_ext >&5
27482 ac_cv_type_int_p=no
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
27488 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
27490 { echo "$as_me:$LINENO: checking size of int *" >&5
27491 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
27492 if test "${ac_cv_sizeof_int_p+set}" = set; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27495 if test "$ac_cv_type_int_p" = yes; then
27496 # The cast to long int works around a bug in the HP C Compiler
27497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27499 # This bug is HP SR number 8606223364.
27500 if test "$cross_compiling" = yes; then
27501 # Depending upon the size, compute the lo and hi bounds.
27502 cat >conftest.
$ac_ext <<_ACEOF
27505 cat confdefs.h
>>conftest.
$ac_ext
27506 cat >>conftest.
$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27508 $ac_includes_default
27509 typedef int * ac__type_sizeof_;
27513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27520 rm -f conftest.
$ac_objext
27521 if { (ac_try
="$ac_compile"
27522 case "(($ac_try" in
27523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27524 *) ac_try_echo=$ac_try;;
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527 (eval "$ac_compile") 2>conftest.er1
27529 grep -v '^ *+' conftest.er1 >conftest.err
27531 cat conftest.err >&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); } &&
27534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27535 { (case "(($ac_try" in
27536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27537 *) ac_try_echo
=$ac_try;;
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540 (eval "$ac_try") 2>&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); }; } &&
27544 { ac_try
='test -s conftest.$ac_objext'
27545 { (case "(($ac_try" in
27546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_try") 2>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27556 cat >conftest.$ac_ext <<_ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h. */
27562 $ac_includes_default
27563 typedef int * ac__type_sizeof_;
27567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27574 rm -f conftest.$ac_objext
27575 if { (ac_try="$ac_compile"
27576 case "(($ac_try" in
27577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27578 *) ac_try_echo
=$ac_try;;
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_compile") 2>conftest.er1
27583 grep -v '^ *+' conftest.er1
>conftest.err
27585 cat conftest.err
>&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
27588 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27589 { (case "(($ac_try" in
27590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27591 *) ac_try_echo=$ac_try;;
27593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27594 (eval "$ac_try") 2>&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); }; } &&
27598 { ac_try='test -s conftest.$ac_objext'
27599 { (case "(($ac_try" in
27600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27601 *) ac_try_echo
=$ac_try;;
27603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_try") 2>&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; }; then
27608 ac_hi
=$ac_mid; break
27610 echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.
$ac_ext >&5
27613 ac_lo
=`expr $ac_mid + 1`
27614 if test $ac_lo -le $ac_mid; then
27618 ac_mid
=`expr 2 '*' $ac_mid + 1`
27621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.
$ac_ext >&5
27627 cat >conftest.
$ac_ext <<_ACEOF
27630 cat confdefs.h
>>conftest.
$ac_ext
27631 cat >>conftest.
$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 $ac_includes_default
27634 typedef int * ac__type_sizeof_;
27638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27645 rm -f conftest.
$ac_objext
27646 if { (ac_try
="$ac_compile"
27647 case "(($ac_try" in
27648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_compile") 2>conftest.er1
27654 grep -v '^ *+' conftest.er1 >conftest.err
27656 cat conftest.err >&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } &&
27659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27660 { (case "(($ac_try" in
27661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27662 *) ac_try_echo
=$ac_try;;
27664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665 (eval "$ac_try") 2>&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); }; } &&
27669 { ac_try
='test -s conftest.$ac_objext'
27670 { (case "(($ac_try" in
27671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27672 *) ac_try_echo=$ac_try;;
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_try") 2>&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; }; then
27681 cat >conftest.$ac_ext <<_ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27687 $ac_includes_default
27688 typedef int * ac__type_sizeof_;
27692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27703 *) ac_try_echo
=$ac_try;;
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_compile") 2>conftest.er1
27708 grep -v '^ *+' conftest.er1
>conftest.err
27710 cat conftest.err
>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } &&
27713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27714 { (case "(($ac_try" in
27715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27716 *) ac_try_echo=$ac_try;;
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719 (eval "$ac_try") 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest.$ac_objext'
27724 { (case "(($ac_try" in
27725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27726 *) ac_try_echo
=$ac_try;;
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_try") 2>&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733 ac_lo
=$ac_mid; break
27735 echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.
$ac_ext >&5
27738 ac_hi
=`expr '(' $ac_mid ')' - 1`
27739 if test $ac_mid -le $ac_hi; then
27743 ac_mid
=`expr 2 '*' $ac_mid`
27746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.
$ac_ext >&5
27755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27759 # Binary search between lo and hi bounds.
27760 while test "x$ac_lo" != "x$ac_hi"; do
27761 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27762 cat >conftest.
$ac_ext <<_ACEOF
27765 cat confdefs.h
>>conftest.
$ac_ext
27766 cat >>conftest.
$ac_ext <<_ACEOF
27767 /* end confdefs.h. */
27768 $ac_includes_default
27769 typedef int * ac__type_sizeof_;
27773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27780 rm -f conftest.
$ac_objext
27781 if { (ac_try
="$ac_compile"
27782 case "(($ac_try" in
27783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27784 *) ac_try_echo=$ac_try;;
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787 (eval "$ac_compile") 2>conftest.er1
27789 grep -v '^ *+' conftest.er1 >conftest.err
27791 cat conftest.err >&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); } &&
27794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27795 { (case "(($ac_try" in
27796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27797 *) ac_try_echo
=$ac_try;;
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_try") 2>&5
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); }; } &&
27804 { ac_try
='test -s conftest.$ac_objext'
27805 { (case "(($ac_try" in
27806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810 (eval "$ac_try") 2>&5
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
27816 echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27819 ac_lo=`expr '(' $ac_mid ')' + 1`
27822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27825 ?*) ac_cv_sizeof_int_p=$ac_lo;;
27826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
27827 See \`config.log
' for more details." >&5
27828 echo "$as_me: error: cannot compute sizeof (int *)
27829 See \`config.log' for more details.
" >&2;}
27830 { (exit 77); exit 77; }; } ;;
27833 cat >conftest.$ac_ext <<_ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h. */
27839 $ac_includes_default
27840 typedef int * ac__type_sizeof_;
27841 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27842 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27844 #include <stdlib.h>
27849 FILE *f = fopen ("conftest.val
", "w
");
27852 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27854 long int i = longval ();
27855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27857 fprintf (f, "%ld
\n", i);
27861 unsigned long int i = ulongval ();
27862 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27864 fprintf (f, "%lu
\n", i);
27866 return ferror (f) || fclose (f) != 0;
27872 rm -f conftest$ac_exeext
27873 if { (ac_try="$ac_link"
27874 case "(($ac_try" in
27875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876 *) ac_try_echo=$ac_try;;
27878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27879 (eval "$ac_link") 2>&5
27881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 ac_cv_sizeof_int_p=`cat conftest.val`
27894 echo "$as_me: program exited with status
$ac_status" >&5
27895 echo "$as_me: failed program was
:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27898 ( exit $ac_status )
27899 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
*)
27900 See \
`config.log' for more details." >&5
27901 echo "$as_me: error: cannot compute sizeof (int *)
27902 See \`config.log
' for more details." >&2;}
27903 { (exit 77); exit 77; }; }
27905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27909 ac_cv_sizeof_int_p=0
27912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
27913 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
27914 cat >>confdefs.h <<_ACEOF
27915 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27920 for ac_func in getenv
27922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27936 #define $ac_func innocuous_$ac_func
27938 /* System header to define __stub macros and hopefully few prototypes,
27939 which can conflict with char $ac_func (); below.
27940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27941 <limits.h> exists even on freestanding compilers. */
27944 # include <limits.h>
27946 # include <assert.h>
27951 /* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
27958 /* The GNU C library defines this for functions which it implements
27959 to always fail with ENOSYS. Some functions are actually named
27960 something starting with __ and the normal name is an alias. */
27961 #if defined __stub_$ac_func || defined __stub___$ac_func
27968 return $ac_func ();
27973 rm -f conftest.$ac_objext conftest$ac_exeext
27974 if { (ac_try="$ac_link"
27975 case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_link") 2>conftest.er1
27982 grep -v '^
*+' conftest.er1 >conftest.err
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
27988 { (case "(($ac_try" in
27989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990 *) ac_try_echo=$ac_try;;
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_try") 2>&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; } &&
27997 { ac_try='test -s conftest
$ac_exeext'
27998 { (case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_try") 2>&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; }; then
28007 eval "$as_ac_var=yes"
28009 echo "$as_me: failed program was:" >&5
28010 sed 's
/^
/|
/' conftest.$ac_ext >&5
28012 eval "$as_ac_var=no"
28015 rm -f core conftest.err conftest.$ac_objext \
28016 conftest$ac_exeext conftest.$ac_ext
28018 ac_res=`eval echo '${'$as_ac_var'}'`
28019 { echo "$as_me:$LINENO: result: $ac_res" >&5
28020 echo "${ECHO_T}$ac_res" >&6; }
28021 if test `eval echo '${'$as_ac_var'}'` = yes; then
28022 cat >>confdefs.h <<_ACEOF
28023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28025 cat >>confdefs.h <<\_ACEOF
28026 #define BX_HAVE_GETENV 1
28033 for ac_func in setenv
28035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28039 echo $ECHO_N "(cached) $ECHO_C" >&6
28041 cat >conftest.$ac_ext <<_ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h. */
28047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28049 #define $ac_func innocuous_$ac_func
28051 /* System header to define __stub macros and hopefully few prototypes,
28052 which can conflict with char $ac_func (); below.
28053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28054 <limits.h> exists even on freestanding compilers. */
28057 # include <limits.h>
28059 # include <assert.h>
28064 /* Override any GCC internal prototype to avoid an error.
28065 Use char because int might match the return type of a GCC
28066 builtin and then its argument prototype would still apply. */
28071 /* The GNU C library defines this for functions which it implements
28072 to always fail with ENOSYS. Some functions are actually named
28073 something starting with __ and the normal name is an alias. */
28074 #if defined __stub_$ac_func || defined __stub___$ac_func
28081 return $ac_func ();
28086 rm -f conftest.$ac_objext conftest$ac_exeext
28087 if { (ac_try="$ac_link"
28088 case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_link") 2>conftest.er1
28095 grep -v '^
*+' conftest.er1 >conftest.err
28097 cat conftest.err >&5
28098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } &&
28100 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28101 { (case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106 (eval "$ac_try") 2>&5
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; } &&
28110 { ac_try='test -s conftest
$ac_exeext'
28111 { (case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116 (eval "$ac_try") 2>&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; }; then
28120 eval "$as_ac_var=yes"
28122 echo "$as_me: failed program was:" >&5
28123 sed 's
/^
/|
/' conftest.$ac_ext >&5
28125 eval "$as_ac_var=no"
28128 rm -f core conftest.err conftest.$ac_objext \
28129 conftest$ac_exeext conftest.$ac_ext
28131 ac_res=`eval echo '${'$as_ac_var'}'`
28132 { echo "$as_me:$LINENO: result: $ac_res" >&5
28133 echo "${ECHO_T}$ac_res" >&6; }
28134 if test `eval echo '${'$as_ac_var'}'` = yes; then
28135 cat >>confdefs.h <<_ACEOF
28136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28138 cat >>confdefs.h <<\_ACEOF
28139 #define BX_HAVE_SETENV 1
28146 for ac_func in select
28148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28162 #define $ac_func innocuous_$ac_func
28164 /* System header to define __stub macros and hopefully few prototypes,
28165 which can conflict with char $ac_func (); below.
28166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28167 <limits.h> exists even on freestanding compilers. */
28170 # include <limits.h>
28172 # include <assert.h>
28177 /* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
28184 /* The GNU C library defines this for functions which it implements
28185 to always fail with ENOSYS. Some functions are actually named
28186 something starting with __ and the normal name is an alias. */
28187 #if defined __stub_$ac_func || defined __stub___$ac_func
28194 return $ac_func ();
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_link") 2>conftest.er1
28208 grep -v '^
*+' conftest.er1 >conftest.err
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } &&
28213 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28214 { (case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_try") 2>&5
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; } &&
28223 { ac_try='test -s conftest
$ac_exeext'
28224 { (case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_try") 2>&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; }; then
28233 eval "$as_ac_var=yes"
28235 echo "$as_me: failed program was:" >&5
28236 sed 's
/^
/|
/' conftest.$ac_ext >&5
28238 eval "$as_ac_var=no"
28241 rm -f core conftest.err conftest.$ac_objext \
28242 conftest$ac_exeext conftest.$ac_ext
28244 ac_res=`eval echo '${'$as_ac_var'}'`
28245 { echo "$as_me:$LINENO: result: $ac_res" >&5
28246 echo "${ECHO_T}$ac_res" >&6; }
28247 if test `eval echo '${'$as_ac_var'}'` = yes; then
28248 cat >>confdefs.h <<_ACEOF
28249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28251 cat >>confdefs.h <<\_ACEOF
28252 #define BX_HAVE_SELECT 1
28259 for ac_func in snprintf
28261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28265 echo $ECHO_N "(cached) $ECHO_C" >&6
28267 cat >conftest.$ac_ext <<_ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28275 #define $ac_func innocuous_$ac_func
28277 /* System header to define __stub macros and hopefully few prototypes,
28278 which can conflict with char $ac_func (); below.
28279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28280 <limits.h> exists even on freestanding compilers. */
28283 # include <limits.h>
28285 # include <assert.h>
28290 /* Override any GCC internal prototype to avoid an error.
28291 Use char because int might match the return type of a GCC
28292 builtin and then its argument prototype would still apply. */
28297 /* The GNU C library defines this for functions which it implements
28298 to always fail with ENOSYS. Some functions are actually named
28299 something starting with __ and the normal name is an alias. */
28300 #if defined __stub_$ac_func || defined __stub___$ac_func
28307 return $ac_func ();
28312 rm -f conftest.$ac_objext conftest$ac_exeext
28313 if { (ac_try="$ac_link"
28314 case "(($ac_try" in
28315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316 *) ac_try_echo=$ac_try;;
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319 (eval "$ac_link") 2>conftest.er1
28321 grep -v '^
*+' conftest.er1 >conftest.err
28323 cat conftest.err >&5
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); } &&
28326 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28327 { (case "(($ac_try" in
28328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329 *) ac_try_echo=$ac_try;;
28331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332 (eval "$ac_try") 2>&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; } &&
28336 { ac_try='test -s conftest
$ac_exeext'
28337 { (case "(($ac_try" in
28338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339 *) ac_try_echo=$ac_try;;
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342 (eval "$ac_try") 2>&5
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; }; then
28346 eval "$as_ac_var=yes"
28348 echo "$as_me: failed program was:" >&5
28349 sed 's
/^
/|
/' conftest.$ac_ext >&5
28351 eval "$as_ac_var=no"
28354 rm -f core conftest.err conftest.$ac_objext \
28355 conftest$ac_exeext conftest.$ac_ext
28357 ac_res=`eval echo '${'$as_ac_var'}'`
28358 { echo "$as_me:$LINENO: result: $ac_res" >&5
28359 echo "${ECHO_T}$ac_res" >&6; }
28360 if test `eval echo '${'$as_ac_var'}'` = yes; then
28361 cat >>confdefs.h <<_ACEOF
28362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28364 cat >>confdefs.h <<\_ACEOF
28365 #define BX_HAVE_SNPRINTF 1
28372 for ac_func in vsnprintf
28374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28380 cat >conftest.$ac_ext <<_ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h. */
28386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28388 #define $ac_func innocuous_$ac_func
28390 /* System header to define __stub macros and hopefully few prototypes,
28391 which can conflict with char $ac_func (); below.
28392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28393 <limits.h> exists even on freestanding compilers. */
28396 # include <limits.h>
28398 # include <assert.h>
28403 /* Override any GCC internal prototype to avoid an error.
28404 Use char because int might match the return type of a GCC
28405 builtin and then its argument prototype would still apply. */
28410 /* The GNU C library defines this for functions which it implements
28411 to always fail with ENOSYS. Some functions are actually named
28412 something starting with __ and the normal name is an alias. */
28413 #if defined __stub_$ac_func || defined __stub___$ac_func
28420 return $ac_func ();
28425 rm -f conftest.$ac_objext conftest$ac_exeext
28426 if { (ac_try="$ac_link"
28427 case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_link") 2>conftest.er1
28434 grep -v '^
*+' conftest.er1 >conftest.err
28436 cat conftest.err >&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } &&
28439 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28440 { (case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_try") 2>&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; } &&
28449 { ac_try='test -s conftest
$ac_exeext'
28450 { (case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_try") 2>&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459 eval "$as_ac_var=yes"
28461 echo "$as_me: failed program was:" >&5
28462 sed 's
/^
/|
/' conftest.$ac_ext >&5
28464 eval "$as_ac_var=no"
28467 rm -f core conftest.err conftest.$ac_objext \
28468 conftest$ac_exeext conftest.$ac_ext
28470 ac_res=`eval echo '${'$as_ac_var'}'`
28471 { echo "$as_me:$LINENO: result: $ac_res" >&5
28472 echo "${ECHO_T}$ac_res" >&6; }
28473 if test `eval echo '${'$as_ac_var'}'` = yes; then
28474 cat >>confdefs.h <<_ACEOF
28475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28477 cat >>confdefs.h <<\_ACEOF
28478 #define BX_HAVE_VSNPRINTF 1
28485 for ac_func in strtoull
28487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28491 echo $ECHO_N "(cached) $ECHO_C" >&6
28493 cat >conftest.$ac_ext <<_ACEOF
28496 cat confdefs.h >>conftest.$ac_ext
28497 cat >>conftest.$ac_ext <<_ACEOF
28498 /* end confdefs.h. */
28499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28501 #define $ac_func innocuous_$ac_func
28503 /* System header to define __stub macros and hopefully few prototypes,
28504 which can conflict with char $ac_func (); below.
28505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28506 <limits.h> exists even on freestanding compilers. */
28509 # include <limits.h>
28511 # include <assert.h>
28516 /* Override any GCC internal prototype to avoid an error.
28517 Use char because int might match the return type of a GCC
28518 builtin and then its argument prototype would still apply. */
28523 /* The GNU C library defines this for functions which it implements
28524 to always fail with ENOSYS. Some functions are actually named
28525 something starting with __ and the normal name is an alias. */
28526 #if defined __stub_$ac_func || defined __stub___$ac_func
28533 return $ac_func ();
28538 rm -f conftest.$ac_objext conftest$ac_exeext
28539 if { (ac_try="$ac_link"
28540 case "(($ac_try" in
28541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542 *) ac_try_echo=$ac_try;;
28544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545 (eval "$ac_link") 2>conftest.er1
28547 grep -v '^
*+' conftest.er1 >conftest.err
28549 cat conftest.err >&5
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } &&
28552 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28553 { (case "(($ac_try" in
28554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555 *) ac_try_echo=$ac_try;;
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558 (eval "$ac_try") 2>&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); }; } &&
28562 { ac_try='test -s conftest
$ac_exeext'
28563 { (case "(($ac_try" in
28564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565 *) ac_try_echo=$ac_try;;
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568 (eval "$ac_try") 2>&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; }; then
28572 eval "$as_ac_var=yes"
28574 echo "$as_me: failed program was:" >&5
28575 sed 's
/^
/|
/' conftest.$ac_ext >&5
28577 eval "$as_ac_var=no"
28580 rm -f core conftest.err conftest.$ac_objext \
28581 conftest$ac_exeext conftest.$ac_ext
28583 ac_res=`eval echo '${'$as_ac_var'}'`
28584 { echo "$as_me:$LINENO: result: $ac_res" >&5
28585 echo "${ECHO_T}$ac_res" >&6; }
28586 if test `eval echo '${'$as_ac_var'}'` = yes; then
28587 cat >>confdefs.h <<_ACEOF
28588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28590 cat >>confdefs.h <<\_ACEOF
28591 #define BX_HAVE_STRTOULL 1
28598 for ac_func in strtouq
28600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28606 cat >conftest.$ac_ext <<_ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h. */
28612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28614 #define $ac_func innocuous_$ac_func
28616 /* System header to define __stub macros and hopefully few prototypes,
28617 which can conflict with char $ac_func (); below.
28618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28619 <limits.h> exists even on freestanding compilers. */
28622 # include <limits.h>
28624 # include <assert.h>
28629 /* Override any GCC internal prototype to avoid an error.
28630 Use char because int might match the return type of a GCC
28631 builtin and then its argument prototype would still apply. */
28636 /* The GNU C library defines this for functions which it implements
28637 to always fail with ENOSYS. Some functions are actually named
28638 something starting with __ and the normal name is an alias. */
28639 #if defined __stub_$ac_func || defined __stub___$ac_func
28646 return $ac_func ();
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (ac_try="$ac_link"
28653 case "(($ac_try" in
28654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28655 *) ac_try_echo=$ac_try;;
28657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28658 (eval "$ac_link") 2>conftest.er1
28660 grep -v '^
*+' conftest.er1 >conftest.err
28662 cat conftest.err >&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28666 { (case "(($ac_try" in
28667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668 *) ac_try_echo=$ac_try;;
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671 (eval "$ac_try") 2>&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; } &&
28675 { ac_try='test -s conftest
$ac_exeext'
28676 { (case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_try") 2>&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 eval "$as_ac_var=yes"
28687 echo "$as_me: failed program was:" >&5
28688 sed 's
/^
/|
/' conftest.$ac_ext >&5
28690 eval "$as_ac_var=no"
28693 rm -f core conftest.err conftest.$ac_objext \
28694 conftest$ac_exeext conftest.$ac_ext
28696 ac_res=`eval echo '${'$as_ac_var'}'`
28697 { echo "$as_me:$LINENO: result: $ac_res" >&5
28698 echo "${ECHO_T}$ac_res" >&6; }
28699 if test `eval echo '${'$as_ac_var'}'` = yes; then
28700 cat >>confdefs.h <<_ACEOF
28701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28703 cat >>confdefs.h <<\_ACEOF
28704 #define BX_HAVE_STRTOUQ 1
28711 for ac_func in strdup
28713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28717 echo $ECHO_N "(cached) $ECHO_C" >&6
28719 cat >conftest.$ac_ext <<_ACEOF
28722 cat confdefs.h >>conftest.$ac_ext
28723 cat >>conftest.$ac_ext <<_ACEOF
28724 /* end confdefs.h. */
28725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28727 #define $ac_func innocuous_$ac_func
28729 /* System header to define __stub macros and hopefully few prototypes,
28730 which can conflict with char $ac_func (); below.
28731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28732 <limits.h> exists even on freestanding compilers. */
28735 # include <limits.h>
28737 # include <assert.h>
28742 /* Override any GCC internal prototype to avoid an error.
28743 Use char because int might match the return type of a GCC
28744 builtin and then its argument prototype would still apply. */
28749 /* The GNU C library defines this for functions which it implements
28750 to always fail with ENOSYS. Some functions are actually named
28751 something starting with __ and the normal name is an alias. */
28752 #if defined __stub_$ac_func || defined __stub___$ac_func
28759 return $ac_func ();
28764 rm -f conftest.$ac_objext conftest$ac_exeext
28765 if { (ac_try="$ac_link"
28766 case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_link") 2>conftest.er1
28773 grep -v '^
*+' conftest.er1 >conftest.err
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } &&
28778 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28779 { (case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_try") 2>&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; } &&
28788 { ac_try='test -s conftest
$ac_exeext'
28789 { (case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_try") 2>&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; }; then
28798 eval "$as_ac_var=yes"
28800 echo "$as_me: failed program was:" >&5
28801 sed 's
/^
/|
/' conftest.$ac_ext >&5
28803 eval "$as_ac_var=no"
28806 rm -f core conftest.err conftest.$ac_objext \
28807 conftest$ac_exeext conftest.$ac_ext
28809 ac_res=`eval echo '${'$as_ac_var'}'`
28810 { echo "$as_me:$LINENO: result: $ac_res" >&5
28811 echo "${ECHO_T}$ac_res" >&6; }
28812 if test `eval echo '${'$as_ac_var'}'` = yes; then
28813 cat >>confdefs.h <<_ACEOF
28814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28816 cat >>confdefs.h <<\_ACEOF
28817 #define BX_HAVE_STRDUP 1
28824 for ac_func in strrev
28826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28832 cat >conftest.$ac_ext <<_ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h. */
28838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28840 #define $ac_func innocuous_$ac_func
28842 /* System header to define __stub macros and hopefully few prototypes,
28843 which can conflict with char $ac_func (); below.
28844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28845 <limits.h> exists even on freestanding compilers. */
28848 # include <limits.h>
28850 # include <assert.h>
28855 /* Override any GCC internal prototype to avoid an error.
28856 Use char because int might match the return type of a GCC
28857 builtin and then its argument prototype would still apply. */
28862 /* The GNU C library defines this for functions which it implements
28863 to always fail with ENOSYS. Some functions are actually named
28864 something starting with __ and the normal name is an alias. */
28865 #if defined __stub_$ac_func || defined __stub___$ac_func
28872 return $ac_func ();
28877 rm -f conftest.$ac_objext conftest$ac_exeext
28878 if { (ac_try="$ac_link"
28879 case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_link") 2>conftest.er1
28886 grep -v '^
*+' conftest.er1 >conftest.err
28888 cat conftest.err >&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
28891 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
28892 { (case "(($ac_try" in
28893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894 *) ac_try_echo=$ac_try;;
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897 (eval "$ac_try") 2>&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest
$ac_exeext'
28902 { (case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_try") 2>&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 eval "$as_ac_var=yes"
28913 echo "$as_me: failed program was:" >&5
28914 sed 's
/^
/|
/' conftest.$ac_ext >&5
28916 eval "$as_ac_var=no"
28919 rm -f core conftest.err conftest.$ac_objext \
28920 conftest$ac_exeext conftest.$ac_ext
28922 ac_res=`eval echo '${'$as_ac_var'}'`
28923 { echo "$as_me:$LINENO: result: $ac_res" >&5
28924 echo "${ECHO_T}$ac_res" >&6; }
28925 if test `eval echo '${'$as_ac_var'}'` = yes; then
28926 cat >>confdefs.h <<_ACEOF
28927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28929 cat >>confdefs.h <<\_ACEOF
28930 #define BX_HAVE_STRREV 1
28937 for ac_func in sleep
28939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28943 echo $ECHO_N "(cached) $ECHO_C" >&6
28945 cat >conftest.$ac_ext <<_ACEOF
28948 cat confdefs.h >>conftest.$ac_ext
28949 cat >>conftest.$ac_ext <<_ACEOF
28950 /* end confdefs.h. */
28951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28953 #define $ac_func innocuous_$ac_func
28955 /* System header to define __stub macros and hopefully few prototypes,
28956 which can conflict with char $ac_func (); below.
28957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28958 <limits.h> exists even on freestanding compilers. */
28961 # include <limits.h>
28963 # include <assert.h>
28968 /* Override any GCC internal prototype to avoid an error.
28969 Use char because int might match the return type of a GCC
28970 builtin and then its argument prototype would still apply. */
28975 /* The GNU C library defines this for functions which it implements
28976 to always fail with ENOSYS. Some functions are actually named
28977 something starting with __ and the normal name is an alias. */
28978 #if defined __stub_$ac_func || defined __stub___$ac_func
28985 return $ac_func ();
28990 rm -f conftest.$ac_objext conftest$ac_exeext
28991 if { (ac_try="$ac_link"
28992 case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997 (eval "$ac_link") 2>conftest.er1
28999 grep -v '^
*+' conftest.er1 >conftest.err
29001 cat conftest.err >&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); } &&
29004 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29005 { (case "(($ac_try" in
29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007 *) ac_try_echo=$ac_try;;
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010 (eval "$ac_try") 2>&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; } &&
29014 { ac_try='test -s conftest
$ac_exeext'
29015 { (case "(($ac_try" in
29016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29017 *) ac_try_echo=$ac_try;;
29019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29020 (eval "$ac_try") 2>&5
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; }; then
29024 eval "$as_ac_var=yes"
29026 echo "$as_me: failed program was:" >&5
29027 sed 's
/^
/|
/' conftest.$ac_ext >&5
29029 eval "$as_ac_var=no"
29032 rm -f core conftest.err conftest.$ac_objext \
29033 conftest$ac_exeext conftest.$ac_ext
29035 ac_res=`eval echo '${'$as_ac_var'}'`
29036 { echo "$as_me:$LINENO: result: $ac_res" >&5
29037 echo "${ECHO_T}$ac_res" >&6; }
29038 if test `eval echo '${'$as_ac_var'}'` = yes; then
29039 cat >>confdefs.h <<_ACEOF
29040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29042 cat >>confdefs.h <<\_ACEOF
29043 #define BX_HAVE_SLEEP 1
29050 for ac_func in usleep
29052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29058 cat >conftest.$ac_ext <<_ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29066 #define $ac_func innocuous_$ac_func
29068 /* System header to define __stub macros and hopefully few prototypes,
29069 which can conflict with char $ac_func (); below.
29070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29071 <limits.h> exists even on freestanding compilers. */
29074 # include <limits.h>
29076 # include <assert.h>
29081 /* Override any GCC internal prototype to avoid an error.
29082 Use char because int might match the return type of a GCC
29083 builtin and then its argument prototype would still apply. */
29088 /* The GNU C library defines this for functions which it implements
29089 to always fail with ENOSYS. Some functions are actually named
29090 something starting with __ and the normal name is an alias. */
29091 #if defined __stub_$ac_func || defined __stub___$ac_func
29098 return $ac_func ();
29103 rm -f conftest.$ac_objext conftest$ac_exeext
29104 if { (ac_try="$ac_link"
29105 case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_link") 2>conftest.er1
29112 grep -v '^
*+' conftest.er1 >conftest.err
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } &&
29117 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29118 { (case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_try") 2>&5
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; } &&
29127 { ac_try='test -s conftest
$ac_exeext'
29128 { (case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_try") 2>&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 eval "$as_ac_var=yes"
29139 echo "$as_me: failed program was:" >&5
29140 sed 's
/^
/|
/' conftest.$ac_ext >&5
29142 eval "$as_ac_var=no"
29145 rm -f core conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
29148 ac_res=`eval echo '${'$as_ac_var'}'`
29149 { echo "$as_me:$LINENO: result: $ac_res" >&5
29150 echo "${ECHO_T}$ac_res" >&6; }
29151 if test `eval echo '${'$as_ac_var'}'` = yes; then
29152 cat >>confdefs.h <<_ACEOF
29153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29155 cat >>confdefs.h <<\_ACEOF
29156 #define BX_HAVE_USLEEP 1
29163 for ac_func in nanosleep
29165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29171 cat >conftest.$ac_ext <<_ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29179 #define $ac_func innocuous_$ac_func
29181 /* System header to define __stub macros and hopefully few prototypes,
29182 which can conflict with char $ac_func (); below.
29183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29184 <limits.h> exists even on freestanding compilers. */
29187 # include <limits.h>
29189 # include <assert.h>
29194 /* Override any GCC internal prototype to avoid an error.
29195 Use char because int might match the return type of a GCC
29196 builtin and then its argument prototype would still apply. */
29201 /* The GNU C library defines this for functions which it implements
29202 to always fail with ENOSYS. Some functions are actually named
29203 something starting with __ and the normal name is an alias. */
29204 #if defined __stub_$ac_func || defined __stub___$ac_func
29211 return $ac_func ();
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29225 grep -v '^
*+' conftest.er1 >conftest.err
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
29230 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29231 { (case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest
$ac_exeext'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 eval "$as_ac_var=yes"
29252 echo "$as_me: failed program was:" >&5
29253 sed 's
/^
/|
/' conftest.$ac_ext >&5
29255 eval "$as_ac_var=no"
29258 rm -f core conftest.err conftest.$ac_objext \
29259 conftest$ac_exeext conftest.$ac_ext
29261 ac_res=`eval echo '${'$as_ac_var'}'`
29262 { echo "$as_me:$LINENO: result: $ac_res" >&5
29263 echo "${ECHO_T}$ac_res" >&6; }
29264 if test `eval echo '${'$as_ac_var'}'` = yes; then
29265 cat >>confdefs.h <<_ACEOF
29266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29268 cat >>confdefs.h <<\_ACEOF
29269 #define BX_HAVE_NANOSLEEP 1
29276 for ac_func in abort
29278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29284 cat >conftest.$ac_ext <<_ACEOF
29287 cat confdefs.h >>conftest.$ac_ext
29288 cat >>conftest.$ac_ext <<_ACEOF
29289 /* end confdefs.h. */
29290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29292 #define $ac_func innocuous_$ac_func
29294 /* System header to define __stub macros and hopefully few prototypes,
29295 which can conflict with char $ac_func (); below.
29296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29297 <limits.h> exists even on freestanding compilers. */
29300 # include <limits.h>
29302 # include <assert.h>
29307 /* Override any GCC internal prototype to avoid an error.
29308 Use char because int might match the return type of a GCC
29309 builtin and then its argument prototype would still apply. */
29314 /* The GNU C library defines this for functions which it implements
29315 to always fail with ENOSYS. Some functions are actually named
29316 something starting with __ and the normal name is an alias. */
29317 #if defined __stub_$ac_func || defined __stub___$ac_func
29324 return $ac_func ();
29329 rm -f conftest.$ac_objext conftest$ac_exeext
29330 if { (ac_try="$ac_link"
29331 case "(($ac_try" in
29332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29333 *) ac_try_echo=$ac_try;;
29335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29336 (eval "$ac_link") 2>conftest.er1
29338 grep -v '^
*+' conftest.er1 >conftest.err
29340 cat conftest.err >&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); } &&
29343 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29344 { (case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_try") 2>&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; } &&
29353 { ac_try='test -s conftest
$ac_exeext'
29354 { (case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359 (eval "$ac_try") 2>&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; }; then
29363 eval "$as_ac_var=yes"
29365 echo "$as_me: failed program was:" >&5
29366 sed 's
/^
/|
/' conftest.$ac_ext >&5
29368 eval "$as_ac_var=no"
29371 rm -f core conftest.err conftest.$ac_objext \
29372 conftest$ac_exeext conftest.$ac_ext
29374 ac_res=`eval echo '${'$as_ac_var'}'`
29375 { echo "$as_me:$LINENO: result: $ac_res" >&5
29376 echo "${ECHO_T}$ac_res" >&6; }
29377 if test `eval echo '${'$as_ac_var'}'` = yes; then
29378 cat >>confdefs.h <<_ACEOF
29379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29381 cat >>confdefs.h <<\_ACEOF
29382 #define BX_HAVE_ABORT 1
29389 for ac_func in gettimeofday
29391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29395 echo $ECHO_N "(cached) $ECHO_C" >&6
29397 cat >conftest.$ac_ext <<_ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h. */
29403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29405 #define $ac_func innocuous_$ac_func
29407 /* System header to define __stub macros and hopefully few prototypes,
29408 which can conflict with char $ac_func (); below.
29409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29410 <limits.h> exists even on freestanding compilers. */
29413 # include <limits.h>
29415 # include <assert.h>
29420 /* Override any GCC internal prototype to avoid an error.
29421 Use char because int might match the return type of a GCC
29422 builtin and then its argument prototype would still apply. */
29427 /* The GNU C library defines this for functions which it implements
29428 to always fail with ENOSYS. Some functions are actually named
29429 something starting with __ and the normal name is an alias. */
29430 #if defined __stub_$ac_func || defined __stub___$ac_func
29437 return $ac_func ();
29442 rm -f conftest.$ac_objext conftest$ac_exeext
29443 if { (ac_try="$ac_link"
29444 case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_link") 2>conftest.er1
29451 grep -v '^
*+' conftest.er1 >conftest.err
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
29456 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29457 { (case "(($ac_try" in
29458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459 *) ac_try_echo=$ac_try;;
29461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462 (eval "$ac_try") 2>&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest
$ac_exeext'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; }; then
29476 eval "$as_ac_var=yes"
29478 echo "$as_me: failed program was:" >&5
29479 sed 's
/^
/|
/' conftest.$ac_ext >&5
29481 eval "$as_ac_var=no"
29484 rm -f core conftest.err conftest.$ac_objext \
29485 conftest$ac_exeext conftest.$ac_ext
29487 ac_res=`eval echo '${'$as_ac_var'}'`
29488 { echo "$as_me:$LINENO: result: $ac_res" >&5
29489 echo "${ECHO_T}$ac_res" >&6; }
29490 if test `eval echo '${'$as_ac_var'}'` = yes; then
29491 cat >>confdefs.h <<_ACEOF
29492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29494 cat >>confdefs.h <<\_ACEOF
29495 #define BX_HAVE_GETTIMEOFDAY 1
29501 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29502 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29503 if test "${ac_cv_type_socklen_t+set}" = set; then
29504 echo $ECHO_N "(cached) $ECHO_C" >&6
29506 cat >conftest.$ac_ext <<_ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29512 #include <sys/types.h>
29513 #include <sys/socket.h>
29515 typedef socklen_t ac__type_new_;
29519 if ((ac__type_new_ *) 0)
29521 if (sizeof (ac__type_new_))
29527 rm -f conftest.$ac_objext
29528 if { (ac_try="$ac_compile"
29529 case "(($ac_try" in
29530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531 *) ac_try_echo=$ac_try;;
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534 (eval "$ac_compile") 2>conftest.er1
29536 grep -v '^
*+' conftest.er1 >conftest.err
29538 cat conftest.err >&5
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); } &&
29541 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29542 { (case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547 (eval "$ac_try") 2>&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; } &&
29551 { ac_try='test -s conftest.
$ac_objext'
29552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; }; then
29561 ac_cv_type_socklen_t=yes
29563 echo "$as_me: failed program was:" >&5
29564 sed 's
/^
/|
/' conftest.$ac_ext >&5
29566 ac_cv_type_socklen_t=no
29569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29571 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29572 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29573 if test $ac_cv_type_socklen_t = yes; then
29574 cat >>confdefs.h <<\_ACEOF
29575 #define BX_HAVE_SOCKLEN_T 1
29580 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
29581 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
29582 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 cat >conftest.$ac_ext <<_ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29591 #include <sys/socket.h>
29592 #include <netinet/in.h>
29597 static struct sockaddr_in ac_aggr;
29598 if (ac_aggr.sin_len)
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_compile") 2>conftest.er1
29613 grep -v '^
*+' conftest.er1 >conftest.err
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } &&
29618 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29619 { (case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_try") 2>&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; } &&
29628 { ac_try='test -s conftest.
$ac_objext'
29629 { (case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_try") 2>&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 ac_cv_member_struct_sockaddr_in_sin_len=yes
29640 echo "$as_me: failed program was:" >&5
29641 sed 's
/^
/|
/' conftest.$ac_ext >&5
29643 cat >conftest.$ac_ext <<_ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h. */
29649 #include <sys/socket.h>
29650 #include <netinet/in.h>
29655 static struct sockaddr_in ac_aggr;
29656 if (sizeof ac_aggr.sin_len)
29662 rm -f conftest.$ac_objext
29663 if { (ac_try="$ac_compile"
29664 case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_compile") 2>conftest.er1
29671 grep -v '^
*+' conftest.er1 >conftest.err
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); } &&
29676 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29677 { (case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_try") 2>&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; } &&
29686 { ac_try='test -s conftest.
$ac_objext'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; }; then
29696 ac_cv_member_struct_sockaddr_in_sin_len=yes
29698 echo "$as_me: failed program was:" >&5
29699 sed 's
/^
/|
/' conftest.$ac_ext >&5
29701 ac_cv_member_struct_sockaddr_in_sin_len=no
29704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29709 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
29710 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
29711 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
29712 cat >>confdefs.h <<\_ACEOF
29713 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
29719 for ac_func in mkstemp
29721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 cat >conftest.$ac_ext <<_ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h. */
29733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29735 #define $ac_func innocuous_$ac_func
29737 /* System header to define __stub macros and hopefully few prototypes,
29738 which can conflict with char $ac_func (); below.
29739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740 <limits.h> exists even on freestanding compilers. */
29743 # include <limits.h>
29745 # include <assert.h>
29750 /* Override any GCC internal prototype to avoid an error.
29751 Use char because int might match the return type of a GCC
29752 builtin and then its argument prototype would still apply. */
29757 /* The GNU C library defines this for functions which it implements
29758 to always fail with ENOSYS. Some functions are actually named
29759 something starting with __ and the normal name is an alias. */
29760 #if defined __stub_$ac_func || defined __stub___$ac_func
29767 return $ac_func ();
29772 rm -f conftest.$ac_objext conftest$ac_exeext
29773 if { (ac_try="$ac_link"
29774 case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_link") 2>conftest.er1
29781 grep -v '^
*+' conftest.er1 >conftest.err
29783 cat conftest.err >&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } &&
29786 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29787 { (case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_try") 2>&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest
$ac_exeext'
29797 { (case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_try") 2>&5
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; }; then
29806 eval "$as_ac_var=yes"
29808 echo "$as_me: failed program was:" >&5
29809 sed 's
/^
/|
/' conftest.$ac_ext >&5
29811 eval "$as_ac_var=no"
29814 rm -f core conftest.err conftest.$ac_objext \
29815 conftest$ac_exeext conftest.$ac_ext
29817 ac_res=`eval echo '${'$as_ac_var'}'`
29818 { echo "$as_me:$LINENO: result: $ac_res" >&5
29819 echo "${ECHO_T}$ac_res" >&6; }
29820 if test `eval echo '${'$as_ac_var'}'` = yes; then
29821 cat >>confdefs.h <<_ACEOF
29822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29824 cat >>confdefs.h <<\_ACEOF
29825 #define BX_HAVE_MKSTEMP 1
29831 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29832 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
29833 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
29834 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29837 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
29838 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
29840 # Is the header compilable?
29841 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
29842 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
29843 cat >conftest.$ac_ext <<_ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h. */
29849 $ac_includes_default
29850 #include <sys/mman.h>
29852 rm -f conftest.$ac_objext
29853 if { (ac_try="$ac_compile"
29854 case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_compile") 2>conftest.er1
29861 grep -v '^
*+' conftest.er1 >conftest.err
29863 cat conftest.err >&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } &&
29866 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
29867 { (case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_try") 2>&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; } &&
29876 { ac_try='test -s conftest.
$ac_objext'
29877 { (case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882 (eval "$ac_try") 2>&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; }; then
29886 ac_header_compiler=yes
29888 echo "$as_me: failed program was:" >&5
29889 sed 's
/^
/|
/' conftest.$ac_ext >&5
29891 ac_header_compiler=no
29894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29896 echo "${ECHO_T}$ac_header_compiler" >&6; }
29898 # Is the header present?
29899 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
29900 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
29901 cat >conftest.$ac_ext <<_ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h. */
29907 #include <sys/mman.h>
29909 if { (ac_try="$ac_cpp conftest.$ac_ext"
29910 case "(($ac_try" in
29911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912 *) ac_try_echo=$ac_try;;
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29917 grep -v '^
*+' conftest.er1 >conftest.err
29919 cat conftest.err >&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); } >/dev/null; then
29922 if test -s conftest.err; then
29923 ac_cpp_err=$ac_c_preproc_warn_flag
29924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29931 if test -z "$ac_cpp_err"; then
29932 ac_header_preproc=yes
29934 echo "$as_me: failed program was:" >&5
29935 sed 's
/^
/|
/' conftest.$ac_ext >&5
29937 ac_header_preproc=no
29940 rm -f conftest.err conftest.$ac_ext
29941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29942 echo "${ECHO_T}$ac_header_preproc" >&6; }
29944 # So? What about this header?
29945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29947 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
29948 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29949 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result
" >&5
29950 echo "$as_me: WARNING
: sys
/mman.h
: proceeding with the compiler
's result" >&2;}
29951 ac_header_preproc=yes
29954 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
29955 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
29956 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
29957 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
29958 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
29959 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
29960 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
29961 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result
" >&5
29963 echo "$as_me: WARNING
: sys
/mman.h
: proceeding with the preprocessor
's result" >&2;}
29964 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
29965 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
29969 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
29970 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
29971 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29972 echo $ECHO_N "(cached) $ECHO_C" >&6
29974 ac_cv_header_sys_mman_h=$ac_header_preproc
29976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
29977 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
29980 if test $ac_cv_header_sys_mman_h = yes; then
29981 cat >>confdefs.h <<\_ACEOF
29982 #define BX_HAVE_SYS_MMAN_H 1
29989 for ac_func in timelocal
29991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29995 echo $ECHO_N "(cached) $ECHO_C" >&6
29997 cat >conftest.$ac_ext <<_ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h. */
30003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30005 #define $ac_func innocuous_$ac_func
30007 /* System header to define __stub macros and hopefully few prototypes,
30008 which can conflict with char $ac_func (); below.
30009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30010 <limits.h> exists even on freestanding compilers. */
30013 # include <limits.h>
30015 # include <assert.h>
30020 /* Override any GCC internal prototype to avoid an error.
30021 Use char because int might match the return type of a GCC
30022 builtin and then its argument prototype would still apply. */
30027 /* The GNU C library defines this for functions which it implements
30028 to always fail with ENOSYS. Some functions are actually named
30029 something starting with __ and the normal name is an alias. */
30030 #if defined __stub_$ac_func || defined __stub___$ac_func
30037 return $ac_func ();
30042 rm -f conftest.$ac_objext conftest$ac_exeext
30043 if { (ac_try="$ac_link"
30044 case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_link") 2>conftest.er1
30051 grep -v '^
*+' conftest.er1 >conftest.err
30053 cat conftest.err >&5
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); } &&
30056 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30057 { (case "(($ac_try" in
30058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30059 *) ac_try_echo=$ac_try;;
30061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30062 (eval "$ac_try") 2>&5
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; } &&
30066 { ac_try='test -s conftest
$ac_exeext'
30067 { (case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_try") 2>&5
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }; then
30076 eval "$as_ac_var=yes"
30078 echo "$as_me: failed program was:" >&5
30079 sed 's
/^
/|
/' conftest.$ac_ext >&5
30081 eval "$as_ac_var=no"
30084 rm -f core conftest.err conftest.$ac_objext \
30085 conftest$ac_exeext conftest.$ac_ext
30087 ac_res=`eval echo '${'$as_ac_var'}'`
30088 { echo "$as_me:$LINENO: result: $ac_res" >&5
30089 echo "${ECHO_T}$ac_res" >&6; }
30090 if test `eval echo '${'$as_ac_var'}'` = yes; then
30091 cat >>confdefs.h <<_ACEOF
30092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30094 cat >>confdefs.h <<\_ACEOF
30095 #define BX_HAVE_TIMELOCAL 1
30102 for ac_func in gmtime
30104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30108 echo $ECHO_N "(cached) $ECHO_C" >&6
30110 cat >conftest.$ac_ext <<_ACEOF
30113 cat confdefs.h >>conftest.$ac_ext
30114 cat >>conftest.$ac_ext <<_ACEOF
30115 /* end confdefs.h. */
30116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30118 #define $ac_func innocuous_$ac_func
30120 /* System header to define __stub macros and hopefully few prototypes,
30121 which can conflict with char $ac_func (); below.
30122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30123 <limits.h> exists even on freestanding compilers. */
30126 # include <limits.h>
30128 # include <assert.h>
30133 /* Override any GCC internal prototype to avoid an error.
30134 Use char because int might match the return type of a GCC
30135 builtin and then its argument prototype would still apply. */
30140 /* The GNU C library defines this for functions which it implements
30141 to always fail with ENOSYS. Some functions are actually named
30142 something starting with __ and the normal name is an alias. */
30143 #if defined __stub_$ac_func || defined __stub___$ac_func
30150 return $ac_func ();
30155 rm -f conftest.$ac_objext conftest$ac_exeext
30156 if { (ac_try="$ac_link"
30157 case "(($ac_try" in
30158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159 *) ac_try_echo=$ac_try;;
30161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162 (eval "$ac_link") 2>conftest.er1
30164 grep -v '^
*+' conftest.er1 >conftest.err
30166 cat conftest.err >&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); } &&
30169 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30170 { (case "(($ac_try" in
30171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30172 *) ac_try_echo=$ac_try;;
30174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30175 (eval "$ac_try") 2>&5
30177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178 (exit $ac_status); }; } &&
30179 { ac_try='test -s conftest
$ac_exeext'
30180 { (case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_try") 2>&5
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
30189 eval "$as_ac_var=yes"
30191 echo "$as_me: failed program was:" >&5
30192 sed 's
/^
/|
/' conftest.$ac_ext >&5
30194 eval "$as_ac_var=no"
30197 rm -f core conftest.err conftest.$ac_objext \
30198 conftest$ac_exeext conftest.$ac_ext
30200 ac_res=`eval echo '${'$as_ac_var'}'`
30201 { echo "$as_me:$LINENO: result: $ac_res" >&5
30202 echo "${ECHO_T}$ac_res" >&6; }
30203 if test `eval echo '${'$as_ac_var'}'` = yes; then
30204 cat >>confdefs.h <<_ACEOF
30205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30207 cat >>confdefs.h <<\_ACEOF
30208 #define BX_HAVE_GMTIME 1
30215 for ac_func in mktime
30217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30223 cat >conftest.$ac_ext <<_ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h. */
30229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30231 #define $ac_func innocuous_$ac_func
30233 /* System header to define __stub macros and hopefully few prototypes,
30234 which can conflict with char $ac_func (); below.
30235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30236 <limits.h> exists even on freestanding compilers. */
30239 # include <limits.h>
30241 # include <assert.h>
30246 /* Override any GCC internal prototype to avoid an error.
30247 Use char because int might match the return type of a GCC
30248 builtin and then its argument prototype would still apply. */
30253 /* The GNU C library defines this for functions which it implements
30254 to always fail with ENOSYS. Some functions are actually named
30255 something starting with __ and the normal name is an alias. */
30256 #if defined __stub_$ac_func || defined __stub___$ac_func
30263 return $ac_func ();
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (ac_try="$ac_link"
30270 case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_link") 2>conftest.er1
30277 grep -v '^
*+' conftest.er1 >conftest.err
30279 cat conftest.err >&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } &&
30282 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30283 { (case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_try") 2>&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; } &&
30292 { ac_try='test -s conftest
$ac_exeext'
30293 { (case "(($ac_try" in
30294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295 *) ac_try_echo=$ac_try;;
30297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298 (eval "$ac_try") 2>&5
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30302 eval "$as_ac_var=yes"
30304 echo "$as_me: failed program was:" >&5
30305 sed 's
/^
/|
/' conftest.$ac_ext >&5
30307 eval "$as_ac_var=no"
30310 rm -f core conftest.err conftest.$ac_objext \
30311 conftest$ac_exeext conftest.$ac_ext
30313 ac_res=`eval echo '${'$as_ac_var'}'`
30314 { echo "$as_me:$LINENO: result: $ac_res" >&5
30315 echo "${ECHO_T}$ac_res" >&6; }
30316 if test `eval echo '${'$as_ac_var'}'` = yes; then
30317 cat >>confdefs.h <<_ACEOF
30318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30320 cat >>confdefs.h <<\_ACEOF
30321 #define BX_HAVE_MKTIME 1
30328 # Check whether --enable-largefile was given.
30329 if test "${enable_largefile+set}" = set; then
30330 enableval=$enable_largefile;
30333 if test "$enable_largefile" != no; then
30336 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
30337 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
30338 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30342 cat >conftest.$ac_ext <<_ACEOF
30345 cat confdefs.h >>conftest.$ac_ext
30346 cat >>conftest.$ac_ext <<_ACEOF
30347 /* end confdefs.h. */
30348 #define _FILE_OFFSET_BITS 64
30349 #include <sys/types.h>
30354 unsigned int field: sizeof(off_t) == 8;
30361 rm -f conftest.$ac_objext
30362 if { (ac_try="$ac_compile"
30363 case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_compile") 2>conftest.er1
30370 grep -v '^
*+' conftest.er1 >conftest.err
30372 cat conftest.err >&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); } &&
30375 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30376 { (case "(($ac_try" in
30377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30378 *) ac_try_echo=$ac_try;;
30380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30381 (eval "$ac_try") 2>&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; } &&
30385 { ac_try='test -s conftest.
$ac_objext'
30386 { (case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_try") 2>&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 ac_cv_sys_file_offset_bits=64
30397 echo "$as_me: failed program was:" >&5
30398 sed 's
/^
/|
/' conftest.$ac_ext >&5
30400 ac_cv_sys_file_offset_bits=no
30403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30407 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30408 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
30410 if test "$ac_cv_sys_file_offset_bits" != no; then
30412 cat >>confdefs.h <<_ACEOF
30413 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30418 if test "x$wx_largefile" != "xyes"; then
30420 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
30421 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
30422 if test "${ac_cv_sys_large_files+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 cat >conftest.$ac_ext <<_ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h. */
30432 #define _LARGE_FILES 1
30433 #include <sys/types.h>
30438 unsigned int field: sizeof(off_t) == 8;
30445 rm -f conftest.$ac_objext
30446 if { (ac_try="$ac_compile"
30447 case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_compile") 2>conftest.er1
30454 grep -v '^
*+' conftest.er1 >conftest.err
30456 cat conftest.err >&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); } &&
30459 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30460 { (case "(($ac_try" in
30461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462 *) ac_try_echo=$ac_try;;
30464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465 (eval "$ac_try") 2>&5
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; } &&
30469 { ac_try='test -s conftest.
$ac_objext'
30470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; }; then
30479 ac_cv_sys_large_files=1
30481 echo "$as_me: failed program was:" >&5
30482 sed 's
/^
/|
/' conftest.$ac_ext >&5
30484 ac_cv_sys_large_files=no
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30491 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30492 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
30494 if test "$ac_cv_sys_large_files" != no; then
30496 cat >>confdefs.h <<_ACEOF
30497 #define _LARGE_FILES $ac_cv_sys_large_files
30504 { echo "$as_me:$LINENO: checking if large file support is available" >&5
30505 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
30506 if test "x$wx_largefile" = "xyes"; then
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_LARGEFILE_SUPPORT 1
30512 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
30513 echo "${ECHO_T}$wx_largefile" >&6; }
30517 if test "x$wx_largefile" = "xyes"; then
30518 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
30519 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
30521 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
30523 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
30524 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
30525 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
30533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30539 cat >conftest.$ac_ext <<_ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h. */
30545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30547 #define $ac_func innocuous_$ac_func
30549 /* System header to define __stub macros and hopefully few prototypes,
30550 which can conflict with char $ac_func (); below.
30551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30552 <limits.h> exists even on freestanding compilers. */
30555 # include <limits.h>
30557 # include <assert.h>
30562 /* Override any GCC internal prototype to avoid an error.
30563 Use char because int might match the return type of a GCC
30564 builtin and then its argument prototype would still apply. */
30569 /* The GNU C library defines this for functions which it implements
30570 to always fail with ENOSYS. Some functions are actually named
30571 something starting with __ and the normal name is an alias. */
30572 #if defined __stub_$ac_func || defined __stub___$ac_func
30579 return $ac_func ();
30584 rm -f conftest.$ac_objext conftest$ac_exeext
30585 if { (ac_try="$ac_link"
30586 case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_link") 2>conftest.er1
30593 grep -v '^
*+' conftest.er1 >conftest.err
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } &&
30598 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30599 { (case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_try") 2>&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; } &&
30608 { ac_try='test -s conftest
$ac_exeext'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30618 eval "$as_ac_var=yes"
30620 echo "$as_me: failed program was:" >&5
30621 sed 's
/^
/|
/' conftest.$ac_ext >&5
30623 eval "$as_ac_var=no"
30626 rm -f core conftest.err conftest.$ac_objext \
30627 conftest$ac_exeext conftest.$ac_ext
30629 ac_res=`eval echo '${'$as_ac_var'}'`
30630 { echo "$as_me:$LINENO: result: $ac_res" >&5
30631 echo "${ECHO_T}$ac_res" >&6; }
30632 if test `eval echo '${'$as_ac_var'}'` = yes; then
30633 cat >>confdefs.h <<_ACEOF
30634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30641 for ac_func in floor
30643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30649 cat >conftest.$ac_ext <<_ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h. */
30655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30657 #define $ac_func innocuous_$ac_func
30659 /* System header to define __stub macros and hopefully few prototypes,
30660 which can conflict with char $ac_func (); below.
30661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30662 <limits.h> exists even on freestanding compilers. */
30665 # include <limits.h>
30667 # include <assert.h>
30672 /* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30679 /* The GNU C library defines this for functions which it implements
30680 to always fail with ENOSYS. Some functions are actually named
30681 something starting with __ and the normal name is an alias. */
30682 #if defined __stub_$ac_func || defined __stub___$ac_func
30689 return $ac_func ();
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (ac_try="$ac_link"
30696 case "(($ac_try" in
30697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 *) ac_try_echo=$ac_try;;
30700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 (eval "$ac_link") 2>conftest.er1
30703 grep -v '^
*+' conftest.er1 >conftest.err
30705 cat conftest.err >&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); } &&
30708 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30709 { (case "(($ac_try" in
30710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711 *) ac_try_echo=$ac_try;;
30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714 (eval "$ac_try") 2>&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; } &&
30718 { ac_try='test -s conftest
$ac_exeext'
30719 { (case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_try") 2>&5
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728 eval "$as_ac_var=yes"
30730 echo "$as_me: failed program was:" >&5
30731 sed 's
/^
/|
/' conftest.$ac_ext >&5
30733 eval "$as_ac_var=no"
30736 rm -f core conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
30739 ac_res=`eval echo '${'$as_ac_var'}'`
30740 { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30742 if test `eval echo '${'$as_ac_var'}'` = yes; then
30743 cat >>confdefs.h <<_ACEOF
30744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30750 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
30751 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
30752 if test "$have_cos" = 1 -a "$have_floor" = 1; then
30753 { echo "$as_me:$LINENO: result: yes" >&5
30754 echo "${ECHO_T}yes" >&6; }
30756 { echo "$as_me:$LINENO: result: no" >&5
30757 echo "${ECHO_T}no" >&6; }
30759 # use different functions to bypass configure caching
30765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30769 echo $ECHO_N "(cached) $ECHO_C" >&6
30771 cat >conftest.$ac_ext <<_ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h. */
30777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30779 #define $ac_func innocuous_$ac_func
30781 /* System header to define __stub macros and hopefully few prototypes,
30782 which can conflict with char $ac_func (); below.
30783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30784 <limits.h> exists even on freestanding compilers. */
30787 # include <limits.h>
30789 # include <assert.h>
30794 /* Override any GCC internal prototype to avoid an error.
30795 Use char because int might match the return type of a GCC
30796 builtin and then its argument prototype would still apply. */
30801 /* The GNU C library defines this for functions which it implements
30802 to always fail with ENOSYS. Some functions are actually named
30803 something starting with __ and the normal name is an alias. */
30804 #if defined __stub_$ac_func || defined __stub___$ac_func
30811 return $ac_func ();
30816 rm -f conftest.$ac_objext conftest$ac_exeext
30817 if { (ac_try="$ac_link"
30818 case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_link") 2>conftest.er1
30825 grep -v '^
*+' conftest.er1 >conftest.err
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } &&
30830 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30831 { (case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_try") 2>&5
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; } &&
30840 { ac_try='test -s conftest
$ac_exeext'
30841 { (case "(($ac_try" in
30842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843 *) ac_try_echo=$ac_try;;
30845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846 (eval "$ac_try") 2>&5
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); }; }; then
30850 eval "$as_ac_var=yes"
30852 echo "$as_me: failed program was:" >&5
30853 sed 's
/^
/|
/' conftest.$ac_ext >&5
30855 eval "$as_ac_var=no"
30858 rm -f core conftest.err conftest.$ac_objext \
30859 conftest$ac_exeext conftest.$ac_ext
30861 ac_res=`eval echo '${'$as_ac_var'}'`
30862 { echo "$as_me:$LINENO: result: $ac_res" >&5
30863 echo "${ECHO_T}$ac_res" >&6; }
30864 if test `eval echo '${'$as_ac_var'}'` = yes; then
30865 cat >>confdefs.h <<_ACEOF
30866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30873 for ac_func in ceil
30875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30879 echo $ECHO_N "(cached) $ECHO_C" >&6
30881 cat >conftest.$ac_ext <<_ACEOF
30884 cat confdefs.h >>conftest.$ac_ext
30885 cat >>conftest.$ac_ext <<_ACEOF
30886 /* end confdefs.h. */
30887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30889 #define $ac_func innocuous_$ac_func
30891 /* System header to define __stub macros and hopefully few prototypes,
30892 which can conflict with char $ac_func (); below.
30893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30894 <limits.h> exists even on freestanding compilers. */
30897 # include <limits.h>
30899 # include <assert.h>
30904 /* Override any GCC internal prototype to avoid an error.
30905 Use char because int might match the return type of a GCC
30906 builtin and then its argument prototype would still apply. */
30911 /* The GNU C library defines this for functions which it implements
30912 to always fail with ENOSYS. Some functions are actually named
30913 something starting with __ and the normal name is an alias. */
30914 #if defined __stub_$ac_func || defined __stub___$ac_func
30921 return $ac_func ();
30926 rm -f conftest.$ac_objext conftest$ac_exeext
30927 if { (ac_try="$ac_link"
30928 case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_link") 2>conftest.er1
30935 grep -v '^
*+' conftest.er1 >conftest.err
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } &&
30940 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest
$ac_exeext'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 eval "$as_ac_var=yes"
30962 echo "$as_me: failed program was:" >&5
30963 sed 's
/^
/|
/' conftest.$ac_ext >&5
30965 eval "$as_ac_var=no"
30968 rm -f core conftest.err conftest.$ac_objext \
30969 conftest$ac_exeext conftest.$ac_ext
30971 ac_res=`eval echo '${'$as_ac_var'}'`
30972 { echo "$as_me:$LINENO: result: $ac_res" >&5
30973 echo "${ECHO_T}$ac_res" >&6; }
30974 if test `eval echo '${'$as_ac_var'}'` = yes; then
30975 cat >>confdefs.h <<_ACEOF
30976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30982 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
30983 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
30984 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
30985 { echo "$as_me:$LINENO: result: yes" >&5
30986 echo "${ECHO_T}yes" >&6; }
30988 { echo "$as_me:$LINENO: result: no" >&5
30989 echo "${ECHO_T}no" >&6; }
30990 # not sure we should warn the user, crash, etc.
30991 # expect link failure
30995 { echo "$as_me:$LINENO: checking for struct timeval" >&5
30996 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
30997 cat >conftest.$ac_ext <<_ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31003 #include <sys/time.h>
31012 rm -f conftest.$ac_objext
31013 if { (ac_try="$ac_compile"
31014 case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_compile") 2>conftest.er1
31021 grep -v '^
*+' conftest.er1 >conftest.err
31023 cat conftest.err >&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } &&
31026 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
31027 { (case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_try") 2>&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; } &&
31036 { ac_try='test -s conftest.
$ac_objext'
31037 { (case "(($ac_try" in
31038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039 *) ac_try_echo=$ac_try;;
31041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042 (eval "$ac_try") 2>&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); }; }; then
31047 { echo "$as_me:$LINENO: result: yes" >&5
31048 echo "${ECHO_T}yes" >&6; }
31049 cat >>confdefs.h <<\_ACEOF
31050 #define BX_HAVE_STRUCT_TIMEVAL 1
31055 echo "$as_me: failed program was:" >&5
31056 sed 's
/^
/|
/' conftest.$ac_ext >&5
31058 { echo "$as_me:$LINENO: result: no" >&5
31059 echo "${ECHO_T}no" >&6; }
31062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31064 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
31065 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
31066 cat >conftest.$ac_ext <<_ACEOF
31069 cat confdefs.h >>conftest.$ac_ext
31070 cat >>conftest.$ac_ext <<_ACEOF
31071 /* end confdefs.h. */
31076 typedef struct { } junk;
31081 rm -f conftest.$ac_objext
31082 if { (ac_try="$ac_compile"
31083 case "(($ac_try" in
31084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085 *) ac_try_echo=$ac_try;;
31087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088 (eval "$ac_compile") 2>conftest.er1
31090 grep -v '^
*+' conftest.er1 >conftest.err
31092 cat conftest.err >&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
31095 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
31096 { (case "(($ac_try" in
31097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31098 *) ac_try_echo=$ac_try;;
31100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31101 (eval "$ac_try") 2>&5
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; } &&
31105 { ac_try='test -s conftest.
$ac_objext'
31106 { (case "(($ac_try" in
31107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31108 *) ac_try_echo=$ac_try;;
31110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31111 (eval "$ac_try") 2>&5
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); }; }; then
31115 { echo "$as_me:$LINENO: result: yes" >&5
31116 echo "${ECHO_T}yes" >&6; }
31118 echo "$as_me: failed program was:" >&5
31119 sed 's
/^
/|
/' conftest.$ac_ext >&5
31122 cat >>confdefs.h <<\_ACEOF
31123 #define BX_NO_EMPTY_STRUCTS 1
31126 { echo "$as_me:$LINENO: result: no" >&5
31127 echo "${ECHO_T}no" >&6; }
31131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31133 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
31134 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
31135 cat >conftest.$ac_ext <<_ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h. */
31145 typedef struct { } __attribute__ ((packed)) junk;
31150 rm -f conftest.$ac_objext
31151 if { (ac_try="$ac_compile"
31152 case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_compile") 2>conftest.er1
31159 grep -v '^
*+' conftest.er1 >conftest.err
31161 cat conftest.err >&5
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); } &&
31164 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
31165 { (case "(($ac_try" in
31166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167 *) ac_try_echo=$ac_try;;
31169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31170 (eval "$ac_try") 2>&5
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); }; } &&
31174 { ac_try='test -s conftest.
$ac_objext'
31175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 { echo "$as_me:$LINENO: result: yes" >&5
31185 echo "${ECHO_T}yes" >&6; }
31187 echo "$as_me: failed program was:" >&5
31188 sed 's
/^
/|
/' conftest.$ac_ext >&5
31191 { echo "$as_me:$LINENO: result: no" >&5
31192 echo "${ECHO_T}no" >&6; }
31193 cat >>confdefs.h <<\_ACEOF
31194 #define BX_NO_ATTRIBUTES 1
31200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31204 ac_cpp='$CXXCPP $CPPFLAGS'
31205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
31206 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
31207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31209 { echo "$as_me:$LINENO: checking for hash_map" >&5
31210 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
31211 cat >conftest.$ac_ext <<_ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h. */
31217 #include <hash_map>
31226 rm -f conftest.$ac_objext
31227 if { (ac_try="$ac_compile"
31228 case "(($ac_try" in
31229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230 *) ac_try_echo=$ac_try;;
31232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31233 (eval "$ac_compile") 2>conftest.er1
31235 grep -v '^
*+' conftest.er1 >conftest.err
31237 cat conftest.err >&5
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); } &&
31240 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
31241 { (case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_try") 2>&5
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; } &&
31250 { ac_try='test -s conftest.
$ac_objext'
31251 { (case "(($ac_try" in
31252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253 *) ac_try_echo=$ac_try;;
31255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256 (eval "$ac_try") 2>&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); }; }; then
31261 { echo "$as_me:$LINENO: result: yes" >&5
31262 echo "${ECHO_T}yes" >&6; }
31263 cat >>confdefs.h <<\_ACEOF
31264 #define BX_HAVE_HASH_MAP 1
31269 echo "$as_me: failed program was:" >&5
31270 sed 's
/^
/|
/' conftest.$ac_ext >&5
31272 { echo "$as_me:$LINENO: result: no" >&5
31273 echo "${ECHO_T}no" >&6; }
31276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31277 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
31278 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
31279 cat >conftest.$ac_ext <<_ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 #include <hash_map.h>
31294 rm -f conftest.$ac_objext
31295 if { (ac_try="$ac_compile"
31296 case "(($ac_try" in
31297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298 *) ac_try_echo=$ac_try;;
31300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301 (eval "$ac_compile") 2>conftest.er1
31303 grep -v '^
*+' conftest.er1 >conftest.err
31305 cat conftest.err >&5
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } &&
31308 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
31309 { (case "(($ac_try" in
31310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31311 *) ac_try_echo=$ac_try;;
31313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31314 (eval "$ac_try") 2>&5
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; } &&
31318 { ac_try='test -s conftest.
$ac_objext'
31319 { (case "(($ac_try" in
31320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321 *) ac_try_echo=$ac_try;;
31323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324 (eval "$ac_try") 2>&5
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); }; }; then
31329 { echo "$as_me:$LINENO: result: yes" >&5
31330 echo "${ECHO_T}yes" >&6; }
31331 cat >>confdefs.h <<\_ACEOF
31332 #define BX_HAVE_HASH_MAP_H 1
31337 echo "$as_me: failed program was:" >&5
31338 sed 's
/^
/|
/' conftest.$ac_ext >&5
31340 { echo "$as_me:$LINENO: result: no" >&5
31341 echo "${ECHO_T}no" >&6; }
31344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31345 { echo "$as_me:$LINENO: checking for set" >&5
31346 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
31347 cat >conftest.$ac_ext <<_ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h. */
31362 rm -f conftest.$ac_objext
31363 if { (ac_try="$ac_compile"
31364 case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_compile") 2>conftest.er1
31371 grep -v '^
*+' conftest.er1 >conftest.err
31373 cat conftest.err >&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } &&
31376 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
31377 { (case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; } &&
31386 { ac_try='test -s conftest.
$ac_objext'
31387 { (case "(($ac_try" in
31388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389 *) ac_try_echo=$ac_try;;
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392 (eval "$ac_try") 2>&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31397 { echo "$as_me:$LINENO: result: yes" >&5
31398 echo "${ECHO_T}yes" >&6; }
31399 cat >>confdefs.h <<\_ACEOF
31400 #define BX_HAVE_SET 1
31405 echo "$as_me: failed program was:" >&5
31406 sed 's
/^
/|
/' conftest.$ac_ext >&5
31408 { echo "$as_me:$LINENO: result: no" >&5
31409 echo "${ECHO_T}no" >&6; }
31412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31413 { echo "$as_me:$LINENO: checking for set.h" >&5
31414 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
31415 cat >conftest.$ac_ext <<_ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h. */
31430 rm -f conftest.$ac_objext
31431 if { (ac_try="$ac_compile"
31432 case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31439 grep -v '^
*+' conftest.er1 >conftest.err
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } &&
31444 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
31445 { (case "(($ac_try" in
31446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_try") 2>&5
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; } &&
31454 { ac_try='test -s conftest.
$ac_objext'
31455 { (case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_try") 2>&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31465 { echo "$as_me:$LINENO: result: yes" >&5
31466 echo "${ECHO_T}yes" >&6; }
31467 cat >>confdefs.h <<\_ACEOF
31468 #define BX_HAVE_SET_H 1
31473 echo "$as_me: failed program was:" >&5
31474 sed 's
/^
/|
/' conftest.$ac_ext >&5
31476 { echo "$as_me:$LINENO: result: no" >&5
31477 echo "${ECHO_T}no" >&6; }
31480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31482 ac_cpp='$CPP $CPPFLAGS'
31483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
31484 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
31485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31488 if test "$with_all_libs" = yes; then
31489 if test "$cross_configure" = 1; then
31490 { echo "$as_me:$LINENO: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&5
31491 echo "$as_me: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&2;}
31493 if test "$with_beos" != yes; then
31495 if test "${ac_cv_header_app_Application_h+set}" = set; then
31496 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
31497 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
31498 if test "${ac_cv_header_app_Application_h+set}" = set; then
31499 echo $ECHO_N "(cached) $ECHO_C" >&6
31501 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
31502 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
31504 # Is the header compilable?
31505 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
31506 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
31507 cat >conftest.$ac_ext <<_ACEOF
31510 cat confdefs.h >>conftest.$ac_ext
31511 cat >>conftest.$ac_ext <<_ACEOF
31512 /* end confdefs.h. */
31513 $ac_includes_default
31514 #include <app/Application.h>
31516 rm -f conftest.$ac_objext
31517 if { (ac_try="$ac_compile"
31518 case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_compile") 2>conftest.er1
31525 grep -v '^
*+' conftest.er1 >conftest.err
31527 cat conftest.err >&5
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); } &&
31530 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
31531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest.
$ac_objext'
31541 { (case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546 (eval "$ac_try") 2>&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
31550 ac_header_compiler=yes
31552 echo "$as_me: failed program was:" >&5
31553 sed 's
/^
/|
/' conftest.$ac_ext >&5
31555 ac_header_compiler=no
31558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31560 echo "${ECHO_T}$ac_header_compiler" >&6; }
31562 # Is the header present?
31563 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
31564 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
31565 cat >conftest.$ac_ext <<_ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h. */
31571 #include <app/Application.h>
31573 if { (ac_try="$ac_cpp conftest.$ac_ext"
31574 case "(($ac_try" in
31575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576 *) ac_try_echo=$ac_try;;
31578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31581 grep -v '^
*+' conftest.er1 >conftest.err
31583 cat conftest.err >&5
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); } >/dev/null; then
31586 if test -s conftest.err; then
31587 ac_cpp_err=$ac_c_preproc_warn_flag
31588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31595 if test -z "$ac_cpp_err"; then
31596 ac_header_preproc=yes
31598 echo "$as_me: failed program was:" >&5
31599 sed 's
/^
/|
/' conftest.$ac_ext >&5
31601 ac_header_preproc=no
31604 rm -f conftest.err conftest.$ac_ext
31605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31606 echo "${ECHO_T}$ac_header_preproc" >&6; }
31608 # So? What about this header?
31609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31611 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
31612 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31613 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result
" >&5
31614 echo "$as_me: WARNING
: app
/Application.h
: proceeding with the compiler
's result" >&2;}
31615 ac_header_preproc=yes
31618 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
31619 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
31621 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
31623 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
31624 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
31625 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
31626 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result
" >&5
31627 echo "$as_me: WARNING
: app
/Application.h
: proceeding with the preprocessor
's result" >&2;}
31628 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
31629 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
31633 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
31634 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
31635 if test "${ac_cv_header_app_Application_h+set}" = set; then
31636 echo $ECHO_N "(cached) $ECHO_C" >&6
31638 ac_cv_header_app_Application_h=$ac_header_preproc
31640 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
31641 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
31644 if test $ac_cv_header_app_Application_h = yes; then
31651 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31652 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
31653 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
31654 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31655 echo $ECHO_N "(cached) $ECHO_C" >&6
31657 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
31658 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
31660 # Is the header compilable?
31661 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
31662 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
31663 cat >conftest.$ac_ext <<_ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h. */
31669 $ac_includes_default
31670 #include <interface/Window.h>
31672 rm -f conftest.$ac_objext
31673 if { (ac_try="$ac_compile"
31674 case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_compile") 2>conftest.er1
31681 grep -v '^
*+' conftest.er1 >conftest.err
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } &&
31686 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
31687 { (case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_try") 2>&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; } &&
31696 { ac_try='test -s conftest.
$ac_objext'
31697 { (case "(($ac_try" in
31698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699 *) ac_try_echo=$ac_try;;
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702 (eval "$ac_try") 2>&5
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
31706 ac_header_compiler=yes
31708 echo "$as_me: failed program was:" >&5
31709 sed 's
/^
/|
/' conftest.$ac_ext >&5
31711 ac_header_compiler=no
31714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31716 echo "${ECHO_T}$ac_header_compiler" >&6; }
31718 # Is the header present?
31719 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
31720 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
31721 cat >conftest.$ac_ext <<_ACEOF
31724 cat confdefs.h >>conftest.$ac_ext
31725 cat >>conftest.$ac_ext <<_ACEOF
31726 /* end confdefs.h. */
31727 #include <interface/Window.h>
31729 if { (ac_try="$ac_cpp conftest.$ac_ext"
31730 case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31737 grep -v '^
*+' conftest.er1 >conftest.err
31739 cat conftest.err >&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } >/dev/null; then
31742 if test -s conftest.err; then
31743 ac_cpp_err=$ac_c_preproc_warn_flag
31744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31751 if test -z "$ac_cpp_err"; then
31752 ac_header_preproc=yes
31754 echo "$as_me: failed program was:" >&5
31755 sed 's
/^
/|
/' conftest.$ac_ext >&5
31757 ac_header_preproc=no
31760 rm -f conftest.err conftest.$ac_ext
31761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31762 echo "${ECHO_T}$ac_header_preproc" >&6; }
31764 # So? What about this header?
31765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31767 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
31768 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result
" >&5
31770 echo "$as_me: WARNING
: interface
/Window.h
: proceeding with the compiler
's result" >&2;}
31771 ac_header_preproc=yes
31774 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
31775 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
31776 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
31777 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
31779 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
31781 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
31782 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result
" >&5
31783 echo "$as_me: WARNING
: interface
/Window.h
: proceeding with the preprocessor
's result" >&2;}
31784 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
31785 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
31789 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
31790 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
31791 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31794 ac_cv_header_interface_Window_h=$ac_header_preproc
31796 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
31797 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
31800 if test $ac_cv_header_interface_Window_h = yes; then
31807 if test "${ac_cv_header_interface_View_h+set}" = set; then
31808 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
31809 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
31810 if test "${ac_cv_header_interface_View_h+set}" = set; then
31811 echo $ECHO_N "(cached) $ECHO_C" >&6
31813 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
31814 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
31816 # Is the header compilable?
31817 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
31818 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
31819 cat >conftest.$ac_ext <<_ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h. */
31825 $ac_includes_default
31826 #include <interface/View.h>
31828 rm -f conftest.$ac_objext
31829 if { (ac_try="$ac_compile"
31830 case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_compile") 2>conftest.er1
31837 grep -v '^
*+' conftest.er1 >conftest.err
31839 cat conftest.err >&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } &&
31842 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
31843 { (case "(($ac_try" in
31844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845 *) ac_try_echo=$ac_try;;
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848 (eval "$ac_try") 2>&5
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); }; } &&
31852 { ac_try='test -s conftest.
$ac_objext'
31853 { (case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_try") 2>&5
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); }; }; then
31862 ac_header_compiler=yes
31864 echo "$as_me: failed program was:" >&5
31865 sed 's
/^
/|
/' conftest.$ac_ext >&5
31867 ac_header_compiler=no
31870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31872 echo "${ECHO_T}$ac_header_compiler" >&6; }
31874 # Is the header present?
31875 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
31876 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
31877 cat >conftest.$ac_ext <<_ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h. */
31883 #include <interface/View.h>
31885 if { (ac_try="$ac_cpp conftest.$ac_ext"
31886 case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31893 grep -v '^
*+' conftest.er1 >conftest.err
31895 cat conftest.err >&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); } >/dev/null; then
31898 if test -s conftest.err; then
31899 ac_cpp_err=$ac_c_preproc_warn_flag
31900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31907 if test -z "$ac_cpp_err"; then
31908 ac_header_preproc=yes
31910 echo "$as_me: failed program was:" >&5
31911 sed 's
/^
/|
/' conftest.$ac_ext >&5
31913 ac_header_preproc=no
31916 rm -f conftest.err conftest.$ac_ext
31917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31918 echo "${ECHO_T}$ac_header_preproc" >&6; }
31920 # So? What about this header?
31921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31923 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
31924 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31925 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result
" >&5
31926 echo "$as_me: WARNING
: interface
/View.h
: proceeding with the compiler
's result" >&2;}
31927 ac_header_preproc=yes
31930 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
31931 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
31932 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
31933 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
31934 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
31935 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
31936 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
31937 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
31938 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result
" >&5
31939 echo "$as_me: WARNING
: interface
/View.h
: proceeding with the preprocessor
's result" >&2;}
31940 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
31941 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
31945 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
31946 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
31947 if test "${ac_cv_header_interface_View_h+set}" = set; then
31948 echo $ECHO_N "(cached) $ECHO_C" >&6
31950 ac_cv_header_interface_View_h=$ac_header_preproc
31952 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
31953 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
31956 if test $ac_cv_header_interface_View_h = yes; then
31963 if test $can_compile_beos = 1; then
31968 if test "$with_amigaos" != yes; then
31969 can_compile_amigaos=1
31970 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
31971 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
31972 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
31973 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
31974 echo $ECHO_N "(cached) $ECHO_C" >&6
31976 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
31977 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
31979 # Is the header compilable?
31980 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
31981 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
31982 cat >conftest.$ac_ext <<_ACEOF
31985 cat confdefs.h >>conftest.$ac_ext
31986 cat >>conftest.$ac_ext <<_ACEOF
31987 /* end confdefs.h. */
31988 $ac_includes_default
31989 #include <proto/intuition.h>
31991 rm -f conftest.$ac_objext
31992 if { (ac_try="$ac_compile"
31993 case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_compile") 2>conftest.er1
32000 grep -v '^
*+' conftest.er1 >conftest.err
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } &&
32005 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
32006 { (case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_try") 2>&5
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; } &&
32015 { ac_try='test -s conftest.
$ac_objext'
32016 { (case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_try") 2>&5
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; }; then
32025 ac_header_compiler=yes
32027 echo "$as_me: failed program was:" >&5
32028 sed 's
/^
/|
/' conftest.$ac_ext >&5
32030 ac_header_compiler=no
32033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32035 echo "${ECHO_T}$ac_header_compiler" >&6; }
32037 # Is the header present?
32038 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
32039 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
32040 cat >conftest.$ac_ext <<_ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h. */
32046 #include <proto/intuition.h>
32048 if { (ac_try="$ac_cpp conftest.$ac_ext"
32049 case "(($ac_try" in
32050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051 *) ac_try_echo=$ac_try;;
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32056 grep -v '^
*+' conftest.er1 >conftest.err
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } >/dev/null; then
32061 if test -s conftest.err; then
32062 ac_cpp_err=$ac_c_preproc_warn_flag
32063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32070 if test -z "$ac_cpp_err"; then
32071 ac_header_preproc=yes
32073 echo "$as_me: failed program was:" >&5
32074 sed 's
/^
/|
/' conftest.$ac_ext >&5
32076 ac_header_preproc=no
32079 rm -f conftest.err conftest.$ac_ext
32080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32081 echo "${ECHO_T}$ac_header_preproc" >&6; }
32083 # So? What about this header?
32084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32086 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
32087 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32088 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result
" >&5
32089 echo "$as_me: WARNING
: proto
/intuition.h
: proceeding with the compiler
's result" >&2;}
32090 ac_header_preproc=yes
32093 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
32094 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
32095 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
32096 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
32097 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
32098 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
32099 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
32100 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
32101 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result
" >&5
32102 echo "$as_me: WARNING
: proto
/intuition.h
: proceeding with the preprocessor
's result" >&2;}
32103 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
32104 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
32108 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
32109 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
32110 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
32111 echo $ECHO_N "(cached) $ECHO_C" >&6
32113 ac_cv_header_proto_intuition_h=$ac_header_preproc
32115 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
32116 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
32119 if test $ac_cv_header_proto_intuition_h = yes; then
32122 can_compile_amigaos=0
32126 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32127 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
32128 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
32129 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32130 echo $ECHO_N "(cached) $ECHO_C" >&6
32132 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
32133 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
32135 # Is the header compilable?
32136 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
32137 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
32138 cat >conftest.$ac_ext <<_ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h. */
32144 $ac_includes_default
32145 #include <intuition/intuitionbase.h>
32147 rm -f conftest.$ac_objext
32148 if { (ac_try="$ac_compile"
32149 case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_compile") 2>conftest.er1
32156 grep -v '^
*+' conftest.er1 >conftest.err
32158 cat conftest.err >&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); } &&
32161 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.
$ac_objext'
32172 { (case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_try") 2>&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
32181 ac_header_compiler=yes
32183 echo "$as_me: failed program was:" >&5
32184 sed 's
/^
/|
/' conftest.$ac_ext >&5
32186 ac_header_compiler=no
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32191 echo "${ECHO_T}$ac_header_compiler" >&6; }
32193 # Is the header present?
32194 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
32195 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
32196 cat >conftest.$ac_ext <<_ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h. */
32202 #include <intuition/intuitionbase.h>
32204 if { (ac_try="$ac_cpp conftest.$ac_ext"
32205 case "(($ac_try" in
32206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32207 *) ac_try_echo=$ac_try;;
32209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32212 grep -v '^
*+' conftest.er1 >conftest.err
32214 cat conftest.err >&5
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); } >/dev/null; then
32217 if test -s conftest.err; then
32218 ac_cpp_err=$ac_c_preproc_warn_flag
32219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32226 if test -z "$ac_cpp_err"; then
32227 ac_header_preproc=yes
32229 echo "$as_me: failed program was:" >&5
32230 sed 's
/^
/|
/' conftest.$ac_ext >&5
32232 ac_header_preproc=no
32235 rm -f conftest.err conftest.$ac_ext
32236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32237 echo "${ECHO_T}$ac_header_preproc" >&6; }
32239 # So? What about this header?
32240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32242 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
32243 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32244 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result
" >&5
32245 echo "$as_me: WARNING
: intuition
/intuitionbase.h
: proceeding with the compiler
's result" >&2;}
32246 ac_header_preproc=yes
32249 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
32250 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
32251 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
32252 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
32253 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
32254 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
32255 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
32256 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
32257 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result
" >&5
32258 echo "$as_me: WARNING
: intuition
/intuitionbase.h
: proceeding with the preprocessor
's result" >&2;}
32259 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
32260 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
32264 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
32265 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
32266 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32267 echo $ECHO_N "(cached) $ECHO_C" >&6
32269 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
32271 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
32272 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
32275 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
32278 can_compile_amigaos=0
32282 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32283 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
32284 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
32285 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32286 echo $ECHO_N "(cached) $ECHO_C" >&6
32288 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
32289 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
32291 # Is the header compilable?
32292 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
32293 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
32294 cat >conftest.$ac_ext <<_ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h. */
32300 $ac_includes_default
32301 #include <cybergraphx/cybergraphics.h>
32303 rm -f conftest.$ac_objext
32304 if { (ac_try="$ac_compile"
32305 case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_compile") 2>conftest.er1
32312 grep -v '^
*+' conftest.er1 >conftest.err
32314 cat conftest.err >&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } &&
32317 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
32318 { (case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_try") 2>&5
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; } &&
32327 { ac_try='test -s conftest.
$ac_objext'
32328 { (case "(($ac_try" in
32329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330 *) ac_try_echo=$ac_try;;
32332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333 (eval "$ac_try") 2>&5
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); }; }; then
32337 ac_header_compiler=yes
32339 echo "$as_me: failed program was:" >&5
32340 sed 's
/^
/|
/' conftest.$ac_ext >&5
32342 ac_header_compiler=no
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32347 echo "${ECHO_T}$ac_header_compiler" >&6; }
32349 # Is the header present?
32350 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
32351 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
32352 cat >conftest.$ac_ext <<_ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32358 #include <cybergraphx/cybergraphics.h>
32360 if { (ac_try="$ac_cpp conftest.$ac_ext"
32361 case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32368 grep -v '^
*+' conftest.er1 >conftest.err
32370 cat conftest.err >&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } >/dev/null; then
32373 if test -s conftest.err; then
32374 ac_cpp_err=$ac_c_preproc_warn_flag
32375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32382 if test -z "$ac_cpp_err"; then
32383 ac_header_preproc=yes
32385 echo "$as_me: failed program was:" >&5
32386 sed 's
/^
/|
/' conftest.$ac_ext >&5
32388 ac_header_preproc=no
32391 rm -f conftest.err conftest.$ac_ext
32392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32393 echo "${ECHO_T}$ac_header_preproc" >&6; }
32395 # So? What about this header?
32396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32398 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
32399 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32400 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result
" >&5
32401 echo "$as_me: WARNING
: cybergraphx
/cybergraphics.h
: proceeding with the compiler
's result" >&2;}
32402 ac_header_preproc=yes
32405 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
32406 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
32407 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
32408 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
32409 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
32410 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
32411 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
32412 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
32413 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result
" >&5
32414 echo "$as_me: WARNING
: cybergraphx
/cybergraphics.h
: proceeding with the preprocessor
's result" >&2;}
32415 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
32416 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
32420 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
32421 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
32422 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32425 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
32427 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
32428 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
32431 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
32434 can_compile_amigaos=0
32438 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32439 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
32440 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
32441 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32442 echo $ECHO_N "(cached) $ECHO_C" >&6
32444 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
32445 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
32447 # Is the header compilable?
32448 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
32449 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
32450 cat >conftest.$ac_ext <<_ACEOF
32453 cat confdefs.h >>conftest.$ac_ext
32454 cat >>conftest.$ac_ext <<_ACEOF
32455 /* end confdefs.h. */
32456 $ac_includes_default
32457 #include <devices/trackdisk.h>
32459 rm -f conftest.$ac_objext
32460 if { (ac_try="$ac_compile"
32461 case "(($ac_try" in
32462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32463 *) ac_try_echo=$ac_try;;
32465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32466 (eval "$ac_compile") 2>conftest.er1
32468 grep -v '^
*+' conftest.er1 >conftest.err
32470 cat conftest.err >&5
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); } &&
32473 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
32474 { (case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_try") 2>&5
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); }; } &&
32483 { ac_try='test -s conftest.
$ac_objext'
32484 { (case "(($ac_try" in
32485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32486 *) ac_try_echo=$ac_try;;
32488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32489 (eval "$ac_try") 2>&5
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); }; }; then
32493 ac_header_compiler=yes
32495 echo "$as_me: failed program was:" >&5
32496 sed 's
/^
/|
/' conftest.$ac_ext >&5
32498 ac_header_compiler=no
32501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32503 echo "${ECHO_T}$ac_header_compiler" >&6; }
32505 # Is the header present?
32506 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
32507 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
32508 cat >conftest.$ac_ext <<_ACEOF
32511 cat confdefs.h >>conftest.$ac_ext
32512 cat >>conftest.$ac_ext <<_ACEOF
32513 /* end confdefs.h. */
32514 #include <devices/trackdisk.h>
32516 if { (ac_try="$ac_cpp conftest.$ac_ext"
32517 case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32524 grep -v '^
*+' conftest.er1 >conftest.err
32526 cat conftest.err >&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } >/dev/null; then
32529 if test -s conftest.err; then
32530 ac_cpp_err=$ac_c_preproc_warn_flag
32531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32538 if test -z "$ac_cpp_err"; then
32539 ac_header_preproc=yes
32541 echo "$as_me: failed program was:" >&5
32542 sed 's
/^
/|
/' conftest.$ac_ext >&5
32544 ac_header_preproc=no
32547 rm -f conftest.err conftest.$ac_ext
32548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32549 echo "${ECHO_T}$ac_header_preproc" >&6; }
32551 # So? What about this header?
32552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32554 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
32555 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32556 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result
" >&5
32557 echo "$as_me: WARNING
: devices
/trackdisk.h
: proceeding with the compiler
's result" >&2;}
32558 ac_header_preproc=yes
32561 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
32562 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
32563 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
32564 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
32565 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
32566 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
32567 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
32568 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
32569 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result
" >&5
32570 echo "$as_me: WARNING
: devices
/trackdisk.h
: proceeding with the preprocessor
's result" >&2;}
32571 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
32572 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
32576 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
32577 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
32578 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32579 echo $ECHO_N "(cached) $ECHO_C" >&6
32581 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
32583 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
32584 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
32587 if test $ac_cv_header_devices_trackdisk_h = yes; then
32590 can_compile_amigaos=0
32594 if test $can_compile_amigaos = 1; then
32599 if test "$with_macos" != yes; then
32600 can_compile_macos=1
32601 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32602 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
32603 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
32604 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32605 echo $ECHO_N "(cached) $ECHO_C" >&6
32607 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
32608 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
32610 # Is the header compilable?
32611 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
32612 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
32613 cat >conftest.$ac_ext <<_ACEOF
32616 cat confdefs.h >>conftest.$ac_ext
32617 cat >>conftest.$ac_ext <<_ACEOF
32618 /* end confdefs.h. */
32619 $ac_includes_default
32620 #include <Quickdraw.h>
32622 rm -f conftest.$ac_objext
32623 if { (ac_try="$ac_compile"
32624 case "(($ac_try" in
32625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626 *) ac_try_echo=$ac_try;;
32628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629 (eval "$ac_compile") 2>conftest.er1
32631 grep -v '^
*+' conftest.er1 >conftest.err
32633 cat conftest.err >&5
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
32636 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
32637 { (case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_try") 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.
$ac_objext'
32647 { (case "(($ac_try" in
32648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649 *) ac_try_echo=$ac_try;;
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652 (eval "$ac_try") 2>&5
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; }; then
32656 ac_header_compiler=yes
32658 echo "$as_me: failed program was:" >&5
32659 sed 's
/^
/|
/' conftest.$ac_ext >&5
32661 ac_header_compiler=no
32664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32666 echo "${ECHO_T}$ac_header_compiler" >&6; }
32668 # Is the header present?
32669 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
32670 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
32671 cat >conftest.$ac_ext <<_ACEOF
32674 cat confdefs.h >>conftest.$ac_ext
32675 cat >>conftest.$ac_ext <<_ACEOF
32676 /* end confdefs.h. */
32677 #include <Quickdraw.h>
32679 if { (ac_try="$ac_cpp conftest.$ac_ext"
32680 case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32687 grep -v '^
*+' conftest.er1 >conftest.err
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } >/dev/null; then
32692 if test -s conftest.err; then
32693 ac_cpp_err=$ac_c_preproc_warn_flag
32694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32701 if test -z "$ac_cpp_err"; then
32702 ac_header_preproc=yes
32704 echo "$as_me: failed program was:" >&5
32705 sed 's
/^
/|
/' conftest.$ac_ext >&5
32707 ac_header_preproc=no
32710 rm -f conftest.err conftest.$ac_ext
32711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32712 echo "${ECHO_T}$ac_header_preproc" >&6; }
32714 # So? What about this header?
32715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32717 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
32718 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32719 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result
" >&5
32720 echo "$as_me: WARNING
: Quickdraw.h
: proceeding with the compiler
's result" >&2;}
32721 ac_header_preproc=yes
32724 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
32725 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
32726 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
32727 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
32728 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
32729 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
32730 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
32731 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
32732 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result
" >&5
32733 echo "$as_me: WARNING
: Quickdraw.h
: proceeding with the preprocessor
's result" >&2;}
32734 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
32735 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
32739 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
32740 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
32741 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32742 echo $ECHO_N "(cached) $ECHO_C" >&6
32744 ac_cv_header_Quickdraw_h=$ac_header_preproc
32746 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
32747 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
32750 if test $ac_cv_header_Quickdraw_h = yes; then
32753 can_compile_macos=0
32757 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32758 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
32759 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
32760 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32763 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
32764 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
32766 # Is the header compilable?
32767 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
32768 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
32769 cat >conftest.$ac_ext <<_ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32775 $ac_includes_default
32776 #include <Dialogs.h>
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_compile") 2>conftest.er1
32787 grep -v '^
*+' conftest.er1 >conftest.err
32789 cat conftest.err >&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } &&
32792 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; } &&
32802 { ac_try='test -s conftest.
$ac_objext'
32803 { (case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_try") 2>&5
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; }; then
32812 ac_header_compiler=yes
32814 echo "$as_me: failed program was:" >&5
32815 sed 's
/^
/|
/' conftest.$ac_ext >&5
32817 ac_header_compiler=no
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32822 echo "${ECHO_T}$ac_header_compiler" >&6; }
32824 # Is the header present?
32825 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
32826 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
32827 cat >conftest.$ac_ext <<_ACEOF
32830 cat confdefs.h >>conftest.$ac_ext
32831 cat >>conftest.$ac_ext <<_ACEOF
32832 /* end confdefs.h. */
32833 #include <Dialogs.h>
32835 if { (ac_try="$ac_cpp conftest.$ac_ext"
32836 case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32843 grep -v '^
*+' conftest.er1 >conftest.err
32845 cat conftest.err >&5
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); } >/dev/null; then
32848 if test -s conftest.err; then
32849 ac_cpp_err=$ac_c_preproc_warn_flag
32850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32857 if test -z "$ac_cpp_err"; then
32858 ac_header_preproc=yes
32860 echo "$as_me: failed program was:" >&5
32861 sed 's
/^
/|
/' conftest.$ac_ext >&5
32863 ac_header_preproc=no
32866 rm -f conftest.err conftest.$ac_ext
32867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32868 echo "${ECHO_T}$ac_header_preproc" >&6; }
32870 # So? What about this header?
32871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32873 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32874 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32875 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result
" >&5
32876 echo "$as_me: WARNING
: Dialogs.h
: proceeding with the compiler
's result" >&2;}
32877 ac_header_preproc=yes
32880 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
32881 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
32882 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
32883 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
32884 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
32885 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
32886 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
32887 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32888 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result
" >&5
32889 echo "$as_me: WARNING
: Dialogs.h
: proceeding with the preprocessor
's result" >&2;}
32890 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
32891 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
32895 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
32896 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
32897 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32900 ac_cv_header_Dialogs_h=$ac_header_preproc
32902 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
32903 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
32906 if test $ac_cv_header_Dialogs_h = yes; then
32909 can_compile_macos=0
32913 if test $can_compile_macos = 1; then
32918 if test "$with_carbon" != yes; then
32919 can_compile_carbon=1
32920 if test "${ac_cv_header_Carbon_h+set}" = set; then
32921 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
32922 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
32923 if test "${ac_cv_header_Carbon_h+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32926 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
32927 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
32929 # Is the header compilable?
32930 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
32931 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
32932 cat >conftest.$ac_ext <<_ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32938 $ac_includes_default
32939 #include <Carbon.h>
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_compile") 2>conftest.er1
32950 grep -v '^
*+' conftest.er1 >conftest.err
32952 cat conftest.err >&5
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } &&
32955 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
32956 { (case "(($ac_try" in
32957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_try") 2>&5
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; } &&
32965 { ac_try='test -s conftest.
$ac_objext'
32966 { (case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_try") 2>&5
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
32975 ac_header_compiler=yes
32977 echo "$as_me: failed program was:" >&5
32978 sed 's
/^
/|
/' conftest.$ac_ext >&5
32980 ac_header_compiler=no
32983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32985 echo "${ECHO_T}$ac_header_compiler" >&6; }
32987 # Is the header present?
32988 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
32989 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
32990 cat >conftest.$ac_ext <<_ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
32996 #include <Carbon.h>
32998 if { (ac_try="$ac_cpp conftest.$ac_ext"
32999 case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33006 grep -v '^
*+' conftest.er1 >conftest.err
33008 cat conftest.err >&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } >/dev/null; then
33011 if test -s conftest.err; then
33012 ac_cpp_err=$ac_c_preproc_warn_flag
33013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33020 if test -z "$ac_cpp_err"; then
33021 ac_header_preproc=yes
33023 echo "$as_me: failed program was:" >&5
33024 sed 's
/^
/|
/' conftest.$ac_ext >&5
33026 ac_header_preproc=no
33029 rm -f conftest.err conftest.$ac_ext
33030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33031 echo "${ECHO_T}$ac_header_preproc" >&6; }
33033 # So? What about this header?
33034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33036 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
33037 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33038 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result
" >&5
33039 echo "$as_me: WARNING
: Carbon.h
: proceeding with the compiler
's result" >&2;}
33040 ac_header_preproc=yes
33043 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
33044 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
33045 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
33046 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
33047 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
33048 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
33049 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
33050 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
33051 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result
" >&5
33052 echo "$as_me: WARNING
: Carbon.h
: proceeding with the preprocessor
's result" >&2;}
33053 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
33054 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
33058 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
33059 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
33060 if test "${ac_cv_header_Carbon_h+set}" = set; then
33061 echo $ECHO_N "(cached) $ECHO_C" >&6
33063 ac_cv_header_Carbon_h=$ac_header_preproc
33065 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
33066 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
33069 if test $ac_cv_header_Carbon_h = yes; then
33072 can_compile_carbon=0
33076 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33077 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
33078 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
33079 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33080 echo $ECHO_N "(cached) $ECHO_C" >&6
33082 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
33083 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
33085 # Is the header compilable?
33086 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
33087 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
33088 cat >conftest.$ac_ext <<_ACEOF
33091 cat confdefs.h >>conftest.$ac_ext
33092 cat >>conftest.$ac_ext <<_ACEOF
33093 /* end confdefs.h. */
33094 $ac_includes_default
33095 #include <ApplicationServices/ApplicationServices.h>
33097 rm -f conftest.$ac_objext
33098 if { (ac_try="$ac_compile"
33099 case "(($ac_try" in
33100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33101 *) ac_try_echo=$ac_try;;
33103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33104 (eval "$ac_compile") 2>conftest.er1
33106 grep -v '^
*+' conftest.er1 >conftest.err
33108 cat conftest.err >&5
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); } &&
33111 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
33112 { (case "(($ac_try" in
33113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33114 *) ac_try_echo=$ac_try;;
33116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33117 (eval "$ac_try") 2>&5
33119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33120 (exit $ac_status); }; } &&
33121 { ac_try='test -s conftest.
$ac_objext'
33122 { (case "(($ac_try" in
33123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33124 *) ac_try_echo=$ac_try;;
33126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33127 (eval "$ac_try") 2>&5
33129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); }; }; then
33131 ac_header_compiler=yes
33133 echo "$as_me: failed program was:" >&5
33134 sed 's
/^
/|
/' conftest.$ac_ext >&5
33136 ac_header_compiler=no
33139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33141 echo "${ECHO_T}$ac_header_compiler" >&6; }
33143 # Is the header present?
33144 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
33145 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
33146 cat >conftest.$ac_ext <<_ACEOF
33149 cat confdefs.h >>conftest.$ac_ext
33150 cat >>conftest.$ac_ext <<_ACEOF
33151 /* end confdefs.h. */
33152 #include <ApplicationServices/ApplicationServices.h>
33154 if { (ac_try="$ac_cpp conftest.$ac_ext"
33155 case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33162 grep -v '^
*+' conftest.er1 >conftest.err
33164 cat conftest.err >&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } >/dev/null; then
33167 if test -s conftest.err; then
33168 ac_cpp_err=$ac_c_preproc_warn_flag
33169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33176 if test -z "$ac_cpp_err"; then
33177 ac_header_preproc=yes
33179 echo "$as_me: failed program was:" >&5
33180 sed 's
/^
/|
/' conftest.$ac_ext >&5
33182 ac_header_preproc=no
33185 rm -f conftest.err conftest.$ac_ext
33186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33187 echo "${ECHO_T}$ac_header_preproc" >&6; }
33189 # So? What about this header?
33190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33192 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
33193 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33194 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result
" >&5
33195 echo "$as_me: WARNING
: ApplicationServices
/ApplicationServices.h
: proceeding with the compiler
's result" >&2;}
33196 ac_header_preproc=yes
33199 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
33200 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
33201 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
33202 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
33203 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
33204 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
33205 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
33206 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
33207 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result
" >&5
33208 echo "$as_me: WARNING
: ApplicationServices
/ApplicationServices.h
: proceeding with the preprocessor
's result" >&2;}
33209 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
33210 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
33214 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
33215 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
33216 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33219 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
33221 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
33222 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
33225 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
33228 can_compile_carbon=0
33232 if test $can_compile_carbon = 1; then
33237 if test "$with_win32" != yes; then
33238 can_compile_win32=1
33239 if test "${ac_cv_header_windows_h+set}" = set; then
33240 { echo "$as_me:$LINENO: checking for windows.h" >&5
33241 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
33242 if test "${ac_cv_header_windows_h+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33245 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
33246 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
33248 # Is the header compilable?
33249 { echo "$as_me:$LINENO: checking windows.h usability" >&5
33250 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
33251 cat >conftest.$ac_ext <<_ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h. */
33257 $ac_includes_default
33258 #include <windows.h>
33260 rm -f conftest.$ac_objext
33261 if { (ac_try="$ac_compile"
33262 case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_compile") 2>conftest.er1
33269 grep -v '^
*+' conftest.er1 >conftest.err
33271 cat conftest.err >&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); } &&
33274 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
33275 { (case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.
$ac_objext'
33285 { (case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_try") 2>&5
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; }; then
33294 ac_header_compiler=yes
33296 echo "$as_me: failed program was:" >&5
33297 sed 's
/^
/|
/' conftest.$ac_ext >&5
33299 ac_header_compiler=no
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33304 echo "${ECHO_T}$ac_header_compiler" >&6; }
33306 # Is the header present?
33307 { echo "$as_me:$LINENO: checking windows.h presence" >&5
33308 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
33309 cat >conftest.$ac_ext <<_ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h. */
33315 #include <windows.h>
33317 if { (ac_try="$ac_cpp conftest.$ac_ext"
33318 case "(($ac_try" in
33319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33320 *) ac_try_echo=$ac_try;;
33322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33325 grep -v '^
*+' conftest.er1 >conftest.err
33327 cat conftest.err >&5
33328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); } >/dev/null; then
33330 if test -s conftest.err; then
33331 ac_cpp_err=$ac_c_preproc_warn_flag
33332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33339 if test -z "$ac_cpp_err"; then
33340 ac_header_preproc=yes
33342 echo "$as_me: failed program was:" >&5
33343 sed 's
/^
/|
/' conftest.$ac_ext >&5
33345 ac_header_preproc=no
33348 rm -f conftest.err conftest.$ac_ext
33349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33350 echo "${ECHO_T}$ac_header_preproc" >&6; }
33352 # So? What about this header?
33353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33355 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
33356 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33357 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result
" >&5
33358 echo "$as_me: WARNING
: windows.h
: proceeding with the compiler
's result" >&2;}
33359 ac_header_preproc=yes
33362 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
33363 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
33364 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
33365 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
33366 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
33367 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
33368 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
33369 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
33370 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result
" >&5
33371 echo "$as_me: WARNING
: windows.h
: proceeding with the preprocessor
's result" >&2;}
33372 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
33373 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
33377 { echo "$as_me:$LINENO: checking for windows.h" >&5
33378 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
33379 if test "${ac_cv_header_windows_h+set}" = set; then
33380 echo $ECHO_N "(cached) $ECHO_C" >&6
33382 ac_cv_header_windows_h=$ac_header_preproc
33384 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
33385 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
33388 if test $ac_cv_header_windows_h = yes; then
33391 can_compile_win32=0
33395 if test "${ac_cv_header_commctrl_h+set}" = set; then
33396 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
33397 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
33398 if test "${ac_cv_header_commctrl_h+set}" = set; then
33399 echo $ECHO_N "(cached) $ECHO_C" >&6
33401 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
33402 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
33404 # Is the header compilable?
33405 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
33406 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
33407 cat >conftest.$ac_ext <<_ACEOF
33410 cat confdefs.h >>conftest.$ac_ext
33411 cat >>conftest.$ac_ext <<_ACEOF
33412 /* end confdefs.h. */
33413 $ac_includes_default
33414 #include <commctrl.h>
33416 rm -f conftest.$ac_objext
33417 if { (ac_try="$ac_compile"
33418 case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_compile") 2>conftest.er1
33425 grep -v '^
*+' conftest.er1 >conftest.err
33427 cat conftest.err >&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); } &&
33430 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
33431 { (case "(($ac_try" in
33432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33433 *) ac_try_echo=$ac_try;;
33435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33436 (eval "$ac_try") 2>&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; } &&
33440 { ac_try='test -s conftest.
$ac_objext'
33441 { (case "(($ac_try" in
33442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33443 *) ac_try_echo=$ac_try;;
33445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33446 (eval "$ac_try") 2>&5
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; }; then
33450 ac_header_compiler=yes
33452 echo "$as_me: failed program was:" >&5
33453 sed 's
/^
/|
/' conftest.$ac_ext >&5
33455 ac_header_compiler=no
33458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33460 echo "${ECHO_T}$ac_header_compiler" >&6; }
33462 # Is the header present?
33463 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
33464 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
33465 cat >conftest.$ac_ext <<_ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h. */
33471 #include <commctrl.h>
33473 if { (ac_try="$ac_cpp conftest.$ac_ext"
33474 case "(($ac_try" in
33475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33476 *) ac_try_echo=$ac_try;;
33478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33481 grep -v '^
*+' conftest.er1 >conftest.err
33483 cat conftest.err >&5
33484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485 (exit $ac_status); } >/dev/null; then
33486 if test -s conftest.err; then
33487 ac_cpp_err=$ac_c_preproc_warn_flag
33488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33495 if test -z "$ac_cpp_err"; then
33496 ac_header_preproc=yes
33498 echo "$as_me: failed program was:" >&5
33499 sed 's
/^
/|
/' conftest.$ac_ext >&5
33501 ac_header_preproc=no
33504 rm -f conftest.err conftest.$ac_ext
33505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33506 echo "${ECHO_T}$ac_header_preproc" >&6; }
33508 # So? What about this header?
33509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33511 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33512 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33513 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result
" >&5
33514 echo "$as_me: WARNING
: commctrl.h
: proceeding with the compiler
's result" >&2;}
33515 ac_header_preproc=yes
33518 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
33519 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
33520 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
33521 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
33522 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
33523 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
33524 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
33525 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33526 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result
" >&5
33527 echo "$as_me: WARNING
: commctrl.h
: proceeding with the preprocessor
's result" >&2;}
33528 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
33529 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
33533 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
33534 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
33535 if test "${ac_cv_header_commctrl_h+set}" = set; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33538 ac_cv_header_commctrl_h=$ac_header_preproc
33540 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
33541 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
33544 if test $ac_cv_header_commctrl_h = yes; then
33547 can_compile_win32=0
33551 if test $can_compile_win32 = 1; then
33556 if test "$with_sdl" != yes; then
33558 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33559 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
33560 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
33561 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33562 echo $ECHO_N "(cached) $ECHO_C" >&6
33564 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
33565 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
33567 # Is the header compilable?
33568 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
33569 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
33570 cat >conftest.$ac_ext <<_ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h. */
33576 $ac_includes_default
33577 #include <SDL/SDL.h>
33579 rm -f conftest.$ac_objext
33580 if { (ac_try="$ac_compile"
33581 case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_compile") 2>conftest.er1
33588 grep -v '^
*+' conftest.er1 >conftest.err
33590 cat conftest.err >&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); } &&
33593 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
33594 { (case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_try") 2>&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; } &&
33603 { ac_try='test -s conftest.
$ac_objext'
33604 { (case "(($ac_try" in
33605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33606 *) ac_try_echo=$ac_try;;
33608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33609 (eval "$ac_try") 2>&5
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 ac_header_compiler=yes
33615 echo "$as_me: failed program was:" >&5
33616 sed 's
/^
/|
/' conftest.$ac_ext >&5
33618 ac_header_compiler=no
33621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33623 echo "${ECHO_T}$ac_header_compiler" >&6; }
33625 # Is the header present?
33626 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
33627 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
33628 cat >conftest.$ac_ext <<_ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h. */
33634 #include <SDL/SDL.h>
33636 if { (ac_try="$ac_cpp conftest.$ac_ext"
33637 case "(($ac_try" in
33638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639 *) ac_try_echo=$ac_try;;
33641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33644 grep -v '^
*+' conftest.er1 >conftest.err
33646 cat conftest.err >&5
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); } >/dev/null; then
33649 if test -s conftest.err; then
33650 ac_cpp_err=$ac_c_preproc_warn_flag
33651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33658 if test -z "$ac_cpp_err"; then
33659 ac_header_preproc=yes
33661 echo "$as_me: failed program was:" >&5
33662 sed 's
/^
/|
/' conftest.$ac_ext >&5
33664 ac_header_preproc=no
33667 rm -f conftest.err conftest.$ac_ext
33668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33669 echo "${ECHO_T}$ac_header_preproc" >&6; }
33671 # So? What about this header?
33672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33674 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
33675 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33676 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result
" >&5
33677 echo "$as_me: WARNING
: SDL
/SDL.h
: proceeding with the compiler
's result" >&2;}
33678 ac_header_preproc=yes
33681 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
33682 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
33683 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
33684 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
33685 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
33686 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
33687 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
33688 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
33689 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result
" >&5
33690 echo "$as_me: WARNING
: SDL
/SDL.h
: proceeding with the preprocessor
's result" >&2;}
33691 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
33692 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
33696 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
33697 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
33698 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33699 echo $ECHO_N "(cached) $ECHO_C" >&6
33701 ac_cv_header_SDL_SDL_h=$ac_header_preproc
33703 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
33704 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
33707 if test $ac_cv_header_SDL_SDL_h = yes; then
33714 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33715 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
33716 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
33717 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33718 echo $ECHO_N "(cached) $ECHO_C" >&6
33720 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
33721 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
33723 # Is the header compilable?
33724 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
33725 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
33726 cat >conftest.$ac_ext <<_ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h. */
33732 $ac_includes_default
33733 #include <SDL/SDL_main.h>
33735 rm -f conftest.$ac_objext
33736 if { (ac_try="$ac_compile"
33737 case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_compile") 2>conftest.er1
33744 grep -v '^
*+' conftest.er1 >conftest.err
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest.
$ac_objext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
33769 ac_header_compiler=yes
33771 echo "$as_me: failed program was:" >&5
33772 sed 's
/^
/|
/' conftest.$ac_ext >&5
33774 ac_header_compiler=no
33777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33779 echo "${ECHO_T}$ac_header_compiler" >&6; }
33781 # Is the header present?
33782 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
33783 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
33784 cat >conftest.$ac_ext <<_ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h. */
33790 #include <SDL/SDL_main.h>
33792 if { (ac_try="$ac_cpp conftest.$ac_ext"
33793 case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33800 grep -v '^
*+' conftest.er1 >conftest.err
33802 cat conftest.err >&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); } >/dev/null; then
33805 if test -s conftest.err; then
33806 ac_cpp_err=$ac_c_preproc_warn_flag
33807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33814 if test -z "$ac_cpp_err"; then
33815 ac_header_preproc=yes
33817 echo "$as_me: failed program was:" >&5
33818 sed 's
/^
/|
/' conftest.$ac_ext >&5
33820 ac_header_preproc=no
33823 rm -f conftest.err conftest.$ac_ext
33824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33825 echo "${ECHO_T}$ac_header_preproc" >&6; }
33827 # So? What about this header?
33828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33830 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
33831 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33832 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result
" >&5
33833 echo "$as_me: WARNING
: SDL
/SDL_main.h
: proceeding with the compiler
's result" >&2;}
33834 ac_header_preproc=yes
33837 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
33838 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
33839 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
33840 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
33841 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
33842 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
33843 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
33844 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
33845 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result
" >&5
33846 echo "$as_me: WARNING
: SDL
/SDL_main.h
: proceeding with the preprocessor
's result" >&2;}
33847 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
33848 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
33852 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
33853 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
33854 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33855 echo $ECHO_N "(cached) $ECHO_C" >&6
33857 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
33859 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
33860 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
33863 if test $ac_cv_header_SDL_SDL_main_h = yes; then
33870 if test $can_compile_sdl = 1; then
33875 if test "$with_svga" != yes; then
33877 if test "${ac_cv_header_vga_h+set}" = set; then
33878 { echo "$as_me:$LINENO: checking for vga.h" >&5
33879 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
33880 if test "${ac_cv_header_vga_h+set}" = set; then
33881 echo $ECHO_N "(cached) $ECHO_C" >&6
33883 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
33884 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
33886 # Is the header compilable?
33887 { echo "$as_me:$LINENO: checking vga.h usability" >&5
33888 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
33889 cat >conftest.$ac_ext <<_ACEOF
33892 cat confdefs.h >>conftest.$ac_ext
33893 cat >>conftest.$ac_ext <<_ACEOF
33894 /* end confdefs.h. */
33895 $ac_includes_default
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_compile") 2>conftest.er1
33907 grep -v '^
*+' conftest.er1 >conftest.err
33909 cat conftest.err >&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); } &&
33912 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
33913 { (case "(($ac_try" in
33914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915 *) ac_try_echo=$ac_try;;
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918 (eval "$ac_try") 2>&5
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); }; } &&
33922 { ac_try='test -s conftest.
$ac_objext'
33923 { (case "(($ac_try" in
33924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925 *) ac_try_echo=$ac_try;;
33927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928 (eval "$ac_try") 2>&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); }; }; then
33932 ac_header_compiler=yes
33934 echo "$as_me: failed program was:" >&5
33935 sed 's
/^
/|
/' conftest.$ac_ext >&5
33937 ac_header_compiler=no
33940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33942 echo "${ECHO_T}$ac_header_compiler" >&6; }
33944 # Is the header present?
33945 { echo "$as_me:$LINENO: checking vga.h presence" >&5
33946 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
33947 cat >conftest.$ac_ext <<_ACEOF
33950 cat confdefs.h >>conftest.$ac_ext
33951 cat >>conftest.$ac_ext <<_ACEOF
33952 /* end confdefs.h. */
33955 if { (ac_try="$ac_cpp conftest.$ac_ext"
33956 case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33963 grep -v '^
*+' conftest.er1 >conftest.err
33965 cat conftest.err >&5
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); } >/dev/null; then
33968 if test -s conftest.err; then
33969 ac_cpp_err=$ac_c_preproc_warn_flag
33970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33977 if test -z "$ac_cpp_err"; then
33978 ac_header_preproc=yes
33980 echo "$as_me: failed program was:" >&5
33981 sed 's
/^
/|
/' conftest.$ac_ext >&5
33983 ac_header_preproc=no
33986 rm -f conftest.err conftest.$ac_ext
33987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33988 echo "${ECHO_T}$ac_header_preproc" >&6; }
33990 # So? What about this header?
33991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33993 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
33994 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33995 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result
" >&5
33996 echo "$as_me: WARNING
: vga.h
: proceeding with the compiler
's result" >&2;}
33997 ac_header_preproc=yes
34000 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
34001 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
34002 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
34003 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
34004 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
34005 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
34006 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
34007 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
34008 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result
" >&5
34009 echo "$as_me: WARNING
: vga.h
: proceeding with the preprocessor
's result" >&2;}
34010 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
34011 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
34015 { echo "$as_me:$LINENO: checking for vga.h" >&5
34016 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
34017 if test "${ac_cv_header_vga_h+set}" = set; then
34018 echo $ECHO_N "(cached) $ECHO_C" >&6
34020 ac_cv_header_vga_h=$ac_header_preproc
34022 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
34023 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
34026 if test $ac_cv_header_vga_h = yes; then
34033 if test "${ac_cv_header_vgagl_h+set}" = set; then
34034 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
34035 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
34036 if test "${ac_cv_header_vgagl_h+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34039 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
34040 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
34042 # Is the header compilable?
34043 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
34044 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
34045 cat >conftest.$ac_ext <<_ACEOF
34048 cat confdefs.h >>conftest.$ac_ext
34049 cat >>conftest.$ac_ext <<_ACEOF
34050 /* end confdefs.h. */
34051 $ac_includes_default
34054 rm -f conftest.$ac_objext
34055 if { (ac_try="$ac_compile"
34056 case "(($ac_try" in
34057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34058 *) ac_try_echo=$ac_try;;
34060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34061 (eval "$ac_compile") 2>conftest.er1
34063 grep -v '^
*+' conftest.er1 >conftest.err
34065 cat conftest.err >&5
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); } &&
34068 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
34069 { (case "(($ac_try" in
34070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071 *) ac_try_echo=$ac_try;;
34073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074 (eval "$ac_try") 2>&5
34076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077 (exit $ac_status); }; } &&
34078 { ac_try='test -s conftest.
$ac_objext'
34079 { (case "(($ac_try" in
34080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081 *) ac_try_echo=$ac_try;;
34083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084 (eval "$ac_try") 2>&5
34086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087 (exit $ac_status); }; }; then
34088 ac_header_compiler=yes
34090 echo "$as_me: failed program was:" >&5
34091 sed 's
/^
/|
/' conftest.$ac_ext >&5
34093 ac_header_compiler=no
34096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34098 echo "${ECHO_T}$ac_header_compiler" >&6; }
34100 # Is the header present?
34101 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
34102 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
34103 cat >conftest.$ac_ext <<_ACEOF
34106 cat confdefs.h >>conftest.$ac_ext
34107 cat >>conftest.$ac_ext <<_ACEOF
34108 /* end confdefs.h. */
34111 if { (ac_try="$ac_cpp conftest.$ac_ext"
34112 case "(($ac_try" in
34113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34114 *) ac_try_echo=$ac_try;;
34116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34119 grep -v '^
*+' conftest.er1 >conftest.err
34121 cat conftest.err >&5
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); } >/dev/null; then
34124 if test -s conftest.err; then
34125 ac_cpp_err=$ac_c_preproc_warn_flag
34126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34133 if test -z "$ac_cpp_err"; then
34134 ac_header_preproc=yes
34136 echo "$as_me: failed program was:" >&5
34137 sed 's
/^
/|
/' conftest.$ac_ext >&5
34139 ac_header_preproc=no
34142 rm -f conftest.err conftest.$ac_ext
34143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34144 echo "${ECHO_T}$ac_header_preproc" >&6; }
34146 # So? What about this header?
34147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34149 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
34150 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34151 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result
" >&5
34152 echo "$as_me: WARNING
: vgagl.h
: proceeding with the compiler
's result" >&2;}
34153 ac_header_preproc=yes
34156 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
34157 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
34158 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
34159 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
34160 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
34161 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
34162 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
34163 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
34164 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result
" >&5
34165 echo "$as_me: WARNING
: vgagl.h
: proceeding with the preprocessor
's result" >&2;}
34166 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
34167 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
34171 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
34172 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
34173 if test "${ac_cv_header_vgagl_h+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34176 ac_cv_header_vgagl_h=$ac_header_preproc
34178 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
34179 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
34182 if test $ac_cv_header_vgagl_h = yes; then
34189 if test $can_compile_svga = 1; then
34194 if test "$with_x11" != yes; then
34196 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34197 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34198 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34199 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34200 echo $ECHO_N "(cached) $ECHO_C" >&6
34202 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34203 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34205 # Is the header compilable?
34206 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
34207 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
34208 cat >conftest.$ac_ext <<_ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h. */
34214 $ac_includes_default
34215 #include <X11/Xlib.h>
34217 rm -f conftest.$ac_objext
34218 if { (ac_try="$ac_compile"
34219 case "(($ac_try" in
34220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34221 *) ac_try_echo=$ac_try;;
34223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34224 (eval "$ac_compile") 2>conftest.er1
34226 grep -v '^
*+' conftest.er1 >conftest.err
34228 cat conftest.err >&5
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); } &&
34231 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
34232 { (case "(($ac_try" in
34233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_try") 2>&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; } &&
34241 { ac_try='test -s conftest.
$ac_objext'
34242 { (case "(($ac_try" in
34243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34244 *) ac_try_echo=$ac_try;;
34246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34247 (eval "$ac_try") 2>&5
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; }; then
34251 ac_header_compiler=yes
34253 echo "$as_me: failed program was:" >&5
34254 sed 's
/^
/|
/' conftest.$ac_ext >&5
34256 ac_header_compiler=no
34259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34261 echo "${ECHO_T}$ac_header_compiler" >&6; }
34263 # Is the header present?
34264 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
34265 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
34266 cat >conftest.$ac_ext <<_ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h. */
34272 #include <X11/Xlib.h>
34274 if { (ac_try="$ac_cpp conftest.$ac_ext"
34275 case "(($ac_try" in
34276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34277 *) ac_try_echo=$ac_try;;
34279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34282 grep -v '^
*+' conftest.er1 >conftest.err
34284 cat conftest.err >&5
34285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286 (exit $ac_status); } >/dev/null; then
34287 if test -s conftest.err; then
34288 ac_cpp_err=$ac_c_preproc_warn_flag
34289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34296 if test -z "$ac_cpp_err"; then
34297 ac_header_preproc=yes
34299 echo "$as_me: failed program was:" >&5
34300 sed 's
/^
/|
/' conftest.$ac_ext >&5
34302 ac_header_preproc=no
34305 rm -f conftest.err conftest.$ac_ext
34306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34307 echo "${ECHO_T}$ac_header_preproc" >&6; }
34309 # So? What about this header?
34310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34312 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34313 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34314 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result
" >&5
34315 echo "$as_me: WARNING
: X11
/Xlib.h
: proceeding with the compiler
's result" >&2;}
34316 ac_header_preproc=yes
34319 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
34320 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
34321 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
34322 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
34323 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
34324 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
34325 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
34326 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34327 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result
" >&5
34328 echo "$as_me: WARNING
: X11
/Xlib.h
: proceeding with the preprocessor
's result" >&2;}
34329 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
34330 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
34334 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34335 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34336 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34337 echo $ECHO_N "(cached) $ECHO_C" >&6
34339 ac_cv_header_X11_Xlib_h=$ac_header_preproc
34341 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34342 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34345 if test $ac_cv_header_X11_Xlib_h = yes; then
34352 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34353 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
34354 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
34355 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34356 echo $ECHO_N "(cached) $ECHO_C" >&6
34358 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
34359 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
34361 # Is the header compilable?
34362 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
34363 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
34364 cat >conftest.$ac_ext <<_ACEOF
34367 cat confdefs.h >>conftest.$ac_ext
34368 cat >>conftest.$ac_ext <<_ACEOF
34369 /* end confdefs.h. */
34370 $ac_includes_default
34371 #include <X11/Xutil.h>
34373 rm -f conftest.$ac_objext
34374 if { (ac_try="$ac_compile"
34375 case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_compile") 2>conftest.er1
34382 grep -v '^
*+' conftest.er1 >conftest.err
34384 cat conftest.err >&5
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); } &&
34387 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
34388 { (case "(($ac_try" in
34389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390 *) ac_try_echo=$ac_try;;
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393 (eval "$ac_try") 2>&5
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); }; } &&
34397 { ac_try='test -s conftest.
$ac_objext'
34398 { (case "(($ac_try" in
34399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34400 *) ac_try_echo=$ac_try;;
34402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34403 (eval "$ac_try") 2>&5
34405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406 (exit $ac_status); }; }; then
34407 ac_header_compiler=yes
34409 echo "$as_me: failed program was:" >&5
34410 sed 's
/^
/|
/' conftest.$ac_ext >&5
34412 ac_header_compiler=no
34415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34417 echo "${ECHO_T}$ac_header_compiler" >&6; }
34419 # Is the header present?
34420 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
34421 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
34422 cat >conftest.$ac_ext <<_ACEOF
34425 cat confdefs.h >>conftest.$ac_ext
34426 cat >>conftest.$ac_ext <<_ACEOF
34427 /* end confdefs.h. */
34428 #include <X11/Xutil.h>
34430 if { (ac_try="$ac_cpp conftest.$ac_ext"
34431 case "(($ac_try" in
34432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433 *) ac_try_echo=$ac_try;;
34435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34438 grep -v '^
*+' conftest.er1 >conftest.err
34440 cat conftest.err >&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); } >/dev/null; then
34443 if test -s conftest.err; then
34444 ac_cpp_err=$ac_c_preproc_warn_flag
34445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34452 if test -z "$ac_cpp_err"; then
34453 ac_header_preproc=yes
34455 echo "$as_me: failed program was:" >&5
34456 sed 's
/^
/|
/' conftest.$ac_ext >&5
34458 ac_header_preproc=no
34461 rm -f conftest.err conftest.$ac_ext
34462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34463 echo "${ECHO_T}$ac_header_preproc" >&6; }
34465 # So? What about this header?
34466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34468 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
34469 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34470 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result
" >&5
34471 echo "$as_me: WARNING
: X11
/Xutil.h
: proceeding with the compiler
's result" >&2;}
34472 ac_header_preproc=yes
34475 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
34476 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
34477 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
34478 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
34479 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
34480 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
34481 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
34482 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
34483 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result
" >&5
34484 echo "$as_me: WARNING
: X11
/Xutil.h
: proceeding with the preprocessor
's result" >&2;}
34485 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
34486 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
34490 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
34491 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
34492 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34495 ac_cv_header_X11_Xutil_h=$ac_header_preproc
34497 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
34498 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
34501 if test $ac_cv_header_X11_Xutil_h = yes; then
34508 if test $can_compile_x11 = 1; then
34513 if test "$with_rfb" != yes; then
34516 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
34517 if test "${ac_cv_header_winsock_h+set}" = set; then
34518 { echo "$as_me:$LINENO: checking for winsock.h" >&5
34519 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
34520 if test "${ac_cv_header_winsock_h+set}" = set; then
34521 echo $ECHO_N "(cached) $ECHO_C" >&6
34523 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
34524 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
34526 # Is the header compilable?
34527 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
34528 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
34529 cat >conftest.$ac_ext <<_ACEOF
34532 cat confdefs.h >>conftest.$ac_ext
34533 cat >>conftest.$ac_ext <<_ACEOF
34534 /* end confdefs.h. */
34535 $ac_includes_default
34536 #include <winsock.h>
34538 rm -f conftest.$ac_objext
34539 if { (ac_try="$ac_compile"
34540 case "(($ac_try" in
34541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34542 *) ac_try_echo=$ac_try;;
34544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34545 (eval "$ac_compile") 2>conftest.er1
34547 grep -v '^
*+' conftest.er1 >conftest.err
34549 cat conftest.err >&5
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); } &&
34552 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
34553 { (case "(($ac_try" in
34554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34555 *) ac_try_echo=$ac_try;;
34557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558 (eval "$ac_try") 2>&5
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; } &&
34562 { ac_try='test -s conftest.
$ac_objext'
34563 { (case "(($ac_try" in
34564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34565 *) ac_try_echo=$ac_try;;
34567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34568 (eval "$ac_try") 2>&5
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; }; then
34572 ac_header_compiler=yes
34574 echo "$as_me: failed program was:" >&5
34575 sed 's
/^
/|
/' conftest.$ac_ext >&5
34577 ac_header_compiler=no
34580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34582 echo "${ECHO_T}$ac_header_compiler" >&6; }
34584 # Is the header present?
34585 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
34586 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
34587 cat >conftest.$ac_ext <<_ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h. */
34593 #include <winsock.h>
34595 if { (ac_try="$ac_cpp conftest.$ac_ext"
34596 case "(($ac_try" in
34597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34598 *) ac_try_echo=$ac_try;;
34600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34603 grep -v '^
*+' conftest.er1 >conftest.err
34605 cat conftest.err >&5
34606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); } >/dev/null; then
34608 if test -s conftest.err; then
34609 ac_cpp_err=$ac_c_preproc_warn_flag
34610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34617 if test -z "$ac_cpp_err"; then
34618 ac_header_preproc=yes
34620 echo "$as_me: failed program was:" >&5
34621 sed 's
/^
/|
/' conftest.$ac_ext >&5
34623 ac_header_preproc=no
34626 rm -f conftest.err conftest.$ac_ext
34627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34628 echo "${ECHO_T}$ac_header_preproc" >&6; }
34630 # So? What about this header?
34631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34633 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
34634 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34635 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result
" >&5
34636 echo "$as_me: WARNING
: winsock.h
: proceeding with the compiler
's result" >&2;}
34637 ac_header_preproc=yes
34640 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
34641 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
34642 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
34643 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
34644 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
34645 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
34646 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
34647 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
34648 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result
" >&5
34649 echo "$as_me: WARNING
: winsock.h
: proceeding with the preprocessor
's result" >&2;}
34650 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
34651 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
34655 { echo "$as_me:$LINENO: checking for winsock.h" >&5
34656 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
34657 if test "${ac_cv_header_winsock_h+set}" = set; then
34658 echo $ECHO_N "(cached) $ECHO_C" >&6
34660 ac_cv_header_winsock_h=$ac_header_preproc
34662 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
34663 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
34666 if test $ac_cv_header_winsock_h = yes; then
34673 if test "${ac_cv_header_process_h+set}" = set; then
34674 { echo "$as_me:$LINENO: checking for process.h" >&5
34675 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
34676 if test "${ac_cv_header_process_h+set}" = set; then
34677 echo $ECHO_N "(cached) $ECHO_C" >&6
34679 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
34680 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
34682 # Is the header compilable?
34683 { echo "$as_me:$LINENO: checking process.h usability" >&5
34684 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
34685 cat >conftest.$ac_ext <<_ACEOF
34688 cat confdefs.h >>conftest.$ac_ext
34689 cat >>conftest.$ac_ext <<_ACEOF
34690 /* end confdefs.h. */
34691 $ac_includes_default
34692 #include <process.h>
34694 rm -f conftest.$ac_objext
34695 if { (ac_try="$ac_compile"
34696 case "(($ac_try" in
34697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698 *) ac_try_echo=$ac_try;;
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701 (eval "$ac_compile") 2>conftest.er1
34703 grep -v '^
*+' conftest.er1 >conftest.err
34705 cat conftest.err >&5
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } &&
34708 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
34709 { (case "(($ac_try" in
34710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34711 *) ac_try_echo=$ac_try;;
34713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34714 (eval "$ac_try") 2>&5
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); }; } &&
34718 { ac_try='test -s conftest.
$ac_objext'
34719 { (case "(($ac_try" in
34720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34721 *) ac_try_echo=$ac_try;;
34723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34724 (eval "$ac_try") 2>&5
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; }; then
34728 ac_header_compiler=yes
34730 echo "$as_me: failed program was:" >&5
34731 sed 's
/^
/|
/' conftest.$ac_ext >&5
34733 ac_header_compiler=no
34736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34738 echo "${ECHO_T}$ac_header_compiler" >&6; }
34740 # Is the header present?
34741 { echo "$as_me:$LINENO: checking process.h presence" >&5
34742 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
34743 cat >conftest.$ac_ext <<_ACEOF
34746 cat confdefs.h >>conftest.$ac_ext
34747 cat >>conftest.$ac_ext <<_ACEOF
34748 /* end confdefs.h. */
34749 #include <process.h>
34751 if { (ac_try="$ac_cpp conftest.$ac_ext"
34752 case "(($ac_try" in
34753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34754 *) ac_try_echo=$ac_try;;
34756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34759 grep -v '^
*+' conftest.er1 >conftest.err
34761 cat conftest.err >&5
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); } >/dev/null; then
34764 if test -s conftest.err; then
34765 ac_cpp_err=$ac_c_preproc_warn_flag
34766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34773 if test -z "$ac_cpp_err"; then
34774 ac_header_preproc=yes
34776 echo "$as_me: failed program was:" >&5
34777 sed 's
/^
/|
/' conftest.$ac_ext >&5
34779 ac_header_preproc=no
34782 rm -f conftest.err conftest.$ac_ext
34783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34784 echo "${ECHO_T}$ac_header_preproc" >&6; }
34786 # So? What about this header?
34787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34789 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
34790 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34791 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result
" >&5
34792 echo "$as_me: WARNING
: process.h
: proceeding with the compiler
's result" >&2;}
34793 ac_header_preproc=yes
34796 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
34797 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
34798 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
34799 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
34800 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
34801 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
34802 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
34803 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
34804 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result
" >&5
34805 echo "$as_me: WARNING
: process.h
: proceeding with the preprocessor
's result" >&2;}
34806 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
34807 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
34811 { echo "$as_me:$LINENO: checking for process.h" >&5
34812 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
34813 if test "${ac_cv_header_process_h+set}" = set; then
34814 echo $ECHO_N "(cached) $ECHO_C" >&6
34816 ac_cv_header_process_h=$ac_header_preproc
34818 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
34819 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
34822 if test $ac_cv_header_process_h = yes; then
34831 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34832 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
34833 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
34834 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34837 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
34838 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
34840 # Is the header compilable?
34841 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
34842 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
34843 cat >conftest.$ac_ext <<_ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h. */
34849 $ac_includes_default
34850 #include <sys/socket.h>
34852 rm -f conftest.$ac_objext
34853 if { (ac_try="$ac_compile"
34854 case "(($ac_try" in
34855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34856 *) ac_try_echo=$ac_try;;
34858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34859 (eval "$ac_compile") 2>conftest.er1
34861 grep -v '^
*+' conftest.er1 >conftest.err
34863 cat conftest.err >&5
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); } &&
34866 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
34867 { (case "(($ac_try" in
34868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34869 *) ac_try_echo=$ac_try;;
34871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34872 (eval "$ac_try") 2>&5
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; } &&
34876 { ac_try='test -s conftest.
$ac_objext'
34877 { (case "(($ac_try" in
34878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34879 *) ac_try_echo=$ac_try;;
34881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34882 (eval "$ac_try") 2>&5
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); }; }; then
34886 ac_header_compiler=yes
34888 echo "$as_me: failed program was:" >&5
34889 sed 's
/^
/|
/' conftest.$ac_ext >&5
34891 ac_header_compiler=no
34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34896 echo "${ECHO_T}$ac_header_compiler" >&6; }
34898 # Is the header present?
34899 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
34900 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
34901 cat >conftest.$ac_ext <<_ACEOF
34904 cat confdefs.h >>conftest.$ac_ext
34905 cat >>conftest.$ac_ext <<_ACEOF
34906 /* end confdefs.h. */
34907 #include <sys/socket.h>
34909 if { (ac_try="$ac_cpp conftest.$ac_ext"
34910 case "(($ac_try" in
34911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912 *) ac_try_echo=$ac_try;;
34914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34917 grep -v '^
*+' conftest.er1 >conftest.err
34919 cat conftest.err >&5
34920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); } >/dev/null; then
34922 if test -s conftest.err; then
34923 ac_cpp_err=$ac_c_preproc_warn_flag
34924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34931 if test -z "$ac_cpp_err"; then
34932 ac_header_preproc=yes
34934 echo "$as_me: failed program was:" >&5
34935 sed 's
/^
/|
/' conftest.$ac_ext >&5
34937 ac_header_preproc=no
34940 rm -f conftest.err conftest.$ac_ext
34941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34942 echo "${ECHO_T}$ac_header_preproc" >&6; }
34944 # So? What about this header?
34945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34947 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
34948 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34949 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result
" >&5
34950 echo "$as_me: WARNING
: sys
/socket.h
: proceeding with the compiler
's result" >&2;}
34951 ac_header_preproc=yes
34954 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
34955 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
34956 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
34957 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
34958 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
34959 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
34960 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
34961 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
34962 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result
" >&5
34963 echo "$as_me: WARNING
: sys
/socket.h
: proceeding with the preprocessor
's result" >&2;}
34964 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
34965 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
34969 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
34970 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
34971 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34974 ac_cv_header_sys_socket_h=$ac_header_preproc
34976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
34977 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
34980 if test $ac_cv_header_sys_socket_h = yes; then
34987 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
34988 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
34989 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
34990 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
34991 echo $ECHO_N "(cached) $ECHO_C" >&6
34993 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
34994 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
34996 # Is the header compilable?
34997 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
34998 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
34999 cat >conftest.$ac_ext <<_ACEOF
35002 cat confdefs.h >>conftest.$ac_ext
35003 cat >>conftest.$ac_ext <<_ACEOF
35004 /* end confdefs.h. */
35005 $ac_includes_default
35006 #include <netinet/tcp.h>
35008 rm -f conftest.$ac_objext
35009 if { (ac_try="$ac_compile"
35010 case "(($ac_try" in
35011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35012 *) ac_try_echo=$ac_try;;
35014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35015 (eval "$ac_compile") 2>conftest.er1
35017 grep -v '^
*+' conftest.er1 >conftest.err
35019 cat conftest.err >&5
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); } &&
35022 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
35023 { (case "(($ac_try" in
35024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35025 *) ac_try_echo=$ac_try;;
35027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35028 (eval "$ac_try") 2>&5
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); }; } &&
35032 { ac_try='test -s conftest.
$ac_objext'
35033 { (case "(($ac_try" in
35034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35035 *) ac_try_echo=$ac_try;;
35037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35038 (eval "$ac_try") 2>&5
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); }; }; then
35042 ac_header_compiler=yes
35044 echo "$as_me: failed program was:" >&5
35045 sed 's
/^
/|
/' conftest.$ac_ext >&5
35047 ac_header_compiler=no
35050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35052 echo "${ECHO_T}$ac_header_compiler" >&6; }
35054 # Is the header present?
35055 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
35056 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
35057 cat >conftest.$ac_ext <<_ACEOF
35060 cat confdefs.h >>conftest.$ac_ext
35061 cat >>conftest.$ac_ext <<_ACEOF
35062 /* end confdefs.h. */
35063 #include <netinet/tcp.h>
35065 if { (ac_try="$ac_cpp conftest.$ac_ext"
35066 case "(($ac_try" in
35067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35068 *) ac_try_echo=$ac_try;;
35070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35073 grep -v '^
*+' conftest.er1 >conftest.err
35075 cat conftest.err >&5
35076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077 (exit $ac_status); } >/dev/null; then
35078 if test -s conftest.err; then
35079 ac_cpp_err=$ac_c_preproc_warn_flag
35080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35087 if test -z "$ac_cpp_err"; then
35088 ac_header_preproc=yes
35090 echo "$as_me: failed program was:" >&5
35091 sed 's
/^
/|
/' conftest.$ac_ext >&5
35093 ac_header_preproc=no
35096 rm -f conftest.err conftest.$ac_ext
35097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35098 echo "${ECHO_T}$ac_header_preproc" >&6; }
35100 # So? What about this header?
35101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35103 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
35104 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35105 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result
" >&5
35106 echo "$as_me: WARNING
: netinet
/tcp.h
: proceeding with the compiler
's result" >&2;}
35107 ac_header_preproc=yes
35110 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
35111 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
35112 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
35113 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
35114 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
35115 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
35116 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
35117 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
35118 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result
" >&5
35119 echo "$as_me: WARNING
: netinet
/tcp.h
: proceeding with the preprocessor
's result" >&2;}
35120 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
35121 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
35125 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
35126 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
35127 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
35128 echo $ECHO_N "(cached) $ECHO_C" >&6
35130 ac_cv_header_netinet_tcp_h=$ac_header_preproc
35132 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
35133 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
35136 if test $ac_cv_header_netinet_tcp_h = yes; then
35143 if test "${ac_cv_header_pthread_h+set}" = set; then
35144 { echo "$as_me:$LINENO: checking for pthread.h" >&5
35145 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
35146 if test "${ac_cv_header_pthread_h+set}" = set; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35149 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
35150 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
35152 # Is the header compilable?
35153 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
35154 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
35155 cat >conftest.$ac_ext <<_ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h. */
35161 $ac_includes_default
35162 #include <pthread.h>
35164 rm -f conftest.$ac_objext
35165 if { (ac_try="$ac_compile"
35166 case "(($ac_try" in
35167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35168 *) ac_try_echo=$ac_try;;
35170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35171 (eval "$ac_compile") 2>conftest.er1
35173 grep -v '^
*+' conftest.er1 >conftest.err
35175 cat conftest.err >&5
35176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177 (exit $ac_status); } &&
35178 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
35179 { (case "(($ac_try" in
35180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35181 *) ac_try_echo=$ac_try;;
35183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35184 (eval "$ac_try") 2>&5
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); }; } &&
35188 { ac_try='test -s conftest.
$ac_objext'
35189 { (case "(($ac_try" in
35190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191 *) ac_try_echo=$ac_try;;
35193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35194 (eval "$ac_try") 2>&5
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; }; then
35198 ac_header_compiler=yes
35200 echo "$as_me: failed program was:" >&5
35201 sed 's
/^
/|
/' conftest.$ac_ext >&5
35203 ac_header_compiler=no
35206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35208 echo "${ECHO_T}$ac_header_compiler" >&6; }
35210 # Is the header present?
35211 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
35212 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
35213 cat >conftest.$ac_ext <<_ACEOF
35216 cat confdefs.h >>conftest.$ac_ext
35217 cat >>conftest.$ac_ext <<_ACEOF
35218 /* end confdefs.h. */
35219 #include <pthread.h>
35221 if { (ac_try="$ac_cpp conftest.$ac_ext"
35222 case "(($ac_try" in
35223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35224 *) ac_try_echo=$ac_try;;
35226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35229 grep -v '^
*+' conftest.er1 >conftest.err
35231 cat conftest.err >&5
35232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233 (exit $ac_status); } >/dev/null; then
35234 if test -s conftest.err; then
35235 ac_cpp_err=$ac_c_preproc_warn_flag
35236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35243 if test -z "$ac_cpp_err"; then
35244 ac_header_preproc=yes
35246 echo "$as_me: failed program was:" >&5
35247 sed 's
/^
/|
/' conftest.$ac_ext >&5
35249 ac_header_preproc=no
35252 rm -f conftest.err conftest.$ac_ext
35253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35254 echo "${ECHO_T}$ac_header_preproc" >&6; }
35256 # So? What about this header?
35257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35259 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
35260 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35261 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result
" >&5
35262 echo "$as_me: WARNING
: pthread.h
: proceeding with the compiler
's result" >&2;}
35263 ac_header_preproc=yes
35266 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
35267 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
35268 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
35269 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
35270 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
35271 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
35272 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
35273 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
35274 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result
" >&5
35275 echo "$as_me: WARNING
: pthread.h
: proceeding with the preprocessor
's result" >&2;}
35276 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
35277 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
35281 { echo "$as_me:$LINENO: checking for pthread.h" >&5
35282 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
35283 if test "${ac_cv_header_pthread_h+set}" = set; then
35284 echo $ECHO_N "(cached) $ECHO_C" >&6
35286 ac_cv_header_pthread_h=$ac_header_preproc
35288 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
35289 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
35292 if test $ac_cv_header_pthread_h = yes; then
35301 if test $can_compile_rfb = 1; then
35306 if test "$with_term" != yes; then
35308 if test "${ac_cv_header_curses_h+set}" = set; then
35309 { echo "$as_me:$LINENO: checking for curses.h" >&5
35310 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35311 if test "${ac_cv_header_curses_h+set}" = set; then
35312 echo $ECHO_N "(cached) $ECHO_C" >&6
35314 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35315 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35317 # Is the header compilable?
35318 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35319 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35320 cat >conftest.$ac_ext <<_ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h. */
35326 $ac_includes_default
35327 #include <curses.h>
35329 rm -f conftest.$ac_objext
35330 if { (ac_try="$ac_compile"
35331 case "(($ac_try" in
35332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35333 *) ac_try_echo=$ac_try;;
35335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35336 (eval "$ac_compile") 2>conftest.er1
35338 grep -v '^
*+' conftest.er1 >conftest.err
35340 cat conftest.err >&5
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); } &&
35343 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
35344 { (case "(($ac_try" in
35345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35346 *) ac_try_echo=$ac_try;;
35348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35349 (eval "$ac_try") 2>&5
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); }; } &&
35353 { ac_try='test -s conftest.
$ac_objext'
35354 { (case "(($ac_try" in
35355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35356 *) ac_try_echo=$ac_try;;
35358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35359 (eval "$ac_try") 2>&5
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); }; }; then
35363 ac_header_compiler=yes
35365 echo "$as_me: failed program was:" >&5
35366 sed 's
/^
/|
/' conftest.$ac_ext >&5
35368 ac_header_compiler=no
35371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35373 echo "${ECHO_T}$ac_header_compiler" >&6; }
35375 # Is the header present?
35376 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35377 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35378 cat >conftest.$ac_ext <<_ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h. */
35384 #include <curses.h>
35386 if { (ac_try="$ac_cpp conftest.$ac_ext"
35387 case "(($ac_try" in
35388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35389 *) ac_try_echo=$ac_try;;
35391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35394 grep -v '^
*+' conftest.er1 >conftest.err
35396 cat conftest.err >&5
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); } >/dev/null; then
35399 if test -s conftest.err; then
35400 ac_cpp_err=$ac_c_preproc_warn_flag
35401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35408 if test -z "$ac_cpp_err"; then
35409 ac_header_preproc=yes
35411 echo "$as_me: failed program was:" >&5
35412 sed 's
/^
/|
/' conftest.$ac_ext >&5
35414 ac_header_preproc=no
35417 rm -f conftest.err conftest.$ac_ext
35418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35419 echo "${ECHO_T}$ac_header_preproc" >&6; }
35421 # So? What about this header?
35422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35424 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35425 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35426 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result
" >&5
35427 echo "$as_me: WARNING
: curses.h
: proceeding with the compiler
's result" >&2;}
35428 ac_header_preproc=yes
35431 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35432 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35433 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35434 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35435 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35436 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35437 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35438 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35439 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result
" >&5
35440 echo "$as_me: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&2;}
35441 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35442 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35446 { echo "$as_me:$LINENO: checking for curses.h" >&5
35447 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35448 if test "${ac_cv_header_curses_h+set}" = set; then
35449 echo $ECHO_N "(cached) $ECHO_C" >&6
35451 ac_cv_header_curses_h=$ac_header_preproc
35453 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35454 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35457 if test $ac_cv_header_curses_h = yes; then
35464 if test "${ac_cv_header_signal_h+set}" = set; then
35465 { echo "$as_me:$LINENO: checking for signal.h" >&5
35466 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
35467 if test "${ac_cv_header_signal_h+set}" = set; then
35468 echo $ECHO_N "(cached) $ECHO_C" >&6
35470 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
35471 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
35473 # Is the header compilable?
35474 { echo "$as_me:$LINENO: checking signal.h usability" >&5
35475 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
35476 cat >conftest.$ac_ext <<_ACEOF
35479 cat confdefs.h >>conftest.$ac_ext
35480 cat >>conftest.$ac_ext <<_ACEOF
35481 /* end confdefs.h. */
35482 $ac_includes_default
35483 #include <signal.h>
35485 rm -f conftest.$ac_objext
35486 if { (ac_try="$ac_compile"
35487 case "(($ac_try" in
35488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35489 *) ac_try_echo=$ac_try;;
35491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35492 (eval "$ac_compile") 2>conftest.er1
35494 grep -v '^
*+' conftest.er1 >conftest.err
35496 cat conftest.err >&5
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } &&
35499 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
35500 { (case "(($ac_try" in
35501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35502 *) ac_try_echo=$ac_try;;
35504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35505 (eval "$ac_try") 2>&5
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); }; } &&
35509 { ac_try='test -s conftest.
$ac_objext'
35510 { (case "(($ac_try" in
35511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35512 *) ac_try_echo=$ac_try;;
35514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35515 (eval "$ac_try") 2>&5
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); }; }; then
35519 ac_header_compiler=yes
35521 echo "$as_me: failed program was:" >&5
35522 sed 's
/^
/|
/' conftest.$ac_ext >&5
35524 ac_header_compiler=no
35527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35529 echo "${ECHO_T}$ac_header_compiler" >&6; }
35531 # Is the header present?
35532 { echo "$as_me:$LINENO: checking signal.h presence" >&5
35533 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
35534 cat >conftest.$ac_ext <<_ACEOF
35537 cat confdefs.h >>conftest.$ac_ext
35538 cat >>conftest.$ac_ext <<_ACEOF
35539 /* end confdefs.h. */
35540 #include <signal.h>
35542 if { (ac_try="$ac_cpp conftest.$ac_ext"
35543 case "(($ac_try" in
35544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35545 *) ac_try_echo=$ac_try;;
35547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35550 grep -v '^
*+' conftest.er1 >conftest.err
35552 cat conftest.err >&5
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); } >/dev/null; then
35555 if test -s conftest.err; then
35556 ac_cpp_err=$ac_c_preproc_warn_flag
35557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35564 if test -z "$ac_cpp_err"; then
35565 ac_header_preproc=yes
35567 echo "$as_me: failed program was:" >&5
35568 sed 's
/^
/|
/' conftest.$ac_ext >&5
35570 ac_header_preproc=no
35573 rm -f conftest.err conftest.$ac_ext
35574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35575 echo "${ECHO_T}$ac_header_preproc" >&6; }
35577 # So? What about this header?
35578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35580 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
35581 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35582 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result
" >&5
35583 echo "$as_me: WARNING
: signal.h
: proceeding with the compiler
's result" >&2;}
35584 ac_header_preproc=yes
35587 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
35588 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
35589 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
35590 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
35591 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
35592 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
35593 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
35594 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
35595 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result
" >&5
35596 echo "$as_me: WARNING
: signal.h
: proceeding with the preprocessor
's result" >&2;}
35597 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
35598 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
35602 { echo "$as_me:$LINENO: checking for signal.h" >&5
35603 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
35604 if test "${ac_cv_header_signal_h+set}" = set; then
35605 echo $ECHO_N "(cached) $ECHO_C" >&6
35607 ac_cv_header_signal_h=$ac_header_preproc
35609 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
35610 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
35613 if test $ac_cv_header_signal_h = yes; then
35620 if test $can_compile_term = 1; then
35625 if test "$with_nogui" != yes; then
35628 fi # end of if $with_all_libs = yes
35630 { echo "$as_me:$LINENO: checking for idle hack" >&5
35631 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
35632 # Check whether --enable-idle-hack was given.
35633 if test "${enable_idle_hack+set}" = set; then
35634 enableval=$enable_idle_hack; if test "$enableval" = yes; then
35635 { echo "$as_me:$LINENO: result: yes" >&5
35636 echo "${ECHO_T}yes" >&6; }
35637 cat >>confdefs.h <<\_ACEOF
35638 #define BX_USE_IDLE_HACK 1
35642 { echo "$as_me:$LINENO: result: no" >&5
35643 echo "${ECHO_T}no" >&6; }
35644 cat >>confdefs.h <<\_ACEOF
35645 #define BX_USE_IDLE_HACK 0
35651 { echo "$as_me:$LINENO: result: no" >&5
35652 echo "${ECHO_T}no" >&6; }
35653 cat >>confdefs.h <<\_ACEOF
35654 #define BX_USE_IDLE_HACK 0
35663 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35664 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
35665 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
35666 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35667 echo $ECHO_N "(cached) $ECHO_C" >&6
35669 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
35670 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
35672 # Is the header compilable?
35673 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
35674 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
35675 cat >conftest.$ac_ext <<_ACEOF
35678 cat confdefs.h >>conftest.$ac_ext
35679 cat >>conftest.$ac_ext <<_ACEOF
35680 /* end confdefs.h. */
35681 $ac_includes_default
35684 rm -f conftest.$ac_objext
35685 if { (ac_try="$ac_compile"
35686 case "(($ac_try" in
35687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35688 *) ac_try_echo=$ac_try;;
35690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35691 (eval "$ac_compile") 2>conftest.er1
35693 grep -v '^
*+' conftest.er1 >conftest.err
35695 cat conftest.err >&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); } &&
35698 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
35699 { (case "(($ac_try" in
35700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35701 *) ac_try_echo=$ac_try;;
35703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35704 (eval "$ac_try") 2>&5
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); }; } &&
35708 { ac_try='test -s conftest.
$ac_objext'
35709 { (case "(($ac_try" in
35710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35711 *) ac_try_echo=$ac_try;;
35713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35714 (eval "$ac_try") 2>&5
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); }; }; then
35718 ac_header_compiler=yes
35720 echo "$as_me: failed program was:" >&5
35721 sed 's
/^
/|
/' conftest.$ac_ext >&5
35723 ac_header_compiler=no
35726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35728 echo "${ECHO_T}$ac_header_compiler" >&6; }
35730 # Is the header present?
35731 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
35732 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
35733 cat >conftest.$ac_ext <<_ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h. */
35741 if { (ac_try="$ac_cpp conftest.$ac_ext"
35742 case "(($ac_try" in
35743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35744 *) ac_try_echo=$ac_try;;
35746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35749 grep -v '^
*+' conftest.er1 >conftest.err
35751 cat conftest.err >&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } >/dev/null; then
35754 if test -s conftest.err; then
35755 ac_cpp_err=$ac_c_preproc_warn_flag
35756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35763 if test -z "$ac_cpp_err"; then
35764 ac_header_preproc=yes
35766 echo "$as_me: failed program was:" >&5
35767 sed 's
/^
/|
/' conftest.$ac_ext >&5
35769 ac_header_preproc=no
35772 rm -f conftest.err conftest.$ac_ext
35773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35774 echo "${ECHO_T}$ac_header_preproc" >&6; }
35776 # So? What about this header?
35777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35779 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
35780 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35781 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result
" >&5
35782 echo "$as_me: WARNING
: dlfcn.h
: proceeding with the compiler
's result" >&2;}
35783 ac_header_preproc=yes
35786 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
35787 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
35788 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
35789 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
35790 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
35791 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
35792 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
35793 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
35794 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result
" >&5
35795 echo "$as_me: WARNING
: dlfcn.h
: proceeding with the preprocessor
's result" >&2;}
35796 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
35797 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
35801 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
35802 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
35803 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35804 echo $ECHO_N "(cached) $ECHO_C" >&6
35806 ac_cv_header_dlfcn_h=$ac_header_preproc
35808 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
35809 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
35812 if test $ac_cv_header_dlfcn_h = yes; then
35813 cat >>confdefs.h <<\_ACEOF
35814 #define BX_HAVE_DLFCN_H 1
35820 if test "${ac_cv_header_assert_h+set}" = set; then
35821 { echo "$as_me:$LINENO: checking for assert.h" >&5
35822 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
35823 if test "${ac_cv_header_assert_h+set}" = set; then
35824 echo $ECHO_N "(cached) $ECHO_C" >&6
35826 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
35827 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
35829 # Is the header compilable?
35830 { echo "$as_me:$LINENO: checking assert.h usability" >&5
35831 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
35832 cat >conftest.$ac_ext <<_ACEOF
35835 cat confdefs.h >>conftest.$ac_ext
35836 cat >>conftest.$ac_ext <<_ACEOF
35837 /* end confdefs.h. */
35838 $ac_includes_default
35839 #include <assert.h>
35841 rm -f conftest.$ac_objext
35842 if { (ac_try="$ac_compile"
35843 case "(($ac_try" in
35844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35845 *) ac_try_echo=$ac_try;;
35847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35848 (eval "$ac_compile") 2>conftest.er1
35850 grep -v '^
*+' conftest.er1 >conftest.err
35852 cat conftest.err >&5
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); } &&
35855 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
35856 { (case "(($ac_try" in
35857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35858 *) ac_try_echo=$ac_try;;
35860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35861 (eval "$ac_try") 2>&5
35863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864 (exit $ac_status); }; } &&
35865 { ac_try='test -s conftest.
$ac_objext'
35866 { (case "(($ac_try" in
35867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35868 *) ac_try_echo=$ac_try;;
35870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35871 (eval "$ac_try") 2>&5
35873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874 (exit $ac_status); }; }; then
35875 ac_header_compiler=yes
35877 echo "$as_me: failed program was:" >&5
35878 sed 's
/^
/|
/' conftest.$ac_ext >&5
35880 ac_header_compiler=no
35883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35885 echo "${ECHO_T}$ac_header_compiler" >&6; }
35887 # Is the header present?
35888 { echo "$as_me:$LINENO: checking assert.h presence" >&5
35889 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
35890 cat >conftest.$ac_ext <<_ACEOF
35893 cat confdefs.h >>conftest.$ac_ext
35894 cat >>conftest.$ac_ext <<_ACEOF
35895 /* end confdefs.h. */
35896 #include <assert.h>
35898 if { (ac_try="$ac_cpp conftest.$ac_ext"
35899 case "(($ac_try" in
35900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901 *) ac_try_echo=$ac_try;;
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35906 grep -v '^
*+' conftest.er1 >conftest.err
35908 cat conftest.err >&5
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } >/dev/null; then
35911 if test -s conftest.err; then
35912 ac_cpp_err=$ac_c_preproc_warn_flag
35913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35920 if test -z "$ac_cpp_err"; then
35921 ac_header_preproc=yes
35923 echo "$as_me: failed program was:" >&5
35924 sed 's
/^
/|
/' conftest.$ac_ext >&5
35926 ac_header_preproc=no
35929 rm -f conftest.err conftest.$ac_ext
35930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35931 echo "${ECHO_T}$ac_header_preproc" >&6; }
35933 # So? What about this header?
35934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35936 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
35937 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35938 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result
" >&5
35939 echo "$as_me: WARNING
: assert.h
: proceeding with the compiler
's result" >&2;}
35940 ac_header_preproc=yes
35943 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
35944 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
35945 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
35946 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
35947 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
35948 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
35949 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
35950 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
35951 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result
" >&5
35952 echo "$as_me: WARNING
: assert.h
: proceeding with the preprocessor
's result" >&2;}
35953 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
35954 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
35958 { echo "$as_me:$LINENO: checking for assert.h" >&5
35959 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
35960 if test "${ac_cv_header_assert_h+set}" = set; then
35961 echo $ECHO_N "(cached) $ECHO_C" >&6
35963 ac_cv_header_assert_h=$ac_header_preproc
35965 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
35966 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
35969 if test $ac_cv_header_assert_h = yes; then
35970 cat >>confdefs.h <<\_ACEOF
35971 #define HAVE_ASSERT_H 1
35978 { echo "$as_me:$LINENO: checking for plugins support" >&5
35979 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
35980 # Check whether --enable-plugins was given.
35981 if test "${enable_plugins+set}" = set; then
35982 enableval=$enable_plugins; if test "$enableval" = yes; then
35995 if test "$bx_plugins" = 1; then
35996 { echo "$as_me:$LINENO: result: yes" >&5
35997 echo "${ECHO_T}yes" >&6; }
35998 cat >>confdefs.h <<\_ACEOF
35999 #define BX_PLUGINS 1
36002 GUI_NON_PLUGIN_OBJS='$
(OBJS_THAT_CANNOT_BE_PLUGINS
)'
36003 GUI_PLUGIN_OBJS='$
(OBJS_THAT_CAN_BE_PLUGINS
)'
36004 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
36005 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
36006 # by special link rules for the plugins that they support.
36007 LIBS="$LIBS $LIBADD_DL"
36008 PLUGIN_VAR='ltdl.o
'
36009 PLUGIN_TARGET=bochs_plugins
36010 INSTALL_PLUGINS_VAR=install_libtool_plugins
36011 NONPLUGIN_GUI_LINK_OPTS=''
36013 { echo "$as_me:$LINENO: result: no" >&5
36014 echo "${ECHO_T}no" >&6; }
36016 cat >>confdefs.h <<\_ACEOF
36017 #define BX_PLUGINS 0
36020 GUI_NON_PLUGIN_OBJS='$
(OBJS_THAT_CANNOT_BE_PLUGINS
) $
(OBJS_THAT_CAN_BE_PLUGINS
) $
(OBJS_THAT_SUPPORT_OTHER_PLUGINS
)'
36022 NONPLUGIN_GUI_LINK_OPTS='$
(GUI_LINK_OPTS
)'
36027 # copy gui variables into iodev variables. Later, we will add to the gui
36028 # objs list, according to which display libraries are enabled.
36029 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
36030 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
36032 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
36033 # It is provided by a library called dlcompat.
36034 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
36036 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
36038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36039 echo $ECHO_N "(cached) $ECHO_C" >&6
36041 ac_check_lib_save_LIBS=$LIBS
36043 cat >conftest.$ac_ext <<_ACEOF
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36050 /* Override any GCC internal prototype to avoid an error.
36051 Use char because int might match the return type of a GCC
36052 builtin and then its argument prototype would still apply. */
36065 rm -f conftest.$ac_objext conftest$ac_exeext
36066 if { (ac_try="$ac_link"
36067 case "(($ac_try" in
36068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36069 *) ac_try_echo=$ac_try;;
36071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36072 (eval "$ac_link") 2>conftest.er1
36074 grep -v '^
*+' conftest.er1 >conftest.err
36076 cat conftest.err >&5
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); } &&
36079 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
36080 { (case "(($ac_try" in
36081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36082 *) ac_try_echo=$ac_try;;
36084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36085 (eval "$ac_try") 2>&5
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); }; } &&
36089 { ac_try='test -s conftest
$ac_exeext'
36090 { (case "(($ac_try" in
36091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36092 *) ac_try_echo=$ac_try;;
36094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36095 (eval "$ac_try") 2>&5
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; }; then
36099 ac_cv_lib_dl_dlopen=yes
36101 echo "$as_me: failed program was:" >&5
36102 sed 's
/^
/|
/' conftest.$ac_ext >&5
36104 ac_cv_lib_dl_dlopen=no
36107 rm -f core conftest.err conftest.$ac_objext \
36108 conftest$ac_exeext conftest.$ac_ext
36109 LIBS=$ac_check_lib_save_LIBS
36111 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36112 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
36113 if test $ac_cv_lib_dl_dlopen = yes; then
36117 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
36118 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
36119 if test "$have_dlopen" = 0; then
36120 { echo "$as_me:$LINENO: result: no" >&5
36121 echo "${ECHO_T}no" >&6; }
36122 { { echo "$as_me:$LINENO: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&5
36123 echo "$as_me: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&2;}
36124 { (exit 1); exit 1; }; }
36126 { echo "$as_me:$LINENO: result: yes" >&5
36127 echo "${ECHO_T}yes" >&6; }
36131 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
36132 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
36133 cat >conftest.$ac_ext <<_ACEOF
36136 cat confdefs.h >>conftest.$ac_ext
36137 cat >>conftest.$ac_ext <<_ACEOF
36138 /* end confdefs.h. */
36148 rm -f conftest.$ac_objext
36149 if { (ac_try="$ac_compile"
36150 case "(($ac_try" in
36151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36152 *) ac_try_echo=$ac_try;;
36154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36155 (eval "$ac_compile") 2>conftest.er1
36157 grep -v '^
*+' conftest.er1 >conftest.err
36159 cat conftest.err >&5
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); } &&
36162 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
36163 { (case "(($ac_try" in
36164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36165 *) ac_try_echo=$ac_try;;
36167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36168 (eval "$ac_try") 2>&5
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); }; } &&
36172 { ac_try='test -s conftest.
$ac_objext'
36173 { (case "(($ac_try" in
36174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36175 *) ac_try_echo=$ac_try;;
36177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36178 (eval "$ac_try") 2>&5
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); }; }; then
36182 { echo "$as_me:$LINENO: result: yes" >&5
36183 echo "${ECHO_T}yes" >&6; }
36185 echo "$as_me: failed program was:" >&5
36186 sed 's
/^
/|
/' conftest.$ac_ext >&5
36189 { echo "$as_me:$LINENO: result: no" >&5
36190 echo "${ECHO_T}no" >&6; }
36191 cat >>confdefs.h <<\_ACEOF
36192 #define BX_NO_BLANK_LABELS 1
36198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36200 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
36201 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
36202 cat >conftest.$ac_ext <<_ACEOF
36205 cat confdefs.h >>conftest.$ac_ext
36206 cat >>conftest.$ac_ext <<_ACEOF
36207 /* end confdefs.h. */
36217 rm -f conftest.$ac_objext
36218 if { (ac_try="$ac_compile"
36219 case "(($ac_try" in
36220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221 *) ac_try_echo=$ac_try;;
36223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36224 (eval "$ac_compile") 2>conftest.er1
36226 grep -v '^
*+' conftest.er1 >conftest.err
36228 cat conftest.err >&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } &&
36231 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
36232 { (case "(($ac_try" in
36233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36234 *) ac_try_echo=$ac_try;;
36236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36237 (eval "$ac_try") 2>&5
36239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240 (exit $ac_status); }; } &&
36241 { ac_try='test -s conftest.
$ac_objext'
36242 { (case "(($ac_try" in
36243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36244 *) ac_try_echo=$ac_try;;
36246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36247 (eval "$ac_try") 2>&5
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; }; then
36251 { echo "$as_me:$LINENO: result: yes" >&5
36252 echo "${ECHO_T}yes" >&6; }
36254 echo "$as_me: failed program was:" >&5
36255 sed 's
/^
/|
/' conftest.$ac_ext >&5
36258 { echo "$as_me:$LINENO: result: no" >&5
36259 echo "${ECHO_T}no" >&6; }
36260 cat >>confdefs.h <<\_ACEOF
36261 #define BX_64BIT_CONSTANTS_USE_LL 0
36267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36270 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
36271 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
36272 # Check whether --enable-x86-64 was given.
36273 if test "${enable_x86_64+set}" = set; then
36274 enableval=$enable_x86_64; if test "$enableval" = yes; then
36275 { echo "$as_me:$LINENO: result: yes" >&5
36276 echo "${ECHO_T}yes" >&6; }
36278 cat >>confdefs.h <<\_ACEOF
36279 #define BX_SUPPORT_X86_64 1
36284 { echo "$as_me:$LINENO: result: no" >&5
36285 echo "${ECHO_T}no" >&6; }
36287 cat >>confdefs.h <<\_ACEOF
36288 #define BX_SUPPORT_X86_64 0
36295 { echo "$as_me:$LINENO: result: no" >&5
36296 echo "${ECHO_T}no" >&6; }
36298 cat >>confdefs.h <<\_ACEOF
36299 #define BX_SUPPORT_X86_64 0
36309 { echo "$as_me:$LINENO: checking for SMP support" >&5
36310 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
36311 # Check whether --enable-smp was given.
36312 if test "${enable_smp+set}" = set; then
36313 enableval=$enable_smp; if test "$enableval" = yes; then
36314 { echo "$as_me:$LINENO: result: yes" >&5
36315 echo "${ECHO_T}yes" >&6; }
36316 cat >>confdefs.h <<\_ACEOF
36317 #define BX_SUPPORT_SMP 1
36320 cat >>confdefs.h <<\_ACEOF
36321 #define BX_USE_CPU_SMF 0
36326 { echo "$as_me:$LINENO: result: no" >&5
36327 echo "${ECHO_T}no" >&6; }
36328 cat >>confdefs.h <<\_ACEOF
36329 #define BX_SUPPORT_SMP 0
36336 { echo "$as_me:$LINENO: result: no" >&5
36337 echo "${ECHO_T}no" >&6; }
36338 cat >>confdefs.h <<\_ACEOF
36339 #define BX_SUPPORT_SMP 0
36347 { echo "$as_me:$LINENO: checking for cpu level" >&5
36348 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
36349 # Check whether --enable-cpu-level was given.
36350 if test "${enable_cpu_level+set}" = set; then
36351 enableval=$enable_cpu_level; case "$enableval" in
36353 { echo "$as_me:$LINENO: result: 3" >&5
36354 echo "${ECHO_T}3" >&6; }
36355 cat >>confdefs.h <<\_ACEOF
36356 #define BX_CPU_LEVEL 3
36359 cat >>confdefs.h <<\_ACEOF
36360 #define BX_CPU_LEVEL_HACKED 3
36365 { echo "$as_me:$LINENO: result: 4" >&5
36366 echo "${ECHO_T}4" >&6; }
36367 cat >>confdefs.h <<\_ACEOF
36368 #define BX_CPU_LEVEL 4
36371 cat >>confdefs.h <<\_ACEOF
36372 #define BX_CPU_LEVEL_HACKED 4
36377 { echo "$as_me:$LINENO: result: 5" >&5
36378 echo "${ECHO_T}5" >&6; }
36379 cat >>confdefs.h <<\_ACEOF
36380 #define BX_CPU_LEVEL 5
36383 cat >>confdefs.h <<\_ACEOF
36384 #define BX_CPU_LEVEL_HACKED 5
36389 { echo "$as_me:$LINENO: result: 6" >&5
36390 echo "${ECHO_T}6" >&6; }
36391 cat >>confdefs.h <<\_ACEOF
36392 #define BX_CPU_LEVEL 6
36395 cat >>confdefs.h <<\_ACEOF
36396 #define BX_CPU_LEVEL_HACKED 6
36402 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
36406 bx_cpu_level=$enableval
36407 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
36408 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
36414 # for multiprocessors or x86-64, cpu level must be 6
36415 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
36416 { echo "$as_me:$LINENO: result: 6" >&5
36417 echo "${ECHO_T}6" >&6; }
36418 cat >>confdefs.h <<\_ACEOF
36419 #define BX_CPU_LEVEL 6
36422 cat >>confdefs.h <<\_ACEOF
36423 #define BX_CPU_LEVEL_HACKED 6
36428 { echo "$as_me:$LINENO: result: 5" >&5
36429 echo "${ECHO_T}5" >&6; }
36430 cat >>confdefs.h <<\_ACEOF
36431 #define BX_CPU_LEVEL 5
36434 cat >>confdefs.h <<\_ACEOF
36435 #define BX_CPU_LEVEL_HACKED 5
36446 { echo "$as_me:$LINENO: checking for APIC support" >&5
36447 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
36448 # Check whether --enable-apic was given.
36449 if test "${enable_apic+set}" = set; then
36450 enableval=$enable_apic; if test "$enableval" = yes; then
36451 { echo "$as_me:$LINENO: result: yes" >&5
36452 echo "${ECHO_T}yes" >&6; }
36453 cat >>confdefs.h <<\_ACEOF
36454 #define BX_SUPPORT_APIC 1
36457 IOAPIC_OBJS='ioapic.o
'
36459 { echo "$as_me:$LINENO: result: no" >&5
36460 echo "${ECHO_T}no" >&6; }
36461 if test "$use_smp" = 1; then
36462 echo "ERROR: With SMP configuration you must use --enable-apic"
36465 cat >>confdefs.h <<\_ACEOF
36466 #define BX_SUPPORT_APIC 0
36474 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
36475 # enable APIC by default, if SMP configuration or if cpulevel>5
36476 { echo "$as_me:$LINENO: result: yes" >&5
36477 echo "${ECHO_T}yes" >&6; }
36478 cat >>confdefs.h <<\_ACEOF
36479 #define BX_SUPPORT_APIC 1
36482 IOAPIC_OBJS='ioapic.o
'
36484 { echo "$as_me:$LINENO: result: no" >&5
36485 echo "${ECHO_T}no" >&6; }
36486 cat >>confdefs.h <<\_ACEOF
36487 #define BX_SUPPORT_APIC 0
36498 if test "${ac_cv_header_zlib_h+set}" = set; then
36499 { echo "$as_me:$LINENO: checking for zlib.h" >&5
36500 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
36501 if test "${ac_cv_header_zlib_h+set}" = set; then
36502 echo $ECHO_N "(cached) $ECHO_C" >&6
36504 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36505 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
36507 # Is the header compilable?
36508 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
36509 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
36510 cat >conftest.$ac_ext <<_ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h. */
36516 $ac_includes_default
36519 rm -f conftest.$ac_objext
36520 if { (ac_try="$ac_compile"
36521 case "(($ac_try" in
36522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36523 *) ac_try_echo=$ac_try;;
36525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36526 (eval "$ac_compile") 2>conftest.er1
36528 grep -v '^
*+' conftest.er1 >conftest.err
36530 cat conftest.err >&5
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); } &&
36533 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
36534 { (case "(($ac_try" in
36535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536 *) ac_try_echo=$ac_try;;
36538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36539 (eval "$ac_try") 2>&5
36541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542 (exit $ac_status); }; } &&
36543 { ac_try='test -s conftest.
$ac_objext'
36544 { (case "(($ac_try" in
36545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36546 *) ac_try_echo=$ac_try;;
36548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36549 (eval "$ac_try") 2>&5
36551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36552 (exit $ac_status); }; }; then
36553 ac_header_compiler=yes
36555 echo "$as_me: failed program was:" >&5
36556 sed 's
/^
/|
/' conftest.$ac_ext >&5
36558 ac_header_compiler=no
36561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36563 echo "${ECHO_T}$ac_header_compiler" >&6; }
36565 # Is the header present?
36566 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
36567 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
36568 cat >conftest.$ac_ext <<_ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h. */
36576 if { (ac_try="$ac_cpp conftest.$ac_ext"
36577 case "(($ac_try" in
36578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36579 *) ac_try_echo=$ac_try;;
36581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36584 grep -v '^
*+' conftest.er1 >conftest.err
36586 cat conftest.err >&5
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); } >/dev/null; then
36589 if test -s conftest.err; then
36590 ac_cpp_err=$ac_c_preproc_warn_flag
36591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36598 if test -z "$ac_cpp_err"; then
36599 ac_header_preproc=yes
36601 echo "$as_me: failed program was:" >&5
36602 sed 's
/^
/|
/' conftest.$ac_ext >&5
36604 ac_header_preproc=no
36607 rm -f conftest.err conftest.$ac_ext
36608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36609 echo "${ECHO_T}$ac_header_preproc" >&6; }
36611 # So? What about this header?
36612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36614 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36615 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36616 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
36617 echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
36618 ac_header_preproc=yes
36621 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36622 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36623 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36624 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36626 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36628 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36629 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
36630 echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
36631 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36632 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36636 { echo "$as_me:$LINENO: checking for zlib.h" >&5
36637 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
36638 if test "${ac_cv_header_zlib_h+set}" = set; then
36639 echo $ECHO_N "(cached) $ECHO_C" >&6
36641 ac_cv_header_zlib_h=$ac_header_preproc
36643 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36644 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
36647 if test $ac_cv_header_zlib_h = yes; then
36648 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
36649 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
36650 if test "${ac_cv_lib_z_gzopen+set}" = set; then
36651 echo $ECHO_N "(cached) $ECHO_C" >&6
36653 ac_check_lib_save_LIBS=$LIBS
36655 cat >conftest.$ac_ext <<_ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h. */
36662 /* Override any GCC internal prototype to avoid an error.
36663 Use char because int might match the return type of a GCC
36664 builtin and then its argument prototype would still apply. */
36677 rm -f conftest.$ac_objext conftest$ac_exeext
36678 if { (ac_try="$ac_link"
36679 case "(($ac_try" in
36680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36681 *) ac_try_echo=$ac_try;;
36683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36684 (eval "$ac_link") 2>conftest.er1
36686 grep -v '^
*+' conftest.er1 >conftest.err
36688 cat conftest.err >&5
36689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690 (exit $ac_status); } &&
36691 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
36692 { (case "(($ac_try" in
36693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36694 *) ac_try_echo=$ac_try;;
36696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36697 (eval "$ac_try") 2>&5
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); }; } &&
36701 { ac_try='test -s conftest
$ac_exeext'
36702 { (case "(($ac_try" in
36703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36704 *) ac_try_echo=$ac_try;;
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707 (eval "$ac_try") 2>&5
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; }; then
36711 ac_cv_lib_z_gzopen=yes
36713 echo "$as_me: failed program was:" >&5
36714 sed 's
/^
/|
/' conftest.$ac_ext >&5
36716 ac_cv_lib_z_gzopen=no
36719 rm -f core conftest.err conftest.$ac_objext \
36720 conftest$ac_exeext conftest.$ac_ext
36721 LIBS=$ac_check_lib_save_LIBS
36723 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
36724 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
36725 if test $ac_cv_lib_z_gzopen = yes; then
36726 cat >>confdefs.h <<\_ACEOF
36727 #define BX_HAVE_ZLIB 1
36736 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
36737 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
36738 # Check whether --enable-compressed-hd was given.
36739 if test "${enable_compressed_hd+set}" = set; then
36740 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
36741 { echo "$as_me:$LINENO: result: yes" >&5
36742 echo "${ECHO_T}yes" >&6; }
36743 cat >>confdefs.h <<\_ACEOF
36744 #define BX_COMPRESSED_HD_SUPPORT 1
36749 { echo "$as_me:$LINENO: result: no" >&5
36750 echo "${ECHO_T}no" >&6; }
36751 cat >>confdefs.h <<\_ACEOF
36752 #define BX_COMPRESSED_HD_SUPPORT 0
36758 { echo "$as_me:$LINENO: result: no" >&5
36759 echo "${ECHO_T}no" >&6; }
36760 cat >>confdefs.h <<\_ACEOF
36761 #define BX_COMPRESSED_HD_SUPPORT 0
36770 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
36771 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
36772 # Check whether --enable-ne2000 was given.
36773 if test "${enable_ne2000+set}" = set; then
36774 enableval=$enable_ne2000; if test "$enableval" = yes; then
36775 { echo "$as_me:$LINENO: result: yes" >&5
36776 echo "${ECHO_T}yes" >&6; }
36777 cat >>confdefs.h <<\_ACEOF
36778 #define BX_SUPPORT_NE2K 1
36784 { echo "$as_me:$LINENO: result: no" >&5
36785 echo "${ECHO_T}no" >&6; }
36786 cat >>confdefs.h <<\_ACEOF
36787 #define BX_SUPPORT_NE2K 0
36795 { echo "$as_me:$LINENO: result: no" >&5
36796 echo "${ECHO_T}no" >&6; }
36797 cat >>confdefs.h <<\_ACEOF
36798 #define BX_SUPPORT_NE2K 0
36809 { echo "$as_me:$LINENO: checking for ACPI support" >&5
36810 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
36811 # Check whether --enable-acpi was given.
36812 if test "${enable_acpi+set}" = set; then
36813 enableval=$enable_acpi; if test "$enableval" = yes; then
36814 { echo "$as_me:$LINENO: result: yes" >&5
36815 echo "${ECHO_T}yes" >&6; }
36816 cat >>confdefs.h <<\_ACEOF
36817 #define BX_SUPPORT_ACPI 1
36821 { echo "$as_me:$LINENO: result: no" >&5
36822 echo "${ECHO_T}no" >&6; }
36823 cat >>confdefs.h <<\_ACEOF
36824 #define BX_SUPPORT_ACPI 0
36830 { echo "$as_me:$LINENO: result: no" >&5
36831 echo "${ECHO_T}no" >&6; }
36832 cat >>confdefs.h <<\_ACEOF
36833 #define BX_SUPPORT_ACPI 0
36842 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
36843 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
36844 # Check whether --enable-pci was given.
36845 if test "${enable_pci+set}" = set; then
36846 enableval=$enable_pci; if test "$enableval" = yes; then
36847 { echo "$as_me:$LINENO: result: yes" >&5
36848 echo "${ECHO_T}yes" >&6; }
36849 cat >>confdefs.h <<\_ACEOF
36850 #define BX_SUPPORT_PCI 1
36854 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o
'
36856 { echo "$as_me:$LINENO: result: no" >&5
36857 echo "${ECHO_T}no" >&6; }
36858 cat >>confdefs.h <<\_ACEOF
36859 #define BX_SUPPORT_PCI 0
36867 { echo "$as_me:$LINENO: result: no" >&5
36868 echo "${ECHO_T}no" >&6; }
36869 cat >>confdefs.h <<\_ACEOF
36870 #define BX_SUPPORT_PCI 0
36882 # PCI host device support
36884 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
36885 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
36886 # Check whether --enable-pcidev was given.
36887 if test "${enable_pcidev+set}" = set; then
36888 enableval=$enable_pcidev;
36889 if test "$enableval" = "yes"; then
36890 { echo "$as_me:$LINENO: result: yes" >&5
36891 echo "${ECHO_T}yes" >&6; }
36892 if test "$pci" != "1"; then
36893 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
36894 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
36895 { (exit 1); exit 1; }; }
36899 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
36900 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
36901 linux_version=`uname -r`
36902 case "$linux_version" in
36904 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
36905 KERNEL_MODULE_SUFFIX="o"
36908 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
36909 KERNEL_MODULE_SUFFIX="ko"
36912 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
36913 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
36914 { (exit 1); exit 1; }; }
36917 KERNELDIR="/lib/modules/$linux_version/build"
36931 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
36932 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
36933 { (exit 1); exit 1; }; }
36936 cat >>confdefs.h <<\_ACEOF
36937 #define BX_SUPPORT_PCIDEV 1
36940 PCI_OBJ="$PCI_OBJ pcidev.o"
36942 { echo "$as_me:$LINENO: result: no" >&5
36943 echo "${ECHO_T}no" >&6; }
36944 cat >>confdefs.h <<\_ACEOF
36945 #define BX_SUPPORT_PCIDEV 0
36952 { echo "$as_me:$LINENO: result: no" >&5
36953 echo "${ECHO_T}no" >&6; }
36954 cat >>confdefs.h <<\_ACEOF
36955 #define BX_SUPPORT_PCIDEV 0
36965 { echo "$as_me:$LINENO: checking for limited USB support" >&5
36966 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
36967 # Check whether --enable-usb was given.
36968 if test "${enable_usb+set}" = set; then
36969 enableval=$enable_usb; if test "$enableval" = yes; then
36970 { echo "$as_me:$LINENO: result: yes" >&5
36971 echo "${ECHO_T}yes" >&6; }
36972 cat >>confdefs.h <<\_ACEOF
36973 #define BX_SUPPORT_PCIUSB 1
36976 PCI_OBJ="$PCI_OBJ pciusb.o"
36977 USBDEV_OBJS="usb_hid.o usb_msd.o"
36978 SCSI_OBJS="scsi_device.o"
36980 { echo "$as_me:$LINENO: result: no" >&5
36981 echo "${ECHO_T}no" >&6; }
36982 cat >>confdefs.h <<\_ACEOF
36983 #define BX_SUPPORT_PCIUSB 0
36989 { echo "$as_me:$LINENO: result: no" >&5
36990 echo "${ECHO_T}no" >&6; }
36991 cat >>confdefs.h <<\_ACEOF
36992 #define BX_SUPPORT_PCIUSB 0
37003 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
37004 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
37005 # Check whether --enable-pnic was given.
37006 if test "${enable_pnic+set}" = set; then
37007 enableval=$enable_pnic; if test "$enableval" = yes; then
37008 { echo "$as_me:$LINENO: result: yes" >&5
37009 echo "${ECHO_T}yes" >&6; }
37010 cat >>confdefs.h <<\_ACEOF
37011 #define BX_SUPPORT_PCIPNIC 1
37014 PCI_OBJ="$PCI_OBJ pcipnic.o"
37017 { echo "$as_me:$LINENO: result: no" >&5
37018 echo "${ECHO_T}no" >&6; }
37019 cat >>confdefs.h <<\_ACEOF
37020 #define BX_SUPPORT_PCIPNIC 0
37026 { echo "$as_me:$LINENO: result: no" >&5
37027 echo "${ECHO_T}no" >&6; }
37028 cat >>confdefs.h <<\_ACEOF
37029 #define BX_SUPPORT_PCIPNIC 0
37038 if test "$networking" = yes; then
37039 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o
'
37040 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37041 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
37042 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
37043 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37044 echo $ECHO_N "(cached) $ECHO_C" >&6
37046 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
37047 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
37049 # Is the header compilable?
37050 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
37051 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
37052 cat >conftest.$ac_ext <<_ACEOF
37055 cat confdefs.h >>conftest.$ac_ext
37056 cat >>conftest.$ac_ext <<_ACEOF
37057 /* end confdefs.h. */
37058 $ac_includes_default
37059 #include <net/bpf.h>
37061 rm -f conftest.$ac_objext
37062 if { (ac_try="$ac_compile"
37063 case "(($ac_try" in
37064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37065 *) ac_try_echo=$ac_try;;
37067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37068 (eval "$ac_compile") 2>conftest.er1
37070 grep -v '^
*+' conftest.er1 >conftest.err
37072 cat conftest.err >&5
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } &&
37075 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
37076 { (case "(($ac_try" in
37077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37078 *) ac_try_echo=$ac_try;;
37080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37081 (eval "$ac_try") 2>&5
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); }; } &&
37085 { ac_try='test -s conftest.
$ac_objext'
37086 { (case "(($ac_try" in
37087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37088 *) ac_try_echo=$ac_try;;
37090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37091 (eval "$ac_try") 2>&5
37093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094 (exit $ac_status); }; }; then
37095 ac_header_compiler=yes
37097 echo "$as_me: failed program was:" >&5
37098 sed 's
/^
/|
/' conftest.$ac_ext >&5
37100 ac_header_compiler=no
37103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37105 echo "${ECHO_T}$ac_header_compiler" >&6; }
37107 # Is the header present?
37108 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
37109 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
37110 cat >conftest.$ac_ext <<_ACEOF
37113 cat confdefs.h >>conftest.$ac_ext
37114 cat >>conftest.$ac_ext <<_ACEOF
37115 /* end confdefs.h. */
37116 #include <net/bpf.h>
37118 if { (ac_try="$ac_cpp conftest.$ac_ext"
37119 case "(($ac_try" in
37120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121 *) ac_try_echo=$ac_try;;
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37126 grep -v '^
*+' conftest.er1 >conftest.err
37128 cat conftest.err >&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } >/dev/null; then
37131 if test -s conftest.err; then
37132 ac_cpp_err=$ac_c_preproc_warn_flag
37133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37140 if test -z "$ac_cpp_err"; then
37141 ac_header_preproc=yes
37143 echo "$as_me: failed program was:" >&5
37144 sed 's
/^
/|
/' conftest.$ac_ext >&5
37146 ac_header_preproc=no
37149 rm -f conftest.err conftest.$ac_ext
37150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37151 echo "${ECHO_T}$ac_header_preproc" >&6; }
37153 # So? What about this header?
37154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37156 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
37157 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37158 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result
" >&5
37159 echo "$as_me: WARNING
: net
/bpf.h
: proceeding with the compiler
's result" >&2;}
37160 ac_header_preproc=yes
37163 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
37164 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
37165 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
37166 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
37167 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
37168 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
37169 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
37170 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
37171 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result
" >&5
37172 echo "$as_me: WARNING
: net
/bpf.h
: proceeding with the preprocessor
's result" >&2;}
37173 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
37174 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
37178 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
37179 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
37180 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37181 echo $ECHO_N "(cached) $ECHO_C" >&6
37183 ac_cv_header_net_bpf_h=$ac_header_preproc
37185 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
37186 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
37189 if test $ac_cv_header_net_bpf_h = yes; then
37190 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
37194 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37195 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
37196 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
37197 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37198 echo $ECHO_N "(cached) $ECHO_C" >&6
37200 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
37201 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
37203 # Is the header compilable?
37204 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
37205 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
37206 cat >conftest.$ac_ext <<_ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h. */
37212 $ac_includes_default
37213 #include <netpacket/packet.h>
37215 rm -f conftest.$ac_objext
37216 if { (ac_try="$ac_compile"
37217 case "(($ac_try" in
37218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37219 *) ac_try_echo=$ac_try;;
37221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37222 (eval "$ac_compile") 2>conftest.er1
37224 grep -v '^
*+' conftest.er1 >conftest.err
37226 cat conftest.err >&5
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); } &&
37229 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
37230 { (case "(($ac_try" in
37231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37232 *) ac_try_echo=$ac_try;;
37234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37235 (eval "$ac_try") 2>&5
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; } &&
37239 { ac_try='test -s conftest.
$ac_objext'
37240 { (case "(($ac_try" in
37241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37242 *) ac_try_echo=$ac_try;;
37244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37245 (eval "$ac_try") 2>&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); }; }; then
37249 ac_header_compiler=yes
37251 echo "$as_me: failed program was:" >&5
37252 sed 's
/^
/|
/' conftest.$ac_ext >&5
37254 ac_header_compiler=no
37257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37259 echo "${ECHO_T}$ac_header_compiler" >&6; }
37261 # Is the header present?
37262 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
37263 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
37264 cat >conftest.$ac_ext <<_ACEOF
37267 cat confdefs.h >>conftest.$ac_ext
37268 cat >>conftest.$ac_ext <<_ACEOF
37269 /* end confdefs.h. */
37270 #include <netpacket/packet.h>
37272 if { (ac_try="$ac_cpp conftest.$ac_ext"
37273 case "(($ac_try" in
37274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37275 *) ac_try_echo=$ac_try;;
37277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37280 grep -v '^
*+' conftest.er1 >conftest.err
37282 cat conftest.err >&5
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); } >/dev/null; then
37285 if test -s conftest.err; then
37286 ac_cpp_err=$ac_c_preproc_warn_flag
37287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37294 if test -z "$ac_cpp_err"; then
37295 ac_header_preproc=yes
37297 echo "$as_me: failed program was:" >&5
37298 sed 's
/^
/|
/' conftest.$ac_ext >&5
37300 ac_header_preproc=no
37303 rm -f conftest.err conftest.$ac_ext
37304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37305 echo "${ECHO_T}$ac_header_preproc" >&6; }
37307 # So? What about this header?
37308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37310 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
37311 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37312 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result
" >&5
37313 echo "$as_me: WARNING
: netpacket
/packet.h
: proceeding with the compiler
's result" >&2;}
37314 ac_header_preproc=yes
37317 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
37318 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
37319 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
37320 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
37321 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
37322 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
37323 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
37324 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
37325 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result
" >&5
37326 echo "$as_me: WARNING
: netpacket
/packet.h
: proceeding with the preprocessor
's result" >&2;}
37327 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
37328 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
37332 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
37333 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
37334 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37335 echo $ECHO_N "(cached) $ECHO_C" >&6
37337 ac_cv_header_netpacket_packet_h=$ac_header_preproc
37339 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
37340 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
37343 if test $ac_cv_header_netpacket_packet_h = yes; then
37344 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
37349 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
37350 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
37352 *-macosx* | *-darwin*)
37353 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
37354 cat >>confdefs.h <<\_ACEOF
37355 #define HAVE_TUNTAP 1
37360 { echo "$as_me:$LINENO: checking for net/if.h" >&5
37361 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
37362 if test "${ac_cv_header_net_if_h+set}" = set; then
37363 echo $ECHO_N "(cached) $ECHO_C" >&6
37365 cat >conftest.$ac_ext <<_ACEOF
37368 cat confdefs.h >>conftest.$ac_ext
37369 cat >>conftest.$ac_ext <<_ACEOF
37370 /* end confdefs.h. */
37372 #include <sys/types.h>
37373 #include <sys/socket.h>
37376 #include <net/if.h>
37378 rm -f conftest.$ac_objext
37379 if { (ac_try="$ac_compile"
37380 case "(($ac_try" in
37381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37382 *) ac_try_echo=$ac_try;;
37384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37385 (eval "$ac_compile") 2>conftest.er1
37387 grep -v '^
*+' conftest.er1 >conftest.err
37389 cat conftest.err >&5
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); } &&
37392 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
37393 { (case "(($ac_try" in
37394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395 *) ac_try_echo=$ac_try;;
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398 (eval "$ac_try") 2>&5
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); }; } &&
37402 { ac_try='test -s conftest.
$ac_objext'
37403 { (case "(($ac_try" in
37404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405 *) ac_try_echo=$ac_try;;
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408 (eval "$ac_try") 2>&5
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); }; }; then
37412 ac_cv_header_net_if_h=yes
37414 echo "$as_me: failed program was:" >&5
37415 sed 's
/^
/|
/' conftest.$ac_ext >&5
37417 ac_cv_header_net_if_h=no
37420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37422 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
37423 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
37424 if test $ac_cv_header_net_if_h = yes; then
37427 cat >>confdefs.h <<\_ACEOF
37428 #define BX_HAVE_NET_IF_H 1
37435 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
37436 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
37437 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
37438 echo $ECHO_N "(cached) $ECHO_C" >&6
37440 cat >conftest.$ac_ext <<_ACEOF
37443 cat confdefs.h >>conftest.$ac_ext
37444 cat >>conftest.$ac_ext <<_ACEOF
37445 /* end confdefs.h. */
37447 #include <asm/types.h>
37448 #include <sys/socket.h>
37451 #include <linux/netlink.h>
37453 rm -f conftest.$ac_objext
37454 if { (ac_try="$ac_compile"
37455 case "(($ac_try" in
37456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37457 *) ac_try_echo=$ac_try;;
37459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37460 (eval "$ac_compile") 2>conftest.er1
37462 grep -v '^
*+' conftest.er1 >conftest.err
37464 cat conftest.err >&5
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); } &&
37467 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
37468 { (case "(($ac_try" in
37469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37470 *) ac_try_echo=$ac_try;;
37472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37473 (eval "$ac_try") 2>&5
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); }; } &&
37477 { ac_try='test -s conftest.
$ac_objext'
37478 { (case "(($ac_try" in
37479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37480 *) ac_try_echo=$ac_try;;
37482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37483 (eval "$ac_try") 2>&5
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); }; }; then
37487 ac_cv_header_linux_netlink_h=yes
37489 echo "$as_me: failed program was:" >&5
37490 sed 's
/^
/|
/' conftest.$ac_ext >&5
37492 ac_cv_header_linux_netlink_h=no
37495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37497 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
37498 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
37499 if test $ac_cv_header_linux_netlink_h = yes; then
37507 if test "$use_ethertap" = yes; then
37508 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
37509 cat >>confdefs.h <<\_ACEOF
37510 #define HAVE_ETHERTAP 1
37513 cat >>confdefs.h <<\_ACEOF
37519 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
37520 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
37521 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
37522 echo $ECHO_N "(cached) $ECHO_C" >&6
37524 cat >conftest.$ac_ext <<_ACEOF
37527 cat confdefs.h >>conftest.$ac_ext
37528 cat >>conftest.$ac_ext <<_ACEOF
37529 /* end confdefs.h. */
37531 #include <sys/types.h>
37532 #include <sys/socket.h>
37533 #include <net/if.h>
37536 #include <net/if_tun.h>
37538 rm -f conftest.$ac_objext
37539 if { (ac_try="$ac_compile"
37540 case "(($ac_try" in
37541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37542 *) ac_try_echo=$ac_try;;
37544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37545 (eval "$ac_compile") 2>conftest.er1
37547 grep -v '^
*+' conftest.er1 >conftest.err
37549 cat conftest.err >&5
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); } &&
37552 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
37553 { (case "(($ac_try" in
37554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37555 *) ac_try_echo=$ac_try;;
37557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37558 (eval "$ac_try") 2>&5
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); }; } &&
37562 { ac_try='test -s conftest.
$ac_objext'
37563 { (case "(($ac_try" in
37564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37565 *) ac_try_echo=$ac_try;;
37567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37568 (eval "$ac_try") 2>&5
37570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; }; then
37572 ac_cv_header_net_if_tun_h=yes
37574 echo "$as_me: failed program was:" >&5
37575 sed 's
/^
/|
/' conftest.$ac_ext >&5
37577 ac_cv_header_net_if_tun_h=no
37580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37582 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
37583 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
37584 if test $ac_cv_header_net_if_tun_h = yes; then
37591 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
37592 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
37593 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
37594 echo $ECHO_N "(cached) $ECHO_C" >&6
37596 cat >conftest.$ac_ext <<_ACEOF
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h. */
37603 #include <asm/types.h>
37604 #include <sys/socket.h>
37607 #include <linux/if_tun.h>
37609 rm -f conftest.$ac_objext
37610 if { (ac_try="$ac_compile"
37611 case "(($ac_try" in
37612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37613 *) ac_try_echo=$ac_try;;
37615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37616 (eval "$ac_compile") 2>conftest.er1
37618 grep -v '^
*+' conftest.er1 >conftest.err
37620 cat conftest.err >&5
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); } &&
37623 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
37624 { (case "(($ac_try" in
37625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37626 *) ac_try_echo=$ac_try;;
37628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37629 (eval "$ac_try") 2>&5
37631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632 (exit $ac_status); }; } &&
37633 { ac_try='test -s conftest.
$ac_objext'
37634 { (case "(($ac_try" in
37635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37636 *) ac_try_echo=$ac_try;;
37638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37639 (eval "$ac_try") 2>&5
37641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642 (exit $ac_status); }; }; then
37643 ac_cv_header_linux_if_tun_h=yes
37645 echo "$as_me: failed program was:" >&5
37646 sed 's
/^
/|
/' conftest.$ac_ext >&5
37648 ac_cv_header_linux_if_tun_h=no
37651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37653 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
37654 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
37655 if test $ac_cv_header_linux_if_tun_h = yes; then
37662 if test "$use_tuntap" = yes; then
37663 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
37664 cat >>confdefs.h <<\_ACEOF
37665 #define HAVE_TUNTAP 1
37672 cat >>confdefs.h <<\_ACEOF
37673 #define BX_NETWORKING 1
37677 cat >>confdefs.h <<\_ACEOF
37678 #define BX_NETWORKING 0
37686 { echo "$as_me:$LINENO: checking for large pages support" >&5
37687 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
37688 # Check whether --enable-large-pages was given.
37689 if test "${enable_large_pages+set}" = set; then
37690 enableval=$enable_large_pages; if test "$enableval" = yes; then
37691 { echo "$as_me:$LINENO: result: yes" >&5
37692 echo "${ECHO_T}yes" >&6; }
37693 cat >>confdefs.h <<\_ACEOF
37694 #define BX_SUPPORT_LARGE_PAGES 1
37697 support_large_pages=1
37699 { echo "$as_me:$LINENO: result: no" >&5
37700 echo "${ECHO_T}no" >&6; }
37701 cat >>confdefs.h <<\_ACEOF
37702 #define BX_SUPPORT_LARGE_PAGES 0
37705 support_large_pages=0
37709 if test "$bx_cpu_level" -gt 4; then
37710 { echo "$as_me:$LINENO: result: yes" >&5
37711 echo "${ECHO_T}yes" >&6; }
37712 cat >>confdefs.h <<\_ACEOF
37713 #define BX_SUPPORT_LARGE_PAGES 1
37716 support_large_pages=1
37718 { echo "$as_me:$LINENO: result: no" >&5
37719 echo "${ECHO_T}no" >&6; }
37720 cat >>confdefs.h <<\_ACEOF
37721 #define BX_SUPPORT_LARGE_PAGES 0
37724 support_large_pages=0
37732 { echo "$as_me:$LINENO: checking for PAE support" >&5
37733 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
37734 # Check whether --enable-pae was given.
37735 if test "${enable_pae+set}" = set; then
37736 enableval=$enable_pae; if test "$enableval" = yes; then
37737 { echo "$as_me:$LINENO: result: yes" >&5
37738 echo "${ECHO_T}yes" >&6; }
37739 cat >>confdefs.h <<\_ACEOF
37740 #define BX_SUPPORT_PAE 1
37745 { echo "$as_me:$LINENO: result: no" >&5
37746 echo "${ECHO_T}no" >&6; }
37747 cat >>confdefs.h <<\_ACEOF
37748 #define BX_SUPPORT_PAE 0
37755 if test "$bx_cpu_level" -gt 5; then
37756 { echo "$as_me:$LINENO: result: yes" >&5
37757 echo "${ECHO_T}yes" >&6; }
37758 cat >>confdefs.h <<\_ACEOF
37759 #define BX_SUPPORT_PAE 1
37764 { echo "$as_me:$LINENO: result: no" >&5
37765 echo "${ECHO_T}no" >&6; }
37766 cat >>confdefs.h <<\_ACEOF
37767 #define BX_SUPPORT_PAE 0
37777 { echo "$as_me:$LINENO: checking for global pages support" >&5
37778 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
37779 # Check whether --enable-global-pages was given.
37780 if test "${enable_global_pages+set}" = set; then
37781 enableval=$enable_global_pages; if test "$enableval" = yes; then
37782 { echo "$as_me:$LINENO: result: yes" >&5
37783 echo "${ECHO_T}yes" >&6; }
37784 cat >>confdefs.h <<\_ACEOF
37785 #define BX_SUPPORT_GLOBAL_PAGES 1
37788 support_global_pages=1
37790 { echo "$as_me:$LINENO: result: no" >&5
37791 echo "${ECHO_T}no" >&6; }
37792 cat >>confdefs.h <<\_ACEOF
37793 #define BX_SUPPORT_GLOBAL_PAGES 0
37796 support_global_pages=0
37800 if test "$bx_cpu_level" -gt 5; then
37801 # enable by default
37802 { echo "$as_me:$LINENO: result: yes" >&5
37803 echo "${ECHO_T}yes" >&6; }
37804 cat >>confdefs.h <<\_ACEOF
37805 #define BX_SUPPORT_GLOBAL_PAGES 1
37808 support_global_pages=1
37810 { echo "$as_me:$LINENO: result: no" >&5
37811 echo "${ECHO_T}no" >&6; }
37812 cat >>confdefs.h <<\_ACEOF
37813 #define BX_SUPPORT_GLOBAL_PAGES 0
37816 support_global_pages=0
37823 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
37824 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
37825 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
37826 { (exit 1); exit 1; }; }
37829 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
37830 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
37831 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
37832 { (exit 1); exit 1; }; }
37835 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
37836 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
37837 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
37838 { (exit 1); exit 1; }; }
37841 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
37842 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
37843 # Check whether --enable-mtrr was given.
37844 if test "${enable_mtrr+set}" = set; then
37845 enableval=$enable_mtrr; if test "$enableval" = yes; then
37846 { echo "$as_me:$LINENO: result: yes" >&5
37847 echo "${ECHO_T}yes" >&6; }
37848 cat >>confdefs.h <<\_ACEOF
37849 #define BX_SUPPORT_MTRR 1
37853 { echo "$as_me:$LINENO: result: no" >&5
37854 echo "${ECHO_T}no" >&6; }
37855 cat >>confdefs.h <<\_ACEOF
37856 #define BX_SUPPORT_MTRR 0
37862 if test "$bx_cpu_level" -gt 5; then
37863 # enable by default
37864 { echo "$as_me:$LINENO: result: yes" >&5
37865 echo "${ECHO_T}yes" >&6; }
37866 cat >>confdefs.h <<\_ACEOF
37867 #define BX_SUPPORT_MTRR 1
37871 { echo "$as_me:$LINENO: result: no" >&5
37872 echo "${ECHO_T}no" >&6; }
37873 cat >>confdefs.h <<\_ACEOF
37874 #define BX_SUPPORT_MTRR 0
37883 { echo "$as_me:$LINENO: checking for guest to host TLB support" >&5
37884 echo $ECHO_N "checking for guest to host TLB support... $ECHO_C" >&6; }
37885 # Check whether --enable-guest2host-tlb was given.
37886 if test "${enable_guest2host_tlb+set}" = set; then
37887 enableval=$enable_guest2host_tlb; if test "$enableval" = yes; then
37888 { echo "$as_me:$LINENO: result: yes" >&5
37889 echo "${ECHO_T}yes" >&6; }
37890 speedup_guest2host_tlb=1
37892 { echo "$as_me:$LINENO: result: no" >&5
37893 echo "${ECHO_T}no" >&6; }
37894 speedup_guest2host_tlb=0
37898 { echo "$as_me:$LINENO: result: no" >&5
37899 echo "${ECHO_T}no" >&6; }
37900 speedup_guest2host_tlb=0
37906 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
37907 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
37908 # Check whether --enable-repeat-speedups was given.
37909 if test "${enable_repeat_speedups+set}" = set; then
37910 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
37911 { echo "$as_me:$LINENO: result: yes" >&5
37912 echo "${ECHO_T}yes" >&6; }
37915 { echo "$as_me:$LINENO: result: no" >&5
37916 echo "${ECHO_T}no" >&6; }
37921 { echo "$as_me:$LINENO: result: no" >&5
37922 echo "${ECHO_T}no" >&6; }
37929 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
37930 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
37931 # Check whether --enable-icache was given.
37932 if test "${enable_icache+set}" = set; then
37933 enableval=$enable_icache; if test "$enableval" = yes; then
37934 { echo "$as_me:$LINENO: result: yes" >&5
37935 echo "${ECHO_T}yes" >&6; }
37938 { echo "$as_me:$LINENO: result: no" >&5
37939 echo "${ECHO_T}no" >&6; }
37944 { echo "$as_me:$LINENO: result: no" >&5
37945 echo "${ECHO_T}no" >&6; }
37952 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
37953 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
37954 # Check whether --enable-fast-function-calls was given.
37955 if test "${enable_fast_function_calls+set}" = set; then
37956 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
37957 { echo "$as_me:$LINENO: result: yes" >&5
37958 echo "${ECHO_T}yes" >&6; }
37961 { echo "$as_me:$LINENO: result: no" >&5
37962 echo "${ECHO_T}no" >&6; }
37967 { echo "$as_me:$LINENO: result: no" >&5
37968 echo "${ECHO_T}no" >&6; }
37975 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
37976 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
37977 # Check whether --enable-host-specific-asms was given.
37978 if test "${enable_host_specific_asms+set}" = set; then
37979 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
37980 { echo "$as_me:$LINENO: result: yes" >&5
37981 echo "${ECHO_T}yes" >&6; }
37982 speedup_host_specific_asms=1
37984 { echo "$as_me:$LINENO: result: no" >&5
37985 echo "${ECHO_T}no" >&6; }
37986 speedup_host_specific_asms=0
37990 { echo "$as_me:$LINENO: result: no" >&5
37991 echo "${ECHO_T}no" >&6; }
37992 speedup_host_specific_asms=0
37998 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
37999 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
38000 # Check whether --enable-ignore-bad-msr was given.
38001 if test "${enable_ignore_bad_msr+set}" = set; then
38002 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
38003 { echo "$as_me:$LINENO: result: yes" >&5
38004 echo "${ECHO_T}yes" >&6; }
38005 cat >>confdefs.h <<\_ACEOF
38006 #define BX_IGNORE_BAD_MSR 1
38010 { echo "$as_me:$LINENO: result: no" >&5
38011 echo "${ECHO_T}no" >&6; }
38012 cat >>confdefs.h <<\_ACEOF
38013 #define BX_IGNORE_BAD_MSR 0
38019 { echo "$as_me:$LINENO: result: yes" >&5
38020 echo "${ECHO_T}yes" >&6; }
38021 cat >>confdefs.h <<\_ACEOF
38022 #define BX_IGNORE_BAD_MSR 1
38030 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
38031 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
38032 # Check whether --enable-port-e9-hack was given.
38033 if test "${enable_port_e9_hack+set}" = set; then
38034 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
38035 { echo "$as_me:$LINENO: result: yes" >&5
38036 echo "${ECHO_T}yes" >&6; }
38037 cat >>confdefs.h <<\_ACEOF
38038 #define BX_PORT_E9_HACK 1
38042 { echo "$as_me:$LINENO: result: no" >&5
38043 echo "${ECHO_T}no" >&6; }
38044 cat >>confdefs.h <<\_ACEOF
38045 #define BX_PORT_E9_HACK 0
38051 { echo "$as_me:$LINENO: result: yes" >&5
38052 echo "${ECHO_T}yes" >&6; }
38053 cat >>confdefs.h <<\_ACEOF
38054 #define BX_PORT_E9_HACK 1
38062 { echo "$as_me:$LINENO: checking show IPS" >&5
38063 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
38064 # Check whether --enable-show-ips was given.
38065 if test "${enable_show_ips+set}" = set; then
38066 enableval=$enable_show_ips; if test "$enableval" = yes; then
38067 { echo "$as_me:$LINENO: result: yes" >&5
38068 echo "${ECHO_T}yes" >&6; }
38069 cat >>confdefs.h <<\_ACEOF
38070 #define BX_SHOW_IPS 1
38074 { echo "$as_me:$LINENO: result: no" >&5
38075 echo "${ECHO_T}no" >&6; }
38076 cat >>confdefs.h <<\_ACEOF
38077 #define BX_SHOW_IPS 0
38083 { echo "$as_me:$LINENO: result: no" >&5
38084 echo "${ECHO_T}no" >&6; }
38085 cat >>confdefs.h <<\_ACEOF
38086 #define BX_SHOW_IPS 0
38094 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
38095 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
38096 # Check whether --enable-cpp was given.
38097 if test "${enable_cpp+set}" = set; then
38098 enableval=$enable_cpp; if test "$enableval" = yes; then
38099 { echo "$as_me:$LINENO: result: yes" >&5
38100 echo "${ECHO_T}yes" >&6; }
38101 SUFFIX_LINE='.SUFFIXES
: .cpp
'
38104 { echo "$as_me:$LINENO: result: no" >&5
38105 echo "${ECHO_T}no" >&6; }
38106 SUFFIX_LINE='.SUFFIXES
: .cc
'
38111 { echo "$as_me:$LINENO: result: no" >&5
38112 echo "${ECHO_T}no" >&6; }
38113 SUFFIX_LINE='.SUFFIXES
: .cc
'
38122 if test "$enable_cpp" = yes; then
38123 echo "moving .cc source files to .cpp"
38124 sourcefiles=`find . -name "*.cc" -print`
38125 if test "$sourcefiles" != ""; then
38126 for ccname in $sourcefiles
38128 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
38129 echo "mv $ccname $cppname"
38130 mv $ccname $cppname
38133 echo "no more .cc source files to rename"
38139 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
38140 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
38141 # Check whether --enable-debugger was given.
38142 if test "${enable_debugger+set}" = set; then
38143 enableval=$enable_debugger; if test "$enableval" = yes; then
38144 { echo "$as_me:$LINENO: result: yes" >&5
38145 echo "${ECHO_T}yes" >&6; }
38146 cat >>confdefs.h <<\_ACEOF
38147 #define BX_DEBUGGER 1
38150 DEBUGGER_VAR='$
(DEBUGGER_LIB
)'
38153 { echo "$as_me:$LINENO: result: no" >&5
38154 echo "${ECHO_T}no" >&6; }
38155 cat >>confdefs.h <<\_ACEOF
38156 #define BX_DEBUGGER 0
38165 { echo "$as_me:$LINENO: result: no" >&5
38166 echo "${ECHO_T}no" >&6; }
38167 cat >>confdefs.h <<\_ACEOF
38168 #define BX_DEBUGGER 0
38179 { echo "$as_me:$LINENO: checking for external debugger" >&5
38180 echo $ECHO_N "checking for external debugger... $ECHO_C" >&6; }
38182 # Check whether --enable-external-debugger was given.
38183 if test "${enable_external_debugger+set}" = set; then
38184 enableval=$enable_external_debugger; if test "$enableval" = yes; then
38186 *-pc-windows* | *-cygwin* | *-mingw32*)
38187 { echo "$as_me:$LINENO: result: yes" >&5
38188 echo "${ECHO_T}yes" >&6; }
38189 cat >>confdefs.h <<\_ACEOF
38190 #define BX_EXTERNAL_DEBUGGER 1
38193 EXT_DEBUG_OBJS=extdb.o
38196 echo "ERROR: external debugger is currently supported on win32 only"
38201 { echo "$as_me:$LINENO: result: no" >&5
38202 echo "${ECHO_T}no" >&6; }
38206 { echo "$as_me:$LINENO: result: no" >&5
38207 echo "${ECHO_T}no" >&6; }
38213 { echo "$as_me:$LINENO: checking for magic breakpoints" >&5
38214 echo $ECHO_N "checking for magic breakpoints... $ECHO_C" >&6; }
38215 # Check whether --enable-magic-breakpoints was given.
38216 if test "${enable_magic_breakpoints+set}" = set; then
38217 enableval=$enable_magic_breakpoints; if test "$enableval" = yes; then
38218 { echo "$as_me:$LINENO: result: yes" >&5
38219 echo "${ECHO_T}yes" >&6; }
38220 cat >>confdefs.h <<\_ACEOF
38221 #define BX_MAGIC_BREAKPOINT 1
38225 { echo "$as_me:$LINENO: result: no" >&5
38226 echo "${ECHO_T}no" >&6; }
38227 cat >>confdefs.h <<\_ACEOF
38228 #define BX_MAGIC_BREAKPOINT 0
38234 if test "$bx_debugger" = 1; then
38235 { echo "$as_me:$LINENO: result: yes" >&5
38236 echo "${ECHO_T}yes" >&6; }
38237 cat >>confdefs.h <<\_ACEOF
38238 #define BX_MAGIC_BREAKPOINT 1
38242 { echo "$as_me:$LINENO: result: no" >&5
38243 echo "${ECHO_T}no" >&6; }
38244 cat >>confdefs.h <<\_ACEOF
38245 #define BX_MAGIC_BREAKPOINT 0
38254 { echo "$as_me:$LINENO: checking for disassembler support" >&5
38255 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
38256 # Check whether --enable-disasm was given.
38257 if test "${enable_disasm+set}" = set; then
38258 enableval=$enable_disasm; if test "$enableval" = yes; then
38259 { echo "$as_me:$LINENO: result: yes" >&5
38260 echo "${ECHO_T}yes" >&6; }
38261 cat >>confdefs.h <<\_ACEOF
38262 #define BX_DISASM 1
38265 DISASM_VAR='$
(DISASM_LIB
)'
38267 { echo "$as_me:$LINENO: result: no" >&5
38268 echo "${ECHO_T}no" >&6; }
38269 if test "$bx_debugger" = 1; then
38270 echo "ERROR: debugger is enabled, so --enable-disasm is required"
38273 cat >>confdefs.h <<\_ACEOF
38274 #define BX_DISASM 0
38281 { echo "$as_me:$LINENO: result: yes" >&5
38282 echo "${ECHO_T}yes" >&6; }
38283 cat >>confdefs.h <<\_ACEOF
38284 #define BX_DISASM 1
38287 DISASM_VAR='$
(DISASM_LIB
)'
38293 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
38294 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
38295 # Check whether --enable-all-optimizations was given.
38296 if test "${enable_all_optimizations+set}" = set; then
38297 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
38298 { echo "$as_me:$LINENO: result: yes" >&5
38299 echo "${ECHO_T}yes" >&6; }
38302 { echo "$as_me:$LINENO: result: no" >&5
38303 echo "${ECHO_T}no" >&6; }
38309 { echo "$as_me:$LINENO: result: no" >&5
38310 echo "${ECHO_T}no" >&6; }
38318 # Optimizations section. Decide what the status of various optimizations
38319 # should be based on configure choices and other factors.
38322 if test "$speedups_all" = 1; then
38323 # Configure requested to force all options enabled.
38324 speedup_guest2host_tlb=1
38330 if test "$speedup_guest2host_tlb" = 1; then
38331 cat >>confdefs.h <<\_ACEOF
38332 #define BX_SupportGuest2HostTLB 1
38336 cat >>confdefs.h <<\_ACEOF
38337 #define BX_SupportGuest2HostTLB 0
38342 if test "$speedup_repeat" = 1; then
38343 cat >>confdefs.h <<\_ACEOF
38344 #define BX_SupportRepeatSpeedups 1
38348 cat >>confdefs.h <<\_ACEOF
38349 #define BX_SupportRepeatSpeedups 0
38354 if test "$speedup_iCache" = 1; then
38355 cat >>confdefs.h <<\_ACEOF
38356 #define BX_SUPPORT_ICACHE 1
38360 cat >>confdefs.h <<\_ACEOF
38361 #define BX_SUPPORT_ICACHE 0
38366 if test "$speedup_host_specific_asms" = 1; then
38367 cat >>confdefs.h <<\_ACEOF
38368 #define BX_SupportHostAsms 1
38372 cat >>confdefs.h <<\_ACEOF
38373 #define BX_SupportHostAsms 0
38378 if test "$speedup_fastcall" = 1; then
38379 cat >>confdefs.h <<\_ACEOF
38380 #define BX_FAST_FUNC_CALL 1
38384 cat >>confdefs.h <<\_ACEOF
38385 #define BX_FAST_FUNC_CALL 0
38392 rl_without_curses_ok=no
38393 rl_with_curses_ok=no
38395 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
38396 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
38397 # Check whether --enable-readline was given.
38398 if test "${enable_readline+set}" = set; then
38399 enableval=$enable_readline; if test "$enableval" = yes; then
38400 { echo "$as_me:$LINENO: result: yes" >&5
38401 echo "${ECHO_T}yes" >&6; }
38404 { echo "$as_me:$LINENO: result: no" >&5
38405 echo "${ECHO_T}no" >&6; }
38410 { echo "$as_me:$LINENO: result: yes" >&5
38411 echo "${ECHO_T}yes" >&6; }
38419 { echo "$as_me:$LINENO: checking whether to use readline" >&5
38420 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
38421 if test "$want_readline" = yes; then
38422 if test "$bx_debugger" = 1; then
38424 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
38425 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
38427 LIBS="$LIBS -lreadline"
38428 if test "$cross_compiling" = yes; then
38429 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38430 See \`config.log' for more details.
" >&5
38431 echo "$as_me: error
: cannot run
test program
while cross compiling
38432 See \
`config.log' for more details." >&2;}
38433 { (exit 1); exit 1; }; }
38435 cat >conftest.$ac_ext <<_ACEOF
38438 cat confdefs.h >>conftest.$ac_ext
38439 cat >>conftest.$ac_ext <<_ACEOF
38440 /* end confdefs.h. */
38443 #include <readline/readline.h>
38444 int main() { rl_initialize(); exit(0); }
38447 rm -f conftest$ac_exeext
38448 if { (ac_try="$ac_link"
38449 case "(($ac_try" in
38450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
38451 *) ac_try_echo
=$ac_try;;
38453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38454 (eval "$ac_link") 2>&5
38456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
38458 { (case "(($ac_try" in
38459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38460 *) ac_try_echo=$ac_try;;
38462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38463 (eval "$ac_try") 2>&5
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); }; }; then
38467 { echo "$as_me:$LINENO: result: yes" >&5
38468 echo "${ECHO_T}yes" >&6; }
38469 rl_without_curses_ok=yes
38471 echo "$as_me: program exited with status $ac_status" >&5
38472 echo "$as_me: failed program was:" >&5
38473 sed 's/^/| /' conftest.$ac_ext >&5
38475 ( exit $ac_status )
38476 { echo "$as_me:$LINENO: result: no" >&5
38477 echo "${ECHO_T}no" >&6; }
38480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38484 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
38485 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
38486 LIBS="$LIBS -lcurses"
38487 if test "$cross_compiling" = yes; then
38488 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38489 See \`config.log
' for more details." >&5
38490 echo "$as_me: error: cannot run test program while cross compiling
38491 See \`config.log' for more details.
" >&2;}
38492 { (exit 1); exit 1; }; }
38494 cat >conftest.$ac_ext <<_ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h. */
38502 #include <readline/readline.h>
38503 int main() { rl_initialize(); exit(0); }
38506 rm -f conftest$ac_exeext
38507 if { (ac_try="$ac_link"
38508 case "(($ac_try" in
38509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38510 *) ac_try_echo=$ac_try;;
38512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
38513 (eval "$ac_link") 2>&5
38515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
38516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38517 { (case "(($ac_try" in
38518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38519 *) ac_try_echo=$ac_try;;
38521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
38522 (eval "$ac_try") 2>&5
38524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
38525 (exit $ac_status); }; }; then
38526 { echo "$as_me:$LINENO: result
: yes" >&5
38527 echo "${ECHO_T}yes" >&6; }
38528 rl_with_curses_ok=yes
38530 echo "$as_me: program exited with status
$ac_status" >&5
38531 echo "$as_me: failed program was
:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38534 ( exit $ac_status )
38535 { echo "$as_me:$LINENO: result
: no
" >&5
38536 echo "${ECHO_T}no
" >&6; }
38539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38545 if test "$rl_without_curses_ok" = yes; then
38546 { echo "$as_me:$LINENO: result
: yes" >&5
38547 echo "${ECHO_T}yes" >&6; }
38548 cat >>confdefs.h <<\_ACEOF
38549 #define HAVE_LIBREADLINE 1
38552 READLINE_LIB="-lreadline"
38554 elif test "$rl_with_curses_ok" = yes; then
38555 { echo "$as_me:$LINENO: result
: yes" >&5
38556 echo "${ECHO_T}yes" >&6; }
38557 cat >>confdefs.h <<\_ACEOF
38558 #define HAVE_LIBREADLINE 1
38561 READLINE_LIB="-lreadline -lcurses"
38564 { echo "$as_me:$LINENO: result
: no
" >&5
38565 echo "${ECHO_T}no
" >&6; }
38566 echo WARNING: The readline library was disabled because it was not found.
38569 { echo "$as_me:$LINENO: result
: no
" >&5
38570 echo "${ECHO_T}no
" >&6; }
38573 { echo "$as_me:$LINENO: result
: no
" >&5
38574 echo "${ECHO_T}no
" >&6; }
38578 if test "${ac_cv_header_readline_history_h+set}" = set; then
38579 { echo "$as_me:$LINENO: checking
for readline
/history.h
" >&5
38580 echo $ECHO_N "checking
for readline
/history.h...
$ECHO_C" >&6; }
38581 if test "${ac_cv_header_readline_history_h+set}" = set; then
38582 echo $ECHO_N "(cached
) $ECHO_C" >&6
38584 { echo "$as_me:$LINENO: result
: $ac_cv_header_readline_history_h" >&5
38585 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
38587 # Is the header compilable?
38588 { echo "$as_me:$LINENO: checking readline
/history.h usability
" >&5
38589 echo $ECHO_N "checking readline
/history.h usability...
$ECHO_C" >&6; }
38590 cat >conftest.$ac_ext <<_ACEOF
38593 cat confdefs.h >>conftest.$ac_ext
38594 cat >>conftest.$ac_ext <<_ACEOF
38595 /* end confdefs.h. */
38596 $ac_includes_default
38597 #include <readline/history.h>
38599 rm -f conftest.$ac_objext
38600 if { (ac_try="$ac_compile"
38601 case "(($ac_try" in
38602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38603 *) ac_try_echo=$ac_try;;
38605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
38606 (eval "$ac_compile") 2>conftest.er1
38608 grep -v '^ *+' conftest.er1 >conftest.err
38610 cat conftest.err >&5
38611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
38612 (exit $ac_status); } &&
38613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38614 { (case "(($ac_try" in
38615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38616 *) ac_try_echo=$ac_try;;
38618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
38619 (eval "$ac_try") 2>&5
38621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
38622 (exit $ac_status); }; } &&
38623 { ac_try='test -s conftest.$ac_objext'
38624 { (case "(($ac_try" in
38625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38626 *) ac_try_echo=$ac_try;;
38628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
38629 (eval "$ac_try") 2>&5
38631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
38632 (exit $ac_status); }; }; then
38633 ac_header_compiler=yes
38635 echo "$as_me: failed program was
:" >&5
38636 sed 's/^/| /' conftest.$ac_ext >&5
38638 ac_header_compiler=no
38641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38642 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
38643 echo "${ECHO_T}$ac_header_compiler" >&6; }
38645 # Is the header present?
38646 { echo "$as_me:$LINENO: checking readline
/history.h presence
" >&5
38647 echo $ECHO_N "checking readline
/history.h presence...
$ECHO_C" >&6; }
38648 cat >conftest.$ac_ext <<_ACEOF
38651 cat confdefs.h >>conftest.$ac_ext
38652 cat >>conftest.$ac_ext <<_ACEOF
38653 /* end confdefs.h. */
38654 #include <readline/history.h>
38656 if { (ac_try="$ac_cpp conftest.
$ac_ext"
38657 case "(($ac_try" in
38658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38659 *) ac_try_echo=$ac_try;;
38661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
38662 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
38664 grep -v '^ *+' conftest.er1 >conftest.err
38666 cat conftest.err >&5
38667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
38668 (exit $ac_status); } >/dev/null; then
38669 if test -s conftest.err; then
38670 ac_cpp_err=$ac_c_preproc_warn_flag
38671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38678 if test -z "$ac_cpp_err"; then
38679 ac_header_preproc=yes
38681 echo "$as_me: failed program was
:" >&5
38682 sed 's/^/| /' conftest.$ac_ext >&5
38684 ac_header_preproc=no
38687 rm -f conftest.err conftest.$ac_ext
38688 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
38689 echo "${ECHO_T}$ac_header_preproc" >&6; }
38691 # So? What about this header?
38692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38694 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
38695 echo "$as_me: WARNING
: readline
/history.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
38696 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: proceeding with the compiler
's result" >&5
38697 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result
" >&2;}
38698 ac_header_preproc=yes
38701 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: present but cannot be compiled
" >&5
38702 echo "$as_me: WARNING
: readline
/history.h
: present but cannot be compiled
" >&2;}
38703 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: check
for missing prerequisite headers?
" >&5
38704 echo "$as_me: WARNING
: readline
/history.h
: check
for missing prerequisite headers?
" >&2;}
38705 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: see the Autoconf documentation
" >&5
38706 echo "$as_me: WARNING
: readline
/history.h
: see the Autoconf documentation
" >&2;}
38707 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: section
\"Present But Cannot Be Compiled
\"" >&5
38708 echo "$as_me: WARNING
: readline
/history.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
38709 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: proceeding with the preprocessor
's result" >&5
38710 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result
" >&2;}
38711 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: in the future
, the compiler will take precedence
" >&5
38712 echo "$as_me: WARNING
: readline
/history.h
: in the future
, the compiler will take precedence
" >&2;}
38716 { echo "$as_me:$LINENO: checking
for readline
/history.h
" >&5
38717 echo $ECHO_N "checking
for readline
/history.h...
$ECHO_C" >&6; }
38718 if test "${ac_cv_header_readline_history_h+set}" = set; then
38719 echo $ECHO_N "(cached
) $ECHO_C" >&6
38721 ac_cv_header_readline_history_h=$ac_header_preproc
38723 { echo "$as_me:$LINENO: result
: $ac_cv_header_readline_history_h" >&5
38724 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
38727 if test $ac_cv_header_readline_history_h = yes; then
38728 cat >>confdefs.h <<\_ACEOF
38729 #define HAVE_READLINE_HISTORY_H 1
38737 INSTRUMENT_DIR='instrument/stubs'
38739 { echo "$as_me:$LINENO: checking
for instrumentation support
" >&5
38740 echo $ECHO_N "checking
for instrumentation support...
$ECHO_C" >&6; }
38741 # Check whether --enable-instrumentation was given.
38742 if test "${enable_instrumentation+set}" = set; then
38743 enableval=$enable_instrumentation; if test "$enableval" = yes; then
38744 { echo "$as_me:$LINENO: result
: yes" >&5
38745 echo "${ECHO_T}yes" >&6; }
38746 cat >>confdefs.h <<\_ACEOF
38747 #define BX_INSTRUMENTATION 1
38750 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
38751 elif test "$enableval" = no; then
38752 { echo "$as_me:$LINENO: result
: no
" >&5
38753 echo "${ECHO_T}no
" >&6; }
38754 cat >>confdefs.h <<\_ACEOF
38755 #define BX_INSTRUMENTATION 0
38760 { echo "$as_me:$LINENO: result
: yes" >&5
38761 echo "${ECHO_T}yes" >&6; }
38762 cat >>confdefs.h <<\_ACEOF
38763 #define BX_INSTRUMENTATION 1
38766 INSTRUMENT_DIR=$enableval
38767 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
38771 { echo "$as_me:$LINENO: result
: no
" >&5
38772 echo "${ECHO_T}no
" >&6; }
38773 cat >>confdefs.h <<\_ACEOF
38774 #define BX_INSTRUMENTATION 0
38785 if test "$bx_plugins" = 0; then
38788 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib
"
38790 *-cygwin* | *-mingw32*)
38791 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
38796 { echo "$as_me:$LINENO: checking
enable logging
" >&5
38797 echo $ECHO_N "checking
enable logging...
$ECHO_C" >&6; }
38798 # Check whether --enable-logging was given.
38799 if test "${enable_logging+set}" = set; then
38800 enableval=$enable_logging; if test "$enableval" = yes; then
38801 { echo "$as_me:$LINENO: result
: yes" >&5
38802 echo "${ECHO_T}yes" >&6; }
38803 cat >>confdefs.h <<\_ACEOF
38804 #define BX_NO_LOGGING 0
38808 { echo "$as_me:$LINENO: result
: no
" >&5
38809 echo "${ECHO_T}no
" >&6; }
38810 cat >>confdefs.h <<\_ACEOF
38811 #define BX_NO_LOGGING 1
38817 { echo "$as_me:$LINENO: result
: yes" >&5
38818 echo "${ECHO_T}yes" >&6; }
38819 cat >>confdefs.h <<\_ACEOF
38820 #define BX_NO_LOGGING 0
38828 { echo "$as_me:$LINENO: checking
for raw serial support
" >&5
38829 echo $ECHO_N "checking
for raw serial support...
$ECHO_C" >&6; }
38830 # Check whether --enable-raw-serial was given.
38831 if test "${enable_raw_serial+set}" = set; then
38832 enableval=$enable_raw_serial; if test "$enableval" = yes; then
38833 { echo "$as_me:$LINENO: result
: yes" >&5
38834 echo "${ECHO_T}yes" >&6; }
38835 cat >>confdefs.h <<\_ACEOF
38836 #define USE_RAW_SERIAL 1
38840 { echo "$as_me:$LINENO: result
: no
" >&5
38841 echo "${ECHO_T}no
" >&6; }
38842 cat >>confdefs.h <<\_ACEOF
38843 #define USE_RAW_SERIAL 0
38849 { echo "$as_me:$LINENO: result
: no
" >&5
38850 echo "${ECHO_T}no
" >&6; }
38851 cat >>confdefs.h <<\_ACEOF
38852 #define USE_RAW_SERIAL 0
38860 { echo "$as_me:$LINENO: checking
for VESA BIOS extensions
" >&5
38861 echo $ECHO_N "checking
for VESA BIOS extensions...
$ECHO_C" >&6; }
38862 # Check whether --enable-vbe was given.
38863 if test "${enable_vbe+set}" = set; then
38864 enableval=$enable_vbe; if test "$enableval" = yes; then
38865 { echo "$as_me:$LINENO: result
: yes" >&5
38866 echo "${ECHO_T}yes" >&6; }
38867 cat >>confdefs.h <<\_ACEOF
38868 #define BX_SUPPORT_VBE 1
38871 if test "$pci" = 1; then
38872 cat >>confdefs.h <<\_ACEOF
38873 #define BX_SUPPORT_PCIVGA 1
38878 { echo "$as_me:$LINENO: result
: no
" >&5
38879 echo "${ECHO_T}no
" >&6; }
38880 cat >>confdefs.h <<\_ACEOF
38881 #define BX_SUPPORT_VBE 0
38887 { echo "$as_me:$LINENO: result
: yes" >&5
38888 echo "${ECHO_T}yes" >&6; }
38889 cat >>confdefs.h <<\_ACEOF
38890 #define BX_SUPPORT_VBE 1
38893 if test "$pci" = 1; then
38894 cat >>confdefs.h <<\_ACEOF
38895 #define BX_SUPPORT_PCIVGA 1
38904 { echo "$as_me:$LINENO: checking
for CLGD54XX emulation
" >&5
38905 echo $ECHO_N "checking
for CLGD54XX emulation...
$ECHO_C" >&6; }
38906 # Check whether --enable-clgd54xx was given.
38907 if test "${enable_clgd54xx+set}" = set; then
38908 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
38909 { echo "$as_me:$LINENO: result
: yes" >&5
38910 echo "${ECHO_T}yes" >&6; }
38911 cat >>confdefs.h <<\_ACEOF
38912 #define BX_SUPPORT_CLGD54XX 1
38915 if test "$pci" = 1; then
38916 cat >>confdefs.h <<\_ACEOF
38917 #define BX_SUPPORT_CLGD54XX_PCI 1
38922 { echo "$as_me:$LINENO: result
: no
" >&5
38923 echo "${ECHO_T}no
" >&6; }
38924 cat >>confdefs.h <<\_ACEOF
38925 #define BX_SUPPORT_CLGD54XX 0
38931 { echo "$as_me:$LINENO: result
: no
" >&5
38932 echo "${ECHO_T}no
" >&6; }
38933 cat >>confdefs.h <<\_ACEOF
38934 #define BX_SUPPORT_CLGD54XX 0
38943 { echo "$as_me:$LINENO: checking
for FPU emulation
" >&5
38944 echo $ECHO_N "checking
for FPU emulation...
$ECHO_C" >&6; }
38946 # Check whether --enable-fpu was given.
38947 if test "${enable_fpu+set}" = set; then
38948 enableval=$enable_fpu; if test "$enableval" = yes; then
38949 { echo "$as_me:$LINENO: result
: yes" >&5
38950 echo "${ECHO_T}yes" >&6; }
38951 cat >>confdefs.h <<\_ACEOF
38952 #define BX_SUPPORT_FPU 1
38955 FPU_VAR='$(FPU_LIB)'
38956 elif test "$enableval" = no; then
38957 { echo "$as_me:$LINENO: result
: no
" >&5
38958 echo "${ECHO_T}no
" >&6; }
38959 cat >>confdefs.h <<\_ACEOF
38960 #define BX_SUPPORT_FPU 0
38966 echo "ERROR
: --enable-fpu does not accept a path
"
38972 { echo "$as_me:$LINENO: result
: yes" >&5
38973 echo "${ECHO_T}yes" >&6; }
38974 cat >>confdefs.h <<\_ACEOF
38975 #define BX_SUPPORT_FPU 1
38978 FPU_VAR='$(FPU_LIB)'
38985 { echo "$as_me:$LINENO: checking
for VME support
" >&5
38986 echo $ECHO_N "checking
for VME support...
$ECHO_C" >&6; }
38987 # Check whether --enable-vme was given.
38988 if test "${enable_vme+set}" = set; then
38989 enableval=$enable_vme; if test "$enableval" = yes; then
38990 { echo "$as_me:$LINENO: result
: yes" >&5
38991 echo "${ECHO_T}yes" >&6; }
38992 cat >>confdefs.h <<\_ACEOF
38993 #define BX_SUPPORT_VME 1
38996 elif test "$enableval" = no; then
38997 { echo "$as_me:$LINENO: result
: no
" >&5
38998 echo "${ECHO_T}no
" >&6; }
38999 cat >>confdefs.h <<\_ACEOF
39000 #define BX_SUPPORT_VME 0
39007 if test "$bx_cpu_level" -ge 5; then
39008 { echo "$as_me:$LINENO: result
: yes" >&5
39009 echo "${ECHO_T}yes" >&6; }
39010 cat >>confdefs.h <<\_ACEOF
39011 #define BX_SUPPORT_VME 1
39021 { echo "$as_me:$LINENO: checking
for MMX support
" >&5
39022 echo $ECHO_N "checking
for MMX support...
$ECHO_C" >&6; }
39023 # Check whether --enable-mmx was given.
39024 if test "${enable_mmx+set}" = set; then
39025 enableval=$enable_mmx; if test "$enableval" = yes; then
39026 { echo "$as_me:$LINENO: result
: yes" >&5
39027 echo "${ECHO_T}yes" >&6; }
39028 cat >>confdefs.h <<\_ACEOF
39029 #define BX_SUPPORT_MMX 1
39032 elif test "$enableval" = no; then
39033 { echo "$as_me:$LINENO: result
: no
" >&5
39034 echo "${ECHO_T}no
" >&6; }
39035 cat >>confdefs.h <<\_ACEOF
39036 #define BX_SUPPORT_MMX 0
39044 if test "$bx_cpu_level" -ge 5; then
39045 { echo "$as_me:$LINENO: result
: yes" >&5
39046 echo "${ECHO_T}yes" >&6; }
39047 cat >>confdefs.h <<\_ACEOF
39048 #define BX_SUPPORT_MMX 1
39057 { echo "$as_me:$LINENO: checking
for 3DNow
! support
" >&5
39058 echo $ECHO_N "checking
for 3DNow
! support...
$ECHO_C" >&6; }
39059 # Check whether --enable-3dnow was given.
39060 if test "${enable_3dnow+set}" = set; then
39061 enableval=$enable_3dnow; if test "$enableval" = yes; then
39062 { echo "$as_me:$LINENO: result
: yes" >&5
39063 echo "${ECHO_T}yes" >&6; }
39064 cat >>confdefs.h <<\_ACEOF
39065 #define BX_SUPPORT_3DNOW 1
39068 elif test "$enableval" = no; then
39069 { echo "$as_me:$LINENO: result
: no
" >&5
39070 echo "${ECHO_T}no
" >&6; }
39071 cat >>confdefs.h <<\_ACEOF
39072 #define BX_SUPPORT_3DNOW 0
39079 { echo "$as_me:$LINENO: result
: no
" >&5
39080 echo "${ECHO_T}no
" >&6; }
39081 cat >>confdefs.h <<\_ACEOF
39082 #define BX_SUPPORT_3DNOW 0
39091 { echo "$as_me:$LINENO: checking
for SSE support
" >&5
39092 echo $ECHO_N "checking
for SSE support...
$ECHO_C" >&6; }
39093 # Check whether --enable-sse was given.
39094 if test "${enable_sse+set}" = set; then
39095 enableval=$enable_sse; case "$enableval" in
39098 { echo "$as_me:$LINENO: result
: no
" >&5
39099 echo "${ECHO_T}no
" >&6; }
39103 { echo "$as_me:$LINENO: result
: SSE1
" >&5
39104 echo "${ECHO_T}SSE1
" >&6; }
39108 { echo "$as_me:$LINENO: result
: SSE2
" >&5
39109 echo "${ECHO_T}SSE2
" >&6; }
39113 { echo "$as_me:$LINENO: result
: SSE3
" >&5
39114 echo "${ECHO_T}SSE3
" >&6; }
39118 { echo "$as_me:$LINENO: result
: SSE4
" >&5
39119 echo "${ECHO_T}SSE4
" >&6; }
39122 echo "ERROR
: --enable-sse=$enableval not understood. Use
--enable-sse=no|
1|
2|
3|
4"
39129 if test "$use_x86_64" = 1; then
39131 { echo "$as_me:$LINENO: result
: SSE2
" >&5
39132 echo "${ECHO_T}SSE2
" >&6; }
39134 { echo "$as_me:$LINENO: result
: no
" >&5
39135 echo "${ECHO_T}no
" >&6; }
39142 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
39143 { { echo "$as_me:$LINENO: error
: for SSE support the CPU level must be
set to
6" >&5
39144 echo "$as_me: error
: for SSE support the CPU level must be
set to
6" >&2;}
39145 { (exit 1); exit 1; }; }
39148 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
39149 { { echo "$as_me:$LINENO: error
: x86-64 needs SSE2 support
" >&5
39150 echo "$as_me: error
: x86-64 needs SSE2 support
" >&2;}
39151 { (exit 1); exit 1; }; }
39154 if test "$support_sse" = 4; then
39155 cat >>confdefs.h <<\_ACEOF
39156 #define BX_SUPPORT_SSE 4
39159 elif test "$support_sse" = 3; then
39160 cat >>confdefs.h <<\_ACEOF
39161 #define BX_SUPPORT_SSE 3
39164 elif test "$support_sse" = 2; then
39165 cat >>confdefs.h <<\_ACEOF
39166 #define BX_SUPPORT_SSE 2
39169 elif test "$support_sse" = 1; then
39170 cat >>confdefs.h <<\_ACEOF
39171 #define BX_SUPPORT_SSE 1
39175 cat >>confdefs.h <<\_ACEOF
39176 #define BX_SUPPORT_SSE 0
39181 { echo "$as_me:$LINENO: checking
for SSE extensions support
" >&5
39182 echo $ECHO_N "checking
for SSE extensions support...
$ECHO_C" >&6; }
39183 # Check whether --enable-sse-extension was given.
39184 if test "${enable_sse_extension+set}" = set; then
39185 enableval=$enable_sse_extension; if test "$enableval" = yes; then
39186 { echo "$as_me:$LINENO: result
: yes" >&5
39187 echo "${ECHO_T}yes" >&6; }
39188 cat >>confdefs.h <<\_ACEOF
39189 #define BX_SUPPORT_SSE_EXTENSION 1
39192 elif test "$enableval" = no; then
39193 { echo "$as_me:$LINENO: result
: no
" >&5
39194 echo "${ECHO_T}no
" >&6; }
39195 cat >>confdefs.h <<\_ACEOF
39196 #define BX_SUPPORT_SSE_EXTENSION 0
39203 { echo "$as_me:$LINENO: result
: no
" >&5
39204 echo "${ECHO_T}no
" >&6; }
39205 cat >>confdefs.h <<\_ACEOF
39206 #define BX_SUPPORT_SSE_EXTENSION 0
39214 { echo "$as_me:$LINENO: checking
for DAZ support
" >&5
39215 echo $ECHO_N "checking
for DAZ support...
$ECHO_C" >&6; }
39216 # Check whether --enable-daz was given.
39217 if test "${enable_daz+set}" = set; then
39218 enableval=$enable_daz; if test "$enableval" = yes; then
39219 { echo "$as_me:$LINENO: result
: yes" >&5
39220 echo "${ECHO_T}yes" >&6; }
39221 cat >>confdefs.h <<\_ACEOF
39222 #define BX_SUPPORT_DAZ 1
39225 elif test "$enableval" = no; then
39226 { echo "$as_me:$LINENO: result
: no
" >&5
39227 echo "${ECHO_T}no
" >&6; }
39228 cat >>confdefs.h <<\_ACEOF
39229 #define BX_SUPPORT_DAZ 0
39236 if test "$support_sse" -ge 2; then
39237 { echo "$as_me:$LINENO: result
: yes" >&5
39238 echo "${ECHO_T}yes" >&6; }
39239 cat >>confdefs.h <<\_ACEOF
39240 #define BX_SUPPORT_DAZ 1
39244 { echo "$as_me:$LINENO: result
: no
" >&5
39245 echo "${ECHO_T}no
" >&6; }
39246 cat >>confdefs.h <<\_ACEOF
39247 #define BX_SUPPORT_DAZ 0
39256 { echo "$as_me:$LINENO: checking
for alignment check support
" >&5
39257 echo $ECHO_N "checking
for alignment check support...
$ECHO_C" >&6; }
39258 # Check whether --enable-alignment-check was given.
39259 if test "${enable_alignment_check+set}" = set; then
39260 enableval=$enable_alignment_check; if test "$enableval" = yes; then
39261 { echo "$as_me:$LINENO: result
: yes" >&5
39262 echo "${ECHO_T}yes" >&6; }
39263 cat >>confdefs.h <<\_ACEOF
39264 #define BX_SUPPORT_ALIGNMENT_CHECK 1
39267 elif test "$enableval" = no; then
39268 { echo "$as_me:$LINENO: result
: no
" >&5
39269 echo "${ECHO_T}no
" >&6; }
39270 cat >>confdefs.h <<\_ACEOF
39271 #define BX_SUPPORT_ALIGNMENT_CHECK 0
39278 if test "$bx_cpu_level" -gt 3; then
39279 { echo "$as_me:$LINENO: result
: yes" >&5
39280 echo "${ECHO_T}yes" >&6; }
39281 cat >>confdefs.h <<\_ACEOF
39282 #define BX_SUPPORT_ALIGNMENT_CHECK 1
39286 { echo "$as_me:$LINENO: result
: no
" >&5
39287 echo "${ECHO_T}no
" >&6; }
39288 cat >>confdefs.h <<\_ACEOF
39289 #define BX_SUPPORT_ALIGNMENT_CHECK 0
39298 { echo "$as_me:$LINENO: checking
for misaligned SSE support
" >&5
39299 echo $ECHO_N "checking
for misaligned SSE support...
$ECHO_C" >&6; }
39300 # Check whether --enable-misaligned-sse was given.
39301 if test "${enable_misaligned_sse+set}" = set; then
39302 enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
39303 { echo "$as_me:$LINENO: result
: yes" >&5
39304 echo "${ECHO_T}yes" >&6; }
39305 cat >>confdefs.h <<\_ACEOF
39306 #define BX_SUPPORT_MISALIGNED_SSE 1
39309 elif test "$enableval" = no; then
39310 { echo "$as_me:$LINENO: result
: no
" >&5
39311 echo "${ECHO_T}no
" >&6; }
39312 cat >>confdefs.h <<\_ACEOF
39313 #define BX_SUPPORT_MISALIGNED_SSE 0
39320 { echo "$as_me:$LINENO: result
: no
" >&5
39321 echo "${ECHO_T}no
" >&6; }
39322 cat >>confdefs.h <<\_ACEOF
39323 #define BX_SUPPORT_MISALIGNED_SSE 0
39331 { echo "$as_me:$LINENO: checking
for SEP support
" >&5
39332 echo $ECHO_N "checking
for SEP support...
$ECHO_C" >&6; }
39333 # Check whether --enable-sep was given.
39334 if test "${enable_sep+set}" = set; then
39335 enableval=$enable_sep; if test "$enableval" = yes; then
39336 { echo "$as_me:$LINENO: result
: yes" >&5
39337 echo "${ECHO_T}yes" >&6; }
39338 cat >>confdefs.h <<\_ACEOF
39339 #define BX_SUPPORT_SEP 1
39342 elif test "$enableval" = no; then
39343 { echo "$as_me:$LINENO: result
: no
" >&5
39344 echo "${ECHO_T}no
" >&6; }
39345 cat >>confdefs.h <<\_ACEOF
39346 #define BX_SUPPORT_SEP 0
39353 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
39354 { echo "$as_me:$LINENO: result
: yes" >&5
39355 echo "${ECHO_T}yes" >&6; }
39356 cat >>confdefs.h <<\_ACEOF
39357 #define BX_SUPPORT_SEP 1
39361 { echo "$as_me:$LINENO: result
: no
" >&5
39362 echo "${ECHO_T}no
" >&6; }
39363 cat >>confdefs.h <<\_ACEOF
39364 #define BX_SUPPORT_SEP 0
39373 { echo "$as_me:$LINENO: checking
for POPCNT instruction support
" >&5
39374 echo $ECHO_N "checking
for POPCNT instruction support...
$ECHO_C" >&6; }
39375 # Check whether --enable-popcnt was given.
39376 if test "${enable_popcnt+set}" = set; then
39377 enableval=$enable_popcnt; if test "$enableval" = yes; then
39378 { echo "$as_me:$LINENO: result
: yes" >&5
39379 echo "${ECHO_T}yes" >&6; }
39380 cat >>confdefs.h <<\_ACEOF
39381 #define BX_SUPPORT_POPCNT 1
39384 elif test "$enableval" = no; then
39385 { echo "$as_me:$LINENO: result
: no
" >&5
39386 echo "${ECHO_T}no
" >&6; }
39387 cat >>confdefs.h <<\_ACEOF
39388 #define BX_SUPPORT_POPCNT 0
39395 { echo "$as_me:$LINENO: result
: no
" >&5
39396 echo "${ECHO_T}no
" >&6; }
39397 cat >>confdefs.h <<\_ACEOF
39398 #define BX_SUPPORT_POPCNT 0
39406 { echo "$as_me:$LINENO: checking
for MONITOR
/MWAIT instructions support
(experimental
)" >&5
39407 echo $ECHO_N "checking
for MONITOR
/MWAIT instructions support
(experimental
)...
$ECHO_C" >&6; }
39408 # Check whether --enable-monitor_mwait was given.
39409 if test "${enable_monitor_mwait+set}" = set; then
39410 enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
39411 { echo "$as_me:$LINENO: result
: yes" >&5
39412 echo "${ECHO_T}yes" >&6; }
39413 cat >>confdefs.h <<\_ACEOF
39414 #define BX_SUPPORT_MONITOR_MWAIT 1
39417 elif test "$enableval" = no; then
39418 { echo "$as_me:$LINENO: result
: no
" >&5
39419 echo "${ECHO_T}no
" >&6; }
39420 cat >>confdefs.h <<\_ACEOF
39421 #define BX_SUPPORT_MONITOR_MWAIT 0
39428 { echo "$as_me:$LINENO: result
: no
" >&5
39429 echo "${ECHO_T}no
" >&6; }
39430 cat >>confdefs.h <<\_ACEOF
39431 #define BX_SUPPORT_MONITOR_MWAIT 0
39439 { echo "$as_me:$LINENO: checking
for x86 debugger support
" >&5
39440 echo $ECHO_N "checking
for x86 debugger support...
$ECHO_C" >&6; }
39441 # Check whether --enable-x86-debugger was given.
39442 if test "${enable_x86_debugger+set}" = set; then
39443 enableval=$enable_x86_debugger; if test "$enableval" = yes; then
39444 { echo "$as_me:$LINENO: result
: yes" >&5
39445 echo "${ECHO_T}yes" >&6; }
39446 cat >>confdefs.h <<\_ACEOF
39447 #define BX_X86_DEBUGGER 1
39450 elif test "$enableval" = no; then
39451 { echo "$as_me:$LINENO: result
: no
" >&5
39452 echo "${ECHO_T}no
" >&6; }
39453 cat >>confdefs.h <<\_ACEOF
39454 #define BX_X86_DEBUGGER 0
39458 { echo "$as_me:$LINENO: result
: yes" >&5
39459 echo "${ECHO_T}yes" >&6; }
39460 cat >>confdefs.h <<\_ACEOF
39461 #define BX_X86_DEBUGGER 1
39467 { echo "$as_me:$LINENO: result
: no
" >&5
39468 echo "${ECHO_T}no
" >&6; }
39469 cat >>confdefs.h <<\_ACEOF
39470 #define BX_X86_DEBUGGER 0
39478 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39479 { echo "$as_me:$LINENO: checking
for IOKit
/storage
/IOCDMedia.h
" >&5
39480 echo $ECHO_N "checking
for IOKit
/storage
/IOCDMedia.h...
$ECHO_C" >&6; }
39481 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39482 echo $ECHO_N "(cached
) $ECHO_C" >&6
39484 { echo "$as_me:$LINENO: result
: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
39485 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
39487 # Is the header compilable?
39488 { echo "$as_me:$LINENO: checking IOKit
/storage
/IOCDMedia.h usability
" >&5
39489 echo $ECHO_N "checking IOKit
/storage
/IOCDMedia.h usability...
$ECHO_C" >&6; }
39490 cat >conftest.$ac_ext <<_ACEOF
39493 cat confdefs.h >>conftest.$ac_ext
39494 cat >>conftest.$ac_ext <<_ACEOF
39495 /* end confdefs.h. */
39496 $ac_includes_default
39497 #include <IOKit/storage/IOCDMedia.h>
39499 rm -f conftest.$ac_objext
39500 if { (ac_try="$ac_compile"
39501 case "(($ac_try" in
39502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39503 *) ac_try_echo=$ac_try;;
39505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
39506 (eval "$ac_compile") 2>conftest.er1
39508 grep -v '^ *+' conftest.er1 >conftest.err
39510 cat conftest.err >&5
39511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
39512 (exit $ac_status); } &&
39513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39514 { (case "(($ac_try" in
39515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39516 *) ac_try_echo=$ac_try;;
39518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
39519 (eval "$ac_try") 2>&5
39521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
39522 (exit $ac_status); }; } &&
39523 { ac_try='test -s conftest.$ac_objext'
39524 { (case "(($ac_try" in
39525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39526 *) ac_try_echo=$ac_try;;
39528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
39529 (eval "$ac_try") 2>&5
39531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
39532 (exit $ac_status); }; }; then
39533 ac_header_compiler=yes
39535 echo "$as_me: failed program was
:" >&5
39536 sed 's/^/| /' conftest.$ac_ext >&5
39538 ac_header_compiler=no
39541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39542 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
39543 echo "${ECHO_T}$ac_header_compiler" >&6; }
39545 # Is the header present?
39546 { echo "$as_me:$LINENO: checking IOKit
/storage
/IOCDMedia.h presence
" >&5
39547 echo $ECHO_N "checking IOKit
/storage
/IOCDMedia.h presence...
$ECHO_C" >&6; }
39548 cat >conftest.$ac_ext <<_ACEOF
39551 cat confdefs.h >>conftest.$ac_ext
39552 cat >>conftest.$ac_ext <<_ACEOF
39553 /* end confdefs.h. */
39554 #include <IOKit/storage/IOCDMedia.h>
39556 if { (ac_try="$ac_cpp conftest.
$ac_ext"
39557 case "(($ac_try" in
39558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39559 *) ac_try_echo=$ac_try;;
39561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
39562 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
39564 grep -v '^ *+' conftest.er1 >conftest.err
39566 cat conftest.err >&5
39567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
39568 (exit $ac_status); } >/dev/null; then
39569 if test -s conftest.err; then
39570 ac_cpp_err=$ac_c_preproc_warn_flag
39571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39578 if test -z "$ac_cpp_err"; then
39579 ac_header_preproc=yes
39581 echo "$as_me: failed program was
:" >&5
39582 sed 's/^/| /' conftest.$ac_ext >&5
39584 ac_header_preproc=no
39587 rm -f conftest.err conftest.$ac_ext
39588 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
39589 echo "${ECHO_T}$ac_header_preproc" >&6; }
39591 # So? What about this header?
39592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39594 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
39595 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
39596 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: proceeding with the compiler
's result" >&5
39597 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result
" >&2;}
39598 ac_header_preproc=yes
39601 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: present but cannot be compiled
" >&5
39602 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: present but cannot be compiled
" >&2;}
39603 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: check
for missing prerequisite headers?
" >&5
39604 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: check
for missing prerequisite headers?
" >&2;}
39605 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: see the Autoconf documentation
" >&5
39606 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: see the Autoconf documentation
" >&2;}
39607 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: section
\"Present But Cannot Be Compiled
\"" >&5
39608 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
39609 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: proceeding with the preprocessor
's result" >&5
39610 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result
" >&2;}
39611 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: in the future
, the compiler will take precedence
" >&5
39612 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: in the future
, the compiler will take precedence
" >&2;}
39616 { echo "$as_me:$LINENO: checking
for IOKit
/storage
/IOCDMedia.h
" >&5
39617 echo $ECHO_N "checking
for IOKit
/storage
/IOCDMedia.h...
$ECHO_C" >&6; }
39618 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39619 echo $ECHO_N "(cached
) $ECHO_C" >&6
39621 ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
39623 { echo "$as_me:$LINENO: result
: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
39624 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
39627 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
39628 can_use_osx_cdrom=yes
39634 { echo "$as_me:$LINENO: checking
for CDROM support
" >&5
39635 echo $ECHO_N "checking
for CDROM support...
$ECHO_C" >&6; }
39636 # Check whether --enable-cdrom was given.
39637 if test "${enable_cdrom+set}" = set; then
39638 enableval=$enable_cdrom; if test "$enableval" = no; then
39649 if test "$bx_cdrom" = 1; then
39650 { echo "$as_me:$LINENO: result
: yes" >&5
39651 echo "${ECHO_T}yes" >&6; }
39652 CDROM_OBJS='cdrom.o'
39653 if test "$with_amigaos" = yes; then
39654 # use the amiga cdrom file instead.
39655 CDROM_OBJS="cdrom_amigaos.o
"
39656 elif test "$can_use_osx_cdrom" = yes; then
39658 { echo "$as_me:$LINENO: result
: Using OSX IOKit CD Interface
" >&5
39659 echo "${ECHO_T}Using OSX IOKit CD Interface
" >&6; }
39660 CDROM_OBJS="cdrom.o
"
39661 EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit
-framework CoreFoundation
"'$(GUI_LINK_OPTS)'
39665 # use the beos cdrom file instead
39666 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o
"
39668 cat >>confdefs.h <<\_ACEOF
39669 #define BX_SUPPORT_CDROM 1
39673 { echo "$as_me:$LINENO: result
: no
" >&5
39674 echo "${ECHO_T}no
" >&6; }
39676 cat >>confdefs.h <<\_ACEOF
39677 #define BX_SUPPORT_CDROM 0
39685 { echo "$as_me:$LINENO: checking
for Sound Blaster
16 support
" >&5
39686 echo $ECHO_N "checking
for Sound Blaster
16 support...
$ECHO_C" >&6; }
39691 # Check whether --enable-sb16 was given.
39692 if test "${enable_sb16+set}" = set; then
39693 enableval=$enable_sb16; if test "$enableval" = no; then
39694 { echo "$as_me:$LINENO: result
: no
" >&5
39695 echo "${ECHO_T}no
" >&6; }
39696 cat >>confdefs.h <<\_ACEOF
39697 #define BX_SUPPORT_SB16 0
39701 case "$enableval" in
39704 cat >>confdefs.h <<\_ACEOF
39705 #define BX_SOUND_OUTPUT_C bx_sound_output_c
39708 { echo "$as_me:$LINENO: result
: dummy
" >&5
39709 echo "${ECHO_T}dummy
" >&6; }
39712 SOUNDLOW_OBJS='soundlnx.o'
39713 cat >>confdefs.h <<\_ACEOF
39714 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
39717 { echo "$as_me:$LINENO: result
: linux
" >&5
39718 echo "${ECHO_T}linux
" >&6; }
39721 SOUNDLOW_OBJS='soundwin.o'
39722 cat >>confdefs.h <<\_ACEOF
39723 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39726 { echo "$as_me:$LINENO: result
: win
" >&5
39727 echo "${ECHO_T}win
" >&6; }
39730 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib
"
39733 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39738 SOUNDLOW_OBJS='soundosx.o'
39739 cat >>confdefs.h <<\_ACEOF
39740 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
39743 { echo "$as_me:$LINENO: result
: osx
" >&5
39744 echo "${ECHO_T}osx
" >&6; }
39745 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit
-framework AudioToolbox
"
39749 *-linux* | *-freebsd*)
39750 SOUNDLOW_OBJS='soundlnx.o'
39751 cat >>confdefs.h <<\_ACEOF
39752 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
39755 { echo "$as_me:$LINENO: result
: linux
" >&5
39756 echo "${ECHO_T}linux
" >&6; }
39759 SOUNDLOW_OBJS='soundwin.o'
39760 cat >>confdefs.h <<\_ACEOF
39761 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39764 { echo "$as_me:$LINENO: result
: win
" >&5
39765 echo "${ECHO_T}win
" >&6; }
39766 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib
"
39768 *-cygwin* | *-mingw32*)
39769 SOUNDLOW_OBJS='soundwin.o'
39770 cat >>confdefs.h <<\_ACEOF
39771 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39774 { echo "$as_me:$LINENO: result
: win
" >&5
39775 echo "${ECHO_T}win
" >&6; }
39776 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39778 *-macosx* | *-macos*)
39779 SOUNDLOW_OBJS='soundosx.o'
39780 cat >>confdefs.h <<\_ACEOF
39781 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
39784 { echo "$as_me:$LINENO: result
: osx
" >&5
39785 echo "${ECHO_T}osx
" >&6; }
39786 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit
-framework AudioToolbox
"
39790 cat >>confdefs.h <<\_ACEOF
39791 #define BX_SOUND_OUTPUT_C bx_sound_output_c
39794 { echo "$as_me:$LINENO: result
: dummy
" >&5
39795 echo "${ECHO_T}dummy
" >&6; }
39801 echo \!\!\!Error\!\!\!
39802 echo "You must pass one of dummy
, linux
, win
, freebsd
, osx to
--enable-sb16"
39806 cat >>confdefs.h <<\_ACEOF
39807 #define BX_SUPPORT_SB16 1
39810 GAME_OBJS='gameport.o'
39815 { echo "$as_me:$LINENO: result
: no
" >&5
39816 echo "${ECHO_T}no
" >&6; }
39817 cat >>confdefs.h <<\_ACEOF
39818 #define BX_SUPPORT_SB16 0
39829 { echo "$as_me:$LINENO: checking
for standard PC gameport support
" >&5
39830 echo $ECHO_N "checking
for standard PC gameport support...
$ECHO_C" >&6; }
39831 # Check whether --enable-gameport was given.
39832 if test "${enable_gameport+set}" = set; then
39833 enableval=$enable_gameport; if test "$enableval" = yes; then
39834 { echo "$as_me:$LINENO: result
: yes" >&5
39835 echo "${ECHO_T}yes" >&6; }
39836 cat >>confdefs.h <<\_ACEOF
39837 #define BX_SUPPORT_GAMEPORT 1
39840 if test "$gameport_present" = 0; then
39841 GAME_OBJS='gameport.o'
39843 *-cygwin* | *-mingw32*)
39844 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39849 { echo "$as_me:$LINENO: result
: no
" >&5
39850 echo "${ECHO_T}no
" >&6; }
39852 cat >>confdefs.h <<\_ACEOF
39853 #define BX_SUPPORT_GAMEPORT 0
39859 if test "$gameport_present" = 1; then
39860 cat >>confdefs.h <<\_ACEOF
39861 #define BX_SUPPORT_GAMEPORT 1
39864 { echo "$as_me:$LINENO: result
: yes" >&5
39865 echo "${ECHO_T}yes" >&6; }
39867 cat >>confdefs.h <<\_ACEOF
39868 #define BX_SUPPORT_GAMEPORT 0
39871 { echo "$as_me:$LINENO: result
: no
" >&5
39872 echo "${ECHO_T}no
" >&6; }
39880 { echo "$as_me:$LINENO: checking
for gdb stub
enable" >&5
39881 echo $ECHO_N "checking
for gdb stub
enable...
$ECHO_C" >&6; }
39882 # Check whether --enable-gdb-stub was given.
39883 if test "${enable_gdb_stub+set}" = set; then
39884 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
39885 { echo "$as_me:$LINENO: result
: yes" >&5
39886 echo "${ECHO_T}yes" >&6; }
39887 cat >>confdefs.h <<\_ACEOF
39888 #define BX_GDBSTUB 1
39891 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
39892 if test "$bx_debugger" = 1; then
39893 { { echo "$as_me:$LINENO: error
: --enable-debugger and
--enable-gdb-stub are mutually exclusive
" >&5
39894 echo "$as_me: error
: --enable-debugger and
--enable-gdb-stub are mutually exclusive
" >&2;}
39895 { (exit 1); exit 1; }; }
39898 { echo "$as_me:$LINENO: result
: no
" >&5
39899 echo "${ECHO_T}no
" >&6; }
39900 cat >>confdefs.h <<\_ACEOF
39901 #define BX_GDBSTUB 0
39908 { echo "$as_me:$LINENO: result
: no
" >&5
39909 echo "${ECHO_T}no
" >&6; }
39910 cat >>confdefs.h <<\_ACEOF
39911 #define BX_GDBSTUB 0
39922 { echo "$as_me:$LINENO: checking
for I
/O Interface to the debugger
" >&5
39923 echo $ECHO_N "checking
for I
/O Interface to the debugger...
$ECHO_C" >&6; }
39925 # Check whether --enable-iodebug was given.
39926 if test "${enable_iodebug+set}" = set; then
39927 enableval=$enable_iodebug; if test "$enableval" = yes; then
39928 { echo "$as_me:$LINENO: result
: yes" >&5
39929 echo "${ECHO_T}yes" >&6; }
39930 cat >>confdefs.h <<\_ACEOF
39931 #define BX_SUPPORT_IODEBUG 1
39934 IODEBUG_OBJS='iodebug.o'
39936 { echo "$as_me:$LINENO: result
: no
" >&5
39937 echo "${ECHO_T}no
" >&6; }
39938 cat >>confdefs.h <<\_ACEOF
39939 #define BX_SUPPORT_IODEBUG 0
39946 if test "" = 1; then
39947 # enable by default if debugger is on
39948 { echo "$as_me:$LINENO: result
: yes" >&5
39949 echo "${ECHO_T}yes" >&6; }
39950 cat >>confdefs.h <<\_ACEOF
39951 #define BX_SUPPORT_IODEBUG 1
39954 IODEBUG_OBJS='iodebug.o'
39956 { echo "$as_me:$LINENO: result
: no
" >&5
39957 echo "${ECHO_T}no
" >&6; }
39966 # Extract the first word of "docbook2html
", so it can be a program name with args.
39967 set dummy docbook2html; ac_word=$2
39968 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
39969 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
39970 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
39971 echo $ECHO_N "(cached
) $ECHO_C" >&6
39973 case $DOCBOOK2HTML in
39975 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
39978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39979 for as_dir in $PATH
39982 test -z "$as_dir" && as_dir=.
39983 for ac_exec_ext in '' $ac_executable_extensions; do
39984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
39985 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
39986 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
39993 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found
"
39997 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
39998 if test -n "$DOCBOOK2HTML"; then
39999 { echo "$as_me:$LINENO: result
: $DOCBOOK2HTML" >&5
40000 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
40002 { echo "$as_me:$LINENO: result
: no
" >&5
40003 echo "${ECHO_T}no
" >&6; }
40007 { echo "$as_me:$LINENO: checking whether to build docbook documentation
" >&5
40008 echo $ECHO_N "checking whether to build docbook documentation...
$ECHO_C" >&6; }
40010 # Check whether --enable-docbook was given.
40011 if test "${enable_docbook+set}" = set; then
40012 enableval=$enable_docbook;
40013 if test "$enableval" = yes; then build_docbook=1; fi
40017 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
40023 if test $build_docbook = 1; then
40024 { echo "$as_me:$LINENO: result
: yes" >&5
40025 echo "${ECHO_T}yes" >&6; }
40026 BUILD_DOCBOOK_VAR=build_docbook
40027 INSTALL_DOCBOOK_VAR=install_docbook
40028 if test "$DOCBOOK2HTML" = not_found; then
40029 echo "ERROR
: docbook2html must be installed to build the documentation
"
40033 { echo "$as_me:$LINENO: result
: no
" >&5
40034 echo "${ECHO_T}no
" >&6; }
40040 PRIMARY_TARGET='bochs'
40041 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
40043 cat >>confdefs.h <<\_ACEOF
40044 #define BX_PROVIDE_DEVICE_MODELS 1
40047 IODEV_LIB_VAR='iodev/libiodev.a'
40048 cat >>confdefs.h <<\_ACEOF
40049 #define BX_PROVIDE_CPU_MEMORY 1
40052 NONINLINE_VAR='$(NONINLINE_OBJS)'
40064 # Check whether --with-x11 was given.
40065 if test "${with_x11+set}" = set; then
40071 # Check whether --with-beos was given.
40072 if test "${with_beos+set}" = set; then
40073 withval=$with_beos;
40078 # Check whether --with-win32 was given.
40079 if test "${with_win32+set}" = set; then
40080 withval=$with_win32;
40085 # Check whether --with-macos was given.
40086 if test "${with_macos+set}" = set; then
40087 withval=$with_macos;
40092 # Check whether --with-carbon was given.
40093 if test "${with_carbon+set}" = set; then
40094 withval=$with_carbon;
40099 # Check whether --with-nogui was given.
40100 if test "${with_nogui+set}" = set; then
40101 withval=$with_nogui;
40106 # Check whether --with-term was given.
40107 if test "${with_term+set}" = set; then
40108 withval=$with_term;
40113 # Check whether --with-rfb was given.
40114 if test "${with_rfb+set}" = set; then
40120 # Check whether --with-amigaos was given.
40121 if test "${with_amigaos+set}" = set; then
40122 withval=$with_amigaos;
40127 # Check whether --with-sdl was given.
40128 if test "${with_sdl+set}" = set; then
40134 # Check whether --with-svga was given.
40135 if test "${with_svga+set}" = set; then
40136 withval=$with_svga;
40141 # Check whether --with-wx was given.
40142 if test "${with_wx+set}" = set; then
40148 # Check whether --with-all-libs was given.
40149 if test "${with_all_libs+set}" = set; then
40150 withval=$with_all_libs;
40159 MAKELIB="ar rv \$@
"
40161 # first define link variables without libtool
40162 LINK="\$
(CXX
) -o \$@ \$
(CXXFLAGS
) \$
(LDFLAGS
)"
40163 LINK_CONSOLE="\$
(CXX
) -o \$@ \$
(CXXFLAGS_CONSOLE
) \$
(LDFLAGS
)"
40164 # unless NO_LT is set, add libtool to the front of the link command
40165 if test "$NO_LT" != 1; then
40166 LINK="\$
(LIBTOOL
) --mode=link
$LINK"
40167 LINK_CONSOLE="\$
(LIBTOOL
) --mode=link
$LINK_CONSOLE"
40170 COMMAND_SEPARATOR="&& \\"
40171 CD_UP_ONE="echo done"
40172 CD_UP_TWO="echo done"
40173 CD_UP_THREE="echo done"
40175 INSTALL_TARGET=install_unix
40176 INSTALL_LIST_FOR_PLATFORM=
40178 # check for existence of and usable version of wxWidgets. This comes
40179 # early so that it could affect which one gets chosen.
40180 if test x$WX_CONFIG = x; then
40181 # Extract the first word of " wx-config
--version ", so it can be a program name with args.
40182 set dummy wx-config --version ; ac_word=$2
40183 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
40184 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
40185 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
40186 echo $ECHO_N "(cached
) $ECHO_C" >&6
40188 if test -n "$WX_CONFIG"; then
40189 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
40191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40192 for as_dir in $PATH
40195 test -z "$as_dir" && as_dir=.
40196 for ac_exec_ext in '' $ac_executable_extensions; do
40197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40198 ac_cv_prog_WX_CONFIG="wx-config
"
40199 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
40206 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found
"
40209 WX_CONFIG=$ac_cv_prog_WX_CONFIG
40210 if test -n "$WX_CONFIG"; then
40211 { echo "$as_me:$LINENO: result
: $WX_CONFIG" >&5
40212 echo "${ECHO_T}$WX_CONFIG" >&6; }
40214 { echo "$as_me:$LINENO: result
: no
" >&5
40215 echo "${ECHO_T}no
" >&6; }
40220 { echo "$as_me:$LINENO: checking
for wxWidgets configuration
script" >&5
40221 echo $ECHO_N "checking
for wxWidgets configuration
script...
$ECHO_C" >&6; }
40222 { echo "$as_me:$LINENO: result
: $WX_CONFIG" >&5
40223 echo "${ECHO_T}$WX_CONFIG" >&6; }
40228 { echo "$as_me:$LINENO: checking
for wxWidgets library version
" >&5
40229 echo $ECHO_N "checking
for wxWidgets library version...
$ECHO_C" >&6; }
40230 if test x$WX_CONFIG != xnot_found; then
40231 WX_VERSION=`$WX_CONFIG --version`
40232 WX_BASENAME=`$WX_CONFIG --basename`
40234 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
40235 case x$WX_VERSION in
40236 x2.[012]*) ;; # less than version 2.3.x
40237 x2.3.[01]) ;; # less than version 2.3.2
40238 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
40239 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
40240 x2.[6-9]*) # version 2.6 or greater
40243 case x$WX_BASENAME in
40244 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
40248 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
40253 { echo "$as_me:$LINENO: result
: $WX_VERSION" >&5
40254 echo "${ECHO_T}$WX_VERSION" >&6; }
40255 if test "$cross_configure" = 0; then
40256 if test "$ok_wx_version" = 1; then
40257 # detected a usable version
40258 if test "$with_all_libs" = yes; then
40262 if test "$with_wx" = yes; then
40263 { echo "$as_me:$LINENO: WARNING
: Bochs
for wxWidgets cannot be compiled here
, disabling it
" >&5
40264 echo "$as_me: WARNING
: Bochs
for wxWidgets cannot be compiled here
, disabling it
" >&2;}
40270 { echo "$as_me:$LINENO: checking
for default gui on this platform
" >&5
40271 echo $ECHO_N "checking
for default gui on this platform...
$ECHO_C" >&6; }
40272 { echo "$as_me:$LINENO: result
: $DEFAULT_GUI" >&5
40273 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
40277 # the $with_* variable tells the gui library to use, but does NOT necessarily
40278 # indicate the platform. Settings that depend on the platform should be
40282 if test "$with_x11" = yes; then
40283 display_libs="$display_libs X11
"
40284 if test "$no_x" = yes; then
40285 echo ERROR: X windows gui was selected, but X windows libraries were not found.
40288 cat >>confdefs.h <<\_ACEOF
40289 #define BX_WITH_X11 1
40292 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_X11
)"
40293 GUI_CFLAGS="$GUI_CFLAGS \$
(X_CFLAGS
)"
40294 GUI_CXXFLAGS="$GUI_CXXFLAGS \$
(X_CFLAGS
)"
40295 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_X
)"
40297 { echo "$as_me:$LINENO: checking whether user wants XPM support
" >&5
40298 echo $ECHO_N "checking whether user wants XPM support...
$ECHO_C" >&6; }
40299 # Check whether --enable-xpm was given.
40300 if test "${enable_xpm+set}" = set; then
40301 enableval=$enable_xpm; if test "$enableval" = yes; then
40303 { echo "$as_me:$LINENO: result
: yes" >&5
40304 echo "${ECHO_T}yes" >&6; }
40307 { echo "$as_me:$LINENO: result
: no
" >&5
40308 echo "${ECHO_T}no
" >&6; }
40313 { echo "$as_me:$LINENO: result
: yes" >&5
40314 echo "${ECHO_T}yes" >&6; }
40320 if test $check_xpm = 1; then
40321 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40322 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
40323 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
40324 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40325 echo $ECHO_N "(cached
) $ECHO_C" >&6
40327 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
40328 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
40330 # Is the header compilable?
40331 { echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
40332 echo $ECHO_N "checking X11
/xpm.h usability...
$ECHO_C" >&6; }
40333 cat >conftest.$ac_ext <<_ACEOF
40336 cat confdefs.h >>conftest.$ac_ext
40337 cat >>conftest.$ac_ext <<_ACEOF
40338 /* end confdefs.h. */
40339 $ac_includes_default
40340 #include <X11/xpm.h>
40342 rm -f conftest.$ac_objext
40343 if { (ac_try="$ac_compile"
40344 case "(($ac_try" in
40345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40346 *) ac_try_echo=$ac_try;;
40348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
40349 (eval "$ac_compile") 2>conftest.er1
40351 grep -v '^ *+' conftest.er1 >conftest.err
40353 cat conftest.err >&5
40354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
40355 (exit $ac_status); } &&
40356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40357 { (case "(($ac_try" in
40358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40359 *) ac_try_echo=$ac_try;;
40361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
40362 (eval "$ac_try") 2>&5
40364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
40365 (exit $ac_status); }; } &&
40366 { ac_try='test -s conftest.$ac_objext'
40367 { (case "(($ac_try" in
40368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40369 *) ac_try_echo=$ac_try;;
40371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
40372 (eval "$ac_try") 2>&5
40374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
40375 (exit $ac_status); }; }; then
40376 ac_header_compiler=yes
40378 echo "$as_me: failed program was
:" >&5
40379 sed 's/^/| /' conftest.$ac_ext >&5
40381 ac_header_compiler=no
40384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40385 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
40386 echo "${ECHO_T}$ac_header_compiler" >&6; }
40388 # Is the header present?
40389 { echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
40390 echo $ECHO_N "checking X11
/xpm.h presence...
$ECHO_C" >&6; }
40391 cat >conftest.$ac_ext <<_ACEOF
40394 cat confdefs.h >>conftest.$ac_ext
40395 cat >>conftest.$ac_ext <<_ACEOF
40396 /* end confdefs.h. */
40397 #include <X11/xpm.h>
40399 if { (ac_try="$ac_cpp conftest.
$ac_ext"
40400 case "(($ac_try" in
40401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40402 *) ac_try_echo=$ac_try;;
40404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
40405 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
40407 grep -v '^ *+' conftest.er1 >conftest.err
40409 cat conftest.err >&5
40410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
40411 (exit $ac_status); } >/dev/null; then
40412 if test -s conftest.err; then
40413 ac_cpp_err=$ac_c_preproc_warn_flag
40414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40421 if test -z "$ac_cpp_err"; then
40422 ac_header_preproc=yes
40424 echo "$as_me: failed program was
:" >&5
40425 sed 's/^/| /' conftest.$ac_ext >&5
40427 ac_header_preproc=no
40430 rm -f conftest.err conftest.$ac_ext
40431 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
40432 echo "${ECHO_T}$ac_header_preproc" >&6; }
40434 # So? What about this header?
40435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40437 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
40438 echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
40439 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
40440 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
40441 ac_header_preproc=yes
40444 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
40445 echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
40446 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
40447 echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
40448 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
40449 echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
40450 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
40451 echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
40452 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
40453 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
40454 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
40455 echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
40459 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
40460 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
40461 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40462 echo $ECHO_N "(cached
) $ECHO_C" >&6
40464 ac_cv_header_X11_xpm_h=$ac_header_preproc
40466 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
40467 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
40470 if test $ac_cv_header_X11_xpm_h = yes; then
40472 cat >>confdefs.h <<\_ACEOF
40473 #define BX_HAVE_XPM_H 1
40485 if test "$with_beos" = yes; then
40486 display_libs="$display_libs beos
"
40487 cat >>confdefs.h <<\_ACEOF
40488 #define BX_WITH_BEOS 1
40491 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_BEOS
)"
40492 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_BEOS
)"
40495 if test "$with_sdl" = yes; then
40496 display_libs="$display_libs sdl
"
40497 cat >>confdefs.h <<\_ACEOF
40498 #define BX_WITH_SDL 1
40501 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_SDL
)"
40502 # GUI_*FLAGS are added to the compilation of every bochs file, not just
40503 # the files in gui/*.cc.
40504 SDL_CFLAGS=`sdl-config --cflags`
40505 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
40506 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
40507 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_SDL
)"
40508 if test "$with_win32" != yes -a "$with_wx" != yes; then
40512 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
40514 *-cygwin* | *-mingw32*)
40515 RC_CMD="windres
-o "
40516 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
40522 if test "$with_svga" = yes; then
40523 display_libs="$display_libs svga
"
40524 cat >>confdefs.h <<\_ACEOF
40525 #define BX_WITH_SVGA 1
40528 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_SVGA
)"
40529 # GUI_*FLAGS are added to the compilation of every bochs file, not just
40530 # the files in gui/*.cc.
40531 GUI_CFLAGS="$GUI_CFLAGS"
40532 GUI_CXXFLAGS="$GUI_CXXFLAGS"
40533 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_SVGA
)"
40536 if test "$with_rfb" = yes; then
40537 display_libs="$display_libs rfb
"
40538 cat >>confdefs.h <<\_ACEOF
40539 #define BX_WITH_RFB 1
40542 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_RFB
)"
40543 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_RFB
)"
40546 if test "$with_amigaos" = yes; then
40547 display_libs="$display_libs amigaos
"
40548 cat >>confdefs.h <<\_ACEOF
40549 #define BX_WITH_AMIGAOS 1
40552 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_AMIGAOS
)"
40553 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_AMIGAOS
)"
40556 if test "$with_win32" = yes; then
40557 display_libs="$display_libs win32
"
40558 cat >>confdefs.h <<\_ACEOF
40559 #define BX_WITH_WIN32 1
40562 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_WIN32
)"
40565 if test "$with_wx" != yes; then
40567 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
40569 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_WIN32_VCPP
)"
40571 *-cygwin* | *-mingw32*)
40572 if test "$with_wx" != yes; then
40573 RC_CMD="windres
-o "
40574 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
40576 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_WIN32
)"
40578 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
40583 if test "$with_macos" = yes; then
40584 display_libs="$display_libs macos
"
40585 cat >>confdefs.h <<\_ACEOF
40586 #define BX_WITH_MACOS 1
40589 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_MACOS
)"
40590 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_MACOS
)"
40593 if test "$with_carbon" = yes; then
40594 display_libs="$display_libs carbon
"
40595 cat >>confdefs.h <<\_ACEOF
40596 #define BX_WITH_CARBON 1
40599 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_CARBON
)"
40600 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_CARBON
)"
40601 if test "$bx_plugins" = 1; then
40602 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
40604 PRIMARY_TARGET=bochs.app/.build # only for carbon application
40606 INSTALL_TARGET='install_macosx'
40609 if test "$with_term" = yes; then
40610 display_libs="$display_libs term
"
40611 cat >>confdefs.h <<\_ACEOF
40612 #define BX_WITH_TERM 1
40615 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_TERM
)"
40616 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_TERM
)"
40620 if test "$with_wx" = yes; then
40621 display_libs="$display_libs wxWidgets
"
40622 if test "$cross_configure" = 1; then
40623 true # do not insist, if configuring for another machine
40625 if test x$ok_wx_version != x1; then
40626 echo ERROR: A usable version of wxWidgets was not found.
40627 echo Upgrade the library or choose another gui.
40631 cat >>confdefs.h <<\_ACEOF
40632 #define BX_WITH_WX 1
40635 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_WX
)"
40636 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$
(GUI_OBJS_WX_SUPPORT
)"
40637 WX_CFLAGS="`$WX_CONFIG --cflags`"
40638 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
40639 if test "$wx_multi_lib" = 1; then
40640 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
40642 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
40644 if test "$wx_needs_gtk2" = 1; then
40647 if test "x
$ac_cv_env_PKG_CONFIG_set" != "xset
"; then
40648 if test -n "$ac_tool_prefix"; then
40649 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
40650 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40651 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
40652 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
40653 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40654 echo $ECHO_N "(cached
) $ECHO_C" >&6
40656 case $PKG_CONFIG in
40658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40662 for as_dir in $PATH
40665 test -z "$as_dir" && as_dir=.
40666 for ac_exec_ext in '' $ac_executable_extensions; do
40667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40669 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
40679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40680 if test -n "$PKG_CONFIG"; then
40681 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
40682 echo "${ECHO_T}$PKG_CONFIG" >&6; }
40684 { echo "$as_me:$LINENO: result
: no
" >&5
40685 echo "${ECHO_T}no
" >&6; }
40690 if test -z "$ac_cv_path_PKG_CONFIG"; then
40691 ac_pt_PKG_CONFIG=$PKG_CONFIG
40692 # Extract the first word of "pkg-config
", so it can be a program name with args.
40693 set dummy pkg-config; ac_word=$2
40694 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
40695 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
40696 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
40697 echo $ECHO_N "(cached
) $ECHO_C" >&6
40699 case $ac_pt_PKG_CONFIG in
40701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
40704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40705 for as_dir in $PATH
40708 test -z "$as_dir" && as_dir=.
40709 for ac_exec_ext in '' $ac_executable_extensions; do
40710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40712 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
40722 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
40723 if test -n "$ac_pt_PKG_CONFIG"; then
40724 { echo "$as_me:$LINENO: result
: $ac_pt_PKG_CONFIG" >&5
40725 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
40727 { echo "$as_me:$LINENO: result
: no
" >&5
40728 echo "${ECHO_T}no
" >&6; }
40731 if test "x
$ac_pt_PKG_CONFIG" = x; then
40734 case $cross_compiling:$ac_tool_warned in
40736 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
40737 whose name does not start with the
host triplet. If you think this
40738 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
40739 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
40740 whose name does not start with the
host triplet. If you think this
40741 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
40742 ac_tool_warned=yes ;;
40744 PKG_CONFIG=$ac_pt_PKG_CONFIG
40747 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
40751 if test -n "$PKG_CONFIG"; then
40752 _pkg_min_version=0.9.0
40753 { echo "$as_me:$LINENO: checking pkg-config is
at least version
$_pkg_min_version" >&5
40754 echo $ECHO_N "checking pkg-config is
at least version
$_pkg_min_version...
$ECHO_C" >&6; }
40755 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
40756 { echo "$as_me:$LINENO: result
: yes" >&5
40757 echo "${ECHO_T}yes" >&6; }
40759 { echo "$as_me:$LINENO: result
: no
" >&5
40760 echo "${ECHO_T}no
" >&6; }
40767 { echo "$as_me:$LINENO: checking
for GTK
" >&5
40768 echo $ECHO_N "checking
for GTK...
$ECHO_C" >&6; }
40770 if test -n "$PKG_CONFIG"; then
40771 if test -n "$GTK_CFLAGS"; then
40772 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
40774 if test -n "$PKG_CONFIG" && \
40775 { (echo "$as_me:$LINENO: \
$PKG_CONFIG --exists --print-errors \"gtk
+-2.0
\"") >&5
40776 ($PKG_CONFIG --exists --print-errors "gtk
+-2.0
") 2>&5
40778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
40779 (exit $ac_status); }; then
40780 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk
+-2.0
" 2>/dev/null`
40788 if test -n "$PKG_CONFIG"; then
40789 if test -n "$GTK_LIBS"; then
40790 pkg_cv_GTK_LIBS="$GTK_LIBS"
40792 if test -n "$PKG_CONFIG" && \
40793 { (echo "$as_me:$LINENO: \
$PKG_CONFIG --exists --print-errors \"gtk
+-2.0
\"") >&5
40794 ($PKG_CONFIG --exists --print-errors "gtk
+-2.0
") 2>&5
40796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
40797 (exit $ac_status); }; then
40798 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk
+-2.0
" 2>/dev/null`
40809 if test $pkg_failed = yes; then
40811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40812 _pkg_short_errors_supported=yes
40814 _pkg_short_errors_supported=no
40816 if test $_pkg_short_errors_supported = yes; then
40817 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk
+-2.0
"`
40819 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk
+-2.0
"`
40821 # Put the nasty error message in config.log where it belongs
40822 echo "$GTK_PKG_ERRORS" >&5
40824 { { echo "$as_me:$LINENO: error
: Package requirements
(gtk
+-2.0
) were not met
:
40828 Consider adjusting the PKG_CONFIG_PATH environment variable
if you
40829 installed software
in a non-standard prefix.
40831 Alternatively
, you may
set the environment variables GTK_CFLAGS
40832 and GTK_LIBS to avoid the need to call pkg-config.
40833 See the pkg-config man page
for more details.
40835 echo "$as_me: error
: Package requirements
(gtk
+-2.0
) were not met
:
40839 Consider adjusting the PKG_CONFIG_PATH environment variable
if you
40840 installed software
in a non-standard prefix.
40842 Alternatively
, you may
set the environment variables GTK_CFLAGS
40843 and GTK_LIBS to avoid the need to call pkg-config.
40844 See the pkg-config man page
for more details.
40846 { (exit 1); exit 1; }; }
40847 elif test $pkg_failed = untried; then
40848 { { echo "$as_me:$LINENO: error
: The pkg-config
script could not be found or is too old. Make sure it
40849 is
in your PATH or
set the PKG_CONFIG environment variable to the full
40850 path to pkg-config.
40852 Alternatively
, you may
set the environment variables GTK_CFLAGS
40853 and GTK_LIBS to avoid the need to call pkg-config.
40854 See the pkg-config man page
for more details.
40856 To get pkg-config
, see
<http
://www.freedesktop.org
/software
/pkgconfig
>.
40857 See \
`config.log' for more details." >&5
40858 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
40859 is in your PATH or set the PKG_CONFIG environment variable to the full
40860 path to pkg-config.
40862 Alternatively, you may set the environment variables GTK_CFLAGS
40863 and GTK_LIBS to avoid the need to call pkg-config.
40864 See the pkg-config man page for more details.
40866 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
40867 See \`config.log
' for more details." >&2;}
40868 { (exit 1); exit 1; }; }
40870 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
40871 GTK_LIBS=$pkg_cv_GTK_LIBS
40872 { echo "$as_me:$LINENO: result: yes" >&5
40873 echo "${ECHO_T}yes" >&6; }
40875 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
40876 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
40880 # if gtk-config exists, then add it to the cflags.
40881 gtkconf=`gtk-config --cflags`
40882 if test $? = 0; then
40883 # gtk-config was found and returned 0, so it must return valid output
40884 WX_CFLAGS="$WX_CFLAGS $gtkconf"
40885 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
40888 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
40889 # the files in gui/*.cc. They are not used when building other things
40891 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
40892 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
40893 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
40894 # using debugger with readline is failing due to thread/signal handler
40897 *-pc-windows* | *-cygwin* | *-mingw32*)
40898 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
40899 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
40904 if test "$with_nogui" = yes; then
40905 display_libs="$display_libs nogui"
40906 cat >>confdefs.h <<\_ACEOF
40907 #define BX_WITH_NOGUI 1
40910 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
40913 { echo "$as_me:$LINENO: checking for display libraries" >&5
40914 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
40915 { echo "$as_me:$LINENO: result: $display_libs" >&5
40916 echo "${ECHO_T}$display_libs" >&6; }
40918 if test "$display_libs" = ""; then
40919 echo "No display libraries were selected. Use --with-* options to enable"
40920 echo "individual display libraries, or --with-all-libs to detect the ones"
40921 echo "that Bochs supports."
40925 if test "$display_libs" = " wxWidgets"; then
40926 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
40927 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
40928 { echo "$as_me:$LINENO: result: wxWidgets" >&5
40929 echo "${ECHO_T}wxWidgets" >&6; }
40930 { echo "$as_me:$LINENO: checking for default display library" >&5
40931 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
40932 { echo "$as_me:$LINENO: result: wxWidgets" >&5
40933 echo "${ECHO_T}wxWidgets" >&6; }
40934 cat >>confdefs.h <<\_ACEOF
40935 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
40938 cat >>confdefs.h <<\_ACEOF
40939 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
40942 cat >>confdefs.h <<\_ACEOF
40943 #define BX_USE_TEXTCONFIG 0
40947 cat >>confdefs.h <<\_ACEOF
40948 #define BX_USE_TEXTCONFIG 1
40953 if test "$bx_plugins" = 1; then
40954 # every item in this list will be compiled as a plugin. Do not include
40955 # support objs; they will be mentioned in plugin-specific makefile rules.
40956 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
40958 # include support objs
40959 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
40968 for ac_prog in wget curl fetch
40970 # Extract the first word of "$ac_prog", so it can be a program name with args.
40971 set dummy $ac_prog; ac_word=$2
40972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40974 if test "${ac_cv_prog_WGET+set}" = set; then
40975 echo $ECHO_N "(cached) $ECHO_C" >&6
40977 if test -n "$WGET"; then
40978 ac_cv_prog_WGET="$WGET" # Let the user override the test.
40980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40981 for as_dir in $PATH
40984 test -z "$as_dir" && as_dir=.
40985 for ac_exec_ext in '' $ac_executable_extensions; do
40986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40987 ac_cv_prog_WGET="$ac_prog"
40988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40997 WGET=$ac_cv_prog_WGET
40998 if test -n "$WGET"; then
40999 { echo "$as_me:$LINENO: result: $WGET" >&5
41000 echo "${ECHO_T}$WGET" >&6; }
41002 { echo "$as_me:$LINENO: result: no" >&5
41003 echo "${ECHO_T}no" >&6; }
41007 test -n "$WGET" && break
41009 test -n "$WGET" || WGET="not_found"
41011 if test "$WGET" = not_found; then
41012 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
41013 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
41015 # everybody has to re-invent the wheel. differently.
41016 test "${WGET}" = "curl" && WGET="curl -O"
41018 # modify settings based on target platform
41021 cat >>confdefs.h <<\_ACEOF
41022 #define BX_HAVE_STRDUP 0
41027 cat >>confdefs.h <<\_ACEOF
41028 #define BX_HAVE_STRDUP 0
41031 cat >>confdefs.h <<\_ACEOF
41032 #define BX_PLUGINS 0
41035 cat >>confdefs.h <<\_ACEOF
41036 #define BX_HAVE_DLFCN_H 0
41039 cat >>confdefs.h <<\_ACEOF
41040 #define BX_HAVE_SOCKLEN_T 0
41043 cat >>confdefs.h <<\_ACEOF
41044 #define BX_HAVE_SELECT 0
41047 cat >>confdefs.h <<\_ACEOF
41048 #define BX_HAVE_GETTIMEOFDAY 0
41051 cat >>confdefs.h <<\_ACEOF
41052 #define BX_NO_ATTRIBUTES 1
41055 cat >>confdefs.h <<\_ACEOF
41056 #define HAVE_TUNTAP 0
41059 cat >>confdefs.h <<\_ACEOF
41060 #define HAVE_ETHERTAP 0
41063 cat >>confdefs.h <<\_ACEOF
41064 #define BX_HAVE_HASH_MAP 0
41069 INSTALL_TARGET='install_win32
'
41072 #C_OPT="/Zi" # for debugging
41073 C_OPT="/Ox" # optimize for speed
41074 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
41082 MAKELIB="lib /nologo /subsystem:console /machine:I386 /verbose /out:\$@"
41085 #L_OPT="/debug" # for debugging
41086 L_OPT="" # no debug info
41087 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /machine:I386 /out:\$@ "
41090 PRIMARY_TARGET="bochs.exe"
41091 BXIMAGE_LINK_OPTS="user32.lib"
41092 # also compile niclist if networking is on
41093 if test "$networking" = yes; then
41094 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
41096 COMMAND_SEPARATOR=""
41098 CD_UP_TWO="cd ..\.."
41099 CD_UP_THREE="cd ..\..\.."
41100 have_gettimeofday=0 # even though it may exist in build environment
41101 cat >>confdefs.h <<\_ACEOF
41102 #define BX_64BIT_CONSTANTS_USE_LL 0
41105 cat >>confdefs.h <<\_ACEOF
41106 #define inline __inline
41109 cat >>confdefs.h <<\_ACEOF
41110 #define BX_NO_EMPTY_STRUCTS 1
41113 cat >>confdefs.h <<\_ACEOF
41114 #define BX_NO_ATTRIBUTES 1
41117 cat >>confdefs.h <<\_ACEOF
41118 #define BX_HAVE_HASH_MAP 0
41121 cat >>confdefs.h <<\_ACEOF
41122 #define BX_HAVE_HASH_MAP_H 0
41125 cat >>confdefs.h <<\_ACEOF
41126 #define BX_HAVE_STRTOULL 0
41129 cat >>confdefs.h <<\_ACEOF
41130 #define BX_HAVE_STRTOUQ 0
41133 cat >>confdefs.h <<\_ACEOF
41134 #define HAVE_LIBREADLINE 0
41137 cat >>confdefs.h <<\_ACEOF
41138 #define BX_HAVE_GETTIMEOFDAY 0
41141 cat >>confdefs.h <<\_ACEOF
41142 #define BX_HAVE_DLFCN_H 0
41145 cat >>confdefs.h <<\_ACEOF
41146 #define BX_HAVE_MKSTEMP 0
41149 cat >>confdefs.h <<\_ACEOF
41150 #define BX_HAVE_SYS_MMAN_H 0
41153 cat >>confdefs.h <<\_ACEOF
41154 #define BX_HAVE_USLEEP 0
41157 cat >>confdefs.h <<\_ACEOF
41158 #define HAVE_ETHERTAP 0
41161 cat >>confdefs.h <<\_ACEOF
41162 #define BX_HAVE_SELECT 1
41165 cat >>confdefs.h <<\_ACEOF
41166 #define BX_HAVE_SOCKLEN_T 0
41172 PRIMARY_TARGET="bochs.exe"
41173 BXIMAGE_LINK_OPTS="-luser32"
41174 if test "$networking" = yes; then
41175 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
41177 cat >>confdefs.h <<\_ACEOF
41178 #define BX_HAVE_SELECT 1
41183 BXIMAGE_LINK_OPTS="-luser32"
41184 if test "$networking" = yes; then
41185 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
41187 cat >>confdefs.h <<\_ACEOF
41188 #define BX_HAVE_SELECT 1
41193 PRIMARY_TARGET=.bochs_beos_target
41198 EXPORT_DYNAMIC="-export-dynamic"
41200 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
41201 if test "$bx_plugins" = 1; then
41202 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
41203 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
41204 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
41205 echo $ECHO_N "(cached) $ECHO_C" >&6
41207 ac_check_lib_save_LIBS=$LIBS
41208 LIBS="-lmingwex $LIBS"
41209 cat >conftest.$ac_ext <<_ACEOF
41212 cat confdefs.h >>conftest.$ac_ext
41213 cat >>conftest.$ac_ext <<_ACEOF
41214 /* end confdefs.h. */
41216 /* Override any GCC internal prototype to avoid an error.
41217 Use char because int might match the return type of a GCC
41218 builtin and then its argument prototype would still apply. */
41231 rm -f conftest.$ac_objext conftest$ac_exeext
41232 if { (ac_try="$ac_link"
41233 case "(($ac_try" in
41234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41235 *) ac_try_echo=$ac_try;;
41237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41238 (eval "$ac_link") 2>conftest.er1
41240 grep -v '^
*+' conftest.er1 >conftest.err
41242 cat conftest.err >&5
41243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244 (exit $ac_status); } &&
41245 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41246 { (case "(($ac_try" in
41247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41248 *) ac_try_echo=$ac_try;;
41250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41251 (eval "$ac_try") 2>&5
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; } &&
41255 { ac_try='test -s conftest
$ac_exeext'
41256 { (case "(($ac_try" in
41257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41258 *) ac_try_echo=$ac_try;;
41260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41261 (eval "$ac_try") 2>&5
41263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264 (exit $ac_status); }; }; then
41265 ac_cv_lib_mingwex_opendir=yes
41267 echo "$as_me: failed program was:" >&5
41268 sed 's
/^
/|
/' conftest.$ac_ext >&5
41270 ac_cv_lib_mingwex_opendir=no
41273 rm -f core conftest.err conftest.$ac_objext \
41274 conftest$ac_exeext conftest.$ac_ext
41275 LIBS=$ac_check_lib_save_LIBS
41277 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
41278 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
41279 if test $ac_cv_lib_mingwex_opendir = yes; then
41280 LIBS="$LIBS -lmingwex"
41283 # set variables for building DLL plugins
41284 PRIMARY_TARGET=".win32_dll_plugin_target"
41285 PLUGIN_LIBNAME_TRANSFORMATION='%.o
=bx_
%.dll
'
41286 INSTALL_PLUGINS_VAR=install_dll_plugins
41288 if test "$with_win32" != yes; then
41289 LIBS="$LIBS -lcomctl32"
41292 DIALOG_OBJS="win32dialog.o"
41299 if test "$use_curses" = yes -a "$cross_configure" = 0; then
41300 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
41301 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
41302 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
41303 echo $ECHO_N "(cached) $ECHO_C" >&6
41305 ac_check_lib_save_LIBS=$LIBS
41306 LIBS="-lcurses $LIBS"
41307 cat >conftest.$ac_ext <<_ACEOF
41310 cat confdefs.h >>conftest.$ac_ext
41311 cat >>conftest.$ac_ext <<_ACEOF
41312 /* end confdefs.h. */
41314 /* Override any GCC internal prototype to avoid an error.
41315 Use char because int might match the return type of a GCC
41316 builtin and then its argument prototype would still apply. */
41329 rm -f conftest.$ac_objext conftest$ac_exeext
41330 if { (ac_try="$ac_link"
41331 case "(($ac_try" in
41332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41333 *) ac_try_echo=$ac_try;;
41335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41336 (eval "$ac_link") 2>conftest.er1
41338 grep -v '^
*+' conftest.er1 >conftest.err
41340 cat conftest.err >&5
41341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41342 (exit $ac_status); } &&
41343 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41344 { (case "(($ac_try" in
41345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41346 *) ac_try_echo=$ac_try;;
41348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41349 (eval "$ac_try") 2>&5
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); }; } &&
41353 { ac_try='test -s conftest
$ac_exeext'
41354 { (case "(($ac_try" in
41355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41356 *) ac_try_echo=$ac_try;;
41358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41359 (eval "$ac_try") 2>&5
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); }; }; then
41363 ac_cv_lib_curses_mvaddch=yes
41365 echo "$as_me: failed program was:" >&5
41366 sed 's
/^
/|
/' conftest.$ac_ext >&5
41368 ac_cv_lib_curses_mvaddch=no
41371 rm -f core conftest.err conftest.$ac_objext \
41372 conftest$ac_exeext conftest.$ac_ext
41373 LIBS=$ac_check_lib_save_LIBS
41375 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
41376 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
41377 if test $ac_cv_lib_curses_mvaddch = yes; then
41378 GUI_LINK_OPTS_TERM='-lcurses'
41381 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
41382 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
41383 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
41384 echo $ECHO_N "(cached) $ECHO_C" >&6
41386 ac_check_lib_save_LIBS=$LIBS
41387 LIBS="-lncurses $LIBS"
41388 cat >conftest.$ac_ext <<_ACEOF
41391 cat confdefs.h >>conftest.$ac_ext
41392 cat >>conftest.$ac_ext <<_ACEOF
41393 /* end confdefs.h. */
41395 /* Override any GCC internal prototype to avoid an error.
41396 Use char because int might match the return type of a GCC
41397 builtin and then its argument prototype would still apply. */
41410 rm -f conftest.$ac_objext conftest$ac_exeext
41411 if { (ac_try="$ac_link"
41412 case "(($ac_try" in
41413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41414 *) ac_try_echo=$ac_try;;
41416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41417 (eval "$ac_link") 2>conftest.er1
41419 grep -v '^
*+' conftest.er1 >conftest.err
41421 cat conftest.err >&5
41422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41423 (exit $ac_status); } &&
41424 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41425 { (case "(($ac_try" in
41426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41427 *) ac_try_echo=$ac_try;;
41429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41430 (eval "$ac_try") 2>&5
41432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 (exit $ac_status); }; } &&
41434 { ac_try='test -s conftest
$ac_exeext'
41435 { (case "(($ac_try" in
41436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41437 *) ac_try_echo=$ac_try;;
41439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41440 (eval "$ac_try") 2>&5
41442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443 (exit $ac_status); }; }; then
41444 ac_cv_lib_ncurses_mvaddch=yes
41446 echo "$as_me: failed program was:" >&5
41447 sed 's
/^
/|
/' conftest.$ac_ext >&5
41449 ac_cv_lib_ncurses_mvaddch=no
41452 rm -f core conftest.err conftest.$ac_objext \
41453 conftest$ac_exeext conftest.$ac_ext
41454 LIBS=$ac_check_lib_save_LIBS
41456 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
41457 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
41458 if test $ac_cv_lib_ncurses_mvaddch = yes; then
41459 GUI_LINK_OPTS_TERM='-lncurses'
41462 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
41463 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
41464 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
41465 echo $ECHO_N "(cached) $ECHO_C" >&6
41467 ac_check_lib_save_LIBS=$LIBS
41468 LIBS="-ltermlib $LIBS"
41469 cat >conftest.$ac_ext <<_ACEOF
41472 cat confdefs.h >>conftest.$ac_ext
41473 cat >>conftest.$ac_ext <<_ACEOF
41474 /* end confdefs.h. */
41476 /* Override any GCC internal prototype to avoid an error.
41477 Use char because int might match the return type of a GCC
41478 builtin and then its argument prototype would still apply. */
41491 rm -f conftest.$ac_objext conftest$ac_exeext
41492 if { (ac_try="$ac_link"
41493 case "(($ac_try" in
41494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41495 *) ac_try_echo=$ac_try;;
41497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41498 (eval "$ac_link") 2>conftest.er1
41500 grep -v '^
*+' conftest.er1 >conftest.err
41502 cat conftest.err >&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); } &&
41505 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41506 { (case "(($ac_try" in
41507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41508 *) ac_try_echo=$ac_try;;
41510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41511 (eval "$ac_try") 2>&5
41513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41514 (exit $ac_status); }; } &&
41515 { ac_try='test -s conftest
$ac_exeext'
41516 { (case "(($ac_try" in
41517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41518 *) ac_try_echo=$ac_try;;
41520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41521 (eval "$ac_try") 2>&5
41523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41524 (exit $ac_status); }; }; then
41525 ac_cv_lib_termlib_mvaddch=yes
41527 echo "$as_me: failed program was:" >&5
41528 sed 's
/^
/|
/' conftest.$ac_ext >&5
41530 ac_cv_lib_termlib_mvaddch=no
41533 rm -f core conftest.err conftest.$ac_objext \
41534 conftest$ac_exeext conftest.$ac_ext
41535 LIBS=$ac_check_lib_save_LIBS
41537 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
41538 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
41539 if test $ac_cv_lib_termlib_mvaddch = yes; then
41540 GUI_LINK_OPTS_TERM='-ltermlib'
41543 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
41544 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
41545 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
41546 echo $ECHO_N "(cached) $ECHO_C" >&6
41548 ac_check_lib_save_LIBS=$LIBS
41549 LIBS="-lpdcurses $LIBS"
41550 cat >conftest.$ac_ext <<_ACEOF
41553 cat confdefs.h >>conftest.$ac_ext
41554 cat >>conftest.$ac_ext <<_ACEOF
41555 /* end confdefs.h. */
41557 /* Override any GCC internal prototype to avoid an error.
41558 Use char because int might match the return type of a GCC
41559 builtin and then its argument prototype would still apply. */
41572 rm -f conftest.$ac_objext conftest$ac_exeext
41573 if { (ac_try="$ac_link"
41574 case "(($ac_try" in
41575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41576 *) ac_try_echo=$ac_try;;
41578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41579 (eval "$ac_link") 2>conftest.er1
41581 grep -v '^
*+' conftest.er1 >conftest.err
41583 cat conftest.err >&5
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); } &&
41586 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41587 { (case "(($ac_try" in
41588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41589 *) ac_try_echo=$ac_try;;
41591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41592 (eval "$ac_try") 2>&5
41594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41595 (exit $ac_status); }; } &&
41596 { ac_try='test -s conftest
$ac_exeext'
41597 { (case "(($ac_try" in
41598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41599 *) ac_try_echo=$ac_try;;
41601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41602 (eval "$ac_try") 2>&5
41604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41605 (exit $ac_status); }; }; then
41606 ac_cv_lib_pdcurses_mvaddch=yes
41608 echo "$as_me: failed program was:" >&5
41609 sed 's
/^
/|
/' conftest.$ac_ext >&5
41611 ac_cv_lib_pdcurses_mvaddch=no
41614 rm -f core conftest.err conftest.$ac_objext \
41615 conftest$ac_exeext conftest.$ac_ext
41616 LIBS=$ac_check_lib_save_LIBS
41618 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
41619 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
41620 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
41621 GUI_LINK_OPTS_TERM='-lpdcurses'
41624 if test "$GUI_LINK_OPTS_TERM" = ""; then
41625 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
41630 if test "$with_term" = yes; then
41632 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
41634 for ac_func in color_set
41636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41640 echo $ECHO_N "(cached) $ECHO_C" >&6
41642 cat >conftest.$ac_ext <<_ACEOF
41645 cat confdefs.h >>conftest.$ac_ext
41646 cat >>conftest.$ac_ext <<_ACEOF
41647 /* end confdefs.h. */
41648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41650 #define $ac_func innocuous_$ac_func
41652 /* System header to define __stub macros and hopefully few prototypes,
41653 which can conflict with char $ac_func (); below.
41654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41655 <limits.h> exists even on freestanding compilers. */
41658 # include <limits.h>
41660 # include <assert.h>
41665 /* Override any GCC internal prototype to avoid an error.
41666 Use char because int might match the return type of a GCC
41667 builtin and then its argument prototype would still apply. */
41672 /* The GNU C library defines this for functions which it implements
41673 to always fail with ENOSYS. Some functions are actually named
41674 something starting with __ and the normal name is an alias. */
41675 #if defined __stub_$ac_func || defined __stub___$ac_func
41682 return $ac_func ();
41687 rm -f conftest.$ac_objext conftest$ac_exeext
41688 if { (ac_try="$ac_link"
41689 case "(($ac_try" in
41690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41691 *) ac_try_echo=$ac_try;;
41693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41694 (eval "$ac_link") 2>conftest.er1
41696 grep -v '^
*+' conftest.er1 >conftest.err
41698 cat conftest.err >&5
41699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700 (exit $ac_status); } &&
41701 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41702 { (case "(($ac_try" in
41703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41704 *) ac_try_echo=$ac_try;;
41706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41707 (eval "$ac_try") 2>&5
41709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); }; } &&
41711 { ac_try='test -s conftest
$ac_exeext'
41712 { (case "(($ac_try" in
41713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41714 *) ac_try_echo=$ac_try;;
41716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41717 (eval "$ac_try") 2>&5
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); }; }; then
41721 eval "$as_ac_var=yes"
41723 echo "$as_me: failed program was:" >&5
41724 sed 's
/^
/|
/' conftest.$ac_ext >&5
41726 eval "$as_ac_var=no"
41729 rm -f core conftest.err conftest.$ac_objext \
41730 conftest$ac_exeext conftest.$ac_ext
41732 ac_res=`eval echo '${'$as_ac_var'}'`
41733 { echo "$as_me:$LINENO: result: $ac_res" >&5
41734 echo "${ECHO_T}$ac_res" >&6; }
41735 if test `eval echo '${'$as_ac_var'}'` = yes; then
41736 cat >>confdefs.h <<_ACEOF
41737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41739 cat >>confdefs.h <<\_ACEOF
41740 #define BX_HAVE_COLOR_SET 1
41747 for ac_func in mvhline
41749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41753 echo $ECHO_N "(cached) $ECHO_C" >&6
41755 cat >conftest.$ac_ext <<_ACEOF
41758 cat confdefs.h >>conftest.$ac_ext
41759 cat >>conftest.$ac_ext <<_ACEOF
41760 /* end confdefs.h. */
41761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41763 #define $ac_func innocuous_$ac_func
41765 /* System header to define __stub macros and hopefully few prototypes,
41766 which can conflict with char $ac_func (); below.
41767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41768 <limits.h> exists even on freestanding compilers. */
41771 # include <limits.h>
41773 # include <assert.h>
41778 /* Override any GCC internal prototype to avoid an error.
41779 Use char because int might match the return type of a GCC
41780 builtin and then its argument prototype would still apply. */
41785 /* The GNU C library defines this for functions which it implements
41786 to always fail with ENOSYS. Some functions are actually named
41787 something starting with __ and the normal name is an alias. */
41788 #if defined __stub_$ac_func || defined __stub___$ac_func
41795 return $ac_func ();
41800 rm -f conftest.$ac_objext conftest$ac_exeext
41801 if { (ac_try="$ac_link"
41802 case "(($ac_try" in
41803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41804 *) ac_try_echo=$ac_try;;
41806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41807 (eval "$ac_link") 2>conftest.er1
41809 grep -v '^
*+' conftest.er1 >conftest.err
41811 cat conftest.err >&5
41812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813 (exit $ac_status); } &&
41814 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41815 { (case "(($ac_try" in
41816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41817 *) ac_try_echo=$ac_try;;
41819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41820 (eval "$ac_try") 2>&5
41822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41823 (exit $ac_status); }; } &&
41824 { ac_try='test -s conftest
$ac_exeext'
41825 { (case "(($ac_try" in
41826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41827 *) ac_try_echo=$ac_try;;
41829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41830 (eval "$ac_try") 2>&5
41832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41833 (exit $ac_status); }; }; then
41834 eval "$as_ac_var=yes"
41836 echo "$as_me: failed program was:" >&5
41837 sed 's
/^
/|
/' conftest.$ac_ext >&5
41839 eval "$as_ac_var=no"
41842 rm -f core conftest.err conftest.$ac_objext \
41843 conftest$ac_exeext conftest.$ac_ext
41845 ac_res=`eval echo '${'$as_ac_var'}'`
41846 { echo "$as_me:$LINENO: result: $ac_res" >&5
41847 echo "${ECHO_T}$ac_res" >&6; }
41848 if test `eval echo '${'$as_ac_var'}'` = yes; then
41849 cat >>confdefs.h <<_ACEOF
41850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41852 cat >>confdefs.h <<\_ACEOF
41853 #define BX_HAVE_MVHLINE 1
41860 for ac_func in mvvline
41862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41866 echo $ECHO_N "(cached) $ECHO_C" >&6
41868 cat >conftest.$ac_ext <<_ACEOF
41871 cat confdefs.h >>conftest.$ac_ext
41872 cat >>conftest.$ac_ext <<_ACEOF
41873 /* end confdefs.h. */
41874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41876 #define $ac_func innocuous_$ac_func
41878 /* System header to define __stub macros and hopefully few prototypes,
41879 which can conflict with char $ac_func (); below.
41880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41881 <limits.h> exists even on freestanding compilers. */
41884 # include <limits.h>
41886 # include <assert.h>
41891 /* Override any GCC internal prototype to avoid an error.
41892 Use char because int might match the return type of a GCC
41893 builtin and then its argument prototype would still apply. */
41898 /* The GNU C library defines this for functions which it implements
41899 to always fail with ENOSYS. Some functions are actually named
41900 something starting with __ and the normal name is an alias. */
41901 #if defined __stub_$ac_func || defined __stub___$ac_func
41908 return $ac_func ();
41913 rm -f conftest.$ac_objext conftest$ac_exeext
41914 if { (ac_try="$ac_link"
41915 case "(($ac_try" in
41916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41917 *) ac_try_echo=$ac_try;;
41919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41920 (eval "$ac_link") 2>conftest.er1
41922 grep -v '^
*+' conftest.er1 >conftest.err
41924 cat conftest.err >&5
41925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41926 (exit $ac_status); } &&
41927 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
41928 { (case "(($ac_try" in
41929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41930 *) ac_try_echo=$ac_try;;
41932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41933 (eval "$ac_try") 2>&5
41935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936 (exit $ac_status); }; } &&
41937 { ac_try='test -s conftest
$ac_exeext'
41938 { (case "(($ac_try" in
41939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41940 *) ac_try_echo=$ac_try;;
41942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41943 (eval "$ac_try") 2>&5
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); }; }; then
41947 eval "$as_ac_var=yes"
41949 echo "$as_me: failed program was:" >&5
41950 sed 's
/^
/|
/' conftest.$ac_ext >&5
41952 eval "$as_ac_var=no"
41955 rm -f core conftest.err conftest.$ac_objext \
41956 conftest$ac_exeext conftest.$ac_ext
41958 ac_res=`eval echo '${'$as_ac_var'}'`
41959 { echo "$as_me:$LINENO: result: $ac_res" >&5
41960 echo "${ECHO_T}$ac_res" >&6; }
41961 if test `eval echo '${'$as_ac_var'}'` = yes; then
41962 cat >>confdefs.h <<_ACEOF
41963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41965 cat >>confdefs.h <<\_ACEOF
41966 #define BX_HAVE_MVVLINE 1
41975 if test "$with_rfb" = yes; then
41976 # we need the socket function
41979 # is this okay without a check ?
41980 RFB_LIBS="$RFB_LIBS wsock32.lib"
41983 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
41984 # is this okay without a check ?
41985 RFB_LIBS="$RFB_LIBS -lwsock32"
41990 for ac_func in socket
41992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41996 echo $ECHO_N "(cached) $ECHO_C" >&6
41998 cat >conftest.$ac_ext <<_ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42006 #define $ac_func innocuous_$ac_func
42008 /* System header to define __stub macros and hopefully few prototypes,
42009 which can conflict with char $ac_func (); below.
42010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42011 <limits.h> exists even on freestanding compilers. */
42014 # include <limits.h>
42016 # include <assert.h>
42021 /* Override any GCC internal prototype to avoid an error.
42022 Use char because int might match the return type of a GCC
42023 builtin and then its argument prototype would still apply. */
42028 /* The GNU C library defines this for functions which it implements
42029 to always fail with ENOSYS. Some functions are actually named
42030 something starting with __ and the normal name is an alias. */
42031 #if defined __stub_$ac_func || defined __stub___$ac_func
42038 return $ac_func ();
42043 rm -f conftest.$ac_objext conftest$ac_exeext
42044 if { (ac_try="$ac_link"
42045 case "(($ac_try" in
42046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42047 *) ac_try_echo=$ac_try;;
42049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42050 (eval "$ac_link") 2>conftest.er1
42052 grep -v '^
*+' conftest.er1 >conftest.err
42054 cat conftest.err >&5
42055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056 (exit $ac_status); } &&
42057 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
42058 { (case "(($ac_try" in
42059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42060 *) ac_try_echo=$ac_try;;
42062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42063 (eval "$ac_try") 2>&5
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); }; } &&
42067 { ac_try='test -s conftest
$ac_exeext'
42068 { (case "(($ac_try" in
42069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42070 *) ac_try_echo=$ac_try;;
42072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42073 (eval "$ac_try") 2>&5
42075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42076 (exit $ac_status); }; }; then
42077 eval "$as_ac_var=yes"
42079 echo "$as_me: failed program was:" >&5
42080 sed 's
/^
/|
/' conftest.$ac_ext >&5
42082 eval "$as_ac_var=no"
42085 rm -f core conftest.err conftest.$ac_objext \
42086 conftest$ac_exeext conftest.$ac_ext
42088 ac_res=`eval echo '${'$as_ac_var'}'`
42089 { echo "$as_me:$LINENO: result: $ac_res" >&5
42090 echo "${ECHO_T}$ac_res" >&6; }
42091 if test `eval echo '${'$as_ac_var'}'` = yes; then
42092 cat >>confdefs.h <<_ACEOF
42093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42099 if test "$have_socket" != yes; then
42100 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42101 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
42102 if test "${ac_cv_lib_socket_socket+set}" = set; then
42103 echo $ECHO_N "(cached) $ECHO_C" >&6
42105 ac_check_lib_save_LIBS=$LIBS
42106 LIBS="-lsocket $LIBS"
42107 cat >conftest.$ac_ext <<_ACEOF
42110 cat confdefs.h >>conftest.$ac_ext
42111 cat >>conftest.$ac_ext <<_ACEOF
42112 /* end confdefs.h. */
42114 /* Override any GCC internal prototype to avoid an error.
42115 Use char because int might match the return type of a GCC
42116 builtin and then its argument prototype would still apply. */
42129 rm -f conftest.$ac_objext conftest$ac_exeext
42130 if { (ac_try="$ac_link"
42131 case "(($ac_try" in
42132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42133 *) ac_try_echo=$ac_try;;
42135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42136 (eval "$ac_link") 2>conftest.er1
42138 grep -v '^
*+' conftest.er1 >conftest.err
42140 cat conftest.err >&5
42141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142 (exit $ac_status); } &&
42143 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
42144 { (case "(($ac_try" in
42145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42146 *) ac_try_echo=$ac_try;;
42148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42149 (eval "$ac_try") 2>&5
42151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42152 (exit $ac_status); }; } &&
42153 { ac_try='test -s conftest
$ac_exeext'
42154 { (case "(($ac_try" in
42155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42156 *) ac_try_echo=$ac_try;;
42158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42159 (eval "$ac_try") 2>&5
42161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162 (exit $ac_status); }; }; then
42163 ac_cv_lib_socket_socket=yes
42165 echo "$as_me: failed program was:" >&5
42166 sed 's
/^
/|
/' conftest.$ac_ext >&5
42168 ac_cv_lib_socket_socket=no
42171 rm -f core conftest.err conftest.$ac_objext \
42172 conftest$ac_exeext conftest.$ac_ext
42173 LIBS=$ac_check_lib_save_LIBS
42175 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42176 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
42177 if test $ac_cv_lib_socket_socket = yes; then
42179 RFB_LIBS="$RFB_LIBS -lsocket"
42187 if test "$have_socket" != yes; then
42188 echo 'ERROR
: socket
function required
for RFB compile
'
42193 # The ACX_PTHREAD function was written by
42194 # Steven G. Johnson <stevenj@alum.mit.edu> and
42195 # Alejandro Forero Cuervo <bachue@bachue.com>
42196 # I found it in the ac-archive project on Source Forge.
42204 # First, check if the POSIX threads header, pthread.h, is available.
42205 # If it isn't
, don
't bother looking for the threads libraries.
42206 if test "${ac_cv_header_pthread_h+set}" = set; then
42207 { echo "$as_me:$LINENO: checking for pthread.h" >&5
42208 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
42209 if test "${ac_cv_header_pthread_h+set}" = set; then
42210 echo $ECHO_N "(cached) $ECHO_C" >&6
42212 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
42213 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
42215 # Is the header compilable?
42216 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
42217 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
42218 cat >conftest.$ac_ext <<_ACEOF
42221 cat confdefs.h >>conftest.$ac_ext
42222 cat >>conftest.$ac_ext <<_ACEOF
42223 /* end confdefs.h. */
42224 $ac_includes_default
42225 #include <pthread.h>
42227 rm -f conftest.$ac_objext
42228 if { (ac_try="$ac_compile"
42229 case "(($ac_try" in
42230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42231 *) ac_try_echo=$ac_try;;
42233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42234 (eval "$ac_compile") 2>conftest.er1
42236 grep -v '^
*+' conftest.er1 >conftest.err
42238 cat conftest.err >&5
42239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); } &&
42241 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
42242 { (case "(($ac_try" in
42243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42244 *) ac_try_echo=$ac_try;;
42246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42247 (eval "$ac_try") 2>&5
42249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42250 (exit $ac_status); }; } &&
42251 { ac_try='test -s conftest.
$ac_objext'
42252 { (case "(($ac_try" in
42253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42254 *) ac_try_echo=$ac_try;;
42256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42257 (eval "$ac_try") 2>&5
42259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42260 (exit $ac_status); }; }; then
42261 ac_header_compiler=yes
42263 echo "$as_me: failed program was:" >&5
42264 sed 's
/^
/|
/' conftest.$ac_ext >&5
42266 ac_header_compiler=no
42269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42271 echo "${ECHO_T}$ac_header_compiler" >&6; }
42273 # Is the header present?
42274 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
42275 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
42276 cat >conftest.$ac_ext <<_ACEOF
42279 cat confdefs.h >>conftest.$ac_ext
42280 cat >>conftest.$ac_ext <<_ACEOF
42281 /* end confdefs.h. */
42282 #include <pthread.h>
42284 if { (ac_try="$ac_cpp conftest.$ac_ext"
42285 case "(($ac_try" in
42286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42287 *) ac_try_echo=$ac_try;;
42289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42292 grep -v '^
*+' conftest.er1 >conftest.err
42294 cat conftest.err >&5
42295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42296 (exit $ac_status); } >/dev/null; then
42297 if test -s conftest.err; then
42298 ac_cpp_err=$ac_c_preproc_warn_flag
42299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42306 if test -z "$ac_cpp_err"; then
42307 ac_header_preproc=yes
42309 echo "$as_me: failed program was:" >&5
42310 sed 's
/^
/|
/' conftest.$ac_ext >&5
42312 ac_header_preproc=no
42315 rm -f conftest.err conftest.$ac_ext
42316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42317 echo "${ECHO_T}$ac_header_preproc" >&6; }
42319 # So? What about this header?
42320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42322 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
42323 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42324 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result
" >&5
42325 echo "$as_me: WARNING
: pthread.h
: proceeding with the compiler
's result" >&2;}
42326 ac_header_preproc=yes
42329 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
42330 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
42331 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
42332 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
42333 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
42334 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
42335 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
42336 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
42337 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result
" >&5
42338 echo "$as_me: WARNING
: pthread.h
: proceeding with the preprocessor
's result" >&2;}
42339 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
42340 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
42344 { echo "$as_me:$LINENO: checking for pthread.h" >&5
42345 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
42346 if test "${ac_cv_header_pthread_h+set}" = set; then
42347 echo $ECHO_N "(cached) $ECHO_C" >&6
42349 ac_cv_header_pthread_h=$ac_header_preproc
42351 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
42352 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
42355 if test $ac_cv_header_pthread_h = yes; then
42358 acx_pthread_ok=noheader
42363 # We must check for the threads library under a number of different
42364 # names; the ordering is very important because some systems
42365 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
42366 # libraries is broken (non-POSIX).
42368 # First of all, check if the user has set any of the PTHREAD_LIBS,
42369 # etcetera environment variables, and if threads linking works using
42371 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
42372 save_CFLAGS="$CFLAGS"
42373 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42374 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
42376 LIBS="$PTHREAD_LIBS $LIBS"
42377 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
42378 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
42379 cat >conftest.$ac_ext <<_ACEOF
42382 cat confdefs.h >>conftest.$ac_ext
42383 cat >>conftest.$ac_ext <<_ACEOF
42384 /* end confdefs.h. */
42386 /* Override any GCC internal prototype to avoid an error.
42387 Use char because int might match the return type of a GCC
42388 builtin and then its argument prototype would still apply. */
42392 char pthread_join ();
42396 return pthread_join ();
42401 rm -f conftest.$ac_objext conftest$ac_exeext
42402 if { (ac_try="$ac_link"
42403 case "(($ac_try" in
42404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42405 *) ac_try_echo=$ac_try;;
42407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42408 (eval "$ac_link") 2>conftest.er1
42410 grep -v '^
*+' conftest.er1 >conftest.err
42412 cat conftest.err >&5
42413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42414 (exit $ac_status); } &&
42415 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
42416 { (case "(($ac_try" in
42417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42418 *) ac_try_echo=$ac_try;;
42420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42421 (eval "$ac_try") 2>&5
42423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424 (exit $ac_status); }; } &&
42425 { ac_try='test -s conftest
$ac_exeext'
42426 { (case "(($ac_try" in
42427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42428 *) ac_try_echo=$ac_try;;
42430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42431 (eval "$ac_try") 2>&5
42433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42434 (exit $ac_status); }; }; then
42437 echo "$as_me: failed program was:" >&5
42438 sed 's
/^
/|
/' conftest.$ac_ext >&5
42443 rm -f core conftest.err conftest.$ac_objext \
42444 conftest$ac_exeext conftest.$ac_ext
42445 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
42446 echo "${ECHO_T}$acx_pthread_ok" >&6; }
42447 if test x"$acx_pthread_ok" = xno; then
42452 CFLAGS="$save_CFLAGS"
42455 # Create a list of thread flags to try. Items starting with a "-" are
42456 # C compiler flags, and other items are library names, except for "none"
42457 # which indicates that we try without any flags at all.
42459 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
42461 # The ordering *is* (sometimes) important. Some notes on the
42462 # individual items follow:
42464 # pthreads: AIX (must check this before -lpthread)
42465 # none: in case threads are in libc; should be tried before -Kthread and
42466 # other compiler flags to prevent continual compiler warnings
42467 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
42468 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
42469 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
42470 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
42471 # -pthreads: Solaris/gcc
42472 # -mthreads: Mingw32/gcc, Lynx/gcc
42473 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
42474 # doesn't hurt to check since this sometimes defines pthreads too
;
42475 # also defines -D_REENTRANT)
42476 # pthread: Linux, etcetera
42477 # --thread-safe: KAI C++
42479 case "${host_cpu}-${host_os}" in
42482 # On Solaris (at least, for some versions), libc contains stubbed
42483 # (non-functional) versions of the pthreads routines, so link-based
42484 # tests will erroneously succeed. (We need to link with -pthread or
42485 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
42486 # a function called by this macro, so we could check for that, but
42487 # who knows whether they'll stub that too in a future libc.) So,
42488 # we'll just look for -pthreads and -lpthread first:
42490 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
42494 if test x
"$acx_pthread_ok" = xno
; then
42495 for flag
in $acx_pthread_flags; do
42499 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
42500 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
42504 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
42505 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
42506 PTHREAD_CFLAGS
="$flag"
42510 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
42511 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
42512 PTHREAD_LIBS
="-l$flag"
42517 save_CFLAGS
="$CFLAGS"
42518 LIBS
="$PTHREAD_LIBS $LIBS"
42519 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
42521 # Check for various functions. We must include pthread.h,
42522 # since some functions may be macros. (On the Sequent, we
42523 # need a special flag -Kthread to make this header compile.)
42524 # We check for pthread_join because it is in -lpthread on IRIX
42525 # while pthread_create is in libc. We check for pthread_attr_init
42526 # due to DEC craziness with -lpthreads. We check for
42527 # pthread_cleanup_push because it is one of the few pthread
42528 # functions on Solaris that doesn't have a non-functional libc stub.
42529 # We try pthread_create on general principles.
42530 cat >conftest.
$ac_ext <<_ACEOF
42533 cat confdefs.h
>>conftest.
$ac_ext
42534 cat >>conftest.
$ac_ext <<_ACEOF
42535 /* end confdefs.h. */
42536 #include <pthread.h>
42540 pthread_t th; pthread_join(th, 0);
42541 pthread_attr_init(0); pthread_cleanup_push(0, 0);
42542 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
42547 rm -f conftest.
$ac_objext conftest
$ac_exeext
42548 if { (ac_try
="$ac_link"
42549 case "(($ac_try" in
42550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42551 *) ac_try_echo=$ac_try;;
42553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42554 (eval "$ac_link") 2>conftest.er1
42556 grep -v '^ *+' conftest.er1 >conftest.err
42558 cat conftest.err >&5
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); } &&
42561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42562 { (case "(($ac_try" in
42563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
42564 *) ac_try_echo
=$ac_try;;
42566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42567 (eval "$ac_try") 2>&5
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); }; } &&
42571 { ac_try
='test -s conftest$ac_exeext'
42572 { (case "(($ac_try" in
42573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42574 *) ac_try_echo=$ac_try;;
42576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42577 (eval "$ac_try") 2>&5
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); }; }; then
42583 echo "$as_me: failed program was:" >&5
42584 sed 's/^/| /' conftest.$ac_ext >&5
42589 rm -f core conftest.err conftest.$ac_objext \
42590 conftest$ac_exeext conftest.$ac_ext
42593 CFLAGS="$save_CFLAGS"
42595 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
42596 echo "${ECHO_T}$acx_pthread_ok" >&6; }
42597 if test "x$acx_pthread_ok" = xyes; then
42606 # Various other checks:
42607 if test "x$acx_pthread_ok" = xyes; then
42609 LIBS="$PTHREAD_LIBS $LIBS"
42610 save_CFLAGS="$CFLAGS"
42611 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42613 # Detect AIX lossage: threads are created detached by default
42614 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
42615 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
42616 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
42617 cat >conftest.$ac_ext <<_ACEOF
42620 cat confdefs.h >>conftest.$ac_ext
42621 cat >>conftest.$ac_ext <<_ACEOF
42622 /* end confdefs.h. */
42623 #include <pthread.h>
42627 int attr=PTHREAD_CREATE_JOINABLE;
42632 rm -f conftest.$ac_objext conftest$ac_exeext
42633 if { (ac_try="$ac_link"
42634 case "(($ac_try" in
42635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
42636 *) ac_try_echo
=$ac_try;;
42638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42639 (eval "$ac_link") 2>conftest.er1
42641 grep -v '^ *+' conftest.er1
>conftest.err
42643 cat conftest.err
>&5
42644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645 (exit $ac_status); } &&
42646 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42647 { (case "(($ac_try" in
42648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42649 *) ac_try_echo=$ac_try;;
42651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42652 (eval "$ac_try") 2>&5
42654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655 (exit $ac_status); }; } &&
42656 { ac_try='test -s conftest$ac_exeext'
42657 { (case "(($ac_try" in
42658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
42659 *) ac_try_echo
=$ac_try;;
42661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42662 (eval "$ac_try") 2>&5
42664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665 (exit $ac_status); }; }; then
42666 ok
=PTHREAD_CREATE_JOINABLE
42668 echo "$as_me: failed program was:" >&5
42669 sed 's/^/| /' conftest.
$ac_ext >&5
42674 rm -f core conftest.err conftest.
$ac_objext \
42675 conftest
$ac_exeext conftest.
$ac_ext
42676 if test x
"$ok" = xunknown
; then
42677 cat >conftest.
$ac_ext <<_ACEOF
42680 cat confdefs.h
>>conftest.
$ac_ext
42681 cat >>conftest.
$ac_ext <<_ACEOF
42682 /* end confdefs.h. */
42683 #include <pthread.h>
42687 int attr=PTHREAD_CREATE_UNDETACHED;
42692 rm -f conftest.
$ac_objext conftest
$ac_exeext
42693 if { (ac_try
="$ac_link"
42694 case "(($ac_try" in
42695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42696 *) ac_try_echo=$ac_try;;
42698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42699 (eval "$ac_link") 2>conftest.er1
42701 grep -v '^ *+' conftest.er1 >conftest.err
42703 cat conftest.err >&5
42704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); } &&
42706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42707 { (case "(($ac_try" in
42708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
42709 *) ac_try_echo
=$ac_try;;
42711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42712 (eval "$ac_try") 2>&5
42714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); }; } &&
42716 { ac_try
='test -s conftest$ac_exeext'
42717 { (case "(($ac_try" in
42718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42719 *) ac_try_echo=$ac_try;;
42721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42722 (eval "$ac_try") 2>&5
42724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725 (exit $ac_status); }; }; then
42726 ok=PTHREAD_CREATE_UNDETACHED
42728 echo "$as_me: failed program was:" >&5
42729 sed 's/^/| /' conftest.$ac_ext >&5
42734 rm -f core conftest.err conftest.$ac_objext \
42735 conftest$ac_exeext conftest.$ac_ext
42737 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
42739 cat >>confdefs.h <<\_ACEOF
42740 #define PTHREAD_CREATE_JOINABLE $ok
42744 { echo "$as_me:$LINENO: result: ${ok}" >&5
42745 echo "${ECHO_T}${ok}" >&6; }
42746 if test x"$ok" = xunknown; then
42747 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
42748 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
42751 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
42752 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
42754 case "${host_cpu}-${host_os}" in
42755 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
42756 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
42758 { echo "$as_me:$LINENO: result: ${flag}" >&5
42759 echo "${ECHO_T}${flag}" >&6; }
42760 if test "x$flag" != xno; then
42761 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
42765 CFLAGS="$save_CFLAGS"
42767 # More AIX lossage: must compile with cc_r
42768 # Extract the first word of "cc_r", so it can be a program name with args.
42769 set dummy cc_r; ac_word=$2
42770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42772 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
42773 echo $ECHO_N "(cached) $ECHO_C" >&6
42775 if test -n "$PTHREAD_CC"; then
42776 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
42778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42779 for as_dir in $PATH
42782 test -z "$as_dir" && as_dir=.
42783 for ac_exec_ext in '' $ac_executable_extensions; do
42784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
42785 ac_cv_prog_PTHREAD_CC="cc_r"
42786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42793 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
42796 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
42797 if test -n "$PTHREAD_CC"; then
42798 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
42799 echo "${ECHO_T}$PTHREAD_CC" >&6; }
42801 { echo "$as_me:$LINENO: result: no" >&5
42802 echo "${ECHO_T}no" >&6; }
42814 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
42815 if test x"$acx_pthread_ok" = xyes; then
42818 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
42819 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
42820 #echo Using PTHREAD_CC=$PTHREAD_CC
42831 # since RFB (usually) needs pthread library, check that it was found.
42832 # But on win32 platforms, the pthread library is not needed.
42833 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
42834 if test "$pthread_ok" = yes; then
42835 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
42836 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42837 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
42841 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
42842 # pthread not needed for win32 platform
42845 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
42851 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
42852 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
42853 # Check whether --enable-save-restore was given.
42854 if test "${enable_save_restore+set}" = set; then
42855 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
42856 echo "${ECHO_T}$enableval" >&6; }
42857 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
42858 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
42859 { (exit 1); exit 1; }; }
42863 { echo "$as_me:$LINENO: result: no" >&5
42864 echo "${ECHO_T}no" >&6; }
42869 { echo "$as_me:$LINENO: checking for number of processors (deprecated)" >&5
42870 echo $ECHO_N "checking for number of processors (deprecated)... $ECHO_C" >&6; }
42871 # Check whether --enable-processors was given.
42872 if test "${enable_processors+set}" = set; then
42873 enableval=$enable_processors; { echo "$as_me:$LINENO: result: $enableval" >&5
42874 echo "${ECHO_T}$enableval" >&6; }
42875 { { echo "$as_me:$LINENO: error: DEPRECATED - use option --enable-smp instead" >&5
42876 echo "$as_me: error: DEPRECATED - use option --enable-smp instead" >&2;}
42877 { (exit 1); exit 1; }; }
42881 { echo "$as_me:$LINENO: result: no" >&5
42882 echo "${ECHO_T}no" >&6; }
42887 { echo "$as_me:$LINENO: checking whether to reset on triple fault (deprecated)" >&5
42888 echo $ECHO_N "checking whether to reset on triple fault (deprecated)... $ECHO_C" >&6; }
42889 # Check whether --enable-reset-on-triple-fault was given.
42890 if test "${enable_reset_on_triple_fault+set}" = set; then
42891 enableval=$enable_reset_on_triple_fault; { echo "$as_me:$LINENO: result: $enableval" >&5
42892 echo "${ECHO_T}$enableval" >&6; }
42893 { { echo "$as_me:$LINENO: error: DEPRECATED - could be configured directly from .bochsrc instead" >&5
42894 echo "$as_me: error: DEPRECATED - could be configured directly from .bochsrc instead" >&2;}
42895 { (exit 1); exit 1; }; }
42899 { echo "$as_me:$LINENO: result: no" >&5
42900 echo "${ECHO_T}no" >&6; }
42905 { echo "$as_me:$LINENO: checking PNI support (deprecated)" >&5
42906 echo $ECHO_N "checking PNI support (deprecated)... $ECHO_C" >&6; }
42907 # Check whether --enable---enable-pni was given.
42908 if test "${enable___enable_pni+set}" = set; then
42909 enableval=$enable___enable_pni; { echo "$as_me:$LINENO: result: $enableval" >&5
42910 echo "${ECHO_T}$enableval" >&6; }
42911 { { echo "$as_me:$LINENO: error: DEPRECATED - use --enable-sse=3 instead" >&5
42912 echo "$as_me: error: DEPRECATED - use --enable-sse=3 instead" >&2;}
42913 { (exit 1); exit 1; }; }
42917 { echo "$as_me:$LINENO: result: no" >&5
42918 echo "${ECHO_T}no" >&6; }
42923 { echo "$as_me:$LINENO: checking for new PIT model (deprecated)" >&5
42924 echo $ECHO_N "checking for new PIT model (deprecated)... $ECHO_C" >&6; }
42925 # Check whether --enable-new-pit was given.
42926 if test "${enable_new_pit+set}" = set; then
42927 enableval=$enable_new_pit; { echo "$as_me:$LINENO: result: $enableval" >&5
42928 echo "${ECHO_T}$enableval" >&6; }
42929 { { echo "$as_me:$LINENO: error: DEPRECATED - the new PIT model is always present and the old one has been removed" >&5
42930 echo "$as_me: error: DEPRECATED - the new PIT model is always present and the old one has been removed" >&2;}
42931 { (exit 1); exit 1; }; }
42935 { echo "$as_me:$LINENO: result: no" >&5
42936 echo "${ECHO_T}no" >&6; }
42941 # Create some subdirectories for when you run configure from some other
42943 if test ! -d instrument; then mkdir instrument; fi
42944 if test ! -d build; then mkdir build; fi
42945 if test ! -d build/linux; then mkdir build/linux; fi
42946 if test ! -d build/win32; then mkdir build/win32; fi
42947 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
42986 # Extract the first word of "gzip", so it can be a program name with args.
42987 set dummy gzip; ac_word=$2
42988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42990 if test "${ac_cv_path_GZIP+set}" = set; then
42991 echo $ECHO_N "(cached) $ECHO_C" >&6
42995 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
42998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42999 for as_dir in $PATH
43002 test -z "$as_dir" && as_dir=.
43003 for ac_exec_ext in '' $ac_executable_extensions; do
43004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
43005 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
43006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43016 GZIP=$ac_cv_path_GZIP
43017 if test -n "$GZIP"; then
43018 { echo "$as_me:$LINENO: result: $GZIP" >&5
43019 echo "${ECHO_T}$GZIP" >&6; }
43021 { echo "$as_me:$LINENO: result: no" >&5
43022 echo "${ECHO_T}no" >&6; }
43026 # Extract the first word of "tar", so it can be a program name with args.
43027 set dummy tar; ac_word=$2
43028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43030 if test "${ac_cv_path_TAR+set}" = set; then
43031 echo $ECHO_N "(cached) $ECHO_C" >&6
43035 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
43038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43039 for as_dir in $PATH
43042 test -z "$as_dir" && as_dir=.
43043 for ac_exec_ext in '' $ac_executable_extensions; do
43044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
43045 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
43046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43056 TAR=$ac_cv_path_TAR
43057 if test -n "$TAR"; then
43058 { echo "$as_me:$LINENO: result: $TAR" >&5
43059 echo "${ECHO_T}$TAR" >&6; }
43061 { echo "$as_me:$LINENO: result: no" >&5
43062 echo "${ECHO_T}no" >&6; }
43067 ac_config_files="$ac_config_files Makefile iodev/Makefile bx_debug/Makefile bios/Makefile cpu/Makefile memory/Makefile gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile fpu/Makefile doc/docbook/Makefile build/linux/bochs-dlx bxversion.h build/macosx/Info.plist build/win32/nsis/Makefile build/win32/nsis/bochs.nsi host/linux/pcidev/Makefile"
43069 cat >confcache <<\_ACEOF
43070 # This file is a shell script that caches the results of configure
43071 # tests run on this system so they can be shared between configure
43072 # scripts and configure runs, see configure's option --config-cache.
43073 # It is not useful on other systems. If it contains results you don't
43074 # want to keep, you may remove or edit it.
43076 # config.status only pays attention to the cache file if you give it
43077 # the --recheck option to rerun configure.
43079 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
43080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43081 # following values.
43085 # The following way of writing the cache mishandles newlines in values,
43086 # but we know of no workaround that is simple, portable, and efficient.
43087 # So, we kill variables containing newlines.
43088 # Ultrix sh set writes to stderr and can't be redirected directly,
43089 # and sets the high bit in the cache file unless we assign to the vars.
43091 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43092 eval ac_val
=\$
$ac_var
43096 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43100 _ | IFS | as_nl
) ;; #(
43101 *) $as_unset $ac_var ;;
43107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43108 *${as_nl}ac_space
=\
*)
43109 # `set' does not quote correctly, so add quotes (double-quote
43110 # substitution turns \\\\ into \\, and sed turns \\ into \).
43113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43116 # `set' quotes correctly as required by POSIX, so do not add quotes.
43117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43130 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
43131 if test -w "$cache_file"; then
43132 test "x$cache_file" != "x/dev/null" &&
43133 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43134 echo "$as_me: updating cache $cache_file" >&6;}
43135 cat confcache
>$cache_file
43137 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43143 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
43144 # Let make expand exec_prefix.
43145 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
43147 DEFS
=-DHAVE_CONFIG_H
43151 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
43152 # 1. Remove the extension, and $U if already installed.
43153 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
43154 ac_i
=`echo "$ac_i" | sed "$ac_script"`
43155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43156 # will be set to the directory where LIBOBJS objects are built.
43157 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43158 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43160 LIBOBJS
=$ac_libobjs
43162 LTLIBOBJS
=$ac_ltlibobjs
43166 : ${CONFIG_STATUS=./config.status}
43167 ac_clean_files_save
=$ac_clean_files
43168 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
43169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43171 cat >$CONFIG_STATUS <<_ACEOF
43173 # Generated by $as_me.
43174 # Run this file to recreate the current configuration.
43175 # Compiler output produced by configure, useful for debugging
43176 # configure, is in config.log if it exists.
43179 ac_cs_recheck=false
43181 SHELL=\${CONFIG_SHELL-$SHELL}
43184 cat >>$CONFIG_STATUS <<\_ACEOF
43185 ## --------------------- ##
43186 ## M4sh Initialization. ##
43187 ## --------------------- ##
43189 # Be Bourne compatible
43190 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
43193 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43194 # is contrary to our usage. Disable this feature.
43195 alias -g '${1+"$@"}'='"$@"'
43196 setopt NO_GLOB_SUBST
43198 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
43200 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
43201 DUALCASE
=1; export DUALCASE
# for MKS sh
43205 # Avoid depending upon Character Ranges.
43206 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
43207 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43208 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
43209 as_cr_digits
='0123456789'
43210 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43212 # The user is always right.
43213 if test "${PATH_SEPARATOR+set}" != set; then
43214 echo "#! /bin/sh" >conf$$.sh
43215 echo "exit 0" >>conf$$.sh
43217 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
43225 # Support unset when possible.
43226 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
43234 # We need space, tab and new line, in precisely that order. Quoting is
43235 # there to prevent editors from complaining about space-tab.
43236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43237 # splitting by setting IFS to empty value.)
43242 # Find who we are. Look in the path if we contain no directory separator.
43244 *[\\/]* ) as_myself
=$0 ;;
43245 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
43246 for as_dir
in $PATH
43249 test -z "$as_dir" && as_dir
=.
43250 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
43256 # We did not find ourselves, most probably we were run as `sh COMMAND'
43257 # in which case we are not to be found in the path.
43258 if test "x$as_myself" = x
; then
43261 if test ! -f "$as_myself"; then
43262 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43263 { (exit 1); exit 1; }
43266 # Work around bugs in pre-3.0 UWIN ksh.
43267 for as_var
in ENV MAIL MAILPATH
43268 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
43276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43278 LC_TELEPHONE LC_TIME
43280 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43281 eval $as_var=C
; export $as_var
43283 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
43287 # Required to use basename.
43288 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
43289 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
43295 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43296 as_basename
=basename
43302 # Name of the executable.
43303 as_me
=`$as_basename -- "$0" ||
43304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43305 X"$0" : 'X\(//\)$' \| \
43306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43308 sed '/^.*\/\([^/][^/]*\)\/*$/{
43327 as_lineno_1
=$LINENO
43328 as_lineno_2
=$LINENO
43329 test "x$as_lineno_1" != "x$as_lineno_2" &&
43330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
43332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43333 # uniformly replaced by the line number. The first 'sed' inserts a
43334 # line-number line after each line using $LINENO; the second 'sed'
43335 # does the real work. The second script uses 'N' to pair each
43336 # line-number line with the line containing $LINENO, and appends
43337 # trailing '-' during substitution so that $LINENO is not a special
43338 # case at line end.
43339 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43340 # scripts with optimization help from Paolo Bonzini. Blame Lee
43341 # E. McMahon (1931-1989) for sed's syntax. :-)
43353 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43356 ' >$as_me.lineno
&&
43357 chmod +x
"$as_me.lineno" ||
43358 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43359 { (exit 1); exit 1; }; }
43361 # Don't try to exec as it changes $[0], causing all sort of problems
43362 # (the dirname of $[0] is not the place where we might find the
43363 # original and so on. Autoconf is especially sensitive to this).
43364 .
"./$as_me.lineno"
43365 # Exit status is that of the last command.
43370 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
43376 ECHO_C
= ECHO_N
= ECHO_T
=
43377 case `echo -n x` in
43379 case `echo 'x\c'` in
43380 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
43387 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
43388 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
43394 rm -f conf$$ conf$$.exe conf$$.
file
43395 if test -d conf$$.dir
; then
43396 rm -f conf$$.dir
/conf$$.
file
43402 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43404 # ... but there are two gotchas:
43405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43407 # In both cases, we have to default to `cp -p'.
43408 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
43410 elif ln conf$$.
file conf$$
2>/dev
/null
; then
43415 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
43416 rmdir conf$$.dir
2>/dev
/null
43418 if mkdir
-p .
2>/dev
/null
; then
43421 test -d .
/-p && rmdir .
/-p
43425 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
43426 # systems may use methods other than mode bits to determine executability.
43427 cat >conf$$.
file <<_ASEOF
43431 chmod +x conf$$.
file
43432 if test -x conf$$.
file >/dev
/null
2>&1; then
43433 as_executable_p
="test -x"
43439 # Sed expression to map a string onto a valid CPP name.
43440 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43442 # Sed expression to map a string onto a valid variable name.
43443 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43448 # Save the log message, to keep $[0] and so on meaningful, and to
43449 # report actual input values of CONFIG_FILES etc. instead of their
43450 # values after options handling.
43452 This file was extended by $as_me, which was
43453 generated by GNU Autoconf 2.60. Invocation command line was
43455 CONFIG_FILES = $CONFIG_FILES
43456 CONFIG_HEADERS = $CONFIG_HEADERS
43457 CONFIG_LINKS = $CONFIG_LINKS
43458 CONFIG_COMMANDS = $CONFIG_COMMANDS
43461 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43466 cat >>$CONFIG_STATUS <<_ACEOF
43467 # Files that config.status was made for.
43468 config_files="$ac_config_files"
43469 config_headers="$ac_config_headers"
43473 cat >>$CONFIG_STATUS <<\_ACEOF
43475 \`$as_me' instantiates files from templates according to the
43476 current configuration.
43478 Usage: $0 [OPTIONS] [FILE]...
43480 -h, --help print this help, then exit
43481 -V, --version print version number, then exit
43482 -q, --quiet do not print progress messages
43483 -d, --debug don't remove temporary files
43484 --recheck update $as_me by reconfiguring in the same conditions
43485 --file=FILE[:TEMPLATE]
43486 instantiate the configuration file FILE
43487 --header=FILE[:TEMPLATE]
43488 instantiate the configuration header FILE
43490 Configuration files:
43493 Configuration headers:
43496 Report bugs to <bug-autoconf@gnu.org>."
43499 cat >>$CONFIG_STATUS <<_ACEOF
43502 configured by $0, generated by GNU Autoconf 2.60,
43503 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43505 Copyright (C) 2006 Free Software Foundation, Inc.
43506 This config.status script is free software; the Free Software Foundation
43507 gives unlimited permission to copy, distribute and modify it."
43513 cat >>$CONFIG_STATUS <<\_ACEOF
43514 # If no file are specified by the user, then we need to provide default
43515 # value. By we need to know if files were specified by the user.
43521 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
43522 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
43533 # Handling of the options.
43534 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
43536 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
43537 echo "$ac_cs_version"; exit ;;
43538 --debug |
--debu |
--deb |
--de |
--d |
-d )
43540 --file |
--fil |
--fi |
--f )
43542 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
43543 ac_need_defaults
=false
;;
43544 --header |
--heade |
--head |
--hea )
43546 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
43547 ac_need_defaults
=false
;;
43549 # Conflict between --help and --header
43550 { echo "$as_me: error: ambiguous option: $1
43551 Try \`$0 --help' for more information." >&2
43552 { (exit 1); exit 1; }; };;
43553 --help |
--hel |
-h )
43554 echo "$ac_cs_usage"; exit ;;
43555 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
43556 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
43559 # This is an error.
43560 -*) { echo "$as_me: error: unrecognized option: $1
43561 Try \`$0 --help' for more information." >&2
43562 { (exit 1); exit 1; }; } ;;
43564 *) ac_config_targets
="$ac_config_targets $1"
43565 ac_need_defaults
=false
;;
43571 ac_configure_extra_args
=
43573 if $ac_cs_silent; then
43575 ac_configure_extra_args
="$ac_configure_extra_args --silent"
43579 cat >>$CONFIG_STATUS <<_ACEOF
43580 if \$ac_cs_recheck; then
43581 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43582 CONFIG_SHELL=$SHELL
43583 export CONFIG_SHELL
43584 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43588 cat >>$CONFIG_STATUS <<\_ACEOF
43592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43593 ## Running $as_me. ##
43599 cat >>$CONFIG_STATUS <<_ACEOF
43602 cat >>$CONFIG_STATUS <<\_ACEOF
43604 # Handling of arguments.
43605 for ac_config_target
in $ac_config_targets
43607 case $ac_config_target in
43608 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
43609 "ltdlconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ltdlconf.h" ;;
43610 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
43611 "iodev/Makefile") CONFIG_FILES
="$CONFIG_FILES iodev/Makefile" ;;
43612 "bx_debug/Makefile") CONFIG_FILES
="$CONFIG_FILES bx_debug/Makefile" ;;
43613 "bios/Makefile") CONFIG_FILES
="$CONFIG_FILES bios/Makefile" ;;
43614 "cpu/Makefile") CONFIG_FILES
="$CONFIG_FILES cpu/Makefile" ;;
43615 "memory/Makefile") CONFIG_FILES
="$CONFIG_FILES memory/Makefile" ;;
43616 "gui/Makefile") CONFIG_FILES
="$CONFIG_FILES gui/Makefile" ;;
43617 "disasm/Makefile") CONFIG_FILES
="$CONFIG_FILES disasm/Makefile" ;;
43618 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES
="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
43619 "misc/Makefile") CONFIG_FILES
="$CONFIG_FILES misc/Makefile" ;;
43620 "fpu/Makefile") CONFIG_FILES
="$CONFIG_FILES fpu/Makefile" ;;
43621 "doc/docbook/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/docbook/Makefile" ;;
43622 "build/linux/bochs-dlx") CONFIG_FILES
="$CONFIG_FILES build/linux/bochs-dlx" ;;
43623 "bxversion.h") CONFIG_FILES
="$CONFIG_FILES bxversion.h" ;;
43624 "build/macosx/Info.plist") CONFIG_FILES
="$CONFIG_FILES build/macosx/Info.plist" ;;
43625 "build/win32/nsis/Makefile") CONFIG_FILES
="$CONFIG_FILES build/win32/nsis/Makefile" ;;
43626 "build/win32/nsis/bochs.nsi") CONFIG_FILES
="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
43627 "host/linux/pcidev/Makefile") CONFIG_FILES
="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
43629 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43630 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43631 { (exit 1); exit 1; }; };;
43636 # If the user did not use the arguments to specify the items to instantiate,
43637 # then the envvar interface is used. Set only those that are not.
43638 # We use the long form for the default assignment because of an extremely
43639 # bizarre bug on SunOS 4.1.3.
43640 if $ac_need_defaults; then
43641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
43642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
43645 # Have a temporary directory for convenience. Make it in the build tree
43646 # simply because there is no reason against having it here, and in addition,
43647 # creating and moving files from /tmp can sometimes cause problems.
43648 # Hook for its removal unless debugging.
43649 # Note that there is a small window in which the directory will not be cleaned:
43650 # after its creation but before its name has been assigned to `$tmp'.
43654 trap 'exit_status=$?
43655 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43657 trap '{ (exit 1); exit 1; }' 1 2 13 15
43659 # Create a (secure) tmp directory for tmp files.
43662 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43663 test -n "$tmp" && test -d "$tmp"
43666 tmp
=.
/conf$$
-$RANDOM
43667 (umask 077 && mkdir
"$tmp")
43670 echo "$me: cannot create a temporary directory in ." >&2
43671 { (exit 1); exit 1; }
43675 # Set up the sed scripts for CONFIG_FILES section.
43678 # No need to generate the scripts if there are no CONFIG_FILES.
43679 # This happens for instance when ./config.status config.h
43680 if test -n "$CONFIG_FILES"; then
43687 for ac_last_try
in false false false false false
:; do
43688 cat >conf$
$subs.
sed <<_ACEOF
43689 SHELL!$SHELL$ac_delim
43690 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43691 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43692 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43693 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43694 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43695 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43696 exec_prefix!$exec_prefix$ac_delim
43697 prefix!$prefix$ac_delim
43698 program_transform_name!$program_transform_name$ac_delim
43699 bindir!$bindir$ac_delim
43700 sbindir!$sbindir$ac_delim
43701 libexecdir!$libexecdir$ac_delim
43702 datarootdir!$datarootdir$ac_delim
43703 datadir!$datadir$ac_delim
43704 sysconfdir!$sysconfdir$ac_delim
43705 sharedstatedir!$sharedstatedir$ac_delim
43706 localstatedir!$localstatedir$ac_delim
43707 includedir!$includedir$ac_delim
43708 oldincludedir!$oldincludedir$ac_delim
43709 docdir!$docdir$ac_delim
43710 infodir!$infodir$ac_delim
43711 htmldir!$htmldir$ac_delim
43712 dvidir!$dvidir$ac_delim
43713 pdfdir!$pdfdir$ac_delim
43714 psdir!$psdir$ac_delim
43715 libdir!$libdir$ac_delim
43716 localedir!$localedir$ac_delim
43717 mandir!$mandir$ac_delim
43718 DEFS!$DEFS$ac_delim
43719 ECHO_C!$ECHO_C$ac_delim
43720 ECHO_N!$ECHO_N$ac_delim
43721 ECHO_T!$ECHO_T$ac_delim
43722 LIBS!$LIBS$ac_delim
43723 build_alias!$build_alias$ac_delim
43724 host_alias!$host_alias$ac_delim
43725 target_alias!$target_alias$ac_delim
43726 build!$build$ac_delim
43727 build_cpu!$build_cpu$ac_delim
43728 build_vendor!$build_vendor$ac_delim
43729 build_os!$build_os$ac_delim
43730 host!$host$ac_delim
43731 host_cpu!$host_cpu$ac_delim
43732 host_vendor!$host_vendor$ac_delim
43733 host_os!$host_os$ac_delim
43734 target!$target$ac_delim
43735 target_cpu!$target_cpu$ac_delim
43736 target_vendor!$target_vendor$ac_delim
43737 target_os!$target_os$ac_delim
43739 CFLAGS!$CFLAGS$ac_delim
43740 LDFLAGS!$LDFLAGS$ac_delim
43741 CPPFLAGS!$CPPFLAGS$ac_delim
43742 ac_ct_CC!$ac_ct_CC$ac_delim
43743 EXEEXT!$EXEEXT$ac_delim
43744 OBJEXT!$OBJEXT$ac_delim
43746 CXXFLAGS!$CXXFLAGS$ac_delim
43747 ac_ct_CXX!$ac_ct_CXX$ac_delim
43748 SET_MAKE!$SET_MAKE$ac_delim
43749 GREP!$GREP$ac_delim
43750 EGREP!$EGREP$ac_delim
43751 LN_S!$LN_S$ac_delim
43752 ECHO!$ECHO$ac_delim
43754 RANLIB!$RANLIB$ac_delim
43755 STRIP!$STRIP$ac_delim
43757 CXXCPP!$CXXCPP$ac_delim
43759 FFLAGS!$FFLAGS$ac_delim
43760 ac_ct_F77!$ac_ct_F77$ac_delim
43761 LIBTOOL!$LIBTOOL$ac_delim
43762 LIBADD_DL!$LIBADD_DL$ac_delim
43763 XMKMF!$XMKMF$ac_delim
43764 X_CFLAGS!$X_CFLAGS$ac_delim
43765 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43766 X_LIBS!$X_LIBS$ac_delim
43767 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43768 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
43769 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
43770 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
43771 OBJS64!$OBJS64$ac_delim
43772 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
43773 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
43774 NE2K_OBJS!$NE2K_OBJS$ac_delim
43775 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
43776 PCI_OBJ!$PCI_OBJ$ac_delim
43777 KERNELDIR!$KERNELDIR$ac_delim
43778 LSMOD!$LSMOD$ac_delim
43779 INSMOD!$INSMOD$ac_delim
43780 RMMOD!$RMMOD$ac_delim
43781 DEPMOD!$DEPMOD$ac_delim
43782 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
43783 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
43784 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
43785 SCSI_OBJS!$SCSI_OBJS$ac_delim
43788 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43790 elif $ac_last_try; then
43791 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43793 { (exit 1); exit 1; }; }
43795 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
43799 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43800 if test -n "$ac_eof"; then
43801 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
43802 ac_eof
=`expr $ac_eof + 1`
43805 cat >>$CONFIG_STATUS <<_ACEOF
43806 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43811 s/^/s,@/; s/!/@,|#_!!_#|/
43814 s/'"$ac_delim"'$/,g/; t
43816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43817 ' >>$CONFIG_STATUS <conf$
$subs.
sed
43818 rm -f conf$
$subs.
sed
43819 cat >>$CONFIG_STATUS <<_ACEOF
43825 for ac_last_try
in false false false false false
:; do
43826 cat >conf$
$subs.
sed <<_ACEOF
43827 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
43828 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
43829 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
43830 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
43831 BX_EXTERNAL_DEBUGGER!$BX_EXTERNAL_DEBUGGER$ac_delim
43832 BX_MAGIC_BREAKPOINT!$BX_MAGIC_BREAKPOINT$ac_delim
43833 DISASM_VAR!$DISASM_VAR$ac_delim
43834 READLINE_LIB!$READLINE_LIB$ac_delim
43835 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
43836 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
43837 FPU_VAR!$FPU_VAR$ac_delim
43838 CDROM_OBJS!$CDROM_OBJS$ac_delim
43839 SB16_OBJS!$SB16_OBJS$ac_delim
43840 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
43841 GAME_OBJS!$GAME_OBJS$ac_delim
43842 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
43843 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
43844 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
43845 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
43846 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
43847 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
43848 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
43849 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
43850 INLINE_VAR!$INLINE_VAR$ac_delim
43851 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
43852 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
43853 RC_CMD!$RC_CMD$ac_delim
43854 WX_CONFIG!$WX_CONFIG$ac_delim
43855 XPM_LIB!$XPM_LIB$ac_delim
43856 PKG_CONFIG!$PKG_CONFIG$ac_delim
43857 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
43858 GTK_LIBS!$GTK_LIBS$ac_delim
43859 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
43860 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
43861 WX_CFLAGS!$WX_CFLAGS$ac_delim
43862 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
43863 WGET!$WGET$ac_delim
43864 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
43865 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
43866 PTHREAD_CC!$PTHREAD_CC$ac_delim
43867 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
43868 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
43869 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
43870 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
43871 RFB_LIBS!$RFB_LIBS$ac_delim
43872 GUI_OBJS!$GUI_OBJS$ac_delim
43873 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
43874 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
43875 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
43876 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
43877 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
43878 DASH!$DASH$ac_delim
43879 SLASH!$SLASH$ac_delim
43880 CXXFP!$CXXFP$ac_delim
43883 MAKELIB!$MAKELIB$ac_delim
43884 RMCOMMAND!$RMCOMMAND$ac_delim
43885 LINK!$LINK$ac_delim
43886 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
43888 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
43889 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
43890 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
43891 CD_UP_ONE!$CD_UP_ONE$ac_delim
43892 CD_UP_TWO!$CD_UP_TWO$ac_delim
43893 CD_UP_THREE!$CD_UP_THREE$ac_delim
43894 VERSION!$VERSION$ac_delim
43895 VER_STRING!$VER_STRING$ac_delim
43896 REL_STRING!$REL_STRING$ac_delim
43897 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
43898 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
43899 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
43900 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
43901 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
43902 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
43903 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
43904 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
43905 GZIP!$GZIP$ac_delim
43907 LIBOBJS!$LIBOBJS$ac_delim
43908 LTLIBOBJS!$LTLIBOBJS$ac_delim
43911 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
43913 elif $ac_last_try; then
43914 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43915 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43916 { (exit 1); exit 1; }; }
43918 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
43922 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43923 if test -n "$ac_eof"; then
43924 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
43925 ac_eof
=`expr $ac_eof + 1`
43928 cat >>$CONFIG_STATUS <<_ACEOF
43929 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43933 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43934 s/^/s,@/; s/!/@,|#_!!_#|/
43937 s/'"$ac_delim"'$/,g/; t
43939 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43940 ' >>$CONFIG_STATUS <conf$
$subs.
sed
43941 rm -f conf$
$subs.
sed
43942 cat >>$CONFIG_STATUS <<_ACEOF
43949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43951 # trailing colons and then remove the whole line if VPATH becomes empty
43952 # (actually we leave an empty line to preserve line numbers).
43953 if test "x$srcdir" = x.
; then
43954 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
43955 s/:*\$(srcdir):*/:/
43956 s/:*\${srcdir}:*/:/
43958 s/^\([^=]*=[ ]*\):*/\1/
43964 cat >>$CONFIG_STATUS <<\_ACEOF
43965 fi # test -n "$CONFIG_FILES"
43968 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
43971 :[FHLC
]) ac_mode
=$ac_tag; continue;;
43973 case $ac_mode$ac_tag in
43975 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43976 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43977 { (exit 1); exit 1; }; };;
43978 :[FH
]-) ac_tag
=-:-;;
43979 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
43996 -) ac_f
="$tmp/stdin";;
43997 *) # Look for the file first in the build tree, then in the source tree
43998 # (if the path is not absolute). The absolute path cannot be DOS-style,
43999 # because $ac_f cannot contain `:'.
44003 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
44005 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44006 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44007 { (exit 1); exit 1; }; };;
44009 ac_file_inputs
="$ac_file_inputs $ac_f"
44012 # Let's still pretend it is `configure' which instantiates (i.e., don't
44013 # use $as_me), people would be surprised to read:
44014 # /* config.h. Generated by config.status. */
44015 configure_input
="Generated from "`IFS=:
44016 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44017 if test x
"$ac_file" != x-
; then
44018 configure_input
="$ac_file. $configure_input"
44019 { echo "$as_me:$LINENO: creating $ac_file" >&5
44020 echo "$as_me: creating $ac_file" >&6;}
44024 *:-:* |
*:-) cat >"$tmp/stdin";;
44029 ac_dir
=`$as_dirname -- "$ac_file" ||
44030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44031 X"$ac_file" : 'X\(//\)[^/]' \| \
44032 X"$ac_file" : 'X\(//\)$' \| \
44033 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44039 /^X\(\/\/\)[^/].*/{
44054 -*) as_dir
=.
/$as_dir;;
44056 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
44060 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44061 *) as_qdir
=$as_dir;;
44063 as_dirs
="'$as_qdir' $as_dirs"
44064 as_dir
=`$as_dirname -- "$as_dir" ||
44065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44066 X"$as_dir" : 'X\(//\)[^/]' \| \
44067 X"$as_dir" : 'X\(//\)$' \| \
44068 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44074 /^X\(\/\/\)[^/].*/{
44087 test -d "$as_dir" && break
44089 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
44090 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44091 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44092 { (exit 1); exit 1; }; }; }
44096 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
44098 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44099 # A ".." for each directory in $ac_dir_suffix.
44100 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44101 case $ac_top_builddir_sub in
44102 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
44103 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
44106 ac_abs_top_builddir
=$ac_pwd
44107 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
44108 # for backward compatibility:
44109 ac_top_builddir
=$ac_top_build_prefix
44112 .
) # We are building in place.
44114 ac_top_srcdir
=$ac_top_builddir_sub
44115 ac_abs_top_srcdir
=$ac_pwd ;;
44116 [\\/]* | ?
:[\\/]* ) # Absolute name.
44117 ac_srcdir
=$srcdir$ac_dir_suffix;
44118 ac_top_srcdir
=$srcdir
44119 ac_abs_top_srcdir
=$srcdir ;;
44120 *) # Relative name.
44121 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
44122 ac_top_srcdir
=$ac_top_build_prefix$srcdir
44123 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
44125 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
44136 cat >>$CONFIG_STATUS <<\_ACEOF
44137 # If the template does not know about datarootdir, expand it.
44138 # FIXME: This hack should be removed a few years after 2.60.
44139 ac_datarootdir_hack
=; ac_datarootdir_seen
=
44141 case `sed -n '/datarootdir/ {
44150 ' $ac_file_inputs` in
44151 *datarootdir
*) ac_datarootdir_seen
=yes;;
44152 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
44153 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44154 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44156 cat >>$CONFIG_STATUS <<_ACEOF
44157 ac_datarootdir_hack='
44158 s&@datadir@&$datadir&g
44159 s&@docdir@&$docdir&g
44160 s&@infodir@&$infodir&g
44161 s&@localedir@&$localedir&g
44162 s&@mandir@&$mandir&g
44163 s&\\\${datarootdir}&$datarootdir&g' ;;
44167 # Neutralize VPATH when `$srcdir' = `.'.
44168 # Shell code in configure.ac might set extrasub.
44169 # FIXME: do we really want to maintain this feature?
44170 cat >>$CONFIG_STATUS <<_ACEOF
44174 cat >>$CONFIG_STATUS <<\_ACEOF
44176 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
44177 s
&@configure_input@
&$configure_input&;t t
44178 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
44179 s
&@srcdir@
&$ac_srcdir&;t t
44180 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
44181 s
&@top_srcdir@
&$ac_top_srcdir&;t t
44182 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
44183 s
&@builddir@
&$ac_builddir&;t t
44184 s
&@abs_builddir@
&$ac_abs_builddir&;t t
44185 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
44186 $ac_datarootdir_hack
44187 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
44189 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44190 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
44191 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
44192 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
44193 which seems to be undefined. Please make sure it is defined." >&5
44194 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
44195 which seems to be undefined. Please make sure it is defined." >&2;}
44199 -) cat "$tmp/out"; rm -f "$tmp/out";;
44200 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44209 # Transform confdefs.h into a sed script `conftest.defines', that
44210 # substitutes the proper values into config.h.in to produce config.h.
44211 rm -f conftest.defines conftest.
tail
44212 # First, append a space to every undef/define line, to ease matching.
44213 echo 's/$/ /' >conftest.defines
44214 # Then, protect against being on the right side of a sed subst, or in
44215 # an unquoted here document, in config.status. If some macros were
44216 # called several times there might be several #defines for the same
44217 # symbol, which is useless. But do not sort them, since the last
44218 # AC_DEFINE must be honored.
44219 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
44220 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44221 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44222 # PARAMS is the parameter list in the macro definition--in most cases, it's
44223 # just an empty string.
44224 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44225 ac_dB
='\\)[ (].*,\\1define\\2'
44233 s/^[ ]*#[ ]*define[ ][ ]*//
44238 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44239 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44240 ' >>conftest.defines
44242 # Remove the space that was appended to ease matching.
44243 # Then replace #undef with comments. This is necessary, for
44244 # example, in the case of _POSIX_SOURCE, which is predefined and required
44245 # on some systems where configure will not decide to define it.
44246 # (The regexp can be short, since the line contains either #define or #undef.)
44248 s,^[ #]*u.*,/* & */,' >>conftest.defines
44250 # Break up conftest.defines:
44251 ac_max_sed_lines
=50
44253 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44254 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44255 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44257 ac_in
='$ac_file_inputs'
44258 ac_out
='"$tmp/out1"'
44259 ac_nxt
='"$tmp/out2"'
44263 # Write a here document:
44264 cat >>$CONFIG_STATUS <<_ACEOF
44265 # First, check the format of the line:
44266 cat >"\$tmp/defines.sed" <<\\CEOF
44267 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44268 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44272 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
44274 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44275 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
44276 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
44277 grep . conftest.
tail >/dev
/null ||
break
44278 rm -f conftest.defines
44279 mv conftest.
tail conftest.defines
44281 rm -f conftest.defines conftest.
tail
44283 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44284 cat >>$CONFIG_STATUS <<\_ACEOF
44285 if test x
"$ac_file" != x-
; then
44286 echo "/* $configure_input */" >"$tmp/config.h"
44287 cat "$ac_result" >>"$tmp/config.h"
44288 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
44289 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44290 echo "$as_me: $ac_file is unchanged" >&6;}
44293 mv "$tmp/config.h" $ac_file
44296 echo "/* $configure_input */"
44308 { (exit 0); exit 0; }
44310 chmod +x
$CONFIG_STATUS
44311 ac_clean_files
=$ac_clean_files_save
44314 # configure is writing to config.log, and then calls config.status.
44315 # config.status does its own redirection, appending to config.log.
44316 # Unfortunately, on DOS this fails, as config.log is still kept open
44317 # by configure, so config.status won't be able to write to it; its
44318 # output is simply discarded. So we exec the FD to /dev/null,
44319 # effectively closing config.log, so it can be properly (re)opened and
44320 # appended to by config.status. When coming back to configure, we
44321 # need to make the FD available again.
44322 if test "$no_create" != yes; then
44324 ac_config_status_args
=
44325 test "$silent" = yes &&
44326 ac_config_status_args
="$ac_config_status_args --quiet"
44328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
44330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44331 # would make configure fail if this is the last instruction.
44332 $ac_cs_success ||
{ (exit 1); exit 1; }