2 # From configure.in Id: configure.in,v 1.376 2008/12/11 21:00:01 sshwarts Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Check that we are running under the correct shell.
555 SHELL
=${CONFIG_SHELL-/bin/sh}
559 # Remove one level of quotation (which was required for Make).
560 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 if test "X$1" = X--no-reexec
; then
566 # Discard the --no-reexec flag, and continue.
568 elif test "X$1" = X--fallback-echo
; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo
; then
580 # used as fallback echo
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset
; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
598 echo_test_string
="`eval $cmd`" &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
618 for dir
in $PATH /usr
/ucb
; do
620 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$echo" = Xecho
; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL
=/bin
/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
659 SHELL
="$CONFIG_SHELL"
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string
=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames
=${tagnames+${tagnames},}CXX
705 tagnames
=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev
/null
6>&1
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 ac_default_prefix
=/usr
/local
719 ac_config_libobj_dir
=.
725 SHELL
=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
734 ac_unique_file
="bochs.h"
735 # Factoring default headers for most tests.
736 ac_includes_default
="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
852 NONPLUGIN_GUI_LINK_OPTS
855 BX_COMPRESSED_HD_SUPPORT
864 PCIDEV_MODULE_MAKE_ALL
910 INSTALL_LIST_FOR_PLATFORM
929 PLUGIN_LIBNAME_TRANSFORMATION
941 IODEV_NON_PLUGIN_OBJS
951 ac_precious_vars
='build_alias
972 # Initialize some variables set by options.
974 ac_init_version
=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
984 program_transform_name
=s
,x
,x
,
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir
='${exec_prefix}/bin'
999 sbindir
='${exec_prefix}/sbin'
1000 libexecdir
='${exec_prefix}/libexec'
1001 datarootdir
='${prefix}/share'
1002 datadir
='${datarootdir}'
1003 sysconfdir
='${prefix}/etc'
1004 sharedstatedir
='${prefix}/com'
1005 localstatedir
='${prefix}/var'
1006 includedir
='${prefix}/include'
1007 oldincludedir
='/usr/include'
1008 docdir
='${datarootdir}/doc/${PACKAGE}'
1009 infodir
='${datarootdir}/info'
1014 libdir
='${exec_prefix}/lib'
1015 localedir
='${datarootdir}/locale'
1016 mandir
='${datarootdir}/man'
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\
$ac_option
1030 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1042 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1043 bindir
=$ac_optarg ;;
1045 -build |
--build |
--buil |
--bui |
--bu)
1046 ac_prev
=build_alias
;;
1047 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1048 build_alias
=$ac_optarg ;;
1050 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1051 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1052 ac_prev
=cache_file
;;
1053 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1054 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1055 cache_file
=$ac_optarg ;;
1057 --config-cache |
-C)
1058 cache_file
=config.cache
;;
1060 -datadir |
--datadir |
--datadi |
--datad)
1062 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1063 datadir
=$ac_optarg ;;
1065 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1066 |
--dataroo |
--dataro |
--datar)
1067 ac_prev
=datarootdir
;;
1068 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1069 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1070 datarootdir
=$ac_optarg ;;
1072 -disable-* |
--disable-*)
1073 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_
$ac_feature=no
;;
1081 -docdir |
--docdir |
--docdi |
--doc |
--do)
1083 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1084 docdir
=$ac_optarg ;;
1086 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1088 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1089 dvidir
=$ac_optarg ;;
1091 -enable-* |
--enable-*)
1092 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1098 eval enable_
$ac_feature=\
$ac_optarg ;;
1100 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1101 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1102 |
--exec |
--exe |
--ex)
1103 ac_prev
=exec_prefix
;;
1104 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1105 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1106 |
--exec=* |
--exe=* |
--ex=*)
1107 exec_prefix
=$ac_optarg ;;
1109 -gas |
--gas |
--ga |
--g)
1110 # Obsolete; use --with-gas.
1113 -help |
--help |
--hel |
--he |
-h)
1114 ac_init_help
=long
;;
1115 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1116 ac_init_help
=recursive
;;
1117 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1118 ac_init_help
=short
;;
1120 -host |
--host |
--hos |
--ho)
1121 ac_prev
=host_alias
;;
1122 -host=* |
--host=* |
--hos=* |
--ho=*)
1123 host_alias
=$ac_optarg ;;
1125 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1127 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1129 htmldir
=$ac_optarg ;;
1131 -includedir |
--includedir |
--includedi |
--included |
--include \
1132 |
--includ |
--inclu |
--incl |
--inc)
1133 ac_prev
=includedir
;;
1134 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1135 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1136 includedir
=$ac_optarg ;;
1138 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1140 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1141 infodir
=$ac_optarg ;;
1143 -libdir |
--libdir |
--libdi |
--libd)
1145 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1146 libdir
=$ac_optarg ;;
1148 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1149 |
--libexe |
--libex |
--libe)
1150 ac_prev
=libexecdir
;;
1151 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1152 |
--libexe=* |
--libex=* |
--libe=*)
1153 libexecdir
=$ac_optarg ;;
1155 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1156 ac_prev
=localedir
;;
1157 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1158 localedir
=$ac_optarg ;;
1160 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1161 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1162 ac_prev
=localstatedir
;;
1163 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1164 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1165 localstatedir
=$ac_optarg ;;
1167 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1169 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1170 mandir
=$ac_optarg ;;
1172 -nfp |
--nfp |
--nf)
1173 # Obsolete; use --without-fp.
1176 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1177 |
--no-cr |
--no-c |
-n)
1180 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1181 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1184 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1185 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1186 |
--oldin |
--oldi |
--old |
--ol |
--o)
1187 ac_prev
=oldincludedir
;;
1188 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1189 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1190 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1191 oldincludedir
=$ac_optarg ;;
1193 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1195 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1196 prefix
=$ac_optarg ;;
1198 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1199 |
--program-pre |
--program-pr |
--program-p)
1200 ac_prev
=program_prefix
;;
1201 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1202 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1203 program_prefix
=$ac_optarg ;;
1205 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1206 |
--program-suf |
--program-su |
--program-s)
1207 ac_prev
=program_suffix
;;
1208 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1209 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1210 program_suffix
=$ac_optarg ;;
1212 -program-transform-name |
--program-transform-name \
1213 |
--program-transform-nam |
--program-transform-na \
1214 |
--program-transform-n |
--program-transform- \
1215 |
--program-transform |
--program-transfor \
1216 |
--program-transfo |
--program-transf \
1217 |
--program-trans |
--program-tran \
1218 |
--progr-tra |
--program-tr |
--program-t)
1219 ac_prev
=program_transform_name
;;
1220 -program-transform-name=* |
--program-transform-name=* \
1221 |
--program-transform-nam=* |
--program-transform-na=* \
1222 |
--program-transform-n=* |
--program-transform-=* \
1223 |
--program-transform=* |
--program-transfor=* \
1224 |
--program-transfo=* |
--program-transf=* \
1225 |
--program-trans=* |
--program-tran=* \
1226 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1227 program_transform_name
=$ac_optarg ;;
1229 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1231 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1232 pdfdir
=$ac_optarg ;;
1234 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1236 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1239 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1240 |
-silent |
--silent |
--silen |
--sile |
--sil)
1243 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1245 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1247 sbindir
=$ac_optarg ;;
1249 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1250 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1251 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1253 ac_prev
=sharedstatedir
;;
1254 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1255 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1256 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1258 sharedstatedir
=$ac_optarg ;;
1260 -site |
--site |
--sit)
1262 -site=* |
--site=* |
--sit=*)
1265 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1267 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1268 srcdir
=$ac_optarg ;;
1270 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1271 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1272 ac_prev
=sysconfdir
;;
1273 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1274 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1275 sysconfdir
=$ac_optarg ;;
1277 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1278 ac_prev
=target_alias
;;
1279 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1280 target_alias
=$ac_optarg ;;
1282 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1285 -version |
--version |
--versio |
--versi |
--vers |
-V)
1286 ac_init_version
=: ;;
1289 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1295 eval with_
$ac_package=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1304 eval with_
$ac_package=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val
=\$
$ac_var
1363 [\\/$
]* | ?
:[\\/]* ) continue;;
1364 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target
=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x
; then
1379 if test "x$build_alias" = x
; then
1380 cross_compiling
=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1391 test "$silent" = yes && exec 6>/dev
/null
1394 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di
=`ls -di .` &&
1396 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted
=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir
=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted
=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var
in $ac_precious_vars; do
1459 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1461 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures this package to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --x-includes=DIR X include files are
in DIR
1531 --x-libraries=DIR X library files are
in DIR
1534 --build=BUILD configure
for building on BUILD
[guessed
]
1535 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1536 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1540 if test -n "$ac_init_help"; then
1545 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1546 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1547 --enable-static[=PKGS
] build static libraries
[default
=no
]
1548 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1549 --enable-fast-install[=PKGS
]
1550 optimize
for fast installation
[default
=yes]
1551 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1552 --enable-ltdl-install install libltdl
1553 --disable-largefile omit support
for large files
1554 --enable-idle-hack use Roland Mainz
's idle hack
1555 --enable-plugins enable plugins
1556 --enable-x86-64 compile in support for x86-64 instructions
1557 --enable-smp compile in support for SMP configurations
1558 --enable-cpu-level select cpu level (3,4,5,6)
1559 --enable-apic enable APIC support
1560 --enable-compressed-hd allows compressed (zlib) hard disk image (not implemented yet)
1561 --enable-ne2000 enable limited ne2000 support
1562 --enable-acpi enable ACPI support
1563 --enable-pci enable limited i440FX PCI support
1564 --enable-pcidev enable PCI host device mapping support (linux host only)
1565 --enable-usb enable limited USB support
1566 --enable-pnic enable PCI pseudo NIC support
1567 --enable-large-pages support for large pages (2M/4M pages)
1568 --enable-pae support Physical Address Extensions
1569 --enable-global-pages support for global pages in PDE/PTE
1570 --enable-1g-pages support for 1G pages in long mode
1571 --enable-mtrr support for MTRRs
1572 --enable-repeat-speedups support repeated IO and mem copy speedups
1573 --enable-trace-cache support instruction trace cache
1574 --enable-icache support instruction cache
1575 --enable-fast-function-calls support for fast function calls (gcc on x86 only)
1576 --enable-host-specific-asms support for host specific inline assembly
1577 --enable-ignore-bad-msr ignore bad MSR references
1578 --enable-port-e9-hack writes to port e9 go to console
1579 --enable-show-ips show IPS in Bochs log file
1580 --enable-cpp use .cpp as C++ suffix
1581 --enable-debugger compile in support for Bochs internal debugger
1582 --enable-disasm compile in support for disassembler
1583 --enable-all-optimizations compile in all possible optimizations
1584 --enable-readline use readline library, if available
1585 --enable-instrumentation compile in support for instrumentation
1586 --enable-logging enable logging
1587 --enable-assert-checks enable BX_ASSERT checks
1588 --enable-raw-serial use raw serial port access
1589 --enable-vbe use VESA BIOS extensions
1590 --enable-clgd54xx enable CLGD54XX emulation
1591 --enable-fpu compile in FPU emulation
1592 --enable-vme virtual 8086 mode extensions
1593 --enable-mmx MMX support
1594 --enable-3dnow 3DNow! support (incomplete)
1595 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1596 --enable-sse-extension support for SSE extensions
1597 --enable-daz denormals-are-zeroes support
1598 --enable-xsave support for XSAVE/XRSTOR extensions
1599 --enable-aes support for AES instructions
1600 --enable-alignment-check alignment check (#AC) support
1601 --enable-misaligned-sse misaligned SSE support
1602 --enable-sep SYSENTER/SYSEXIT support
1603 --enable-popcnt support for POPCNT instruction
1604 --enable-movbe support for MOVBE Intel Atom(R) instruction
1605 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental)
1606 --enable-x86-debugger x86 debugger support
1607 --enable-cdrom CDROM support
1608 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1609 --enable-gameport enable standard PC gameport support
1610 --enable-gdb-stub enable gdb stub support
1611 --enable-iodebug enable I/O interface to debugger
1612 --enable-docbook build the Docbook documentation
1613 --enable-xpm enable the check for XPM support
1614 --enable-guest2host-tlb enables guest to host addr TLB for speed (deprecated)
1615 --enable-external-debugger enables external debugger interface (deprecated)
1616 --enable-magic-breakpoints enables magic breakpoints (deprecated)
1617 --enable-save-restore enables save/restore (deprecated)
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1623 --with-pic try to use only PIC/non-PIC objects [default=use
1625 --with-tags[=TAGS] include additional configurations [automatic]
1626 --with-x use the X Window System
1627 --with-x11 use X11 GUI
1628 --with-beos use BeOS GUI
1629 --with-win32 use Win32 GUI
1630 --with-macos use Macintosh/CodeWarrior environment
1631 --with-carbon compile for MacOS X with Carbon GUI
1632 --with-nogui no native GUI, just use blank stubs
1633 --with-term textmode terminal environment
1634 --with-rfb use RFB protocol, works with VNC viewer
1635 --with-amigaos use AmigaOS (or MorphOS) GUI
1636 --with-sdl use SDL libraries
1637 --with-svga use SVGALib libraries
1638 --with-wx use wxWidgets libraries
1639 --with-all-libs compile all guis that Bochs supports
1641 Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
1652 CXXCPP C++ preprocessor
1653 F77 Fortran 77 compiler command
1654 FFLAGS Fortran 77 compiler flags
1655 XMKMF Path to xmkmf, Makefile generator for X Window System
1656 PKG_CONFIG path to pkg-config utility
1657 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1658 GTK_LIBS linker flags for GTK, overriding pkg-config
1660 Use these variables to override the choices made by `configure' or to
help
1661 it to
find libraries and programs with nonstandard names
/locations.
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1670 test -d "$ac_dir" ||
continue
1674 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1676 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1681 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1684 ac_abs_top_builddir
=$ac_pwd
1685 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir
=$ac_top_build_prefix
1690 .
) # We are building in place.
1692 ac_top_srcdir
=$ac_top_builddir_sub
1693 ac_abs_top_srcdir
=$ac_pwd ;;
1694 [\\/]* | ?
:[\\/]* ) # Absolute name.
1695 ac_srcdir
=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir
=$srcdir
1697 ac_abs_top_srcdir
=$srcdir ;;
1699 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1703 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1714 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1724 generated by GNU Autoconf
2.61
1726 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1728 This configure
script is free software
; the Free Software Foundation
1729 gives unlimited permission to copy
, distribute and modify it.
1733 cat >config.log
<<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1737 It was created by $as_me, which was
1738 generated by GNU Autoconf 2.61. Invocation command line was
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir
=.
1774 echo "PATH: $as_dir"
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_must_keep_next
=false
1804 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1805 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1806 |
-silent |
--silent |
--silen |
--sile |
--sil)
1809 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1814 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true
; then
1816 ac_must_keep_next
=false
# Got value, back to normal.
1819 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1820 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1821 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1822 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827 -* ) ac_must_keep_next
=true
;;
1830 ac_configure_args
="$ac_configure_args '$ac_arg'"
1835 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1836 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1854 # The following way of writing the cache mishandles newlines in values,
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1861 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1862 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1865 _ | IFS | as_nl) ;; #(
1866 *) $as_unset $ac_var ;;
1871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1872 *${as_nl}ac_space=\ *)
1874 "s/'\''/'\''\\\\'\'''\''/g;
1875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1886 ## ----------------- ##
1887 ## Output variables. ##
1888 ## ----------------- ##
1891 for ac_var in $ac_subst_vars
1893 eval ac_val=\$$ac_var
1895 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 echo "$ac_var='\''$ac_val'\''"
1901 if test -n "$ac_subst_files"; then
1903 ## ------------------- ##
1904 ## File substitutions. ##
1905 ## ------------------- ##
1908 for ac_var
in $ac_subst_files
1910 eval ac_val
=\$
$ac_var
1912 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 echo "$ac_var='\''$ac_val'\''"
1919 if test -s confdefs.h; then
1929 test "$ac_signal" != 0 &&
1930 echo "$as_me: caught signal $ac_signal"
1931 echo "$as_me: exit $exit_status"
1933 rm -f core *.core core.conftest.* &&
1934 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1937 for ac_signal
in 1 2 13 15; do
1938 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1942 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1943 rm -f -r conftest
* confdefs.h
1945 # Predefined preprocessor variables.
1947 cat >>confdefs.h
<<_ACEOF
1948 #define PACKAGE_NAME "$PACKAGE_NAME"
1952 cat >>confdefs.h
<<_ACEOF
1953 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1957 cat >>confdefs.h
<<_ACEOF
1958 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1962 cat >>confdefs.h
<<_ACEOF
1963 #define PACKAGE_STRING "$PACKAGE_STRING"
1967 cat >>confdefs.h
<<_ACEOF
1968 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972 # Let the site file select an alternate cache file if it wants to.
1973 # Prefer explicitly selected file to automatically selected ones.
1974 if test -n "$CONFIG_SITE"; then
1975 set x
"$CONFIG_SITE"
1976 elif test "x$prefix" != xNONE
; then
1977 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1979 set x
"$ac_default_prefix/share/config.site" \
1980 "$ac_default_prefix/etc/config.site"
1985 if test -r "$ac_site_file"; then
1986 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1987 echo "$as_me: loading site script $ac_site_file" >&6;}
1988 sed 's/^/| /' "$ac_site_file" >&5
1993 if test -r "$cache_file"; then
1994 # Some versions of bash will fail to source /dev/null (special
1995 # files actually), so we avoid doing that.
1996 if test -f "$cache_file"; then
1997 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1998 echo "$as_me: loading cache $cache_file" >&6;}
2000 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2001 *) .
"./$cache_file";;
2005 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2006 echo "$as_me: creating cache $cache_file" >&6;}
2010 # Check that the precious variables saved in the cache have kept the same
2012 ac_cache_corrupted
=false
2013 for ac_var
in $ac_precious_vars; do
2014 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2015 eval ac_new_set
=\
$ac_env_${ac_var}_set
2016 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2017 eval ac_new_val
=\
$ac_env_${ac_var}_value
2018 case $ac_old_set,$ac_new_set in
2020 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2021 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2022 ac_cache_corrupted
=: ;;
2024 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2026 ac_cache_corrupted
=: ;;
2029 if test "x$ac_old_val" != "x$ac_new_val"; then
2030 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2031 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2033 echo "$as_me: former value: $ac_old_val" >&2;}
2034 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2035 echo "$as_me: current value: $ac_new_val" >&2;}
2036 ac_cache_corrupted
=:
2039 # Pass precious variables to config.status.
2040 if test "$ac_new_set" = set; then
2042 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 *) ac_arg
=$ac_var=$ac_new_val ;;
2045 case " $ac_configure_args " in
2046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2047 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2051 if $ac_cache_corrupted; then
2052 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2053 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2054 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2055 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2056 { (exit 1); exit 1; }; }
2076 ac_cpp
='$CPP $CPPFLAGS'
2077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2083 ac_config_headers
="$ac_config_headers config.h"
2085 ac_config_headers
="$ac_config_headers ltdlconf.h"
2089 VER_STRING
="2.3.7.cvs"
2090 WIN_VER_STRING
="2, 3, 7, 1"
2091 REL_STRING
="Build from CVS snapshot, after release 2.3.7"
2097 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2098 if test -f "$ac_dir/install-sh"; then
2100 ac_install_sh
="$ac_aux_dir/install-sh -c"
2102 elif test -f "$ac_dir/install.sh"; then
2104 ac_install_sh
="$ac_aux_dir/install.sh -c"
2106 elif test -f "$ac_dir/shtool"; then
2108 ac_install_sh
="$ac_aux_dir/shtool install -c"
2112 if test -z "$ac_aux_dir"; then
2113 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2114 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2115 { (exit 1); exit 1; }; }
2118 # These three variables are undocumented and unsupported,
2119 # and are intended to be withdrawn in a future Autoconf release.
2120 # They can cause serious problems if a builder's source tree is in a directory
2121 # whose full name contains unusual characters.
2122 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2123 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2124 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2127 # Make sure we can run config.sub.
2128 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2129 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2130 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2131 { (exit 1); exit 1; }; }
2133 { echo "$as_me:$LINENO: checking build system type" >&5
2134 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2135 if test "${ac_cv_build+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 ac_build_alias
=$build_alias
2139 test "x$ac_build_alias" = x
&&
2140 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2141 test "x$ac_build_alias" = x
&&
2142 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2144 { (exit 1); exit 1; }; }
2145 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2146 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2147 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2148 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152 echo "${ECHO_T}$ac_cv_build" >&6; }
2153 case $ac_cv_build in
2155 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2156 echo "$as_me: error: invalid value of canonical build" >&2;}
2157 { (exit 1); exit 1; }; };;
2160 ac_save_IFS
=$IFS; IFS
='-'
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2170 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2173 { echo "$as_me:$LINENO: checking host system type" >&5
2174 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2175 if test "${ac_cv_host+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test "x$host_alias" = x
; then
2179 ac_cv_host
=$ac_cv_build
2181 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2182 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2183 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2184 { (exit 1); exit 1; }; }
2188 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2189 echo "${ECHO_T}$ac_cv_host" >&6; }
2192 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2193 echo "$as_me: error: invalid value of canonical host" >&2;}
2194 { (exit 1); exit 1; }; };;
2197 ac_save_IFS
=$IFS; IFS
='-'
2203 # Remember, the first character of IFS is used to create $*,
2204 # except with old shells:
2207 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210 { echo "$as_me:$LINENO: checking target system type" >&5
2211 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2212 if test "${ac_cv_target+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test "x$target_alias" = x
; then
2216 ac_cv_target
=$ac_cv_host
2218 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2219 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2220 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2221 { (exit 1); exit 1; }; }
2225 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2226 echo "${ECHO_T}$ac_cv_target" >&6; }
2227 case $ac_cv_target in
2229 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2230 echo "$as_me: error: invalid value of canonical target" >&2;}
2231 { (exit 1); exit 1; }; };;
2233 target
=$ac_cv_target
2234 ac_save_IFS
=$IFS; IFS
='-'
2240 # Remember, the first character of IFS is used to create $*,
2241 # except with old shells:
2244 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2247 # The aliases save the names the user supplied, while $host etc.
2248 # will get canonicalized.
2249 test -n "$target_alias" &&
2250 test "$program_prefix$program_suffix$program_transform_name" = \
2252 program_prefix
=${target_alias}-
2254 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2255 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2256 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2266 # this case statement defines the compile flags which are needed to
2267 # compile bochs on a platform. Don't put things like optimization settings
2268 # into the configure.in file, since people will want to be able to change
2269 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2271 need_dlcompat_for_plugins
=0
2273 *-pc-windows* |
*-pc-winnt*)
2274 DEFAULT_GUI
=win32
# default to win32 gui
2276 *-pc-cygwin* |
*-pc-mingw32*)
2277 NO_LT
=1 # do not use libtool at all on cygwin
2278 if test "$with_term" = yes; then
2279 # ncurses won't compile with -mno-cygwin or -DWIN32
2280 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2281 # see /usr/include/curses.h for details.
2282 ADD_FLAGS
="-DBROKEN_LINKER=1"
2285 ADD_FLAGS
="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2286 DEFAULT_GUI
=win32
# default to win32 gui
2289 *-macosx* |
*-darwin*)
2290 ADD_FLAGS
="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2291 DEFAULT_GUI
=carbon
# default to carbon
2292 need_dlcompat_for_plugins
=1
2295 DEFAULT_GUI
=macos
# macos defaults to macos
2298 ADD_FLAGS
="-Wno-multichar"
2299 DEFAULT_GUI
=beos
# beos defaults to beos
2301 *-amigaos* |
*-morphos*)
2302 DEFAULT_GUI
=amigaos
# amigaos or morphos defaults to amigaos gui
2305 ADD_FLAGS
="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2306 LIBS
="$LIBS -lsocket -lnsl"
2313 if test "${ADD_FLAGS:+set}" = set; then
2314 CFLAGS
="$CFLAGS $ADD_FLAGS"
2315 CXXFLAGS
="$CXXFLAGS $ADD_FLAGS"
2316 CPPFLAGS
="$CPPFLAGS $ADD_FLAGS"
2319 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2320 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2321 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2322 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2324 if (test "$with_sdl" != yes) && \
2325 (test "$with_svga" != yes) && \
2326 (test "$with_x11" != yes) && \
2327 (test "$with_beos" != yes) && \
2328 (test "$with_win32" != yes) && \
2329 (test "$with_nogui" != yes) && \
2330 (test "$with_term" != yes) && \
2331 (test "$with_rfb" != yes) && \
2332 (test "$with_amigaos" != yes) && \
2333 (test "$with_carbon" != yes) && \
2334 (test "$with_wx" != yes) && \
2335 (test "$with_macos" != yes); then
2336 # use DEFAULT_GUI. Set the appropriate variable.
2337 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2338 # valid $with_* variable will be set and who knows what will happen?
2339 eval "with_${DEFAULT_GUI}=yes"
2343 ac_cpp
='$CPP $CPPFLAGS'
2344 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC
="$CC" # Let the user override the test.
2358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir
=.
2363 for ac_exec_ext
in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test -n "$CC"; then
2377 { echo "$as_me:$LINENO: result: $CC" >&5
2378 echo "${ECHO_T}$CC" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2386 if test -z "$ac_cv_prog_CC"; then
2388 # Extract the first word of "gcc", so it can be a program name with args.
2389 set dummy gcc
; ac_word
=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$ac_ct_CC"; then
2396 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir
=.
2403 for ac_exec_ext
in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_ac_ct_CC
="gcc"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418 echo "${ECHO_T}$ac_ct_CC" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2424 if test "x$ac_ct_CC" = x
; then
2427 case $cross_compiling:$ac_tool_warned in
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet. If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned
=yes ;;
2443 if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2446 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC
="$CC" # Let the user override the test.
2455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir
=.
2460 for ac_exec_ext
in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 if test -n "$CC"; then
2474 { echo "$as_me:$LINENO: result: $CC" >&5
2475 echo "${ECHO_T}$CC" >&6; }
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2484 if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486 set dummy cc
; ac_word
=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC
="$CC" # Let the user override the test.
2496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir
=.
2501 for ac_exec_ext
in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected
=yes
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 if test $ac_prog_rejected = yes; then
2516 # We found a bogon in the path, so make sure we never use it.
2517 set dummy
$ac_cv_prog_CC
2519 if test $# != 0; then
2520 # We chose a different compiler from the bogus one.
2521 # However, it has the same basename, so the bogon will be chosen
2522 # first if we set CC to just the basename; use the full file name.
2524 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2530 if test -n "$CC"; then
2531 { echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2540 if test -z "$CC"; then
2541 if test -n "$ac_tool_prefix"; then
2542 for ac_prog
in cl.exe
2544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2545 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC
="$CC" # Let the user override the test.
2554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir
=.
2559 for ac_exec_ext
in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 if test -n "$CC"; then
2573 { echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6; }
2576 { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2581 test -n "$CC" && break
2584 if test -z "$CC"; then
2586 for ac_prog
in cl.exe
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy
$ac_prog; ac_word
=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$ac_ct_CC"; then
2596 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir
=.
2603 for ac_exec_ext
in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_ac_ct_CC
="$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6; }
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$ac_ct_CC" && break
2628 if test "x$ac_ct_CC" = x
; then
2631 case $cross_compiling:$ac_tool_warned in
2633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2634 whose name does not start with the host triplet. If you think this
2635 configuration is useful to you, please write to autoconf@gnu.org." >&5
2636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2637 whose name does not start with the host triplet. If you think this
2638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2639 ac_tool_warned
=yes ;;
2648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: no acceptable C compiler found in \$PATH
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO: checking for C compiler version" >&5
2656 ac_compiler
=`set X $ac_compile; echo $2`
2657 { (ac_try
="$ac_compiler --version >&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 --version >&5") 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (ac_try="$ac_compiler -v >&5"
2669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2670 *) ac_try_echo
=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler -v >&5") 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (ac_try
="$ac_compiler -V >&5"
2679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -V >&5") 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2703 ac_clean_files_save=$ac_clean_files
2704 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2705 # Try to create an executable without -o first, disregard a.out.
2706 # It will help us diagnose broken compilers, and finding out an intuition
2708 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2709 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2710 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2712 # List of possible output files, starting from the most likely.
2713 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2714 # only as a last resort. b.out is created by i960 compilers.
2715 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2717 # The IRIX 6 linker writes into existing files which may not be
2718 # executable, retaining their permissions. Remove them first so a
2719 # subsequent execution test works.
2721 for ac_file in $ac_files
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2730 if { (ac_try="$ac_link_default"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_link_default") 2>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; then
2740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2743 # so that the user can short-circuit this test for compilers unknown to
2745 for ac_file
in $ac_files ''
2747 test -f "$ac_file" ||
continue
2749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2752 # We found the default executable, but exeext='' is most
2756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2758 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2760 # We set ac_cv_exeext here because the later test for it is not
2761 # safe: cross compilers may not add the suffix if given an `-o'
2762 # argument, so we may need to know it at that point already.
2763 # Even if this section looks crufty: it has the advantage of
2770 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2776 { echo "$as_me:$LINENO: result: $ac_file" >&5
2777 echo "${ECHO_T}$ac_file" >&6; }
2778 if test -z "$ac_file"; then
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.
$ac_ext >&5
2782 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: C compiler cannot create executables
2785 See \`config.log' for more details." >&2;}
2786 { (exit 77); exit 77; }; }
2789 ac_exeext
=$ac_cv_exeext
2791 # Check that the compiler produces executables we can run. If not, either
2792 # the compiler is broken, or we cross compile.
2793 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2794 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2795 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2796 # If not cross compiling, check that we can run a simple program.
2797 if test "$cross_compiling" != yes; then
2798 if { ac_try
='./$ac_file'
2799 { (case "(($ac_try" in
2800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_try") 2>&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2810 if test "$cross_compiling" = maybe; then
2813 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details.
" >&5
2816 echo "$as_me: error
: cannot run C compiled programs.
2817 If you meant to cross compile
, use \
`--host'.
2818 See \`config.log
' for more details." >&2;}
2819 { (exit 1); exit 1; }; }
2823 { echo "$as_me:$LINENO: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6; }
2826 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2827 ac_clean_files=$ac_clean_files_save
2828 # Check that the compiler produces executables we can run. If not, either
2829 # the compiler is broken, or we cross compile.
2830 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2831 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2832 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2833 echo "${ECHO_T}$cross_compiling" >&6; }
2835 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2836 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2837 if { (ac_try="$ac_link"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_link") 2>&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; then
2847 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2848 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2849 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2851 for ac_file
in conftest.exe conftest conftest.
*; do
2852 test -f "$ac_file" ||
continue
2854 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2855 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2868 rm -f conftest
$ac_cv_exeext
2869 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2870 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2872 rm -f conftest.
$ac_ext
2873 EXEEXT
=$ac_cv_exeext
2875 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2876 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2877 if test "${ac_cv_objext+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 cat >conftest.
$ac_ext <<_ACEOF
2883 cat confdefs.h
>>conftest.
$ac_ext
2884 cat >>conftest.
$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2895 rm -f conftest.o conftest.obj
2896 if { (ac_try
="$ac_compile"
2898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 for ac_file in conftest.o conftest.obj conftest.*; do
2907 test -f "$ac_file" || continue;
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2910 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2919 See \`config.log
' for more details." >&5
2920 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2921 See \`config.log' for more details.
" >&2;}
2922 { (exit 1); exit 1; }; }
2925 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2927 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2928 echo "${ECHO_T}$ac_cv_objext" >&6; }
2929 OBJEXT=$ac_cv_objext
2931 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2932 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2933 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2934 echo $ECHO_N "(cached
) $ECHO_C" >&6
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2954 rm -f conftest.$ac_objext
2955 if { (ac_try="$ac_compile"
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>conftest.er1
2963 grep -v '^ *+' conftest.er1 >conftest.err
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2967 (exit $ac_status); } && {
2968 test -z "$ac_c_werror_flag" ||
2969 test ! -s conftest.err
2970 } && test -s conftest.$ac_objext; then
2973 echo "$as_me: failed program was
:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2983 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2985 GCC=`test $ac_compiler_gnu = yes && echo yes`
2986 ac_test_CFLAGS=${CFLAGS+set}
2987 ac_save_CFLAGS=$CFLAGS
2988 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2989 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2990 if test "${ac_cv_prog_cc_g+set}" = set; then
2991 echo $ECHO_N "(cached
) $ECHO_C" >&6
2993 ac_save_c_werror_flag=$ac_c_werror_flag
2994 ac_c_werror_flag=yes
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3025 (exit $ac_status); } && {
3026 test -z "$ac_c_werror_flag" ||
3027 test ! -s conftest.err
3028 } && test -s conftest.$ac_objext; then
3031 echo "$as_me: failed program was
:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3063 (exit $ac_status); } && {
3064 test -z "$ac_c_werror_flag" ||
3065 test ! -s conftest.err
3066 } && test -s conftest.$ac_objext; then
3069 echo "$as_me: failed program was
:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
3108 echo "$as_me: failed program was
:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 ac_c_werror_flag=$ac_save_c_werror_flag
3123 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3124 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3125 if test "$ac_test_CFLAGS" = set; then
3126 CFLAGS=$ac_save_CFLAGS
3127 elif test $ac_cv_prog_cc_g = yes; then
3128 if test "$GCC" = yes; then
3134 if test "$GCC" = yes; then
3140 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3141 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3142 if test "${ac_cv_prog_cc_c89+set}" = set; then
3143 echo $ECHO_N "(cached
) $ECHO_C" >&6
3145 ac_cv_prog_cc_c89=no
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3155 #include <sys/types.h>
3156 #include <sys/stat.h>
3157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3158 struct buf { int x; };
3159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3160 static char *e (p, i)
3166 static char *f (char * (*g) (char **, int), char **p, ...)
3171 s = g (p, va_arg (v,int));
3176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3177 function prototypes and stuff, but not '\xHH' hex character constants.
3178 These don't provoke an error unfortunately, instead are silently treated
3179 as 'x'. The following induces an error, until -std is added to get
3180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3181 array size at least. It's necessary to write '\x00'==0 to get something
3182 that's true only with -std. */
3183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3185 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3186 inside strings and character constants. */
3188 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3190 int test (int i, double x);
3191 struct s1 {int (*f) (int a);};
3192 struct s2 {int (*f) (double a);};
3193 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3199 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3204 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3207 CC="$ac_save_CC $ac_arg"
3208 rm -f conftest.$ac_objext
3209 if { (ac_try="$ac_compile"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compile") 2>conftest.er1
3217 grep -v '^ *+' conftest.er1 >conftest.err
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3221 (exit $ac_status); } && {
3222 test -z "$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 } && test -s conftest.$ac_objext; then
3225 ac_cv_prog_cc_c89=$ac_arg
3227 echo "$as_me: failed program was
:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3233 rm -f core conftest.err conftest.$ac_objext
3234 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3236 rm -f conftest.$ac_ext
3241 case "x
$ac_cv_prog_cc_c89" in
3243 { echo "$as_me:$LINENO: result
: none needed
" >&5
3244 echo "${ECHO_T}none needed
" >&6; } ;;
3246 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3247 echo "${ECHO_T}unsupported
" >&6; } ;;
3249 CC="$CC $ac_cv_prog_cc_c89"
3250 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 ac_cpp='$CXXCPP $CPPFLAGS'
3263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3266 if test -z "$CXX"; then
3267 if test -n "$CCC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
3276 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CXX+set}" = set; then
3278 echo $ECHO_N "(cached
) $ECHO_C" >&6
3280 if test -n "$CXX"; then
3281 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3291 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3301 if test -n "$CXX"; then
3302 { echo "$as_me:$LINENO: result
: $CXX" >&5
3303 echo "${ECHO_T}$CXX" >&6; }
3305 { echo "$as_me:$LINENO: result
: no
" >&5
3306 echo "${ECHO_T}no
" >&6; }
3310 test -n "$CXX" && break
3313 if test -z "$CXX"; then
3315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
3320 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
3321 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3322 echo $ECHO_N "(cached
) $ECHO_C" >&6
3324 if test -n "$ac_ct_CXX"; then
3325 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_ac_ct_CXX="$ac_prog"
3335 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3344 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3345 if test -n "$ac_ct_CXX"; then
3346 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
3347 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3349 { echo "$as_me:$LINENO: result
: no
" >&5
3350 echo "${ECHO_T}no
" >&6; }
3354 test -n "$ac_ct_CXX" && break
3357 if test "x
$ac_ct_CXX" = x; then
3360 case $cross_compiling:$ac_tool_warned in
3362 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
3363 whose name does not start with the
host triplet. If you think this
3364 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
3365 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
3366 whose name does not start with the
host triplet. If you think this
3367 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
3368 ac_tool_warned=yes ;;
3376 # Provide some information about the compiler.
3377 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
3378 ac_compiler=`set X $ac_compile; echo $2`
3379 { (ac_try="$ac_compiler --version >&5"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compiler --version >&5") 2>&5
3387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3388 (exit $ac_status); }
3389 { (ac_try="$ac_compiler -v >&5"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compiler -v >&5") 2>&5
3397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3398 (exit $ac_status); }
3399 { (ac_try="$ac_compiler -V >&5"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_compiler -V >&5") 2>&5
3407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3408 (exit $ac_status); }
3410 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
3411 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
3412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3413 echo $ECHO_N "(cached
) $ECHO_C" >&6
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3446 (exit $ac_status); } && {
3447 test -z "$ac_cxx_werror_flag" ||
3448 test ! -s conftest.err
3449 } && test -s conftest.$ac_objext; then
3452 echo "$as_me: failed program was
:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3462 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
3463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3464 GXX=`test $ac_compiler_gnu = yes && echo yes`
3465 ac_test_CXXFLAGS=${CXXFLAGS+set}
3466 ac_save_CXXFLAGS=$CXXFLAGS
3467 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
3468 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
3469 if test "${ac_cv_prog_cxx_g+set}" = set; then
3470 echo $ECHO_N "(cached
) $ECHO_C" >&6
3472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3473 ac_cxx_werror_flag=yes
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3491 rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3504 (exit $ac_status); } && {
3505 test -z "$ac_cxx_werror_flag" ||
3506 test ! -s conftest.err
3507 } && test -s conftest.$ac_objext; then
3508 ac_cv_prog_cxx_g=yes
3510 echo "$as_me: failed program was
:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3529 rm -f conftest.$ac_objext
3530 if { (ac_try="$ac_compile"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_compile") 2>conftest.er1
3538 grep -v '^ *+' conftest.er1 >conftest.err
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3542 (exit $ac_status); } && {
3543 test -z "$ac_cxx_werror_flag" ||
3544 test ! -s conftest.err
3545 } && test -s conftest.$ac_objext; then
3548 echo "$as_me: failed program was
:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_cxx_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3585 ac_cv_prog_cxx_g=yes
3587 echo "$as_me: failed program was
:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3602 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
3603 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3604 if test "$ac_test_CXXFLAGS" = set; then
3605 CXXFLAGS=$ac_save_CXXFLAGS
3606 elif test $ac_cv_prog_cxx_g = yes; then
3607 if test "$GXX" = yes; then
3613 if test "$GXX" = yes; then
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 { echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
3626 echo $ECHO_N "checking whether
${MAKE-make} sets \$
(MAKE
)...
$ECHO_C" >&6; }
3627 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3628 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3629 echo $ECHO_N "(cached
) $ECHO_C" >&6
3631 cat >conftest.make <<\_ACEOF
3634 @echo '@@@%%%=$(MAKE)=@@@%%%'
3636 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3637 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3639 eval ac_cv_prog_make_${ac_make}_set=yes;;
3641 eval ac_cv_prog_make_${ac_make}_set=no;;
3645 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3646 { echo "$as_me:$LINENO: result
: yes" >&5
3647 echo "${ECHO_T}yes" >&6; }
3650 { echo "$as_me:$LINENO: result
: no
" >&5
3651 echo "${ECHO_T}no
" >&6; }
3652 SET_MAKE="MAKE
=${MAKE-make}"
3656 # Check whether --enable-static was given.
3657 if test "${enable_static+set}" = set; then
3658 enableval=$enable_static; p=${PACKAGE-default}
3660 yes) enable_static=yes ;;
3661 no) enable_static=no ;;
3664 # Look at the argument we got. We use all the common list separators.
3665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3666 for pkg in $enableval; do
3668 if test "X
$pkg" = "X
$p"; then
3683 # Check whether --enable-shared was given.
3684 if test "${enable_shared+set}" = set; then
3685 enableval=$enable_shared; p=${PACKAGE-default}
3687 yes) enable_shared=yes ;;
3688 no) enable_shared=no ;;
3691 # Look at the argument we got. We use all the common list separators.
3692 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3693 for pkg in $enableval; do
3695 if test "X
$pkg" = "X
$p"; then
3707 # Check whether --enable-fast-install was given.
3708 if test "${enable_fast_install+set}" = set; then
3709 enableval=$enable_fast_install; p=${PACKAGE-default}
3711 yes) enable_fast_install=yes ;;
3712 no) enable_fast_install=no ;;
3714 enable_fast_install=no
3715 # Look at the argument we got. We use all the common list separators.
3716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3717 for pkg in $enableval; do
3719 if test "X
$pkg" = "X
$p"; then
3720 enable_fast_install=yes
3727 enable_fast_install=yes
3731 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
3732 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
3733 if test "${lt_cv_path_SED+set}" = set; then
3734 echo $ECHO_N "(cached
) $ECHO_C" >&6
3736 # Loop through the user's path and test for sed and gsed.
3737 # Then use that list of sed's as ones to test for truncation.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for lt_ac_prog in sed gsed; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3746 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3753 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3754 # along with /bin/sed that truncates output.
3755 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3756 test ! -f $lt_ac_sed && break
3757 cat /dev/null > conftest.in
3759 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3760 # Check for GNU sed and select it if it is found.
3761 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3762 lt_cv_path_SED=$lt_ac_sed
3766 cat conftest.in conftest.in >conftest.tmp
3767 mv conftest.tmp conftest.in
3768 cp conftest.in conftest.nl
3770 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3771 cmp -s conftest.out conftest.nl || break
3772 # 10000 chars as input seems more than enough
3773 test $lt_ac_count -gt 10 && break
3774 lt_ac_count=`expr $lt_ac_count + 1`
3775 if test $lt_ac_count -gt $lt_ac_max; then
3776 lt_ac_max=$lt_ac_count
3777 lt_cv_path_SED=$lt_ac_sed
3785 { echo "$as_me:$LINENO: result
: $SED" >&5
3786 echo "${ECHO_T}$SED" >&6; }
3788 { echo "$as_me:$LINENO: checking
for grep that handles long lines and
-e" >&5
3789 echo $ECHO_N "checking
for grep that handles long lines and
-e...
$ECHO_C" >&6; }
3790 if test "${ac_cv_path_GREP+set}" = set; then
3791 echo $ECHO_N "(cached
) $ECHO_C" >&6
3793 # Extract the first word of "grep ggrep
" to use in msg output
3794 if test -z "$GREP"; then
3795 set dummy grep ggrep; ac_prog_name=$2
3796 if test "${ac_cv_path_GREP+set}" = set; then
3797 echo $ECHO_N "(cached
) $ECHO_C" >&6
3799 ac_path_GREP_found=false
3800 # Loop through the user's path and test for each of PROGNAME-LIST
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3805 test -z "$as_dir" && as_dir=.
3806 for ac_prog in grep ggrep; do
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3809 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3810 # Check for GNU ac_path_GREP and select it if it is found.
3811 # Check for GNU $ac_path_GREP
3812 case `"$ac_path_GREP" --version 2>&1` in
3814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3817 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
3820 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3821 mv "conftest.tmp
" "conftest.
in"
3822 cp "conftest.
in" "conftest.
nl"
3823 echo 'GREP' >> "conftest.
nl"
3824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3825 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3826 ac_count=`expr $ac_count + 1`
3827 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3828 # Best one so far, save it but keep looking for a better one
3829 ac_cv_path_GREP="$ac_path_GREP"
3830 ac_path_GREP_max=$ac_count
3832 # 10*(2^10) chars as input seems more than enough
3833 test $ac_count -gt 10 && break
3835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3839 $ac_path_GREP_found && break 3
3849 GREP="$ac_cv_path_GREP"
3850 if test -z "$GREP"; then
3851 { { echo "$as_me:$LINENO: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&5
3852 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
3853 { (exit 1); exit 1; }; }
3857 ac_cv_path_GREP=$GREP
3862 { echo "$as_me:$LINENO: result
: $ac_cv_path_GREP" >&5
3863 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3864 GREP="$ac_cv_path_GREP"
3867 { echo "$as_me:$LINENO: checking
for egrep" >&5
3868 echo $ECHO_N "checking
for egrep...
$ECHO_C" >&6; }
3869 if test "${ac_cv_path_EGREP+set}" = set; then
3870 echo $ECHO_N "(cached
) $ECHO_C" >&6
3872 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3873 then ac_cv_path_EGREP="$GREP -E"
3875 # Extract the first word of "egrep" to use in msg output
3876 if test -z "$EGREP"; then
3877 set dummy egrep; ac_prog_name=$2
3878 if test "${ac_cv_path_EGREP+set}" = set; then
3879 echo $ECHO_N "(cached
) $ECHO_C" >&6
3881 ac_path_EGREP_found=false
3882 # Loop through the user's path and test for each of PROGNAME-LIST
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887 test -z "$as_dir" && as_dir=.
3888 for ac_prog in egrep; do
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3891 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3892 # Check for GNU ac_path_EGREP and select it if it is found.
3893 # Check for GNU $ac_path_EGREP
3894 case `"$ac_path_EGREP" --version 2>&1` in
3896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3899 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
3902 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3903 mv "conftest.tmp
" "conftest.
in"
3904 cp "conftest.
in" "conftest.
nl"
3905 echo 'EGREP' >> "conftest.
nl"
3906 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3907 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3908 ac_count=`expr $ac_count + 1`
3909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3910 # Best one so far, save it but keep looking for a better one
3911 ac_cv_path_EGREP="$ac_path_EGREP"
3912 ac_path_EGREP_max=$ac_count
3914 # 10*(2^10) chars as input seems more than enough
3915 test $ac_count -gt 10 && break
3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921 $ac_path_EGREP_found && break 3
3931 EGREP="$ac_cv_path_EGREP"
3932 if test -z "$EGREP"; then
3933 { { echo "$as_me:$LINENO: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&5
3934 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
3935 { (exit 1); exit 1; }; }
3939 ac_cv_path_EGREP=$EGREP
3945 { echo "$as_me:$LINENO: result
: $ac_cv_path_EGREP" >&5
3946 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3947 EGREP="$ac_cv_path_EGREP"
3951 # Check whether --with-gnu-ld was given.
3952 if test "${with_gnu_ld+set}" = set; then
3953 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3959 if test "$GCC" = yes; then
3960 # Check if gcc -print-prog-name=ld gives a path.
3961 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
3962 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
3965 # gcc leaves a trailing carriage return which upsets mingw
3966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3971 # Accept absolute paths.
3973 re_direlt='/[^/][^/]*/\.\./'
3974 # Canonicalize the pathname of ld
3975 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3976 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3977 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
3979 test -z "$LD" && LD="$ac_prog"
3982 # If it fails, then pretend we aren't using GCC.
3986 # If it is relative, then search for the first ld in PATH.
3990 elif test "$with_gnu_ld" = yes; then
3991 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
3992 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
3994 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
3995 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
3997 if test "${lt_cv_path_LD+set}" = set; then
3998 echo $ECHO_N "(cached
) $ECHO_C" >&6
4000 if test -z "$LD"; then
4001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4002 for ac_dir in $PATH; do
4004 test -z "$ac_dir" && ac_dir=.
4005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4006 lt_cv_path_LD="$ac_dir/$ac_prog"
4007 # Check to see if the program is GNU ld. I'd rather use --version,
4008 # but apparently some GNU ld's only accept -v.
4009 # Break only if it was the GNU/non-GNU ld that we prefer.
4010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4011 *GNU* | *'with BFD'*)
4012 test "$with_gnu_ld" != no && break
4015 test "$with_gnu_ld" != yes && break
4022 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4027 if test -n "$LD"; then
4028 { echo "$as_me:$LINENO: result
: $LD" >&5
4029 echo "${ECHO_T}$LD" >&6; }
4031 { echo "$as_me:$LINENO: result
: no
" >&5
4032 echo "${ECHO_T}no
" >&6; }
4034 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
4035 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
4036 { (exit 1); exit 1; }; }
4037 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
4038 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
4039 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4040 echo $ECHO_N "(cached
) $ECHO_C" >&6
4042 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4043 case `$LD -v 2>&1 </dev/null` in
4044 *GNU* | *'with BFD'*)
4045 lt_cv_prog_gnu_ld=yes
4048 lt_cv_prog_gnu_ld=no
4052 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
4053 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4054 with_gnu_ld=$lt_cv_prog_gnu_ld
4057 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4058 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
4059 if test "${lt_cv_ld_reload_flag+set}" = set; then
4060 echo $ECHO_N "(cached
) $ECHO_C" >&6
4062 lt_cv_ld_reload_flag='-r'
4064 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4065 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4066 reload_flag=$lt_cv_ld_reload_flag
4067 case $reload_flag in
4069 *) reload_flag=" $reload_flag" ;;
4071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4073 { echo "$as_me:$LINENO: checking
for BSD-compatible nm
" >&5
4074 echo $ECHO_N "checking
for BSD-compatible nm...
$ECHO_C" >&6; }
4075 if test "${lt_cv_path_NM+set}" = set; then
4076 echo $ECHO_N "(cached
) $ECHO_C" >&6
4078 if test -n "$NM"; then
4079 # Let the user override the test.
4082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4083 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4085 test -z "$ac_dir" && ac_dir=.
4086 tmp_nm="$ac_dir/${ac_tool_prefix}nm
"
4087 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4088 # Check to see if the nm accepts a BSD-compat flag.
4089 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4090 # nm: unknown option "B
" ignored
4091 # Tru64's nm complains that /dev/null is an invalid object file
4092 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4093 */dev/null* | *'Invalid file or object type'*)
4094 lt_cv_path_NM="$tmp_nm -B"
4098 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4100 lt_cv_path_NM="$tmp_nm -p"
4104 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4105 continue # so that we can try to find one that supports BSD flags
4112 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4115 { echo "$as_me:$LINENO: result
: $lt_cv_path_NM" >&5
4116 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4119 { echo "$as_me:$LINENO: checking whether
ln -s works
" >&5
4120 echo $ECHO_N "checking whether
ln -s works...
$ECHO_C" >&6; }
4122 if test "$LN_S" = "ln -s"; then
4123 { echo "$as_me:$LINENO: result
: yes" >&5
4124 echo "${ECHO_T}yes" >&6; }
4126 { echo "$as_me:$LINENO: result
: no
, using
$LN_S" >&5
4127 echo "${ECHO_T}no
, using
$LN_S" >&6; }
4130 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
4131 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
4132 if test "${lt_cv_deplibs_check_method+set}" = set; then
4133 echo $ECHO_N "(cached
) $ECHO_C" >&6
4135 lt_cv_file_magic_cmd='$MAGIC_CMD'
4136 lt_cv_file_magic_test_file=
4137 lt_cv_deplibs_check_method='unknown'
4138 # Need to set the preceding variable on all platforms that support
4139 # interlibrary dependencies.
4140 # 'none' -- dependencies not supported.
4141 # `unknown' -- same as none, but documents that we really don't know.
4142 # 'pass_all' -- all dependencies passed with no checks.
4143 # 'test_compile' -- check by making test program.
4144 # 'file_magic [[regex]]' -- check by looking for files in library path
4145 # which responds to the $file_magic_cmd with a given extended regex.
4146 # If you have `file' or equivalent on your system and you're not sure
4147 # whether `pass_all' will *always* work, you probably want this one.
4151 lt_cv_deplibs_check_method=pass_all
4155 lt_cv_deplibs_check_method=pass_all
4159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4160 lt_cv_file_magic_cmd='/usr/bin/file -L'
4161 lt_cv_file_magic_test_file=/shlib/libc.so
4164 cygwin* | mingw* | pw32*)
4165 # win32_libid is a shell function defined in ltmain.sh
4166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4167 lt_cv_file_magic_cmd='win32_libid'
4170 darwin* | rhapsody*)
4171 # this will be overwritten by pass_all, but leave it in just in case
4172 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4173 lt_cv_file_magic_cmd='/usr/bin/file -L'
4175 rhapsody* | darwin1.[012])
4176 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4179 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4182 lt_cv_deplibs_check_method=pass_all
4185 freebsd* | kfreebsd*-gnu)
4186 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4189 # Not sure whether the presence of OpenBSD here was a mistake.
4190 # Let's accept both of them until this is cleared up.
4191 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4192 lt_cv_file_magic_cmd=/usr/bin/file
4193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4197 lt_cv_deplibs_check_method=pass_all
4202 lt_cv_deplibs_check_method=pass_all
4205 hpux10.20* | hpux11*)
4206 lt_cv_file_magic_cmd=/usr/bin/file
4209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4210 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4213 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]'
4214 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4218 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4223 irix5* | irix6* | nonstopux*)
4225 irix5* | nonstopux*)
4226 # this will be overridden with pass_all, but let us keep it just in case
4227 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
4231 *-32|*"-32 ") libmagic=32-bit;;
4232 *-n32|*"-n32 ") libmagic=N32;;
4233 *-64|*"-64 ") libmagic=64-bit;;
4234 *) libmagic=never-match;;
4236 # this will be overridden with pass_all, but let us keep it just in case
4237 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
4240 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4241 lt_cv_deplibs_check_method=pass_all
4244 # This must be Linux ELF.
4247 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4248 lt_cv_deplibs_check_method=pass_all ;;
4250 # glibc up to 2.1.1 does not perform some relocations on ARM
4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4253 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4257 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4266 lt_cv_file_magic_cmd=/usr/bin/file
4267 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4271 lt_cv_deplibs_check_method=unknown
4275 lt_cv_file_magic_cmd=/usr/bin/file
4276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4280 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4284 osf3* | osf4* | osf5*)
4285 # this will be overridden with pass_all, but let us keep it just in case
4286 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4287 lt_cv_file_magic_test_file=/shlib/libc.so
4288 lt_cv_deplibs_check_method=pass_all
4292 lt_cv_deplibs_check_method=pass_all
4296 lt_cv_deplibs_check_method=pass_all
4297 lt_cv_file_magic_test_file=/lib/libc.so
4300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4301 case $host_vendor in
4303 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]'
4304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4307 lt_cv_deplibs_check_method=pass_all
4310 lt_cv_file_magic_cmd='/bin/file'
4311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4314 lt_cv_file_magic_cmd='/bin/file'
4315 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4316 lt_cv_file_magic_test_file=/lib/libc.so
4319 lt_cv_deplibs_check_method=pass_all
4324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4325 lt_cv_deplibs_check_method=pass_all
4330 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
4331 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4332 file_magic_cmd=$lt_cv_file_magic_cmd
4333 deplibs_check_method=$lt_cv_deplibs_check_method
4334 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4339 # If no C compiler was specified, use CC.
4342 # Allow CC to be a program name with arguments.
4346 # Check whether --enable-libtool-lock was given.
4347 if test "${enable_libtool_lock+set}" = set; then
4348 enableval=$enable_libtool_lock;
4351 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
4353 # Some flags need to be propagated to the compiler or linker for good
4357 # Find out which ABI we are using.
4358 echo 'int i;' > conftest.$ac_ext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4363 (exit $ac_status); }; then
4364 case `/usr/bin/file conftest.$ac_objext` in
4376 # Find out which ABI we are using.
4377 echo '#line 4377 "configure
"' > conftest.$ac_ext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4382 (exit $ac_status); }; then
4383 if test "$lt_cv_prog_gnu_ld" = yes; then
4384 case `/usr/bin/file conftest.$ac_objext` in
4386 LD="${LD-ld} -melf32bsmip"
4389 LD="${LD-ld} -melf32bmipn32"
4392 LD="${LD-ld} -melf64bmip"
4396 case `/usr/bin/file conftest.$ac_objext` in
4412 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4413 # Find out which ABI we are using.
4414 echo 'int i;' > conftest.$ac_ext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4419 (exit $ac_status); }; then
4420 case "`/usr/bin/file conftest.o`" in
4424 LD="${LD-ld} -m elf_i386
"
4426 ppc64-*linux*|powerpc64-*linux*)
4427 LD="${LD-ld} -m elf32ppclinux
"
4430 LD="${LD-ld} -m elf_s390
"
4433 LD="${LD-ld} -m elf32_sparc
"
4440 LD="${LD-ld} -m elf_x86_64
"
4442 ppc*-*linux*|powerpc*-*linux*)
4443 LD="${LD-ld} -m elf64ppc
"
4446 LD="${LD-ld} -m elf64_s390
"
4449 LD="${LD-ld} -m elf64_sparc
"
4459 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4460 SAVE_CFLAGS="$CFLAGS"
4461 CFLAGS="$CFLAGS -belf"
4462 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
4463 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
4464 if test "${lt_cv_cc_needs_belf+set}" = set; then
4465 echo $ECHO_N "(cached
) $ECHO_C" >&6
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (ac_try="$ac_link"
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_link") 2>conftest.er1
4497 grep -v '^ *+' conftest.er1 >conftest.err
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4501 (exit $ac_status); } && {
4502 test -z "$ac_c_werror_flag" ||
4503 test ! -s conftest.err
4504 } && test -s conftest$ac_exeext &&
4505 $as_test_x conftest$ac_exeext; then
4506 lt_cv_cc_needs_belf=yes
4508 echo "$as_me: failed program was
:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 lt_cv_cc_needs_belf=no
4514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4515 conftest$ac_exeext conftest.$ac_ext
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
4524 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4525 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4526 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4527 CFLAGS="$SAVE_CFLAGS"
4533 need_locks="$enable_libtool_lock"
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4542 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4543 # On Suns, sometimes $CPP names a directory.
4544 if test -n "$CPP" && test -d "$CPP"; then
4547 if test -z "$CPP"; then
4548 if test "${ac_cv_prog_CPP+set}" = set; then
4549 echo $ECHO_N "(cached
) $ECHO_C" >&6
4551 # Double quotes because CPP needs to be expanded
4552 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4555 for ac_c_preproc_warn_flag in '' yes
4557 # Use a header file that comes with gcc, so configuring glibc
4558 # with a fresh cross-compiler works.
4559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560 # <limits.h> exists even on freestanding compilers.
4561 # On the NeXT, cc -E runs the code through the compiler's parser,
4562 # not just through cpp. "Syntax error
" is here to catch this case.
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4570 # include <limits.h>
4572 # include <assert.h>
4576 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4588 (exit $ac_status); } >/dev/null && {
4589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4590 test ! -s conftest.err
4594 echo "$as_me: failed program was
:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 # Broken: fails on valid input.
4601 rm -f conftest.err conftest.$ac_ext
4603 # OK, works on sane cases. Now check whether nonexistent headers
4604 # can be detected and how.
4605 cat >conftest.$ac_ext <<_ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 #include <ac_nonexistent.h>
4613 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4621 grep -v '^ *+' conftest.er1 >conftest.err
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4625 (exit $ac_status); } >/dev/null && {
4626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4629 # Broken: success on invalid input.
4632 echo "$as_me: failed program was
:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 # Passes both tests.
4640 rm -f conftest.err conftest.$ac_ext
4643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4644 rm -f conftest.err conftest.$ac_ext
4645 if $ac_preproc_ok; then
4657 { echo "$as_me:$LINENO: result
: $CPP" >&5
4658 echo "${ECHO_T}$CPP" >&6; }
4660 for ac_c_preproc_warn_flag in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error
" is here to catch this case.
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 # include <limits.h>
4677 # include <assert.h>
4681 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4693 (exit $ac_status); } >/dev/null && {
4694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4699 echo "$as_me: failed program was
:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 # Broken: fails on valid input.
4706 rm -f conftest.err conftest.$ac_ext
4708 # OK, works on sane cases. Now check whether nonexistent headers
4709 # can be detected and how.
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4718 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4730 (exit $ac_status); } >/dev/null && {
4731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4734 # Broken: success on invalid input.
4737 echo "$as_me: failed program was
:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 # Passes both tests.
4745 rm -f conftest.err conftest.$ac_ext
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then
4753 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4754 See \
`config.log' for more details." >&5
4755 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4756 See \`config.log
' for more details." >&2;}
4757 { (exit 1); exit 1; }; }
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4763 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4768 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4769 if test "${ac_cv_header_stdc+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^
*+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_header_stdc=yes
4810 echo "$as_me: failed program was:" >&5
4811 sed 's
/^
/|
/' conftest.$ac_ext >&5
4813 ac_cv_header_stdc=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 if test $ac_cv_header_stdc = yes; then
4819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830 $EGREP "memchr" >/dev/null 2>&1; then
4833 ac_cv_header_stdc=no
4839 if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4851 $EGREP "free" >/dev/null 2>&1; then
4854 ac_cv_header_stdc=no
4860 if test $ac_cv_header_stdc = yes; then
4861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4862 if test "$cross_compiling" = yes; then
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4873 #if ((' ' & 0x0FF) == 0x020)
4874 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
4875 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
4877 # define ISLOWER(c) \
4878 (('a
' <= (c) && (c) <= 'i
') \
4879 || ('j
' <= (c) && (c) <= 'r
') \
4880 || ('s
' <= (c) && (c) <= 'z
'))
4881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4889 for (i = 0; i < 256; i++)
4890 if (XOR (islower (i), ISLOWER (i))
4891 || toupper (i) != TOUPPER (i))
4896 rm -f conftest$ac_exeext
4897 if { (ac_try="$ac_link"
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_link") 2>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
4907 { (case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_try") 2>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4918 echo "$as_me: program exited with status $ac_status" >&5
4919 echo "$as_me: failed program was:" >&5
4920 sed 's
/^
/|
/' conftest.$ac_ext >&5
4923 ac_cv_header_stdc=no
4925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4931 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4932 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4933 if test $ac_cv_header_stdc = yes; then
4935 cat >>confdefs.h <<\_ACEOF
4936 #define STDC_HEADERS 1
4941 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4951 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4952 inttypes.h stdint.h unistd.h
4954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 cat >conftest.$ac_ext <<_ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 $ac_includes_default
4968 #include <$ac_header>
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4979 grep -v '^
*+' conftest.er1 >conftest.err
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4987 eval "$as_ac_Header=yes"
4989 echo "$as_me: failed program was:" >&5
4990 sed 's
/^
/|
/' conftest.$ac_ext >&5
4992 eval "$as_ac_Header=no"
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_res=`eval echo '${'$as_ac_Header'}'`
4998 { echo "$as_me:$LINENO: result: $ac_res" >&5
4999 echo "${ECHO_T}$ac_res" >&6; }
5000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5001 cat >>confdefs.h <<_ACEOF
5002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5011 for ac_header in dlfcn.h
5013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 ac_res=`eval echo '${'$as_ac_Header'}'`
5021 { echo "$as_me:$LINENO: result: $ac_res" >&5
5022 echo "${ECHO_T}$ac_res" >&6; }
5024 # Is the header compilable?
5025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5027 cat >conftest.$ac_ext <<_ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 $ac_includes_default
5034 #include <$ac_header>
5036 rm -f conftest.$ac_objext
5037 if { (ac_try="$ac_compile"
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_compile") 2>conftest.er1
5045 grep -v '^
*+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && {
5050 test -z "$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5052 } && test -s conftest.$ac_objext; then
5053 ac_header_compiler=yes
5055 echo "$as_me: failed program was:" >&5
5056 sed 's
/^
/|
/' conftest.$ac_ext >&5
5058 ac_header_compiler=no
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5063 echo "${ECHO_T}$ac_header_compiler" >&6; }
5065 # Is the header present?
5066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <$ac_header>
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 grep -v '^
*+' conftest.er1 >conftest.err
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null && {
5089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5090 test ! -s conftest.err
5092 ac_header_preproc=yes
5094 echo "$as_me: failed program was:" >&5
5095 sed 's
/^
/|
/' conftest.$ac_ext >&5
5097 ac_header_preproc=no
5100 rm -f conftest.err conftest.$ac_ext
5101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5102 echo "${ECHO_T}$ac_header_preproc" >&6; }
5104 # So? What about this header?
5105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5110 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5111 ac_header_preproc=yes
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5123 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 eval "$as_ac_Header=\$ac_header_preproc"
5136 ac_res=`eval echo '${'$as_ac_Header'}'`
5137 { echo "$as_me:$LINENO: result: $ac_res" >&5
5138 echo "${ECHO_T}$ac_res" >&6; }
5141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5142 cat >>confdefs.h <<_ACEOF
5143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151 ac_cpp='$CXXCPP $CPPFLAGS'
5152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5153 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5155 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5156 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5157 if test -z "$CXXCPP"; then
5158 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 # Double quotes because CXXCPP needs to be expanded
5162 for CXXCPP in "$CXX -E" "/lib/cpp"
5165 for ac_cxx_preproc_warn_flag in '' yes
5167 # Use a header file that comes with gcc, so configuring glibc
5168 # with a fresh cross-compiler works.
5169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170 # <limits.h> exists even on freestanding compilers.
5171 # On the NeXT, cc -E runs the code through the compiler's parser
,
5172 # not just through cpp. "Syntax error" is here to catch this case.
5173 cat >conftest.
$ac_ext <<_ACEOF
5176 cat confdefs.h
>>conftest.
$ac_ext
5177 cat >>conftest.
$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5180 # include <limits.h>
5182 # include <assert.h>
5186 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5200 test ! -s conftest.err
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 # Broken: fails on valid input.
5211 rm -f conftest.err conftest.$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5226 *) ac_try_echo
=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231 grep -v '^ *+' conftest.er1
>conftest.err
5233 cat conftest.err
>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } >/dev
/null
&& {
5236 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5237 test ! -s conftest.err
5239 # Broken: success on invalid input.
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.
$ac_ext >&5
5245 # Passes both tests.
5250 rm -f conftest.err conftest.
$ac_ext
5253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5254 rm -f conftest.err conftest.
$ac_ext
5255 if $ac_preproc_ok; then
5260 ac_cv_prog_CXXCPP
=$CXXCPP
5263 CXXCPP
=$ac_cv_prog_CXXCPP
5265 ac_cv_prog_CXXCPP
=$CXXCPP
5267 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5268 echo "${ECHO_T}$CXXCPP" >&6; }
5270 for ac_cxx_preproc_warn_flag
in '' yes
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat >conftest.
$ac_ext <<_ACEOF
5281 cat confdefs.h
>>conftest.
$ac_ext
5282 cat >>conftest.
$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5285 # include <limits.h>
5287 # include <assert.h>
5291 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } >/dev/null && {
5304 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5305 test ! -s conftest.err
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 # Broken: fails on valid input.
5316 rm -f conftest.err conftest.$ac_ext
5318 # OK, works on sane cases. Now check whether nonexistent headers
5319 # can be detected and how.
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <ac_nonexistent.h>
5328 if { (ac_try="$ac_cpp conftest.$ac_ext"
5330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5331 *) ac_try_echo
=$ac_try;;
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5336 grep -v '^ *+' conftest.er1
>conftest.err
5338 cat conftest.err
>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev
/null
&& {
5341 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5342 test ! -s conftest.err
5344 # Broken: success on invalid input.
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.
$ac_ext >&5
5350 # Passes both tests.
5355 rm -f conftest.err conftest.
$ac_ext
5358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5359 rm -f conftest.err conftest.
$ac_ext
5360 if $ac_preproc_ok; then
5363 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5364 See \`config.log' for more details." >&5
5365 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5366 See \`config.log' for more details." >&2;}
5367 { (exit 1); exit 1; }; }
5371 ac_cpp
='$CXXCPP $CPPFLAGS'
5372 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5378 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5379 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5381 if test -n "$ac_tool_prefix"; then
5382 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5385 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5388 if test "${ac_cv_prog_F77+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 if test -n "$F77"; then
5392 ac_cv_prog_F77
="$F77" # Let the user override the test.
5394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir
=.
5399 for ac_exec_ext
in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 if test -n "$F77"; then
5413 { echo "$as_me:$LINENO: result: $F77" >&5
5414 echo "${ECHO_T}$F77" >&6; }
5416 { echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6; }
5421 test -n "$F77" && break
5424 if test -z "$F77"; then
5426 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5428 # Extract the first word of "$ac_prog", so it can be a program name with args.
5429 set dummy
$ac_prog; ac_word
=$2
5430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5432 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 if test -n "$ac_ct_F77"; then
5436 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir
=.
5443 for ac_exec_ext
in '' $ac_executable_extensions; do
5444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445 ac_cv_prog_ac_ct_F77
="$ac_prog"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5456 if test -n "$ac_ct_F77"; then
5457 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5458 echo "${ECHO_T}$ac_ct_F77" >&6; }
5460 { echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6; }
5465 test -n "$ac_ct_F77" && break
5468 if test "x$ac_ct_F77" = x
; then
5471 case $cross_compiling:$ac_tool_warned in
5473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5474 whose name does not start with the host triplet. If you think this
5475 configuration is useful to you, please write to autoconf@gnu.org." >&5
5476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5477 whose name does not start with the host triplet. If you think this
5478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5479 ac_tool_warned
=yes ;;
5486 # Provide some information about the compiler.
5487 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5488 ac_compiler
=`set X $ac_compile; echo $2`
5489 { (ac_try
="$ac_compiler --version >&5"
5491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compiler --version >&5") 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }
5499 { (ac_try="$ac_compiler -v >&5"
5501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5502 *) ac_try_echo
=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compiler -v >&5") 2>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }
5509 { (ac_try
="$ac_compiler -V >&5"
5511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_compiler -V >&5") 2>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }
5521 # If we don't use `.F
' as extension, the preprocessor is not run on the
5522 # input file. (Note that this only needs to work for GNU compilers.)
5525 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5526 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5527 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 cat >conftest.$ac_ext <<_ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5547 grep -v '^
*+' conftest.er1 >conftest.err
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_f77_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5557 echo "$as_me: failed program was:" >&5
5558 sed 's
/^
/|
/' conftest.$ac_ext >&5
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5567 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5568 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5570 ac_test_FFLAGS=${FFLAGS+set}
5571 ac_save_FFLAGS=$FFLAGS
5573 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5574 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5575 if test "${ac_cv_prog_f77_g+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 cat >conftest.$ac_ext <<_ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5593 grep -v '^
*+' conftest.er1 >conftest.err
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_f77_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 ac_cv_prog_f77_g=yes
5603 echo "$as_me: failed program was:" >&5
5604 sed 's
/^
/|
/' conftest.$ac_ext >&5
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5613 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5614 if test "$ac_test_FFLAGS" = set; then
5615 FFLAGS=$ac_save_FFLAGS
5616 elif test $ac_cv_prog_f77_g = yes; then
5617 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5623 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5630 G77=`test $ac_compiler_gnu = yes && echo yes`
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5634 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
5641 # find the maximum length of command line arguments
5642 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5643 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5644 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 # On DJGPP, this test can blow up pretty badly due to problems in libc
5653 # (any single argument exceeding 2000 bytes causes a buffer overrun
5654 # during glob expansion). Even if it were fixed, the result of this
5655 # check would be larger than it should be.
5656 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5660 # Under GNU Hurd, this test is not required because there is
5661 # no limit to the length of command line arguments.
5662 # Libtool will interpret -1 as no limit whatsoever
5663 lt_cv_sys_max_cmd_len
=-1;
5667 # On Win9x/ME, this test blows up -- it succeeds, but takes
5668 # about 5 minutes as the teststring grows exponentially.
5669 # Worse, since 9x/ME are not pre-emptively multitasking,
5670 # you end up with a "frozen" computer, even though with patience
5671 # the test eventually succeeds (with a max line length of 256k).
5672 # Instead, let's just punt: use the minimum linelength reported by
5673 # all of the supported platforms: 8192 (on NT/2K/XP).
5674 lt_cv_sys_max_cmd_len
=8192;
5677 amigaos
* | morphos
*)
5678 # On AmigaOS with pdksh, this test takes hours, literally.
5679 # So we just punt and use a minimum line length of 8192.
5680 lt_cv_sys_max_cmd_len
=8192;
5684 # If test is not a shell built-in, we'll probably end up computing a
5685 # maximum length that is only half of the actual maximum length, but
5687 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5688 = "XX$testring") >/dev
/null
2>&1 &&
5689 new_result
=`expr "X$testring" : ".*" 2>&1` &&
5690 lt_cv_sys_max_cmd_len
=$new_result &&
5691 test $i != 17 # 1/2 MB should be enough
5694 testring
=$testring$testring
5697 # Add a significant safety factor because C++ compilers can tack on massive
5698 # amounts of additional arguments before passing them to the linker.
5699 # It appears as though 1/2 is a usable value.
5700 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5706 if test -n $lt_cv_sys_max_cmd_len ; then
5707 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5708 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5710 { echo "$as_me:$LINENO: result: none" >&5
5711 echo "${ECHO_T}none" >&6; }
5717 # Check for command to grab the raw symbol name followed by C symbol from nm.
5718 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5719 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5720 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 # These are sane defaults that work on at least a few old systems.
5725 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5727 # Character class describing NM global symbol codes.
5728 symcode
='[BCDEGRST]'
5730 # Regexp to match symbols that can be accessed directly from C.
5731 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5733 # Transform the above into a raw symbol and a C symbol.
5734 symxfrm
='\1 \2\3 \3'
5736 # Transform an extracted symbol line into a proper C declaration
5737 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5739 # Transform an extracted symbol line into symbol name and symbol address
5740 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'"
5742 # Define system-specific variables.
5747 cygwin
* | mingw
* | pw32
*)
5748 symcode
='[ABCDGISTW]'
5750 hpux
*) # Its linker distinguishes data from code symbols
5751 if test "$host_cpu" = ia64
; then
5752 symcode
='[ABCDEGRST]'
5754 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5755 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'"
5758 symcode
='[BCDEGRST]'
5761 symcode
='[BCDEGQRST]'
5771 # Handle CRLF in mingw tool chain
5775 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5779 # If we're using GNU nm, then use its standard symbol codes.
5780 case `$NM -V 2>&1` in
5781 *GNU
* |
*'with BFD'*)
5782 symcode
='[ABCDGIRSTW]' ;;
5785 # Try without a prefix undercore, then with it.
5786 for ac_symprfx
in "" "_"; do
5788 # Write the raw and C identifiers.
5789 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5791 # Check to see that the pipe works correctly.
5795 cat > conftest.
$ac_ext <<EOF
5800 void nm_test_func(){}
5804 int main(){nm_test_var='a';nm_test_func();return(0);}
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; then
5812 # Now try to grab the symbols.
5814 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5815 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } && test -s "$nlist"; then
5819 # Try sorting and uniquifying the output.
5820 if sort "$nlist" |
uniq > "$nlist"T
; then
5821 mv -f "$nlist"T
"$nlist"
5826 # Make sure that we snagged all the symbols we need.
5827 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5828 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5829 cat <<EOF > conftest.$ac_ext
5835 # Now generate the symbol file.
5836 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5838 cat <<EOF >> conftest.$ac_ext
5839 #if defined (__STDC__) && __STDC__
5840 # define lt_ptr_t void *
5842 # define lt_ptr_t char *
5846 /* The mapping between symbol names and symbols. */
5851 lt_preloaded_symbols[] =
5854 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5855 cat <<\EOF
>> conftest.
$ac_ext
5863 # Now try linking the two files.
5864 mv conftest.
$ac_objext conftstm.
$ac_objext
5865 lt_save_LIBS
="$LIBS"
5866 lt_save_CFLAGS
="$CFLAGS"
5867 LIBS
="conftstm.$ac_objext"
5868 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870 (eval $ac_link) 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5876 LIBS
="$lt_save_LIBS"
5877 CFLAGS
="$lt_save_CFLAGS"
5879 echo "cannot find nm_test_func in $nlist" >&5
5882 echo "cannot find nm_test_var in $nlist" >&5
5885 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5888 echo "$progname: failed program was:" >&5
5889 cat conftest.
$ac_ext >&5
5891 rm -f conftest
* conftst
*
5893 # Do not use the global_symbol_pipe unless it works.
5894 if test "$pipe_works" = yes; then
5897 lt_cv_sys_global_symbol_pipe
=
5903 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5904 lt_cv_sys_global_symbol_to_cdecl
=
5906 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5907 { echo "$as_me:$LINENO: result: failed" >&5
5908 echo "${ECHO_T}failed" >&6; }
5910 { echo "$as_me:$LINENO: result: ok" >&5
5911 echo "${ECHO_T}ok" >&6; }
5914 { echo "$as_me:$LINENO: checking for objdir" >&5
5915 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5916 if test "${lt_cv_objdir+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 rm -f .libs
2>/dev
/null
5920 mkdir .libs
2>/dev
/null
5921 if test -d .libs
; then
5924 # MS-DOS does not allow filenames that begin with a dot.
5927 rmdir .libs
2>/dev
/null
5929 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5930 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5931 objdir
=$lt_cv_objdir
5939 # AIX sometimes has problems with the GCC collect2 program. For some
5940 # reason, if we set the COLLECT_NAMES environment variable, the problems
5941 # vanish in a puff of smoke.
5942 if test "X${COLLECT_NAMES+set}" != Xset
; then
5944 export COLLECT_NAMES
5949 # Sed substitution that helps us do robust quoting. It backslashifies
5950 # metacharacters that are still active within double-quoted strings.
5951 Xsed
='sed -e s/^X//'
5952 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5954 # Same as above, but do not quote variable references.
5955 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5957 # Sed substitution to delay expansion of an escaped shell variable in a
5958 # double_quote_subst'ed string.
5959 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5961 # Sed substitution to avoid accidental globbing in evaled expressions
5962 no_glob_subst
='s/\*/\\\*/g'
5968 default_ofile
=libtool
5969 can_build_shared
=yes
5971 # All known linkers require a `.a' archive for static linking (except M$VC,
5972 # which needs '.lib').
5974 ltmain
="$ac_aux_dir/ltmain.sh"
5975 ofile
="$default_ofile"
5976 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5978 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5980 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_prog_AR+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 if test -n "$AR"; then
5987 ac_cv_prog_AR
="$AR" # Let the user override the test.
5989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir
=.
5994 for ac_exec_ext
in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 if test -n "$AR"; then
6008 { echo "$as_me:$LINENO: result: $AR" >&5
6009 echo "${ECHO_T}$AR" >&6; }
6011 { echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6; }
6017 if test -z "$ac_cv_prog_AR"; then
6019 # Extract the first word of "ar", so it can be a program name with args.
6020 set dummy
ar; ac_word
=$2
6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 if test -n "$ac_ct_AR"; then
6027 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6033 test -z "$as_dir" && as_dir
=.
6034 for ac_exec_ext
in '' $ac_executable_extensions; do
6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6036 ac_cv_prog_ac_ct_AR
="ar"
6037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6047 if test -n "$ac_ct_AR"; then
6048 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6049 echo "${ECHO_T}$ac_ct_AR" >&6; }
6051 { echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6; }
6055 if test "x$ac_ct_AR" = x
; then
6058 case $cross_compiling:$ac_tool_warned in
6060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6061 whose name does not start with the host triplet. If you think this
6062 configuration is useful to you, please write to autoconf@gnu.org." >&5
6063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6064 whose name does not start with the host triplet. If you think this
6065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6066 ac_tool_warned
=yes ;;
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_RANLIB+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir
=.
6090 for ac_exec_ext
in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 RANLIB
=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6105 echo "${ECHO_T}$RANLIB" >&6; }
6107 { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6113 if test -z "$ac_cv_prog_RANLIB"; then
6114 ac_ct_RANLIB
=$RANLIB
6115 # Extract the first word of "ranlib", so it can be a program name with args.
6116 set dummy ranlib
; ac_word
=$2
6117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 if test -n "$ac_ct_RANLIB"; then
6123 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir
=.
6130 for ac_exec_ext
in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6145 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6151 if test "x$ac_ct_RANLIB" = x
; then
6154 case $cross_compiling:$ac_tool_warned in
6156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6157 whose name does not start with the host triplet. If you think this
6158 configuration is useful to you, please write to autoconf@gnu.org." >&5
6159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6160 whose name does not start with the host triplet. If you think this
6161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6162 ac_tool_warned
=yes ;;
6164 RANLIB
=$ac_ct_RANLIB
6167 RANLIB
="$ac_cv_prog_RANLIB"
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6172 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_STRIP+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 if test -n "$STRIP"; then
6179 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir
=.
6186 for ac_exec_ext
in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 STRIP
=$ac_cv_prog_STRIP
6199 if test -n "$STRIP"; then
6200 { echo "$as_me:$LINENO: result: $STRIP" >&5
6201 echo "${ECHO_T}$STRIP" >&6; }
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6209 if test -z "$ac_cv_prog_STRIP"; then
6211 # Extract the first word of "strip", so it can be a program name with args.
6212 set dummy strip
; ac_word
=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 if test -n "$ac_ct_STRIP"; then
6219 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir
=.
6226 for ac_exec_ext
in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_STRIP
="strip"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6239 if test -n "$ac_ct_STRIP"; then
6240 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6241 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6247 if test "x$ac_ct_STRIP" = x
; then
6250 case $cross_compiling:$ac_tool_warned in
6252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet. If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&5
6255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet. If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6258 ac_tool_warned
=yes ;;
6263 STRIP
="$ac_cv_prog_STRIP"
6268 old_CFLAGS
="$CFLAGS"
6270 # Set sane defaults for various variables
6271 test -z "$AR" && AR
=ar
6272 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6273 test -z "$AS" && AS
=as
6274 test -z "$CC" && CC
=cc
6275 test -z "$LTCC" && LTCC
=$CC
6276 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6277 test -z "$LD" && LD
=ld
6278 test -z "$LN_S" && LN_S
="ln -s"
6279 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6280 test -z "$NM" && NM
=nm
6281 test -z "$SED" && SED
=sed
6282 test -z "$OBJDUMP" && OBJDUMP
=objdump
6283 test -z "$RANLIB" && RANLIB
=:
6284 test -z "$STRIP" && STRIP
=:
6285 test -z "$ac_objext" && ac_objext
=o
6287 # Determine commands to create old-style static archives.
6288 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6289 old_postinstall_cmds
='chmod 644 $oldlib'
6290 old_postuninstall_cmds
=
6292 if test -n "$RANLIB"; then
6295 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6298 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6301 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6304 # Only perform the check for file, if the check method requires it
6305 case $deplibs_check_method in
6307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6308 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6309 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6318 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6319 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6320 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6321 for ac_dir
in $ac_dummy; do
6323 test -z "$ac_dir" && ac_dir
=.
6324 if test -f $ac_dir/${ac_tool_prefix}file; then
6325 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6326 if test -n "$file_magic_test_file"; then
6327 case $deplibs_check_method in
6329 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6330 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6331 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6332 $EGREP "$file_magic_regex" > /dev
/null
; then
6337 *** Warning: the command libtool uses to detect shared libraries,
6338 *** $file_magic_cmd, produces output that libtool cannot recognize.
6339 *** The result is that libtool may fail to recognize shared libraries
6340 *** as such. This will affect the creation of libtool libraries that
6341 *** depend on shared libraries, but programs linked with such libtool
6342 *** libraries will work regardless of this problem. Nevertheless, you
6343 *** may want to report the problem to your system manager and/or to
6344 *** bug-libtool@gnu.org
6354 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6359 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6360 if test -n "$MAGIC_CMD"; then
6361 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6362 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6368 if test -z "$lt_cv_path_MAGIC_CMD"; then
6369 if test -n "$ac_tool_prefix"; then
6370 { echo "$as_me:$LINENO: checking for file" >&5
6371 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6380 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6381 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6382 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6383 for ac_dir
in $ac_dummy; do
6385 test -z "$ac_dir" && ac_dir
=.
6386 if test -f $ac_dir/file; then
6387 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6388 if test -n "$file_magic_test_file"; then
6389 case $deplibs_check_method in
6391 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6392 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6393 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6394 $EGREP "$file_magic_regex" > /dev
/null
; then
6399 *** Warning: the command libtool uses to detect shared libraries,
6400 *** $file_magic_cmd, produces output that libtool cannot recognize.
6401 *** The result is that libtool may fail to recognize shared libraries
6402 *** as such. This will affect the creation of libtool libraries that
6403 *** depend on shared libraries, but programs linked with such libtool
6404 *** libraries will work regardless of this problem. Nevertheless, you
6405 *** may want to report the problem to your system manager and/or to
6406 *** bug-libtool@gnu.org
6416 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6421 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6422 if test -n "$MAGIC_CMD"; then
6423 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6424 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then
6444 enableval
=$enable_libtool_lock;
6447 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6450 # Check whether --with-pic was given.
6451 if test "${with_pic+set}" = set; then
6452 withval
=$with_pic; pic_mode
="$withval"
6457 test -z "$pic_mode" && pic_mode
=default
6459 # Use C for the default configuration in the libtool script
6463 ac_cpp
='$CPP $CPPFLAGS'
6464 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6469 # Source file extension for C test sources.
6472 # Object file extension for compiled C test sources.
6476 # Code to be used in simple compile tests
6477 lt_simple_compile_test_code
="int some_variable = 0;\n"
6479 # Code to be used in simple link tests
6480 lt_simple_link_test_code
='int main(){return(0);}\n'
6483 # If no C compiler was specified, use CC.
6486 # Allow CC to be a program name with arguments.
6491 # Check for any special shared library compilation flags.
6494 if test "$GCC" = no
; then
6497 lt_prog_cc_shlib
='-belf'
6501 if test -n "$lt_prog_cc_shlib"; then
6502 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6503 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6504 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6506 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6507 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6508 lt_cv_prog_cc_can_build_shared
=no
6514 # Check to make sure the static flag actually works.
6516 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6517 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6518 if test "${lt_prog_compiler_static_works+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 lt_prog_compiler_static_works
=no
6522 save_LDFLAGS
="$LDFLAGS"
6523 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6524 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6525 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6526 # The compiler can only warn and ignore the option if not recognized
6527 # So say no if there are warnings
6528 if test -s conftest.err
; then
6529 # Append any errors to the config.log.
6530 cat conftest.err
1>&5
6532 lt_prog_compiler_static_works
=yes
6536 LDFLAGS
="$save_LDFLAGS"
6539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6540 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6542 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6545 lt_prog_compiler_static
=
6551 ## There is no encapsulation within the following macros, do not change
6552 ## the running order or otherwise move them around unless you know exactly
6553 ## what you are doing...
6555 lt_prog_compiler_no_builtin_flag
=
6557 if test "$GCC" = yes; then
6558 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6561 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6562 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6563 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 lt_cv_prog_compiler_rtti_exceptions
=no
6567 ac_outfile
=conftest.
$ac_objext
6568 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6569 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6570 # Insert the option either (1) after the last *FLAGS variable, or
6571 # (2) before a word containing "conftest.", or (3) at the end.
6572 # Note that $ac_compile itself does not contain backslashes and begins
6573 # with a dollar sign (not a hyphen), so the echo should work correctly.
6574 # The option is referenced via a variable to avoid confusing sed.
6575 lt_compile
=`echo "$ac_compile" | $SED \
6576 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6578 -e 's:$: $lt_compiler_flag:'`
6579 (eval echo "\"\$as_me:6579: $lt_compile\"" >&5)
6580 (eval "$lt_compile" 2>conftest.err
)
6582 cat conftest.err
>&5
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 if (exit $ac_status) && test -s "$ac_outfile"; then
6585 # The compiler can only warn and ignore the option if not recognized
6586 # So say no if there are warnings
6587 if test ! -s conftest.err
; then
6588 lt_cv_prog_compiler_rtti_exceptions
=yes
6594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6595 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6597 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6598 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6605 lt_prog_compiler_wl
=
6606 lt_prog_compiler_pic
=
6607 lt_prog_compiler_static
=
6609 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6610 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6612 if test "$GCC" = yes; then
6613 lt_prog_compiler_wl
='-Wl,'
6614 lt_prog_compiler_static
='-static'
6618 # All AIX code is PIC.
6619 if test "$host_cpu" = ia64
; then
6620 # AIX 5 now supports IA64 processor
6621 lt_prog_compiler_static
='-Bstatic'
6626 # FIXME: we need at least 68020 code to build shared libraries, but
6627 # adding the `-m68020' flag to GCC prevents building anything better,
6629 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6632 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6633 # PIC is the default for these OSes.
6636 mingw
* | pw32
* | os2
*)
6637 # This hack is so that the source file can tell whether it is being
6638 # built for inclusion in a dll (and should export symbols for example).
6639 lt_prog_compiler_pic
='-DDLL_EXPORT'
6642 darwin
* | rhapsody
*)
6643 # PIC is the default on this platform
6644 # Common symbols not allowed in MH_DYLIB files
6645 lt_prog_compiler_pic
='-fno-common'
6649 # Just because we use GCC doesn't mean we suddenly get shared libraries
6650 # on systems that don't support them.
6651 lt_prog_compiler_can_build_shared
=no
6656 if test -d /usr
/nec
; then
6657 lt_prog_compiler_pic
=-Kconform_pic
6662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6669 lt_prog_compiler_pic
='-fPIC'
6675 lt_prog_compiler_pic
='-fPIC'
6679 # PORTME Check for flag to pass linker flags through the system compiler.
6682 lt_prog_compiler_wl
='-Wl,'
6683 if test "$host_cpu" = ia64
; then
6684 # AIX 5 now supports IA64 processor
6685 lt_prog_compiler_static
='-Bstatic'
6687 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6691 mingw
* | pw32
* | os2
*)
6692 # This hack is so that the source file can tell whether it is being
6693 # built for inclusion in a dll (and should export symbols for example).
6694 lt_prog_compiler_pic
='-DDLL_EXPORT'
6697 hpux9
* | hpux10
* | hpux11
*)
6698 lt_prog_compiler_wl
='-Wl,'
6699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6706 lt_prog_compiler_pic
='+Z'
6709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6710 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6713 irix5
* | irix6
* | nonstopux
*)
6714 lt_prog_compiler_wl
='-Wl,'
6715 # PIC (with -KPIC) is the default.
6716 lt_prog_compiler_static
='-non_shared'
6720 lt_prog_compiler_pic
='-KPIC'
6721 lt_prog_compiler_static
='-Bstatic'
6727 lt_prog_compiler_wl
='-Wl,'
6728 lt_prog_compiler_pic
='-KPIC'
6729 lt_prog_compiler_static
='-static'
6732 lt_prog_compiler_wl
='-Wl,'
6733 # All Alpha code is PIC.
6734 lt_prog_compiler_static
='-non_shared'
6739 osf3
* | osf4
* | osf5
*)
6740 lt_prog_compiler_wl
='-Wl,'
6741 # All OSF/1 code is PIC.
6742 lt_prog_compiler_static
='-non_shared'
6746 lt_prog_compiler_pic
='-Kpic'
6747 lt_prog_compiler_static
='-dn'
6751 lt_prog_compiler_wl
='-Wl,'
6752 lt_prog_compiler_pic
='-KPIC'
6753 lt_prog_compiler_static
='-Bstatic'
6757 lt_prog_compiler_wl
='-Qoption ld '
6758 lt_prog_compiler_pic
='-PIC'
6759 lt_prog_compiler_static
='-Bstatic'
6762 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
6763 lt_prog_compiler_wl
='-Wl,'
6764 lt_prog_compiler_pic
='-KPIC'
6765 lt_prog_compiler_static
='-Bstatic'
6769 if test -d /usr
/nec
;then
6770 lt_prog_compiler_pic
='-Kconform_pic'
6771 lt_prog_compiler_static
='-Bstatic'
6776 lt_prog_compiler_pic
='-pic'
6777 lt_prog_compiler_static
='-Bstatic'
6781 lt_prog_compiler_can_build_shared
=no
6786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6787 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6790 # Check to make sure the PIC flag actually works.
6792 if test -n "$lt_prog_compiler_pic"; then
6794 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6796 if test "${lt_prog_compiler_pic_works+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 lt_prog_compiler_pic_works
=no
6800 ac_outfile
=conftest.
$ac_objext
6801 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6802 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6803 # Insert the option either (1) after the last *FLAGS variable, or
6804 # (2) before a word containing "conftest.", or (3) at the end.
6805 # Note that $ac_compile itself does not contain backslashes and begins
6806 # with a dollar sign (not a hyphen), so the echo should work correctly.
6807 # The option is referenced via a variable to avoid confusing sed.
6808 lt_compile
=`echo "$ac_compile" | $SED \
6809 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6811 -e 's:$: $lt_compiler_flag:'`
6812 (eval echo "\"\$as_me:6812: $lt_compile\"" >&5)
6813 (eval "$lt_compile" 2>conftest.err
)
6815 cat conftest.err
>&5
6816 echo "$as_me:6816: \$? = $ac_status" >&5
6817 if (exit $ac_status) && test -s "$ac_outfile"; then
6818 # The compiler can only warn and ignore the option if not recognized
6819 # So say no if there are warnings
6820 if test ! -s conftest.err
; then
6821 lt_prog_compiler_pic_works
=yes
6827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6828 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6830 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6831 case $lt_prog_compiler_pic in
6833 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6836 lt_prog_compiler_pic
=
6837 lt_prog_compiler_can_build_shared
=no
6842 # For platforms which do not support PIC, -DPIC is meaningless:
6844 lt_prog_compiler_pic
=
6847 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6851 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 lt_cv_prog_compiler_c_o
=no
6857 $rm -r conftest
2>/dev
/null
6861 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6863 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6864 # that will create temporary files in the current directory regardless of
6865 # the output directory. Thus, making CWD read-only will cause this test
6866 # to fail, enabling locking or at least warning the user not to do parallel
6870 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6871 # Insert the option either (1) after the last *FLAGS variable, or
6872 # (2) before a word containing "conftest.", or (3) at the end.
6873 # Note that $ac_compile itself does not contain backslashes and begins
6874 # with a dollar sign (not a hyphen), so the echo should work correctly.
6875 lt_compile
=`echo "$ac_compile" | $SED \
6876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6878 -e 's:$: $lt_compiler_flag:'`
6879 (eval echo "\"\$as_me:6879: $lt_compile\"" >&5)
6880 (eval "$lt_compile" 2>out
/conftest.err
)
6882 cat out
/conftest.err
>&5
6883 echo "$as_me:6883: \$? = $ac_status" >&5
6884 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6886 # The compiler can only warn and ignore the option if not recognized
6887 # So say no if there are warnings
6888 if test ! -s out
/conftest.err
; then
6889 lt_cv_prog_compiler_c_o
=yes
6894 # SGI C++ compiler will create directory out/ii_files/ for
6895 # template instantiation
6896 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
6897 $rm out
/* && rmdir out
6903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6907 hard_links
="nottested"
6908 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6909 # do not overwrite the value of need_locks provided by the user
6910 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6914 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6916 ln conftest.a conftest.b
2>&5 || hard_links
=no
6917 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6918 { echo "$as_me:$LINENO: result: $hard_links" >&5
6919 echo "${ECHO_T}$hard_links" >&6; }
6920 if test "$hard_links" = no
; then
6921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6929 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6933 allow_undefined_flag
=
6934 enable_shared_with_static_runtimes
=no
6936 archive_expsym_cmds
=
6937 old_archive_From_new_cmds
=
6938 old_archive_from_expsyms_cmds
=
6939 export_dynamic_flag_spec
=
6940 whole_archive_flag_spec
=
6941 thread_safe_flag_spec
=
6942 hardcode_libdir_flag_spec
=
6943 hardcode_libdir_flag_spec_ld
=
6944 hardcode_libdir_separator
=
6947 hardcode_shlibpath_var
=unsupported
6948 link_all_deplibs
=unknown
6949 hardcode_automatic
=no
6952 always_export_symbols
=no
6953 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6954 # include_expsyms should be a list of space-separated symbols to be *always*
6955 # included in the symbol list
6957 # exclude_expsyms can be an extended regexp of symbols to exclude
6958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6960 # as well as any symbol that contains `d'.
6961 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6963 # platforms (ab)use it in PIC code, but their linkers get confused if
6964 # the symbol is explicitly referenced. Since portable code cannot
6965 # rely on this symbol name, it's probably fine to never include it in
6966 # preloaded symbol tables.
6967 extract_expsyms_cmds
=
6970 cygwin
* | mingw
* | pw32
*)
6971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6972 # When not using gcc, we currently assume that we are using
6973 # Microsoft Visual C++.
6974 if test "$GCC" != yes; then
6984 if test "$with_gnu_ld" = yes; then
6985 # If archive_cmds runs LD, not CC, wlarc should be empty
6988 # See if GNU ld supports shared libraries.
6990 aix3
* | aix4
* | aix5
*)
6991 # On AIX/PPC, the GNU linker is very broken
6992 if test "$host_cpu" != ia64
; then
6996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6997 *** to be unable to reliably create shared libraries on AIX.
6998 *** Therefore, libtool is disabling shared libraries support. If you
6999 *** really care for shared libraries, you may want to modify your PATH
7000 *** so that a non-GNU linker is found, and then restart.
7007 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)'
7008 hardcode_libdir_flag_spec
='-L$libdir'
7009 hardcode_minus_L
=yes
7011 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7012 # that the semantics of dynamic libraries on AmigaOS, at least up
7013 # to version 4, is to share data among multiple programs linked
7014 # with the same dynamic library. Since this doesn't match the
7015 # behavior of shared libraries on other platforms, we can't use
7021 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7022 allow_undefined_flag
=unsupported
7023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7024 # support --undefined. This deserves some investigation. FIXME
7025 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7031 cygwin
* | mingw
* | pw32
*)
7032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7033 # as there is no search path for DLLs.
7034 hardcode_libdir_flag_spec
='-L$libdir'
7035 allow_undefined_flag
=unsupported
7036 always_export_symbols
=no
7037 enable_shared_with_static_runtimes
=yes
7038 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7040 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7041 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7042 # If the export-symbols file already is a .def file (1st line
7043 # is EXPORTS), use it as is; otherwise, prepend...
7044 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7045 cp $export_symbols $output_objdir/$soname.def;
7047 echo EXPORTS > $output_objdir/$soname.def;
7048 cat $export_symbols >> $output_objdir/$soname.def;
7050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7057 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7058 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7061 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7062 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7067 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7072 *** create shared libraries on Solaris systems. Therefore, libtool
7073 *** is disabling shared libraries support. We urge you to upgrade GNU
7074 *** binutils to release 2.9.1 or newer. Another option is to modify
7075 *** your PATH or compiler configuration so that the native linker is
7076 *** used, and then restart.
7079 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7080 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7081 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7088 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7091 hardcode_shlibpath_var
=no
7095 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
7096 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7097 archive_cmds
="$tmp_archive_cmds"
7098 supports_anon_versioning
=no
7099 case `$LD -v 2>/dev/null` in
7100 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7101 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7102 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7103 *\
2.11.
*) ;; # other 2.11 versions
7104 *) supports_anon_versioning
=yes ;;
7106 if test $supports_anon_versioning = yes; then
7107 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7109 $echo "local: *; };" >> $output_objdir/$libname.ver~
7110 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7112 archive_expsym_cmds
="$tmp_archive_cmds"
7120 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7121 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7122 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7129 if test "$ld_shlibs" = yes; then
7130 runpath_var
=LD_RUN_PATH
7131 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7132 export_dynamic_flag_spec
='${wl}--export-dynamic'
7133 # ancient GNU ld didn't support --whole-archive et. al.
7134 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7135 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7137 whole_archive_flag_spec
=
7141 # PORTME fill in a description of your system's linker (not GNU ld)
7144 allow_undefined_flag
=unsupported
7145 always_export_symbols
=yes
7146 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'
7147 # Note: this linker hardcodes the directories in LIBPATH if there
7148 # are no directories specified by -L.
7149 hardcode_minus_L
=yes
7150 if test "$GCC" = yes && test -z "$link_static_flag"; then
7151 # Neither direct hardcoding nor static linking is supported with a
7153 hardcode_direct
=unsupported
7158 if test "$host_cpu" = ia64
; then
7159 # On IA64, the linker does run time linking by default, so we don't
7160 # have to do anything special.
7161 aix_use_runtimelinking
=no
7162 exp_sym_flag
='-Bexport'
7165 # If we're using GNU nm, then we don't want the "-C" option.
7166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7167 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7168 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'
7170 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'
7172 aix_use_runtimelinking
=no
7174 # Test if we are trying to use run time linking or normal
7175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7176 # need to do runtime linking.
7177 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7178 for ld_flag
in $LDFLAGS; do
7179 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7180 aix_use_runtimelinking
=yes
7186 exp_sym_flag
='-bexport'
7187 no_entry_flag
='-bnoentry'
7190 # When large executables or shared objects are built, AIX ld can
7191 # have problems creating the table of contents. If linking a library
7192 # or program results in "error TOC overflow" add -mminimal-toc to
7193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7198 hardcode_libdir_separator
=':'
7199 link_all_deplibs
=yes
7201 if test "$GCC" = yes; then
7202 case $host_os in aix4.012|aix4.012.
*)
7203 # We only want to do this on AIX 4.2 and lower, the check
7204 # below for broken collect2 doesn't work under 4.3+
7205 collect2name
=`${CC} -print-prog-name=collect2`
7206 if test -f "$collect2name" && \
7207 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7209 # We have reworked collect2
7212 # We have old collect2
7213 hardcode_direct
=unsupported
7214 # It fails to find uninstalled libraries when the uninstalled
7215 # path is not listed in the libpath. Setting hardcode_minus_L
7216 # to unsupported forces relinking
7217 hardcode_minus_L
=yes
7218 hardcode_libdir_flag_spec
='-L$libdir'
7219 hardcode_libdir_separator
=
7222 shared_flag
='-shared'
7225 if test "$host_cpu" = ia64
; then
7226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7227 # chokes on -Wl,-G. The following line is correct:
7230 if test "$aix_use_runtimelinking" = yes; then
7231 shared_flag
='${wl}-G'
7233 shared_flag
='${wl}-bM:SRE'
7238 # It seems that -bexpall does not export symbols beginning with
7239 # underscore (_), so it is better to generate a list of symbols to export.
7240 always_export_symbols
=yes
7241 if test "$aix_use_runtimelinking" = yes; then
7242 # Warning - without using the other runtime loading flags (-brtl),
7243 # -berok will link without error, but may produce a broken library.
7244 allow_undefined_flag
='-berok'
7245 # Determine the default libpath from the value encoded in an empty executable.
7246 cat >conftest.
$ac_ext <<_ACEOF
7249 cat confdefs.h
>>conftest.
$ac_ext
7250 cat >>conftest.
$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7261 rm -f conftest.
$ac_objext conftest
$ac_exeext
7262 if { (ac_try
="$ac_link"
7264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_link") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1 >conftest.err
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest$ac_exeext &&
7278 $as_test_x conftest$ac_exeext; then
7280 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7282 # Check for a 64-bit object if we didn't find anything.
7283 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; }
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7293 conftest$ac_exeext conftest.$ac_ext
7294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7297 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"
7299 if test "$host_cpu" = ia64
; then
7300 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7301 allow_undefined_flag
="-z nodefs"
7302 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"
7304 # Determine the default libpath from the value encoded in an empty executable.
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7320 rm -f conftest.$ac_objext conftest$ac_exeext
7321 if { (ac_try="$ac_link"
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_link") 2>conftest.er1
7329 grep -v '^
*+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest$ac_exeext &&
7337 $as_test_x conftest$ac_exeext; then
7339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
7341 # Check for a 64-bit object if we didn't
find anything.
7342 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; }
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.
$ac_ext >&5
7351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7352 conftest
$ac_exeext conftest.
$ac_ext
7353 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7355 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7356 # Warning - without using the other run time loading flags,
7357 # -berok will link without error, but may produce a broken library.
7358 no_undefined_flag
=' ${wl}-bernotok'
7359 allow_undefined_flag
=' ${wl}-berok'
7360 # -bexpall does not export symbols beginning with underscore (_)
7361 always_export_symbols
=yes
7362 # Exported symbols can be pulled into shared objects from archives
7363 whole_archive_flag_spec
=' '
7364 archive_cmds_need_lc
=yes
7365 # This is similar to how AIX traditionally builds it's shared libraries.
7366 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'
7372 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)'
7373 hardcode_libdir_flag_spec
='-L$libdir'
7374 hardcode_minus_L
=yes
7375 # see comment about different semantics on the GNU ld section
7380 export_dynamic_flag_spec
=-rdynamic
7383 cygwin
* | mingw
* | pw32
*)
7384 # When not using gcc, we currently assume that we are using
7385 # Microsoft Visual C++.
7386 # hardcode_libdir_flag_spec is actually meaningless, as there is
7387 # no search path for DLLs.
7388 hardcode_libdir_flag_spec
=' '
7389 allow_undefined_flag
=unsupported
7390 # Tell ltmain to make .lib files, not .a files.
7392 # Tell ltmain to make .dll files, not .so files.
7394 # FIXME: Setting linknames here is a bad hack.
7395 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7396 # The linker will automatically build a .lib file if we build a DLL.
7397 old_archive_From_new_cmds
='true'
7398 # FIXME: Should let the user specify the lib program.
7399 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7400 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7401 enable_shared_with_static_runtimes
=yes
7404 darwin
* | rhapsody
*)
7405 if test "$GXX" = yes ; then
7406 archive_cmds_need_lc
=no
7408 rhapsody
* | darwin1.
[012])
7409 allow_undefined_flag
='-undefined suppress'
7412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7413 allow_undefined_flag
='-flat_namespace -undefined suppress'
7415 case ${MACOSX_DEPLOYMENT_TARGET} in
7417 allow_undefined_flag
='-flat_namespace -undefined suppress'
7420 allow_undefined_flag
='-undefined dynamic_lookup'
7426 lt_int_apple_cc_single_mod
=no
7427 output_verbose_link_cmd
='echo'
7428 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
7429 lt_int_apple_cc_single_mod
=yes
7431 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7432 archive_cmds
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7434 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'
7436 module_cmds
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7438 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7439 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}'
7441 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}'
7443 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}'
7445 hardcode_automatic
=yes
7446 hardcode_shlibpath_var
=unsupported
7447 whole_archive_flag_spec
='-all_load $convenience'
7448 link_all_deplibs
=yes
7455 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7456 hardcode_libdir_flag_spec
='-L$libdir'
7457 hardcode_shlibpath_var
=no
7464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7465 # support. Future versions do this automatically, but an explicit c++rt0.o
7466 # does not break anything, and helps significantly (at the cost of a little
7469 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7470 hardcode_libdir_flag_spec
='-R$libdir'
7472 hardcode_shlibpath_var
=no
7475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7477 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7479 hardcode_minus_L
=yes
7480 hardcode_shlibpath_var
=no
7483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7484 freebsd
* | kfreebsd
*-gnu)
7485 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7486 hardcode_libdir_flag_spec
='-R$libdir'
7488 hardcode_shlibpath_var
=no
7492 if test "$GCC" = yes; then
7493 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'
7495 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'
7497 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7498 hardcode_libdir_separator
=:
7501 # hardcode_minus_L: Not really in the search PATH,
7502 # but as the default location of the library.
7503 hardcode_minus_L
=yes
7504 export_dynamic_flag_spec
='${wl}-E'
7508 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7511 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7514 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7520 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7523 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7527 if test "$with_gnu_ld" = no
; then
7530 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7531 hardcode_libdir_flag_spec_ld
='+b $libdir'
7532 hardcode_libdir_separator
=:
7534 hardcode_shlibpath_var
=no
7537 hardcode_libdir_flag_spec
='-L$libdir'
7539 hardcode_shlibpath_var
=no
7541 # hardcode_minus_L: Not really in the search PATH,
7542 # but as the default location of the library.
7543 hardcode_minus_L
=yes
7546 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7547 hardcode_libdir_separator
=:
7549 export_dynamic_flag_spec
='${wl}-E'
7551 # hardcode_minus_L: Not really in the search PATH,
7552 # but as the default location of the library.
7553 hardcode_minus_L
=yes
7559 irix5
* | irix6
* | nonstopux
*)
7560 if test "$GCC" = yes; then
7561 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'
7563 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'
7564 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7566 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7567 hardcode_libdir_separator
=:
7568 link_all_deplibs
=yes
7572 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7573 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7575 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7577 hardcode_libdir_flag_spec
='-R$libdir'
7579 hardcode_shlibpath_var
=no
7583 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7585 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7586 hardcode_libdir_separator
=:
7587 hardcode_shlibpath_var
=no
7592 hardcode_shlibpath_var
=no
7593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7594 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7595 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7596 export_dynamic_flag_spec
='${wl}-E'
7599 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7600 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7601 hardcode_libdir_flag_spec
='-R$libdir'
7604 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7605 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7612 hardcode_libdir_flag_spec
='-L$libdir'
7613 hardcode_minus_L
=yes
7614 allow_undefined_flag
=unsupported
7615 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'
7616 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7620 if test "$GCC" = yes; then
7621 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7622 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'
7624 allow_undefined_flag
=' -expect_unresolved \*'
7625 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'
7627 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7628 hardcode_libdir_separator
=:
7631 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7632 if test "$GCC" = yes; then
7633 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7634 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'
7635 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7637 allow_undefined_flag
=' -expect_unresolved \*'
7638 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'
7639 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7640 $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'
7642 # Both c and cxx compiler support -rpath directly
7643 hardcode_libdir_flag_spec
='-rpath $libdir'
7645 hardcode_libdir_separator
=:
7649 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_shlibpath_var
=no
7651 export_dynamic_flag_spec
='${wl}-Bexport'
7652 runpath_var
=LD_RUN_PATH
7653 hardcode_runpath_var
=yes
7657 no_undefined_flag
=' -z text'
7658 if test "$GCC" = yes; then
7659 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7660 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7663 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7667 hardcode_libdir_flag_spec
='-R$libdir'
7668 hardcode_shlibpath_var
=no
7670 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7671 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7672 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7674 link_all_deplibs
=yes
7678 if test "x$host_vendor" = xsequent
; then
7679 # Use $CC to link under sequent, because it throws in some extra .o
7680 # files that make .init and .fini sections work.
7681 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7683 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7685 hardcode_libdir_flag_spec
='-L$libdir'
7687 hardcode_minus_L
=yes
7688 hardcode_shlibpath_var
=no
7692 case $host_vendor in
7694 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7695 hardcode_direct
=yes # is this really true???
7698 ## LD is ld it makes a PLAMLIB
7699 ## CC just makes a GrossModule.
7700 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7701 reload_cmds
='$CC -r -o $output$reload_objs'
7705 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7706 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7709 runpath_var
='LD_RUN_PATH'
7710 hardcode_shlibpath_var
=no
7714 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7715 hardcode_shlibpath_var
=no
7716 export_dynamic_flag_spec
='-Bexport'
7720 if test -d /usr
/nec
; then
7721 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722 hardcode_shlibpath_var
=no
7723 runpath_var
=LD_RUN_PATH
7724 hardcode_runpath_var
=yes
7730 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7733 hardcode_shlibpath_var
=no
7734 hardcode_runpath_var
=yes
7735 runpath_var
=LD_RUN_PATH
7738 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
7739 no_undefined_flag
='${wl}-z ${wl}text'
7740 if test "$GCC" = yes; then
7741 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7743 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7745 runpath_var
='LD_RUN_PATH'
7746 hardcode_shlibpath_var
=no
7750 no_undefined_flag
=' -z text'
7751 # $CC -shared without GNU ld will not create a library from C++
7752 # object files and a static libstdc++, better avoid it by now
7753 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7754 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7755 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7756 hardcode_libdir_flag_spec
=
7757 hardcode_shlibpath_var
=no
7758 runpath_var
='LD_RUN_PATH'
7762 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7763 hardcode_libdir_flag_spec
='-L$libdir'
7764 hardcode_shlibpath_var
=no
7773 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7774 echo "${ECHO_T}$ld_shlibs" >&6; }
7775 test "$ld_shlibs" = no
&& can_build_shared
=no
7777 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
7778 if test "$GCC" = yes; then
7779 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7783 # Do we need to explicitly link libc?
7785 case "x$archive_cmds_need_lc" in
7787 # Assume -lc should be added
7788 archive_cmds_need_lc
=yes
7790 if test "$enable_shared" = yes && test "$GCC" = yes; then
7791 case $archive_cmds in
7793 # FIXME: we may have to deal with multi-command sequences.
7796 # Test whether the compiler implicitly links with -lc since on some
7797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7798 # to ld, don't add -lc before -lgcc.
7799 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7800 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7802 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805 (eval $ac_compile) 2>&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } 2>conftest.err
; then
7811 libobjs
=conftest.
$ac_objext
7813 wl
=$lt_prog_compiler_wl
7819 lt_save_allow_undefined_flag
=$allow_undefined_flag
7820 allow_undefined_flag
=
7821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7822 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }
7827 archive_cmds_need_lc
=no
7829 archive_cmds_need_lc
=yes
7831 allow_undefined_flag
=$lt_save_allow_undefined_flag
7833 cat conftest.err
1>&5
7836 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7837 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7844 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7845 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7847 libname_spec
='lib$name'
7855 shlibpath_overrides_runpath
=unknown
7857 dynamic_linker
="$host_os ld.so"
7858 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7859 if test "$GCC" = yes; then
7860 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7861 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
7862 # if the path contains ";" then we assume it to be the separator
7863 # otherwise default to the standard path separator (i.e. ":") - it is
7864 # assumed that no part of a normal pathname contains ";" but that should
7865 # okay in the real world where ";" in dirpaths is itself problematic.
7866 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7868 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7871 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7873 need_lib_prefix
=unknown
7874 hardcode_into_libs
=no
7876 # when you set need_version to no, make sure it does not cause -set_version
7877 # flags to be left without arguments
7878 need_version
=unknown
7883 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7884 shlibpath_var
=LIBPATH
7886 # AIX 3 has no versioning support, so we append a major version to the name.
7887 soname_spec
='${libname}${release}${shared_ext}$major'
7894 hardcode_into_libs
=yes
7895 if test "$host_cpu" = ia64
; then
7896 # AIX 5 supports IA64
7897 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7898 shlibpath_var
=LD_LIBRARY_PATH
7900 # With GCC up to 2.95.x, collect2 would create an import file
7901 # for dependence libraries. The import file would start with
7902 # the line `#! .'. This would cause the generated library to
7903 # depend on `.', always an invalid library. This was fixed in
7904 # development snapshots of GCC prior to 3.0.
7906 aix4 | aix4.
[01] | aix4.
[01].
*)
7907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7909 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7917 # soname into executable. Probably we can add versioning support to
7918 # collect2, so additional links can be useful in future.
7919 if test "$aix_use_runtimelinking" = yes; then
7920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7921 # instead of lib<name>.a to let people know that these are not
7922 # typical AIX shared libraries.
7923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925 # We preserve .a as extension for shared libraries through AIX4.2
7926 # and later when we are not doing run time linking.
7927 library_names_spec
='${libname}${release}.a $libname.a'
7928 soname_spec
='${libname}${release}${shared_ext}$major'
7930 shlibpath_var
=LIBPATH
7935 library_names_spec
='$libname.ixlibrary $libname.a'
7936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7937 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'
7941 library_names_spec
='${libname}${shared_ext}'
7942 dynamic_linker
="$host_os ld.so"
7943 shlibpath_var
=LIBRARY_PATH
7949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950 soname_spec
='${libname}${release}${shared_ext}$major'
7951 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7952 shlibpath_var
=LD_LIBRARY_PATH
7953 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7954 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7955 # the default ld.so.conf also contains /usr/contrib/lib and
7956 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7957 # libtool to hard-code these into programs
7960 cygwin
* | mingw
* | pw32
*)
7961 version_type
=windows
7966 case $GCC,$host_os in
7967 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
7968 library_names_spec
='$libname.dll.a'
7969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7970 postinstall_cmds
='base_file=`basename \${file}`~
7971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7972 dldir=$destdir/`dirname \$dlpath`~
7973 test -d \$dldir || mkdir -p \$dldir~
7974 $install_prog $dir/$dlname \$dldir/$dlname'
7975 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7976 dlpath=$dir/\$dldll~
7978 shlibpath_overrides_runpath
=yes
7982 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7983 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7984 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
7987 # MinGW DLLs use traditional 'lib' prefix
7988 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7989 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7990 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
7991 # It is most probably a Windows format PATH printed by
7992 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7993 # path with ; separators, and with drive letters. We can handle the
7994 # drive letters (cygwin fileutils understands them), so leave them,
7995 # especially as we might pass files found there to a mingw objdump,
7996 # which wouldn't understand a cygwinified path. Ahh.
7997 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7999 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8003 # pw32 DLLs use 'pw' prefix rather than 'lib'
8004 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8010 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8013 dynamic_linker
='Win32 ld.exe'
8014 # FIXME: first we should search . and the directory the executable is in
8018 darwin
* | rhapsody
*)
8019 dynamic_linker
="$host_os dyld"
8023 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8024 soname_spec
='${libname}${release}${major}$shared_ext'
8025 shlibpath_overrides_runpath
=yes
8026 shlibpath_var
=DYLD_LIBRARY_PATH
8027 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
8028 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8029 if test "$GCC" = yes; then
8030 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"`
8032 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8034 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8042 soname_spec
='${libname}${release}${shared_ext}$major'
8043 shlibpath_var
=LD_LIBRARY_PATH
8054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8055 soname_spec
='${libname}${release}${shared_ext}$major'
8056 shlibpath_var
=LD_LIBRARY_PATH
8057 shlibpath_overrides_runpath
=no
8058 hardcode_into_libs
=yes
8059 dynamic_linker
='GNU ld.so'
8063 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8064 version_type
=freebsd-
$objformat
8065 case $version_type in
8067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8072 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8076 shlibpath_var
=LD_LIBRARY_PATH
8079 shlibpath_overrides_runpath
=yes
8081 freebsd3.01
* | freebsdelf3.01
*)
8082 shlibpath_overrides_runpath
=yes
8083 hardcode_into_libs
=yes
8086 shlibpath_overrides_runpath
=no
8087 hardcode_into_libs
=yes
8096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8097 soname_spec
='${libname}${release}${shared_ext}$major'
8098 shlibpath_var
=LD_LIBRARY_PATH
8099 hardcode_into_libs
=yes
8102 hpux9
* | hpux10
* | hpux11
*)
8103 # Give a soname corresponding to the major version so that dld.sl refuses to
8104 # link against other versions.
8111 hardcode_into_libs
=yes
8112 dynamic_linker
="$host_os dld.so"
8113 shlibpath_var
=LD_LIBRARY_PATH
8114 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116 soname_spec
='${libname}${release}${shared_ext}$major'
8117 if test "X$HPUX_IA64_MODE" = X32
; then
8118 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8120 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8122 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8126 hardcode_into_libs
=yes
8127 dynamic_linker
="$host_os dld.sl"
8128 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8129 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8130 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8131 soname_spec
='${libname}${release}${shared_ext}$major'
8132 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8133 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8137 dynamic_linker
="$host_os dld.sl"
8138 shlibpath_var
=SHLIB_PATH
8139 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141 soname_spec
='${libname}${release}${shared_ext}$major'
8144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8145 postinstall_cmds
='chmod 555 $lib'
8148 irix5
* | irix6
* | nonstopux
*)
8150 nonstopux
*) version_type
=nonstopux
;;
8152 if test "$lt_cv_prog_gnu_ld" = yes; then
8160 soname_spec
='${libname}${release}${shared_ext}$major'
8161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8163 irix5
* | nonstopux
*)
8167 case $LD in # libtool.m4 will add one of these switches to LD
8168 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8169 libsuff
= shlibsuff
= libmagic
=32-bit;;
8170 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8171 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8172 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8173 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8174 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8178 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8179 shlibpath_overrides_runpath
=no
8180 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8181 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8182 hardcode_into_libs
=yes
8185 # No shared lib support for Linux oldld, aout, or coff.
8186 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8190 # This must be Linux ELF.
8195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196 soname_spec
='${libname}${release}${shared_ext}$major'
8197 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8198 shlibpath_var
=LD_LIBRARY_PATH
8199 shlibpath_overrides_runpath
=no
8200 # This implies no fast_install, which is unacceptable.
8201 # Some rework will be needed to allow for fast_install
8202 # before this can be enabled.
8203 hardcode_into_libs
=yes
8205 # We used to test for /lib/ld.so.1 and disable shared libraries on
8206 # powerpc, because MkLinux only supported shared libraries with the
8207 # GNU dynamic linker. Since this was broken with cross compilers,
8208 # most powerpc-linux boxes support dynamic linking these days and
8209 # people can always --disable-shared, the test was removed, and we
8210 # assume the GNU/Linux dynamic linker is in use.
8211 dynamic_linker
='GNU/Linux ld.so'
8218 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8220 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8221 dynamic_linker
='NetBSD (a.out) ld.so'
8223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8224 soname_spec
='${libname}${release}${shared_ext}$major'
8225 dynamic_linker
='NetBSD ld.elf_so'
8227 shlibpath_var
=LD_LIBRARY_PATH
8228 shlibpath_overrides_runpath
=yes
8229 hardcode_into_libs
=yes
8234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235 shlibpath_var
=LD_LIBRARY_PATH
8236 shlibpath_overrides_runpath
=yes
8243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244 soname_spec
='${libname}${release}${shared_ext}$major'
8245 shlibpath_var
=LD_LIBRARY_PATH
8246 shlibpath_overrides_runpath
=yes
8253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8254 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8255 shlibpath_var
=LD_LIBRARY_PATH
8256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8258 openbsd2.
[89] | openbsd2.
[89].
*)
8259 shlibpath_overrides_runpath
=no
8262 shlibpath_overrides_runpath
=yes
8266 shlibpath_overrides_runpath
=yes
8271 libname_spec
='$name'
8274 library_names_spec
='$libname${shared_ext} $libname.a'
8275 dynamic_linker
='OS/2 ld.exe'
8276 shlibpath_var
=LIBPATH
8279 osf3
* | osf4
* | osf5
*)
8283 soname_spec
='${libname}${release}${shared_ext}$major'
8284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 shlibpath_var
=LD_LIBRARY_PATH
8286 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8287 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8292 soname_spec
='${libname}${release}${shared_ext}$major'
8293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8294 shlibpath_var
=LD_LIBRARY_PATH
8301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302 soname_spec
='${libname}${release}${shared_ext}$major'
8303 shlibpath_var
=LD_LIBRARY_PATH
8304 shlibpath_overrides_runpath
=yes
8305 hardcode_into_libs
=yes
8306 # ldd complains unless libraries are executable
8307 postinstall_cmds
='chmod +x $lib'
8312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8313 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8314 shlibpath_var
=LD_LIBRARY_PATH
8315 shlibpath_overrides_runpath
=yes
8316 if test "$with_gnu_ld" = yes; then
8322 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325 soname_spec
='${libname}${release}${shared_ext}$major'
8326 shlibpath_var
=LD_LIBRARY_PATH
8327 case $host_vendor in
8329 shlibpath_overrides_runpath
=no
8331 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8332 runpath_var
=LD_RUN_PATH
8340 shlibpath_overrides_runpath
=no
8341 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8347 if test -d /usr
/nec
;then
8349 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8350 soname_spec
='$libname${shared_ext}.$major'
8351 shlibpath_var
=LD_LIBRARY_PATH
8357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8358 soname_spec
='${libname}${release}${shared_ext}$major'
8359 shlibpath_var
=LD_LIBRARY_PATH
8366 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8367 echo "${ECHO_T}$dynamic_linker" >&6; }
8368 test "$dynamic_linker" = no
&& can_build_shared
=no
8370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8373 if test -n "$hardcode_libdir_flag_spec" || \
8374 test -n "$runpath_var " || \
8375 test "X$hardcode_automatic"="Xyes" ; then
8377 # We can hardcode non-existant directories.
8378 if test "$hardcode_direct" != no
&&
8379 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8380 # have to relink, otherwise we might link with an installed library
8381 # when we should be linking with a yet-to-be-installed one
8382 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8383 test "$hardcode_minus_L" != no
; then
8384 # Linking always hardcodes the temporary library directory.
8385 hardcode_action
=relink
8387 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8388 hardcode_action
=immediate
8391 # We cannot hardcode anything, or else we can only hardcode existing
8393 hardcode_action
=unsupported
8395 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8396 echo "${ECHO_T}$hardcode_action" >&6; }
8398 if test "$hardcode_action" = relink
; then
8399 # Fast installation is not supported
8400 enable_fast_install
=no
8401 elif test "$shlibpath_overrides_runpath" = yes ||
8402 test "$enable_shared" = no
; then
8403 # Fast installation is not necessary
8404 enable_fast_install
=needless
8409 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8410 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8411 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8412 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8413 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8414 { echo "$as_me:$LINENO: result: yes" >&5
8415 echo "${ECHO_T}yes" >&6; }
8417 # FIXME - insert some real tests, host_os isn't really good enough
8420 if test -n "$STRIP" ; then
8421 striplib
="$STRIP -x"
8422 { echo "$as_me:$LINENO: result: yes" >&5
8423 echo "${ECHO_T}yes" >&6; }
8425 { echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6; }
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8436 if test "x$enable_dlopen" != xyes
; then
8437 enable_dlopen
=unknown
8438 enable_dlopen_self
=unknown
8439 enable_dlopen_self_static
=unknown
8446 lt_cv_dlopen
="load_add_on"
8448 lt_cv_dlopen_self
=yes
8452 lt_cv_dlopen
="LoadLibrary"
8457 lt_cv_dlopen
="dlopen"
8462 # if libdl is installed we need to link against it
8463 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8464 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 ac_check_lib_save_LIBS
=$LIBS
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8477 /* Override any GCC internal prototype to avoid an error.
8478 Use char because int might match the return type of a GCC
8479 builtin and then its argument prototype would still apply. */
8492 rm -f conftest.
$ac_objext conftest
$ac_exeext
8493 if { (ac_try
="$ac_link"
8495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest$ac_exeext &&
8509 $as_test_x conftest$ac_exeext; then
8510 ac_cv_lib_dl_dlopen=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_cv_lib_dl_dlopen=no
8518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8519 conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8522 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8524 if test $ac_cv_lib_dl_dlopen = yes; then
8525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8530 lt_cv_dlopen_self=yes
8537 { echo "$as_me:$LINENO: checking for shl_load" >&5
8538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8539 if test "${ac_cv_func_shl_load+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8550 #define shl_load innocuous_shl_load
8552 /* System header to define __stub macros and hopefully few prototypes,
8553 which can conflict with char shl_load (); below.
8554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8555 <limits.h> exists even on freestanding compilers. */
8558 # include <limits.h>
8560 # include <assert.h>
8565 /* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8572 /* The GNU C library defines this for functions which it implements
8573 to always fail with ENOSYS. Some functions are actually named
8574 something starting with __ and the normal name is an alias. */
8575 #if defined __stub_shl_load || defined __stub___shl_load
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8591 *) ac_try_echo
=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_link") 2>conftest.er1
8596 grep -v '^ *+' conftest.er1
>conftest.err
8598 cat conftest.err
>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } && {
8601 test -z "$ac_c_werror_flag" ||
8602 test ! -s conftest.err
8603 } && test -s conftest
$ac_exeext &&
8604 $as_test_x conftest
$ac_exeext; then
8605 ac_cv_func_shl_load
=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.
$ac_ext >&5
8610 ac_cv_func_shl_load
=no
8613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8614 conftest
$ac_exeext conftest.
$ac_ext
8616 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8618 if test $ac_cv_func_shl_load = yes; then
8619 lt_cv_dlopen
="shl_load"
8621 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_check_lib_save_LIBS
=$LIBS
8628 cat >conftest.
$ac_ext <<_ACEOF
8631 cat confdefs.h
>>conftest.
$ac_ext
8632 cat >>conftest.
$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8650 rm -f conftest.
$ac_objext conftest
$ac_exeext
8651 if { (ac_try
="$ac_link"
8653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_link") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest$ac_exeext &&
8667 $as_test_x conftest$ac_exeext; then
8668 ac_cv_lib_dld_shl_load=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_cv_lib_dld_shl_load=no
8676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8682 if test $ac_cv_lib_dld_shl_load = yes; then
8683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8685 { echo "$as_me:$LINENO: checking for dlopen" >&5
8686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8687 if test "${ac_cv_func_dlopen+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8698 #define dlopen innocuous_dlopen
8700 /* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char dlopen (); below.
8702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 <limits.h> exists even on freestanding compilers. */
8706 # include <limits.h>
8708 # include <assert.h>
8713 /* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8720 /* The GNU C library defines this for functions which it implements
8721 to always fail with ENOSYS. Some functions are actually named
8722 something starting with __ and the normal name is an alias. */
8723 #if defined __stub_dlopen || defined __stub___dlopen
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8739 *) ac_try_echo
=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_link") 2>conftest.er1
8744 grep -v '^ *+' conftest.er1
>conftest.err
8746 cat conftest.err
>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } && {
8749 test -z "$ac_c_werror_flag" ||
8750 test ! -s conftest.err
8751 } && test -s conftest
$ac_exeext &&
8752 $as_test_x conftest
$ac_exeext; then
8753 ac_cv_func_dlopen
=yes
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.
$ac_ext >&5
8758 ac_cv_func_dlopen
=no
8761 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8762 conftest
$ac_exeext conftest.
$ac_ext
8764 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8766 if test $ac_cv_func_dlopen = yes; then
8767 lt_cv_dlopen
="dlopen"
8769 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 ac_check_lib_save_LIBS
=$LIBS
8776 cat >conftest.
$ac_ext <<_ACEOF
8779 cat confdefs.h
>>conftest.
$ac_ext
8780 cat >>conftest.
$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8783 /* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
8798 rm -f conftest.
$ac_objext conftest
$ac_exeext
8799 if { (ac_try
="$ac_link"
8801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest$ac_exeext &&
8815 $as_test_x conftest$ac_exeext; then
8816 ac_cv_lib_dl_dlopen=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_lib_dl_dlopen=no
8824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8830 if test $ac_cv_lib_dl_dlopen = yes; then
8831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8833 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 ac_check_lib_save_LIBS=$LIBS
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any GCC internal prototype to avoid an error.
8848 Use char because int might match the return type of a GCC
8849 builtin and then its argument prototype would still apply. */
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (ac_try="$ac_link"
8865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8866 *) ac_try_echo
=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_link") 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest
$ac_exeext &&
8879 $as_test_x conftest
$ac_exeext; then
8880 ac_cv_lib_svld_dlopen
=yes
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.
$ac_ext >&5
8885 ac_cv_lib_svld_dlopen
=no
8888 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8889 conftest
$ac_exeext conftest.
$ac_ext
8890 LIBS
=$ac_check_lib_save_LIBS
8892 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8894 if test $ac_cv_lib_svld_dlopen = yes; then
8895 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
8897 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8898 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8899 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_check_lib_save_LIBS
=$LIBS
8904 cat >conftest.
$ac_ext <<_ACEOF
8907 cat confdefs.h
>>conftest.
$ac_ext
8908 cat >>conftest.
$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8926 rm -f conftest.
$ac_objext conftest
$ac_exeext
8927 if { (ac_try
="$ac_link"
8929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext &&
8943 $as_test_x conftest$ac_exeext; then
8944 ac_cv_lib_dld_dld_link=yes
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 ac_cv_lib_dld_dld_link=no
8952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953 conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8956 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8957 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8958 if test $ac_cv_lib_dld_dld_link = yes; then
8959 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8980 if test "x$lt_cv_dlopen" != xno; then
8986 case $lt_cv_dlopen in
8988 save_CPPFLAGS="$CPPFLAGS"
8989 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8991 save_LDFLAGS="$LDFLAGS"
8992 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8995 LIBS="$lt_cv_dlopen_libs $LIBS"
8997 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8998 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8999 if test "${lt_cv_dlopen_self+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 if test "$cross_compiling" = yes; then :
9003 lt_cv_dlopen_self=cross
9005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9006 lt_status=$lt_dlunknown
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9008 "configure"
9009 #include "confdefs.h"
9018 # define LT_DLGLOBAL RTLD_GLOBAL
9021 # define LT_DLGLOBAL DL_GLOBAL
9023 # define LT_DLGLOBAL 0
9027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9028 find out it does not work in some platform. */
9029 #ifndef LT_DLLAZY_OR_NOW
9031 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9034 # define LT_DLLAZY_OR_NOW DL_LAZY
9037 # define LT_DLLAZY_OR_NOW RTLD_NOW
9040 # define LT_DLLAZY_OR_NOW DL_NOW
9042 # define LT_DLLAZY_OR_NOW 0
9050 extern "C" void exit (int);
9053 void fnord() { int i=42;}
9056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9057 int status = $lt_dlunknown;
9061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9062 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9063 /* dlclose (self); */
9069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9070 (eval $ac_link) 2>&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9074 (./conftest; exit; ) 2>/dev/null
9077 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9078 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9079 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9082 # compilation failed
9083 lt_cv_dlopen_self=no
9090 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9091 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9093 if test "x$lt_cv_dlopen_self" = xyes; then
9094 LDFLAGS="$LDFLAGS $link_static_flag"
9095 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9096 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9097 if test "${lt_cv_dlopen_self_static+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 if test "$cross_compiling" = yes; then :
9101 lt_cv_dlopen_self_static=cross
9103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9104 lt_status=$lt_dlunknown
9105 cat > conftest.$ac_ext <<EOF
9106 #line 9106 "configure"
9107 #include "confdefs.h"
9116 # define LT_DLGLOBAL RTLD_GLOBAL
9119 # define LT_DLGLOBAL DL_GLOBAL
9121 # define LT_DLGLOBAL 0
9125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9126 find out it does not work in some platform. */
9127 #ifndef LT_DLLAZY_OR_NOW
9129 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9132 # define LT_DLLAZY_OR_NOW DL_LAZY
9135 # define LT_DLLAZY_OR_NOW RTLD_NOW
9138 # define LT_DLLAZY_OR_NOW DL_NOW
9140 # define LT_DLLAZY_OR_NOW 0
9148 extern "C" void exit (int);
9151 void fnord() { int i=42;}
9154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9155 int status = $lt_dlunknown;
9159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9160 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9161 /* dlclose (self); */
9167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168 (eval $ac_link) 2>&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9172 (./conftest; exit; ) 2>/dev/null
9175 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9176 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9177 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9180 # compilation failed
9181 lt_cv_dlopen_self_static=no
9188 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9189 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9192 CPPFLAGS="$save_CPPFLAGS"
9193 LDFLAGS="$save_LDFLAGS"
9198 case $lt_cv_dlopen_self in
9199 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9200 *) enable_dlopen_self=unknown ;;
9203 case $lt_cv_dlopen_self_static in
9204 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9205 *) enable_dlopen_self_static=unknown ;;
9210 # Report which librarie types wil actually be built
9211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9214 echo "${ECHO_T}$can_build_shared" >&6; }
9216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9218 test "$can_build_shared" = "no" && enable_shared=no
9220 # On AIX, shared libraries and static libraries use the same namespace, and
9221 # are all built from PIC.
9224 test "$enable_shared" = yes && enable_static=no
9225 if test -n "$RANLIB"; then
9226 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9227 postinstall_cmds='$RANLIB $lib'
9232 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9233 test "$enable_shared" = yes && enable_static=no
9236 darwin* | rhapsody*)
9237 if test "$GCC" = yes; then
9238 archive_cmds_need_lc=no
9240 rhapsody* | darwin1.[012])
9241 allow_undefined_flag='-undefined suppress'
9244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9245 allow_undefined_flag='-flat_namespace -undefined suppress'
9247 case ${MACOSX_DEPLOYMENT_TARGET} in
9249 allow_undefined_flag='-flat_namespace -undefined suppress'
9252 allow_undefined_flag='-undefined dynamic_lookup'
9258 output_verbose_link_cmd='echo'
9259 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9260 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9261 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9262 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}'
9263 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}'
9265 hardcode_automatic=yes
9266 hardcode_shlibpath_var=unsupported
9267 whole_archive_flag_spec='-all_load $convenience'
9268 link_all_deplibs=yes
9274 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9275 echo "${ECHO_T}$enable_shared" >&6; }
9277 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9278 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9279 # Make sure either enable_shared or enable_static is yes.
9280 test "$enable_shared" = yes || enable_static=yes
9281 { echo "$as_me:$LINENO: result: $enable_static" >&5
9282 echo "${ECHO_T}$enable_static" >&6; }
9284 # The else clause should only fire when bootstrapping the
9285 # libtool distribution, otherwise you forgot to ship ltmain.sh
9286 # with your package, and you will get complaints that there are
9287 # no rules to generate ltmain.sh.
9288 if test -f "$ltmain"; then
9289 # See if we are running on zsh, and set the options which allow our commands through
9290 # without removal of \ escapes.
9291 if test -n "${ZSH_VERSION+set}" ; then
9292 setopt NO_GLOB_SUBST
9294 # Now quote all the things that may contain metacharacters while being
9295 # careful not to overquote the AC_SUBSTed values. We take copies of the
9296 # variables and quote the copies for generation of the libtool script.
9297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9300 deplibs_check_method reload_flag reload_cmds need_locks \
9301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9302 lt_cv_sys_global_symbol_to_c_name_address \
9303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9304 old_postinstall_cmds old_postuninstall_cmds \
9308 lt_prog_compiler_wl \
9309 lt_prog_compiler_pic \
9310 lt_prog_compiler_static \
9311 lt_prog_compiler_no_builtin_flag \
9312 export_dynamic_flag_spec \
9313 thread_safe_flag_spec \
9314 whole_archive_flag_spec \
9315 enable_shared_with_static_runtimes \
9317 old_archive_from_new_cmds \
9322 compiler_lib_search_path \
9324 archive_expsym_cmds \
9326 postuninstall_cmds \
9327 old_archive_from_expsyms_cmds \
9328 allow_undefined_flag \
9330 export_symbols_cmds \
9331 hardcode_libdir_flag_spec \
9332 hardcode_libdir_flag_spec_ld \
9333 hardcode_libdir_separator \
9334 hardcode_automatic \
9336 module_expsym_cmds \
9337 lt_cv_prog_compiler_c_o \
9342 old_archive_cmds | \
9343 old_archive_from_new_cmds | \
9345 archive_expsym_cmds | \
9347 module_expsym_cmds | \
9348 old_archive_from_expsyms_cmds | \
9349 export_symbols_cmds | \
9350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9351 postinstall_cmds | postuninstall_cmds | \
9352 old_postinstall_cmds | old_postuninstall_cmds | \
9353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9354 # Double-quote double-evaled strings.
9355 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
9358 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
9364 *'\$0 --fallback-echo"')
9365 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9370 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9372 { echo "$as_me:$LINENO: creating $ofile" >&5
9373 echo "$as_me: creating $ofile" >&6;}
9375 cat <<__EOF__ >> "$cfgfile"
9378 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
9379 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9380 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9382 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9383 # Free Software Foundation, Inc.
9385 # This file is part of GNU Libtool:
9386 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9388 # This program is free software; you can redistribute it and/or modify
9389 # it under the terms of the GNU General Public License as published by
9390 # the Free Software Foundation; either version 2 of the License, or
9391 # (at your option) any later version.
9393 # This program is distributed in the hope that it will be useful, but
9394 # WITHOUT ANY WARRANTY; without even the implied warranty of
9395 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9396 # General Public License for more details.
9398 # You should have received a copy of the GNU General Public License
9399 # along with this program; if not, write to the Free Software
9400 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9402 # As a special exception to the GNU General Public License, if you
9403 # distribute this file as part of a program that contains a
9404 # configuration script generated by Autoconf, you may include it under
9405 # the same distribution terms that you use for the rest of that program.
9407 # A sed program that does not truncate output.
9410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9411 Xsed="$SED -e s/^X//"
9413 # The HP-UX ksh and POSIX shell print the target directory to stdout
9415 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9417 # The names of the tagged configurations supported by this script.
9420 # ### BEGIN LIBTOOL CONFIG
9422 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
9424 # Shell to use when invoking shell scripts.
9427 # Whether or not to build shared libraries.
9428 build_libtool_libs=$enable_shared
9430 # Whether or not to build static libraries.
9431 build_old_libs=$enable_static
9433 # Whether or not to add -lc for building shared libraries.
9434 build_libtool_need_lc=$archive_cmds_need_lc
9436 # Whether or not to disallow shared libs when runtime libs are static
9437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9439 # Whether or not to optimize for fast installation.
9440 fast_install=$enable_fast_install
9443 host_alias=$host_alias
9446 # An echo program that does not interpret backslashes.
9451 AR_FLAGS=$lt_AR_FLAGS
9456 # A language-specific compiler.
9459 # Is the compiler the GNU C compiler?
9465 # The linker used to build libraries.
9468 # Whether we need hard or soft links.
9471 # A BSD-compatible nm program.
9474 # A symbol stripping program
9477 # Used to examine libraries when file_magic_cmd begins "file"
9478 MAGIC_CMD=$MAGIC_CMD
9480 # Used on cygwin: DLL creation program.
9483 # Used on cygwin: object dumper.
9486 # Used on cygwin: assembler.
9489 # The name of the directory that contains temporary libtool files.
9492 # How to create reloadable object files.
9493 reload_flag=$lt_reload_flag
9494 reload_cmds=$lt_reload_cmds
9496 # How to pass a linker flag through the compiler.
9497 wl=$lt_lt_prog_compiler_wl
9499 # Object file suffix (normally "o").
9502 # Old archive suffix (normally "a").
9505 # Shared library suffix (normally ".so").
9508 # Executable file suffix (normally "").
9511 # Additional compiler flags for building library objects.
9512 pic_flag=$lt_lt_prog_compiler_pic
9515 # What is the maximum length of a command?
9516 max_cmd_len=$lt_cv_sys_max_cmd_len
9518 # Does compiler simultaneously support -c and -o options?
9519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9521 # Must we lock files when doing compilation ?
9522 need_locks=$lt_need_locks
9524 # Do we need the lib prefix for modules?
9525 need_lib_prefix=$need_lib_prefix
9527 # Do we need a version for libraries?
9528 need_version=$need_version
9530 # Whether dlopen is supported.
9531 dlopen_support=$enable_dlopen
9533 # Whether dlopen of programs is supported.
9534 dlopen_self=$enable_dlopen_self
9536 # Whether dlopen of statically linked programs is supported.
9537 dlopen_self_static=$enable_dlopen_self_static
9539 # Compiler flag to prevent dynamic linking.
9540 link_static_flag=$lt_lt_prog_compiler_static
9542 # Compiler flag to turn off builtin functions.
9543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9545 # Compiler flag to allow reflexive dlopens.
9546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9548 # Compiler flag to generate shared objects directly from archives.
9549 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9551 # Compiler flag to generate thread-safe objects.
9552 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9554 # Library versioning type.
9555 version_type=$version_type
9557 # Format of library name prefix.
9558 libname_spec=$lt_libname_spec
9560 # List of archive names. First name is the real one, the rest are links.
9561 # The last name is the one that the linker finds with -lNAME.
9562 library_names_spec=$lt_library_names_spec
9564 # The coded name of the library, if different from the real name.
9565 soname_spec=$lt_soname_spec
9567 # Commands used to build and install an old-style archive.
9569 old_archive_cmds=$lt_old_archive_cmds
9570 old_postinstall_cmds=$lt_old_postinstall_cmds
9571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9573 # Create an old-style archive from a shared archive.
9574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9576 # Create a temporary old-style archive to link instead of a shared archive.
9577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9579 # Commands used to build and install a shared archive.
9580 archive_cmds=$lt_archive_cmds
9581 archive_expsym_cmds=$lt_archive_expsym_cmds
9582 postinstall_cmds=$lt_postinstall_cmds
9583 postuninstall_cmds=$lt_postuninstall_cmds
9585 # Commands used to build a loadable module (assumed same as above if empty)
9586 module_cmds=$lt_module_cmds
9587 module_expsym_cmds=$lt_module_expsym_cmds
9589 # Commands to strip libraries.
9590 old_striplib=$lt_old_striplib
9591 striplib=$lt_striplib
9593 # Dependencies to place before the objects being linked to create a
9595 predep_objects=$lt_predep_objects
9597 # Dependencies to place after the objects being linked to create a
9599 postdep_objects=$lt_postdep_objects
9601 # Dependencies to place before the objects being linked to create a
9605 # Dependencies to place after the objects being linked to create a
9607 postdeps=$lt_postdeps
9609 # The library search path used internally by the compiler when linking
9611 compiler_lib_search_path=$lt_compiler_lib_search_path
9613 # Method to check whether dependent libraries are shared objects.
9614 deplibs_check_method=$lt_deplibs_check_method
9616 # Command to use when deplibs_check_method == file_magic.
9617 file_magic_cmd=$lt_file_magic_cmd
9619 # Flag that allows shared libraries with undefined symbols to be built.
9620 allow_undefined_flag=$lt_allow_undefined_flag
9622 # Flag that forces no undefined symbols.
9623 no_undefined_flag=$lt_no_undefined_flag
9625 # Commands used to finish a libtool library installation in a directory.
9626 finish_cmds=$lt_finish_cmds
9628 # Same as above, but a single script fragment to be evaled but not shown.
9629 finish_eval=$lt_finish_eval
9631 # Take the output of nm and produce a listing of raw symbols and C names.
9632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9634 # Transform the output of nm in a proper C declaration
9635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9637 # Transform the output of nm in a C name address pair
9638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9640 # This is the shared library runtime path variable.
9641 runpath_var=$runpath_var
9643 # This is the shared library path variable.
9644 shlibpath_var=$shlibpath_var
9646 # Is shlibpath searched before the hard-coded library search path?
9647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9649 # How to hardcode a shared library path into an executable.
9650 hardcode_action=$hardcode_action
9652 # Whether we should hardcode library paths into libraries.
9653 hardcode_into_libs=$hardcode_into_libs
9655 # Flag to hardcode \$libdir into a binary during linking.
9656 # This must work even if \$libdir does not exist.
9657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9659 # If ld is used when linking, flag to hardcode \$libdir into
9660 # a binary during linking. This must work even if \$libdir does
9662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9664 # Whether we need a single -rpath flag with a separated argument.
9665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9669 hardcode_direct=$hardcode_direct
9671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9673 hardcode_minus_L=$hardcode_minus_L
9675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9676 # the resulting binary.
9677 hardcode_shlibpath_var=$hardcode_shlibpath_var
9679 # Set to yes if building a shared library automatically hardcodes DIR into the library
9680 # and all subsequent libraries and executables linked against it.
9681 hardcode_automatic=$hardcode_automatic
9683 # Variables whose values should be saved in libtool wrapper scripts and
9684 # restored at relink time.
9685 variables_saved_for_relink="$variables_saved_for_relink"
9687 # Whether libtool must link a program against all its dependency libraries.
9688 link_all_deplibs=$link_all_deplibs
9690 # Compile-time system search path for libraries
9691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9693 # Run-time system search path for libraries
9694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9696 # Fix the shell variable \$srcfile for the compiler.
9697 fix_srcfile_path="$fix_srcfile_path"
9699 # Set to yes if exported symbols are required.
9700 always_export_symbols=$always_export_symbols
9702 # The commands to list exported symbols.
9703 export_symbols_cmds=$lt_export_symbols_cmds
9705 # The commands to extract the exported symbol list from a shared archive.
9706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9708 # Symbols that should not be listed in the preloaded symbols.
9709 exclude_expsyms=$lt_exclude_expsyms
9711 # Symbols that must always be exported.
9712 include_expsyms=$lt_include_expsyms
9714 # ### END LIBTOOL CONFIG
9721 cat <<\EOF >> "$cfgfile"
9723 # AIX sometimes has problems with the GCC collect2 program. For some
9724 # reason, if we set the COLLECT_NAMES environment variable, the problems
9725 # vanish in a puff of smoke.
9726 if test "X${COLLECT_NAMES+set}" != Xset; then
9728 export COLLECT_NAMES
9734 # We use sed instead of cat because bash on DJGPP gets confused if
9735 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9736 # text mode, it properly converts lines to CR/LF. This bash problem
9737 # is reportedly fixed, but why not run on old versions too?
9738 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9740 mv -f "$cfgfile" "$ofile" || \
9741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9745 # If there is no Makefile yet, we rely on a make rule to execute
9746 # `config.status
--recheck' to rerun these tests and create the
9747 # libtool script then.
9748 test -f Makefile && make "$ltmain"
9753 ac_cpp='$CPP $CPPFLAGS'
9754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
9755 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9761 # Check whether --with-tags was given.
9762 if test "${with_tags+set}" = set; then
9763 withval=$with_tags; tagnames="$withval"
9767 if test -f "$ltmain" && test -n "$tagnames"; then
9768 if test ! -f "${ofile}"; then
9769 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
9770 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
9773 if test -z "$LTCC"; then
9774 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
9775 if test -z "$LTCC"; then
9776 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9777 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
9779 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
9780 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
9784 # Extract list of available tagged configurations in $ofile.
9785 # Note that this assumes the entire list is on one line.
9786 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9789 for tagname in $tagnames; do
9791 # Check whether tagname contains only valid characters
9792 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9794 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9795 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9796 { (exit 1); exit 1; }; }
9800 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9802 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9803 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9804 { (exit 1); exit 1; }; }
9807 # Update the list of available tags.
9808 if test -n "$tagname"; then
9809 echo appending configuration tag \"$tagname\" to $ofile
9813 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9815 ac_cpp='$CXXCPP $CPPFLAGS'
9816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9823 archive_cmds_need_lc_CXX=no
9824 allow_undefined_flag_CXX=
9825 always_export_symbols_CXX=no
9826 archive_expsym_cmds_CXX=
9827 export_dynamic_flag_spec_CXX=
9828 hardcode_direct_CXX=no
9829 hardcode_libdir_flag_spec_CXX=
9830 hardcode_libdir_flag_spec_ld_CXX=
9831 hardcode_libdir_separator_CXX=
9832 hardcode_minus_L_CXX=no
9833 hardcode_automatic_CXX=no
9835 module_expsym_cmds_CXX=
9836 link_all_deplibs_CXX=unknown
9837 old_archive_cmds_CXX=$old_archive_cmds
9838 no_undefined_flag_CXX=
9839 whole_archive_flag_spec_CXX=
9840 enable_shared_with_static_runtimes_CXX=no
9842 # Dependencies to place before and after the object being linked:
9844 postdep_objects_CXX=
9847 compiler_lib_search_path_CXX=
9849 # Source file extension for C++ test sources.
9852 # Object file extension for compiled C++ test sources.
9856 # Code to be used in simple compile tests
9857 lt_simple_compile_test_code="int some_variable = 0;\n"
9859 # Code to be used in simple link tests
9860 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9864 # If no C compiler was specified, use CC.
9867 # Allow CC to be a program name with arguments.
9871 # Allow CC to be a program name with arguments.
9876 lt_save_with_gnu_ld=$with_gnu_ld
9877 lt_save_path_LD=$lt_cv_path_LD
9878 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9879 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9881 unset lt_cv_prog_gnu_ld
9883 if test -n "${lt_cv_path_LDCXX+set}"; then
9884 lt_cv_path_LD=$lt_cv_path_LDCXX
9888 test -z "${LDCXX+set}" || LD=$LDCXX
9892 cc_basename=`$echo X
"$compiler" |
$Xsed -e 's%^.*/%%'`
9894 # We don't want -fno-exception wen compiling C++ code, so set the
9895 # no_builtin_flag separately
9896 if test "$GXX" = yes; then
9897 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9899 lt_prog_compiler_no_builtin_flag_CXX=
9902 if test "$GXX" = yes; then
9903 # Set up default GNU C++ configuration
9906 # Check whether --with-gnu-ld was given.
9907 if test "${with_gnu_ld+set}" = set; then
9908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9914 if test "$GCC" = yes; then
9915 # Check if gcc -print-prog-name=ld gives a path.
9916 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9917 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9920 # gcc leaves a trailing carriage return which upsets mingw
9921 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
9923 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
9926 # Accept absolute paths.
9928 re_direlt='/[^/][^/]*/\.\./'
9929 # Canonicalize the pathname of ld
9930 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
9931 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9932 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
9934 test -z "$LD" && LD="$ac_prog"
9937 # If it fails, then pretend we aren't using GCC.
9941 # If it is relative, then search for the first ld in PATH.
9945 elif test "$with_gnu_ld" = yes; then
9946 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9947 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9949 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9950 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9952 if test "${lt_cv_path_LD+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 if test -z "$LD"; then
9956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9957 for ac_dir in $PATH; do
9959 test -z "$ac_dir" && ac_dir=.
9960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9961 lt_cv_path_LD="$ac_dir/$ac_prog"
9962 # Check to see if the program is GNU ld. I'd rather use --version,
9963 # but apparently some GNU ld's only accept -v.
9964 # Break only if it was the GNU/non-GNU ld that we prefer.
9965 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
9966 *GNU* | *'with BFD'*)
9967 test "$with_gnu_ld" != no && break
9970 test "$with_gnu_ld" != yes && break
9977 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9982 if test -n "$LD"; then
9983 { echo "$as_me:$LINENO: result: $LD" >&5
9984 echo "${ECHO_T}$LD" >&6; }
9986 { echo "$as_me:$LINENO: result: no" >&5
9987 echo "${ECHO_T}no" >&6; }
9989 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9990 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9991 { (exit 1); exit 1; }; }
9992 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9993 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9994 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9998 case `$LD -v 2>&1 </dev
/null
` in
9999 *GNU* | *'with BFD'*)
10000 lt_cv_prog_gnu_ld=yes
10003 lt_cv_prog_gnu_ld=no
10007 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10008 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10009 with_gnu_ld=$lt_cv_prog_gnu_ld
10013 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10014 # archiving commands below assume that GNU ld is being used.
10015 if test "$with_gnu_ld" = yes; then
10016 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10017 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'
10019 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10022 # If archive_cmds runs LD, not CC, wlarc should be empty
10023 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10024 # investigate it a little bit more. (MM)
10027 # ancient GNU ld didn't support --whole-archive et. al.
10028 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10029 grep 'no-whole-archive' > /dev/null; then
10030 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10032 whole_archive_flag_spec_CXX=
10038 # A generic and very simple default shared library creation
10039 # command for GNU C++ for the case where it uses the native
10040 # linker, instead of GNU ld. If possible, this setting should
10041 # overridden to take advantage of the native linker features on
10042 # the platform it is being used on.
10043 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10046 # Commands to make compiler produce verbose output that lists
10047 # what "hidden" libraries, object files and flags are used when
10048 # linking a shared library.
10049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10057 # PORTME: fill in a description of your system's C++ link characteristics
10058 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10059 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10063 # FIXME: insert proper C++ library support
10067 if test "$host_cpu" = ia64; then
10068 # On IA64, the linker does run time linking by default, so we don't
10069 # have to do anything special.
10070 aix_use_runtimelinking=no
10071 exp_sym_flag='-Bexport'
10074 aix_use_runtimelinking=no
10076 # Test if we are trying to use run time linking or normal
10077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10078 # need to do runtime linking.
10079 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10080 for ld_flag in $LDFLAGS; do
10083 aix_use_runtimelinking=yes
10090 exp_sym_flag='-bexport'
10091 no_entry_flag='-bnoentry'
10094 # When large executables or shared objects are built, AIX ld can
10095 # have problems creating the table of contents. If linking a library
10096 # or program results in "error TOC overflow" add -mminimal-toc to
10097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10100 archive_cmds_CXX=''
10101 hardcode_direct_CXX=yes
10102 hardcode_libdir_separator_CXX=':'
10103 link_all_deplibs_CXX=yes
10105 if test "$GXX" = yes; then
10106 case $host_os in aix4.012|aix4.012.*)
10107 # We only want to do this on AIX 4.2 and lower, the check
10108 # below for broken collect2 doesn't work under 4.3+
10109 collect2name=`${CC} -print-prog-name=collect2
`
10110 if test -f "$collect2name" && \
10111 strings "$collect2name" | grep resolve_lib_name >/dev/null
10113 # We have reworked collect2
10114 hardcode_direct_CXX=yes
10116 # We have old collect2
10117 hardcode_direct_CXX=unsupported
10118 # It fails to find uninstalled libraries when the uninstalled
10119 # path is not listed in the libpath. Setting hardcode_minus_L
10120 # to unsupported forces relinking
10121 hardcode_minus_L_CXX=yes
10122 hardcode_libdir_flag_spec_CXX='-L$libdir'
10123 hardcode_libdir_separator_CXX=
10126 shared_flag='-shared'
10129 if test "$host_cpu" = ia64; then
10130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10131 # chokes on -Wl,-G. The following line is correct:
10134 if test "$aix_use_runtimelinking" = yes; then
10135 shared_flag='${wl}-G'
10137 shared_flag='${wl}-bM:SRE'
10142 # It seems that -bexpall does not export symbols beginning with
10143 # underscore (_), so it is better to generate a list of symbols to export.
10144 always_export_symbols_CXX=yes
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # Warning - without using the other runtime loading flags (-brtl),
10147 # -berok will link without error, but may produce a broken library.
10148 allow_undefined_flag_CXX='-berok'
10149 # Determine the default libpath from the value encoded in an empty executable.
10150 cat >conftest.$ac_ext <<_ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10169 *) ac_try_echo
=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>conftest.er1
10174 grep -v '^ *+' conftest.er1
>conftest.err
10176 cat conftest.err
>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_cxx_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest
$ac_exeext &&
10182 $as_test_x conftest
$ac_exeext; then
10184 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10186 # Check for a 64-bit object if we didn't find anything.
10187 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; }
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.
$ac_ext >&5
10196 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10197 conftest
$ac_exeext conftest.
$ac_ext
10198 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10200 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10202 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"
10204 if test "$host_cpu" = ia64; then
10205 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
10206 allow_undefined_flag_CXX="-z nodefs"
10207 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"
10209 # Determine the default libpath from the value encoded in an empty executable.
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_link") 2>conftest.er1
10234 grep -v '^ *+' conftest.er1 >conftest.err
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10238 (exit $ac_status); } && {
10239 test -z "$ac_cxx_werror_flag" ||
10240 test ! -s conftest.err
10241 } && test -s conftest$ac_exeext &&
10242 $as_test_x conftest$ac_exeext; then
10244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10246 # Check for a 64-bit object if we didn't find anything.
10247 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; }
10250 echo "$as_me: failed program was
:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257 conftest$ac_exeext conftest.$ac_ext
10258 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10261 # Warning - without using the other run time loading flags,
10262 # -berok will link without error, but may produce a broken library.
10263 no_undefined_flag_CXX=' ${wl}-bernotok'
10264 allow_undefined_flag_CXX=' ${wl}-berok'
10265 # -bexpall does not export symbols beginning with underscore (_)
10266 always_export_symbols_CXX=yes
10267 # Exported symbols can be pulled into shared objects from archives
10268 whole_archive_flag_spec_CXX=' '
10269 archive_cmds_need_lc_CXX=yes
10270 # This is similar to how AIX traditionally builds it's shared libraries.
10271 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'
10276 case $cc_basename in
10278 # FIXME: insert proper C++ library support
10284 cygwin* | mingw* | pw32*)
10285 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10286 # as there is no search path for DLLs.
10287 hardcode_libdir_flag_spec_CXX='-L$libdir'
10288 allow_undefined_flag_CXX=unsupported
10289 always_export_symbols_CXX=no
10290 enable_shared_with_static_runtimes_CXX=yes
10292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10293 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'
10294 # If the export-symbols file already is a .def file (1st line
10295 # is EXPORTS), use it as is; otherwise, prepend...
10296 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10297 cp $export_symbols $output_objdir/$soname.def;
10299 echo EXPORTS > $output_objdir/$soname.def;
10300 cat $export_symbols >> $output_objdir/$soname.def;
10302 $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'
10308 darwin* | rhapsody*)
10309 if test "$GXX" = yes; then
10310 archive_cmds_need_lc_CXX=no
10312 rhapsody* | darwin1.[012])
10313 allow_undefined_flag_CXX='-undefined suppress'
10316 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10317 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10319 case ${MACOSX_DEPLOYMENT_TARGET} in
10321 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10324 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10330 lt_int_apple_cc_single_mod=no
10331 output_verbose_link_cmd='echo'
10332 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10333 lt_int_apple_cc_single_mod=yes
10335 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10336 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10338 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'
10340 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10343 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10344 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}'
10346 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}'
10348 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}'
10349 hardcode_direct_CXX
=no
10350 hardcode_automatic_CXX
=yes
10351 hardcode_shlibpath_var_CXX
=unsupported
10352 whole_archive_flag_spec_CXX
='-all_load $convenience'
10353 link_all_deplibs_CXX
=yes
10360 case $cc_basename in
10362 # FIXME: insert proper C++ library support
10366 # Green Hills C++ Compiler
10367 # FIXME: insert proper C++ library support
10371 # FIXME: insert proper C++ library support
10377 # C++ shared libraries reported to be fairly broken before switch to ELF
10381 archive_cmds_need_lc_CXX
=no
10383 freebsd
* | kfreebsd
*-gnu)
10384 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10391 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10392 hardcode_libdir_separator_CXX
=:
10393 export_dynamic_flag_spec_CXX
='${wl}-E'
10394 hardcode_direct_CXX
=yes
10395 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10396 # but as the default
10397 # location of the library.
10399 case $cc_basename in
10401 # FIXME: insert proper C++ library support
10405 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'
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10410 # There doesn't appear to be a way to prevent this compiler from
10411 # explicitly linking system object files so we need to strip them
10412 # from the output so that they don't get included in the library
10414 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'
10417 if test "$GXX" = yes; then
10418 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'
10420 # FIXME: insert proper C++ library support
10427 if test $with_gnu_ld = no
; then
10428 case "$host_cpu" in
10430 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10431 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10432 hardcode_libdir_separator_CXX
=:
10435 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10438 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10439 hardcode_libdir_separator_CXX
=:
10440 export_dynamic_flag_spec_CXX
='${wl}-E'
10444 case "$host_cpu" in
10446 hardcode_direct_CXX
=no
10447 hardcode_shlibpath_var_CXX
=no
10450 hardcode_direct_CXX
=no
10451 hardcode_shlibpath_var_CXX
=no
10452 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10453 # but as the default
10454 # location of the library.
10457 hardcode_direct_CXX
=yes
10458 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10459 # but as the default
10460 # location of the library.
10464 case $cc_basename in
10466 # FIXME: insert proper C++ library support
10470 case "$host_cpu" in
10472 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10475 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10486 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'
10489 if test "$GXX" = yes; then
10490 if test $with_gnu_ld = no
; then
10491 case "$host_cpu" in
10493 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10496 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'
10501 # FIXME: insert proper C++ library support
10508 case $cc_basename in
10511 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'
10513 # Archives containing C++ object files must be created using
10514 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10515 # necessary to make sure instantiated templates are included
10517 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10520 if test "$GXX" = yes; then
10521 if test "$with_gnu_ld" = no
; then
10522 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'
10524 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'
10527 link_all_deplibs_CXX
=yes
10530 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10531 hardcode_libdir_separator_CXX
=:
10534 case $cc_basename in
10536 # Kuck and Associates, Inc. (KAI) C++ Compiler
10538 # KCC will only create a shared library if the output file
10539 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10540 # to its proper name (with version) after linking.
10541 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'
10542 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'
10543 # Commands to make compiler produce verbose output that lists
10544 # what "hidden" libraries, object files and flags are used when
10545 # linking a shared library.
10547 # There doesn't appear to be a way to prevent this compiler from
10548 # explicitly linking system object files so we need to strip them
10549 # from the output so that they don't get included in the library
10551 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'
10553 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10554 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10556 # Archives containing C++ object files must be created using
10557 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10558 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10563 archive_cmds_need_lc_CXX
=no
10564 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10565 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'
10566 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10567 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10568 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10572 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573 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'
10575 runpath_var
=LD_RUN_PATH
10576 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10577 hardcode_libdir_separator_CXX
=:
10579 # Commands to make compiler produce verbose output that lists
10580 # what "hidden" libraries, object files and flags are used when
10581 # linking a shared library.
10583 # There doesn't appear to be a way to prevent this compiler from
10584 # explicitly linking system object files so we need to strip them
10585 # from the output so that they don't get included in the library
10587 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'
10592 # FIXME: insert proper C++ library support
10596 # FIXME: insert proper C++ library support
10600 case $cc_basename in
10602 # FIXME: insert proper C++ library support
10606 # FIXME: insert proper C++ library support
10612 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10613 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10615 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10616 hardcode_direct_CXX
=yes
10617 hardcode_shlibpath_var_CXX
=no
10619 # Workaround some broken pre-1.5 toolchains
10620 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10623 case $cc_basename in
10625 # Kuck and Associates, Inc. (KAI) C++ Compiler
10627 # KCC will only create a shared library if the output file
10628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10629 # to its proper name (with version) after linking.
10630 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'
10632 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10633 hardcode_libdir_separator_CXX
=:
10635 # Archives containing C++ object files must be created using
10636 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10637 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10641 # Rational C++ 2.4.1
10642 # FIXME: insert proper C++ library support
10646 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10647 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'
10649 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator_CXX
=:
10652 # Commands to make compiler produce verbose output that lists
10653 # what "hidden" libraries, object files and flags are used when
10654 # linking a shared library.
10656 # There doesn't appear to be a way to prevent this compiler from
10657 # explicitly linking system object files so we need to strip them
10658 # from the output so that they don't get included in the library
10660 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'
10663 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10664 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10665 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'
10667 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10668 hardcode_libdir_separator_CXX
=:
10670 # Commands to make compiler produce verbose output that lists
10671 # what "hidden" libraries, object files and flags are used when
10672 # linking a shared library.
10673 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10676 # FIXME: insert proper C++ library support
10683 case $cc_basename in
10685 # Kuck and Associates, Inc. (KAI) C++ Compiler
10687 # KCC will only create a shared library if the output file
10688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10689 # to its proper name (with version) after linking.
10690 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'
10692 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10693 hardcode_libdir_separator_CXX
=:
10695 # Archives containing C++ object files must be created using
10696 # the KAI C++ compiler.
10697 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
10700 # Rational C++ 2.4.1
10701 # FIXME: insert proper C++ library support
10705 allow_undefined_flag_CXX
=' -expect_unresolved \*'
10706 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'
10707 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10708 echo "-hidden">> $lib.exp~
10709 $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~
10712 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10713 hardcode_libdir_separator_CXX
=:
10715 # Commands to make compiler produce verbose output that lists
10716 # what "hidden" libraries, object files and flags are used when
10717 # linking a shared library.
10719 # There doesn't appear to be a way to prevent this compiler from
10720 # explicitly linking system object files so we need to strip them
10721 # from the output so that they don't get included in the library
10723 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'
10726 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10727 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10728 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'
10730 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10731 hardcode_libdir_separator_CXX
=:
10733 # Commands to make compiler produce verbose output that lists
10734 # what "hidden" libraries, object files and flags are used when
10735 # linking a shared library.
10736 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10739 # FIXME: insert proper C++ library support
10746 # FIXME: insert proper C++ library support
10750 archive_cmds_need_lc_CXX
=no
10751 case $cc_basename in
10753 # FIXME: insert proper C++ library support
10757 # FIXME: insert proper C++ library support
10763 case $cc_basename in
10766 # FIXME: insert proper C++ library support
10771 # FIXME: insert proper C++ library support
10775 # FIXME: insert proper C++ library support
10781 case $cc_basename in
10783 # Sun C++ 4.2, 5.x and Centerline C++
10784 no_undefined_flag_CXX
=' -zdefs'
10785 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10786 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10787 $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'
10789 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10790 hardcode_shlibpath_var_CXX
=no
10792 solaris2.0
-5 | solaris2.0
-5.
*) ;;
10794 # The C++ compiler is used as linker so we must use $wl
10795 # flag to pass the commands to the underlying system
10797 # Supported since Solaris 2.6 (maybe 2.5.1?)
10798 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10801 link_all_deplibs_CXX
=yes
10803 # Commands to make compiler produce verbose output that lists
10804 # what "hidden" libraries, object files and flags are used when
10805 # linking a shared library.
10807 # There doesn't appear to be a way to prevent this compiler from
10808 # explicitly linking system object files so we need to strip them
10809 # from the output so that they don't get included in the library
10811 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'
10813 # Archives containing C++ object files must be created using
10814 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10815 # necessary to make sure instantiated templates are included
10817 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
10820 # Green Hills C++ Compiler
10821 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10823 # The C++ compiler must be used to create the archive.
10824 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10827 # GNU C++ compiler with Solaris linker
10828 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10829 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
10830 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
10831 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10832 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10833 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10835 # Commands to make compiler produce verbose output that lists
10836 # what "hidden" libraries, object files and flags are used when
10837 # linking a shared library.
10838 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10840 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10842 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10843 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10844 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10846 # Commands to make compiler produce verbose output that lists
10847 # what "hidden" libraries, object files and flags are used when
10848 # linking a shared library.
10849 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10852 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
10857 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10858 archive_cmds_need_lc_CXX
=no
10861 case $cc_basename in
10863 # NonStop-UX NCC 3.20
10864 # FIXME: insert proper C++ library support
10868 # FIXME: insert proper C++ library support
10874 # FIXME: insert proper C++ library support
10878 # FIXME: insert proper C++ library support
10882 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10883 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10884 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
10890 ## There is no encapsulation within the following macros, do not change
10891 ## the running order or otherwise move them around unless you know exactly
10892 ## what you are doing...
10894 cat > conftest.
$ac_ext <<EOF
10898 Foo (void) { a = 0; }
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; then
10909 # Parse the compiler output and extract the necessary
10910 # objects, libraries and library flags.
10912 # Sentinel used to keep track of whether or not we are before
10913 # the conftest object file.
10914 pre_test_object_deps_done
=no
10916 # The `*' in the case matches for architectures that use `case' in
10917 # $output_verbose_cmd can trigger glob expansion during the loop
10918 # eval without this substitution.
10919 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10921 for p
in `eval $output_verbose_link_cmd`; do
10925 # Some compilers place space between "-{L,R}" and the path.
10926 # Remove the space.
10927 if test $p = "-L" \
10928 ||
test $p = "-R"; then
10935 if test "$pre_test_object_deps_done" = no
; then
10938 # Internal compiler library paths should come after those
10939 # provided the user. The postdeps already come after the
10940 # user supplied libs so there is no need to process them.
10941 if test -z "$compiler_lib_search_path_CXX"; then
10942 compiler_lib_search_path_CXX
="${prev}${p}"
10944 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
10947 # The "-l" case would never come before the object being
10948 # linked, so don't bother handling this case.
10951 if test -z "$postdeps_CXX"; then
10952 postdeps_CXX
="${prev}${p}"
10954 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
10960 # This assumes that the test object file only shows up
10961 # once in the compiler output.
10962 if test "$p" = "conftest.$objext"; then
10963 pre_test_object_deps_done
=yes
10967 if test "$pre_test_object_deps_done" = no
; then
10968 if test -z "$predep_objects_CXX"; then
10969 predep_objects_CXX
="$p"
10971 predep_objects_CXX
="$predep_objects_CXX $p"
10974 if test -z "$postdep_objects_CXX"; then
10975 postdep_objects_CXX
="$p"
10977 postdep_objects_CXX
="$postdep_objects_CXX $p"
10982 *) ;; # Ignore the rest.
10990 echo "libtool.m4: error: problem compiling CXX test program"
10993 $rm -f confest.
$objext
10995 case " $postdeps_CXX " in
10996 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
10999 lt_prog_compiler_wl_CXX
=
11000 lt_prog_compiler_pic_CXX
=
11001 lt_prog_compiler_static_CXX
=
11003 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11006 # C++ specific cases for pic, static, wl, etc.
11007 if test "$GXX" = yes; then
11008 lt_prog_compiler_wl_CXX
='-Wl,'
11009 lt_prog_compiler_static_CXX
='-static'
11013 # All AIX code is PIC.
11014 if test "$host_cpu" = ia64
; then
11015 # AIX 5 now supports IA64 processor
11016 lt_prog_compiler_static_CXX
='-Bstatic'
11020 # FIXME: we need at least 68020 code to build shared libraries, but
11021 # adding the `-m68020' flag to GCC prevents building anything better,
11023 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11025 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11026 # PIC is the default for these OSes.
11028 mingw
* | os2
* | pw32
*)
11029 # This hack is so that the source file can tell whether it is being
11030 # built for inclusion in a dll (and should export symbols for example).
11031 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11033 darwin
* | rhapsody
*)
11034 # PIC is the default on this platform
11035 # Common symbols not allowed in MH_DYLIB files
11036 lt_prog_compiler_pic_CXX
='-fno-common'
11039 # DJGPP does not support shared libraries at all
11040 lt_prog_compiler_pic_CXX
=
11043 if test -d /usr
/nec
; then
11044 lt_prog_compiler_pic_CXX
=-Kconform_pic
11048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11049 # not for PA HP-UX.
11050 case "$host_cpu" in
11054 lt_prog_compiler_pic_CXX
='-fPIC'
11059 lt_prog_compiler_pic_CXX
='-fPIC'
11065 # All AIX code is PIC.
11066 if test "$host_cpu" = ia64
; then
11067 # AIX 5 now supports IA64 processor
11068 lt_prog_compiler_static_CXX
='-Bstatic'
11070 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11074 case $cc_basename in
11076 # Green Hills C++ Compiler
11077 # _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"
11082 case $cc_basename in
11084 lt_prog_compiler_pic_CXX
='-KPIC'
11087 # Green Hills C++ Compiler
11088 lt_prog_compiler_pic_CXX
='-pic'
11094 freebsd
* | kfreebsd
*-gnu)
11095 # FreeBSD uses GNU C++
11097 hpux9
* | hpux10
* | hpux11
*)
11098 case $cc_basename in
11100 lt_prog_compiler_wl_CXX
='-Wl,'
11101 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11102 if test "$host_cpu" != ia64
; then
11103 lt_prog_compiler_pic_CXX
='+Z'
11107 lt_prog_compiler_wl_CXX
='-Wl,'
11108 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11109 case "$host_cpu" in
11114 lt_prog_compiler_pic_CXX
='+Z'
11122 irix5
* | irix6
* | nonstopux
*)
11123 case $cc_basename in
11125 lt_prog_compiler_wl_CXX
='-Wl,'
11126 lt_prog_compiler_static_CXX
='-non_shared'
11127 # CC pic flag -KPIC is the default.
11134 case $cc_basename in
11137 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11138 lt_prog_compiler_pic_CXX
='-fPIC'
11142 lt_prog_compiler_wl_CXX
='-Wl,'
11143 lt_prog_compiler_pic_CXX
='-KPIC'
11144 lt_prog_compiler_static_CXX
='-static'
11148 # Make sure the PIC flag is empty. It appears that all Alpha
11149 # Linux and Compaq Tru64 Unix objects are PIC.
11150 lt_prog_compiler_pic_CXX
=
11151 lt_prog_compiler_static_CXX
='-non_shared'
11162 case $cc_basename in
11164 lt_prog_compiler_pic_CXX
='-W c,exportall'
11172 osf3
* | osf4
* | osf5
*)
11173 case $cc_basename in
11175 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11178 # Rational C++ 2.4.1
11179 lt_prog_compiler_pic_CXX
='-pic'
11182 # Digital/Compaq C++
11183 lt_prog_compiler_wl_CXX
='-Wl,'
11184 # Make sure the PIC flag is empty. It appears that all Alpha
11185 # Linux and Compaq Tru64 Unix objects are PIC.
11186 lt_prog_compiler_pic_CXX
=
11187 lt_prog_compiler_static_CXX
='-non_shared'
11196 case $cc_basename in
11198 lt_prog_compiler_pic_CXX
='-fPIC'
11205 case $cc_basename in
11207 # Sun C++ 4.2, 5.x and Centerline C++
11208 lt_prog_compiler_pic_CXX
='-KPIC'
11209 lt_prog_compiler_static_CXX
='-Bstatic'
11210 lt_prog_compiler_wl_CXX
='-Qoption ld '
11213 # Green Hills C++ Compiler
11214 lt_prog_compiler_pic_CXX
='-PIC'
11221 case $cc_basename in
11224 lt_prog_compiler_pic_CXX
='-pic'
11225 lt_prog_compiler_static_CXX
='-Bstatic'
11229 lt_prog_compiler_pic_CXX
='-pic'
11236 case $cc_basename in
11238 # NonStop-UX NCC 3.20
11239 lt_prog_compiler_pic_CXX
='-KPIC'
11250 lt_prog_compiler_can_build_shared_CXX
=no
11255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11256 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11259 # Check to make sure the PIC flag actually works.
11261 if test -n "$lt_prog_compiler_pic_CXX"; then
11263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11265 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 lt_prog_compiler_pic_works_CXX
=no
11269 ac_outfile
=conftest.
$ac_objext
11270 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11271 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11272 # Insert the option either (1) after the last *FLAGS variable, or
11273 # (2) before a word containing "conftest.", or (3) at the end.
11274 # Note that $ac_compile itself does not contain backslashes and begins
11275 # with a dollar sign (not a hyphen), so the echo should work correctly.
11276 # The option is referenced via a variable to avoid confusing sed.
11277 lt_compile
=`echo "$ac_compile" | $SED \
11278 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11280 -e 's:$: $lt_compiler_flag:'`
11281 (eval echo "\"\$as_me:11281: $lt_compile\"" >&5)
11282 (eval "$lt_compile" 2>conftest.err
)
11284 cat conftest.err
>&5
11285 echo "$as_me:11285: \$? = $ac_status" >&5
11286 if (exit $ac_status) && test -s "$ac_outfile"; then
11287 # The compiler can only warn and ignore the option if not recognized
11288 # So say no if there are warnings
11289 if test ! -s conftest.err
; then
11290 lt_prog_compiler_pic_works_CXX
=yes
11296 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11297 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11299 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11300 case $lt_prog_compiler_pic_CXX in
11302 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11305 lt_prog_compiler_pic_CXX
=
11306 lt_prog_compiler_can_build_shared_CXX
=no
11311 # For platforms which do not support PIC, -DPIC is meaningless:
11313 lt_prog_compiler_pic_CXX
=
11316 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11320 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11322 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 lt_cv_prog_compiler_c_o_CXX
=no
11326 $rm -r conftest
2>/dev
/null
11330 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11332 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11333 # that will create temporary files in the current directory regardless of
11334 # the output directory. Thus, making CWD read-only will cause this test
11335 # to fail, enabling locking or at least warning the user not to do parallel
11339 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11340 # Insert the option either (1) after the last *FLAGS variable, or
11341 # (2) before a word containing "conftest.", or (3) at the end.
11342 # Note that $ac_compile itself does not contain backslashes and begins
11343 # with a dollar sign (not a hyphen), so the echo should work correctly.
11344 lt_compile
=`echo "$ac_compile" | $SED \
11345 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11347 -e 's:$: $lt_compiler_flag:'`
11348 (eval echo "\"\$as_me:11348: $lt_compile\"" >&5)
11349 (eval "$lt_compile" 2>out
/conftest.err
)
11351 cat out
/conftest.err
>&5
11352 echo "$as_me:11352: \$? = $ac_status" >&5
11353 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11355 # The compiler can only warn and ignore the option if not recognized
11356 # So say no if there are warnings
11357 if test ! -s out
/conftest.err
; then
11358 lt_cv_prog_compiler_c_o_CXX
=yes
11363 # SGI C++ compiler will create directory out/ii_files/ for
11364 # template instantiation
11365 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11366 $rm out
/* && rmdir out
11372 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11373 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11376 hard_links
="nottested"
11377 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11378 # do not overwrite the value of need_locks provided by the user
11379 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11380 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11383 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11385 ln conftest.a conftest.b
2>&5 || hard_links
=no
11386 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11387 { echo "$as_me:$LINENO: result: $hard_links" >&5
11388 echo "${ECHO_T}$hard_links" >&6; }
11389 if test "$hard_links" = no
; then
11390 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11391 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11398 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11401 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11404 # If we're using GNU nm, then we don't want the "-C" option.
11405 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11406 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11407 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'
11409 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'
11413 export_symbols_cmds_CXX
="$ltdll_cmds"
11416 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11419 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11423 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11424 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11425 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11427 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11428 if test "$GCC" = yes; then
11429 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11433 # Do we need to explicitly link libc?
11435 case "x$archive_cmds_need_lc_CXX" in
11437 # Assume -lc should be added
11438 archive_cmds_need_lc_CXX
=yes
11440 if test "$enable_shared" = yes && test "$GCC" = yes; then
11441 case $archive_cmds_CXX in
11443 # FIXME: we may have to deal with multi-command sequences.
11446 # Test whether the compiler implicitly links with -lc since on some
11447 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11448 # to ld, don't add -lc before -lgcc.
11449 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11450 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11452 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } 2>conftest.err
; then
11461 libobjs
=conftest.
$ac_objext
11463 wl
=$lt_prog_compiler_wl_CXX
11469 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11470 allow_undefined_flag_CXX
=
11471 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11472 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }
11477 archive_cmds_need_lc_CXX
=no
11479 archive_cmds_need_lc_CXX
=yes
11481 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11483 cat conftest.err
1>&5
11486 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11487 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11494 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11495 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11496 library_names_spec
=
11497 libname_spec
='lib$name'
11501 postuninstall_cmds
=
11505 shlibpath_overrides_runpath
=unknown
11507 dynamic_linker
="$host_os ld.so"
11508 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11509 if test "$GCC" = yes; then
11510 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11511 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11512 # if the path contains ";" then we assume it to be the separator
11513 # otherwise default to the standard path separator (i.e. ":") - it is
11514 # assumed that no part of a normal pathname contains ";" but that should
11515 # okay in the real world where ";" in dirpaths is itself problematic.
11516 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11518 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11521 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11523 need_lib_prefix
=unknown
11524 hardcode_into_libs
=no
11526 # when you set need_version to no, make sure it does not cause -set_version
11527 # flags to be left without arguments
11528 need_version
=unknown
11533 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11534 shlibpath_var
=LIBPATH
11536 # AIX 3 has no versioning support, so we append a major version to the name.
11537 soname_spec
='${libname}${release}${shared_ext}$major'
11544 hardcode_into_libs
=yes
11545 if test "$host_cpu" = ia64
; then
11546 # AIX 5 supports IA64
11547 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11548 shlibpath_var
=LD_LIBRARY_PATH
11550 # With GCC up to 2.95.x, collect2 would create an import file
11551 # for dependence libraries. The import file would start with
11552 # the line `#! .'. This would cause the generated library to
11553 # depend on `.', always an invalid library. This was fixed in
11554 # development snapshots of GCC prior to 3.0.
11556 aix4 | aix4.
[01] | aix4.
[01].
*)
11557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11559 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11562 can_build_shared
=no
11566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11567 # soname into executable. Probably we can add versioning support to
11568 # collect2, so additional links can be useful in future.
11569 if test "$aix_use_runtimelinking" = yes; then
11570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11571 # instead of lib<name>.a to let people know that these are not
11572 # typical AIX shared libraries.
11573 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 # We preserve .a as extension for shared libraries through AIX4.2
11576 # and later when we are not doing run time linking.
11577 library_names_spec
='${libname}${release}.a $libname.a'
11578 soname_spec
='${libname}${release}${shared_ext}$major'
11580 shlibpath_var
=LIBPATH
11585 library_names_spec
='$libname.ixlibrary $libname.a'
11586 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11587 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'
11591 library_names_spec
='${libname}${shared_ext}'
11592 dynamic_linker
="$host_os ld.so"
11593 shlibpath_var
=LIBRARY_PATH
11599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600 soname_spec
='${libname}${release}${shared_ext}$major'
11601 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11602 shlibpath_var
=LD_LIBRARY_PATH
11603 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11604 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11605 # the default ld.so.conf also contains /usr/contrib/lib and
11606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11607 # libtool to hard-code these into programs
11610 cygwin
* | mingw
* | pw32
*)
11611 version_type
=windows
11616 case $GCC,$host_os in
11617 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11618 library_names_spec
='$libname.dll.a'
11619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11620 postinstall_cmds
='base_file=`basename \${file}`~
11621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11622 dldir=$destdir/`dirname \$dlpath`~
11623 test -d \$dldir || mkdir -p \$dldir~
11624 $install_prog $dir/$dlname \$dldir/$dlname'
11625 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11626 dlpath=$dir/\$dldll~
11628 shlibpath_overrides_runpath
=yes
11632 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11633 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11634 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
11637 # MinGW DLLs use traditional 'lib' prefix
11638 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11639 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11640 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11641 # It is most probably a Windows format PATH printed by
11642 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11643 # path with ; separators, and with drive letters. We can handle the
11644 # drive letters (cygwin fileutils understands them), so leave them,
11645 # especially as we might pass files found there to a mingw objdump,
11646 # which wouldn't understand a cygwinified path. Ahh.
11647 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11649 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11653 # pw32 DLLs use 'pw' prefix rather than 'lib'
11654 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11660 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11663 dynamic_linker
='Win32 ld.exe'
11664 # FIXME: first we should search . and the directory the executable is in
11668 darwin
* | rhapsody
*)
11669 dynamic_linker
="$host_os dyld"
11670 version_type
=darwin
11673 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11674 soname_spec
='${libname}${release}${major}$shared_ext'
11675 shlibpath_overrides_runpath
=yes
11676 shlibpath_var
=DYLD_LIBRARY_PATH
11677 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
11678 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11679 if test "$GCC" = yes; then
11680 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"`
11682 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
11684 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11692 soname_spec
='${libname}${release}${shared_ext}$major'
11693 shlibpath_var
=LD_LIBRARY_PATH
11704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11705 soname_spec
='${libname}${release}${shared_ext}$major'
11706 shlibpath_var
=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath
=no
11708 hardcode_into_libs
=yes
11709 dynamic_linker
='GNU ld.so'
11713 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11714 version_type
=freebsd-
$objformat
11715 case $version_type in
11717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11722 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11726 shlibpath_var
=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath
=yes
11731 freebsd3.01
* | freebsdelf3.01
*)
11732 shlibpath_overrides_runpath
=yes
11733 hardcode_into_libs
=yes
11736 shlibpath_overrides_runpath
=no
11737 hardcode_into_libs
=yes
11746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11747 soname_spec
='${libname}${release}${shared_ext}$major'
11748 shlibpath_var
=LD_LIBRARY_PATH
11749 hardcode_into_libs
=yes
11752 hpux9
* | hpux10
* | hpux11
*)
11753 # Give a soname corresponding to the major version so that dld.sl refuses to
11754 # link against other versions.
11758 case "$host_cpu" in
11761 hardcode_into_libs
=yes
11762 dynamic_linker
="$host_os dld.so"
11763 shlibpath_var
=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11766 soname_spec
='${libname}${release}${shared_ext}$major'
11767 if test "X$HPUX_IA64_MODE" = X32
; then
11768 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11770 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11772 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11776 hardcode_into_libs
=yes
11777 dynamic_linker
="$host_os dld.sl"
11778 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11779 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec
='${libname}${release}${shared_ext}$major'
11782 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11783 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11787 dynamic_linker
="$host_os dld.sl"
11788 shlibpath_var
=SHLIB_PATH
11789 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec
='${libname}${release}${shared_ext}$major'
11794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11795 postinstall_cmds
='chmod 555 $lib'
11798 irix5
* | irix6
* | nonstopux
*)
11800 nonstopux
*) version_type
=nonstopux
;;
11802 if test "$lt_cv_prog_gnu_ld" = yes; then
11810 soname_spec
='${libname}${release}${shared_ext}$major'
11811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11813 irix5
* | nonstopux
*)
11814 libsuff
= shlibsuff
=
11817 case $LD in # libtool.m4 will add one of these switches to LD
11818 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11819 libsuff
= shlibsuff
= libmagic
=32-bit;;
11820 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11821 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11822 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11823 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11824 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11828 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11829 shlibpath_overrides_runpath
=no
11830 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11831 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11832 hardcode_into_libs
=yes
11835 # No shared lib support for Linux oldld, aout, or coff.
11836 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11840 # This must be Linux ELF.
11845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846 soname_spec
='${libname}${release}${shared_ext}$major'
11847 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11848 shlibpath_var
=LD_LIBRARY_PATH
11849 shlibpath_overrides_runpath
=no
11850 # This implies no fast_install, which is unacceptable.
11851 # Some rework will be needed to allow for fast_install
11852 # before this can be enabled.
11853 hardcode_into_libs
=yes
11855 # We used to test for /lib/ld.so.1 and disable shared libraries on
11856 # powerpc, because MkLinux only supported shared libraries with the
11857 # GNU dynamic linker. Since this was broken with cross compilers,
11858 # most powerpc-linux boxes support dynamic linking these days and
11859 # people can always --disable-shared, the test was removed, and we
11860 # assume the GNU/Linux dynamic linker is in use.
11861 dynamic_linker
='GNU/Linux ld.so'
11868 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11870 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11871 dynamic_linker
='NetBSD (a.out) ld.so'
11873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11874 soname_spec
='${libname}${release}${shared_ext}$major'
11875 dynamic_linker
='NetBSD ld.elf_so'
11877 shlibpath_var
=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath
=yes
11879 hardcode_into_libs
=yes
11884 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885 shlibpath_var
=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath
=yes
11893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11894 soname_spec
='${libname}${release}${shared_ext}$major'
11895 shlibpath_var
=LD_LIBRARY_PATH
11896 shlibpath_overrides_runpath
=yes
11903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11904 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11905 shlibpath_var
=LD_LIBRARY_PATH
11906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11908 openbsd2.
[89] | openbsd2.
[89].
*)
11909 shlibpath_overrides_runpath
=no
11912 shlibpath_overrides_runpath
=yes
11916 shlibpath_overrides_runpath
=yes
11921 libname_spec
='$name'
11924 library_names_spec
='$libname${shared_ext} $libname.a'
11925 dynamic_linker
='OS/2 ld.exe'
11926 shlibpath_var
=LIBPATH
11929 osf3
* | osf4
* | osf5
*)
11933 soname_spec
='${libname}${release}${shared_ext}$major'
11934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11935 shlibpath_var
=LD_LIBRARY_PATH
11936 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11937 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11942 soname_spec
='${libname}${release}${shared_ext}$major'
11943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944 shlibpath_var
=LD_LIBRARY_PATH
11951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 soname_spec
='${libname}${release}${shared_ext}$major'
11953 shlibpath_var
=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath
=yes
11955 hardcode_into_libs
=yes
11956 # ldd complains unless libraries are executable
11957 postinstall_cmds
='chmod +x $lib'
11962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11964 shlibpath_var
=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath
=yes
11966 if test "$with_gnu_ld" = yes; then
11972 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975 soname_spec
='${libname}${release}${shared_ext}$major'
11976 shlibpath_var
=LD_LIBRARY_PATH
11977 case $host_vendor in
11979 shlibpath_overrides_runpath
=no
11981 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11982 runpath_var
=LD_RUN_PATH
11990 shlibpath_overrides_runpath
=no
11991 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11997 if test -d /usr
/nec
;then
11999 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12000 soname_spec
='$libname${shared_ext}.$major'
12001 shlibpath_var
=LD_LIBRARY_PATH
12007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008 soname_spec
='${libname}${release}${shared_ext}$major'
12009 shlibpath_var
=LD_LIBRARY_PATH
12016 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12017 echo "${ECHO_T}$dynamic_linker" >&6; }
12018 test "$dynamic_linker" = no
&& can_build_shared
=no
12020 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12022 hardcode_action_CXX
=
12023 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12024 test -n "$runpath_var CXX" || \
12025 test "X$hardcode_automatic_CXX"="Xyes" ; then
12027 # We can hardcode non-existant directories.
12028 if test "$hardcode_direct_CXX" != no
&&
12029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12030 # have to relink, otherwise we might link with an installed library
12031 # when we should be linking with a yet-to-be-installed one
12032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12033 test "$hardcode_minus_L_CXX" != no
; then
12034 # Linking always hardcodes the temporary library directory.
12035 hardcode_action_CXX
=relink
12037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12038 hardcode_action_CXX
=immediate
12041 # We cannot hardcode anything, or else we can only hardcode existing
12043 hardcode_action_CXX
=unsupported
12045 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12046 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12048 if test "$hardcode_action_CXX" = relink
; then
12049 # Fast installation is not supported
12050 enable_fast_install
=no
12051 elif test "$shlibpath_overrides_runpath" = yes ||
12052 test "$enable_shared" = no
; then
12053 # Fast installation is not necessary
12054 enable_fast_install
=needless
12059 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12060 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12061 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12062 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12063 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12064 { echo "$as_me:$LINENO: result: yes" >&5
12065 echo "${ECHO_T}yes" >&6; }
12067 # FIXME - insert some real tests, host_os isn't really good enough
12070 if test -n "$STRIP" ; then
12071 striplib
="$STRIP -x"
12072 { echo "$as_me:$LINENO: result: yes" >&5
12073 echo "${ECHO_T}yes" >&6; }
12075 { echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6; }
12080 { echo "$as_me:$LINENO: result: no" >&5
12081 echo "${ECHO_T}no" >&6; }
12086 if test "x$enable_dlopen" != xyes
; then
12087 enable_dlopen
=unknown
12088 enable_dlopen_self
=unknown
12089 enable_dlopen_self_static
=unknown
12096 lt_cv_dlopen
="load_add_on"
12098 lt_cv_dlopen_self
=yes
12102 lt_cv_dlopen
="LoadLibrary"
12107 lt_cv_dlopen
="dlopen"
12112 # if libdl is installed we need to link against it
12113 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12114 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 ac_check_lib_save_LIBS
=$LIBS
12120 cat >conftest.
$ac_ext <<_ACEOF
12123 cat confdefs.h
>>conftest.
$ac_ext
12124 cat >>conftest.
$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12142 rm -f conftest.
$ac_objext conftest
$ac_exeext
12143 if { (ac_try
="$ac_link"
12144 case "(($ac_try" in
12145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_link") 2>conftest.er1
12151 grep -v '^ *+' conftest.er1 >conftest.err
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } && {
12156 test -z "$ac_cxx_werror_flag" ||
12157 test ! -s conftest.err
12158 } && test -s conftest$ac_exeext &&
12159 $as_test_x conftest$ac_exeext; then
12160 ac_cv_lib_dl_dlopen=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_lib_dl_dlopen=no
12168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12169 conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12172 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12174 if test $ac_cv_lib_dl_dlopen = yes; then
12175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12178 lt_cv_dlopen="dyld"
12180 lt_cv_dlopen_self=yes
12187 { echo "$as_me:$LINENO: checking for shl_load" >&5
12188 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12189 if test "${ac_cv_func_shl_load+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12200 #define shl_load innocuous_shl_load
12202 /* System header to define __stub macros and hopefully few prototypes,
12203 which can conflict with char shl_load (); below.
12204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12205 <limits.h> exists even on freestanding compilers. */
12208 # include <limits.h>
12210 # include <assert.h>
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined __stub_shl_load || defined __stub___shl_load
12232 return shl_load ();
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12241 *) ac_try_echo
=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1
>conftest.err
12248 cat conftest.err
>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_cxx_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest
$ac_exeext &&
12254 $as_test_x conftest
$ac_exeext; then
12255 ac_cv_func_shl_load
=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.
$ac_ext >&5
12260 ac_cv_func_shl_load
=no
12263 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12264 conftest
$ac_exeext conftest.
$ac_ext
12266 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12267 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12268 if test $ac_cv_func_shl_load = yes; then
12269 lt_cv_dlopen
="shl_load"
12271 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12272 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_check_lib_save_LIBS
=$LIBS
12278 cat >conftest.
$ac_ext <<_ACEOF
12281 cat confdefs.h
>>conftest.
$ac_ext
12282 cat >>conftest.
$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12285 /* Override any GCC internal prototype to avoid an error.
12286 Use char because int might match the return type of a GCC
12287 builtin and then its argument prototype would still apply. */
12295 return shl_load ();
12300 rm -f conftest.
$ac_objext conftest
$ac_exeext
12301 if { (ac_try
="$ac_link"
12302 case "(($ac_try" in
12303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_link") 2>conftest.er1
12309 grep -v '^ *+' conftest.er1 >conftest.err
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && {
12314 test -z "$ac_cxx_werror_flag" ||
12315 test ! -s conftest.err
12316 } && test -s conftest$ac_exeext &&
12317 $as_test_x conftest$ac_exeext; then
12318 ac_cv_lib_dld_shl_load=yes
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_lib_dld_shl_load=no
12326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12327 conftest$ac_exeext conftest.$ac_ext
12328 LIBS=$ac_check_lib_save_LIBS
12330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12332 if test $ac_cv_lib_dld_shl_load = yes; then
12333 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12335 { echo "$as_me:$LINENO: checking for dlopen" >&5
12336 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12337 if test "${ac_cv_func_dlopen+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12348 #define dlopen innocuous_dlopen
12350 /* System header to define __stub macros and hopefully few prototypes,
12351 which can conflict with char dlopen (); below.
12352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12353 <limits.h> exists even on freestanding compilers. */
12356 # include <limits.h>
12358 # include <assert.h>
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined __stub_dlopen || defined __stub___dlopen
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12389 *) ac_try_echo
=$ac_try;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_link") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1
>conftest.err
12396 cat conftest.err
>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_cxx_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest
$ac_exeext &&
12402 $as_test_x conftest
$ac_exeext; then
12403 ac_cv_func_dlopen
=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.
$ac_ext >&5
12408 ac_cv_func_dlopen
=no
12411 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12412 conftest
$ac_exeext conftest.
$ac_ext
12414 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12415 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12416 if test $ac_cv_func_dlopen = yes; then
12417 lt_cv_dlopen
="dlopen"
12419 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12420 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12421 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 ac_check_lib_save_LIBS
=$LIBS
12426 cat >conftest.
$ac_ext <<_ACEOF
12429 cat confdefs.h
>>conftest.
$ac_ext
12430 cat >>conftest.
$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12448 rm -f conftest.
$ac_objext conftest
$ac_exeext
12449 if { (ac_try
="$ac_link"
12450 case "(($ac_try" in
12451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_link") 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && {
12462 test -z "$ac_cxx_werror_flag" ||
12463 test ! -s conftest.err
12464 } && test -s conftest$ac_exeext &&
12465 $as_test_x conftest$ac_exeext; then
12466 ac_cv_lib_dl_dlopen=yes
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_cv_lib_dl_dlopen=no
12474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12480 if test $ac_cv_lib_dl_dlopen = yes; then
12481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12483 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-lsvld $LIBS"
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12516 *) ac_try_echo
=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12521 grep -v '^ *+' conftest.er1
>conftest.err
12523 cat conftest.err
>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && {
12526 test -z "$ac_cxx_werror_flag" ||
12527 test ! -s conftest.err
12528 } && test -s conftest
$ac_exeext &&
12529 $as_test_x conftest
$ac_exeext; then
12530 ac_cv_lib_svld_dlopen
=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.
$ac_ext >&5
12535 ac_cv_lib_svld_dlopen
=no
12538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12539 conftest
$ac_exeext conftest.
$ac_ext
12540 LIBS
=$ac_check_lib_save_LIBS
12542 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12543 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12544 if test $ac_cv_lib_svld_dlopen = yes; then
12545 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12547 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12548 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12549 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 ac_check_lib_save_LIBS
=$LIBS
12554 cat >conftest.
$ac_ext <<_ACEOF
12557 cat confdefs.h
>>conftest.
$ac_ext
12558 cat >>conftest.
$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply. */
12571 return dld_link ();
12576 rm -f conftest.
$ac_objext conftest
$ac_exeext
12577 if { (ac_try
="$ac_link"
12578 case "(($ac_try" in
12579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_link") 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } && {
12590 test -z "$ac_cxx_werror_flag" ||
12591 test ! -s conftest.err
12592 } && test -s conftest$ac_exeext &&
12593 $as_test_x conftest$ac_exeext; then
12594 ac_cv_lib_dld_dld_link=yes
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 ac_cv_lib_dld_dld_link=no
12602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12603 conftest$ac_exeext conftest.$ac_ext
12604 LIBS=$ac_check_lib_save_LIBS
12606 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12607 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12608 if test $ac_cv_lib_dld_dld_link = yes; then
12609 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12630 if test "x$lt_cv_dlopen" != xno; then
12636 case $lt_cv_dlopen in
12638 save_CPPFLAGS="$CPPFLAGS"
12639 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12641 save_LDFLAGS="$LDFLAGS"
12642 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12645 LIBS="$lt_cv_dlopen_libs $LIBS"
12647 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12648 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12649 if test "${lt_cv_dlopen_self+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 if test "$cross_compiling" = yes; then :
12653 lt_cv_dlopen_self=cross
12655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12656 lt_status=$lt_dlunknown
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12658 "configure"
12659 #include "confdefs.h"
12668 # define LT_DLGLOBAL RTLD_GLOBAL
12671 # define LT_DLGLOBAL DL_GLOBAL
12673 # define LT_DLGLOBAL 0
12677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12678 find out it does not work in some platform. */
12679 #ifndef LT_DLLAZY_OR_NOW
12681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12684 # define LT_DLLAZY_OR_NOW DL_LAZY
12687 # define LT_DLLAZY_OR_NOW RTLD_NOW
12690 # define LT_DLLAZY_OR_NOW DL_NOW
12692 # define LT_DLLAZY_OR_NOW 0
12700 extern "C" void exit (int);
12703 void fnord() { int i=42;}
12706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12707 int status = $lt_dlunknown;
12711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12712 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12713 /* dlclose (self); */
12719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12720 (eval $ac_link) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12724 (./conftest; exit; ) 2>/dev/null
12726 case x$lt_status in
12727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12729 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12732 # compilation failed
12733 lt_cv_dlopen_self=no
12740 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12741 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12743 if test "x$lt_cv_dlopen_self" = xyes; then
12744 LDFLAGS="$LDFLAGS $link_static_flag"
12745 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12746 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12747 if test "${lt_cv_dlopen_self_static+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 if test "$cross_compiling" = yes; then :
12751 lt_cv_dlopen_self_static=cross
12753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12754 lt_status=$lt_dlunknown
12755 cat > conftest.$ac_ext <<EOF
12756 #line 12756 "configure"
12757 #include "confdefs.h"
12766 # define LT_DLGLOBAL RTLD_GLOBAL
12769 # define LT_DLGLOBAL DL_GLOBAL
12771 # define LT_DLGLOBAL 0
12775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12776 find out it does not work in some platform. */
12777 #ifndef LT_DLLAZY_OR_NOW
12779 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12782 # define LT_DLLAZY_OR_NOW DL_LAZY
12785 # define LT_DLLAZY_OR_NOW RTLD_NOW
12788 # define LT_DLLAZY_OR_NOW DL_NOW
12790 # define LT_DLLAZY_OR_NOW 0
12798 extern "C" void exit (int);
12801 void fnord() { int i=42;}
12804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12805 int status = $lt_dlunknown;
12809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12811 /* dlclose (self); */
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818 (eval $ac_link) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12822 (./conftest; exit; ) 2>/dev/null
12824 case x$lt_status in
12825 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12826 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12827 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12830 # compilation failed
12831 lt_cv_dlopen_self_static=no
12838 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12839 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12842 CPPFLAGS="$save_CPPFLAGS"
12843 LDFLAGS="$save_LDFLAGS"
12848 case $lt_cv_dlopen_self in
12849 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12850 *) enable_dlopen_self=unknown ;;
12853 case $lt_cv_dlopen_self_static in
12854 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12855 *) enable_dlopen_self_static=unknown ;;
12860 # The else clause should only fire when bootstrapping the
12861 # libtool distribution, otherwise you forgot to ship ltmain.sh
12862 # with your package, and you will get complaints that there are
12863 # no rules to generate ltmain.sh.
12864 if test -f "$ltmain"; then
12865 # See if we are running on zsh, and set the options which allow our commands through
12866 # without removal of \ escapes.
12867 if test -n "${ZSH_VERSION+set}" ; then
12868 setopt NO_GLOB_SUBST
12870 # Now quote all the things that may contain metacharacters while being
12871 # careful not to overquote the AC_SUBSTed values. We take copies of the
12872 # variables and quote the copies for generation of the libtool script.
12873 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12874 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12875 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12876 deplibs_check_method reload_flag reload_cmds need_locks \
12877 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12878 lt_cv_sys_global_symbol_to_c_name_address \
12879 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12880 old_postinstall_cmds old_postuninstall_cmds \
12884 lt_prog_compiler_wl_CXX \
12885 lt_prog_compiler_pic_CXX \
12886 lt_prog_compiler_static_CXX \
12887 lt_prog_compiler_no_builtin_flag_CXX \
12888 export_dynamic_flag_spec_CXX \
12889 thread_safe_flag_spec_CXX \
12890 whole_archive_flag_spec_CXX \
12891 enable_shared_with_static_runtimes_CXX \
12892 old_archive_cmds_CXX \
12893 old_archive_from_new_cmds_CXX \
12894 predep_objects_CXX \
12895 postdep_objects_CXX \
12898 compiler_lib_search_path_CXX \
12900 archive_expsym_cmds_CXX \
12901 postinstall_cmds_CXX \
12902 postuninstall_cmds_CXX \
12903 old_archive_from_expsyms_cmds_CXX \
12904 allow_undefined_flag_CXX \
12905 no_undefined_flag_CXX \
12906 export_symbols_cmds_CXX \
12907 hardcode_libdir_flag_spec_CXX \
12908 hardcode_libdir_flag_spec_ld_CXX \
12909 hardcode_libdir_separator_CXX \
12910 hardcode_automatic_CXX \
12912 module_expsym_cmds_CXX \
12913 lt_cv_prog_compiler_c_o_CXX \
12914 exclude_expsyms_CXX \
12915 include_expsyms_CXX; do
12918 old_archive_cmds_CXX | \
12919 old_archive_from_new_cmds_CXX | \
12920 archive_cmds_CXX | \
12921 archive_expsym_cmds_CXX | \
12922 module_cmds_CXX | \
12923 module_expsym_cmds_CXX | \
12924 old_archive_from_expsyms_cmds_CXX | \
12925 export_symbols_cmds_CXX | \
12926 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12927 postinstall_cmds | postuninstall_cmds | \
12928 old_postinstall_cmds | old_postuninstall_cmds | \
12929 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12930 # Double-quote double-evaled strings.
12931 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
12934 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
12940 *'\$0 --fallback-echo"')
12941 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12947 cat <<__EOF__ >> "$cfgfile"
12948 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12950 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
12952 # Shell to use when invoking shell scripts.
12955 # Whether or not to build shared libraries.
12956 build_libtool_libs=$enable_shared
12958 # Whether or not to build static libraries.
12959 build_old_libs=$enable_static
12961 # Whether or not to add -lc for building shared libraries.
12962 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12964 # Whether or not to disallow shared libs when runtime libs are static
12965 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12967 # Whether or not to optimize for fast installation.
12968 fast_install=$enable_fast_install
12971 host_alias=$host_alias
12974 # An echo program that does not interpret backslashes.
12979 AR_FLAGS=$lt_AR_FLAGS
12984 # A language-specific compiler.
12985 CC=$lt_compiler_CXX
12987 # Is the compiler the GNU C compiler?
12993 # The linker used to build libraries.
12996 # Whether we need hard or soft links.
12999 # A BSD-compatible nm program.
13002 # A symbol stripping program
13005 # Used to examine libraries when file_magic_cmd begins "file"
13006 MAGIC_CMD=$MAGIC_CMD
13008 # Used on cygwin: DLL creation program.
13011 # Used on cygwin: object dumper.
13014 # Used on cygwin: assembler.
13017 # The name of the directory that contains temporary libtool files.
13020 # How to create reloadable object files.
13021 reload_flag=$lt_reload_flag
13022 reload_cmds=$lt_reload_cmds
13024 # How to pass a linker flag through the compiler.
13025 wl=$lt_lt_prog_compiler_wl_CXX
13027 # Object file suffix (normally "o").
13028 objext="$ac_objext"
13030 # Old archive suffix (normally "a").
13033 # Shared library suffix (normally ".so").
13036 # Executable file suffix (normally "").
13039 # Additional compiler flags for building library objects.
13040 pic_flag=$lt_lt_prog_compiler_pic_CXX
13043 # What is the maximum length of a command?
13044 max_cmd_len=$lt_cv_sys_max_cmd_len
13046 # Does compiler simultaneously support -c and -o options?
13047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13049 # Must we lock files when doing compilation ?
13050 need_locks=$lt_need_locks
13052 # Do we need the lib prefix for modules?
13053 need_lib_prefix=$need_lib_prefix
13055 # Do we need a version for libraries?
13056 need_version=$need_version
13058 # Whether dlopen is supported.
13059 dlopen_support=$enable_dlopen
13061 # Whether dlopen of programs is supported.
13062 dlopen_self=$enable_dlopen_self
13064 # Whether dlopen of statically linked programs is supported.
13065 dlopen_self_static=$enable_dlopen_self_static
13067 # Compiler flag to prevent dynamic linking.
13068 link_static_flag=$lt_lt_prog_compiler_static_CXX
13070 # Compiler flag to turn off builtin functions.
13071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13073 # Compiler flag to allow reflexive dlopens.
13074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13076 # Compiler flag to generate shared objects directly from archives.
13077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13079 # Compiler flag to generate thread-safe objects.
13080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13082 # Library versioning type.
13083 version_type=$version_type
13085 # Format of library name prefix.
13086 libname_spec=$lt_libname_spec
13088 # List of archive names. First name is the real one, the rest are links.
13089 # The last name is the one that the linker finds with -lNAME.
13090 library_names_spec=$lt_library_names_spec
13092 # The coded name of the library, if different from the real name.
13093 soname_spec=$lt_soname_spec
13095 # Commands used to build and install an old-style archive.
13097 old_archive_cmds=$lt_old_archive_cmds_CXX
13098 old_postinstall_cmds=$lt_old_postinstall_cmds
13099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13101 # Create an old-style archive from a shared archive.
13102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13104 # Create a temporary old-style archive to link instead of a shared archive.
13105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13107 # Commands used to build and install a shared archive.
13108 archive_cmds=$lt_archive_cmds_CXX
13109 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13110 postinstall_cmds=$lt_postinstall_cmds
13111 postuninstall_cmds=$lt_postuninstall_cmds
13113 # Commands used to build a loadable module (assumed same as above if empty)
13114 module_cmds=$lt_module_cmds_CXX
13115 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13117 # Commands to strip libraries.
13118 old_striplib=$lt_old_striplib
13119 striplib=$lt_striplib
13121 # Dependencies to place before the objects being linked to create a
13123 predep_objects=$lt_predep_objects_CXX
13125 # Dependencies to place after the objects being linked to create a
13127 postdep_objects=$lt_postdep_objects_CXX
13129 # Dependencies to place before the objects being linked to create a
13131 predeps=$lt_predeps_CXX
13133 # Dependencies to place after the objects being linked to create a
13135 postdeps=$lt_postdeps_CXX
13137 # The library search path used internally by the compiler when linking
13138 # a shared library.
13139 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13141 # Method to check whether dependent libraries are shared objects.
13142 deplibs_check_method=$lt_deplibs_check_method
13144 # Command to use when deplibs_check_method == file_magic.
13145 file_magic_cmd=$lt_file_magic_cmd
13147 # Flag that allows shared libraries with undefined symbols to be built.
13148 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13150 # Flag that forces no undefined symbols.
13151 no_undefined_flag=$lt_no_undefined_flag_CXX
13153 # Commands used to finish a libtool library installation in a directory.
13154 finish_cmds=$lt_finish_cmds
13156 # Same as above, but a single script fragment to be evaled but not shown.
13157 finish_eval=$lt_finish_eval
13159 # Take the output of nm and produce a listing of raw symbols and C names.
13160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13162 # Transform the output of nm in a proper C declaration
13163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13165 # Transform the output of nm in a C name address pair
13166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13168 # This is the shared library runtime path variable.
13169 runpath_var=$runpath_var
13171 # This is the shared library path variable.
13172 shlibpath_var=$shlibpath_var
13174 # Is shlibpath searched before the hard-coded library search path?
13175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13177 # How to hardcode a shared library path into an executable.
13178 hardcode_action=$hardcode_action_CXX
13180 # Whether we should hardcode library paths into libraries.
13181 hardcode_into_libs=$hardcode_into_libs
13183 # Flag to hardcode \$libdir into a binary during linking.
13184 # This must work even if \$libdir does not exist.
13185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13187 # If ld is used when linking, flag to hardcode \$libdir into
13188 # a binary during linking. This must work even if \$libdir does
13190 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13192 # Whether we need a single -rpath flag with a separated argument.
13193 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13195 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13196 # resulting binary.
13197 hardcode_direct=$hardcode_direct_CXX
13199 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13200 # resulting binary.
13201 hardcode_minus_L=$hardcode_minus_L_CXX
13203 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13204 # the resulting binary.
13205 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13207 # Set to yes if building a shared library automatically hardcodes DIR into the library
13208 # and all subsequent libraries and executables linked against it.
13209 hardcode_automatic=$hardcode_automatic_CXX
13211 # Variables whose values should be saved in libtool wrapper scripts and
13212 # restored at relink time.
13213 variables_saved_for_relink="$variables_saved_for_relink"
13215 # Whether libtool must link a program against all its dependency libraries.
13216 link_all_deplibs=$link_all_deplibs_CXX
13218 # Compile-time system search path for libraries
13219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13221 # Run-time system search path for libraries
13222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13224 # Fix the shell variable \$srcfile for the compiler.
13225 fix_srcfile_path="$fix_srcfile_path_CXX"
13227 # Set to yes if exported symbols are required.
13228 always_export_symbols=$always_export_symbols_CXX
13230 # The commands to list exported symbols.
13231 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13233 # The commands to extract the exported symbol list from a shared archive.
13234 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13236 # Symbols that should not be listed in the preloaded symbols.
13237 exclude_expsyms=$lt_exclude_expsyms_CXX
13239 # Symbols that must always be exported.
13240 include_expsyms=$lt_include_expsyms_CXX
13242 # ### END LIBTOOL TAG CONFIG: $tagname
13248 # If there is no Makefile yet, we rely on a make rule to execute
13249 # `config.status
--recheck' to rerun these tests and create the
13250 # libtool script then.
13251 test -f Makefile && make "$ltmain"
13256 ac_cpp='$CPP $CPPFLAGS'
13257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13258 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13265 with_gnu_ldcxx=$with_gnu_ld
13266 with_gnu_ld=$lt_save_with_gnu_ld
13267 lt_cv_path_LDCXX=$lt_cv_path_LD
13268 lt_cv_path_LD=$lt_save_path_LD
13269 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13270 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13278 if test -n "$F77" && test "X$F77" != "Xno"; then
13281 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13282 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13283 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13286 archive_cmds_need_lc_F77=no
13287 allow_undefined_flag_F77=
13288 always_export_symbols_F77=no
13289 archive_expsym_cmds_F77=
13290 export_dynamic_flag_spec_F77=
13291 hardcode_direct_F77=no
13292 hardcode_libdir_flag_spec_F77=
13293 hardcode_libdir_flag_spec_ld_F77=
13294 hardcode_libdir_separator_F77=
13295 hardcode_minus_L_F77=no
13296 hardcode_automatic_F77=no
13298 module_expsym_cmds_F77=
13299 link_all_deplibs_F77=unknown
13300 old_archive_cmds_F77=$old_archive_cmds
13301 no_undefined_flag_F77=
13302 whole_archive_flag_spec_F77=
13303 enable_shared_with_static_runtimes_F77=no
13305 # Source file extension for f77 test sources.
13308 # Object file extension for compiled f77 test sources.
13312 # Code to be used in simple compile tests
13313 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13315 # Code to be used in simple link tests
13316 lt_simple_link_test_code=" program t\n end\n"
13318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13320 # If no C compiler was specified, use CC.
13323 # Allow CC to be a program name with arguments.
13327 # Allow CC to be a program name with arguments.
13332 cc_basename=`$echo X"$compiler" | $Xsed -e 's
%^.
*/%%'`
13334 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13335 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13336 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13337 echo "${ECHO_T}$can_build_shared" >&6; }
13339 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13340 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13341 test "$can_build_shared" = "no" && enable_shared=no
13343 # On AIX, shared libraries and static libraries use the same namespace, and
13344 # are all built from PIC.
13347 test "$enable_shared" = yes && enable_static=no
13348 if test -n "$RANLIB"; then
13349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13350 postinstall_cmds='$RANLIB $lib'
13354 test "$enable_shared" = yes && enable_static=no
13357 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13358 echo "${ECHO_T}$enable_shared" >&6; }
13360 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13361 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13362 # Make sure either enable_shared or enable_static is yes.
13363 test "$enable_shared" = yes || enable_static=yes
13364 { echo "$as_me:$LINENO: result: $enable_static" >&5
13365 echo "${ECHO_T}$enable_static" >&6; }
13367 test "$ld_shlibs_F77" = no && can_build_shared=no
13372 lt_prog_compiler_wl_F77=
13373 lt_prog_compiler_pic_F77=
13374 lt_prog_compiler_static_F77=
13376 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13377 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13379 if test "$GCC" = yes; then
13380 lt_prog_compiler_wl_F77='-Wl,'
13381 lt_prog_compiler_static_F77='-static'
13385 # All AIX code is PIC.
13386 if test "$host_cpu" = ia64; then
13387 # AIX 5 now supports IA64 processor
13388 lt_prog_compiler_static_F77='-Bstatic'
13393 # FIXME: we need at least 68020 code to build shared libraries, but
13394 # adding the `-m68020' flag to GCC prevents building anything better
,
13396 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13399 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13400 # PIC is the default for these OSes.
13403 mingw
* | pw32
* | os2
*)
13404 # This hack is so that the source file can tell whether it is being
13405 # built for inclusion in a dll (and should export symbols for example).
13406 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13409 darwin
* | rhapsody
*)
13410 # PIC is the default on this platform
13411 # Common symbols not allowed in MH_DYLIB files
13412 lt_prog_compiler_pic_F77
='-fno-common'
13416 # Just because we use GCC doesn't mean we suddenly get shared libraries
13417 # on systems that don't support them.
13418 lt_prog_compiler_can_build_shared_F77
=no
13423 if test -d /usr
/nec
; then
13424 lt_prog_compiler_pic_F77
=-Kconform_pic
13429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13430 # not for PA HP-UX.
13431 case "$host_cpu" in
13436 lt_prog_compiler_pic_F77
='-fPIC'
13442 lt_prog_compiler_pic_F77
='-fPIC'
13446 # PORTME Check for flag to pass linker flags through the system compiler.
13449 lt_prog_compiler_wl_F77
='-Wl,'
13450 if test "$host_cpu" = ia64
; then
13451 # AIX 5 now supports IA64 processor
13452 lt_prog_compiler_static_F77
='-Bstatic'
13454 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13458 mingw
* | pw32
* | os2
*)
13459 # This hack is so that the source file can tell whether it is being
13460 # built for inclusion in a dll (and should export symbols for example).
13461 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13464 hpux9
* | hpux10
* | hpux11
*)
13465 lt_prog_compiler_wl_F77
='-Wl,'
13466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13467 # not for PA HP-UX.
13468 case "$host_cpu" in
13473 lt_prog_compiler_pic_F77
='+Z'
13476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13477 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13480 irix5
* | irix6
* | nonstopux
*)
13481 lt_prog_compiler_wl_F77
='-Wl,'
13482 # PIC (with -KPIC) is the default.
13483 lt_prog_compiler_static_F77
='-non_shared'
13487 lt_prog_compiler_pic_F77
='-KPIC'
13488 lt_prog_compiler_static_F77
='-Bstatic'
13494 lt_prog_compiler_wl_F77
='-Wl,'
13495 lt_prog_compiler_pic_F77
='-KPIC'
13496 lt_prog_compiler_static_F77
='-static'
13499 lt_prog_compiler_wl_F77
='-Wl,'
13500 # All Alpha code is PIC.
13501 lt_prog_compiler_static_F77
='-non_shared'
13506 osf3
* | osf4
* | osf5
*)
13507 lt_prog_compiler_wl_F77
='-Wl,'
13508 # All OSF/1 code is PIC.
13509 lt_prog_compiler_static_F77
='-non_shared'
13513 lt_prog_compiler_pic_F77
='-Kpic'
13514 lt_prog_compiler_static_F77
='-dn'
13518 lt_prog_compiler_wl_F77
='-Wl,'
13519 lt_prog_compiler_pic_F77
='-KPIC'
13520 lt_prog_compiler_static_F77
='-Bstatic'
13524 lt_prog_compiler_wl_F77
='-Qoption ld '
13525 lt_prog_compiler_pic_F77
='-PIC'
13526 lt_prog_compiler_static_F77
='-Bstatic'
13529 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13530 lt_prog_compiler_wl_F77
='-Wl,'
13531 lt_prog_compiler_pic_F77
='-KPIC'
13532 lt_prog_compiler_static_F77
='-Bstatic'
13536 if test -d /usr
/nec
;then
13537 lt_prog_compiler_pic_F77
='-Kconform_pic'
13538 lt_prog_compiler_static_F77
='-Bstatic'
13543 lt_prog_compiler_pic_F77
='-pic'
13544 lt_prog_compiler_static_F77
='-Bstatic'
13548 lt_prog_compiler_can_build_shared_F77
=no
13553 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13554 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13557 # Check to make sure the PIC flag actually works.
13559 if test -n "$lt_prog_compiler_pic_F77"; then
13561 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13562 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13563 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 lt_prog_compiler_pic_works_F77
=no
13567 ac_outfile
=conftest.
$ac_objext
13568 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13569 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13570 # Insert the option either (1) after the last *FLAGS variable, or
13571 # (2) before a word containing "conftest.", or (3) at the end.
13572 # Note that $ac_compile itself does not contain backslashes and begins
13573 # with a dollar sign (not a hyphen), so the echo should work correctly.
13574 # The option is referenced via a variable to avoid confusing sed.
13575 lt_compile
=`echo "$ac_compile" | $SED \
13576 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13578 -e 's:$: $lt_compiler_flag:'`
13579 (eval echo "\"\$as_me:13579: $lt_compile\"" >&5)
13580 (eval "$lt_compile" 2>conftest.err
)
13582 cat conftest.err
>&5
13583 echo "$as_me:13583: \$? = $ac_status" >&5
13584 if (exit $ac_status) && test -s "$ac_outfile"; then
13585 # The compiler can only warn and ignore the option if not recognized
13586 # So say no if there are warnings
13587 if test ! -s conftest.err
; then
13588 lt_prog_compiler_pic_works_F77
=yes
13594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13595 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13597 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13598 case $lt_prog_compiler_pic_F77 in
13600 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13603 lt_prog_compiler_pic_F77
=
13604 lt_prog_compiler_can_build_shared_F77
=no
13609 # For platforms which do not support PIC, -DPIC is meaningless:
13611 lt_prog_compiler_pic_F77
=
13614 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13618 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13619 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13620 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 lt_cv_prog_compiler_c_o_F77
=no
13624 $rm -r conftest
2>/dev
/null
13628 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13630 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13631 # that will create temporary files in the current directory regardless of
13632 # the output directory. Thus, making CWD read-only will cause this test
13633 # to fail, enabling locking or at least warning the user not to do parallel
13637 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13638 # Insert the option either (1) after the last *FLAGS variable, or
13639 # (2) before a word containing "conftest.", or (3) at the end.
13640 # Note that $ac_compile itself does not contain backslashes and begins
13641 # with a dollar sign (not a hyphen), so the echo should work correctly.
13642 lt_compile
=`echo "$ac_compile" | $SED \
13643 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13645 -e 's:$: $lt_compiler_flag:'`
13646 (eval echo "\"\$as_me:13646: $lt_compile\"" >&5)
13647 (eval "$lt_compile" 2>out
/conftest.err
)
13649 cat out
/conftest.err
>&5
13650 echo "$as_me:13650: \$? = $ac_status" >&5
13651 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13653 # The compiler can only warn and ignore the option if not recognized
13654 # So say no if there are warnings
13655 if test ! -s out
/conftest.err
; then
13656 lt_cv_prog_compiler_c_o_F77
=yes
13661 # SGI C++ compiler will create directory out/ii_files/ for
13662 # template instantiation
13663 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13664 $rm out
/* && rmdir out
13670 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13671 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13674 hard_links
="nottested"
13675 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13676 # do not overwrite the value of need_locks provided by the user
13677 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13678 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13681 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13683 ln conftest.a conftest.b
2>&5 || hard_links
=no
13684 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13685 { echo "$as_me:$LINENO: result: $hard_links" >&5
13686 echo "${ECHO_T}$hard_links" >&6; }
13687 if test "$hard_links" = no
; then
13688 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13689 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13696 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13697 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13700 allow_undefined_flag_F77
=
13701 enable_shared_with_static_runtimes_F77
=no
13703 archive_expsym_cmds_F77
=
13704 old_archive_From_new_cmds_F77
=
13705 old_archive_from_expsyms_cmds_F77
=
13706 export_dynamic_flag_spec_F77
=
13707 whole_archive_flag_spec_F77
=
13708 thread_safe_flag_spec_F77
=
13709 hardcode_libdir_flag_spec_F77
=
13710 hardcode_libdir_flag_spec_ld_F77
=
13711 hardcode_libdir_separator_F77
=
13712 hardcode_direct_F77
=no
13713 hardcode_minus_L_F77
=no
13714 hardcode_shlibpath_var_F77
=unsupported
13715 link_all_deplibs_F77
=unknown
13716 hardcode_automatic_F77
=no
13718 module_expsym_cmds_F77
=
13719 always_export_symbols_F77
=no
13720 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13721 # include_expsyms should be a list of space-separated symbols to be *always*
13722 # included in the symbol list
13723 include_expsyms_F77
=
13724 # exclude_expsyms can be an extended regexp of symbols to exclude
13725 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13726 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13727 # as well as any symbol that contains `d'.
13728 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13729 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13730 # platforms (ab)use it in PIC code, but their linkers get confused if
13731 # the symbol is explicitly referenced. Since portable code cannot
13732 # rely on this symbol name, it's probably fine to never include it in
13733 # preloaded symbol tables.
13734 extract_expsyms_cmds
=
13737 cygwin
* | mingw
* | pw32
*)
13738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13739 # When not using gcc, we currently assume that we are using
13740 # Microsoft Visual C++.
13741 if test "$GCC" != yes; then
13751 if test "$with_gnu_ld" = yes; then
13752 # If archive_cmds runs LD, not CC, wlarc should be empty
13755 # See if GNU ld supports shared libraries.
13757 aix3
* | aix4
* | aix5
*)
13758 # On AIX/PPC, the GNU linker is very broken
13759 if test "$host_cpu" != ia64
; then
13763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13764 *** to be unable to reliably create shared libraries on AIX.
13765 *** Therefore, libtool is disabling shared libraries support. If you
13766 *** really care for shared libraries, you may want to modify your PATH
13767 *** so that a non-GNU linker is found, and then restart.
13774 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)'
13775 hardcode_libdir_flag_spec_F77
='-L$libdir'
13776 hardcode_minus_L_F77
=yes
13778 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13779 # that the semantics of dynamic libraries on AmigaOS, at least up
13780 # to version 4, is to share data among multiple programs linked
13781 # with the same dynamic library. Since this doesn't match the
13782 # behavior of shared libraries on other platforms, we can't use
13788 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13789 allow_undefined_flag_F77
=unsupported
13790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13791 # support --undefined. This deserves some investigation. FIXME
13792 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13798 cygwin
* | mingw
* | pw32
*)
13799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13800 # as there is no search path for DLLs.
13801 hardcode_libdir_flag_spec_F77
='-L$libdir'
13802 allow_undefined_flag_F77
=unsupported
13803 always_export_symbols_F77
=no
13804 enable_shared_with_static_runtimes_F77
=yes
13805 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13807 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13808 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13809 # If the export-symbols file already is a .def file (1st line
13810 # is EXPORTS), use it as is; otherwise, prepend...
13811 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13812 cp $export_symbols $output_objdir/$soname.def;
13814 echo EXPORTS > $output_objdir/$soname.def;
13815 cat $export_symbols >> $output_objdir/$soname.def;
13817 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13824 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13825 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13828 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13829 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13834 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13839 *** create shared libraries on Solaris systems. Therefore, libtool
13840 *** is disabling shared libraries support. We urge you to upgrade GNU
13841 *** binutils to release 2.9.1 or newer. Another option is to modify
13842 *** your PATH or compiler configuration so that the native linker is
13843 *** used, and then restart.
13846 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13847 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13848 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13855 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13857 hardcode_direct_F77
=yes
13858 hardcode_shlibpath_var_F77
=no
13862 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
13863 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13864 archive_cmds_F77
="$tmp_archive_cmds"
13865 supports_anon_versioning
=no
13866 case `$LD -v 2>/dev/null` in
13867 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13868 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13869 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13870 *\
2.11.
*) ;; # other 2.11 versions
13871 *) supports_anon_versioning
=yes ;;
13873 if test $supports_anon_versioning = yes; then
13874 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13876 $echo "local: *; };" >> $output_objdir/$libname.ver~
13877 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13879 archive_expsym_cmds_F77
="$tmp_archive_cmds"
13887 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13888 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13889 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13896 if test "$ld_shlibs_F77" = yes; then
13897 runpath_var
=LD_RUN_PATH
13898 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13899 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13900 # ancient GNU ld didn't support --whole-archive et. al.
13901 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13902 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13904 whole_archive_flag_spec_F77
=
13908 # PORTME fill in a description of your system's linker (not GNU ld)
13911 allow_undefined_flag_F77
=unsupported
13912 always_export_symbols_F77
=yes
13913 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'
13914 # Note: this linker hardcodes the directories in LIBPATH if there
13915 # are no directories specified by -L.
13916 hardcode_minus_L_F77
=yes
13917 if test "$GCC" = yes && test -z "$link_static_flag"; then
13918 # Neither direct hardcoding nor static linking is supported with a
13920 hardcode_direct_F77
=unsupported
13925 if test "$host_cpu" = ia64
; then
13926 # On IA64, the linker does run time linking by default, so we don't
13927 # have to do anything special.
13928 aix_use_runtimelinking
=no
13929 exp_sym_flag
='-Bexport'
13932 # If we're using GNU nm, then we don't want the "-C" option.
13933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13934 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13935 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'
13937 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'
13939 aix_use_runtimelinking
=no
13941 # Test if we are trying to use run time linking or normal
13942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13943 # need to do runtime linking.
13944 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13945 for ld_flag
in $LDFLAGS; do
13946 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13947 aix_use_runtimelinking
=yes
13953 exp_sym_flag
='-bexport'
13954 no_entry_flag
='-bnoentry'
13957 # When large executables or shared objects are built, AIX ld can
13958 # have problems creating the table of contents. If linking a library
13959 # or program results in "error TOC overflow" add -mminimal-toc to
13960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13963 archive_cmds_F77
=''
13964 hardcode_direct_F77
=yes
13965 hardcode_libdir_separator_F77
=':'
13966 link_all_deplibs_F77
=yes
13968 if test "$GCC" = yes; then
13969 case $host_os in aix4.012|aix4.012.
*)
13970 # We only want to do this on AIX 4.2 and lower, the check
13971 # below for broken collect2 doesn't work under 4.3+
13972 collect2name
=`${CC} -print-prog-name=collect2`
13973 if test -f "$collect2name" && \
13974 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13976 # We have reworked collect2
13977 hardcode_direct_F77
=yes
13979 # We have old collect2
13980 hardcode_direct_F77
=unsupported
13981 # It fails to find uninstalled libraries when the uninstalled
13982 # path is not listed in the libpath. Setting hardcode_minus_L
13983 # to unsupported forces relinking
13984 hardcode_minus_L_F77
=yes
13985 hardcode_libdir_flag_spec_F77
='-L$libdir'
13986 hardcode_libdir_separator_F77
=
13989 shared_flag
='-shared'
13992 if test "$host_cpu" = ia64
; then
13993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13994 # chokes on -Wl,-G. The following line is correct:
13997 if test "$aix_use_runtimelinking" = yes; then
13998 shared_flag
='${wl}-G'
14000 shared_flag
='${wl}-bM:SRE'
14005 # It seems that -bexpall does not export symbols beginning with
14006 # underscore (_), so it is better to generate a list of symbols to export.
14007 always_export_symbols_F77
=yes
14008 if test "$aix_use_runtimelinking" = yes; then
14009 # Warning - without using the other runtime loading flags (-brtl),
14010 # -berok will link without error, but may produce a broken library.
14011 allow_undefined_flag_F77
='-berok'
14012 # Determine the default libpath from the value encoded in an empty executable.
14013 cat >conftest.
$ac_ext <<_ACEOF
14018 rm -f conftest.
$ac_objext conftest
$ac_exeext
14019 if { (ac_try
="$ac_link"
14020 case "(($ac_try" in
14021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_link") 2>conftest.er1
14027 grep -v '^ *+' conftest.er1 >conftest.err
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && {
14032 test -z "$ac_f77_werror_flag" ||
14033 test ! -s conftest.err
14034 } && test -s conftest$ac_exeext &&
14035 $as_test_x conftest$ac_exeext; then
14037 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14039 # Check for a 64-bit object if we didn't find anything.
14040 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; }
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14050 conftest$ac_exeext conftest.$ac_ext
14051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14053 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14054 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"
14056 if test "$host_cpu" = ia64
; then
14057 hardcode_libdir_flag_spec_F77
='${wl}-R $libdir:/usr/lib:/lib'
14058 allow_undefined_flag_F77
="-z nodefs"
14059 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"
14061 # Determine the default libpath from the value encoded in an empty executable.
14062 cat >conftest.$ac_ext <<_ACEOF
14067 rm -f conftest.$ac_objext conftest$ac_exeext
14068 if { (ac_try="$ac_link"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>conftest.er1
14076 grep -v '^
*+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_f77_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest$ac_exeext &&
14084 $as_test_x conftest$ac_exeext; then
14086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
14088 # Check for a 64-bit object if we didn't
find anything.
14089 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; }
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.
$ac_ext >&5
14098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14099 conftest
$ac_exeext conftest.
$ac_ext
14100 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14102 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14103 # Warning - without using the other run time loading flags,
14104 # -berok will link without error, but may produce a broken library.
14105 no_undefined_flag_F77
=' ${wl}-bernotok'
14106 allow_undefined_flag_F77
=' ${wl}-berok'
14107 # -bexpall does not export symbols beginning with underscore (_)
14108 always_export_symbols_F77
=yes
14109 # Exported symbols can be pulled into shared objects from archives
14110 whole_archive_flag_spec_F77
=' '
14111 archive_cmds_need_lc_F77
=yes
14112 # This is similar to how AIX traditionally builds it's shared libraries.
14113 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'
14119 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)'
14120 hardcode_libdir_flag_spec_F77
='-L$libdir'
14121 hardcode_minus_L_F77
=yes
14122 # see comment about different semantics on the GNU ld section
14127 export_dynamic_flag_spec_F77
=-rdynamic
14130 cygwin
* | mingw
* | pw32
*)
14131 # When not using gcc, we currently assume that we are using
14132 # Microsoft Visual C++.
14133 # hardcode_libdir_flag_spec is actually meaningless, as there is
14134 # no search path for DLLs.
14135 hardcode_libdir_flag_spec_F77
=' '
14136 allow_undefined_flag_F77
=unsupported
14137 # Tell ltmain to make .lib files, not .a files.
14139 # Tell ltmain to make .dll files, not .so files.
14141 # FIXME: Setting linknames here is a bad hack.
14142 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14143 # The linker will automatically build a .lib file if we build a DLL.
14144 old_archive_From_new_cmds_F77
='true'
14145 # FIXME: Should let the user specify the lib program.
14146 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14147 fix_srcfile_path
='`cygpath -w "$srcfile"`'
14148 enable_shared_with_static_runtimes_F77
=yes
14151 darwin
* | rhapsody
*)
14152 if test "$GXX" = yes ; then
14153 archive_cmds_need_lc_F77
=no
14155 rhapsody
* | darwin1.
[012])
14156 allow_undefined_flag_F77
='-undefined suppress'
14159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14160 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
14162 case ${MACOSX_DEPLOYMENT_TARGET} in
14164 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
14167 allow_undefined_flag_F77
='-undefined dynamic_lookup'
14173 lt_int_apple_cc_single_mod
=no
14174 output_verbose_link_cmd
='echo'
14175 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
14176 lt_int_apple_cc_single_mod
=yes
14178 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14179 archive_cmds_F77
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14181 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'
14183 module_cmds_F77
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14185 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14186 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}'
14188 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}'
14190 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}'
14191 hardcode_direct_F77
=no
14192 hardcode_automatic_F77
=yes
14193 hardcode_shlibpath_var_F77
=unsupported
14194 whole_archive_flag_spec_F77
='-all_load $convenience'
14195 link_all_deplibs_F77
=yes
14202 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_libdir_flag_spec_F77
='-L$libdir'
14204 hardcode_shlibpath_var_F77
=no
14211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14212 # support. Future versions do this automatically, but an explicit c++rt0.o
14213 # does not break anything, and helps significantly (at the cost of a little
14216 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14217 hardcode_libdir_flag_spec_F77
='-R$libdir'
14218 hardcode_direct_F77
=yes
14219 hardcode_shlibpath_var_F77
=no
14222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14224 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14225 hardcode_direct_F77
=yes
14226 hardcode_minus_L_F77
=yes
14227 hardcode_shlibpath_var_F77
=no
14230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14231 freebsd
* | kfreebsd
*-gnu)
14232 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14233 hardcode_libdir_flag_spec_F77
='-R$libdir'
14234 hardcode_direct_F77
=yes
14235 hardcode_shlibpath_var_F77
=no
14239 if test "$GCC" = yes; then
14240 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'
14242 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'
14244 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14245 hardcode_libdir_separator_F77
=:
14246 hardcode_direct_F77
=yes
14248 # hardcode_minus_L: Not really in the search PATH,
14249 # but as the default location of the library.
14250 hardcode_minus_L_F77
=yes
14251 export_dynamic_flag_spec_F77
='${wl}-E'
14255 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14256 case "$host_cpu" in
14258 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14261 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14265 case "$host_cpu" in
14267 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14270 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14274 if test "$with_gnu_ld" = no
; then
14275 case "$host_cpu" in
14277 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14278 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14279 hardcode_libdir_separator_F77
=:
14280 hardcode_direct_F77
=no
14281 hardcode_shlibpath_var_F77
=no
14284 hardcode_libdir_flag_spec_F77
='-L$libdir'
14285 hardcode_direct_F77
=no
14286 hardcode_shlibpath_var_F77
=no
14288 # hardcode_minus_L: Not really in the search PATH,
14289 # but as the default location of the library.
14290 hardcode_minus_L_F77
=yes
14293 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14294 hardcode_libdir_separator_F77
=:
14295 hardcode_direct_F77
=yes
14296 export_dynamic_flag_spec_F77
='${wl}-E'
14298 # hardcode_minus_L: Not really in the search PATH,
14299 # but as the default location of the library.
14300 hardcode_minus_L_F77
=yes
14306 irix5
* | irix6
* | nonstopux
*)
14307 if test "$GCC" = yes; then
14308 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'
14310 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'
14311 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14313 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14314 hardcode_libdir_separator_F77
=:
14315 link_all_deplibs_F77
=yes
14319 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14320 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14322 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14324 hardcode_libdir_flag_spec_F77
='-R$libdir'
14325 hardcode_direct_F77
=yes
14326 hardcode_shlibpath_var_F77
=no
14330 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331 hardcode_direct_F77
=yes
14332 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14333 hardcode_libdir_separator_F77
=:
14334 hardcode_shlibpath_var_F77
=no
14338 hardcode_direct_F77
=yes
14339 hardcode_shlibpath_var_F77
=no
14340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14341 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14342 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14343 export_dynamic_flag_spec_F77
='${wl}-E'
14346 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14347 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14348 hardcode_libdir_flag_spec_F77
='-R$libdir'
14351 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14352 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14359 hardcode_libdir_flag_spec_F77
='-L$libdir'
14360 hardcode_minus_L_F77
=yes
14361 allow_undefined_flag_F77
=unsupported
14362 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'
14363 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14367 if test "$GCC" = yes; then
14368 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14369 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'
14371 allow_undefined_flag_F77
=' -expect_unresolved \*'
14372 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'
14374 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14375 hardcode_libdir_separator_F77
=:
14378 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14379 if test "$GCC" = yes; then
14380 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14381 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'
14382 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14384 allow_undefined_flag_F77
=' -expect_unresolved \*'
14385 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'
14386 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~
14387 $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'
14389 # Both c and cxx compiler support -rpath directly
14390 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14392 hardcode_libdir_separator_F77
=:
14396 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14397 hardcode_shlibpath_var_F77
=no
14398 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14399 runpath_var
=LD_RUN_PATH
14400 hardcode_runpath_var
=yes
14404 no_undefined_flag_F77
=' -z text'
14405 if test "$GCC" = yes; then
14406 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14407 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14408 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14410 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14411 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14412 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14414 hardcode_libdir_flag_spec_F77
='-R$libdir'
14415 hardcode_shlibpath_var_F77
=no
14417 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14418 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14419 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14421 link_all_deplibs_F77
=yes
14425 if test "x$host_vendor" = xsequent
; then
14426 # Use $CC to link under sequent, because it throws in some extra .o
14427 # files that make .init and .fini sections work.
14428 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14430 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14432 hardcode_libdir_flag_spec_F77
='-L$libdir'
14433 hardcode_direct_F77
=yes
14434 hardcode_minus_L_F77
=yes
14435 hardcode_shlibpath_var_F77
=no
14439 case $host_vendor in
14441 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442 hardcode_direct_F77
=yes # is this really true???
14445 ## LD is ld it makes a PLAMLIB
14446 ## CC just makes a GrossModule.
14447 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14448 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14449 hardcode_direct_F77
=no
14452 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14456 runpath_var
='LD_RUN_PATH'
14457 hardcode_shlibpath_var_F77
=no
14461 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462 hardcode_shlibpath_var_F77
=no
14463 export_dynamic_flag_spec_F77
='-Bexport'
14467 if test -d /usr
/nec
; then
14468 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_shlibpath_var_F77
=no
14470 runpath_var
=LD_RUN_PATH
14471 hardcode_runpath_var
=yes
14477 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14478 hardcode_direct_F77
=yes
14479 hardcode_minus_L_F77
=no
14480 hardcode_shlibpath_var_F77
=no
14481 hardcode_runpath_var
=yes
14482 runpath_var
=LD_RUN_PATH
14485 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14486 no_undefined_flag_F77
='${wl}-z ${wl}text'
14487 if test "$GCC" = yes; then
14488 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14490 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 runpath_var
='LD_RUN_PATH'
14493 hardcode_shlibpath_var_F77
=no
14497 no_undefined_flag_F77
=' -z text'
14498 # $CC -shared without GNU ld will not create a library from C++
14499 # object files and a static libstdc++, better avoid it by now
14500 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14503 hardcode_libdir_flag_spec_F77
=
14504 hardcode_shlibpath_var_F77
=no
14505 runpath_var
='LD_RUN_PATH'
14509 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14510 hardcode_libdir_flag_spec_F77
='-L$libdir'
14511 hardcode_shlibpath_var_F77
=no
14520 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14521 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14522 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14524 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14525 if test "$GCC" = yes; then
14526 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14530 # Do we need to explicitly link libc?
14532 case "x$archive_cmds_need_lc_F77" in
14534 # Assume -lc should be added
14535 archive_cmds_need_lc_F77
=yes
14537 if test "$enable_shared" = yes && test "$GCC" = yes; then
14538 case $archive_cmds_F77 in
14540 # FIXME: we may have to deal with multi-command sequences.
14543 # Test whether the compiler implicitly links with -lc since on some
14544 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14545 # to ld, don't add -lc before -lgcc.
14546 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14547 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14549 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } 2>conftest.err
; then
14558 libobjs
=conftest.
$ac_objext
14560 wl
=$lt_prog_compiler_wl_F77
14566 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14567 allow_undefined_flag_F77
=
14568 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14569 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }
14574 archive_cmds_need_lc_F77
=no
14576 archive_cmds_need_lc_F77
=yes
14578 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14580 cat conftest.err
1>&5
14583 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14584 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14591 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14592 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14593 library_names_spec
=
14594 libname_spec
='lib$name'
14598 postuninstall_cmds
=
14602 shlibpath_overrides_runpath
=unknown
14604 dynamic_linker
="$host_os ld.so"
14605 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14606 if test "$GCC" = yes; then
14607 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14608 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14609 # if the path contains ";" then we assume it to be the separator
14610 # otherwise default to the standard path separator (i.e. ":") - it is
14611 # assumed that no part of a normal pathname contains ";" but that should
14612 # okay in the real world where ";" in dirpaths is itself problematic.
14613 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14615 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14618 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14620 need_lib_prefix
=unknown
14621 hardcode_into_libs
=no
14623 # when you set need_version to no, make sure it does not cause -set_version
14624 # flags to be left without arguments
14625 need_version
=unknown
14630 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14631 shlibpath_var
=LIBPATH
14633 # AIX 3 has no versioning support, so we append a major version to the name.
14634 soname_spec
='${libname}${release}${shared_ext}$major'
14641 hardcode_into_libs
=yes
14642 if test "$host_cpu" = ia64
; then
14643 # AIX 5 supports IA64
14644 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14645 shlibpath_var
=LD_LIBRARY_PATH
14647 # With GCC up to 2.95.x, collect2 would create an import file
14648 # for dependence libraries. The import file would start with
14649 # the line `#! .'. This would cause the generated library to
14650 # depend on `.', always an invalid library. This was fixed in
14651 # development snapshots of GCC prior to 3.0.
14653 aix4 | aix4.
[01] | aix4.
[01].
*)
14654 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14656 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14659 can_build_shared
=no
14663 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14664 # soname into executable. Probably we can add versioning support to
14665 # collect2, so additional links can be useful in future.
14666 if test "$aix_use_runtimelinking" = yes; then
14667 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14668 # instead of lib<name>.a to let people know that these are not
14669 # typical AIX shared libraries.
14670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672 # We preserve .a as extension for shared libraries through AIX4.2
14673 # and later when we are not doing run time linking.
14674 library_names_spec
='${libname}${release}.a $libname.a'
14675 soname_spec
='${libname}${release}${shared_ext}$major'
14677 shlibpath_var
=LIBPATH
14682 library_names_spec
='$libname.ixlibrary $libname.a'
14683 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14684 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'
14688 library_names_spec
='${libname}${shared_ext}'
14689 dynamic_linker
="$host_os ld.so"
14690 shlibpath_var
=LIBRARY_PATH
14696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec
='${libname}${release}${shared_ext}$major'
14698 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14699 shlibpath_var
=LD_LIBRARY_PATH
14700 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14701 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14702 # the default ld.so.conf also contains /usr/contrib/lib and
14703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14704 # libtool to hard-code these into programs
14707 cygwin
* | mingw
* | pw32
*)
14708 version_type
=windows
14713 case $GCC,$host_os in
14714 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14715 library_names_spec
='$libname.dll.a'
14716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14717 postinstall_cmds
='base_file=`basename \${file}`~
14718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14719 dldir=$destdir/`dirname \$dlpath`~
14720 test -d \$dldir || mkdir -p \$dldir~
14721 $install_prog $dir/$dlname \$dldir/$dlname'
14722 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14723 dlpath=$dir/\$dldll~
14725 shlibpath_overrides_runpath
=yes
14729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14730 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14731 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14734 # MinGW DLLs use traditional 'lib' prefix
14735 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14736 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14737 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14738 # It is most probably a Windows format PATH printed by
14739 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14740 # path with ; separators, and with drive letters. We can handle the
14741 # drive letters (cygwin fileutils understands them), so leave them,
14742 # especially as we might pass files found there to a mingw objdump,
14743 # which wouldn't understand a cygwinified path. Ahh.
14744 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14746 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14750 # pw32 DLLs use 'pw' prefix rather than 'lib'
14751 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14757 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14760 dynamic_linker
='Win32 ld.exe'
14761 # FIXME: first we should search . and the directory the executable is in
14765 darwin
* | rhapsody
*)
14766 dynamic_linker
="$host_os dyld"
14767 version_type
=darwin
14770 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14771 soname_spec
='${libname}${release}${major}$shared_ext'
14772 shlibpath_overrides_runpath
=yes
14773 shlibpath_var
=DYLD_LIBRARY_PATH
14774 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
14775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14776 if test "$GCC" = yes; then
14777 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"`
14779 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14781 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14789 soname_spec
='${libname}${release}${shared_ext}$major'
14790 shlibpath_var
=LD_LIBRARY_PATH
14801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14802 soname_spec
='${libname}${release}${shared_ext}$major'
14803 shlibpath_var
=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath
=no
14805 hardcode_into_libs
=yes
14806 dynamic_linker
='GNU ld.so'
14810 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14811 version_type
=freebsd-
$objformat
14812 case $version_type in
14814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14819 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14823 shlibpath_var
=LD_LIBRARY_PATH
14826 shlibpath_overrides_runpath
=yes
14828 freebsd3.01
* | freebsdelf3.01
*)
14829 shlibpath_overrides_runpath
=yes
14830 hardcode_into_libs
=yes
14833 shlibpath_overrides_runpath
=no
14834 hardcode_into_libs
=yes
14843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14844 soname_spec
='${libname}${release}${shared_ext}$major'
14845 shlibpath_var
=LD_LIBRARY_PATH
14846 hardcode_into_libs
=yes
14849 hpux9
* | hpux10
* | hpux11
*)
14850 # Give a soname corresponding to the major version so that dld.sl refuses to
14851 # link against other versions.
14855 case "$host_cpu" in
14858 hardcode_into_libs
=yes
14859 dynamic_linker
="$host_os dld.so"
14860 shlibpath_var
=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec
='${libname}${release}${shared_ext}$major'
14864 if test "X$HPUX_IA64_MODE" = X32
; then
14865 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14867 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14869 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14873 hardcode_into_libs
=yes
14874 dynamic_linker
="$host_os dld.sl"
14875 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14876 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 soname_spec
='${libname}${release}${shared_ext}$major'
14879 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14880 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14884 dynamic_linker
="$host_os dld.sl"
14885 shlibpath_var
=SHLIB_PATH
14886 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec
='${libname}${release}${shared_ext}$major'
14891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14892 postinstall_cmds
='chmod 555 $lib'
14895 irix5
* | irix6
* | nonstopux
*)
14897 nonstopux
*) version_type
=nonstopux
;;
14899 if test "$lt_cv_prog_gnu_ld" = yes; then
14907 soname_spec
='${libname}${release}${shared_ext}$major'
14908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14910 irix5
* | nonstopux
*)
14911 libsuff
= shlibsuff
=
14914 case $LD in # libtool.m4 will add one of these switches to LD
14915 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14916 libsuff
= shlibsuff
= libmagic
=32-bit;;
14917 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14918 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14919 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14920 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14921 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14925 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14926 shlibpath_overrides_runpath
=no
14927 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14928 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14929 hardcode_into_libs
=yes
14932 # No shared lib support for Linux oldld, aout, or coff.
14933 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14937 # This must be Linux ELF.
14942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec
='${libname}${release}${shared_ext}$major'
14944 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14945 shlibpath_var
=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath
=no
14947 # This implies no fast_install, which is unacceptable.
14948 # Some rework will be needed to allow for fast_install
14949 # before this can be enabled.
14950 hardcode_into_libs
=yes
14952 # We used to test for /lib/ld.so.1 and disable shared libraries on
14953 # powerpc, because MkLinux only supported shared libraries with the
14954 # GNU dynamic linker. Since this was broken with cross compilers,
14955 # most powerpc-linux boxes support dynamic linking these days and
14956 # people can always --disable-shared, the test was removed, and we
14957 # assume the GNU/Linux dynamic linker is in use.
14958 dynamic_linker
='GNU/Linux ld.so'
14965 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14967 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14968 dynamic_linker
='NetBSD (a.out) ld.so'
14970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14971 soname_spec
='${libname}${release}${shared_ext}$major'
14972 dynamic_linker
='NetBSD ld.elf_so'
14974 shlibpath_var
=LD_LIBRARY_PATH
14975 shlibpath_overrides_runpath
=yes
14976 hardcode_into_libs
=yes
14981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 shlibpath_var
=LD_LIBRARY_PATH
14983 shlibpath_overrides_runpath
=yes
14990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 soname_spec
='${libname}${release}${shared_ext}$major'
14992 shlibpath_var
=LD_LIBRARY_PATH
14993 shlibpath_overrides_runpath
=yes
15000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15001 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15002 shlibpath_var
=LD_LIBRARY_PATH
15003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15005 openbsd2.
[89] | openbsd2.
[89].
*)
15006 shlibpath_overrides_runpath
=no
15009 shlibpath_overrides_runpath
=yes
15013 shlibpath_overrides_runpath
=yes
15018 libname_spec
='$name'
15021 library_names_spec
='$libname${shared_ext} $libname.a'
15022 dynamic_linker
='OS/2 ld.exe'
15023 shlibpath_var
=LIBPATH
15026 osf3
* | osf4
* | osf5
*)
15030 soname_spec
='${libname}${release}${shared_ext}$major'
15031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 shlibpath_var
=LD_LIBRARY_PATH
15033 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15034 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15039 soname_spec
='${libname}${release}${shared_ext}$major'
15040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 shlibpath_var
=LD_LIBRARY_PATH
15048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 soname_spec
='${libname}${release}${shared_ext}$major'
15050 shlibpath_var
=LD_LIBRARY_PATH
15051 shlibpath_overrides_runpath
=yes
15052 hardcode_into_libs
=yes
15053 # ldd complains unless libraries are executable
15054 postinstall_cmds
='chmod +x $lib'
15059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15060 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15061 shlibpath_var
=LD_LIBRARY_PATH
15062 shlibpath_overrides_runpath
=yes
15063 if test "$with_gnu_ld" = yes; then
15069 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 soname_spec
='${libname}${release}${shared_ext}$major'
15073 shlibpath_var
=LD_LIBRARY_PATH
15074 case $host_vendor in
15076 shlibpath_overrides_runpath
=no
15078 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15079 runpath_var
=LD_RUN_PATH
15087 shlibpath_overrides_runpath
=no
15088 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15094 if test -d /usr
/nec
;then
15096 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15097 soname_spec
='$libname${shared_ext}.$major'
15098 shlibpath_var
=LD_LIBRARY_PATH
15104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec
='${libname}${release}${shared_ext}$major'
15106 shlibpath_var
=LD_LIBRARY_PATH
15113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15114 echo "${ECHO_T}$dynamic_linker" >&6; }
15115 test "$dynamic_linker" = no
&& can_build_shared
=no
15117 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15119 hardcode_action_F77
=
15120 if test -n "$hardcode_libdir_flag_spec_F77" || \
15121 test -n "$runpath_var F77" || \
15122 test "X$hardcode_automatic_F77"="Xyes" ; then
15124 # We can hardcode non-existant directories.
15125 if test "$hardcode_direct_F77" != no
&&
15126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15127 # have to relink, otherwise we might link with an installed library
15128 # when we should be linking with a yet-to-be-installed one
15129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15130 test "$hardcode_minus_L_F77" != no
; then
15131 # Linking always hardcodes the temporary library directory.
15132 hardcode_action_F77
=relink
15134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15135 hardcode_action_F77
=immediate
15138 # We cannot hardcode anything, or else we can only hardcode existing
15140 hardcode_action_F77
=unsupported
15142 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15143 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15145 if test "$hardcode_action_F77" = relink
; then
15146 # Fast installation is not supported
15147 enable_fast_install
=no
15148 elif test "$shlibpath_overrides_runpath" = yes ||
15149 test "$enable_shared" = no
; then
15150 # Fast installation is not necessary
15151 enable_fast_install
=needless
15156 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15157 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15158 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15159 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15160 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15161 { echo "$as_me:$LINENO: result: yes" >&5
15162 echo "${ECHO_T}yes" >&6; }
15164 # FIXME - insert some real tests, host_os isn't really good enough
15167 if test -n "$STRIP" ; then
15168 striplib
="$STRIP -x"
15169 { echo "$as_me:$LINENO: result: yes" >&5
15170 echo "${ECHO_T}yes" >&6; }
15172 { echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6; }
15177 { echo "$as_me:$LINENO: result: no" >&5
15178 echo "${ECHO_T}no" >&6; }
15185 # The else clause should only fire when bootstrapping the
15186 # libtool distribution, otherwise you forgot to ship ltmain.sh
15187 # with your package, and you will get complaints that there are
15188 # no rules to generate ltmain.sh.
15189 if test -f "$ltmain"; then
15190 # See if we are running on zsh, and set the options which allow our commands through
15191 # without removal of \ escapes.
15192 if test -n "${ZSH_VERSION+set}" ; then
15193 setopt NO_GLOB_SUBST
15195 # Now quote all the things that may contain metacharacters while being
15196 # careful not to overquote the AC_SUBSTed values. We take copies of the
15197 # variables and quote the copies for generation of the libtool script.
15198 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15201 deplibs_check_method reload_flag reload_cmds need_locks \
15202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15203 lt_cv_sys_global_symbol_to_c_name_address \
15204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15205 old_postinstall_cmds old_postuninstall_cmds \
15209 lt_prog_compiler_wl_F77 \
15210 lt_prog_compiler_pic_F77 \
15211 lt_prog_compiler_static_F77 \
15212 lt_prog_compiler_no_builtin_flag_F77 \
15213 export_dynamic_flag_spec_F77 \
15214 thread_safe_flag_spec_F77 \
15215 whole_archive_flag_spec_F77 \
15216 enable_shared_with_static_runtimes_F77 \
15217 old_archive_cmds_F77 \
15218 old_archive_from_new_cmds_F77 \
15219 predep_objects_F77 \
15220 postdep_objects_F77 \
15223 compiler_lib_search_path_F77 \
15225 archive_expsym_cmds_F77 \
15226 postinstall_cmds_F77 \
15227 postuninstall_cmds_F77 \
15228 old_archive_from_expsyms_cmds_F77 \
15229 allow_undefined_flag_F77 \
15230 no_undefined_flag_F77 \
15231 export_symbols_cmds_F77 \
15232 hardcode_libdir_flag_spec_F77 \
15233 hardcode_libdir_flag_spec_ld_F77 \
15234 hardcode_libdir_separator_F77 \
15235 hardcode_automatic_F77 \
15237 module_expsym_cmds_F77 \
15238 lt_cv_prog_compiler_c_o_F77 \
15239 exclude_expsyms_F77 \
15240 include_expsyms_F77
; do
15243 old_archive_cmds_F77 | \
15244 old_archive_from_new_cmds_F77 | \
15245 archive_cmds_F77 | \
15246 archive_expsym_cmds_F77 | \
15247 module_cmds_F77 | \
15248 module_expsym_cmds_F77 | \
15249 old_archive_from_expsyms_cmds_F77 | \
15250 export_symbols_cmds_F77 | \
15251 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15252 postinstall_cmds | postuninstall_cmds | \
15253 old_postinstall_cmds | old_postuninstall_cmds | \
15254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15255 # Double-quote double-evaled strings.
15256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15265 *'\$0 --fallback-echo"')
15266 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15272 cat <<__EOF__ >> "$cfgfile"
15273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15277 # Shell to use when invoking shell scripts.
15280 # Whether or not to build shared libraries.
15281 build_libtool_libs=$enable_shared
15283 # Whether or not to build static libraries.
15284 build_old_libs=$enable_static
15286 # Whether or not to add -lc for building shared libraries.
15287 build_libtool_need_lc=$archive_cmds_need_lc_F77
15289 # Whether or not to disallow shared libs when runtime libs are static
15290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15292 # Whether or not to optimize for fast installation.
15293 fast_install=$enable_fast_install
15296 host_alias=$host_alias
15299 # An echo program that does not interpret backslashes.
15304 AR_FLAGS=$lt_AR_FLAGS
15309 # A language-specific compiler.
15310 CC=$lt_compiler_F77
15312 # Is the compiler the GNU C compiler?
15318 # The linker used to build libraries.
15321 # Whether we need hard or soft links.
15324 # A BSD-compatible nm program.
15327 # A symbol stripping program
15330 # Used to examine libraries when file_magic_cmd begins "file"
15331 MAGIC_CMD=$MAGIC_CMD
15333 # Used on cygwin: DLL creation program.
15336 # Used on cygwin: object dumper.
15339 # Used on cygwin: assembler.
15342 # The name of the directory that contains temporary libtool files.
15345 # How to create reloadable object files.
15346 reload_flag=$lt_reload_flag
15347 reload_cmds=$lt_reload_cmds
15349 # How to pass a linker flag through the compiler.
15350 wl=$lt_lt_prog_compiler_wl_F77
15352 # Object file suffix (normally "o").
15353 objext="$ac_objext"
15355 # Old archive suffix (normally "a").
15358 # Shared library suffix (normally ".so").
15361 # Executable file suffix (normally "").
15364 # Additional compiler flags for building library objects.
15365 pic_flag=$lt_lt_prog_compiler_pic_F77
15368 # What is the maximum length of a command?
15369 max_cmd_len=$lt_cv_sys_max_cmd_len
15371 # Does compiler simultaneously support -c and -o options?
15372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15374 # Must we lock files when doing compilation ?
15375 need_locks=$lt_need_locks
15377 # Do we need the lib prefix for modules?
15378 need_lib_prefix=$need_lib_prefix
15380 # Do we need a version for libraries?
15381 need_version=$need_version
15383 # Whether dlopen is supported.
15384 dlopen_support=$enable_dlopen
15386 # Whether dlopen of programs is supported.
15387 dlopen_self=$enable_dlopen_self
15389 # Whether dlopen of statically linked programs is supported.
15390 dlopen_self_static=$enable_dlopen_self_static
15392 # Compiler flag to prevent dynamic linking.
15393 link_static_flag=$lt_lt_prog_compiler_static_F77
15395 # Compiler flag to turn off builtin functions.
15396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15398 # Compiler flag to allow reflexive dlopens.
15399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15401 # Compiler flag to generate shared objects directly from archives.
15402 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15404 # Compiler flag to generate thread-safe objects.
15405 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15407 # Library versioning type.
15408 version_type=$version_type
15410 # Format of library name prefix.
15411 libname_spec=$lt_libname_spec
15413 # List of archive names. First name is the real one, the rest are links.
15414 # The last name is the one that the linker finds with -lNAME.
15415 library_names_spec=$lt_library_names_spec
15417 # The coded name of the library, if different from the real name.
15418 soname_spec=$lt_soname_spec
15420 # Commands used to build and install an old-style archive.
15422 old_archive_cmds=$lt_old_archive_cmds_F77
15423 old_postinstall_cmds=$lt_old_postinstall_cmds
15424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15426 # Create an old-style archive from a shared archive.
15427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15429 # Create a temporary old-style archive to link instead of a shared archive.
15430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15432 # Commands used to build and install a shared archive.
15433 archive_cmds=$lt_archive_cmds_F77
15434 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15435 postinstall_cmds=$lt_postinstall_cmds
15436 postuninstall_cmds=$lt_postuninstall_cmds
15438 # Commands used to build a loadable module (assumed same as above if empty)
15439 module_cmds=$lt_module_cmds_F77
15440 module_expsym_cmds=$lt_module_expsym_cmds_F77
15442 # Commands to strip libraries.
15443 old_striplib=$lt_old_striplib
15444 striplib=$lt_striplib
15446 # Dependencies to place before the objects being linked to create a
15448 predep_objects=$lt_predep_objects_F77
15450 # Dependencies to place after the objects being linked to create a
15452 postdep_objects=$lt_postdep_objects_F77
15454 # Dependencies to place before the objects being linked to create a
15456 predeps=$lt_predeps_F77
15458 # Dependencies to place after the objects being linked to create a
15460 postdeps=$lt_postdeps_F77
15462 # The library search path used internally by the compiler when linking
15463 # a shared library.
15464 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15466 # Method to check whether dependent libraries are shared objects.
15467 deplibs_check_method=$lt_deplibs_check_method
15469 # Command to use when deplibs_check_method == file_magic.
15470 file_magic_cmd=$lt_file_magic_cmd
15472 # Flag that allows shared libraries with undefined symbols to be built.
15473 allow_undefined_flag=$lt_allow_undefined_flag_F77
15475 # Flag that forces no undefined symbols.
15476 no_undefined_flag=$lt_no_undefined_flag_F77
15478 # Commands used to finish a libtool library installation in a directory.
15479 finish_cmds=$lt_finish_cmds
15481 # Same as above, but a single script fragment to be evaled but not shown.
15482 finish_eval=$lt_finish_eval
15484 # Take the output of nm and produce a listing of raw symbols and C names.
15485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15487 # Transform the output of nm in a proper C declaration
15488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15490 # Transform the output of nm in a C name address pair
15491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15493 # This is the shared library runtime path variable.
15494 runpath_var=$runpath_var
15496 # This is the shared library path variable.
15497 shlibpath_var=$shlibpath_var
15499 # Is shlibpath searched before the hard-coded library search path?
15500 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15502 # How to hardcode a shared library path into an executable.
15503 hardcode_action=$hardcode_action_F77
15505 # Whether we should hardcode library paths into libraries.
15506 hardcode_into_libs=$hardcode_into_libs
15508 # Flag to hardcode \$libdir into a binary during linking.
15509 # This must work even if \$libdir does not exist.
15510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15512 # If ld is used when linking, flag to hardcode \$libdir into
15513 # a binary during linking. This must work even if \$libdir does
15515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15517 # Whether we need a single -rpath flag with a separated argument.
15518 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15520 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15521 # resulting binary.
15522 hardcode_direct=$hardcode_direct_F77
15524 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15525 # resulting binary.
15526 hardcode_minus_L=$hardcode_minus_L_F77
15528 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15529 # the resulting binary.
15530 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15532 # Set to yes if building a shared library automatically hardcodes DIR into the library
15533 # and all subsequent libraries and executables linked against it.
15534 hardcode_automatic=$hardcode_automatic_F77
15536 # Variables whose values should be saved in libtool wrapper scripts and
15537 # restored at relink time.
15538 variables_saved_for_relink="$variables_saved_for_relink"
15540 # Whether libtool must link a program against all its dependency libraries.
15541 link_all_deplibs=$link_all_deplibs_F77
15543 # Compile-time system search path for libraries
15544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15546 # Run-time system search path for libraries
15547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15549 # Fix the shell variable \$srcfile for the compiler.
15550 fix_srcfile_path="$fix_srcfile_path_F77"
15552 # Set to yes if exported symbols are required.
15553 always_export_symbols=$always_export_symbols_F77
15555 # The commands to list exported symbols.
15556 export_symbols_cmds=$lt_export_symbols_cmds_F77
15558 # The commands to extract the exported symbol list from a shared archive.
15559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15561 # Symbols that should not be listed in the preloaded symbols.
15562 exclude_expsyms=$lt_exclude_expsyms_F77
15564 # Symbols that must always be exported.
15565 include_expsyms=$lt_include_expsyms_F77
15567 # ### END LIBTOOL TAG CONFIG: $tagname
15573 # If there is no Makefile yet, we rely on a make rule to execute
15574 # `config.status --recheck' to rerun these tests and create the
15575 # libtool script then.
15576 test -f Makefile
&& make "$ltmain"
15581 ac_cpp
='$CPP $CPPFLAGS'
15582 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15583 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15594 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15597 # Source file extension for Java test sources.
15600 # Object file extension for compiled Java test sources.
15604 # Code to be used in simple compile tests
15605 lt_simple_compile_test_code
="class foo {}\n"
15607 # Code to be used in simple link tests
15608 lt_simple_link_test_code
='public class conftest { public static void main(String argv) {}; }\n'
15610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15612 # If no C compiler was specified, use CC.
15615 # Allow CC to be a program name with arguments.
15619 # Allow CC to be a program name with arguments.
15625 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15626 archive_cmds_need_lc_GCJ
=no
15629 ## There is no encapsulation within the following macros, do not change
15630 ## the running order or otherwise move them around unless you know exactly
15631 ## what you are doing...
15633 lt_prog_compiler_no_builtin_flag_GCJ
=
15635 if test "$GCC" = yes; then
15636 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15639 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15640 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15641 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 lt_cv_prog_compiler_rtti_exceptions
=no
15645 ac_outfile
=conftest.
$ac_objext
15646 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15647 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15648 # Insert the option either (1) after the last *FLAGS variable, or
15649 # (2) before a word containing "conftest.", or (3) at the end.
15650 # Note that $ac_compile itself does not contain backslashes and begins
15651 # with a dollar sign (not a hyphen), so the echo should work correctly.
15652 # The option is referenced via a variable to avoid confusing sed.
15653 lt_compile
=`echo "$ac_compile" | $SED \
15654 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15656 -e 's:$: $lt_compiler_flag:'`
15657 (eval echo "\"\$as_me:15657: $lt_compile\"" >&5)
15658 (eval "$lt_compile" 2>conftest.err
)
15660 cat conftest.err
>&5
15661 echo "$as_me:15661: \$? = $ac_status" >&5
15662 if (exit $ac_status) && test -s "$ac_outfile"; then
15663 # The compiler can only warn and ignore the option if not recognized
15664 # So say no if there are warnings
15665 if test ! -s conftest.err
; then
15666 lt_cv_prog_compiler_rtti_exceptions
=yes
15672 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15673 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15675 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15676 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15683 lt_prog_compiler_wl_GCJ
=
15684 lt_prog_compiler_pic_GCJ
=
15685 lt_prog_compiler_static_GCJ
=
15687 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15690 if test "$GCC" = yes; then
15691 lt_prog_compiler_wl_GCJ
='-Wl,'
15692 lt_prog_compiler_static_GCJ
='-static'
15696 # All AIX code is PIC.
15697 if test "$host_cpu" = ia64
; then
15698 # AIX 5 now supports IA64 processor
15699 lt_prog_compiler_static_GCJ
='-Bstatic'
15704 # FIXME: we need at least 68020 code to build shared libraries, but
15705 # adding the `-m68020' flag to GCC prevents building anything better,
15707 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15710 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15711 # PIC is the default for these OSes.
15714 mingw
* | pw32
* | os2
*)
15715 # This hack is so that the source file can tell whether it is being
15716 # built for inclusion in a dll (and should export symbols for example).
15717 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15720 darwin
* | rhapsody
*)
15721 # PIC is the default on this platform
15722 # Common symbols not allowed in MH_DYLIB files
15723 lt_prog_compiler_pic_GCJ
='-fno-common'
15727 # Just because we use GCC doesn't mean we suddenly get shared libraries
15728 # on systems that don't support them.
15729 lt_prog_compiler_can_build_shared_GCJ
=no
15734 if test -d /usr
/nec
; then
15735 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15741 # not for PA HP-UX.
15742 case "$host_cpu" in
15747 lt_prog_compiler_pic_GCJ
='-fPIC'
15753 lt_prog_compiler_pic_GCJ
='-fPIC'
15757 # PORTME Check for flag to pass linker flags through the system compiler.
15760 lt_prog_compiler_wl_GCJ
='-Wl,'
15761 if test "$host_cpu" = ia64
; then
15762 # AIX 5 now supports IA64 processor
15763 lt_prog_compiler_static_GCJ
='-Bstatic'
15765 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15769 mingw
* | pw32
* | os2
*)
15770 # This hack is so that the source file can tell whether it is being
15771 # built for inclusion in a dll (and should export symbols for example).
15772 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15775 hpux9
* | hpux10
* | hpux11
*)
15776 lt_prog_compiler_wl_GCJ
='-Wl,'
15777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15778 # not for PA HP-UX.
15779 case "$host_cpu" in
15784 lt_prog_compiler_pic_GCJ
='+Z'
15787 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15788 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15791 irix5
* | irix6
* | nonstopux
*)
15792 lt_prog_compiler_wl_GCJ
='-Wl,'
15793 # PIC (with -KPIC) is the default.
15794 lt_prog_compiler_static_GCJ
='-non_shared'
15798 lt_prog_compiler_pic_GCJ
='-KPIC'
15799 lt_prog_compiler_static_GCJ
='-Bstatic'
15805 lt_prog_compiler_wl_GCJ
='-Wl,'
15806 lt_prog_compiler_pic_GCJ
='-KPIC'
15807 lt_prog_compiler_static_GCJ
='-static'
15810 lt_prog_compiler_wl_GCJ
='-Wl,'
15811 # All Alpha code is PIC.
15812 lt_prog_compiler_static_GCJ
='-non_shared'
15817 osf3
* | osf4
* | osf5
*)
15818 lt_prog_compiler_wl_GCJ
='-Wl,'
15819 # All OSF/1 code is PIC.
15820 lt_prog_compiler_static_GCJ
='-non_shared'
15824 lt_prog_compiler_pic_GCJ
='-Kpic'
15825 lt_prog_compiler_static_GCJ
='-dn'
15829 lt_prog_compiler_wl_GCJ
='-Wl,'
15830 lt_prog_compiler_pic_GCJ
='-KPIC'
15831 lt_prog_compiler_static_GCJ
='-Bstatic'
15835 lt_prog_compiler_wl_GCJ
='-Qoption ld '
15836 lt_prog_compiler_pic_GCJ
='-PIC'
15837 lt_prog_compiler_static_GCJ
='-Bstatic'
15840 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15841 lt_prog_compiler_wl_GCJ
='-Wl,'
15842 lt_prog_compiler_pic_GCJ
='-KPIC'
15843 lt_prog_compiler_static_GCJ
='-Bstatic'
15847 if test -d /usr
/nec
;then
15848 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
15849 lt_prog_compiler_static_GCJ
='-Bstatic'
15854 lt_prog_compiler_pic_GCJ
='-pic'
15855 lt_prog_compiler_static_GCJ
='-Bstatic'
15859 lt_prog_compiler_can_build_shared_GCJ
=no
15864 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15865 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15868 # Check to make sure the PIC flag actually works.
15870 if test -n "$lt_prog_compiler_pic_GCJ"; then
15872 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15873 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15874 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 lt_prog_compiler_pic_works_GCJ
=no
15878 ac_outfile
=conftest.
$ac_objext
15879 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15880 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
15881 # Insert the option either (1) after the last *FLAGS variable, or
15882 # (2) before a word containing "conftest.", or (3) at the end.
15883 # Note that $ac_compile itself does not contain backslashes and begins
15884 # with a dollar sign (not a hyphen), so the echo should work correctly.
15885 # The option is referenced via a variable to avoid confusing sed.
15886 lt_compile
=`echo "$ac_compile" | $SED \
15887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15889 -e 's:$: $lt_compiler_flag:'`
15890 (eval echo "\"\$as_me:15890: $lt_compile\"" >&5)
15891 (eval "$lt_compile" 2>conftest.err
)
15893 cat conftest.err
>&5
15894 echo "$as_me:15894: \$? = $ac_status" >&5
15895 if (exit $ac_status) && test -s "$ac_outfile"; then
15896 # The compiler can only warn and ignore the option if not recognized
15897 # So say no if there are warnings
15898 if test ! -s conftest.err
; then
15899 lt_prog_compiler_pic_works_GCJ
=yes
15905 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15906 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15908 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
15909 case $lt_prog_compiler_pic_GCJ in
15911 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
15914 lt_prog_compiler_pic_GCJ
=
15915 lt_prog_compiler_can_build_shared_GCJ
=no
15920 # For platforms which do not support PIC, -DPIC is meaningless:
15922 lt_prog_compiler_pic_GCJ
=
15925 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
15929 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15931 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 lt_cv_prog_compiler_c_o_GCJ
=no
15935 $rm -r conftest
2>/dev
/null
15939 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15941 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15942 # that will create temporary files in the current directory regardless of
15943 # the output directory. Thus, making CWD read-only will cause this test
15944 # to fail, enabling locking or at least warning the user not to do parallel
15948 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15949 # Insert the option either (1) after the last *FLAGS variable, or
15950 # (2) before a word containing "conftest.", or (3) at the end.
15951 # Note that $ac_compile itself does not contain backslashes and begins
15952 # with a dollar sign (not a hyphen), so the echo should work correctly.
15953 lt_compile
=`echo "$ac_compile" | $SED \
15954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15956 -e 's:$: $lt_compiler_flag:'`
15957 (eval echo "\"\$as_me:15957: $lt_compile\"" >&5)
15958 (eval "$lt_compile" 2>out
/conftest.err
)
15960 cat out
/conftest.err
>&5
15961 echo "$as_me:15961: \$? = $ac_status" >&5
15962 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15964 # The compiler can only warn and ignore the option if not recognized
15965 # So say no if there are warnings
15966 if test ! -s out
/conftest.err
; then
15967 lt_cv_prog_compiler_c_o_GCJ
=yes
15972 # SGI C++ compiler will create directory out/ii_files/ for
15973 # template instantiation
15974 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15975 $rm out
/* && rmdir out
15981 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15985 hard_links
="nottested"
15986 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
15987 # do not overwrite the value of need_locks provided by the user
15988 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15992 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15994 ln conftest.a conftest.b
2>&5 || hard_links
=no
15995 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15996 { echo "$as_me:$LINENO: result: $hard_links" >&5
15997 echo "${ECHO_T}$hard_links" >&6; }
15998 if test "$hard_links" = no
; then
15999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16007 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16011 allow_undefined_flag_GCJ
=
16012 enable_shared_with_static_runtimes_GCJ
=no
16014 archive_expsym_cmds_GCJ
=
16015 old_archive_From_new_cmds_GCJ
=
16016 old_archive_from_expsyms_cmds_GCJ
=
16017 export_dynamic_flag_spec_GCJ
=
16018 whole_archive_flag_spec_GCJ
=
16019 thread_safe_flag_spec_GCJ
=
16020 hardcode_libdir_flag_spec_GCJ
=
16021 hardcode_libdir_flag_spec_ld_GCJ
=
16022 hardcode_libdir_separator_GCJ
=
16023 hardcode_direct_GCJ
=no
16024 hardcode_minus_L_GCJ
=no
16025 hardcode_shlibpath_var_GCJ
=unsupported
16026 link_all_deplibs_GCJ
=unknown
16027 hardcode_automatic_GCJ
=no
16029 module_expsym_cmds_GCJ
=
16030 always_export_symbols_GCJ
=no
16031 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16032 # include_expsyms should be a list of space-separated symbols to be *always*
16033 # included in the symbol list
16034 include_expsyms_GCJ
=
16035 # exclude_expsyms can be an extended regexp of symbols to exclude
16036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16038 # as well as any symbol that contains `d'.
16039 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16041 # platforms (ab)use it in PIC code, but their linkers get confused if
16042 # the symbol is explicitly referenced. Since portable code cannot
16043 # rely on this symbol name, it's probably fine to never include it in
16044 # preloaded symbol tables.
16045 extract_expsyms_cmds
=
16048 cygwin
* | mingw
* | pw32
*)
16049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16050 # When not using gcc, we currently assume that we are using
16051 # Microsoft Visual C++.
16052 if test "$GCC" != yes; then
16062 if test "$with_gnu_ld" = yes; then
16063 # If archive_cmds runs LD, not CC, wlarc should be empty
16066 # See if GNU ld supports shared libraries.
16068 aix3
* | aix4
* | aix5
*)
16069 # On AIX/PPC, the GNU linker is very broken
16070 if test "$host_cpu" != ia64
; then
16074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16075 *** to be unable to reliably create shared libraries on AIX.
16076 *** Therefore, libtool is disabling shared libraries support. If you
16077 *** really care for shared libraries, you may want to modify your PATH
16078 *** so that a non-GNU linker is found, and then restart.
16085 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)'
16086 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16087 hardcode_minus_L_GCJ
=yes
16089 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16090 # that the semantics of dynamic libraries on AmigaOS, at least up
16091 # to version 4, is to share data among multiple programs linked
16092 # with the same dynamic library. Since this doesn't match the
16093 # behavior of shared libraries on other platforms, we can't use
16099 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16100 allow_undefined_flag_GCJ
=unsupported
16101 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16102 # support --undefined. This deserves some investigation. FIXME
16103 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16109 cygwin
* | mingw
* | pw32
*)
16110 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16111 # as there is no search path for DLLs.
16112 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16113 allow_undefined_flag_GCJ
=unsupported
16114 always_export_symbols_GCJ
=no
16115 enable_shared_with_static_runtimes_GCJ
=yes
16116 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16118 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16119 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16120 # If the export-symbols file already is a .def file (1st line
16121 # is EXPORTS), use it as is; otherwise, prepend...
16122 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16123 cp $export_symbols $output_objdir/$soname.def;
16125 echo EXPORTS > $output_objdir/$soname.def;
16126 cat $export_symbols >> $output_objdir/$soname.def;
16128 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16135 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16136 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16139 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16145 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16150 *** create shared libraries on Solaris systems. Therefore, libtool
16151 *** is disabling shared libraries support. We urge you to upgrade GNU
16152 *** binutils to release 2.9.1 or newer. Another option is to modify
16153 *** your PATH or compiler configuration so that the native linker is
16154 *** used, and then restart.
16157 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16158 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16159 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16166 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16168 hardcode_direct_GCJ
=yes
16169 hardcode_shlibpath_var_GCJ
=no
16173 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
16174 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175 archive_cmds_GCJ
="$tmp_archive_cmds"
16176 supports_anon_versioning
=no
16177 case `$LD -v 2>/dev/null` in
16178 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16179 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16180 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16181 *\
2.11.
*) ;; # other 2.11 versions
16182 *) supports_anon_versioning
=yes ;;
16184 if test $supports_anon_versioning = yes; then
16185 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16187 $echo "local: *; };" >> $output_objdir/$libname.ver~
16188 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16190 archive_expsym_cmds_GCJ
="$tmp_archive_cmds"
16198 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16199 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16207 if test "$ld_shlibs_GCJ" = yes; then
16208 runpath_var
=LD_RUN_PATH
16209 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16210 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16211 # ancient GNU ld didn't support --whole-archive et. al.
16212 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16213 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16215 whole_archive_flag_spec_GCJ
=
16219 # PORTME fill in a description of your system's linker (not GNU ld)
16222 allow_undefined_flag_GCJ
=unsupported
16223 always_export_symbols_GCJ
=yes
16224 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'
16225 # Note: this linker hardcodes the directories in LIBPATH if there
16226 # are no directories specified by -L.
16227 hardcode_minus_L_GCJ
=yes
16228 if test "$GCC" = yes && test -z "$link_static_flag"; then
16229 # Neither direct hardcoding nor static linking is supported with a
16231 hardcode_direct_GCJ
=unsupported
16236 if test "$host_cpu" = ia64
; then
16237 # On IA64, the linker does run time linking by default, so we don't
16238 # have to do anything special.
16239 aix_use_runtimelinking
=no
16240 exp_sym_flag
='-Bexport'
16243 # If we're using GNU nm, then we don't want the "-C" option.
16244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16245 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16246 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'
16248 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'
16250 aix_use_runtimelinking
=no
16252 # Test if we are trying to use run time linking or normal
16253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16254 # need to do runtime linking.
16255 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16256 for ld_flag
in $LDFLAGS; do
16257 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16258 aix_use_runtimelinking
=yes
16264 exp_sym_flag
='-bexport'
16265 no_entry_flag
='-bnoentry'
16268 # When large executables or shared objects are built, AIX ld can
16269 # have problems creating the table of contents. If linking a library
16270 # or program results in "error TOC overflow" add -mminimal-toc to
16271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16274 archive_cmds_GCJ
=''
16275 hardcode_direct_GCJ
=yes
16276 hardcode_libdir_separator_GCJ
=':'
16277 link_all_deplibs_GCJ
=yes
16279 if test "$GCC" = yes; then
16280 case $host_os in aix4.012|aix4.012.
*)
16281 # We only want to do this on AIX 4.2 and lower, the check
16282 # below for broken collect2 doesn't work under 4.3+
16283 collect2name
=`${CC} -print-prog-name=collect2`
16284 if test -f "$collect2name" && \
16285 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16287 # We have reworked collect2
16288 hardcode_direct_GCJ
=yes
16290 # We have old collect2
16291 hardcode_direct_GCJ
=unsupported
16292 # It fails to find uninstalled libraries when the uninstalled
16293 # path is not listed in the libpath. Setting hardcode_minus_L
16294 # to unsupported forces relinking
16295 hardcode_minus_L_GCJ
=yes
16296 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16297 hardcode_libdir_separator_GCJ
=
16300 shared_flag
='-shared'
16303 if test "$host_cpu" = ia64
; then
16304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16305 # chokes on -Wl,-G. The following line is correct:
16308 if test "$aix_use_runtimelinking" = yes; then
16309 shared_flag
='${wl}-G'
16311 shared_flag
='${wl}-bM:SRE'
16316 # It seems that -bexpall does not export symbols beginning with
16317 # underscore (_), so it is better to generate a list of symbols to export.
16318 always_export_symbols_GCJ
=yes
16319 if test "$aix_use_runtimelinking" = yes; then
16320 # Warning - without using the other runtime loading flags (-brtl),
16321 # -berok will link without error, but may produce a broken library.
16322 allow_undefined_flag_GCJ
='-berok'
16323 # Determine the default libpath from the value encoded in an empty executable.
16324 cat >conftest.
$ac_ext <<_ACEOF
16327 cat confdefs.h
>>conftest.
$ac_ext
16328 cat >>conftest.
$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16339 rm -f conftest.
$ac_objext conftest
$ac_exeext
16340 if { (ac_try
="$ac_link"
16341 case "(($ac_try" in
16342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_link") 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } && {
16353 test -z "$ac_c_werror_flag" ||
16354 test ! -s conftest.err
16355 } && test -s conftest$ac_exeext &&
16356 $as_test_x conftest$ac_exeext; then
16358 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16360 # Check for a 64-bit object if we didn't find anything.
16361 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; }
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16374 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16375 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"
16377 if test "$host_cpu" = ia64
; then
16378 hardcode_libdir_flag_spec_GCJ
='${wl}-R $libdir:/usr/lib:/lib'
16379 allow_undefined_flag_GCJ
="-z nodefs"
16380 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"
16382 # Determine the default libpath from the value encoded in an empty executable.
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (ac_try="$ac_link"
16400 case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_link") 2>conftest.er1
16407 grep -v '^
*+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } && {
16412 test -z "$ac_c_werror_flag" ||
16413 test ! -s conftest.err
16414 } && test -s conftest$ac_exeext &&
16415 $as_test_x conftest$ac_exeext; then
16417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
16419 # Check for a 64-bit object if we didn't
find anything.
16420 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; }
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.
$ac_ext >&5
16429 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16430 conftest
$ac_exeext conftest.
$ac_ext
16431 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16433 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16434 # Warning - without using the other run time loading flags,
16435 # -berok will link without error, but may produce a broken library.
16436 no_undefined_flag_GCJ
=' ${wl}-bernotok'
16437 allow_undefined_flag_GCJ
=' ${wl}-berok'
16438 # -bexpall does not export symbols beginning with underscore (_)
16439 always_export_symbols_GCJ
=yes
16440 # Exported symbols can be pulled into shared objects from archives
16441 whole_archive_flag_spec_GCJ
=' '
16442 archive_cmds_need_lc_GCJ
=yes
16443 # This is similar to how AIX traditionally builds it's shared libraries.
16444 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'
16450 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)'
16451 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16452 hardcode_minus_L_GCJ
=yes
16453 # see comment about different semantics on the GNU ld section
16458 export_dynamic_flag_spec_GCJ
=-rdynamic
16461 cygwin
* | mingw
* | pw32
*)
16462 # When not using gcc, we currently assume that we are using
16463 # Microsoft Visual C++.
16464 # hardcode_libdir_flag_spec is actually meaningless, as there is
16465 # no search path for DLLs.
16466 hardcode_libdir_flag_spec_GCJ
=' '
16467 allow_undefined_flag_GCJ
=unsupported
16468 # Tell ltmain to make .lib files, not .a files.
16470 # Tell ltmain to make .dll files, not .so files.
16472 # FIXME: Setting linknames here is a bad hack.
16473 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16474 # The linker will automatically build a .lib file if we build a DLL.
16475 old_archive_From_new_cmds_GCJ
='true'
16476 # FIXME: Should let the user specify the lib program.
16477 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16478 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16479 enable_shared_with_static_runtimes_GCJ
=yes
16482 darwin
* | rhapsody
*)
16483 if test "$GXX" = yes ; then
16484 archive_cmds_need_lc_GCJ
=no
16486 rhapsody
* | darwin1.
[012])
16487 allow_undefined_flag_GCJ
='-undefined suppress'
16490 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16491 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
16493 case ${MACOSX_DEPLOYMENT_TARGET} in
16495 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
16498 allow_undefined_flag_GCJ
='-undefined dynamic_lookup'
16504 lt_int_apple_cc_single_mod
=no
16505 output_verbose_link_cmd
='echo'
16506 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
16507 lt_int_apple_cc_single_mod
=yes
16509 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16510 archive_cmds_GCJ
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16512 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'
16514 module_cmds_GCJ
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16516 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16517 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}'
16519 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}'
16521 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}'
16522 hardcode_direct_GCJ
=no
16523 hardcode_automatic_GCJ
=yes
16524 hardcode_shlibpath_var_GCJ
=unsupported
16525 whole_archive_flag_spec_GCJ
='-all_load $convenience'
16526 link_all_deplibs_GCJ
=yes
16533 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16535 hardcode_shlibpath_var_GCJ
=no
16542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16543 # support. Future versions do this automatically, but an explicit c++rt0.o
16544 # does not break anything, and helps significantly (at the cost of a little
16547 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16548 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16549 hardcode_direct_GCJ
=yes
16550 hardcode_shlibpath_var_GCJ
=no
16553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16555 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_direct_GCJ
=yes
16557 hardcode_minus_L_GCJ
=yes
16558 hardcode_shlibpath_var_GCJ
=no
16561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16562 freebsd
* | kfreebsd
*-gnu)
16563 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16564 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16565 hardcode_direct_GCJ
=yes
16566 hardcode_shlibpath_var_GCJ
=no
16570 if test "$GCC" = yes; then
16571 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'
16573 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'
16575 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16576 hardcode_libdir_separator_GCJ
=:
16577 hardcode_direct_GCJ
=yes
16579 # hardcode_minus_L: Not really in the search PATH,
16580 # but as the default location of the library.
16581 hardcode_minus_L_GCJ
=yes
16582 export_dynamic_flag_spec_GCJ
='${wl}-E'
16586 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16587 case "$host_cpu" in
16589 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16596 case "$host_cpu" in
16598 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16601 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16605 if test "$with_gnu_ld" = no
; then
16606 case "$host_cpu" in
16608 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16609 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16610 hardcode_libdir_separator_GCJ
=:
16611 hardcode_direct_GCJ
=no
16612 hardcode_shlibpath_var_GCJ
=no
16615 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16616 hardcode_direct_GCJ
=no
16617 hardcode_shlibpath_var_GCJ
=no
16619 # hardcode_minus_L: Not really in the search PATH,
16620 # but as the default location of the library.
16621 hardcode_minus_L_GCJ
=yes
16624 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16625 hardcode_libdir_separator_GCJ
=:
16626 hardcode_direct_GCJ
=yes
16627 export_dynamic_flag_spec_GCJ
='${wl}-E'
16629 # hardcode_minus_L: Not really in the search PATH,
16630 # but as the default location of the library.
16631 hardcode_minus_L_GCJ
=yes
16637 irix5
* | irix6
* | nonstopux
*)
16638 if test "$GCC" = yes; then
16639 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'
16641 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'
16642 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16644 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16645 hardcode_libdir_separator_GCJ
=:
16646 link_all_deplibs_GCJ
=yes
16650 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16651 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16653 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16655 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16656 hardcode_direct_GCJ
=yes
16657 hardcode_shlibpath_var_GCJ
=no
16661 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_direct_GCJ
=yes
16663 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16664 hardcode_libdir_separator_GCJ
=:
16665 hardcode_shlibpath_var_GCJ
=no
16669 hardcode_direct_GCJ
=yes
16670 hardcode_shlibpath_var_GCJ
=no
16671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16672 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16673 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16674 export_dynamic_flag_spec_GCJ
='${wl}-E'
16677 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16678 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16682 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16683 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16690 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16691 hardcode_minus_L_GCJ
=yes
16692 allow_undefined_flag_GCJ
=unsupported
16693 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'
16694 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16698 if test "$GCC" = yes; then
16699 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16700 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'
16702 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16703 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'
16705 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16706 hardcode_libdir_separator_GCJ
=:
16709 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16710 if test "$GCC" = yes; then
16711 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16712 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'
16713 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16715 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16716 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'
16717 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~
16718 $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'
16720 # Both c and cxx compiler support -rpath directly
16721 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
16723 hardcode_libdir_separator_GCJ
=:
16727 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728 hardcode_shlibpath_var_GCJ
=no
16729 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
16730 runpath_var
=LD_RUN_PATH
16731 hardcode_runpath_var
=yes
16735 no_undefined_flag_GCJ
=' -z text'
16736 if test "$GCC" = yes; then
16737 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16739 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16741 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16745 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16746 hardcode_shlibpath_var_GCJ
=no
16748 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16749 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16750 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
16752 link_all_deplibs_GCJ
=yes
16756 if test "x$host_vendor" = xsequent
; then
16757 # Use $CC to link under sequent, because it throws in some extra .o
16758 # files that make .init and .fini sections work.
16759 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16761 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16763 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16764 hardcode_direct_GCJ
=yes
16765 hardcode_minus_L_GCJ
=yes
16766 hardcode_shlibpath_var_GCJ
=no
16770 case $host_vendor in
16772 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16773 hardcode_direct_GCJ
=yes # is this really true???
16776 ## LD is ld it makes a PLAMLIB
16777 ## CC just makes a GrossModule.
16778 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16779 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
16780 hardcode_direct_GCJ
=no
16783 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16784 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
16787 runpath_var
='LD_RUN_PATH'
16788 hardcode_shlibpath_var_GCJ
=no
16792 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16793 hardcode_shlibpath_var_GCJ
=no
16794 export_dynamic_flag_spec_GCJ
='-Bexport'
16798 if test -d /usr
/nec
; then
16799 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16800 hardcode_shlibpath_var_GCJ
=no
16801 runpath_var
=LD_RUN_PATH
16802 hardcode_runpath_var
=yes
16808 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16809 hardcode_direct_GCJ
=yes
16810 hardcode_minus_L_GCJ
=no
16811 hardcode_shlibpath_var_GCJ
=no
16812 hardcode_runpath_var
=yes
16813 runpath_var
=LD_RUN_PATH
16816 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
16817 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
16818 if test "$GCC" = yes; then
16819 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16821 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823 runpath_var
='LD_RUN_PATH'
16824 hardcode_shlibpath_var_GCJ
=no
16828 no_undefined_flag_GCJ
=' -z text'
16829 # $CC -shared without GNU ld will not create a library from C++
16830 # object files and a static libstdc++, better avoid it by now
16831 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16834 hardcode_libdir_flag_spec_GCJ
=
16835 hardcode_shlibpath_var_GCJ
=no
16836 runpath_var
='LD_RUN_PATH'
16840 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16841 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16842 hardcode_shlibpath_var_GCJ
=no
16851 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16852 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16853 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
16855 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16856 if test "$GCC" = yes; then
16857 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16861 # Do we need to explicitly link libc?
16863 case "x$archive_cmds_need_lc_GCJ" in
16865 # Assume -lc should be added
16866 archive_cmds_need_lc_GCJ
=yes
16868 if test "$enable_shared" = yes && test "$GCC" = yes; then
16869 case $archive_cmds_GCJ in
16871 # FIXME: we may have to deal with multi-command sequences.
16874 # Test whether the compiler implicitly links with -lc since on some
16875 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16876 # to ld, don't add -lc before -lgcc.
16877 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16878 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16880 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } 2>conftest.err
; then
16889 libobjs
=conftest.
$ac_objext
16891 wl
=$lt_prog_compiler_wl_GCJ
16897 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
16898 allow_undefined_flag_GCJ
=
16899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16900 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }
16905 archive_cmds_need_lc_GCJ
=no
16907 archive_cmds_need_lc_GCJ
=yes
16909 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
16911 cat conftest.err
1>&5
16914 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16915 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16922 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16923 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16924 library_names_spec
=
16925 libname_spec
='lib$name'
16929 postuninstall_cmds
=
16933 shlibpath_overrides_runpath
=unknown
16935 dynamic_linker
="$host_os ld.so"
16936 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16937 if test "$GCC" = yes; then
16938 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16939 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16940 # if the path contains ";" then we assume it to be the separator
16941 # otherwise default to the standard path separator (i.e. ":") - it is
16942 # assumed that no part of a normal pathname contains ";" but that should
16943 # okay in the real world where ";" in dirpaths is itself problematic.
16944 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16946 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16949 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16951 need_lib_prefix
=unknown
16952 hardcode_into_libs
=no
16954 # when you set need_version to no, make sure it does not cause -set_version
16955 # flags to be left without arguments
16956 need_version
=unknown
16961 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16962 shlibpath_var
=LIBPATH
16964 # AIX 3 has no versioning support, so we append a major version to the name.
16965 soname_spec
='${libname}${release}${shared_ext}$major'
16972 hardcode_into_libs
=yes
16973 if test "$host_cpu" = ia64
; then
16974 # AIX 5 supports IA64
16975 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16976 shlibpath_var
=LD_LIBRARY_PATH
16978 # With GCC up to 2.95.x, collect2 would create an import file
16979 # for dependence libraries. The import file would start with
16980 # the line `#! .'. This would cause the generated library to
16981 # depend on `.', always an invalid library. This was fixed in
16982 # development snapshots of GCC prior to 3.0.
16984 aix4 | aix4.
[01] | aix4.
[01].
*)
16985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16987 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16990 can_build_shared
=no
16994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16995 # soname into executable. Probably we can add versioning support to
16996 # collect2, so additional links can be useful in future.
16997 if test "$aix_use_runtimelinking" = yes; then
16998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16999 # instead of lib<name>.a to let people know that these are not
17000 # typical AIX shared libraries.
17001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003 # We preserve .a as extension for shared libraries through AIX4.2
17004 # and later when we are not doing run time linking.
17005 library_names_spec
='${libname}${release}.a $libname.a'
17006 soname_spec
='${libname}${release}${shared_ext}$major'
17008 shlibpath_var
=LIBPATH
17013 library_names_spec
='$libname.ixlibrary $libname.a'
17014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17015 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'
17019 library_names_spec
='${libname}${shared_ext}'
17020 dynamic_linker
="$host_os ld.so"
17021 shlibpath_var
=LIBRARY_PATH
17027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec
='${libname}${release}${shared_ext}$major'
17029 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17030 shlibpath_var
=LD_LIBRARY_PATH
17031 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17032 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17033 # the default ld.so.conf also contains /usr/contrib/lib and
17034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17035 # libtool to hard-code these into programs
17038 cygwin
* | mingw
* | pw32
*)
17039 version_type
=windows
17044 case $GCC,$host_os in
17045 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17046 library_names_spec
='$libname.dll.a'
17047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17048 postinstall_cmds
='base_file=`basename \${file}`~
17049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17050 dldir=$destdir/`dirname \$dlpath`~
17051 test -d \$dldir || mkdir -p \$dldir~
17052 $install_prog $dir/$dlname \$dldir/$dlname'
17053 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17054 dlpath=$dir/\$dldll~
17056 shlibpath_overrides_runpath
=yes
17060 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17061 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17062 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17065 # MinGW DLLs use traditional 'lib' prefix
17066 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17067 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17068 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17069 # It is most probably a Windows format PATH printed by
17070 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17071 # path with ; separators, and with drive letters. We can handle the
17072 # drive letters (cygwin fileutils understands them), so leave them,
17073 # especially as we might pass files found there to a mingw objdump,
17074 # which wouldn't understand a cygwinified path. Ahh.
17075 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17077 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17081 # pw32 DLLs use 'pw' prefix rather than 'lib'
17082 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17088 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17091 dynamic_linker
='Win32 ld.exe'
17092 # FIXME: first we should search . and the directory the executable is in
17096 darwin
* | rhapsody
*)
17097 dynamic_linker
="$host_os dyld"
17098 version_type
=darwin
17101 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17102 soname_spec
='${libname}${release}${major}$shared_ext'
17103 shlibpath_overrides_runpath
=yes
17104 shlibpath_var
=DYLD_LIBRARY_PATH
17105 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
17106 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17107 if test "$GCC" = yes; then
17108 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"`
17110 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17112 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17120 soname_spec
='${libname}${release}${shared_ext}$major'
17121 shlibpath_var
=LD_LIBRARY_PATH
17132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17133 soname_spec
='${libname}${release}${shared_ext}$major'
17134 shlibpath_var
=LD_LIBRARY_PATH
17135 shlibpath_overrides_runpath
=no
17136 hardcode_into_libs
=yes
17137 dynamic_linker
='GNU ld.so'
17141 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17142 version_type
=freebsd-
$objformat
17143 case $version_type in
17145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17150 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17154 shlibpath_var
=LD_LIBRARY_PATH
17157 shlibpath_overrides_runpath
=yes
17159 freebsd3.01
* | freebsdelf3.01
*)
17160 shlibpath_overrides_runpath
=yes
17161 hardcode_into_libs
=yes
17164 shlibpath_overrides_runpath
=no
17165 hardcode_into_libs
=yes
17174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17175 soname_spec
='${libname}${release}${shared_ext}$major'
17176 shlibpath_var
=LD_LIBRARY_PATH
17177 hardcode_into_libs
=yes
17180 hpux9
* | hpux10
* | hpux11
*)
17181 # Give a soname corresponding to the major version so that dld.sl refuses to
17182 # link against other versions.
17186 case "$host_cpu" in
17189 hardcode_into_libs
=yes
17190 dynamic_linker
="$host_os dld.so"
17191 shlibpath_var
=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 soname_spec
='${libname}${release}${shared_ext}$major'
17195 if test "X$HPUX_IA64_MODE" = X32
; then
17196 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17198 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17200 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17204 hardcode_into_libs
=yes
17205 dynamic_linker
="$host_os dld.sl"
17206 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17207 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 soname_spec
='${libname}${release}${shared_ext}$major'
17210 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17211 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17215 dynamic_linker
="$host_os dld.sl"
17216 shlibpath_var
=SHLIB_PATH
17217 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec
='${libname}${release}${shared_ext}$major'
17222 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17223 postinstall_cmds
='chmod 555 $lib'
17226 irix5
* | irix6
* | nonstopux
*)
17228 nonstopux
*) version_type
=nonstopux
;;
17230 if test "$lt_cv_prog_gnu_ld" = yes; then
17238 soname_spec
='${libname}${release}${shared_ext}$major'
17239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17241 irix5
* | nonstopux
*)
17242 libsuff
= shlibsuff
=
17245 case $LD in # libtool.m4 will add one of these switches to LD
17246 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17247 libsuff
= shlibsuff
= libmagic
=32-bit;;
17248 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17249 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17250 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17251 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17252 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17256 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17257 shlibpath_overrides_runpath
=no
17258 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17259 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17260 hardcode_into_libs
=yes
17263 # No shared lib support for Linux oldld, aout, or coff.
17264 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17268 # This must be Linux ELF.
17273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274 soname_spec
='${libname}${release}${shared_ext}$major'
17275 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17276 shlibpath_var
=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath
=no
17278 # This implies no fast_install, which is unacceptable.
17279 # Some rework will be needed to allow for fast_install
17280 # before this can be enabled.
17281 hardcode_into_libs
=yes
17283 # We used to test for /lib/ld.so.1 and disable shared libraries on
17284 # powerpc, because MkLinux only supported shared libraries with the
17285 # GNU dynamic linker. Since this was broken with cross compilers,
17286 # most powerpc-linux boxes support dynamic linking these days and
17287 # people can always --disable-shared, the test was removed, and we
17288 # assume the GNU/Linux dynamic linker is in use.
17289 dynamic_linker
='GNU/Linux ld.so'
17296 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17298 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17299 dynamic_linker
='NetBSD (a.out) ld.so'
17301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17302 soname_spec
='${libname}${release}${shared_ext}$major'
17303 dynamic_linker
='NetBSD ld.elf_so'
17305 shlibpath_var
=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath
=yes
17307 hardcode_into_libs
=yes
17312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 shlibpath_var
=LD_LIBRARY_PATH
17314 shlibpath_overrides_runpath
=yes
17321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 soname_spec
='${libname}${release}${shared_ext}$major'
17323 shlibpath_var
=LD_LIBRARY_PATH
17324 shlibpath_overrides_runpath
=yes
17331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333 shlibpath_var
=LD_LIBRARY_PATH
17334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17336 openbsd2.
[89] | openbsd2.
[89].
*)
17337 shlibpath_overrides_runpath
=no
17340 shlibpath_overrides_runpath
=yes
17344 shlibpath_overrides_runpath
=yes
17349 libname_spec
='$name'
17352 library_names_spec
='$libname${shared_ext} $libname.a'
17353 dynamic_linker
='OS/2 ld.exe'
17354 shlibpath_var
=LIBPATH
17357 osf3
* | osf4
* | osf5
*)
17361 soname_spec
='${libname}${release}${shared_ext}$major'
17362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 shlibpath_var
=LD_LIBRARY_PATH
17364 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17365 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17370 soname_spec
='${libname}${release}${shared_ext}$major'
17371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var
=LD_LIBRARY_PATH
17379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec
='${libname}${release}${shared_ext}$major'
17381 shlibpath_var
=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath
=yes
17383 hardcode_into_libs
=yes
17384 # ldd complains unless libraries are executable
17385 postinstall_cmds
='chmod +x $lib'
17390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17391 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17392 shlibpath_var
=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath
=yes
17394 if test "$with_gnu_ld" = yes; then
17400 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec
='${libname}${release}${shared_ext}$major'
17404 shlibpath_var
=LD_LIBRARY_PATH
17405 case $host_vendor in
17407 shlibpath_overrides_runpath
=no
17409 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17410 runpath_var
=LD_RUN_PATH
17418 shlibpath_overrides_runpath
=no
17419 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17425 if test -d /usr
/nec
;then
17427 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17428 soname_spec
='$libname${shared_ext}.$major'
17429 shlibpath_var
=LD_LIBRARY_PATH
17435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec
='${libname}${release}${shared_ext}$major'
17437 shlibpath_var
=LD_LIBRARY_PATH
17444 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17445 echo "${ECHO_T}$dynamic_linker" >&6; }
17446 test "$dynamic_linker" = no
&& can_build_shared
=no
17448 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17450 hardcode_action_GCJ
=
17451 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17452 test -n "$runpath_var GCJ" || \
17453 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17455 # We can hardcode non-existant directories.
17456 if test "$hardcode_direct_GCJ" != no
&&
17457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17458 # have to relink, otherwise we might link with an installed library
17459 # when we should be linking with a yet-to-be-installed one
17460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17461 test "$hardcode_minus_L_GCJ" != no
; then
17462 # Linking always hardcodes the temporary library directory.
17463 hardcode_action_GCJ
=relink
17465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17466 hardcode_action_GCJ
=immediate
17469 # We cannot hardcode anything, or else we can only hardcode existing
17471 hardcode_action_GCJ
=unsupported
17473 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17474 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17476 if test "$hardcode_action_GCJ" = relink
; then
17477 # Fast installation is not supported
17478 enable_fast_install
=no
17479 elif test "$shlibpath_overrides_runpath" = yes ||
17480 test "$enable_shared" = no
; then
17481 # Fast installation is not necessary
17482 enable_fast_install
=needless
17487 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17489 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
17490 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17491 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17492 { echo "$as_me:$LINENO: result: yes" >&5
17493 echo "${ECHO_T}yes" >&6; }
17495 # FIXME - insert some real tests, host_os isn't really good enough
17498 if test -n "$STRIP" ; then
17499 striplib
="$STRIP -x"
17500 { echo "$as_me:$LINENO: result: yes" >&5
17501 echo "${ECHO_T}yes" >&6; }
17503 { echo "$as_me:$LINENO: result: no" >&5
17504 echo "${ECHO_T}no" >&6; }
17508 { echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6; }
17514 if test "x$enable_dlopen" != xyes
; then
17515 enable_dlopen
=unknown
17516 enable_dlopen_self
=unknown
17517 enable_dlopen_self_static
=unknown
17524 lt_cv_dlopen
="load_add_on"
17526 lt_cv_dlopen_self
=yes
17530 lt_cv_dlopen
="LoadLibrary"
17535 lt_cv_dlopen
="dlopen"
17540 # if libdl is installed we need to link against it
17541 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 ac_check_lib_save_LIBS
=$LIBS
17548 cat >conftest.
$ac_ext <<_ACEOF
17551 cat confdefs.h
>>conftest.
$ac_ext
17552 cat >>conftest.
$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17555 /* Override any GCC internal prototype to avoid an error.
17556 Use char because int might match the return type of a GCC
17557 builtin and then its argument prototype would still apply. */
17570 rm -f conftest.
$ac_objext conftest
$ac_exeext
17571 if { (ac_try
="$ac_link"
17572 case "(($ac_try" in
17573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17579 grep -v '^ *+' conftest.er1 >conftest.err
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && {
17584 test -z "$ac_c_werror_flag" ||
17585 test ! -s conftest.err
17586 } && test -s conftest$ac_exeext &&
17587 $as_test_x conftest$ac_exeext; then
17588 ac_cv_lib_dl_dlopen=yes
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_lib_dl_dlopen=no
17596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17597 conftest$ac_exeext conftest.$ac_ext
17598 LIBS=$ac_check_lib_save_LIBS
17600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17602 if test $ac_cv_lib_dl_dlopen = yes; then
17603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17606 lt_cv_dlopen="dyld"
17608 lt_cv_dlopen_self=yes
17615 { echo "$as_me:$LINENO: checking for shl_load" >&5
17616 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17617 if test "${ac_cv_func_shl_load+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 cat >conftest.$ac_ext <<_ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17628 #define shl_load innocuous_shl_load
17630 /* System header to define __stub macros and hopefully few prototypes,
17631 which can conflict with char shl_load (); below.
17632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17633 <limits.h> exists even on freestanding compilers. */
17636 # include <limits.h>
17638 # include <assert.h>
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17650 /* The GNU C library defines this for functions which it implements
17651 to always fail with ENOSYS. Some functions are actually named
17652 something starting with __ and the normal name is an alias. */
17653 #if defined __stub_shl_load || defined __stub___shl_load
17660 return shl_load ();
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (ac_try="$ac_link"
17667 case "(($ac_try" in
17668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17669 *) ac_try_echo
=$ac_try;;
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_link") 2>conftest.er1
17674 grep -v '^ *+' conftest.er1
>conftest.err
17676 cat conftest.err
>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && {
17679 test -z "$ac_c_werror_flag" ||
17680 test ! -s conftest.err
17681 } && test -s conftest
$ac_exeext &&
17682 $as_test_x conftest
$ac_exeext; then
17683 ac_cv_func_shl_load
=yes
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.
$ac_ext >&5
17688 ac_cv_func_shl_load
=no
17691 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17692 conftest
$ac_exeext conftest.
$ac_ext
17694 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17695 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17696 if test $ac_cv_func_shl_load = yes; then
17697 lt_cv_dlopen
="shl_load"
17699 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17700 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 ac_check_lib_save_LIBS
=$LIBS
17706 cat >conftest.
$ac_ext <<_ACEOF
17709 cat confdefs.h
>>conftest.
$ac_ext
17710 cat >>conftest.
$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17713 /* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
17723 return shl_load ();
17728 rm -f conftest.
$ac_objext conftest
$ac_exeext
17729 if { (ac_try
="$ac_link"
17730 case "(($ac_try" in
17731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && {
17742 test -z "$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest$ac_exeext &&
17745 $as_test_x conftest$ac_exeext; then
17746 ac_cv_lib_dld_shl_load=yes
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_cv_lib_dld_shl_load=no
17754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17755 conftest$ac_exeext conftest.$ac_ext
17756 LIBS=$ac_check_lib_save_LIBS
17758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17760 if test $ac_cv_lib_dld_shl_load = yes; then
17761 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17763 { echo "$as_me:$LINENO: checking for dlopen" >&5
17764 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17765 if test "${ac_cv_func_dlopen+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17776 #define dlopen innocuous_dlopen
17778 /* System header to define __stub macros and hopefully few prototypes,
17779 which can conflict with char dlopen (); below.
17780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17781 <limits.h> exists even on freestanding compilers. */
17784 # include <limits.h>
17786 # include <assert.h>
17791 /* Override any GCC internal prototype to avoid an error.
17792 Use char because int might match the return type of a GCC
17793 builtin and then its argument prototype would still apply. */
17798 /* The GNU C library defines this for functions which it implements
17799 to always fail with ENOSYS. Some functions are actually named
17800 something starting with __ and the normal name is an alias. */
17801 #if defined __stub_dlopen || defined __stub___dlopen
17813 rm -f conftest.$ac_objext conftest$ac_exeext
17814 if { (ac_try="$ac_link"
17815 case "(($ac_try" in
17816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17817 *) ac_try_echo
=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_link") 2>conftest.er1
17822 grep -v '^ *+' conftest.er1
>conftest.err
17824 cat conftest.err
>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } && {
17827 test -z "$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 } && test -s conftest
$ac_exeext &&
17830 $as_test_x conftest
$ac_exeext; then
17831 ac_cv_func_dlopen
=yes
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.
$ac_ext >&5
17836 ac_cv_func_dlopen
=no
17839 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17840 conftest
$ac_exeext conftest.
$ac_ext
17842 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17843 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17844 if test $ac_cv_func_dlopen = yes; then
17845 lt_cv_dlopen
="dlopen"
17847 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17848 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 ac_check_lib_save_LIBS
=$LIBS
17854 cat >conftest.
$ac_ext <<_ACEOF
17857 cat confdefs.h
>>conftest.
$ac_ext
17858 cat >>conftest.
$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 /* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17876 rm -f conftest.
$ac_objext conftest
$ac_exeext
17877 if { (ac_try
="$ac_link"
17878 case "(($ac_try" in
17879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest$ac_exeext &&
17893 $as_test_x conftest$ac_exeext; then
17894 ac_cv_lib_dl_dlopen=yes
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ac_cv_lib_dl_dlopen=no
17902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17903 conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17908 if test $ac_cv_lib_dl_dlopen = yes; then
17909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17911 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-lsvld $LIBS"
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17925 /* Override any GCC internal prototype to avoid an error.
17926 Use char because int might match the return type of a GCC
17927 builtin and then its argument prototype would still apply. */
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (ac_try="$ac_link"
17942 case "(($ac_try" in
17943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17944 *) ac_try_echo
=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_link") 2>conftest.er1
17949 grep -v '^ *+' conftest.er1
>conftest.err
17951 cat conftest.err
>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && {
17954 test -z "$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17956 } && test -s conftest
$ac_exeext &&
17957 $as_test_x conftest
$ac_exeext; then
17958 ac_cv_lib_svld_dlopen
=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.
$ac_ext >&5
17963 ac_cv_lib_svld_dlopen
=no
17966 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17967 conftest
$ac_exeext conftest.
$ac_ext
17968 LIBS
=$ac_check_lib_save_LIBS
17970 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17972 if test $ac_cv_lib_svld_dlopen = yes; then
17973 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17975 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 ac_check_lib_save_LIBS
=$LIBS
17982 cat >conftest.
$ac_ext <<_ACEOF
17985 cat confdefs.h
>>conftest.
$ac_ext
17986 cat >>conftest.
$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17999 return dld_link ();
18004 rm -f conftest.
$ac_objext conftest
$ac_exeext
18005 if { (ac_try
="$ac_link"
18006 case "(($ac_try" in
18007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_link") 2>conftest.er1
18013 grep -v '^ *+' conftest.er1 >conftest.err
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest$ac_exeext &&
18021 $as_test_x conftest$ac_exeext; then
18022 ac_cv_lib_dld_dld_link=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_cv_lib_dld_dld_link=no
18030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18031 conftest$ac_exeext conftest.$ac_ext
18032 LIBS=$ac_check_lib_save_LIBS
18034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18035 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18036 if test $ac_cv_lib_dld_dld_link = yes; then
18037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18058 if test "x$lt_cv_dlopen" != xno; then
18064 case $lt_cv_dlopen in
18066 save_CPPFLAGS="$CPPFLAGS"
18067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18069 save_LDFLAGS="$LDFLAGS"
18070 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18073 LIBS="$lt_cv_dlopen_libs $LIBS"
18075 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18076 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18077 if test "${lt_cv_dlopen_self+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 if test "$cross_compiling" = yes; then :
18081 lt_cv_dlopen_self=cross
18083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18084 lt_status=$lt_dlunknown
18085 cat > conftest.$ac_ext <<EOF
18086 #line 18086 "configure"
18087 #include "confdefs.h"
18096 # define LT_DLGLOBAL RTLD_GLOBAL
18099 # define LT_DLGLOBAL DL_GLOBAL
18101 # define LT_DLGLOBAL 0
18105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18106 find out it does not work in some platform. */
18107 #ifndef LT_DLLAZY_OR_NOW
18109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18112 # define LT_DLLAZY_OR_NOW DL_LAZY
18115 # define LT_DLLAZY_OR_NOW RTLD_NOW
18118 # define LT_DLLAZY_OR_NOW DL_NOW
18120 # define LT_DLLAZY_OR_NOW 0
18128 extern "C" void exit (int);
18131 void fnord() { int i=42;}
18134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18135 int status = $lt_dlunknown;
18139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18141 /* dlclose (self); */
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148 (eval $ac_link) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18152 (./conftest; exit; ) 2>/dev/null
18154 case x$lt_status in
18155 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18156 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18157 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18160 # compilation failed
18161 lt_cv_dlopen_self=no
18168 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18169 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18171 if test "x$lt_cv_dlopen_self" = xyes; then
18172 LDFLAGS="$LDFLAGS $link_static_flag"
18173 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18174 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18175 if test "${lt_cv_dlopen_self_static+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 if test "$cross_compiling" = yes; then :
18179 lt_cv_dlopen_self_static=cross
18181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18182 lt_status=$lt_dlunknown
18183 cat > conftest.$ac_ext <<EOF
18184 #line 18184 "configure"
18185 #include "confdefs.h"
18194 # define LT_DLGLOBAL RTLD_GLOBAL
18197 # define LT_DLGLOBAL DL_GLOBAL
18199 # define LT_DLGLOBAL 0
18203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18204 find out it does not work in some platform. */
18205 #ifndef LT_DLLAZY_OR_NOW
18207 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18210 # define LT_DLLAZY_OR_NOW DL_LAZY
18213 # define LT_DLLAZY_OR_NOW RTLD_NOW
18216 # define LT_DLLAZY_OR_NOW DL_NOW
18218 # define LT_DLLAZY_OR_NOW 0
18226 extern "C" void exit (int);
18229 void fnord() { int i=42;}
18232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18233 int status = $lt_dlunknown;
18237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18238 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18239 /* dlclose (self); */
18245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18246 (eval $ac_link) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18250 (./conftest; exit; ) 2>/dev/null
18252 case x$lt_status in
18253 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18254 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18255 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18258 # compilation failed
18259 lt_cv_dlopen_self_static=no
18266 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18267 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18270 CPPFLAGS="$save_CPPFLAGS"
18271 LDFLAGS="$save_LDFLAGS"
18276 case $lt_cv_dlopen_self in
18277 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18278 *) enable_dlopen_self=unknown ;;
18281 case $lt_cv_dlopen_self_static in
18282 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18283 *) enable_dlopen_self_static=unknown ;;
18288 # The else clause should only fire when bootstrapping the
18289 # libtool distribution, otherwise you forgot to ship ltmain.sh
18290 # with your package, and you will get complaints that there are
18291 # no rules to generate ltmain.sh.
18292 if test -f "$ltmain"; then
18293 # See if we are running on zsh, and set the options which allow our commands through
18294 # without removal of \ escapes.
18295 if test -n "${ZSH_VERSION+set}" ; then
18296 setopt NO_GLOB_SUBST
18298 # Now quote all the things that may contain metacharacters while being
18299 # careful not to overquote the AC_SUBSTed values. We take copies of the
18300 # variables and quote the copies for generation of the libtool script.
18301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18302 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18303 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18304 deplibs_check_method reload_flag reload_cmds need_locks \
18305 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18306 lt_cv_sys_global_symbol_to_c_name_address \
18307 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18308 old_postinstall_cmds old_postuninstall_cmds \
18312 lt_prog_compiler_wl_GCJ \
18313 lt_prog_compiler_pic_GCJ \
18314 lt_prog_compiler_static_GCJ \
18315 lt_prog_compiler_no_builtin_flag_GCJ \
18316 export_dynamic_flag_spec_GCJ \
18317 thread_safe_flag_spec_GCJ \
18318 whole_archive_flag_spec_GCJ \
18319 enable_shared_with_static_runtimes_GCJ \
18320 old_archive_cmds_GCJ \
18321 old_archive_from_new_cmds_GCJ \
18322 predep_objects_GCJ \
18323 postdep_objects_GCJ \
18326 compiler_lib_search_path_GCJ \
18328 archive_expsym_cmds_GCJ \
18329 postinstall_cmds_GCJ \
18330 postuninstall_cmds_GCJ \
18331 old_archive_from_expsyms_cmds_GCJ \
18332 allow_undefined_flag_GCJ \
18333 no_undefined_flag_GCJ \
18334 export_symbols_cmds_GCJ \
18335 hardcode_libdir_flag_spec_GCJ \
18336 hardcode_libdir_flag_spec_ld_GCJ \
18337 hardcode_libdir_separator_GCJ \
18338 hardcode_automatic_GCJ \
18340 module_expsym_cmds_GCJ \
18341 lt_cv_prog_compiler_c_o_GCJ \
18342 exclude_expsyms_GCJ \
18343 include_expsyms_GCJ; do
18346 old_archive_cmds_GCJ | \
18347 old_archive_from_new_cmds_GCJ | \
18348 archive_cmds_GCJ | \
18349 archive_expsym_cmds_GCJ | \
18350 module_cmds_GCJ | \
18351 module_expsym_cmds_GCJ | \
18352 old_archive_from_expsyms_cmds_GCJ | \
18353 export_symbols_cmds_GCJ | \
18354 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18355 postinstall_cmds | postuninstall_cmds | \
18356 old_postinstall_cmds | old_postuninstall_cmds | \
18357 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18358 # Double-quote double-evaled strings.
18359 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
18362 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
18368 *'\$0 --fallback-echo"')
18369 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18375 cat <<__EOF__ >> "$cfgfile"
18376 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18378 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
18380 # Shell to use when invoking shell scripts.
18383 # Whether or not to build shared libraries.
18384 build_libtool_libs=$enable_shared
18386 # Whether or not to build static libraries.
18387 build_old_libs=$enable_static
18389 # Whether or not to add -lc for building shared libraries.
18390 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18392 # Whether or not to disallow shared libs when runtime libs are static
18393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18395 # Whether or not to optimize for fast installation.
18396 fast_install=$enable_fast_install
18399 host_alias=$host_alias
18402 # An echo program that does not interpret backslashes.
18407 AR_FLAGS=$lt_AR_FLAGS
18412 # A language-specific compiler.
18413 CC=$lt_compiler_GCJ
18415 # Is the compiler the GNU C compiler?
18421 # The linker used to build libraries.
18424 # Whether we need hard or soft links.
18427 # A BSD-compatible nm program.
18430 # A symbol stripping program
18433 # Used to examine libraries when file_magic_cmd begins "file"
18434 MAGIC_CMD=$MAGIC_CMD
18436 # Used on cygwin: DLL creation program.
18439 # Used on cygwin: object dumper.
18442 # Used on cygwin: assembler.
18445 # The name of the directory that contains temporary libtool files.
18448 # How to create reloadable object files.
18449 reload_flag=$lt_reload_flag
18450 reload_cmds=$lt_reload_cmds
18452 # How to pass a linker flag through the compiler.
18453 wl=$lt_lt_prog_compiler_wl_GCJ
18455 # Object file suffix (normally "o").
18456 objext="$ac_objext"
18458 # Old archive suffix (normally "a").
18461 # Shared library suffix (normally ".so").
18464 # Executable file suffix (normally "").
18467 # Additional compiler flags for building library objects.
18468 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18471 # What is the maximum length of a command?
18472 max_cmd_len=$lt_cv_sys_max_cmd_len
18474 # Does compiler simultaneously support -c and -o options?
18475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18477 # Must we lock files when doing compilation ?
18478 need_locks=$lt_need_locks
18480 # Do we need the lib prefix for modules?
18481 need_lib_prefix=$need_lib_prefix
18483 # Do we need a version for libraries?
18484 need_version=$need_version
18486 # Whether dlopen is supported.
18487 dlopen_support=$enable_dlopen
18489 # Whether dlopen of programs is supported.
18490 dlopen_self=$enable_dlopen_self
18492 # Whether dlopen of statically linked programs is supported.
18493 dlopen_self_static=$enable_dlopen_self_static
18495 # Compiler flag to prevent dynamic linking.
18496 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18498 # Compiler flag to turn off builtin functions.
18499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18501 # Compiler flag to allow reflexive dlopens.
18502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18504 # Compiler flag to generate shared objects directly from archives.
18505 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18507 # Compiler flag to generate thread-safe objects.
18508 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18510 # Library versioning type.
18511 version_type=$version_type
18513 # Format of library name prefix.
18514 libname_spec=$lt_libname_spec
18516 # List of archive names. First name is the real one, the rest are links.
18517 # The last name is the one that the linker finds with -lNAME.
18518 library_names_spec=$lt_library_names_spec
18520 # The coded name of the library, if different from the real name.
18521 soname_spec=$lt_soname_spec
18523 # Commands used to build and install an old-style archive.
18525 old_archive_cmds=$lt_old_archive_cmds_GCJ
18526 old_postinstall_cmds=$lt_old_postinstall_cmds
18527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18529 # Create an old-style archive from a shared archive.
18530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18532 # Create a temporary old-style archive to link instead of a shared archive.
18533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18535 # Commands used to build and install a shared archive.
18536 archive_cmds=$lt_archive_cmds_GCJ
18537 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18538 postinstall_cmds=$lt_postinstall_cmds
18539 postuninstall_cmds=$lt_postuninstall_cmds
18541 # Commands used to build a loadable module (assumed same as above if empty)
18542 module_cmds=$lt_module_cmds_GCJ
18543 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18545 # Commands to strip libraries.
18546 old_striplib=$lt_old_striplib
18547 striplib=$lt_striplib
18549 # Dependencies to place before the objects being linked to create a
18551 predep_objects=$lt_predep_objects_GCJ
18553 # Dependencies to place after the objects being linked to create a
18555 postdep_objects=$lt_postdep_objects_GCJ
18557 # Dependencies to place before the objects being linked to create a
18559 predeps=$lt_predeps_GCJ
18561 # Dependencies to place after the objects being linked to create a
18563 postdeps=$lt_postdeps_GCJ
18565 # The library search path used internally by the compiler when linking
18566 # a shared library.
18567 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18569 # Method to check whether dependent libraries are shared objects.
18570 deplibs_check_method=$lt_deplibs_check_method
18572 # Command to use when deplibs_check_method == file_magic.
18573 file_magic_cmd=$lt_file_magic_cmd
18575 # Flag that allows shared libraries with undefined symbols to be built.
18576 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18578 # Flag that forces no undefined symbols.
18579 no_undefined_flag=$lt_no_undefined_flag_GCJ
18581 # Commands used to finish a libtool library installation in a directory.
18582 finish_cmds=$lt_finish_cmds
18584 # Same as above, but a single script fragment to be evaled but not shown.
18585 finish_eval=$lt_finish_eval
18587 # Take the output of nm and produce a listing of raw symbols and C names.
18588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18590 # Transform the output of nm in a proper C declaration
18591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18593 # Transform the output of nm in a C name address pair
18594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18596 # This is the shared library runtime path variable.
18597 runpath_var=$runpath_var
18599 # This is the shared library path variable.
18600 shlibpath_var=$shlibpath_var
18602 # Is shlibpath searched before the hard-coded library search path?
18603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18605 # How to hardcode a shared library path into an executable.
18606 hardcode_action=$hardcode_action_GCJ
18608 # Whether we should hardcode library paths into libraries.
18609 hardcode_into_libs=$hardcode_into_libs
18611 # Flag to hardcode \$libdir into a binary during linking.
18612 # This must work even if \$libdir does not exist.
18613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18615 # If ld is used when linking, flag to hardcode \$libdir into
18616 # a binary during linking. This must work even if \$libdir does
18618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18620 # Whether we need a single -rpath flag with a separated argument.
18621 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18624 # resulting binary.
18625 hardcode_direct=$hardcode_direct_GCJ
18627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18628 # resulting binary.
18629 hardcode_minus_L=$hardcode_minus_L_GCJ
18631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18632 # the resulting binary.
18633 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18635 # Set to yes if building a shared library automatically hardcodes DIR into the library
18636 # and all subsequent libraries and executables linked against it.
18637 hardcode_automatic=$hardcode_automatic_GCJ
18639 # Variables whose values should be saved in libtool wrapper scripts and
18640 # restored at relink time.
18641 variables_saved_for_relink="$variables_saved_for_relink"
18643 # Whether libtool must link a program against all its dependency libraries.
18644 link_all_deplibs=$link_all_deplibs_GCJ
18646 # Compile-time system search path for libraries
18647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18649 # Run-time system search path for libraries
18650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18652 # Fix the shell variable \$srcfile for the compiler.
18653 fix_srcfile_path="$fix_srcfile_path_GCJ"
18655 # Set to yes if exported symbols are required.
18656 always_export_symbols=$always_export_symbols_GCJ
18658 # The commands to list exported symbols.
18659 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18661 # The commands to extract the exported symbol list from a shared archive.
18662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18664 # Symbols that should not be listed in the preloaded symbols.
18665 exclude_expsyms=$lt_exclude_expsyms_GCJ
18667 # Symbols that must always be exported.
18668 include_expsyms=$lt_include_expsyms_GCJ
18670 # ### END LIBTOOL TAG CONFIG: $tagname
18676 # If there is no Makefile yet, we rely on a make rule to execute
18677 # `config.status
--recheck' to rerun these tests and create the
18678 # libtool script then.
18679 test -f Makefile && make "$ltmain"
18684 ac_cpp='$CPP $CPPFLAGS'
18685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18686 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18699 # Source file extension for RC test sources.
18702 # Object file extension for compiled RC test sources.
18706 # Code to be used in simple compile tests
18707 lt_simple_compile_test_code='sample MENU
{ MENUITEM
"&Soup", 100, CHECKED
}\n'
18709 # Code to be used in simple link tests
18710 lt_simple_link_test_code="$lt_simple_compile_test_code"
18712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18714 # If no C compiler was specified, use CC.
18717 # Allow CC to be a program name with arguments.
18721 # Allow CC to be a program name with arguments.
18726 lt_cv_prog_compiler_c_o_RC=yes
18728 # The else clause should only fire when bootstrapping the
18729 # libtool distribution, otherwise you forgot to ship ltmain.sh
18730 # with your package, and you will get complaints that there are
18731 # no rules to generate ltmain.sh.
18732 if test -f "$ltmain"; then
18733 # See if we are running on zsh, and set the options which allow our commands through
18734 # without removal of \ escapes.
18735 if test -n "${ZSH_VERSION+set}" ; then
18736 setopt NO_GLOB_SUBST
18738 # Now quote all the things that may contain metacharacters while being
18739 # careful not to overquote the AC_SUBSTed values. We take copies of the
18740 # variables and quote the copies for generation of the libtool script.
18741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18744 deplibs_check_method reload_flag reload_cmds need_locks \
18745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18746 lt_cv_sys_global_symbol_to_c_name_address \
18747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18748 old_postinstall_cmds old_postuninstall_cmds \
18752 lt_prog_compiler_wl_RC \
18753 lt_prog_compiler_pic_RC \
18754 lt_prog_compiler_static_RC \
18755 lt_prog_compiler_no_builtin_flag_RC \
18756 export_dynamic_flag_spec_RC \
18757 thread_safe_flag_spec_RC \
18758 whole_archive_flag_spec_RC \
18759 enable_shared_with_static_runtimes_RC \
18760 old_archive_cmds_RC \
18761 old_archive_from_new_cmds_RC \
18762 predep_objects_RC \
18763 postdep_objects_RC \
18766 compiler_lib_search_path_RC \
18768 archive_expsym_cmds_RC \
18769 postinstall_cmds_RC \
18770 postuninstall_cmds_RC \
18771 old_archive_from_expsyms_cmds_RC \
18772 allow_undefined_flag_RC \
18773 no_undefined_flag_RC \
18774 export_symbols_cmds_RC \
18775 hardcode_libdir_flag_spec_RC \
18776 hardcode_libdir_flag_spec_ld_RC \
18777 hardcode_libdir_separator_RC \
18778 hardcode_automatic_RC \
18780 module_expsym_cmds_RC \
18781 lt_cv_prog_compiler_c_o_RC \
18782 exclude_expsyms_RC \
18783 include_expsyms_RC; do
18786 old_archive_cmds_RC | \
18787 old_archive_from_new_cmds_RC | \
18788 archive_cmds_RC | \
18789 archive_expsym_cmds_RC | \
18791 module_expsym_cmds_RC | \
18792 old_archive_from_expsyms_cmds_RC | \
18793 export_symbols_cmds_RC | \
18794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795 postinstall_cmds | postuninstall_cmds | \
18796 old_postinstall_cmds | old_postuninstall_cmds | \
18797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798 # Double-quote double-evaled strings.
18799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18808 *'\
$0 --fallback-echo"')
18809 lt_echo=`$echo "X
$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$
/$0 --fallback-echo"/'`
18815 cat <<__EOF__ >> "$cfgfile"
18816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18820 # Shell to use when invoking shell scripts.
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_RC
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18839 host_alias=$host_alias
18842 # An echo program that does not interpret backslashes.
18847 AR_FLAGS=$lt_AR_FLAGS
18852 # A language-specific compiler.
18855 # Is the compiler the GNU C compiler?
18861 # The linker used to build libraries.
18864 # Whether we need hard or soft links.
18867 # A BSD-compatible nm program.
18870 # A symbol stripping program
18873 # Used to examine libraries when file_magic_cmd begins "file"
18874 MAGIC_CMD=$MAGIC_CMD
18876 # Used on cygwin: DLL creation program.
18879 # Used on cygwin: object dumper.
18882 # Used on cygwin: assembler.
18885 # The name of the directory that contains temporary libtool files.
18888 # How to create reloadable object files.
18889 reload_flag=$lt_reload_flag
18890 reload_cmds=$lt_reload_cmds
18892 # How to pass a linker flag through the compiler.
18893 wl=$lt_lt_prog_compiler_wl_RC
18895 # Object file suffix (normally "o
").
18896 objext="$ac_objext"
18898 # Old archive suffix (normally "a
").
18901 # Shared library suffix (normally ".so
").
18904 # Executable file suffix (normally "").
18907 # Additional compiler flags for building library objects.
18908 pic_flag=$lt_lt_prog_compiler_pic_RC
18911 # What is the maximum length of a command?
18912 max_cmd_len=$lt_cv_sys_max_cmd_len
18914 # Does compiler simultaneously support -c and -o options?
18915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18917 # Must we lock files when doing compilation ?
18918 need_locks=$lt_need_locks
18920 # Do we need the lib prefix for modules?
18921 need_lib_prefix=$need_lib_prefix
18923 # Do we need a version for libraries?
18924 need_version=$need_version
18926 # Whether dlopen is supported.
18927 dlopen_support=$enable_dlopen
18929 # Whether dlopen of programs is supported.
18930 dlopen_self=$enable_dlopen_self
18932 # Whether dlopen of statically linked programs is supported.
18933 dlopen_self_static=$enable_dlopen_self_static
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static_RC
18938 # Compiler flag to turn off builtin functions.
18939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18941 # Compiler flag to allow reflexive dlopens.
18942 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18944 # Compiler flag to generate shared objects directly from archives.
18945 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18947 # Compiler flag to generate thread-safe objects.
18948 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18950 # Library versioning type.
18951 version_type=$version_type
18953 # Format of library name prefix.
18954 libname_spec=$lt_libname_spec
18956 # List of archive names. First name is the real one, the rest are links.
18957 # The last name is the one that the linker finds with -lNAME.
18958 library_names_spec=$lt_library_names_spec
18960 # The coded name of the library, if different from the real name.
18961 soname_spec=$lt_soname_spec
18963 # Commands used to build and install an old-style archive.
18965 old_archive_cmds=$lt_old_archive_cmds_RC
18966 old_postinstall_cmds=$lt_old_postinstall_cmds
18967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18969 # Create an old-style archive from a shared archive.
18970 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18972 # Create a temporary old-style archive to link instead of a shared archive.
18973 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18975 # Commands used to build and install a shared archive.
18976 archive_cmds=$lt_archive_cmds_RC
18977 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18978 postinstall_cmds=$lt_postinstall_cmds
18979 postuninstall_cmds=$lt_postuninstall_cmds
18981 # Commands used to build a loadable module (assumed same as above if empty)
18982 module_cmds=$lt_module_cmds_RC
18983 module_expsym_cmds=$lt_module_expsym_cmds_RC
18985 # Commands to strip libraries.
18986 old_striplib=$lt_old_striplib
18987 striplib=$lt_striplib
18989 # Dependencies to place before the objects being linked to create a
18991 predep_objects=$lt_predep_objects_RC
18993 # Dependencies to place after the objects being linked to create a
18995 postdep_objects=$lt_postdep_objects_RC
18997 # Dependencies to place before the objects being linked to create a
18999 predeps=$lt_predeps_RC
19001 # Dependencies to place after the objects being linked to create a
19003 postdeps=$lt_postdeps_RC
19005 # The library search path used internally by the compiler when linking
19006 # a shared library.
19007 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19009 # Method to check whether dependent libraries are shared objects.
19010 deplibs_check_method=$lt_deplibs_check_method
19012 # Command to use when deplibs_check_method == file_magic.
19013 file_magic_cmd=$lt_file_magic_cmd
19015 # Flag that allows shared libraries with undefined symbols to be built.
19016 allow_undefined_flag=$lt_allow_undefined_flag_RC
19018 # Flag that forces no undefined symbols.
19019 no_undefined_flag=$lt_no_undefined_flag_RC
19021 # Commands used to finish a libtool library installation in a directory.
19022 finish_cmds=$lt_finish_cmds
19024 # Same as above, but a single script fragment to be evaled but not shown.
19025 finish_eval=$lt_finish_eval
19027 # Take the output of nm and produce a listing of raw symbols and C names.
19028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19030 # Transform the output of nm in a proper C declaration
19031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19033 # Transform the output of nm in a C name address pair
19034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19036 # This is the shared library runtime path variable.
19037 runpath_var=$runpath_var
19039 # This is the shared library path variable.
19040 shlibpath_var=$shlibpath_var
19042 # Is shlibpath searched before the hard-coded library search path?
19043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19045 # How to hardcode a shared library path into an executable.
19046 hardcode_action=$hardcode_action_RC
19048 # Whether we should hardcode library paths into libraries.
19049 hardcode_into_libs=$hardcode_into_libs
19051 # Flag to hardcode \$libdir into a binary during linking.
19052 # This must work even if \$libdir does not exist.
19053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19055 # If ld is used when linking, flag to hardcode \$libdir into
19056 # a binary during linking. This must work even if \$libdir does
19058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19060 # Whether we need a single -rpath flag with a separated argument.
19061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19063 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19064 # resulting binary.
19065 hardcode_direct=$hardcode_direct_RC
19067 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19068 # resulting binary.
19069 hardcode_minus_L=$hardcode_minus_L_RC
19071 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19072 # the resulting binary.
19073 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19075 # Set to yes if building a shared library automatically hardcodes DIR into the library
19076 # and all subsequent libraries and executables linked against it.
19077 hardcode_automatic=$hardcode_automatic_RC
19079 # Variables whose values should be saved in libtool wrapper scripts and
19080 # restored at relink time.
19081 variables_saved_for_relink="$variables_saved_for_relink"
19083 # Whether libtool must link a program against all its dependency libraries.
19084 link_all_deplibs=$link_all_deplibs_RC
19086 # Compile-time system search path for libraries
19087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19089 # Run-time system search path for libraries
19090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19092 # Fix the shell variable \$srcfile for the compiler.
19093 fix_srcfile_path="$fix_srcfile_path_RC"
19095 # Set to yes if exported symbols are required.
19096 always_export_symbols=$always_export_symbols_RC
19098 # The commands to list exported symbols.
19099 export_symbols_cmds=$lt_export_symbols_cmds_RC
19101 # The commands to extract the exported symbol list from a shared archive.
19102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19104 # Symbols that should not be listed in the preloaded symbols.
19105 exclude_expsyms=$lt_exclude_expsyms_RC
19107 # Symbols that must always be exported.
19108 include_expsyms=$lt_include_expsyms_RC
19110 # ### END LIBTOOL TAG CONFIG: $tagname
19116 # If there is no Makefile yet, we rely on a make rule to execute
19117 # `config.status --recheck' to rerun these tests and create the
19118 # libtool script then.
19119 test -f Makefile && make "$ltmain"
19124 ac_cpp='$CPP $CPPFLAGS'
19125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19134 { { echo "$as_me:$LINENO: error
: Unsupported tag name
: $tagname" >&5
19135 echo "$as_me: error
: Unsupported tag name
: $tagname" >&2;}
19136 { (exit 1); exit 1; }; }
19140 # Append the new tag name to the list of available tags.
19141 if test -n "$tagname" ; then
19142 available_tags="$available_tags $tagname"
19148 # Now substitute the updated list of available tags.
19149 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T
\""; then
19150 mv "${ofile}T
" "$ofile"
19154 { { echo "$as_me:$LINENO: error
: unable to update list of available tagged configurations.
" >&5
19155 echo "$as_me: error
: unable to update list of available tagged configurations.
" >&2;}
19156 { (exit 1); exit 1; }; }
19162 # This can be used to rebuild libtool when needed
19163 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh
"
19165 # Always use our own libtool.
19166 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19168 # Prevent multiple expansion
19189 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
19190 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
19191 if test "${ac_cv_c_const+set}" = set; then
19192 echo $ECHO_N "(cached
) $ECHO_C" >&6
19194 cat >conftest.$ac_ext <<_ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19204 /* FIXME: Include the comments suggested by Paul. */
19205 #ifndef __cplusplus
19206 /* Ultrix mips cc rejects this. */
19207 typedef int charset[2];
19209 /* SunOS 4.1.1 cc rejects this. */
19210 char const *const *pcpcc;
19212 /* NEC SVR4.0.2 mips cc rejects this. */
19213 struct point {int x, y;};
19214 static struct point const zero = {0,0};
19215 /* AIX XL C 1.02.0.0 rejects this.
19216 It does not let you subtract one const X* pointer from another in
19217 an arm of an if-expression whose if-part is not a constant
19219 const char *g = "string
";
19220 pcpcc = &g + (g ? g-g : 0);
19221 /* HPUX 7.0 cc rejects these. */
19223 ppc = (char**) pcpcc;
19224 pcpcc = (char const *const *) ppc;
19225 { /* SCO 3.2v4 cc rejects this. */
19227 char const *s = 0 ? (char *) 0 : (char const *) 0;
19232 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19233 int x[] = {25, 17};
19234 const int *foo = &x[0];
19237 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19238 typedef const int *iptr;
19242 { /* AIX XL C 1.02.0.0 rejects this saying
19243 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19244 struct s { int j; const int *ap[3]; };
19245 struct s *b; b->j = 5;
19247 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19248 const int foo = 10;
19249 if (!foo) return 0;
19251 return !cs[0] && !zero.x;
19258 rm -f conftest.$ac_objext
19259 if { (ac_try="$ac_compile"
19260 case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest.$ac_objext; then
19277 echo "$as_me: failed program was
:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
19286 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19287 if test $ac_cv_c_const = no; then
19289 cat >>confdefs.h <<\_ACEOF
19300 ac_header_dirent=no
19301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19302 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
19303 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
19304 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
19305 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19306 echo $ECHO_N "(cached
) $ECHO_C" >&6
19308 cat >conftest.$ac_ext <<_ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <sys/types.h>
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19335 grep -v '^ *+' conftest.er1 >conftest.err
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19339 (exit $ac_status); } && {
19340 test -z "$ac_c_werror_flag" ||
19341 test ! -s conftest.err
19342 } && test -s conftest.$ac_objext; then
19343 eval "$as_ac_Header=yes"
19345 echo "$as_me: failed program was
:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 eval "$as_ac_Header=no
"
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 ac_res=`eval echo '${'$as_ac_Header'}'`
19354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19355 echo "${ECHO_T}$ac_res" >&6; }
19356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19357 cat >>confdefs.h <<_ACEOF
19358 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
19361 ac_header_dirent=$ac_hdr; break
19365 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19366 if test $ac_header_dirent = dirent.h; then
19367 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
19368 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
19369 if test "${ac_cv_search_opendir+set}" = set; then
19370 echo $ECHO_N "(cached
) $ECHO_C" >&6
19372 ac_func_search_save_LIBS=$LIBS
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19380 /* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19395 for ac_lib in '' dir; do
19396 if test -z "$ac_lib"; then
19397 ac_res="none required
"
19400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (ac_try="$ac_link"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_link") 2>conftest.er1
19411 grep -v '^ *+' conftest.er1 >conftest.err
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19415 (exit $ac_status); } && {
19416 test -z "$ac_c_werror_flag" ||
19417 test ! -s conftest.err
19418 } && test -s conftest$ac_exeext &&
19419 $as_test_x conftest$ac_exeext; then
19420 ac_cv_search_opendir=$ac_res
19422 echo "$as_me: failed program was
:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430 if test "${ac_cv_search_opendir+set}" = set; then
19434 if test "${ac_cv_search_opendir+set}" = set; then
19437 ac_cv_search_opendir=no
19439 rm conftest.$ac_ext
19440 LIBS=$ac_func_search_save_LIBS
19442 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
19443 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19444 ac_res=$ac_cv_search_opendir
19445 if test "$ac_res" != no; then
19446 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
19451 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
19452 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
19453 if test "${ac_cv_search_opendir+set}" = set; then
19454 echo $ECHO_N "(cached
) $ECHO_C" >&6
19456 ac_func_search_save_LIBS=$LIBS
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19464 /* Override any GCC internal prototype to avoid an error.
19465 Use char because int might match the return type of a GCC
19466 builtin and then its argument prototype would still apply. */
19479 for ac_lib in '' x; do
19480 if test -z "$ac_lib"; then
19481 ac_res="none required
"
19484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (ac_try="$ac_link"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_link") 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19499 (exit $ac_status); } && {
19500 test -z "$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 } && test -s conftest$ac_exeext &&
19503 $as_test_x conftest$ac_exeext; then
19504 ac_cv_search_opendir=$ac_res
19506 echo "$as_me: failed program was
:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19514 if test "${ac_cv_search_opendir+set}" = set; then
19518 if test "${ac_cv_search_opendir+set}" = set; then
19521 ac_cv_search_opendir=no
19523 rm conftest.$ac_ext
19524 LIBS=$ac_func_search_save_LIBS
19526 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
19527 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19528 ac_res=$ac_cv_search_opendir
19529 if test "$ac_res" != no; then
19530 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
19536 # Check whether --enable-ltdl-install was given.
19537 if test "${enable_ltdl_install+set}" = set; then
19538 enableval=$enable_ltdl_install;
19542 if test x"${enable_ltdl_install-no}" != xno; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define INSTALL_LTDL 1
19548 if test x"${enable_ltdl_convenience-no}" != xno; then
19549 cat >>confdefs.h <<\_ACEOF
19550 #define CONVENIENCE_LTDL 1
19556 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
19557 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
19558 if test "${libltdl_cv_shlibext+set}" = set; then
19559 echo $ECHO_N "(cached
) $ECHO_C" >&6
19563 eval libltdl_cv_shlibext=$shrext
19566 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
19567 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19568 if test -n "$libltdl_cv_shlibext"; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19577 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
19578 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
19579 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19580 echo $ECHO_N "(cached
) $ECHO_C" >&6
19582 libltdl_cv_shlibpath_var="$shlibpath_var"
19584 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
19585 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19586 if test -n "$libltdl_cv_shlibpath_var"; then
19588 cat >>confdefs.h <<_ACEOF
19589 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19595 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
19596 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
19597 if test "${libltdl_cv_sys_search_path+set}" = set; then
19598 echo $ECHO_N "(cached
) $ECHO_C" >&6
19600 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19602 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
19603 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19604 if test -n "$libltdl_cv_sys_search_path"; then
19606 for dir in $libltdl_cv_sys_search_path; do
19607 if test -z "$sys_search_path"; then
19608 sys_search_path="$dir"
19610 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19614 cat >>confdefs.h <<_ACEOF
19615 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19620 { echo "$as_me:$LINENO: checking
for objdir
" >&5
19621 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
19622 if test "${libltdl_cv_objdir+set}" = set; then
19623 echo $ECHO_N "(cached
) $ECHO_C" >&6
19625 libltdl_cv_objdir="$objdir"
19626 if test -n "$objdir"; then
19629 rm -f .libs 2>/dev/null
19630 mkdir .libs 2>/dev/null
19631 if test -d .libs; then
19632 libltdl_cv_objdir=.libs
19634 # MS-DOS does not allow filenames that begin with a dot.
19635 libltdl_cv_objdir=_libs
19637 rmdir .libs 2>/dev/null
19641 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
19642 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19644 cat >>confdefs.h <<_ACEOF
19645 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19650 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
19651 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
19652 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19653 echo $ECHO_N "(cached
) $ECHO_C" >&6
19655 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19656 libltdl_cv_preloaded_symbols=yes
19658 libltdl_cv_preloaded_symbols=no
19662 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
19663 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
19664 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19666 cat >>confdefs.h <<\_ACEOF
19667 #define HAVE_PRELOADED_SYMBOLS 1
19675 ac_cpp='$CPP $CPPFLAGS'
19676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
19682 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
19683 if test "${ac_cv_func_shl_load+set}" = set; then
19684 echo $ECHO_N "(cached
) $ECHO_C" >&6
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19694 #define shl_load innocuous_shl_load
19696 /* System header to define __stub macros and hopefully few prototypes,
19697 which can conflict with char shl_load (); below.
19698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699 <limits.h> exists even on freestanding compilers. */
19702 # include <limits.h>
19704 # include <assert.h>
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined __stub_shl_load || defined __stub___shl_load
19726 return shl_load ();
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_func_shl_load=yes
19751 echo "$as_me: failed program was
:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_func_shl_load=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
19761 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
19762 if test $ac_cv_func_shl_load = yes; then
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_SHL_LOAD 1
19769 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
19770 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
19771 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19772 echo $ECHO_N "(cached
) $ECHO_C" >&6
19774 ac_check_lib_save_LIBS=$LIBS
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19793 return shl_load ();
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (ac_try="$ac_link"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest$ac_exeext &&
19815 $as_test_x conftest$ac_exeext; then
19816 ac_cv_lib_dld_shl_load=yes
19818 echo "$as_me: failed program was
:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_lib_dld_shl_load=no
19824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19828 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
19829 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19830 if test $ac_cv_lib_dld_shl_load = yes; then
19832 cat >>confdefs.h <<\_ACEOF
19833 #define HAVE_SHL_LOAD 1
19836 LIBADD_DL="$LIBADD_DL -ldld"
19838 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
19839 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
19840 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19841 echo $ECHO_N "(cached
) $ECHO_C" >&6
19843 ac_check_lib_save_LIBS=$LIBS
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19852 /* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
19885 ac_cv_lib_dl_dlopen=yes
19887 echo "$as_me: failed program was
:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_lib_dl_dlopen=no
19893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19897 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
19898 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19899 if test $ac_cv_lib_dl_dlopen = yes; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE_LIBDL 1
19905 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 # include <dlfcn.h>
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (ac_try="$ac_link"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_link") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest$ac_exeext &&
19942 $as_test_x conftest$ac_exeext; then
19944 cat >>confdefs.h <<\_ACEOF
19945 #define HAVE_LIBDL 1
19947 libltdl_cv_func_dlopen="yes"
19949 echo "$as_me: failed program was
:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
19953 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
19954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19955 echo $ECHO_N "(cached
) $ECHO_C" >&6
19957 ac_check_lib_save_LIBS=$LIBS
19958 LIBS="-lsvld $LIBS"
19959 cat >conftest.$ac_ext <<_ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19966 /* Override any GCC internal prototype to avoid an error.
19967 Use char because int might match the return type of a GCC
19968 builtin and then its argument prototype would still apply. */
19981 rm -f conftest.$ac_objext conftest$ac_exeext
19982 if { (ac_try="$ac_link"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_link") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext &&
19998 $as_test_x conftest$ac_exeext; then
19999 ac_cv_lib_svld_dlopen=yes
20001 echo "$as_me: failed program was
:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_lib_svld_dlopen=no
20007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20011 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
20012 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20013 if test $ac_cv_lib_svld_dlopen = yes; then
20015 cat >>confdefs.h <<\_ACEOF
20016 #define HAVE_LIBDL 1
20019 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20021 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
20022 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
20023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20024 echo $ECHO_N "(cached
) $ECHO_C" >&6
20026 ac_check_lib_save_LIBS=$LIBS
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20045 return dld_link ();
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (ac_try="$ac_link"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_link") 2>conftest.er1
20059 grep -v '^ *+' conftest.er1 >conftest.err
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20063 (exit $ac_status); } && {
20064 test -z "$ac_c_werror_flag" ||
20065 test ! -s conftest.err
20066 } && test -s conftest$ac_exeext &&
20067 $as_test_x conftest$ac_exeext; then
20068 ac_cv_lib_dld_dld_link=yes
20070 echo "$as_me: failed program was
:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20073 ac_cv_lib_dld_dld_link=no
20076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20077 conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20080 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
20081 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20082 if test $ac_cv_lib_dld_dld_link = yes; then
20084 cat >>confdefs.h <<\_ACEOF
20088 LIBADD_DL="$LIBADD_DL -ldld"
20090 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
20091 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
20092 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20093 echo $ECHO_N "(cached
) $ECHO_C" >&6
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20103 #define _dyld_func_lookup innocuous__dyld_func_lookup
20105 /* System header to define __stub macros and hopefully few prototypes,
20106 which can conflict with char _dyld_func_lookup (); below.
20107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20108 <limits.h> exists even on freestanding compilers. */
20111 # include <limits.h>
20113 # include <assert.h>
20116 #undef _dyld_func_lookup
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20124 char _dyld_func_lookup ();
20125 /* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20135 return _dyld_func_lookup ();
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_link") 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20153 (exit $ac_status); } && {
20154 test -z "$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest$ac_exeext &&
20157 $as_test_x conftest$ac_exeext; then
20158 ac_cv_func__dyld_func_lookup=yes
20160 echo "$as_me: failed program was
:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_cv_func__dyld_func_lookup=no
20166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20167 conftest$ac_exeext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
20170 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20171 if test $ac_cv_func__dyld_func_lookup = yes; then
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_DYLD 1
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20200 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20202 lt_save_LIBS="$LIBS"
20203 LIBS="$LIBS $LIBADD_DL"
20205 for ac_func in dlerror
20207 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20208 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20209 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20210 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20211 echo $ECHO_N "(cached
) $ECHO_C" >&6
20213 cat >conftest.$ac_ext <<_ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20221 #define $ac_func innocuous_$ac_func
20223 /* System header to define __stub macros and hopefully few prototypes,
20224 which can conflict with char $ac_func (); below.
20225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20226 <limits.h> exists even on freestanding compilers. */
20229 # include <limits.h>
20231 # include <assert.h>
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20243 /* The GNU C library defines this for functions which it implements
20244 to always fail with ENOSYS. Some functions are actually named
20245 something starting with __ and the normal name is an alias. */
20246 #if defined __stub_$ac_func || defined __stub___$ac_func
20253 return $ac_func ();
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20271 (exit $ac_status); } && {
20272 test -z "$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 } && test -s conftest$ac_exeext &&
20275 $as_test_x conftest$ac_exeext; then
20276 eval "$as_ac_var=yes"
20278 echo "$as_me: failed program was
:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20281 eval "$as_ac_var=no
"
20284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20285 conftest$ac_exeext conftest.$ac_ext
20287 ac_res=`eval echo '${'$as_ac_var'}'`
20288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20289 echo "${ECHO_T}$ac_res" >&6; }
20290 if test `eval echo '${'$as_ac_var'}'` = yes; then
20291 cat >>confdefs.h <<_ACEOF
20292 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20298 LIBS="$lt_save_LIBS"
20301 ac_cpp='$CPP $CPPFLAGS'
20302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20308 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
20309 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
20310 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20311 echo $ECHO_N "(cached
) $ECHO_C" >&6
20313 ac_cv_sys_symbol_underscore=no
20314 cat > conftest.$ac_ext <<EOF
20315 void nm_test_func(){}
20316 int main(){nm_test_func;return 0;}
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>&5
20321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20322 (exit $ac_status); }; then
20323 # Now try to grab the symbols.
20324 ac_nlist=conftest.nm
20325 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
20326 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20329 (exit $ac_status); } && test -s "$ac_nlist"; then
20330 # See whether the symbols have a leading underscore.
20331 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20332 ac_cv_sys_symbol_underscore=yes
20334 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20337 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
20341 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
20344 echo "configure
: failed program was
:" >&5
20350 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
20351 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20354 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20355 if test x"$libltdl_cv_func_dlopen" = xyes ||
20356 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20357 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
20358 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
20359 if test "${libltdl_cv_need_uscore+set}" = set; then
20360 echo $ECHO_N "(cached
) $ECHO_C" >&6
20362 libltdl_cv_need_uscore=unknown
20364 LIBS="$LIBS $LIBADD_DL"
20365 if test "$cross_compiling" = yes; then :
20366 libltdl_cv_need_uscore=cross
20368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20369 lt_status=$lt_dlunknown
20370 cat > conftest.$ac_ext <<EOF
20371 #line 20371 "configure
"
20372 #include "confdefs.h
"
20381 # define LT_DLGLOBAL RTLD_GLOBAL
20384 # define LT_DLGLOBAL DL_GLOBAL
20386 # define LT_DLGLOBAL 0
20390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20391 find out it does not work in some platform. */
20392 #ifndef LT_DLLAZY_OR_NOW
20394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20397 # define LT_DLLAZY_OR_NOW DL_LAZY
20400 # define LT_DLLAZY_OR_NOW RTLD_NOW
20403 # define LT_DLLAZY_OR_NOW DL_NOW
20405 # define LT_DLLAZY_OR_NOW 0
20413 extern "C
" void exit (int);
20416 void fnord() { int i=42;}
20419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20420 int status = $lt_dlunknown;
20424 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
20425 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
20426 /* dlclose (self); */
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>&5
20435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20437 (./conftest; exit; ) 2>/dev/null
20439 case x$lt_status in
20440 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20441 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20442 x$lt_unknown|x*) ;;
20445 # compilation failed
20454 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
20455 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20459 if test x"$libltdl_cv_need_uscore" = xyes; then
20461 cat >>confdefs.h <<\_ACEOF
20462 #define NEED_USCORE 1
20468 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
20469 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
20470 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20471 echo $ECHO_N "(cached
) $ECHO_C" >&6
20473 # PORTME does your system automatically load deplibs for dlopen?
20474 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20475 # For now, we just catch OSes we know something about -- in the
20476 # future, we'll try test this programmatically.
20477 libltdl_cv_sys_dlopen_deplibs=unknown
20479 aix3*|aix4.1.*|aix4.2.*)
20480 # Unknown whether this is true for these versions of AIX, but
20481 # we want this `case' here to explicitly catch those versions.
20482 libltdl_cv_sys_dlopen_deplibs=unknown
20485 libltdl_cv_sys_dlopen_deplibs=yes
20488 # Assuming the user has installed a libdl from somewhere, this is true
20489 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20490 libltdl_cv_sys_dlopen_deplibs=yes
20493 libltdl_cv_sys_dlopen_deplibs=yes
20496 libltdl_cv_sys_dlopen_deplibs=yes
20499 libltdl_cv_sys_dlopen_deplibs=yes
20501 irix[12345]*|irix6.[01]*)
20502 # Catch all versions of IRIX before 6.2, and indicate that we don't
20503 # know how it worked for any of those versions.
20504 libltdl_cv_sys_dlopen_deplibs=unknown
20507 # The case above catches anything before 6.2, and it's known that
20508 # at 6.2 and later dlopen does load deplibs.
20509 libltdl_cv_sys_dlopen_deplibs=yes
20512 libltdl_cv_sys_dlopen_deplibs=yes
20515 libltdl_cv_sys_dlopen_deplibs=yes
20518 libltdl_cv_sys_dlopen_deplibs=yes
20521 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20522 # it did *not* use an RPATH in a shared library to find objects the
20523 # library depends on, so we explictly say `no'.
20524 libltdl_cv_sys_dlopen_deplibs=no
20526 osf5.0|osf5.0a|osf5.1)
20527 # dlopen *does* load deplibs and with the right loader patch applied
20528 # it even uses RPATH in a shared library to search for shared objects
20529 # that the library depends on, but there's no easy way to know if that
20530 # patch is installed. Since this is the case, all we can really
20531 # say is unknown -- it depends on the patch being installed. If
20532 # it is, this changes to `yes'. Without it, it would be `no'.
20533 libltdl_cv_sys_dlopen_deplibs=unknown
20536 # the two cases above should catch all versions of osf <= 5.1. Read
20537 # the comments above for what we know about them.
20538 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20539 # is used to find them so we can finally say `yes'.
20540 libltdl_cv_sys_dlopen_deplibs=yes
20543 libltdl_cv_sys_dlopen_deplibs=yes
20548 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
20549 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20550 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20552 cat >>confdefs.h <<\_ACEOF
20553 #define LTDL_DLOPEN_DEPLIBS 1
20559 for ac_header in argz.h
20561 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20562 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20563 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20564 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20565 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20566 echo $ECHO_N "(cached
) $ECHO_C" >&6
20568 ac_res=`eval echo '${'$as_ac_Header'}'`
20569 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20570 echo "${ECHO_T}$ac_res" >&6; }
20572 # Is the header compilable?
20573 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20574 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 $ac_includes_default
20582 #include <$ac_header>
20584 rm -f conftest.$ac_objext
20585 if { (ac_try="$ac_compile"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_compile") 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20597 (exit $ac_status); } && {
20598 test -z "$ac_c_werror_flag" ||
20599 test ! -s conftest.err
20600 } && test -s conftest.$ac_objext; then
20601 ac_header_compiler=yes
20603 echo "$as_me: failed program was
:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_compiler=no
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20611 echo "${ECHO_T}$ac_header_compiler" >&6; }
20613 # Is the header present?
20614 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20615 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20616 cat >conftest.$ac_ext <<_ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 #include <$ac_header>
20624 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20636 (exit $ac_status); } >/dev/null && {
20637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20640 ac_header_preproc=yes
20642 echo "$as_me: failed program was
:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_header_preproc=no
20648 rm -f conftest.err conftest.$ac_ext
20649 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20650 echo "${ECHO_T}$ac_header_preproc" >&6; }
20652 # So? What about this header?
20653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20655 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20656 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20657 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20659 ac_header_preproc=yes
20662 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20663 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20664 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20665 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20666 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20667 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20668 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20669 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20670 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20672 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20673 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20677 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20678 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20679 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached
) $ECHO_C" >&6
20682 eval "$as_ac_Header=\
$ac_header_preproc"
20684 ac_res=`eval echo '${'$as_ac_Header'}'`
20685 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20686 echo "${ECHO_T}$ac_res" >&6; }
20689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20699 { echo "$as_me:$LINENO: checking
for error_t
" >&5
20700 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
20701 if test "${ac_cv_type_error_t+set}" = set; then
20702 echo $ECHO_N "(cached
) $ECHO_C" >&6
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20714 typedef error_t ac__type_new_;
20718 if ((ac__type_new_ *) 0)
20720 if (sizeof (ac__type_new_))
20726 rm -f conftest.$ac_objext
20727 if { (ac_try="$ac_compile"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_compile") 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest.$ac_objext; then
20743 ac_cv_type_error_t=yes
20745 echo "$as_me: failed program was
:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ac_cv_type_error_t=no
20751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
20754 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
20755 if test $ac_cv_type_error_t = yes; then
20757 cat >>confdefs.h <<_ACEOF
20758 #define HAVE_ERROR_T 1
20764 cat >>confdefs.h <<\_ACEOF
20765 #define error_t int
20776 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20778 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20779 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20780 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20781 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20782 echo $ECHO_N "(cached
) $ECHO_C" >&6
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20792 #define $ac_func innocuous_$ac_func
20794 /* System header to define __stub macros and hopefully few prototypes,
20795 which can conflict with char $ac_func (); below.
20796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20797 <limits.h> exists even on freestanding compilers. */
20800 # include <limits.h>
20802 # include <assert.h>
20807 /* Override any GCC internal prototype to avoid an error.
20808 Use char because int might match the return type of a GCC
20809 builtin and then its argument prototype would still apply. */
20814 /* The GNU C library defines this for functions which it implements
20815 to always fail with ENOSYS. Some functions are actually named
20816 something starting with __ and the normal name is an alias. */
20817 #if defined __stub_$ac_func || defined __stub___$ac_func
20824 return $ac_func ();
20829 rm -f conftest.$ac_objext conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_link") 2>conftest.er1
20838 grep -v '^ *+' conftest.er1 >conftest.err
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest$ac_exeext &&
20846 $as_test_x conftest$ac_exeext; then
20847 eval "$as_ac_var=yes"
20849 echo "$as_me: failed program was
:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 eval "$as_ac_var=no
"
20855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20856 conftest$ac_exeext conftest.$ac_ext
20858 ac_res=`eval echo '${'$as_ac_var'}'`
20859 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20860 echo "${ECHO_T}$ac_res" >&6; }
20861 if test `eval echo '${'$as_ac_var'}'` = yes; then
20862 cat >>confdefs.h <<_ACEOF
20863 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20896 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20899 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20900 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20901 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20902 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20904 echo $ECHO_N "(cached
) $ECHO_C" >&6
20906 ac_res=`eval echo '${'$as_ac_Header'}'`
20907 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20908 echo "${ECHO_T}$ac_res" >&6; }
20910 # Is the header compilable?
20911 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20912 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20913 cat >conftest.$ac_ext <<_ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20920 #include <$ac_header>
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_compile") 2>conftest.er1
20931 grep -v '^ *+' conftest.er1 >conftest.err
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest.$ac_objext; then
20939 ac_header_compiler=yes
20941 echo "$as_me: failed program was
:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_header_compiler=no
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20949 echo "${ECHO_T}$ac_header_compiler" >&6; }
20951 # Is the header present?
20952 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20953 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <$ac_header>
20962 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20970 grep -v '^ *+' conftest.er1 >conftest.err
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20974 (exit $ac_status); } >/dev/null && {
20975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20978 ac_header_preproc=yes
20980 echo "$as_me: failed program was
:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_header_preproc=no
20986 rm -f conftest.err conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20988 echo "${ECHO_T}$ac_header_preproc" >&6; }
20990 # So? What about this header?
20991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20993 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20994 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20995 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20997 ac_header_preproc=yes
21000 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21001 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21002 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21003 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21004 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21005 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21006 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21007 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21008 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21010 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21011 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21015 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21016 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21018 echo $ECHO_N "(cached
) $ECHO_C" >&6
21020 eval "$as_ac_Header=\
$ac_header_preproc"
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21040 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21042 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21044 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21045 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21047 echo $ECHO_N "(cached
) $ECHO_C" >&6
21049 ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21053 # Is the header compilable?
21054 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21055 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 $ac_includes_default
21063 #include <$ac_header>
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21074 grep -v '^ *+' conftest.er1 >conftest.err
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest.$ac_objext; then
21082 ac_header_compiler=yes
21084 echo "$as_me: failed program was
:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_compiler=no
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6; }
21094 # Is the header present?
21095 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21096 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <$ac_header>
21105 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21117 (exit $ac_status); } >/dev/null && {
21118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21121 ac_header_preproc=yes
21123 echo "$as_me: failed program was
:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_header_preproc=no
21129 rm -f conftest.err conftest.$ac_ext
21130 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21131 echo "${ECHO_T}$ac_header_preproc" >&6; }
21133 # So? What about this header?
21134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21136 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21137 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21140 ac_header_preproc=yes
21143 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21144 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21145 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21146 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21147 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21148 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21149 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21150 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21151 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21153 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21154 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21158 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21159 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21160 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21161 echo $ECHO_N "(cached
) $ECHO_C" >&6
21163 eval "$as_ac_Header=\
$ac_header_preproc"
21165 ac_res=`eval echo '${'$as_ac_Header'}'`
21166 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21167 echo "${ECHO_T}$ac_res" >&6; }
21170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21171 cat >>confdefs.h <<_ACEOF
21172 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21181 for ac_header in string.h strings.h
21183 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21184 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21185 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21186 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21188 echo $ECHO_N "(cached
) $ECHO_C" >&6
21190 ac_res=`eval echo '${'$as_ac_Header'}'`
21191 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21192 echo "${ECHO_T}$ac_res" >&6; }
21194 # Is the header compilable?
21195 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21196 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 $ac_includes_default
21204 #include <$ac_header>
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21215 grep -v '^ *+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest.$ac_objext; then
21223 ac_header_compiler=yes
21225 echo "$as_me: failed program was
:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_header_compiler=no
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21233 echo "${ECHO_T}$ac_header_compiler" >&6; }
21235 # Is the header present?
21236 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21237 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 #include <$ac_header>
21246 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21254 grep -v '^ *+' conftest.er1 >conftest.err
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21258 (exit $ac_status); } >/dev/null && {
21259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21260 test ! -s conftest.err
21262 ac_header_preproc=yes
21264 echo "$as_me: failed program was
:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21267 ac_header_preproc=no
21270 rm -f conftest.err conftest.$ac_ext
21271 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21272 echo "${ECHO_T}$ac_header_preproc" >&6; }
21274 # So? What about this header?
21275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21277 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21278 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21279 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21281 ac_header_preproc=yes
21284 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21285 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21286 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21287 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21288 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21289 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21290 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21291 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21292 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21294 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21295 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21299 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21300 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21302 echo $ECHO_N "(cached
) $ECHO_C" >&6
21304 eval "$as_ac_Header=\
$ac_header_preproc"
21306 ac_res=`eval echo '${'$as_ac_Header'}'`
21307 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21308 echo "${ECHO_T}$ac_res" >&6; }
21311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21312 cat >>confdefs.h <<_ACEOF
21313 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21323 for ac_func in strchr index
21325 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21326 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21327 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21328 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached
) $ECHO_C" >&6
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21339 #define $ac_func innocuous_$ac_func
21341 /* System header to define __stub macros and hopefully few prototypes,
21342 which can conflict with char $ac_func (); below.
21343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21344 <limits.h> exists even on freestanding compilers. */
21347 # include <limits.h>
21349 # include <assert.h>
21354 /* Override any GCC internal prototype to avoid an error.
21355 Use char because int might match the return type of a GCC
21356 builtin and then its argument prototype would still apply. */
21361 /* The GNU C library defines this for functions which it implements
21362 to always fail with ENOSYS. Some functions are actually named
21363 something starting with __ and the normal name is an alias. */
21364 #if defined __stub_$ac_func || defined __stub___$ac_func
21371 return $ac_func ();
21376 rm -f conftest.$ac_objext conftest$ac_exeext
21377 if { (ac_try="$ac_link"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_link") 2>conftest.er1
21385 grep -v '^ *+' conftest.er1 >conftest.err
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest$ac_exeext &&
21393 $as_test_x conftest$ac_exeext; then
21394 eval "$as_ac_var=yes"
21396 echo "$as_me: failed program was
:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 eval "$as_ac_var=no
"
21402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21403 conftest$ac_exeext conftest.$ac_ext
21405 ac_res=`eval echo '${'$as_ac_var'}'`
21406 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21407 echo "${ECHO_T}$ac_res" >&6; }
21408 if test `eval echo '${'$as_ac_var'}'` = yes; then
21409 cat >>confdefs.h <<_ACEOF
21410 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21418 for ac_func in strrchr rindex
21420 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21421 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21422 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21423 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21424 echo $ECHO_N "(cached
) $ECHO_C" >&6
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21434 #define $ac_func innocuous_$ac_func
21436 /* System header to define __stub macros and hopefully few prototypes,
21437 which can conflict with char $ac_func (); below.
21438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21439 <limits.h> exists even on freestanding compilers. */
21442 # include <limits.h>
21444 # include <assert.h>
21449 /* Override any GCC internal prototype to avoid an error.
21450 Use char because int might match the return type of a GCC
21451 builtin and then its argument prototype would still apply. */
21456 /* The GNU C library defines this for functions which it implements
21457 to always fail with ENOSYS. Some functions are actually named
21458 something starting with __ and the normal name is an alias. */
21459 #if defined __stub_$ac_func || defined __stub___$ac_func
21466 return $ac_func ();
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (ac_try="$ac_link"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_link") 2>conftest.er1
21480 grep -v '^ *+' conftest.er1 >conftest.err
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest$ac_exeext &&
21488 $as_test_x conftest$ac_exeext; then
21489 eval "$as_ac_var=yes"
21491 echo "$as_me: failed program was
:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 eval "$as_ac_var=no
"
21497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21498 conftest$ac_exeext conftest.$ac_ext
21500 ac_res=`eval echo '${'$as_ac_var'}'`
21501 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21502 echo "${ECHO_T}$ac_res" >&6; }
21503 if test `eval echo '${'$as_ac_var'}'` = yes; then
21504 cat >>confdefs.h <<_ACEOF
21505 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21513 for ac_func in memcpy bcopy
21515 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21516 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21517 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21518 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21519 echo $ECHO_N "(cached
) $ECHO_C" >&6
21521 cat >conftest.$ac_ext <<_ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21529 #define $ac_func innocuous_$ac_func
21531 /* System header to define __stub macros and hopefully few prototypes,
21532 which can conflict with char $ac_func (); below.
21533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21534 <limits.h> exists even on freestanding compilers. */
21537 # include <limits.h>
21539 # include <assert.h>
21544 /* Override any GCC internal prototype to avoid an error.
21545 Use char because int might match the return type of a GCC
21546 builtin and then its argument prototype would still apply. */
21551 /* The GNU C library defines this for functions which it implements
21552 to always fail with ENOSYS. Some functions are actually named
21553 something starting with __ and the normal name is an alias. */
21554 #if defined __stub_$ac_func || defined __stub___$ac_func
21561 return $ac_func ();
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (ac_try="$ac_link"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_link") 2>conftest.er1
21575 grep -v '^ *+' conftest.er1 >conftest.err
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest$ac_exeext &&
21583 $as_test_x conftest$ac_exeext; then
21584 eval "$as_ac_var=yes"
21586 echo "$as_me: failed program was
:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 eval "$as_ac_var=no
"
21592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21593 conftest$ac_exeext conftest.$ac_ext
21595 ac_res=`eval echo '${'$as_ac_var'}'`
21596 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21597 echo "${ECHO_T}$ac_res" >&6; }
21598 if test `eval echo '${'$as_ac_var'}'` = yes; then
21599 cat >>confdefs.h <<_ACEOF
21600 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21608 for ac_func in memmove strcmp
21610 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21611 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21612 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21613 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21614 echo $ECHO_N "(cached
) $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21624 #define $ac_func innocuous_$ac_func
21626 /* System header to define __stub macros and hopefully few prototypes,
21627 which can conflict with char $ac_func (); below.
21628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21629 <limits.h> exists even on freestanding compilers. */
21632 # include <limits.h>
21634 # include <assert.h>
21639 /* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21646 /* The GNU C library defines this for functions which it implements
21647 to always fail with ENOSYS. Some functions are actually named
21648 something starting with __ and the normal name is an alias. */
21649 #if defined __stub_$ac_func || defined __stub___$ac_func
21656 return $ac_func ();
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest$ac_exeext &&
21678 $as_test_x conftest$ac_exeext; then
21679 eval "$as_ac_var=yes"
21681 echo "$as_me: failed program was
:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 eval "$as_ac_var=no
"
21687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21688 conftest$ac_exeext conftest.$ac_ext
21690 ac_res=`eval echo '${'$as_ac_var'}'`
21691 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21692 echo "${ECHO_T}$ac_res" >&6; }
21693 if test `eval echo '${'$as_ac_var'}'` = yes; then
21694 cat >>confdefs.h <<_ACEOF
21695 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21704 for ac_func in closedir opendir readdir
21706 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21707 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21708 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21709 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21710 echo $ECHO_N "(cached
) $ECHO_C" >&6
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21720 #define $ac_func innocuous_$ac_func
21722 /* System header to define __stub macros and hopefully few prototypes,
21723 which can conflict with char $ac_func (); below.
21724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21725 <limits.h> exists even on freestanding compilers. */
21728 # include <limits.h>
21730 # include <assert.h>
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21742 /* The GNU C library defines this for functions which it implements
21743 to always fail with ENOSYS. Some functions are actually named
21744 something starting with __ and the normal name is an alias. */
21745 #if defined __stub_$ac_func || defined __stub___$ac_func
21752 return $ac_func ();
21757 rm -f conftest.$ac_objext conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_link") 2>conftest.er1
21766 grep -v '^ *+' conftest.er1 >conftest.err
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest$ac_exeext &&
21774 $as_test_x conftest$ac_exeext; then
21775 eval "$as_ac_var=yes"
21777 echo "$as_me: failed program was
:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 eval "$as_ac_var=no
"
21783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21784 conftest$ac_exeext conftest.$ac_ext
21786 ac_res=`eval echo '${'$as_ac_var'}'`
21787 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21788 echo "${ECHO_T}$ac_res" >&6; }
21789 if test `eval echo '${'$as_ac_var'}'` = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21799 { echo "$as_me:$LINENO: checking
for X
" >&5
21800 echo $ECHO_N "checking
for X...
$ECHO_C" >&6; }
21803 # Check whether --with-x was given.
21804 if test "${with_x+set}" = set; then
21808 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21809 if test "x
$with_x" = xno; then
21810 # The user explicitly disabled X.
21813 case $x_includes,$x_libraries in #(
21814 *\'*) { { echo "$as_me:$LINENO: error
: Cannot use X directory names containing
'" >&5
21815 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21816 { (exit 1); exit 1; }; };; #(
21817 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21818 echo $ECHO_N "(cached
) $ECHO_C" >&6
21820 # One or both of the vars are not set, and there is no cached value.
21821 ac_x_includes=no ac_x_libraries=no
21822 rm -f -r conftest.dir
21823 if mkdir conftest.dir; then
21825 cat >Imakefile <<'_ACEOF'
21827 @echo incroot='${INCROOT}'
21829 @echo usrlibdir='${USRLIBDIR}'
21831 @echo libdir='${LIBDIR}'
21833 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21834 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
21835 for ac_var in incroot usrlibdir libdir; do
21836 eval "ac_im_
$ac_var=\
`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21838 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21839 for ac_extension in a so sl; do
21840 if test ! -f "$ac_im_usrlibdir/libX11.
$ac_extension" &&
21841 test -f "$ac_im_libdir/libX11.
$ac_extension"; then
21842 ac_im_usrlibdir=$ac_im_libdir; break
21845 # Screen out bogus values from the imake configuration. They are
21846 # bogus both because they are the default anyway, and because
21847 # using them would break gcc on systems where it needs fixed includes.
21848 case $ac_im_incroot in
21849 /usr/include) ac_x_includes= ;;
21850 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
21852 case $ac_im_usrlibdir in
21853 /usr/lib | /lib) ;;
21854 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21858 rm -f -r conftest.dir
21861 # Standard set of common directories for X headers.
21862 # Check X11 before X11Rn because it is often a symlink to the current release.
21874 /usr/local/X11/include
21875 /usr/local/X11R6/include
21876 /usr/local/X11R5/include
21877 /usr/local/X11R4/include
21879 /usr/local/include/X11
21880 /usr/local/include/X11R6
21881 /usr/local/include/X11R5
21882 /usr/local/include/X11R4
21886 /usr/XFree86/include/X11
21890 /usr/unsupported/include
21891 /usr/athena/include
21892 /usr/local/x11r5/include
21893 /usr/lpp/Xamples/include
21895 /usr/openwin/include
21896 /usr/openwin/share/include'
21898 if test "$ac_x_includes" = no; then
21899 # Guess where to find include files, by looking for Xlib.h.
21900 # First, try using that file with no special directory specified.
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 #include <X11/Xlib.h>
21909 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21921 (exit $ac_status); } >/dev/null && {
21922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21925 # We can compile using X headers with no special include directory.
21928 echo "$as_me: failed program was
:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 for ac_dir in $ac_x_header_dirs; do
21932 if test -r "$ac_dir/X11
/Xlib.h
"; then
21933 ac_x_includes=$ac_dir
21939 rm -f conftest.err conftest.$ac_ext
21940 fi # $ac_x_includes = no
21942 if test "$ac_x_libraries" = no; then
21943 # Check for the libraries.
21944 # See if we find them without any special options.
21945 # Don't add to $LIBS permanently.
21948 cat >conftest.$ac_ext <<_ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21954 #include <X11/Xlib.h>
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest$ac_exeext &&
21980 $as_test_x conftest$ac_exeext; then
21982 # We can link X programs with no special library path.
21985 echo "$as_me: failed program was
:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21989 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21991 # Don't even attempt the hair of trying to link an X program!
21992 for ac_extension in a so sl; do
21993 if test -r "$ac_dir/libX11.
$ac_extension"; then
21994 ac_x_libraries=$ac_dir
22001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22002 conftest$ac_exeext conftest.$ac_ext
22003 fi # $ac_x_libraries = no
22005 case $ac_x_includes,$ac_x_libraries in #(
22006 no,* | *,no | *\'*)
22007 # Didn't find X, or a directory has "'" in its name.
22008 ac_cv_have_x="have_x=no";; #(
22010 # Record where we found X for the cache.
22011 ac_cv_have_x="have_x=yes\
22012 ac_x_includes='$ac_x_includes'\
22013 ac_x_libraries='$ac_x_libraries'"
22019 eval "$ac_cv_have_x"
22022 if test "$have_x" != yes; then
22023 { echo "$as_me:$LINENO: result: $have_x" >&5
22024 echo "${ECHO_T}$have_x" >&6; }
22027 # If each of the values was on the command line, it overrides each guess.
22028 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22029 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22030 # Update the cache value to reflect the command line values.
22031 ac_cv_have_x="have_x=yes\
22032 ac_x_includes='$x_includes'\
22033 ac_x_libraries='$x_libraries'"
22034 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22035 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22038 if test "$no_x" = yes; then
22039 # Not all programs may use this symbol, but it does not hurt to define it.
22041 cat >>confdefs.h <<\_ACEOF
22042 #define X_DISPLAY_MISSING 1
22045 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22047 if test -n "$x_includes"; then
22048 X_CFLAGS="$X_CFLAGS -I$x_includes"
22051 # It would also be nice to do this for all -L options, not just this one.
22052 if test -n "$x_libraries"; then
22053 X_LIBS="$X_LIBS -L$x_libraries"
22054 # For Solaris; some versions of Sun CC require a space after -R and
22055 # others require no space. Words are not sufficient . . . .
22056 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22057 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22058 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22059 ac_xsave_c_werror_flag=$ac_c_werror_flag
22060 ac_c_werror_flag=yes
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22076 rm -f conftest.$ac_objext conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_link") 2>conftest.er1
22085 grep -v '^
*+' conftest.er1 >conftest.err
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest$ac_exeext &&
22093 $as_test_x conftest$ac_exeext; then
22094 { echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6; }
22096 X_LIBS="$X_LIBS -R$x_libraries"
22098 echo "$as_me: failed program was:" >&5
22099 sed 's
/^
/|
/' conftest.$ac_ext >&5
22101 LIBS="$ac_xsave_LIBS -R $x_libraries"
22102 cat >conftest.$ac_ext <<_ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_link") 2>conftest.er1
22126 grep -v '^
*+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } && {
22131 test -z "$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22133 } && test -s conftest$ac_exeext &&
22134 $as_test_x conftest$ac_exeext; then
22135 { echo "$as_me:$LINENO: result: yes" >&5
22136 echo "${ECHO_T}yes" >&6; }
22137 X_LIBS="$X_LIBS -R $x_libraries"
22139 echo "$as_me: failed program was:" >&5
22140 sed 's
/^
/|
/' conftest.$ac_ext >&5
22142 { echo "$as_me:$LINENO: result: neither works" >&5
22143 echo "${ECHO_T}neither works" >&6; }
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22151 conftest$ac_exeext conftest.$ac_ext
22152 ac_c_werror_flag=$ac_xsave_c_werror_flag
22153 LIBS=$ac_xsave_LIBS
22156 # Check for system-dependent libraries X programs must link with.
22157 # Do this before checking for the system-independent R6 libraries
22158 # (-lICE), since we may need -lsocket or whatever for X linking.
22160 if test "$ISC" = yes; then
22161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22163 # Martyn Johnson says this is needed for Ultrix, if the X
22164 # libraries were built with DECnet support. And Karl Berry says
22165 # the Alpha needs dnet_stub (dnet does not exist).
22166 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22174 /* Override any GCC internal prototype to avoid an error.
22175 Use char because int might match the return type of a GCC
22176 builtin and then its argument prototype would still apply. */
22180 char XOpenDisplay ();
22184 return XOpenDisplay ();
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (ac_try="$ac_link"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_link") 2>conftest.er1
22198 grep -v '^
*+' conftest.er1 >conftest.err
22200 cat conftest.err >&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } && {
22203 test -z "$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22205 } && test -s conftest$ac_exeext &&
22206 $as_test_x conftest$ac_exeext; then
22209 echo "$as_me: failed program was:" >&5
22210 sed 's
/^
/|
/' conftest.$ac_ext >&5
22212 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22213 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22214 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-ldnet $LIBS"
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22236 return dnet_ntoa ();
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22250 grep -v '^
*+' conftest.er1 >conftest.err
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest$ac_exeext &&
22258 $as_test_x conftest$ac_exeext; then
22259 ac_cv_lib_dnet_dnet_ntoa=yes
22261 echo "$as_me: failed program was:" >&5
22262 sed 's
/^
/|
/' conftest.$ac_ext >&5
22264 ac_cv_lib_dnet_dnet_ntoa=no
22267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22268 conftest$ac_exeext conftest.$ac_ext
22269 LIBS=$ac_check_lib_save_LIBS
22271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22272 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22273 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22274 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22277 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22278 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22279 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22280 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-ldnet_stub $LIBS"
22285 cat >conftest.$ac_ext <<_ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22292 /* Override any GCC internal prototype to avoid an error.
22293 Use char because int might match the return type of a GCC
22294 builtin and then its argument prototype would still apply. */
22302 return dnet_ntoa ();
22307 rm -f conftest.$ac_objext conftest$ac_exeext
22308 if { (ac_try="$ac_link"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_link") 2>conftest.er1
22316 grep -v '^
*+' conftest.er1 >conftest.err
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest$ac_exeext &&
22324 $as_test_x conftest$ac_exeext; then
22325 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22327 echo "$as_me: failed program was:" >&5
22328 sed 's
/^
/|
/' conftest.$ac_ext >&5
22330 ac_cv_lib_dnet_stub_dnet_ntoa=no
22333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22334 conftest$ac_exeext conftest.$ac_ext
22335 LIBS=$ac_check_lib_save_LIBS
22337 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22338 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22339 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22340 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22347 conftest$ac_exeext conftest.$ac_ext
22348 LIBS="$ac_xsave_LIBS"
22350 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22351 # to get the SysV transport functions.
22352 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22354 # The nsl library prevents programs from opening the X display
22355 # on Irix 5.2, according to T.E. Dickey.
22356 # The functions gethostbyname, getservbyname, and inet_addr are
22357 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22358 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22359 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22360 if test "${ac_cv_func_gethostbyname+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 cat >conftest.$ac_ext <<_ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22371 #define gethostbyname innocuous_gethostbyname
22373 /* System header to define __stub macros and hopefully few prototypes,
22374 which can conflict with char gethostbyname (); below.
22375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22376 <limits.h> exists even on freestanding compilers. */
22379 # include <limits.h>
22381 # include <assert.h>
22384 #undef gethostbyname
22386 /* Override any GCC internal prototype to avoid an error.
22387 Use char because int might match the return type of a GCC
22388 builtin and then its argument prototype would still apply. */
22392 char gethostbyname ();
22393 /* The GNU C library defines this for functions which it implements
22394 to always fail with ENOSYS. Some functions are actually named
22395 something starting with __ and the normal name is an alias. */
22396 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22403 return gethostbyname ();
22408 rm -f conftest.$ac_objext conftest$ac_exeext
22409 if { (ac_try="$ac_link"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_link") 2>conftest.er1
22417 grep -v '^
*+' conftest.er1 >conftest.err
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } && {
22422 test -z "$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22424 } && test -s conftest$ac_exeext &&
22425 $as_test_x conftest$ac_exeext; then
22426 ac_cv_func_gethostbyname=yes
22428 echo "$as_me: failed program was:" >&5
22429 sed 's
/^
/|
/' conftest.$ac_ext >&5
22431 ac_cv_func_gethostbyname=no
22434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22435 conftest$ac_exeext conftest.$ac_ext
22437 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22438 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22440 if test $ac_cv_func_gethostbyname = no; then
22441 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22442 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22443 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 ac_check_lib_save_LIBS=$LIBS
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22455 /* Override any GCC internal prototype to avoid an error.
22456 Use char because int might match the return type of a GCC
22457 builtin and then its argument prototype would still apply. */
22461 char gethostbyname ();
22465 return gethostbyname ();
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (ac_try="$ac_link"
22472 case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_link") 2>conftest.er1
22479 grep -v '^
*+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } && {
22484 test -z "$ac_c_werror_flag" ||
22485 test ! -s conftest.err
22486 } && test -s conftest$ac_exeext &&
22487 $as_test_x conftest$ac_exeext; then
22488 ac_cv_lib_nsl_gethostbyname=yes
22490 echo "$as_me: failed program was:" >&5
22491 sed 's
/^
/|
/' conftest.$ac_ext >&5
22493 ac_cv_lib_nsl_gethostbyname=no
22496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22497 conftest$ac_exeext conftest.$ac_ext
22498 LIBS=$ac_check_lib_save_LIBS
22500 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22501 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22502 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22503 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22506 if test $ac_cv_lib_nsl_gethostbyname = no; then
22507 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22508 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22509 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22510 echo $ECHO_N "(cached) $ECHO_C" >&6
22512 ac_check_lib_save_LIBS=$LIBS
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22521 /* Override any GCC internal prototype to avoid an error.
22522 Use char because int might match the return type of a GCC
22523 builtin and then its argument prototype would still apply. */
22527 char gethostbyname ();
22531 return gethostbyname ();
22536 rm -f conftest.$ac_objext conftest$ac_exeext
22537 if { (ac_try="$ac_link"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_link") 2>conftest.er1
22545 grep -v '^
*+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest$ac_exeext &&
22553 $as_test_x conftest$ac_exeext; then
22554 ac_cv_lib_bsd_gethostbyname=yes
22556 echo "$as_me: failed program was:" >&5
22557 sed 's
/^
/|
/' conftest.$ac_ext >&5
22559 ac_cv_lib_bsd_gethostbyname=no
22562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22563 conftest$ac_exeext conftest.$ac_ext
22564 LIBS=$ac_check_lib_save_LIBS
22566 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22567 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22568 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22575 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22576 # socket/setsockopt and other routines are undefined under SCO ODT
22577 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22578 # on later versions), says Simon Leinen: it contains gethostby*
22579 # variants that don't use the name server
(or something
).
-lsocket
22580 # must be given before -lnsl if both are needed. We assume that
22581 # if connect needs -lnsl, so does gethostbyname.
22582 { echo "$as_me:$LINENO: checking for connect" >&5
22583 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22584 if test "${ac_cv_func_connect+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 cat >conftest.
$ac_ext <<_ACEOF
22590 cat confdefs.h
>>conftest.
$ac_ext
22591 cat >>conftest.
$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22595 #define connect innocuous_connect
22597 /* System header to define __stub macros and hopefully few prototypes,
22598 which can conflict with char connect (); below.
22599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600 <limits.h> exists even on freestanding compilers. */
22603 # include <limits.h>
22605 # include <assert.h>
22610 /* Override any GCC internal prototype to avoid an error.
22611 Use char because int might match the return type of a GCC
22612 builtin and then its argument prototype would still apply. */
22617 /* The GNU C library defines this for functions which it implements
22618 to always fail with ENOSYS. Some functions are actually named
22619 something starting with __ and the normal name is an alias. */
22620 #if defined __stub_connect || defined __stub___connect
22632 rm -f conftest.
$ac_objext conftest
$ac_exeext
22633 if { (ac_try
="$ac_link"
22634 case "(($ac_try" in
22635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_link") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest$ac_exeext &&
22649 $as_test_x conftest$ac_exeext; then
22650 ac_cv_func_connect=yes
22652 echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22655 ac_cv_func_connect=no
22658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659 conftest$ac_exeext conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22662 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22664 if test $ac_cv_func_connect = no; then
22665 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22666 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22667 if test "${ac_cv_lib_socket_connect+set}" = set; then
22668 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 ac_check_lib_save_LIBS=$LIBS
22671 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22672 cat >conftest.$ac_ext <<_ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22679 /* Override any GCC internal prototype to avoid an error.
22680 Use char because int might match the return type of a GCC
22681 builtin and then its argument prototype would still apply. */
22694 rm -f conftest.$ac_objext conftest$ac_exeext
22695 if { (ac_try="$ac_link"
22696 case "(($ac_try" in
22697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22698 *) ac_try_echo
=$ac_try;;
22700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701 (eval "$ac_link") 2>conftest.er1
22703 grep -v '^ *+' conftest.er1
>conftest.err
22705 cat conftest.err
>&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } && {
22708 test -z "$ac_c_werror_flag" ||
22709 test ! -s conftest.err
22710 } && test -s conftest
$ac_exeext &&
22711 $as_test_x conftest
$ac_exeext; then
22712 ac_cv_lib_socket_connect
=yes
22714 echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.
$ac_ext >&5
22717 ac_cv_lib_socket_connect
=no
22720 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22721 conftest
$ac_exeext conftest.
$ac_ext
22722 LIBS
=$ac_check_lib_save_LIBS
22724 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22725 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22726 if test $ac_cv_lib_socket_connect = yes; then
22727 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
22732 # Guillermo Gomez says -lposix is necessary on A/UX.
22733 { echo "$as_me:$LINENO: checking for remove" >&5
22734 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22735 if test "${ac_cv_func_remove+set}" = set; then
22736 echo $ECHO_N "(cached) $ECHO_C" >&6
22738 cat >conftest.
$ac_ext <<_ACEOF
22741 cat confdefs.h
>>conftest.
$ac_ext
22742 cat >>conftest.
$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22746 #define remove innocuous_remove
22748 /* System header to define __stub macros and hopefully few prototypes,
22749 which can conflict with char remove (); below.
22750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22751 <limits.h> exists even on freestanding compilers. */
22754 # include <limits.h>
22756 # include <assert.h>
22761 /* Override any GCC internal prototype to avoid an error.
22762 Use char because int might match the return type of a GCC
22763 builtin and then its argument prototype would still apply. */
22768 /* The GNU C library defines this for functions which it implements
22769 to always fail with ENOSYS. Some functions are actually named
22770 something starting with __ and the normal name is an alias. */
22771 #if defined __stub_remove || defined __stub___remove
22783 rm -f conftest.
$ac_objext conftest
$ac_exeext
22784 if { (ac_try
="$ac_link"
22785 case "(($ac_try" in
22786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_link") 2>conftest.er1
22792 grep -v '^ *+' conftest.er1 >conftest.err
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest$ac_exeext &&
22800 $as_test_x conftest$ac_exeext; then
22801 ac_cv_func_remove=yes
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 ac_cv_func_remove=no
22809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22810 conftest$ac_exeext conftest.$ac_ext
22812 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22813 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
22815 if test $ac_cv_func_remove = no; then
22816 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22817 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
22818 if test "${ac_cv_lib_posix_remove+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22821 ac_check_lib_save_LIBS=$LIBS
22822 LIBS="-lposix $LIBS"
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22830 /* Override any GCC internal prototype to avoid an error.
22831 Use char because int might match the return type of a GCC
22832 builtin and then its argument prototype would still apply. */
22845 rm -f conftest.$ac_objext conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22849 *) ac_try_echo
=$ac_try;;
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_link") 2>conftest.er1
22854 grep -v '^ *+' conftest.er1
>conftest.err
22856 cat conftest.err
>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest
$ac_exeext &&
22862 $as_test_x conftest
$ac_exeext; then
22863 ac_cv_lib_posix_remove
=yes
22865 echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.
$ac_ext >&5
22868 ac_cv_lib_posix_remove
=no
22871 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22872 conftest
$ac_exeext conftest.
$ac_ext
22873 LIBS
=$ac_check_lib_save_LIBS
22875 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22876 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
22877 if test $ac_cv_lib_posix_remove = yes; then
22878 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
22883 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22884 { echo "$as_me:$LINENO: checking for shmat" >&5
22885 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22886 if test "${ac_cv_func_shmat+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 cat >conftest.
$ac_ext <<_ACEOF
22892 cat confdefs.h
>>conftest.
$ac_ext
22893 cat >>conftest.
$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22897 #define shmat innocuous_shmat
22899 /* System header to define __stub macros and hopefully few prototypes,
22900 which can conflict with char shmat (); below.
22901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22902 <limits.h> exists even on freestanding compilers. */
22905 # include <limits.h>
22907 # include <assert.h>
22912 /* Override any GCC internal prototype to avoid an error.
22913 Use char because int might match the return type of a GCC
22914 builtin and then its argument prototype would still apply. */
22919 /* The GNU C library defines this for functions which it implements
22920 to always fail with ENOSYS. Some functions are actually named
22921 something starting with __ and the normal name is an alias. */
22922 #if defined __stub_shmat || defined __stub___shmat
22934 rm -f conftest.
$ac_objext conftest
$ac_exeext
22935 if { (ac_try
="$ac_link"
22936 case "(($ac_try" in
22937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_link") 2>conftest.er1
22943 grep -v '^ *+' conftest.er1 >conftest.err
22945 cat conftest.err >&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } && {
22948 test -z "$ac_c_werror_flag" ||
22949 test ! -s conftest.err
22950 } && test -s conftest$ac_exeext &&
22951 $as_test_x conftest$ac_exeext; then
22952 ac_cv_func_shmat=yes
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 ac_cv_func_shmat=no
22960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22961 conftest$ac_exeext conftest.$ac_ext
22963 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22964 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22966 if test $ac_cv_func_shmat = no; then
22967 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22968 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22969 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22972 ac_check_lib_save_LIBS=$LIBS
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22981 /* Override any GCC internal prototype to avoid an error.
22982 Use char because int might match the return type of a GCC
22983 builtin and then its argument prototype would still apply. */
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23000 *) ac_try_echo
=$ac_try;;
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>conftest.er1
23005 grep -v '^ *+' conftest.er1
>conftest.err
23007 cat conftest.err
>&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest
$ac_exeext &&
23013 $as_test_x conftest
$ac_exeext; then
23014 ac_cv_lib_ipc_shmat
=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.
$ac_ext >&5
23019 ac_cv_lib_ipc_shmat
=no
23022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23023 conftest
$ac_exeext conftest.
$ac_ext
23024 LIBS
=$ac_check_lib_save_LIBS
23026 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23027 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23028 if test $ac_cv_lib_ipc_shmat = yes; then
23029 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
23035 # Check for libraries that X11R6 Xt/Xaw programs need.
23036 ac_save_LDFLAGS
=$LDFLAGS
23037 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
23038 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23039 # check for ICE first), but we must link in the order -lSM -lICE or
23040 # we get undefined symbols. So assume we have SM if we have ICE.
23041 # These have to be linked with before -lX11, unlike the other
23042 # libraries we check for below, so use a different variable.
23043 # John Interrante, Karl Berry
23044 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23045 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23046 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 ac_check_lib_save_LIBS
=$LIBS
23050 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
23051 cat >conftest.
$ac_ext <<_ACEOF
23054 cat confdefs.h
>>conftest.
$ac_ext
23055 cat >>conftest.
$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23058 /* Override any GCC internal prototype to avoid an error.
23059 Use char because int might match the return type of a GCC
23060 builtin and then its argument prototype would still apply. */
23064 char IceConnectionNumber ();
23068 return IceConnectionNumber ();
23073 rm -f conftest.
$ac_objext conftest
$ac_exeext
23074 if { (ac_try
="$ac_link"
23075 case "(($ac_try" in
23076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_link") 2>conftest.er1
23082 grep -v '^ *+' conftest.er1 >conftest.err
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest$ac_exeext &&
23090 $as_test_x conftest$ac_exeext; then
23091 ac_cv_lib_ICE_IceConnectionNumber=yes
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 ac_cv_lib_ICE_IceConnectionNumber=no
23099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23100 conftest$ac_exeext conftest.$ac_ext
23101 LIBS=$ac_check_lib_save_LIBS
23103 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23104 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23105 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23106 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23109 LDFLAGS=$ac_save_LDFLAGS
23114 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23115 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23116 if test "${ac_cv_c_bigendian+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23119 # See if sys/param.h defines the BYTE_ORDER macro.
23120 cat >conftest.$ac_ext <<_ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 #include <sys/types.h>
23127 #include <sys/param.h>
23132 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23133 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23134 bogus endian macros
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23145 *) ac_try_echo
=$ac_try;;
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23150 grep -v '^ *+' conftest.er1
>conftest.err
23152 cat conftest.err
>&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest.
$ac_objext; then
23158 # It does; now see whether it defined to BIG_ENDIAN or not.
23159 cat >conftest.
$ac_ext <<_ACEOF
23162 cat confdefs.h
>>conftest.
$ac_ext
23163 cat >>conftest.
$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 #include <sys/types.h>
23166 #include <sys/param.h>
23171 #if BYTE_ORDER != BIG_ENDIAN
23179 rm -f conftest.
$ac_objext
23180 if { (ac_try
="$ac_compile"
23181 case "(($ac_try" in
23182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_compile") 2>conftest.er1
23188 grep -v '^ *+' conftest.er1 >conftest.err
23190 cat conftest.err >&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest.$ac_objext; then
23196 ac_cv_c_bigendian=yes
23198 echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23201 ac_cv_c_bigendian=no
23204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23209 # It does not; compile a test program.
23210 if test "$cross_compiling" = yes; then
23211 # try to guess the endianness by grepping values into an object file
23212 ac_cv_c_bigendian=unknown
23213 cat >conftest.$ac_ext <<_ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h. */
23219 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23220 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23221 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23222 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23223 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23224 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23228 _ascii (); _ebcdic ();
23233 rm -f conftest.$ac_objext
23234 if { (ac_try="$ac_compile"
23235 case "(($ac_try" in
23236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23237 *) ac_try_echo
=$ac_try;;
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_compile") 2>conftest.er1
23242 grep -v '^ *+' conftest.er1
>conftest.err
23244 cat conftest.err
>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } && {
23247 test -z "$ac_c_werror_flag" ||
23248 test ! -s conftest.err
23249 } && test -s conftest.
$ac_objext; then
23250 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
23251 ac_cv_c_bigendian
=yes
23253 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
23254 if test "$ac_cv_c_bigendian" = unknown
; then
23255 ac_cv_c_bigendian
=no
23257 # finding both strings is unlikely to happen, but who knows?
23258 ac_cv_c_bigendian
=unknown
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.
$ac_ext >&5
23268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23270 cat >conftest.
$ac_ext <<_ACEOF
23273 cat confdefs.h
>>conftest.
$ac_ext
23274 cat >>conftest.
$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 $ac_includes_default
23281 /* Are we little or big endian? From Harbison&Steele. */
23285 char c[sizeof (long int)];
23288 return u.c[sizeof (long int) - 1] == 1;
23294 rm -f conftest
$ac_exeext
23295 if { (ac_try
="$ac_link"
23296 case "(($ac_try" in
23297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_link") 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23305 { (case "(($ac_try" in
23306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23307 *) ac_try_echo
=$ac_try;;
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_try") 2>&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
23314 ac_cv_c_bigendian
=no
23316 echo "$as_me: program exited with status $ac_status" >&5
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.
$ac_ext >&5
23320 ( exit $ac_status )
23321 ac_cv_c_bigendian
=yes
23323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23331 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23332 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23333 case $ac_cv_c_bigendian in
23336 cat >>confdefs.h
<<\_ACEOF
23337 #define WORDS_BIGENDIAN 1
23343 { { echo "$as_me:$LINENO: error: unknown endianness
23344 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23345 echo "$as_me: error: unknown endianness
23346 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23347 { (exit 1); exit 1; }; } ;;
23350 { echo "$as_me:$LINENO: checking for inline" >&5
23351 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23352 if test "${ac_cv_c_inline+set}" = set; then
23353 echo $ECHO_N "(cached) $ECHO_C" >&6
23356 for ac_kw
in inline __inline__ __inline
; do
23357 cat >conftest.
$ac_ext <<_ACEOF
23360 cat confdefs.h
>>conftest.
$ac_ext
23361 cat >>conftest.
$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23363 #ifndef __cplusplus
23365 static $ac_kw foo_t static_foo () {return 0; }
23366 $ac_kw foo_t foo () {return 0; }
23370 rm -f conftest.
$ac_objext
23371 if { (ac_try
="$ac_compile"
23372 case "(($ac_try" in
23373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_compile") 2>conftest.er1
23379 grep -v '^ *+' conftest.er1 >conftest.err
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest.$ac_objext; then
23387 ac_cv_c_inline=$ac_kw
23389 echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 test "$ac_cv_c_inline" != no && break
23400 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23401 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23404 case $ac_cv_c_inline in
23407 case $ac_cv_c_inline in
23409 *) ac_val=$ac_cv_c_inline;;
23411 cat >>confdefs.h <<_ACEOF
23412 #ifndef __cplusplus
23413 #define inline $ac_val
23419 { echo "$as_me:$LINENO: checking for unsigned char" >&5
23420 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
23421 if test "${ac_cv_type_unsigned_char+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 cat >conftest.$ac_ext <<_ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23431 typedef unsigned char ac__type_new_;
23435 if ((ac__type_new_ *) 0)
23437 if (sizeof (ac__type_new_))
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23447 *) ac_try_echo
=$ac_try;;
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_compile") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1
>conftest.err
23454 cat conftest.err
>&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest.
$ac_objext; then
23460 ac_cv_type_unsigned_char
=yes
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.
$ac_ext >&5
23465 ac_cv_type_unsigned_char
=no
23468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23470 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
23471 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
23473 # The cast to long int works around a bug in the HP C Compiler
23474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23476 # This bug is HP SR number 8606223364.
23477 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
23478 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
23479 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 if test "$cross_compiling" = yes; then
23483 # Depending upon the size, compute the lo and hi bounds.
23484 cat >conftest.
$ac_ext <<_ACEOF
23487 cat confdefs.h
>>conftest.
$ac_ext
23488 cat >>conftest.
$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 $ac_includes_default
23491 typedef unsigned char ac__type_sizeof_;
23495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23502 rm -f conftest.
$ac_objext
23503 if { (ac_try
="$ac_compile"
23504 case "(($ac_try" in
23505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_compile") 2>conftest.er1
23511 grep -v '^ *+' conftest.er1 >conftest.err
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest.$ac_objext; then
23521 cat >conftest.$ac_ext <<_ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23527 $ac_includes_default
23528 typedef unsigned char ac__type_sizeof_;
23532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23539 rm -f conftest.$ac_objext
23540 if { (ac_try="$ac_compile"
23541 case "(($ac_try" in
23542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23543 *) ac_try_echo
=$ac_try;;
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_compile") 2>conftest.er1
23548 grep -v '^ *+' conftest.er1
>conftest.err
23550 cat conftest.err
>&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && {
23553 test -z "$ac_c_werror_flag" ||
23554 test ! -s conftest.err
23555 } && test -s conftest.
$ac_objext; then
23556 ac_hi
=$ac_mid; break
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.
$ac_ext >&5
23561 ac_lo
=`expr $ac_mid + 1`
23562 if test $ac_lo -le $ac_mid; then
23566 ac_mid
=`expr 2 '*' $ac_mid + 1`
23569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.
$ac_ext >&5
23575 cat >conftest.
$ac_ext <<_ACEOF
23578 cat confdefs.h
>>conftest.
$ac_ext
23579 cat >>conftest.
$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 $ac_includes_default
23582 typedef unsigned char ac__type_sizeof_;
23586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23593 rm -f conftest.
$ac_objext
23594 if { (ac_try
="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23602 grep -v '^ *+' conftest.er1 >conftest.err
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23612 cat >conftest.$ac_ext <<_ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23618 $ac_includes_default
23619 typedef unsigned char ac__type_sizeof_;
23623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23634 *) ac_try_echo
=$ac_try;;
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_compile") 2>conftest.er1
23639 grep -v '^ *+' conftest.er1
>conftest.err
23641 cat conftest.err
>&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } && {
23644 test -z "$ac_c_werror_flag" ||
23645 test ! -s conftest.err
23646 } && test -s conftest.
$ac_objext; then
23647 ac_lo
=$ac_mid; break
23649 echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.
$ac_ext >&5
23652 ac_hi
=`expr '(' $ac_mid ')' - 1`
23653 if test $ac_mid -le $ac_hi; then
23657 ac_mid
=`expr 2 '*' $ac_mid`
23660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.
$ac_ext >&5
23669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23673 # Binary search between lo and hi bounds.
23674 while test "x$ac_lo" != "x$ac_hi"; do
23675 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23676 cat >conftest.
$ac_ext <<_ACEOF
23679 cat confdefs.h
>>conftest.
$ac_ext
23680 cat >>conftest.
$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23683 typedef unsigned char ac__type_sizeof_;
23687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23694 rm -f conftest.
$ac_objext
23695 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
23703 grep -v '^ *+' conftest.er1 >conftest.err
23705 cat conftest.err >&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } && {
23708 test -z "$ac_c_werror_flag" ||
23709 test ! -s conftest.err
23710 } && test -s conftest.$ac_objext; then
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23716 ac_lo=`expr '(' $ac_mid ')' + 1`
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23723 '') if test "$ac_cv_type_unsigned_char" = yes; then
23724 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23725 See \`config.log
' for more details." >&5
23726 echo "$as_me: error: cannot compute sizeof (unsigned char)
23727 See \`config.log' for more details.
" >&2;}
23728 { (exit 77); exit 77; }; }
23730 ac_cv_sizeof_unsigned_char=0
23734 cat >conftest.$ac_ext <<_ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23740 $ac_includes_default
23741 typedef unsigned char ac__type_sizeof_;
23742 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23743 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23745 #include <stdlib.h>
23750 FILE *f = fopen ("conftest.val
", "w
");
23753 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23755 long int i = longval ();
23756 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23758 fprintf (f, "%ld
\n", i);
23762 unsigned long int i = ulongval ();
23763 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23765 fprintf (f, "%lu
\n", i);
23767 return ferror (f) || fclose (f) != 0;
23773 rm -f conftest$ac_exeext
23774 if { (ac_try="$ac_link"
23775 case "(($ac_try" in
23776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777 *) ac_try_echo=$ac_try;;
23779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23780 (eval "$ac_link") 2>&5
23782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23783 (exit $ac_status); } && { ac_try='./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_sizeof_unsigned_char=`cat conftest.val`
23795 echo "$as_me: program exited with status
$ac_status" >&5
23796 echo "$as_me: failed program was
:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23799 ( exit $ac_status )
23800 if test "$ac_cv_type_unsigned_char" = yes; then
23801 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned char
)
23802 See \
`config.log' for more details." >&5
23803 echo "$as_me: error: cannot compute sizeof (unsigned char)
23804 See \`config.log
' for more details." >&2;}
23805 { (exit 77); exit 77; }; }
23807 ac_cv_sizeof_unsigned_char=0
23810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23814 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23815 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23819 cat >>confdefs.h <<_ACEOF
23820 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23824 { echo "$as_me:$LINENO: checking for unsigned short" >&5
23825 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
23826 if test "${ac_cv_type_unsigned_short+set}" = set; then
23827 echo $ECHO_N "(cached) $ECHO_C" >&6
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 $ac_includes_default
23836 typedef unsigned short ac__type_new_;
23840 if ((ac__type_new_ *) 0)
23842 if (sizeof (ac__type_new_))
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852 *) ac_try_echo=$ac_try;;
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_compile") 2>conftest.er1
23857 grep -v '^
*+' conftest.er1 >conftest.err
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && {
23862 test -z "$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 } && test -s conftest.$ac_objext; then
23865 ac_cv_type_unsigned_short=yes
23867 echo "$as_me: failed program was:" >&5
23868 sed 's
/^
/|
/' conftest.$ac_ext >&5
23870 ac_cv_type_unsigned_short=no
23873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23875 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23876 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
23878 # The cast to long int works around a bug in the HP C Compiler
23879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23881 # This bug is HP SR number 8606223364.
23882 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
23883 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
23884 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23885 echo $ECHO_N "(cached) $ECHO_C" >&6
23887 if test "$cross_compiling" = yes; then
23888 # Depending upon the size, compute the lo and hi bounds.
23889 cat >conftest.
$ac_ext <<_ACEOF
23892 cat confdefs.h
>>conftest.
$ac_ext
23893 cat >>conftest.
$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 $ac_includes_default
23896 typedef unsigned short ac__type_sizeof_;
23900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23907 rm -f conftest.
$ac_objext
23908 if { (ac_try
="$ac_compile"
23909 case "(($ac_try" in
23910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_compile") 2>conftest.er1
23916 grep -v '^ *+' conftest.er1 >conftest.err
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && {
23921 test -z "$ac_c_werror_flag" ||
23922 test ! -s conftest.err
23923 } && test -s conftest.$ac_objext; then
23926 cat >conftest.$ac_ext <<_ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 $ac_includes_default
23933 typedef unsigned short ac__type_sizeof_;
23937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23944 rm -f conftest.$ac_objext
23945 if { (ac_try="$ac_compile"
23946 case "(($ac_try" in
23947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23948 *) ac_try_echo
=$ac_try;;
23950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23951 (eval "$ac_compile") 2>conftest.er1
23953 grep -v '^ *+' conftest.er1
>conftest.err
23955 cat conftest.err
>&5
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } && {
23958 test -z "$ac_c_werror_flag" ||
23959 test ! -s conftest.err
23960 } && test -s conftest.
$ac_objext; then
23961 ac_hi
=$ac_mid; break
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.
$ac_ext >&5
23966 ac_lo
=`expr $ac_mid + 1`
23967 if test $ac_lo -le $ac_mid; then
23971 ac_mid
=`expr 2 '*' $ac_mid + 1`
23974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.
$ac_ext >&5
23980 cat >conftest.
$ac_ext <<_ACEOF
23983 cat confdefs.h
>>conftest.
$ac_ext
23984 cat >>conftest.
$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 $ac_includes_default
23987 typedef unsigned short ac__type_sizeof_;
23991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23998 rm -f conftest.
$ac_objext
23999 if { (ac_try
="$ac_compile"
24000 case "(($ac_try" in
24001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24007 grep -v '^ *+' conftest.er1 >conftest.err
24009 cat conftest.err >&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.$ac_objext; then
24017 cat >conftest.$ac_ext <<_ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 $ac_includes_default
24024 typedef unsigned short ac__type_sizeof_;
24028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24035 rm -f conftest.$ac_objext
24036 if { (ac_try="$ac_compile"
24037 case "(($ac_try" in
24038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24039 *) ac_try_echo
=$ac_try;;
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_compile") 2>conftest.er1
24044 grep -v '^ *+' conftest.er1
>conftest.err
24046 cat conftest.err
>&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } && {
24049 test -z "$ac_c_werror_flag" ||
24050 test ! -s conftest.err
24051 } && test -s conftest.
$ac_objext; then
24052 ac_lo
=$ac_mid; break
24054 echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.
$ac_ext >&5
24057 ac_hi
=`expr '(' $ac_mid ')' - 1`
24058 if test $ac_mid -le $ac_hi; then
24062 ac_mid
=`expr 2 '*' $ac_mid`
24065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24068 echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.
$ac_ext >&5
24074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24078 # Binary search between lo and hi bounds.
24079 while test "x$ac_lo" != "x$ac_hi"; do
24080 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24081 cat >conftest.
$ac_ext <<_ACEOF
24084 cat confdefs.h
>>conftest.
$ac_ext
24085 cat >>conftest.
$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 $ac_includes_default
24088 typedef unsigned short ac__type_sizeof_;
24092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24099 rm -f conftest.
$ac_objext
24100 if { (ac_try
="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24108 grep -v '^ *+' conftest.er1 >conftest.err
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ac_lo=`expr '(' $ac_mid ')' + 1`
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24128 '') if test "$ac_cv_type_unsigned_short" = yes; then
24129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24130 See \`config.log
' for more details." >&5
24131 echo "$as_me: error: cannot compute sizeof (unsigned short)
24132 See \`config.log' for more details.
" >&2;}
24133 { (exit 77); exit 77; }; }
24135 ac_cv_sizeof_unsigned_short=0
24139 cat >conftest.$ac_ext <<_ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24146 typedef unsigned short ac__type_sizeof_;
24147 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24148 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24150 #include <stdlib.h>
24155 FILE *f = fopen ("conftest.val
", "w
");
24158 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24160 long int i = longval ();
24161 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24163 fprintf (f, "%ld
\n", i);
24167 unsigned long int i = ulongval ();
24168 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24170 fprintf (f, "%lu
\n", i);
24172 return ferror (f) || fclose (f) != 0;
24178 rm -f conftest$ac_exeext
24179 if { (ac_try="$ac_link"
24180 case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24185 (eval "$ac_link") 2>&5
24187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24189 { (case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_try") 2>&5
24196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24200 echo "$as_me: program exited with status
$ac_status" >&5
24201 echo "$as_me: failed program was
:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24204 ( exit $ac_status )
24205 if test "$ac_cv_type_unsigned_short" = yes; then
24206 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned short
)
24207 See \
`config.log' for more details." >&5
24208 echo "$as_me: error: cannot compute sizeof (unsigned short)
24209 See \`config.log
' for more details." >&2;}
24210 { (exit 77); exit 77; }; }
24212 ac_cv_sizeof_unsigned_short=0
24215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24219 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24220 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
24224 cat >>confdefs.h <<_ACEOF
24225 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24229 { echo "$as_me:$LINENO: checking for unsigned int" >&5
24230 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
24231 if test "${ac_cv_type_unsigned_int+set}" = set; then
24232 echo $ECHO_N "(cached) $ECHO_C" >&6
24234 cat >conftest.$ac_ext <<_ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24241 typedef unsigned int ac__type_new_;
24245 if ((ac__type_new_ *) 0)
24247 if (sizeof (ac__type_new_))
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_compile") 2>conftest.er1
24262 grep -v '^
*+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && {
24267 test -z "$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24269 } && test -s conftest.$ac_objext; then
24270 ac_cv_type_unsigned_int=yes
24272 echo "$as_me: failed program was:" >&5
24273 sed 's
/^
/|
/' conftest.$ac_ext >&5
24275 ac_cv_type_unsigned_int=no
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
24281 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
24283 # The cast to long int works around a bug in the HP C Compiler
24284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24286 # This bug is HP SR number 8606223364.
24287 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
24288 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
24289 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
24290 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 if test "$cross_compiling" = yes; then
24293 # Depending upon the size, compute the lo and hi bounds.
24294 cat >conftest.
$ac_ext <<_ACEOF
24297 cat confdefs.h
>>conftest.
$ac_ext
24298 cat >>conftest.
$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 $ac_includes_default
24301 typedef unsigned int ac__type_sizeof_;
24305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24312 rm -f conftest.
$ac_objext
24313 if { (ac_try
="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_compile") 2>conftest.er1
24321 grep -v '^ *+' conftest.er1 >conftest.err
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && {
24326 test -z "$ac_c_werror_flag" ||
24327 test ! -s conftest.err
24328 } && test -s conftest.$ac_objext; then
24331 cat >conftest.$ac_ext <<_ACEOF
24334 cat confdefs.h >>conftest.$ac_ext
24335 cat >>conftest.$ac_ext <<_ACEOF
24336 /* end confdefs.h. */
24337 $ac_includes_default
24338 typedef unsigned int ac__type_sizeof_;
24342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24349 rm -f conftest.$ac_objext
24350 if { (ac_try="$ac_compile"
24351 case "(($ac_try" in
24352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24353 *) ac_try_echo
=$ac_try;;
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_compile") 2>conftest.er1
24358 grep -v '^ *+' conftest.er1
>conftest.err
24360 cat conftest.err
>&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && {
24363 test -z "$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 } && test -s conftest.
$ac_objext; then
24366 ac_hi
=$ac_mid; break
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.
$ac_ext >&5
24371 ac_lo
=`expr $ac_mid + 1`
24372 if test $ac_lo -le $ac_mid; then
24376 ac_mid
=`expr 2 '*' $ac_mid + 1`
24379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24382 echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.
$ac_ext >&5
24385 cat >conftest.
$ac_ext <<_ACEOF
24388 cat confdefs.h
>>conftest.
$ac_ext
24389 cat >>conftest.
$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24392 typedef unsigned int ac__type_sizeof_;
24396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24403 rm -f conftest.
$ac_objext
24404 if { (ac_try
="$ac_compile"
24405 case "(($ac_try" in
24406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_compile") 2>conftest.er1
24412 grep -v '^ *+' conftest.er1 >conftest.err
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest.$ac_objext; then
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24429 typedef unsigned int ac__type_sizeof_;
24433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24444 *) ac_try_echo
=$ac_try;;
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_compile") 2>conftest.er1
24449 grep -v '^ *+' conftest.er1
>conftest.err
24451 cat conftest.err
>&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest.
$ac_objext; then
24457 ac_lo
=$ac_mid; break
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.
$ac_ext >&5
24462 ac_hi
=`expr '(' $ac_mid ')' - 1`
24463 if test $ac_mid -le $ac_hi; then
24467 ac_mid
=`expr 2 '*' $ac_mid`
24470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.
$ac_ext >&5
24479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24483 # Binary search between lo and hi bounds.
24484 while test "x$ac_lo" != "x$ac_hi"; do
24485 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24486 cat >conftest.
$ac_ext <<_ACEOF
24489 cat confdefs.h
>>conftest.
$ac_ext
24490 cat >>conftest.
$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24493 typedef unsigned int ac__type_sizeof_;
24497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24504 rm -f conftest.
$ac_objext
24505 if { (ac_try
="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_lo=`expr '(' $ac_mid ')' + 1`
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24533 '') if test "$ac_cv_type_unsigned_int" = yes; then
24534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24535 See \`config.log
' for more details." >&5
24536 echo "$as_me: error: cannot compute sizeof (unsigned int)
24537 See \`config.log' for more details.
" >&2;}
24538 { (exit 77); exit 77; }; }
24540 ac_cv_sizeof_unsigned_int=0
24544 cat >conftest.$ac_ext <<_ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 $ac_includes_default
24551 typedef unsigned int ac__type_sizeof_;
24552 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24553 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24555 #include <stdlib.h>
24560 FILE *f = fopen ("conftest.val
", "w
");
24563 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24565 long int i = longval ();
24566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24568 fprintf (f, "%ld
\n", i);
24572 unsigned long int i = ulongval ();
24573 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24575 fprintf (f, "%lu
\n", i);
24577 return ferror (f) || fclose (f) != 0;
24583 rm -f conftest$ac_exeext
24584 if { (ac_try="$ac_link"
24585 case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24590 (eval "$ac_link") 2>&5
24592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24594 { (case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_try") 2>&5
24601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24602 (exit $ac_status); }; }; then
24603 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24605 echo "$as_me: program exited with status
$ac_status" >&5
24606 echo "$as_me: failed program was
:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ( exit $ac_status )
24610 if test "$ac_cv_type_unsigned_int" = yes; then
24611 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned int
)
24612 See \
`config.log' for more details." >&5
24613 echo "$as_me: error: cannot compute sizeof (unsigned int)
24614 See \`config.log
' for more details." >&2;}
24615 { (exit 77); exit 77; }; }
24617 ac_cv_sizeof_unsigned_int=0
24620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24624 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24625 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24629 cat >>confdefs.h <<_ACEOF
24630 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24634 { echo "$as_me:$LINENO: checking for unsigned long" >&5
24635 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24636 if test "${ac_cv_type_unsigned_long+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 $ac_includes_default
24646 typedef unsigned long ac__type_new_;
24650 if ((ac__type_new_ *) 0)
24652 if (sizeof (ac__type_new_))
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_compile") 2>conftest.er1
24667 grep -v '^
*+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && {
24672 test -z "$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24674 } && test -s conftest.$ac_objext; then
24675 ac_cv_type_unsigned_long=yes
24677 echo "$as_me: failed program was:" >&5
24678 sed 's
/^
/|
/' conftest.$ac_ext >&5
24680 ac_cv_type_unsigned_long=no
24683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24685 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24686 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24688 # The cast to long int works around a bug in the HP C Compiler
24689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24691 # This bug is HP SR number 8606223364.
24692 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
24693 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24694 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24695 echo $ECHO_N "(cached) $ECHO_C" >&6
24697 if test "$cross_compiling" = yes; then
24698 # Depending upon the size, compute the lo and hi bounds.
24699 cat >conftest.
$ac_ext <<_ACEOF
24702 cat confdefs.h
>>conftest.
$ac_ext
24703 cat >>conftest.
$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 $ac_includes_default
24706 typedef unsigned long ac__type_sizeof_;
24710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24717 rm -f conftest.
$ac_objext
24718 if { (ac_try
="$ac_compile"
24719 case "(($ac_try" in
24720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24736 cat >conftest.$ac_ext <<_ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h. */
24742 $ac_includes_default
24743 typedef unsigned long ac__type_sizeof_;
24747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24754 rm -f conftest.$ac_objext
24755 if { (ac_try="$ac_compile"
24756 case "(($ac_try" in
24757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24758 *) ac_try_echo
=$ac_try;;
24760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761 (eval "$ac_compile") 2>conftest.er1
24763 grep -v '^ *+' conftest.er1
>conftest.err
24765 cat conftest.err
>&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } && {
24768 test -z "$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 } && test -s conftest.
$ac_objext; then
24771 ac_hi
=$ac_mid; break
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.
$ac_ext >&5
24776 ac_lo
=`expr $ac_mid + 1`
24777 if test $ac_lo -le $ac_mid; then
24781 ac_mid
=`expr 2 '*' $ac_mid + 1`
24784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.
$ac_ext >&5
24790 cat >conftest.
$ac_ext <<_ACEOF
24793 cat confdefs.h
>>conftest.
$ac_ext
24794 cat >>conftest.
$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796 $ac_includes_default
24797 typedef unsigned long ac__type_sizeof_;
24801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24808 rm -f conftest.
$ac_objext
24809 if { (ac_try
="$ac_compile"
24810 case "(($ac_try" in
24811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24812 *) ac_try_echo=$ac_try;;
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815 (eval "$ac_compile") 2>conftest.er1
24817 grep -v '^ *+' conftest.er1 >conftest.err
24819 cat conftest.err >&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && {
24822 test -z "$ac_c_werror_flag" ||
24823 test ! -s conftest.err
24824 } && test -s conftest.$ac_objext; then
24827 cat >conftest.$ac_ext <<_ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24833 $ac_includes_default
24834 typedef unsigned long ac__type_sizeof_;
24838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24845 rm -f conftest.$ac_objext
24846 if { (ac_try="$ac_compile"
24847 case "(($ac_try" in
24848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24849 *) ac_try_echo
=$ac_try;;
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_compile") 2>conftest.er1
24854 grep -v '^ *+' conftest.er1
>conftest.err
24856 cat conftest.err
>&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } && {
24859 test -z "$ac_c_werror_flag" ||
24860 test ! -s conftest.err
24861 } && test -s conftest.
$ac_objext; then
24862 ac_lo
=$ac_mid; break
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.
$ac_ext >&5
24867 ac_hi
=`expr '(' $ac_mid ')' - 1`
24868 if test $ac_mid -le $ac_hi; then
24872 ac_mid
=`expr 2 '*' $ac_mid`
24875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24878 echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.
$ac_ext >&5
24884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24888 # Binary search between lo and hi bounds.
24889 while test "x$ac_lo" != "x$ac_hi"; do
24890 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24891 cat >conftest.
$ac_ext <<_ACEOF
24894 cat confdefs.h
>>conftest.
$ac_ext
24895 cat >>conftest.
$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24897 $ac_includes_default
24898 typedef unsigned long ac__type_sizeof_;
24902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24909 rm -f conftest.
$ac_objext
24910 if { (ac_try
="$ac_compile"
24911 case "(($ac_try" in
24912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_compile") 2>conftest.er1
24918 grep -v '^ *+' conftest.er1 >conftest.err
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } && {
24923 test -z "$ac_c_werror_flag" ||
24924 test ! -s conftest.err
24925 } && test -s conftest.$ac_objext; then
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_lo=`expr '(' $ac_mid ')' + 1`
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24938 '') if test "$ac_cv_type_unsigned_long" = yes; then
24939 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24940 See \`config.log
' for more details." >&5
24941 echo "$as_me: error: cannot compute sizeof (unsigned long)
24942 See \`config.log' for more details.
" >&2;}
24943 { (exit 77); exit 77; }; }
24945 ac_cv_sizeof_unsigned_long=0
24949 cat >conftest.$ac_ext <<_ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955 $ac_includes_default
24956 typedef unsigned long ac__type_sizeof_;
24957 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24958 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24960 #include <stdlib.h>
24965 FILE *f = fopen ("conftest.val
", "w
");
24968 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24970 long int i = longval ();
24971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24973 fprintf (f, "%ld
\n", i);
24977 unsigned long int i = ulongval ();
24978 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24980 fprintf (f, "%lu
\n", i);
24982 return ferror (f) || fclose (f) != 0;
24988 rm -f conftest$ac_exeext
24989 if { (ac_try="$ac_link"
24990 case "(($ac_try" in
24991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24992 *) ac_try_echo=$ac_try;;
24994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24995 (eval "$ac_link") 2>&5
24997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24999 { (case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_try") 2>&5
25006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25007 (exit $ac_status); }; }; then
25008 ac_cv_sizeof_unsigned_long=`cat conftest.val`
25010 echo "$as_me: program exited with status
$ac_status" >&5
25011 echo "$as_me: failed program was
:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ( exit $ac_status )
25015 if test "$ac_cv_type_unsigned_long" = yes; then
25016 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long
)
25017 See \
`config.log' for more details." >&5
25018 echo "$as_me: error: cannot compute sizeof (unsigned long)
25019 See \`config.log
' for more details." >&2;}
25020 { (exit 77); exit 77; }; }
25022 ac_cv_sizeof_unsigned_long=0
25025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25029 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
25030 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
25034 cat >>confdefs.h <<_ACEOF
25035 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25039 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
25040 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25041 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25042 echo $ECHO_N "(cached) $ECHO_C" >&6
25044 cat >conftest.$ac_ext <<_ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h. */
25050 $ac_includes_default
25051 typedef unsigned long long ac__type_new_;
25055 if ((ac__type_new_ *) 0)
25057 if (sizeof (ac__type_new_))
25063 rm -f conftest.$ac_objext
25064 if { (ac_try="$ac_compile"
25065 case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_compile") 2>conftest.er1
25072 grep -v '^
*+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest.$ac_objext; then
25080 ac_cv_type_unsigned_long_long=yes
25082 echo "$as_me: failed program was:" >&5
25083 sed 's
/^
/|
/' conftest.$ac_ext >&5
25085 ac_cv_type_unsigned_long_long=no
25088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25090 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25091 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25093 # The cast to long int works around a bug in the HP C Compiler
25094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25096 # This bug is HP SR number 8606223364.
25097 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25098 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25099 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25102 if test "$cross_compiling" = yes; then
25103 # Depending upon the size, compute the lo and hi bounds.
25104 cat >conftest.
$ac_ext <<_ACEOF
25107 cat confdefs.h
>>conftest.
$ac_ext
25108 cat >>conftest.
$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110 $ac_includes_default
25111 typedef unsigned long long ac__type_sizeof_;
25115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25122 rm -f conftest.
$ac_objext
25123 if { (ac_try
="$ac_compile"
25124 case "(($ac_try" in
25125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25126 *) ac_try_echo=$ac_try;;
25128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25129 (eval "$ac_compile") 2>conftest.er1
25131 grep -v '^ *+' conftest.er1 >conftest.err
25133 cat conftest.err >&5
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); } && {
25136 test -z "$ac_c_werror_flag" ||
25137 test ! -s conftest.err
25138 } && test -s conftest.$ac_objext; then
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 $ac_includes_default
25148 typedef unsigned long long ac__type_sizeof_;
25152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25159 rm -f conftest.$ac_objext
25160 if { (ac_try="$ac_compile"
25161 case "(($ac_try" in
25162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25163 *) ac_try_echo
=$ac_try;;
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166 (eval "$ac_compile") 2>conftest.er1
25168 grep -v '^ *+' conftest.er1
>conftest.err
25170 cat conftest.err
>&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } && {
25173 test -z "$ac_c_werror_flag" ||
25174 test ! -s conftest.err
25175 } && test -s conftest.
$ac_objext; then
25176 ac_hi
=$ac_mid; break
25178 echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.
$ac_ext >&5
25181 ac_lo
=`expr $ac_mid + 1`
25182 if test $ac_lo -le $ac_mid; then
25186 ac_mid
=`expr 2 '*' $ac_mid + 1`
25189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25192 echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.
$ac_ext >&5
25195 cat >conftest.
$ac_ext <<_ACEOF
25198 cat confdefs.h
>>conftest.
$ac_ext
25199 cat >>conftest.
$ac_ext <<_ACEOF
25200 /* end confdefs.h. */
25201 $ac_includes_default
25202 typedef unsigned long long ac__type_sizeof_;
25206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25213 rm -f conftest.
$ac_objext
25214 if { (ac_try
="$ac_compile"
25215 case "(($ac_try" in
25216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_compile") 2>conftest.er1
25222 grep -v '^ *+' conftest.er1 >conftest.err
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } && {
25227 test -z "$ac_c_werror_flag" ||
25228 test ! -s conftest.err
25229 } && test -s conftest.$ac_objext; then
25232 cat >conftest.$ac_ext <<_ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h. */
25238 $ac_includes_default
25239 typedef unsigned long long ac__type_sizeof_;
25243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25250 rm -f conftest.$ac_objext
25251 if { (ac_try="$ac_compile"
25252 case "(($ac_try" in
25253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25254 *) ac_try_echo
=$ac_try;;
25256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25257 (eval "$ac_compile") 2>conftest.er1
25259 grep -v '^ *+' conftest.er1
>conftest.err
25261 cat conftest.err
>&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } && {
25264 test -z "$ac_c_werror_flag" ||
25265 test ! -s conftest.err
25266 } && test -s conftest.
$ac_objext; then
25267 ac_lo
=$ac_mid; break
25269 echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.
$ac_ext >&5
25272 ac_hi
=`expr '(' $ac_mid ')' - 1`
25273 if test $ac_mid -le $ac_hi; then
25277 ac_mid
=`expr 2 '*' $ac_mid`
25280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25283 echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.
$ac_ext >&5
25289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25293 # Binary search between lo and hi bounds.
25294 while test "x$ac_lo" != "x$ac_hi"; do
25295 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25296 cat >conftest.
$ac_ext <<_ACEOF
25299 cat confdefs.h
>>conftest.
$ac_ext
25300 cat >>conftest.
$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 $ac_includes_default
25303 typedef unsigned long long ac__type_sizeof_;
25307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25314 rm -f conftest.
$ac_objext
25315 if { (ac_try
="$ac_compile"
25316 case "(($ac_try" in
25317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25336 ac_lo=`expr '(' $ac_mid ')' + 1`
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25342 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25343 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
25344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25345 See \`config.log
' for more details." >&5
25346 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25347 See \`config.log' for more details.
" >&2;}
25348 { (exit 77); exit 77; }; }
25350 ac_cv_sizeof_unsigned_long_long=0
25354 cat >conftest.$ac_ext <<_ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h. */
25360 $ac_includes_default
25361 typedef unsigned long long ac__type_sizeof_;
25362 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25363 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25365 #include <stdlib.h>
25370 FILE *f = fopen ("conftest.val
", "w
");
25373 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25375 long int i = longval ();
25376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25378 fprintf (f, "%ld
\n", i);
25382 unsigned long int i = ulongval ();
25383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25385 fprintf (f, "%lu
\n", i);
25387 return ferror (f) || fclose (f) != 0;
25393 rm -f conftest$ac_exeext
25394 if { (ac_try="$ac_link"
25395 case "(($ac_try" in
25396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25400 (eval "$ac_link") 2>&5
25402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25404 { (case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25409 (eval "$ac_try") 2>&5
25411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25412 (exit $ac_status); }; }; then
25413 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25415 echo "$as_me: program exited with status
$ac_status" >&5
25416 echo "$as_me: failed program was
:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25419 ( exit $ac_status )
25420 if test "$ac_cv_type_unsigned_long_long" = yes; then
25421 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long long
)
25422 See \
`config.log' for more details." >&5
25423 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25424 See \`config.log
' for more details." >&2;}
25425 { (exit 77); exit 77; }; }
25427 ac_cv_sizeof_unsigned_long_long=0
25430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25434 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25435 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25439 cat >>confdefs.h <<_ACEOF
25440 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25444 { echo "$as_me:$LINENO: checking for int *" >&5
25445 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25446 if test "${ac_cv_type_int_p+set}" = set; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
25449 cat >conftest.$ac_ext <<_ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25455 $ac_includes_default
25456 typedef int * ac__type_new_;
25460 if ((ac__type_new_ *) 0)
25462 if (sizeof (ac__type_new_))
25468 rm -f conftest.$ac_objext
25469 if { (ac_try="$ac_compile"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_compile") 2>conftest.er1
25477 grep -v '^
*+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest.$ac_objext; then
25485 ac_cv_type_int_p=yes
25487 echo "$as_me: failed program was:" >&5
25488 sed 's
/^
/|
/' conftest.$ac_ext >&5
25490 ac_cv_type_int_p=no
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25496 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25498 # The cast to long int works around a bug in the HP C Compiler
25499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25501 # This bug is HP SR number 8606223364.
25502 { echo "$as_me:$LINENO: checking size of int *" >&5
25503 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25504 if test "${ac_cv_sizeof_int_p+set}" = set; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25507 if test "$cross_compiling" = yes; then
25508 # Depending upon the size, compute the lo and hi bounds.
25509 cat >conftest.
$ac_ext <<_ACEOF
25512 cat confdefs.h
>>conftest.
$ac_ext
25513 cat >>conftest.
$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 $ac_includes_default
25516 typedef int * ac__type_sizeof_;
25520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25527 rm -f conftest.
$ac_objext
25528 if { (ac_try
="$ac_compile"
25529 case "(($ac_try" in
25530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25531 *) ac_try_echo=$ac_try;;
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534 (eval "$ac_compile") 2>conftest.er1
25536 grep -v '^ *+' conftest.er1 >conftest.err
25538 cat conftest.err >&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); } && {
25541 test -z "$ac_c_werror_flag" ||
25542 test ! -s conftest.err
25543 } && test -s conftest.$ac_objext; then
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 $ac_includes_default
25553 typedef int * ac__type_sizeof_;
25557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25564 rm -f conftest.$ac_objext
25565 if { (ac_try="$ac_compile"
25566 case "(($ac_try" in
25567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25568 *) ac_try_echo
=$ac_try;;
25570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25571 (eval "$ac_compile") 2>conftest.er1
25573 grep -v '^ *+' conftest.er1
>conftest.err
25575 cat conftest.err
>&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } && {
25578 test -z "$ac_c_werror_flag" ||
25579 test ! -s conftest.err
25580 } && test -s conftest.
$ac_objext; then
25581 ac_hi
=$ac_mid; break
25583 echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.
$ac_ext >&5
25586 ac_lo
=`expr $ac_mid + 1`
25587 if test $ac_lo -le $ac_mid; then
25591 ac_mid
=`expr 2 '*' $ac_mid + 1`
25594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.
$ac_ext >&5
25600 cat >conftest.
$ac_ext <<_ACEOF
25603 cat confdefs.h
>>conftest.
$ac_ext
25604 cat >>conftest.
$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25606 $ac_includes_default
25607 typedef int * ac__type_sizeof_;
25611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25618 rm -f conftest.
$ac_objext
25619 if { (ac_try
="$ac_compile"
25620 case "(($ac_try" in
25621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625 (eval "$ac_compile") 2>conftest.er1
25627 grep -v '^ *+' conftest.er1 >conftest.err
25629 cat conftest.err >&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } && {
25632 test -z "$ac_c_werror_flag" ||
25633 test ! -s conftest.err
25634 } && test -s conftest.$ac_objext; then
25637 cat >conftest.$ac_ext <<_ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h. */
25643 $ac_includes_default
25644 typedef int * ac__type_sizeof_;
25648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25655 rm -f conftest.$ac_objext
25656 if { (ac_try="$ac_compile"
25657 case "(($ac_try" in
25658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25659 *) ac_try_echo
=$ac_try;;
25661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25662 (eval "$ac_compile") 2>conftest.er1
25664 grep -v '^ *+' conftest.er1
>conftest.err
25666 cat conftest.err
>&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } && {
25669 test -z "$ac_c_werror_flag" ||
25670 test ! -s conftest.err
25671 } && test -s conftest.
$ac_objext; then
25672 ac_lo
=$ac_mid; break
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.
$ac_ext >&5
25677 ac_hi
=`expr '(' $ac_mid ')' - 1`
25678 if test $ac_mid -le $ac_hi; then
25682 ac_mid
=`expr 2 '*' $ac_mid`
25685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25688 echo "$as_me: failed program was:" >&5
25689 sed 's/^/| /' conftest.
$ac_ext >&5
25694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25698 # Binary search between lo and hi bounds.
25699 while test "x$ac_lo" != "x$ac_hi"; do
25700 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25701 cat >conftest.
$ac_ext <<_ACEOF
25704 cat confdefs.h
>>conftest.
$ac_ext
25705 cat >>conftest.
$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 $ac_includes_default
25708 typedef int * ac__type_sizeof_;
25712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25719 rm -f conftest.
$ac_objext
25720 if { (ac_try
="$ac_compile"
25721 case "(($ac_try" in
25722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_compile") 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } && {
25733 test -z "$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25735 } && test -s conftest.$ac_objext; then
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25741 ac_lo=`expr '(' $ac_mid ')' + 1`
25744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25748 '') if test "$ac_cv_type_int_p" = yes; then
25749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25750 See \`config.log
' for more details." >&5
25751 echo "$as_me: error: cannot compute sizeof (int *)
25752 See \`config.log' for more details.
" >&2;}
25753 { (exit 77); exit 77; }; }
25755 ac_cv_sizeof_int_p=0
25759 cat >conftest.$ac_ext <<_ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h. */
25765 $ac_includes_default
25766 typedef int * ac__type_sizeof_;
25767 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25768 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25770 #include <stdlib.h>
25775 FILE *f = fopen ("conftest.val
", "w
");
25778 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25780 long int i = longval ();
25781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25783 fprintf (f, "%ld
\n", i);
25787 unsigned long int i = ulongval ();
25788 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25790 fprintf (f, "%lu
\n", i);
25792 return ferror (f) || fclose (f) != 0;
25798 rm -f conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_link") 2>&5
25807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25809 { (case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25814 (eval "$ac_try") 2>&5
25816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25817 (exit $ac_status); }; }; then
25818 ac_cv_sizeof_int_p=`cat conftest.val`
25820 echo "$as_me: program exited with status
$ac_status" >&5
25821 echo "$as_me: failed program was
:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25824 ( exit $ac_status )
25825 if test "$ac_cv_type_int_p" = yes; then
25826 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
*)
25827 See \
`config.log' for more details." >&5
25828 echo "$as_me: error: cannot compute sizeof (int *)
25829 See \`config.log
' for more details." >&2;}
25830 { (exit 77); exit 77; }; }
25832 ac_cv_sizeof_int_p=0
25835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25839 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25840 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25844 cat >>confdefs.h <<_ACEOF
25845 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25850 for ac_func in getenv
25852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25858 cat >conftest.$ac_ext <<_ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h. */
25864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25866 #define $ac_func innocuous_$ac_func
25868 /* System header to define __stub macros and hopefully few prototypes,
25869 which can conflict with char $ac_func (); below.
25870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25871 <limits.h> exists even on freestanding compilers. */
25874 # include <limits.h>
25876 # include <assert.h>
25881 /* Override any GCC internal prototype to avoid an error.
25882 Use char because int might match the return type of a GCC
25883 builtin and then its argument prototype would still apply. */
25888 /* The GNU C library defines this for functions which it implements
25889 to always fail with ENOSYS. Some functions are actually named
25890 something starting with __ and the normal name is an alias. */
25891 #if defined __stub_$ac_func || defined __stub___$ac_func
25898 return $ac_func ();
25903 rm -f conftest.$ac_objext conftest$ac_exeext
25904 if { (ac_try="$ac_link"
25905 case "(($ac_try" in
25906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907 *) ac_try_echo=$ac_try;;
25909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910 (eval "$ac_link") 2>conftest.er1
25912 grep -v '^
*+' conftest.er1 >conftest.err
25914 cat conftest.err >&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest$ac_exeext &&
25920 $as_test_x conftest$ac_exeext; then
25921 eval "$as_ac_var=yes"
25923 echo "$as_me: failed program was:" >&5
25924 sed 's
/^
/|
/' conftest.$ac_ext >&5
25926 eval "$as_ac_var=no"
25929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25930 conftest$ac_exeext conftest.$ac_ext
25932 ac_res=`eval echo '${'$as_ac_var'}'`
25933 { echo "$as_me:$LINENO: result: $ac_res" >&5
25934 echo "${ECHO_T}$ac_res" >&6; }
25935 if test `eval echo '${'$as_ac_var'}'` = yes; then
25936 cat >>confdefs.h <<_ACEOF
25937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25939 cat >>confdefs.h <<\_ACEOF
25940 #define BX_HAVE_GETENV 1
25947 for ac_func in setenv
25949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25955 cat >conftest.$ac_ext <<_ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h. */
25961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25963 #define $ac_func innocuous_$ac_func
25965 /* System header to define __stub macros and hopefully few prototypes,
25966 which can conflict with char $ac_func (); below.
25967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25968 <limits.h> exists even on freestanding compilers. */
25971 # include <limits.h>
25973 # include <assert.h>
25978 /* Override any GCC internal prototype to avoid an error.
25979 Use char because int might match the return type of a GCC
25980 builtin and then its argument prototype would still apply. */
25985 /* The GNU C library defines this for functions which it implements
25986 to always fail with ENOSYS. Some functions are actually named
25987 something starting with __ and the normal name is an alias. */
25988 #if defined __stub_$ac_func || defined __stub___$ac_func
25995 return $ac_func ();
26000 rm -f conftest.$ac_objext conftest$ac_exeext
26001 if { (ac_try="$ac_link"
26002 case "(($ac_try" in
26003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 (eval "$ac_link") 2>conftest.er1
26009 grep -v '^
*+' conftest.er1 >conftest.err
26011 cat conftest.err >&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } && {
26014 test -z "$ac_c_werror_flag" ||
26015 test ! -s conftest.err
26016 } && test -s conftest$ac_exeext &&
26017 $as_test_x conftest$ac_exeext; then
26018 eval "$as_ac_var=yes"
26020 echo "$as_me: failed program was:" >&5
26021 sed 's
/^
/|
/' conftest.$ac_ext >&5
26023 eval "$as_ac_var=no"
26026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26027 conftest$ac_exeext conftest.$ac_ext
26029 ac_res=`eval echo '${'$as_ac_var'}'`
26030 { echo "$as_me:$LINENO: result: $ac_res" >&5
26031 echo "${ECHO_T}$ac_res" >&6; }
26032 if test `eval echo '${'$as_ac_var'}'` = yes; then
26033 cat >>confdefs.h <<_ACEOF
26034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26036 cat >>confdefs.h <<\_ACEOF
26037 #define BX_HAVE_SETENV 1
26044 for ac_func in select
26046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26052 cat >conftest.$ac_ext <<_ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26060 #define $ac_func innocuous_$ac_func
26062 /* System header to define __stub macros and hopefully few prototypes,
26063 which can conflict with char $ac_func (); below.
26064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26065 <limits.h> exists even on freestanding compilers. */
26068 # include <limits.h>
26070 # include <assert.h>
26075 /* Override any GCC internal prototype to avoid an error.
26076 Use char because int might match the return type of a GCC
26077 builtin and then its argument prototype would still apply. */
26082 /* The GNU C library defines this for functions which it implements
26083 to always fail with ENOSYS. Some functions are actually named
26084 something starting with __ and the normal name is an alias. */
26085 #if defined __stub_$ac_func || defined __stub___$ac_func
26092 return $ac_func ();
26097 rm -f conftest.$ac_objext conftest$ac_exeext
26098 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26106 grep -v '^
*+' conftest.er1 >conftest.err
26108 cat conftest.err >&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } && {
26111 test -z "$ac_c_werror_flag" ||
26112 test ! -s conftest.err
26113 } && test -s conftest$ac_exeext &&
26114 $as_test_x conftest$ac_exeext; then
26115 eval "$as_ac_var=yes"
26117 echo "$as_me: failed program was:" >&5
26118 sed 's
/^
/|
/' conftest.$ac_ext >&5
26120 eval "$as_ac_var=no"
26123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26124 conftest$ac_exeext conftest.$ac_ext
26126 ac_res=`eval echo '${'$as_ac_var'}'`
26127 { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26129 if test `eval echo '${'$as_ac_var'}'` = yes; then
26130 cat >>confdefs.h <<_ACEOF
26131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26133 cat >>confdefs.h <<\_ACEOF
26134 #define BX_HAVE_SELECT 1
26141 for ac_func in snprintf
26143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26149 cat >conftest.$ac_ext <<_ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26157 #define $ac_func innocuous_$ac_func
26159 /* System header to define __stub macros and hopefully few prototypes,
26160 which can conflict with char $ac_func (); below.
26161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26162 <limits.h> exists even on freestanding compilers. */
26165 # include <limits.h>
26167 # include <assert.h>
26172 /* Override any GCC internal prototype to avoid an error.
26173 Use char because int might match the return type of a GCC
26174 builtin and then its argument prototype would still apply. */
26179 /* The GNU C library defines this for functions which it implements
26180 to always fail with ENOSYS. Some functions are actually named
26181 something starting with __ and the normal name is an alias. */
26182 #if defined __stub_$ac_func || defined __stub___$ac_func
26189 return $ac_func ();
26194 rm -f conftest.$ac_objext conftest$ac_exeext
26195 if { (ac_try="$ac_link"
26196 case "(($ac_try" in
26197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198 *) ac_try_echo=$ac_try;;
26200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26201 (eval "$ac_link") 2>conftest.er1
26203 grep -v '^
*+' conftest.er1 >conftest.err
26205 cat conftest.err >&5
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); } && {
26208 test -z "$ac_c_werror_flag" ||
26209 test ! -s conftest.err
26210 } && test -s conftest$ac_exeext &&
26211 $as_test_x conftest$ac_exeext; then
26212 eval "$as_ac_var=yes"
26214 echo "$as_me: failed program was:" >&5
26215 sed 's
/^
/|
/' conftest.$ac_ext >&5
26217 eval "$as_ac_var=no"
26220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26221 conftest$ac_exeext conftest.$ac_ext
26223 ac_res=`eval echo '${'$as_ac_var'}'`
26224 { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26226 if test `eval echo '${'$as_ac_var'}'` = yes; then
26227 cat >>confdefs.h <<_ACEOF
26228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26230 cat >>confdefs.h <<\_ACEOF
26231 #define BX_HAVE_SNPRINTF 1
26238 for ac_func in vsnprintf
26240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26244 echo $ECHO_N "(cached) $ECHO_C" >&6
26246 cat >conftest.$ac_ext <<_ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h. */
26252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26254 #define $ac_func innocuous_$ac_func
26256 /* System header to define __stub macros and hopefully few prototypes,
26257 which can conflict with char $ac_func (); below.
26258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26259 <limits.h> exists even on freestanding compilers. */
26262 # include <limits.h>
26264 # include <assert.h>
26269 /* Override any GCC internal prototype to avoid an error.
26270 Use char because int might match the return type of a GCC
26271 builtin and then its argument prototype would still apply. */
26276 /* The GNU C library defines this for functions which it implements
26277 to always fail with ENOSYS. Some functions are actually named
26278 something starting with __ and the normal name is an alias. */
26279 #if defined __stub_$ac_func || defined __stub___$ac_func
26286 return $ac_func ();
26291 rm -f conftest.$ac_objext conftest$ac_exeext
26292 if { (ac_try="$ac_link"
26293 case "(($ac_try" in
26294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26295 *) ac_try_echo=$ac_try;;
26297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26298 (eval "$ac_link") 2>conftest.er1
26300 grep -v '^
*+' conftest.er1 >conftest.err
26302 cat conftest.err >&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); } && {
26305 test -z "$ac_c_werror_flag" ||
26306 test ! -s conftest.err
26307 } && test -s conftest$ac_exeext &&
26308 $as_test_x conftest$ac_exeext; then
26309 eval "$as_ac_var=yes"
26311 echo "$as_me: failed program was:" >&5
26312 sed 's
/^
/|
/' conftest.$ac_ext >&5
26314 eval "$as_ac_var=no"
26317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26318 conftest$ac_exeext conftest.$ac_ext
26320 ac_res=`eval echo '${'$as_ac_var'}'`
26321 { echo "$as_me:$LINENO: result: $ac_res" >&5
26322 echo "${ECHO_T}$ac_res" >&6; }
26323 if test `eval echo '${'$as_ac_var'}'` = yes; then
26324 cat >>confdefs.h <<_ACEOF
26325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26327 cat >>confdefs.h <<\_ACEOF
26328 #define BX_HAVE_VSNPRINTF 1
26335 for ac_func in strtoull
26337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26341 echo $ECHO_N "(cached) $ECHO_C" >&6
26343 cat >conftest.$ac_ext <<_ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26351 #define $ac_func innocuous_$ac_func
26353 /* System header to define __stub macros and hopefully few prototypes,
26354 which can conflict with char $ac_func (); below.
26355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26356 <limits.h> exists even on freestanding compilers. */
26359 # include <limits.h>
26361 # include <assert.h>
26366 /* Override any GCC internal prototype to avoid an error.
26367 Use char because int might match the return type of a GCC
26368 builtin and then its argument prototype would still apply. */
26373 /* The GNU C library defines this for functions which it implements
26374 to always fail with ENOSYS. Some functions are actually named
26375 something starting with __ and the normal name is an alias. */
26376 #if defined __stub_$ac_func || defined __stub___$ac_func
26383 return $ac_func ();
26388 rm -f conftest.$ac_objext conftest$ac_exeext
26389 if { (ac_try="$ac_link"
26390 case "(($ac_try" in
26391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392 *) ac_try_echo=$ac_try;;
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395 (eval "$ac_link") 2>conftest.er1
26397 grep -v '^
*+' conftest.er1 >conftest.err
26399 cat conftest.err >&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); } && {
26402 test -z "$ac_c_werror_flag" ||
26403 test ! -s conftest.err
26404 } && test -s conftest$ac_exeext &&
26405 $as_test_x conftest$ac_exeext; then
26406 eval "$as_ac_var=yes"
26408 echo "$as_me: failed program was:" >&5
26409 sed 's
/^
/|
/' conftest.$ac_ext >&5
26411 eval "$as_ac_var=no"
26414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26415 conftest$ac_exeext conftest.$ac_ext
26417 ac_res=`eval echo '${'$as_ac_var'}'`
26418 { echo "$as_me:$LINENO: result: $ac_res" >&5
26419 echo "${ECHO_T}$ac_res" >&6; }
26420 if test `eval echo '${'$as_ac_var'}'` = yes; then
26421 cat >>confdefs.h <<_ACEOF
26422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26424 cat >>confdefs.h <<\_ACEOF
26425 #define BX_HAVE_STRTOULL 1
26432 for ac_func in strtouq
26434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26438 echo $ECHO_N "(cached) $ECHO_C" >&6
26440 cat >conftest.$ac_ext <<_ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26448 #define $ac_func innocuous_$ac_func
26450 /* System header to define __stub macros and hopefully few prototypes,
26451 which can conflict with char $ac_func (); below.
26452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26453 <limits.h> exists even on freestanding compilers. */
26456 # include <limits.h>
26458 # include <assert.h>
26463 /* Override any GCC internal prototype to avoid an error.
26464 Use char because int might match the return type of a GCC
26465 builtin and then its argument prototype would still apply. */
26470 /* The GNU C library defines this for functions which it implements
26471 to always fail with ENOSYS. Some functions are actually named
26472 something starting with __ and the normal name is an alias. */
26473 #if defined __stub_$ac_func || defined __stub___$ac_func
26480 return $ac_func ();
26485 rm -f conftest.$ac_objext conftest$ac_exeext
26486 if { (ac_try="$ac_link"
26487 case "(($ac_try" in
26488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489 *) ac_try_echo=$ac_try;;
26491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26492 (eval "$ac_link") 2>conftest.er1
26494 grep -v '^
*+' conftest.er1 >conftest.err
26496 cat conftest.err >&5
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); } && {
26499 test -z "$ac_c_werror_flag" ||
26500 test ! -s conftest.err
26501 } && test -s conftest$ac_exeext &&
26502 $as_test_x conftest$ac_exeext; then
26503 eval "$as_ac_var=yes"
26505 echo "$as_me: failed program was:" >&5
26506 sed 's
/^
/|
/' conftest.$ac_ext >&5
26508 eval "$as_ac_var=no"
26511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26512 conftest$ac_exeext conftest.$ac_ext
26514 ac_res=`eval echo '${'$as_ac_var'}'`
26515 { echo "$as_me:$LINENO: result: $ac_res" >&5
26516 echo "${ECHO_T}$ac_res" >&6; }
26517 if test `eval echo '${'$as_ac_var'}'` = yes; then
26518 cat >>confdefs.h <<_ACEOF
26519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26521 cat >>confdefs.h <<\_ACEOF
26522 #define BX_HAVE_STRTOUQ 1
26529 for ac_func in strdup
26531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26545 #define $ac_func innocuous_$ac_func
26547 /* System header to define __stub macros and hopefully few prototypes,
26548 which can conflict with char $ac_func (); below.
26549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26550 <limits.h> exists even on freestanding compilers. */
26553 # include <limits.h>
26555 # include <assert.h>
26560 /* Override any GCC internal prototype to avoid an error.
26561 Use char because int might match the return type of a GCC
26562 builtin and then its argument prototype would still apply. */
26567 /* The GNU C library defines this for functions which it implements
26568 to always fail with ENOSYS. Some functions are actually named
26569 something starting with __ and the normal name is an alias. */
26570 #if defined __stub_$ac_func || defined __stub___$ac_func
26577 return $ac_func ();
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (ac_try="$ac_link"
26584 case "(($ac_try" in
26585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586 *) ac_try_echo=$ac_try;;
26588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26589 (eval "$ac_link") 2>conftest.er1
26591 grep -v '^
*+' conftest.er1 >conftest.err
26593 cat conftest.err >&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } && {
26596 test -z "$ac_c_werror_flag" ||
26597 test ! -s conftest.err
26598 } && test -s conftest$ac_exeext &&
26599 $as_test_x conftest$ac_exeext; then
26600 eval "$as_ac_var=yes"
26602 echo "$as_me: failed program was:" >&5
26603 sed 's
/^
/|
/' conftest.$ac_ext >&5
26605 eval "$as_ac_var=no"
26608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26609 conftest$ac_exeext conftest.$ac_ext
26611 ac_res=`eval echo '${'$as_ac_var'}'`
26612 { echo "$as_me:$LINENO: result: $ac_res" >&5
26613 echo "${ECHO_T}$ac_res" >&6; }
26614 if test `eval echo '${'$as_ac_var'}'` = yes; then
26615 cat >>confdefs.h <<_ACEOF
26616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26618 cat >>confdefs.h <<\_ACEOF
26619 #define BX_HAVE_STRDUP 1
26626 for ac_func in strrev
26628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26642 #define $ac_func innocuous_$ac_func
26644 /* System header to define __stub macros and hopefully few prototypes,
26645 which can conflict with char $ac_func (); below.
26646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26647 <limits.h> exists even on freestanding compilers. */
26650 # include <limits.h>
26652 # include <assert.h>
26657 /* Override any GCC internal prototype to avoid an error.
26658 Use char because int might match the return type of a GCC
26659 builtin and then its argument prototype would still apply. */
26664 /* The GNU C library defines this for functions which it implements
26665 to always fail with ENOSYS. Some functions are actually named
26666 something starting with __ and the normal name is an alias. */
26667 #if defined __stub_$ac_func || defined __stub___$ac_func
26674 return $ac_func ();
26679 rm -f conftest.$ac_objext conftest$ac_exeext
26680 if { (ac_try="$ac_link"
26681 case "(($ac_try" in
26682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686 (eval "$ac_link") 2>conftest.er1
26688 grep -v '^
*+' conftest.er1 >conftest.err
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } && {
26693 test -z "$ac_c_werror_flag" ||
26694 test ! -s conftest.err
26695 } && test -s conftest$ac_exeext &&
26696 $as_test_x conftest$ac_exeext; then
26697 eval "$as_ac_var=yes"
26699 echo "$as_me: failed program was:" >&5
26700 sed 's
/^
/|
/' conftest.$ac_ext >&5
26702 eval "$as_ac_var=no"
26705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26706 conftest$ac_exeext conftest.$ac_ext
26708 ac_res=`eval echo '${'$as_ac_var'}'`
26709 { echo "$as_me:$LINENO: result: $ac_res" >&5
26710 echo "${ECHO_T}$ac_res" >&6; }
26711 if test `eval echo '${'$as_ac_var'}'` = yes; then
26712 cat >>confdefs.h <<_ACEOF
26713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26715 cat >>confdefs.h <<\_ACEOF
26716 #define BX_HAVE_STRREV 1
26723 for ac_func in sleep
26725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26729 echo $ECHO_N "(cached) $ECHO_C" >&6
26731 cat >conftest.$ac_ext <<_ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26739 #define $ac_func innocuous_$ac_func
26741 /* System header to define __stub macros and hopefully few prototypes,
26742 which can conflict with char $ac_func (); below.
26743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26744 <limits.h> exists even on freestanding compilers. */
26747 # include <limits.h>
26749 # include <assert.h>
26754 /* Override any GCC internal prototype to avoid an error.
26755 Use char because int might match the return type of a GCC
26756 builtin and then its argument prototype would still apply. */
26761 /* The GNU C library defines this for functions which it implements
26762 to always fail with ENOSYS. Some functions are actually named
26763 something starting with __ and the normal name is an alias. */
26764 #if defined __stub_$ac_func || defined __stub___$ac_func
26771 return $ac_func ();
26776 rm -f conftest.$ac_objext conftest$ac_exeext
26777 if { (ac_try="$ac_link"
26778 case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_link") 2>conftest.er1
26785 grep -v '^
*+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest$ac_exeext &&
26793 $as_test_x conftest$ac_exeext; then
26794 eval "$as_ac_var=yes"
26796 echo "$as_me: failed program was:" >&5
26797 sed 's
/^
/|
/' conftest.$ac_ext >&5
26799 eval "$as_ac_var=no"
26802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26803 conftest$ac_exeext conftest.$ac_ext
26805 ac_res=`eval echo '${'$as_ac_var'}'`
26806 { echo "$as_me:$LINENO: result: $ac_res" >&5
26807 echo "${ECHO_T}$ac_res" >&6; }
26808 if test `eval echo '${'$as_ac_var'}'` = yes; then
26809 cat >>confdefs.h <<_ACEOF
26810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26812 cat >>confdefs.h <<\_ACEOF
26813 #define BX_HAVE_SLEEP 1
26820 for ac_func in usleep
26822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26828 cat >conftest.$ac_ext <<_ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26836 #define $ac_func innocuous_$ac_func
26838 /* System header to define __stub macros and hopefully few prototypes,
26839 which can conflict with char $ac_func (); below.
26840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26841 <limits.h> exists even on freestanding compilers. */
26844 # include <limits.h>
26846 # include <assert.h>
26851 /* Override any GCC internal prototype to avoid an error.
26852 Use char because int might match the return type of a GCC
26853 builtin and then its argument prototype would still apply. */
26858 /* The GNU C library defines this for functions which it implements
26859 to always fail with ENOSYS. Some functions are actually named
26860 something starting with __ and the normal name is an alias. */
26861 #if defined __stub_$ac_func || defined __stub___$ac_func
26868 return $ac_func ();
26873 rm -f conftest.$ac_objext conftest$ac_exeext
26874 if { (ac_try="$ac_link"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880 (eval "$ac_link") 2>conftest.er1
26882 grep -v '^
*+' conftest.er1 >conftest.err
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } && {
26887 test -z "$ac_c_werror_flag" ||
26888 test ! -s conftest.err
26889 } && test -s conftest$ac_exeext &&
26890 $as_test_x conftest$ac_exeext; then
26891 eval "$as_ac_var=yes"
26893 echo "$as_me: failed program was:" >&5
26894 sed 's
/^
/|
/' conftest.$ac_ext >&5
26896 eval "$as_ac_var=no"
26899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26900 conftest$ac_exeext conftest.$ac_ext
26902 ac_res=`eval echo '${'$as_ac_var'}'`
26903 { echo "$as_me:$LINENO: result: $ac_res" >&5
26904 echo "${ECHO_T}$ac_res" >&6; }
26905 if test `eval echo '${'$as_ac_var'}'` = yes; then
26906 cat >>confdefs.h <<_ACEOF
26907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26909 cat >>confdefs.h <<\_ACEOF
26910 #define BX_HAVE_USLEEP 1
26917 for ac_func in nanosleep
26919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26923 echo $ECHO_N "(cached) $ECHO_C" >&6
26925 cat >conftest.$ac_ext <<_ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h. */
26931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26933 #define $ac_func innocuous_$ac_func
26935 /* System header to define __stub macros and hopefully few prototypes,
26936 which can conflict with char $ac_func (); below.
26937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26938 <limits.h> exists even on freestanding compilers. */
26941 # include <limits.h>
26943 # include <assert.h>
26948 /* Override any GCC internal prototype to avoid an error.
26949 Use char because int might match the return type of a GCC
26950 builtin and then its argument prototype would still apply. */
26955 /* The GNU C library defines this for functions which it implements
26956 to always fail with ENOSYS. Some functions are actually named
26957 something starting with __ and the normal name is an alias. */
26958 #if defined __stub_$ac_func || defined __stub___$ac_func
26965 return $ac_func ();
26970 rm -f conftest.$ac_objext conftest$ac_exeext
26971 if { (ac_try="$ac_link"
26972 case "(($ac_try" in
26973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26974 *) ac_try_echo=$ac_try;;
26976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26977 (eval "$ac_link") 2>conftest.er1
26979 grep -v '^
*+' conftest.er1 >conftest.err
26981 cat conftest.err >&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); } && {
26984 test -z "$ac_c_werror_flag" ||
26985 test ! -s conftest.err
26986 } && test -s conftest$ac_exeext &&
26987 $as_test_x conftest$ac_exeext; then
26988 eval "$as_ac_var=yes"
26990 echo "$as_me: failed program was:" >&5
26991 sed 's
/^
/|
/' conftest.$ac_ext >&5
26993 eval "$as_ac_var=no"
26996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26997 conftest$ac_exeext conftest.$ac_ext
26999 ac_res=`eval echo '${'$as_ac_var'}'`
27000 { echo "$as_me:$LINENO: result: $ac_res" >&5
27001 echo "${ECHO_T}$ac_res" >&6; }
27002 if test `eval echo '${'$as_ac_var'}'` = yes; then
27003 cat >>confdefs.h <<_ACEOF
27004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27006 cat >>confdefs.h <<\_ACEOF
27007 #define BX_HAVE_NANOSLEEP 1
27014 for ac_func in abort
27016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27020 echo $ECHO_N "(cached) $ECHO_C" >&6
27022 cat >conftest.$ac_ext <<_ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h. */
27028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27030 #define $ac_func innocuous_$ac_func
27032 /* System header to define __stub macros and hopefully few prototypes,
27033 which can conflict with char $ac_func (); below.
27034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27035 <limits.h> exists even on freestanding compilers. */
27038 # include <limits.h>
27040 # include <assert.h>
27045 /* Override any GCC internal prototype to avoid an error.
27046 Use char because int might match the return type of a GCC
27047 builtin and then its argument prototype would still apply. */
27052 /* The GNU C library defines this for functions which it implements
27053 to always fail with ENOSYS. Some functions are actually named
27054 something starting with __ and the normal name is an alias. */
27055 #if defined __stub_$ac_func || defined __stub___$ac_func
27062 return $ac_func ();
27067 rm -f conftest.$ac_objext conftest$ac_exeext
27068 if { (ac_try="$ac_link"
27069 case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_link") 2>conftest.er1
27076 grep -v '^
*+' conftest.er1 >conftest.err
27078 cat conftest.err >&5
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); } && {
27081 test -z "$ac_c_werror_flag" ||
27082 test ! -s conftest.err
27083 } && test -s conftest$ac_exeext &&
27084 $as_test_x conftest$ac_exeext; then
27085 eval "$as_ac_var=yes"
27087 echo "$as_me: failed program was:" >&5
27088 sed 's
/^
/|
/' conftest.$ac_ext >&5
27090 eval "$as_ac_var=no"
27093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27094 conftest$ac_exeext conftest.$ac_ext
27096 ac_res=`eval echo '${'$as_ac_var'}'`
27097 { echo "$as_me:$LINENO: result: $ac_res" >&5
27098 echo "${ECHO_T}$ac_res" >&6; }
27099 if test `eval echo '${'$as_ac_var'}'` = yes; then
27100 cat >>confdefs.h <<_ACEOF
27101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27103 cat >>confdefs.h <<\_ACEOF
27104 #define BX_HAVE_ABORT 1
27111 for ac_func in gettimeofday
27113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27119 cat >conftest.$ac_ext <<_ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h. */
27125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27127 #define $ac_func innocuous_$ac_func
27129 /* System header to define __stub macros and hopefully few prototypes,
27130 which can conflict with char $ac_func (); below.
27131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27132 <limits.h> exists even on freestanding compilers. */
27135 # include <limits.h>
27137 # include <assert.h>
27142 /* Override any GCC internal prototype to avoid an error.
27143 Use char because int might match the return type of a GCC
27144 builtin and then its argument prototype would still apply. */
27149 /* The GNU C library defines this for functions which it implements
27150 to always fail with ENOSYS. Some functions are actually named
27151 something starting with __ and the normal name is an alias. */
27152 #if defined __stub_$ac_func || defined __stub___$ac_func
27159 return $ac_func ();
27164 rm -f conftest.$ac_objext conftest$ac_exeext
27165 if { (ac_try="$ac_link"
27166 case "(($ac_try" in
27167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168 *) ac_try_echo=$ac_try;;
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171 (eval "$ac_link") 2>conftest.er1
27173 grep -v '^
*+' conftest.er1 >conftest.err
27175 cat conftest.err >&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } && {
27178 test -z "$ac_c_werror_flag" ||
27179 test ! -s conftest.err
27180 } && test -s conftest$ac_exeext &&
27181 $as_test_x conftest$ac_exeext; then
27182 eval "$as_ac_var=yes"
27184 echo "$as_me: failed program was:" >&5
27185 sed 's
/^
/|
/' conftest.$ac_ext >&5
27187 eval "$as_ac_var=no"
27190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27191 conftest$ac_exeext conftest.$ac_ext
27193 ac_res=`eval echo '${'$as_ac_var'}'`
27194 { echo "$as_me:$LINENO: result: $ac_res" >&5
27195 echo "${ECHO_T}$ac_res" >&6; }
27196 if test `eval echo '${'$as_ac_var'}'` = yes; then
27197 cat >>confdefs.h <<_ACEOF
27198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27200 cat >>confdefs.h <<\_ACEOF
27201 #define BX_HAVE_GETTIMEOFDAY 1
27207 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27208 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27209 if test "${ac_cv_type_socklen_t+set}" = set; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27212 cat >conftest.$ac_ext <<_ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 #include <sys/types.h>
27219 #include <sys/socket.h>
27221 typedef socklen_t ac__type_new_;
27225 if ((ac__type_new_ *) 0)
27227 if (sizeof (ac__type_new_))
27233 rm -f conftest.$ac_objext
27234 if { (ac_try="$ac_compile"
27235 case "(($ac_try" in
27236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237 *) ac_try_echo=$ac_try;;
27239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240 (eval "$ac_compile") 2>conftest.er1
27242 grep -v '^
*+' conftest.er1 >conftest.err
27244 cat conftest.err >&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } && {
27247 test -z "$ac_c_werror_flag" ||
27248 test ! -s conftest.err
27249 } && test -s conftest.$ac_objext; then
27250 ac_cv_type_socklen_t=yes
27252 echo "$as_me: failed program was:" >&5
27253 sed 's
/^
/|
/' conftest.$ac_ext >&5
27255 ac_cv_type_socklen_t=no
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27261 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27262 if test $ac_cv_type_socklen_t = yes; then
27263 cat >>confdefs.h <<\_ACEOF
27264 #define BX_HAVE_SOCKLEN_T 1
27269 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
27270 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
27271 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27274 cat >conftest.$ac_ext <<_ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h. */
27280 #include <sys/socket.h>
27281 #include <netinet/in.h>
27286 static struct sockaddr_in ac_aggr;
27287 if (ac_aggr.sin_len)
27293 rm -f conftest.$ac_objext
27294 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27302 grep -v '^
*+' conftest.er1 >conftest.err
27304 cat conftest.err >&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } && {
27307 test -z "$ac_c_werror_flag" ||
27308 test ! -s conftest.err
27309 } && test -s conftest.$ac_objext; then
27310 ac_cv_member_struct_sockaddr_in_sin_len=yes
27312 echo "$as_me: failed program was:" >&5
27313 sed 's
/^
/|
/' conftest.$ac_ext >&5
27315 cat >conftest.$ac_ext <<_ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h. */
27321 #include <sys/socket.h>
27322 #include <netinet/in.h>
27327 static struct sockaddr_in ac_aggr;
27328 if (sizeof ac_aggr.sin_len)
27334 rm -f conftest.$ac_objext
27335 if { (ac_try="$ac_compile"
27336 case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_compile") 2>conftest.er1
27343 grep -v '^
*+' conftest.er1 >conftest.err
27345 cat conftest.err >&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } && {
27348 test -z "$ac_c_werror_flag" ||
27349 test ! -s conftest.err
27350 } && test -s conftest.$ac_objext; then
27351 ac_cv_member_struct_sockaddr_in_sin_len=yes
27353 echo "$as_me: failed program was:" >&5
27354 sed 's
/^
/|
/' conftest.$ac_ext >&5
27356 ac_cv_member_struct_sockaddr_in_sin_len=no
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27364 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
27365 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
27366 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
27367 cat >>confdefs.h <<\_ACEOF
27368 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
27374 for ac_func in mkstemp
27376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27382 cat >conftest.$ac_ext <<_ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27390 #define $ac_func innocuous_$ac_func
27392 /* System header to define __stub macros and hopefully few prototypes,
27393 which can conflict with char $ac_func (); below.
27394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27395 <limits.h> exists even on freestanding compilers. */
27398 # include <limits.h>
27400 # include <assert.h>
27405 /* Override any GCC internal prototype to avoid an error.
27406 Use char because int might match the return type of a GCC
27407 builtin and then its argument prototype would still apply. */
27412 /* The GNU C library defines this for functions which it implements
27413 to always fail with ENOSYS. Some functions are actually named
27414 something starting with __ and the normal name is an alias. */
27415 #if defined __stub_$ac_func || defined __stub___$ac_func
27422 return $ac_func ();
27427 rm -f conftest.$ac_objext conftest$ac_exeext
27428 if { (ac_try="$ac_link"
27429 case "(($ac_try" in
27430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27431 *) ac_try_echo=$ac_try;;
27433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27434 (eval "$ac_link") 2>conftest.er1
27436 grep -v '^
*+' conftest.er1 >conftest.err
27438 cat conftest.err >&5
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); } && {
27441 test -z "$ac_c_werror_flag" ||
27442 test ! -s conftest.err
27443 } && test -s conftest$ac_exeext &&
27444 $as_test_x conftest$ac_exeext; then
27445 eval "$as_ac_var=yes"
27447 echo "$as_me: failed program was:" >&5
27448 sed 's
/^
/|
/' conftest.$ac_ext >&5
27450 eval "$as_ac_var=no"
27453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27454 conftest$ac_exeext conftest.$ac_ext
27456 ac_res=`eval echo '${'$as_ac_var'}'`
27457 { echo "$as_me:$LINENO: result: $ac_res" >&5
27458 echo "${ECHO_T}$ac_res" >&6; }
27459 if test `eval echo '${'$as_ac_var'}'` = yes; then
27460 cat >>confdefs.h <<_ACEOF
27461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27463 cat >>confdefs.h <<\_ACEOF
27464 #define BX_HAVE_MKSTEMP 1
27470 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27471 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27472 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27473 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27477 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27479 # Is the header compilable?
27480 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
27481 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
27482 cat >conftest.$ac_ext <<_ACEOF
27485 cat confdefs.h >>conftest.$ac_ext
27486 cat >>conftest.$ac_ext <<_ACEOF
27487 /* end confdefs.h. */
27488 $ac_includes_default
27489 #include <sys/mman.h>
27491 rm -f conftest.$ac_objext
27492 if { (ac_try="$ac_compile"
27493 case "(($ac_try" in
27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495 *) ac_try_echo=$ac_try;;
27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498 (eval "$ac_compile") 2>conftest.er1
27500 grep -v '^
*+' conftest.er1 >conftest.err
27502 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } && {
27505 test -z "$ac_c_werror_flag" ||
27506 test ! -s conftest.err
27507 } && test -s conftest.$ac_objext; then
27508 ac_header_compiler=yes
27510 echo "$as_me: failed program was:" >&5
27511 sed 's
/^
/|
/' conftest.$ac_ext >&5
27513 ac_header_compiler=no
27516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27518 echo "${ECHO_T}$ac_header_compiler" >&6; }
27520 # Is the header present?
27521 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
27522 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
27523 cat >conftest.$ac_ext <<_ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27529 #include <sys/mman.h>
27531 if { (ac_try="$ac_cpp conftest.$ac_ext"
27532 case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27539 grep -v '^
*+' conftest.er1 >conftest.err
27541 cat conftest.err >&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } >/dev/null && {
27544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27547 ac_header_preproc=yes
27549 echo "$as_me: failed program was:" >&5
27550 sed 's
/^
/|
/' conftest.$ac_ext >&5
27552 ac_header_preproc=no
27555 rm -f conftest.err conftest.$ac_ext
27556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27557 echo "${ECHO_T}$ac_header_preproc" >&6; }
27559 # So? What about this header?
27560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27562 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
27563 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27564 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result
" >&5
27565 echo "$as_me: WARNING
: sys
/mman.h
: proceeding with the compiler
's result" >&2;}
27566 ac_header_preproc=yes
27569 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
27570 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
27572 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
27574 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
27576 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
27577 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result
" >&5
27578 echo "$as_me: WARNING
: sys
/mman.h
: proceeding with the preprocessor
's result" >&2;}
27579 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
27580 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
27584 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27585 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27586 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27589 ac_cv_header_sys_mman_h=$ac_header_preproc
27591 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27592 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27595 if test $ac_cv_header_sys_mman_h = yes; then
27596 cat >>confdefs.h <<\_ACEOF
27597 #define BX_HAVE_SYS_MMAN_H 1
27604 for ac_func in timelocal
27606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27610 echo $ECHO_N "(cached) $ECHO_C" >&6
27612 cat >conftest.$ac_ext <<_ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h. */
27618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27620 #define $ac_func innocuous_$ac_func
27622 /* System header to define __stub macros and hopefully few prototypes,
27623 which can conflict with char $ac_func (); below.
27624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27625 <limits.h> exists even on freestanding compilers. */
27628 # include <limits.h>
27630 # include <assert.h>
27635 /* Override any GCC internal prototype to avoid an error.
27636 Use char because int might match the return type of a GCC
27637 builtin and then its argument prototype would still apply. */
27642 /* The GNU C library defines this for functions which it implements
27643 to always fail with ENOSYS. Some functions are actually named
27644 something starting with __ and the normal name is an alias. */
27645 #if defined __stub_$ac_func || defined __stub___$ac_func
27652 return $ac_func ();
27657 rm -f conftest.$ac_objext conftest$ac_exeext
27658 if { (ac_try="$ac_link"
27659 case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_link") 2>conftest.er1
27666 grep -v '^
*+' conftest.er1 >conftest.err
27668 cat conftest.err >&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); } && {
27671 test -z "$ac_c_werror_flag" ||
27672 test ! -s conftest.err
27673 } && test -s conftest$ac_exeext &&
27674 $as_test_x conftest$ac_exeext; then
27675 eval "$as_ac_var=yes"
27677 echo "$as_me: failed program was:" >&5
27678 sed 's
/^
/|
/' conftest.$ac_ext >&5
27680 eval "$as_ac_var=no"
27683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27684 conftest$ac_exeext conftest.$ac_ext
27686 ac_res=`eval echo '${'$as_ac_var'}'`
27687 { echo "$as_me:$LINENO: result: $ac_res" >&5
27688 echo "${ECHO_T}$ac_res" >&6; }
27689 if test `eval echo '${'$as_ac_var'}'` = yes; then
27690 cat >>confdefs.h <<_ACEOF
27691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27693 cat >>confdefs.h <<\_ACEOF
27694 #define BX_HAVE_TIMELOCAL 1
27701 for ac_func in gmtime
27703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27707 echo $ECHO_N "(cached) $ECHO_C" >&6
27709 cat >conftest.$ac_ext <<_ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27717 #define $ac_func innocuous_$ac_func
27719 /* System header to define __stub macros and hopefully few prototypes,
27720 which can conflict with char $ac_func (); below.
27721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27722 <limits.h> exists even on freestanding compilers. */
27725 # include <limits.h>
27727 # include <assert.h>
27732 /* Override any GCC internal prototype to avoid an error.
27733 Use char because int might match the return type of a GCC
27734 builtin and then its argument prototype would still apply. */
27739 /* The GNU C library defines this for functions which it implements
27740 to always fail with ENOSYS. Some functions are actually named
27741 something starting with __ and the normal name is an alias. */
27742 #if defined __stub_$ac_func || defined __stub___$ac_func
27749 return $ac_func ();
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (ac_try="$ac_link"
27756 case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_link") 2>conftest.er1
27763 grep -v '^
*+' conftest.er1 >conftest.err
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } && {
27768 test -z "$ac_c_werror_flag" ||
27769 test ! -s conftest.err
27770 } && test -s conftest$ac_exeext &&
27771 $as_test_x conftest$ac_exeext; then
27772 eval "$as_ac_var=yes"
27774 echo "$as_me: failed program was:" >&5
27775 sed 's
/^
/|
/' conftest.$ac_ext >&5
27777 eval "$as_ac_var=no"
27780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27781 conftest$ac_exeext conftest.$ac_ext
27783 ac_res=`eval echo '${'$as_ac_var'}'`
27784 { echo "$as_me:$LINENO: result: $ac_res" >&5
27785 echo "${ECHO_T}$ac_res" >&6; }
27786 if test `eval echo '${'$as_ac_var'}'` = yes; then
27787 cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27790 cat >>confdefs.h <<\_ACEOF
27791 #define BX_HAVE_GMTIME 1
27798 for ac_func in mktime
27800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27804 echo $ECHO_N "(cached) $ECHO_C" >&6
27806 cat >conftest.$ac_ext <<_ACEOF
27809 cat confdefs.h >>conftest.$ac_ext
27810 cat >>conftest.$ac_ext <<_ACEOF
27811 /* end confdefs.h. */
27812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27814 #define $ac_func innocuous_$ac_func
27816 /* System header to define __stub macros and hopefully few prototypes,
27817 which can conflict with char $ac_func (); below.
27818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27819 <limits.h> exists even on freestanding compilers. */
27822 # include <limits.h>
27824 # include <assert.h>
27829 /* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27836 /* The GNU C library defines this for functions which it implements
27837 to always fail with ENOSYS. Some functions are actually named
27838 something starting with __ and the normal name is an alias. */
27839 #if defined __stub_$ac_func || defined __stub___$ac_func
27846 return $ac_func ();
27851 rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_link") 2>conftest.er1
27860 grep -v '^
*+' conftest.er1 >conftest.err
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } && {
27865 test -z "$ac_c_werror_flag" ||
27866 test ! -s conftest.err
27867 } && test -s conftest$ac_exeext &&
27868 $as_test_x conftest$ac_exeext; then
27869 eval "$as_ac_var=yes"
27871 echo "$as_me: failed program was:" >&5
27872 sed 's
/^
/|
/' conftest.$ac_ext >&5
27874 eval "$as_ac_var=no"
27877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27878 conftest$ac_exeext conftest.$ac_ext
27880 ac_res=`eval echo '${'$as_ac_var'}'`
27881 { echo "$as_me:$LINENO: result: $ac_res" >&5
27882 echo "${ECHO_T}$ac_res" >&6; }
27883 if test `eval echo '${'$as_ac_var'}'` = yes; then
27884 cat >>confdefs.h <<_ACEOF
27885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27887 cat >>confdefs.h <<\_ACEOF
27888 #define BX_HAVE_MKTIME 1
27895 # Check whether --enable-largefile was given.
27896 if test "${enable_largefile+set}" = set; then
27897 enableval=$enable_largefile;
27900 if test "$enable_largefile" != no; then
27903 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27904 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
27905 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
27906 echo $ECHO_N "(cached) $ECHO_C" >&6
27909 cat >conftest.$ac_ext <<_ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h. */
27915 #define _FILE_OFFSET_BITS 64
27916 #include <sys/types.h>
27921 unsigned int field: sizeof(off_t) == 8;
27928 rm -f conftest.$ac_objext
27929 if { (ac_try="$ac_compile"
27930 case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_compile") 2>conftest.er1
27937 grep -v '^
*+' conftest.er1 >conftest.err
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } && {
27942 test -z "$ac_c_werror_flag" ||
27943 test ! -s conftest.err
27944 } && test -s conftest.$ac_objext; then
27945 ac_cv_sys_file_offset_bits=64
27947 echo "$as_me: failed program was:" >&5
27948 sed 's
/^
/|
/' conftest.$ac_ext >&5
27950 ac_cv_sys_file_offset_bits=no
27953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
27958 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
27960 if test "$ac_cv_sys_file_offset_bits" != no; then
27962 cat >>confdefs.h <<_ACEOF
27963 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27968 if test "x$wx_largefile" != "xyes"; then
27970 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
27971 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
27972 if test "${ac_cv_sys_large_files+set}" = set; then
27973 echo $ECHO_N "(cached) $ECHO_C" >&6
27976 cat >conftest.$ac_ext <<_ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h. */
27982 #define _LARGE_FILES 1
27983 #include <sys/types.h>
27988 unsigned int field: sizeof(off_t) == 8;
27995 rm -f conftest.$ac_objext
27996 if { (ac_try="$ac_compile"
27997 case "(($ac_try" in
27998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999 *) ac_try_echo=$ac_try;;
28001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002 (eval "$ac_compile") 2>conftest.er1
28004 grep -v '^
*+' conftest.er1 >conftest.err
28006 cat conftest.err >&5
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); } && {
28009 test -z "$ac_c_werror_flag" ||
28010 test ! -s conftest.err
28011 } && test -s conftest.$ac_objext; then
28012 ac_cv_sys_large_files=1
28014 echo "$as_me: failed program was:" >&5
28015 sed 's
/^
/|
/' conftest.$ac_ext >&5
28017 ac_cv_sys_large_files=no
28020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
28025 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
28027 if test "$ac_cv_sys_large_files" != no; then
28029 cat >>confdefs.h <<_ACEOF
28030 #define _LARGE_FILES $ac_cv_sys_large_files
28037 { echo "$as_me:$LINENO: checking if large file support is available" >&5
28038 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
28039 if test "x$wx_largefile" = "xyes"; then
28040 cat >>confdefs.h <<\_ACEOF
28041 #define HAVE_LARGEFILE_SUPPORT 1
28045 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
28046 echo "${ECHO_T}$wx_largefile" >&6; }
28050 if test "x$wx_largefile" = "xyes"; then
28051 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
28052 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
28054 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
28056 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
28057 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
28058 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
28066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28070 echo $ECHO_N "(cached) $ECHO_C" >&6
28072 cat >conftest.$ac_ext <<_ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h. */
28078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28080 #define $ac_func innocuous_$ac_func
28082 /* System header to define __stub macros and hopefully few prototypes,
28083 which can conflict with char $ac_func (); below.
28084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28085 <limits.h> exists even on freestanding compilers. */
28088 # include <limits.h>
28090 # include <assert.h>
28095 /* Override any GCC internal prototype to avoid an error.
28096 Use char because int might match the return type of a GCC
28097 builtin and then its argument prototype would still apply. */
28102 /* The GNU C library defines this for functions which it implements
28103 to always fail with ENOSYS. Some functions are actually named
28104 something starting with __ and the normal name is an alias. */
28105 #if defined __stub_$ac_func || defined __stub___$ac_func
28112 return $ac_func ();
28117 rm -f conftest.$ac_objext conftest$ac_exeext
28118 if { (ac_try="$ac_link"
28119 case "(($ac_try" in
28120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121 *) ac_try_echo=$ac_try;;
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124 (eval "$ac_link") 2>conftest.er1
28126 grep -v '^
*+' conftest.er1 >conftest.err
28128 cat conftest.err >&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } && {
28131 test -z "$ac_c_werror_flag" ||
28132 test ! -s conftest.err
28133 } && test -s conftest$ac_exeext &&
28134 $as_test_x conftest$ac_exeext; then
28135 eval "$as_ac_var=yes"
28137 echo "$as_me: failed program was:" >&5
28138 sed 's
/^
/|
/' conftest.$ac_ext >&5
28140 eval "$as_ac_var=no"
28143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28144 conftest$ac_exeext conftest.$ac_ext
28146 ac_res=`eval echo '${'$as_ac_var'}'`
28147 { echo "$as_me:$LINENO: result: $ac_res" >&5
28148 echo "${ECHO_T}$ac_res" >&6; }
28149 if test `eval echo '${'$as_ac_var'}'` = yes; then
28150 cat >>confdefs.h <<_ACEOF
28151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28158 for ac_func in floor
28160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28164 echo $ECHO_N "(cached) $ECHO_C" >&6
28166 cat >conftest.$ac_ext <<_ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28174 #define $ac_func innocuous_$ac_func
28176 /* System header to define __stub macros and hopefully few prototypes,
28177 which can conflict with char $ac_func (); below.
28178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28179 <limits.h> exists even on freestanding compilers. */
28182 # include <limits.h>
28184 # include <assert.h>
28189 /* Override any GCC internal prototype to avoid an error.
28190 Use char because int might match the return type of a GCC
28191 builtin and then its argument prototype would still apply. */
28196 /* The GNU C library defines this for functions which it implements
28197 to always fail with ENOSYS. Some functions are actually named
28198 something starting with __ and the normal name is an alias. */
28199 #if defined __stub_$ac_func || defined __stub___$ac_func
28206 return $ac_func ();
28211 rm -f conftest.$ac_objext conftest$ac_exeext
28212 if { (ac_try="$ac_link"
28213 case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_link") 2>conftest.er1
28220 grep -v '^
*+' conftest.er1 >conftest.err
28222 cat conftest.err >&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } && {
28225 test -z "$ac_c_werror_flag" ||
28226 test ! -s conftest.err
28227 } && test -s conftest$ac_exeext &&
28228 $as_test_x conftest$ac_exeext; then
28229 eval "$as_ac_var=yes"
28231 echo "$as_me: failed program was:" >&5
28232 sed 's
/^
/|
/' conftest.$ac_ext >&5
28234 eval "$as_ac_var=no"
28237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28238 conftest$ac_exeext conftest.$ac_ext
28240 ac_res=`eval echo '${'$as_ac_var'}'`
28241 { echo "$as_me:$LINENO: result: $ac_res" >&5
28242 echo "${ECHO_T}$ac_res" >&6; }
28243 if test `eval echo '${'$as_ac_var'}'` = yes; then
28244 cat >>confdefs.h <<_ACEOF
28245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28251 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
28252 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
28253 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28254 { echo "$as_me:$LINENO: result: yes" >&5
28255 echo "${ECHO_T}yes" >&6; }
28257 { echo "$as_me:$LINENO: result: no" >&5
28258 echo "${ECHO_T}no" >&6; }
28260 # use different functions to bypass configure caching
28266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28272 cat >conftest.$ac_ext <<_ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28280 #define $ac_func innocuous_$ac_func
28282 /* System header to define __stub macros and hopefully few prototypes,
28283 which can conflict with char $ac_func (); below.
28284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28285 <limits.h> exists even on freestanding compilers. */
28288 # include <limits.h>
28290 # include <assert.h>
28295 /* Override any GCC internal prototype to avoid an error.
28296 Use char because int might match the return type of a GCC
28297 builtin and then its argument prototype would still apply. */
28302 /* The GNU C library defines this for functions which it implements
28303 to always fail with ENOSYS. Some functions are actually named
28304 something starting with __ and the normal name is an alias. */
28305 #if defined __stub_$ac_func || defined __stub___$ac_func
28312 return $ac_func ();
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_link") 2>conftest.er1
28326 grep -v '^
*+' conftest.er1 >conftest.err
28328 cat conftest.err >&5
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); } && {
28331 test -z "$ac_c_werror_flag" ||
28332 test ! -s conftest.err
28333 } && test -s conftest$ac_exeext &&
28334 $as_test_x conftest$ac_exeext; then
28335 eval "$as_ac_var=yes"
28337 echo "$as_me: failed program was:" >&5
28338 sed 's
/^
/|
/' conftest.$ac_ext >&5
28340 eval "$as_ac_var=no"
28343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28344 conftest$ac_exeext conftest.$ac_ext
28346 ac_res=`eval echo '${'$as_ac_var'}'`
28347 { echo "$as_me:$LINENO: result: $ac_res" >&5
28348 echo "${ECHO_T}$ac_res" >&6; }
28349 if test `eval echo '${'$as_ac_var'}'` = yes; then
28350 cat >>confdefs.h <<_ACEOF
28351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28358 for ac_func in ceil
28360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28364 echo $ECHO_N "(cached) $ECHO_C" >&6
28366 cat >conftest.$ac_ext <<_ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h. */
28372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28374 #define $ac_func innocuous_$ac_func
28376 /* System header to define __stub macros and hopefully few prototypes,
28377 which can conflict with char $ac_func (); below.
28378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28379 <limits.h> exists even on freestanding compilers. */
28382 # include <limits.h>
28384 # include <assert.h>
28389 /* Override any GCC internal prototype to avoid an error.
28390 Use char because int might match the return type of a GCC
28391 builtin and then its argument prototype would still apply. */
28396 /* The GNU C library defines this for functions which it implements
28397 to always fail with ENOSYS. Some functions are actually named
28398 something starting with __ and the normal name is an alias. */
28399 #if defined __stub_$ac_func || defined __stub___$ac_func
28406 return $ac_func ();
28411 rm -f conftest.$ac_objext conftest$ac_exeext
28412 if { (ac_try="$ac_link"
28413 case "(($ac_try" in
28414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415 *) ac_try_echo=$ac_try;;
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418 (eval "$ac_link") 2>conftest.er1
28420 grep -v '^
*+' conftest.er1 >conftest.err
28422 cat conftest.err >&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); } && {
28425 test -z "$ac_c_werror_flag" ||
28426 test ! -s conftest.err
28427 } && test -s conftest$ac_exeext &&
28428 $as_test_x conftest$ac_exeext; then
28429 eval "$as_ac_var=yes"
28431 echo "$as_me: failed program was:" >&5
28432 sed 's
/^
/|
/' conftest.$ac_ext >&5
28434 eval "$as_ac_var=no"
28437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28438 conftest$ac_exeext conftest.$ac_ext
28440 ac_res=`eval echo '${'$as_ac_var'}'`
28441 { echo "$as_me:$LINENO: result: $ac_res" >&5
28442 echo "${ECHO_T}$ac_res" >&6; }
28443 if test `eval echo '${'$as_ac_var'}'` = yes; then
28444 cat >>confdefs.h <<_ACEOF
28445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28451 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
28452 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
28453 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28454 { echo "$as_me:$LINENO: result: yes" >&5
28455 echo "${ECHO_T}yes" >&6; }
28457 { echo "$as_me:$LINENO: result: no" >&5
28458 echo "${ECHO_T}no" >&6; }
28459 # not sure we should warn the user, crash, etc.
28460 # expect link failure
28464 { echo "$as_me:$LINENO: checking for struct timeval" >&5
28465 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28466 cat >conftest.$ac_ext <<_ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28472 #include <sys/time.h>
28481 rm -f conftest.$ac_objext
28482 if { (ac_try="$ac_compile"
28483 case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488 (eval "$ac_compile") 2>conftest.er1
28490 grep -v '^
*+' conftest.er1 >conftest.err
28492 cat conftest.err >&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); } && {
28495 test -z "$ac_c_werror_flag" ||
28496 test ! -s conftest.err
28497 } && test -s conftest.$ac_objext; then
28499 { echo "$as_me:$LINENO: result: yes" >&5
28500 echo "${ECHO_T}yes" >&6; }
28501 cat >>confdefs.h <<\_ACEOF
28502 #define BX_HAVE_STRUCT_TIMEVAL 1
28507 echo "$as_me: failed program was:" >&5
28508 sed 's
/^
/|
/' conftest.$ac_ext >&5
28510 { echo "$as_me:$LINENO: result: no" >&5
28511 echo "${ECHO_T}no" >&6; }
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
28517 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
28518 cat >conftest.$ac_ext <<_ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28528 typedef struct { } junk;
28533 rm -f conftest.$ac_objext
28534 if { (ac_try="$ac_compile"
28535 case "(($ac_try" in
28536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537 *) ac_try_echo=$ac_try;;
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540 (eval "$ac_compile") 2>conftest.er1
28542 grep -v '^
*+' conftest.er1 >conftest.err
28544 cat conftest.err >&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } && {
28547 test -z "$ac_c_werror_flag" ||
28548 test ! -s conftest.err
28549 } && test -s conftest.$ac_objext; then
28550 { echo "$as_me:$LINENO: result: yes" >&5
28551 echo "${ECHO_T}yes" >&6; }
28553 echo "$as_me: failed program was:" >&5
28554 sed 's
/^
/|
/' conftest.$ac_ext >&5
28557 cat >>confdefs.h <<\_ACEOF
28558 #define BX_NO_EMPTY_STRUCTS 1
28561 { echo "$as_me:$LINENO: result: no" >&5
28562 echo "${ECHO_T}no" >&6; }
28566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
28569 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
28570 cat >conftest.$ac_ext <<_ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28580 typedef struct { } __attribute__ ((packed)) junk;
28585 rm -f conftest.$ac_objext
28586 if { (ac_try="$ac_compile"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
28594 grep -v '^
*+' conftest.er1 >conftest.err
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } && {
28599 test -z "$ac_c_werror_flag" ||
28600 test ! -s conftest.err
28601 } && test -s conftest.$ac_objext; then
28602 { echo "$as_me:$LINENO: result: yes" >&5
28603 echo "${ECHO_T}yes" >&6; }
28605 echo "$as_me: failed program was:" >&5
28606 sed 's
/^
/|
/' conftest.$ac_ext >&5
28609 { echo "$as_me:$LINENO: result: no" >&5
28610 echo "${ECHO_T}no" >&6; }
28611 cat >>confdefs.h <<\_ACEOF
28612 #define BX_NO_ATTRIBUTES 1
28618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28622 ac_cpp='$CXXCPP $CPPFLAGS'
28623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
28624 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
28625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28627 { echo "$as_me:$LINENO: checking for hash_map" >&5
28628 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 #include <hash_map>
28644 rm -f conftest.$ac_objext
28645 if { (ac_try="$ac_compile"
28646 case "(($ac_try" in
28647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648 *) ac_try_echo=$ac_try;;
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651 (eval "$ac_compile") 2>conftest.er1
28653 grep -v '^
*+' conftest.er1 >conftest.err
28655 cat conftest.err >&5
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); } && {
28658 test -z "$ac_cxx_werror_flag" ||
28659 test ! -s conftest.err
28660 } && test -s conftest.$ac_objext; then
28662 { echo "$as_me:$LINENO: result: yes" >&5
28663 echo "${ECHO_T}yes" >&6; }
28664 cat >>confdefs.h <<\_ACEOF
28665 #define BX_HAVE_HASH_MAP 1
28670 echo "$as_me: failed program was:" >&5
28671 sed 's
/^
/|
/' conftest.$ac_ext >&5
28673 { echo "$as_me:$LINENO: result: no" >&5
28674 echo "${ECHO_T}no" >&6; }
28677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28678 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
28679 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
28680 cat >conftest.$ac_ext <<_ACEOF
28683 cat confdefs.h >>conftest.$ac_ext
28684 cat >>conftest.$ac_ext <<_ACEOF
28685 /* end confdefs.h. */
28686 #include <hash_map.h>
28695 rm -f conftest.$ac_objext
28696 if { (ac_try="$ac_compile"
28697 case "(($ac_try" in
28698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28699 *) ac_try_echo=$ac_try;;
28701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28702 (eval "$ac_compile") 2>conftest.er1
28704 grep -v '^
*+' conftest.er1 >conftest.err
28706 cat conftest.err >&5
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); } && {
28709 test -z "$ac_cxx_werror_flag" ||
28710 test ! -s conftest.err
28711 } && test -s conftest.$ac_objext; then
28713 { echo "$as_me:$LINENO: result: yes" >&5
28714 echo "${ECHO_T}yes" >&6; }
28715 cat >>confdefs.h <<\_ACEOF
28716 #define BX_HAVE_HASH_MAP_H 1
28721 echo "$as_me: failed program was:" >&5
28722 sed 's
/^
/|
/' conftest.$ac_ext >&5
28724 { echo "$as_me:$LINENO: result: no" >&5
28725 echo "${ECHO_T}no" >&6; }
28728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28729 { echo "$as_me:$LINENO: checking for set" >&5
28730 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
28731 cat >conftest.$ac_ext <<_ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h. */
28746 rm -f conftest.$ac_objext
28747 if { (ac_try="$ac_compile"
28748 case "(($ac_try" in
28749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750 *) ac_try_echo=$ac_try;;
28752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753 (eval "$ac_compile") 2>conftest.er1
28755 grep -v '^
*+' conftest.er1 >conftest.err
28757 cat conftest.err >&5
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); } && {
28760 test -z "$ac_cxx_werror_flag" ||
28761 test ! -s conftest.err
28762 } && test -s conftest.$ac_objext; then
28764 { echo "$as_me:$LINENO: result: yes" >&5
28765 echo "${ECHO_T}yes" >&6; }
28766 cat >>confdefs.h <<\_ACEOF
28767 #define BX_HAVE_SET 1
28772 echo "$as_me: failed program was:" >&5
28773 sed 's
/^
/|
/' conftest.$ac_ext >&5
28775 { echo "$as_me:$LINENO: result: no" >&5
28776 echo "${ECHO_T}no" >&6; }
28779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780 { echo "$as_me:$LINENO: checking for set.h" >&5
28781 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
28782 cat >conftest.$ac_ext <<_ACEOF
28785 cat confdefs.h >>conftest.$ac_ext
28786 cat >>conftest.$ac_ext <<_ACEOF
28787 /* end confdefs.h. */
28797 rm -f conftest.$ac_objext
28798 if { (ac_try="$ac_compile"
28799 case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_compile") 2>conftest.er1
28806 grep -v '^
*+' conftest.er1 >conftest.err
28808 cat conftest.err >&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } && {
28811 test -z "$ac_cxx_werror_flag" ||
28812 test ! -s conftest.err
28813 } && test -s conftest.$ac_objext; then
28815 { echo "$as_me:$LINENO: result: yes" >&5
28816 echo "${ECHO_T}yes" >&6; }
28817 cat >>confdefs.h <<\_ACEOF
28818 #define BX_HAVE_SET_H 1
28823 echo "$as_me: failed program was:" >&5
28824 sed 's
/^
/|
/' conftest.$ac_ext >&5
28826 { echo "$as_me:$LINENO: result: no" >&5
28827 echo "${ECHO_T}no" >&6; }
28830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28832 ac_cpp='$CPP $CPPFLAGS'
28833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
28834 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
28835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28838 if test "$with_all_libs" = yes; then
28839 if test "$cross_configure" = 1; then
28840 { 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
28841 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;}
28843 if test "$with_beos" != yes; then
28845 if test "${ac_cv_header_app_Application_h+set}" = set; then
28846 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28847 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28848 if test "${ac_cv_header_app_Application_h+set}" = set; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28851 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28852 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28854 # Is the header compilable?
28855 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
28856 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
28857 cat >conftest.$ac_ext <<_ACEOF
28860 cat confdefs.h >>conftest.$ac_ext
28861 cat >>conftest.$ac_ext <<_ACEOF
28862 /* end confdefs.h. */
28863 $ac_includes_default
28864 #include <app/Application.h>
28866 rm -f conftest.$ac_objext
28867 if { (ac_try="$ac_compile"
28868 case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_compile") 2>conftest.er1
28875 grep -v '^
*+' conftest.er1 >conftest.err
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } && {
28880 test -z "$ac_c_werror_flag" ||
28881 test ! -s conftest.err
28882 } && test -s conftest.$ac_objext; then
28883 ac_header_compiler=yes
28885 echo "$as_me: failed program was:" >&5
28886 sed 's
/^
/|
/' conftest.$ac_ext >&5
28888 ac_header_compiler=no
28891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28893 echo "${ECHO_T}$ac_header_compiler" >&6; }
28895 # Is the header present?
28896 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
28897 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
28898 cat >conftest.$ac_ext <<_ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h. */
28904 #include <app/Application.h>
28906 if { (ac_try="$ac_cpp conftest.$ac_ext"
28907 case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28914 grep -v '^
*+' conftest.er1 >conftest.err
28916 cat conftest.err >&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } >/dev/null && {
28919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28920 test ! -s conftest.err
28922 ac_header_preproc=yes
28924 echo "$as_me: failed program was:" >&5
28925 sed 's
/^
/|
/' conftest.$ac_ext >&5
28927 ac_header_preproc=no
28930 rm -f conftest.err conftest.$ac_ext
28931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28932 echo "${ECHO_T}$ac_header_preproc" >&6; }
28934 # So? What about this header?
28935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28937 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
28938 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28939 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result
" >&5
28940 echo "$as_me: WARNING
: app
/Application.h
: proceeding with the compiler
's result" >&2;}
28941 ac_header_preproc=yes
28944 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
28945 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
28947 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
28949 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
28951 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
28952 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result
" >&5
28953 echo "$as_me: WARNING
: app
/Application.h
: proceeding with the preprocessor
's result" >&2;}
28954 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
28955 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
28959 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28960 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28961 if test "${ac_cv_header_app_Application_h+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 ac_cv_header_app_Application_h=$ac_header_preproc
28966 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28967 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28970 if test $ac_cv_header_app_Application_h = yes; then
28977 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28978 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
28979 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
28980 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28983 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
28984 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
28986 # Is the header compilable?
28987 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
28988 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 $ac_includes_default
28996 #include <interface/Window.h>
28998 rm -f conftest.$ac_objext
28999 if { (ac_try="$ac_compile"
29000 case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_compile") 2>conftest.er1
29007 grep -v '^
*+' conftest.er1 >conftest.err
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } && {
29012 test -z "$ac_c_werror_flag" ||
29013 test ! -s conftest.err
29014 } && test -s conftest.$ac_objext; then
29015 ac_header_compiler=yes
29017 echo "$as_me: failed program was:" >&5
29018 sed 's
/^
/|
/' conftest.$ac_ext >&5
29020 ac_header_compiler=no
29023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29025 echo "${ECHO_T}$ac_header_compiler" >&6; }
29027 # Is the header present?
29028 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
29029 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
29030 cat >conftest.$ac_ext <<_ACEOF
29033 cat confdefs.h >>conftest.$ac_ext
29034 cat >>conftest.$ac_ext <<_ACEOF
29035 /* end confdefs.h. */
29036 #include <interface/Window.h>
29038 if { (ac_try="$ac_cpp conftest.$ac_ext"
29039 case "(($ac_try" in
29040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29046 grep -v '^
*+' conftest.er1 >conftest.err
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } >/dev/null && {
29051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29052 test ! -s conftest.err
29054 ac_header_preproc=yes
29056 echo "$as_me: failed program was:" >&5
29057 sed 's
/^
/|
/' conftest.$ac_ext >&5
29059 ac_header_preproc=no
29062 rm -f conftest.err conftest.$ac_ext
29063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29064 echo "${ECHO_T}$ac_header_preproc" >&6; }
29066 # So? What about this header?
29067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29069 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
29070 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29071 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result
" >&5
29072 echo "$as_me: WARNING
: interface
/Window.h
: proceeding with the compiler
's result" >&2;}
29073 ac_header_preproc=yes
29076 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
29077 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
29079 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
29080 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
29081 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
29082 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
29083 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
29084 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result
" >&5
29085 echo "$as_me: WARNING
: interface
/Window.h
: proceeding with the preprocessor
's result" >&2;}
29086 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
29087 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
29091 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
29092 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
29093 if test "${ac_cv_header_interface_Window_h+set}" = set; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29096 ac_cv_header_interface_Window_h=$ac_header_preproc
29098 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
29099 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
29102 if test $ac_cv_header_interface_Window_h = yes; then
29109 if test "${ac_cv_header_interface_View_h+set}" = set; then
29110 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29111 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29112 if test "${ac_cv_header_interface_View_h+set}" = set; then
29113 echo $ECHO_N "(cached) $ECHO_C" >&6
29115 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29116 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29118 # Is the header compilable?
29119 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
29120 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
29121 cat >conftest.$ac_ext <<_ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 $ac_includes_default
29128 #include <interface/View.h>
29130 rm -f conftest.$ac_objext
29131 if { (ac_try="$ac_compile"
29132 case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_compile") 2>conftest.er1
29139 grep -v '^
*+' conftest.er1 >conftest.err
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } && {
29144 test -z "$ac_c_werror_flag" ||
29145 test ! -s conftest.err
29146 } && test -s conftest.$ac_objext; then
29147 ac_header_compiler=yes
29149 echo "$as_me: failed program was:" >&5
29150 sed 's
/^
/|
/' conftest.$ac_ext >&5
29152 ac_header_compiler=no
29155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29157 echo "${ECHO_T}$ac_header_compiler" >&6; }
29159 # Is the header present?
29160 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
29161 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
29162 cat >conftest.$ac_ext <<_ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29168 #include <interface/View.h>
29170 if { (ac_try="$ac_cpp conftest.$ac_ext"
29171 case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29178 grep -v '^
*+' conftest.er1 >conftest.err
29180 cat conftest.err >&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } >/dev/null && {
29183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29184 test ! -s conftest.err
29186 ac_header_preproc=yes
29188 echo "$as_me: failed program was:" >&5
29189 sed 's
/^
/|
/' conftest.$ac_ext >&5
29191 ac_header_preproc=no
29194 rm -f conftest.err conftest.$ac_ext
29195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29196 echo "${ECHO_T}$ac_header_preproc" >&6; }
29198 # So? What about this header?
29199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29201 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
29202 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29203 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result
" >&5
29204 echo "$as_me: WARNING
: interface
/View.h
: proceeding with the compiler
's result" >&2;}
29205 ac_header_preproc=yes
29208 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
29209 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
29211 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
29213 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
29215 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result
" >&5
29217 echo "$as_me: WARNING
: interface
/View.h
: proceeding with the preprocessor
's result" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
29219 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
29223 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29224 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29225 if test "${ac_cv_header_interface_View_h+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29228 ac_cv_header_interface_View_h=$ac_header_preproc
29230 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29231 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29234 if test $ac_cv_header_interface_View_h = yes; then
29241 if test $can_compile_beos = 1; then
29246 if test "$with_amigaos" != yes; then
29247 can_compile_amigaos=1
29248 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29249 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29250 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29251 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29252 echo $ECHO_N "(cached) $ECHO_C" >&6
29254 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29255 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29257 # Is the header compilable?
29258 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
29259 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
29260 cat >conftest.$ac_ext <<_ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266 $ac_includes_default
29267 #include <proto/intuition.h>
29269 rm -f conftest.$ac_objext
29270 if { (ac_try="$ac_compile"
29271 case "(($ac_try" in
29272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273 *) ac_try_echo=$ac_try;;
29275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276 (eval "$ac_compile") 2>conftest.er1
29278 grep -v '^
*+' conftest.er1 >conftest.err
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } && {
29283 test -z "$ac_c_werror_flag" ||
29284 test ! -s conftest.err
29285 } && test -s conftest.$ac_objext; then
29286 ac_header_compiler=yes
29288 echo "$as_me: failed program was:" >&5
29289 sed 's
/^
/|
/' conftest.$ac_ext >&5
29291 ac_header_compiler=no
29294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29296 echo "${ECHO_T}$ac_header_compiler" >&6; }
29298 # Is the header present?
29299 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
29300 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
29301 cat >conftest.$ac_ext <<_ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h. */
29307 #include <proto/intuition.h>
29309 if { (ac_try="$ac_cpp conftest.$ac_ext"
29310 case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29317 grep -v '^
*+' conftest.er1 >conftest.err
29319 cat conftest.err >&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } >/dev/null && {
29322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29323 test ! -s conftest.err
29325 ac_header_preproc=yes
29327 echo "$as_me: failed program was:" >&5
29328 sed 's
/^
/|
/' conftest.$ac_ext >&5
29330 ac_header_preproc=no
29333 rm -f conftest.err conftest.$ac_ext
29334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29335 echo "${ECHO_T}$ac_header_preproc" >&6; }
29337 # So? What about this header?
29338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29340 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
29341 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29342 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result
" >&5
29343 echo "$as_me: WARNING
: proto
/intuition.h
: proceeding with the compiler
's result" >&2;}
29344 ac_header_preproc=yes
29347 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
29348 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
29350 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
29352 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
29354 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
29355 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result
" >&5
29356 echo "$as_me: WARNING
: proto
/intuition.h
: proceeding with the preprocessor
's result" >&2;}
29357 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
29358 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
29362 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29363 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29364 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 ac_cv_header_proto_intuition_h=$ac_header_preproc
29369 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29370 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29373 if test $ac_cv_header_proto_intuition_h = yes; then
29376 can_compile_amigaos=0
29380 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29381 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29382 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29383 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29384 echo $ECHO_N "(cached) $ECHO_C" >&6
29386 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29387 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29389 # Is the header compilable?
29390 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
29391 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
29392 cat >conftest.$ac_ext <<_ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h. */
29398 $ac_includes_default
29399 #include <intuition/intuitionbase.h>
29401 rm -f conftest.$ac_objext
29402 if { (ac_try="$ac_compile"
29403 case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_compile") 2>conftest.er1
29410 grep -v '^
*+' conftest.er1 >conftest.err
29412 cat conftest.err >&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); } && {
29415 test -z "$ac_c_werror_flag" ||
29416 test ! -s conftest.err
29417 } && test -s conftest.$ac_objext; then
29418 ac_header_compiler=yes
29420 echo "$as_me: failed program was:" >&5
29421 sed 's
/^
/|
/' conftest.$ac_ext >&5
29423 ac_header_compiler=no
29426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29428 echo "${ECHO_T}$ac_header_compiler" >&6; }
29430 # Is the header present?
29431 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
29432 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
29433 cat >conftest.$ac_ext <<_ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29439 #include <intuition/intuitionbase.h>
29441 if { (ac_try="$ac_cpp conftest.$ac_ext"
29442 case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29449 grep -v '^
*+' conftest.er1 >conftest.err
29451 cat conftest.err >&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } >/dev/null && {
29454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29455 test ! -s conftest.err
29457 ac_header_preproc=yes
29459 echo "$as_me: failed program was:" >&5
29460 sed 's
/^
/|
/' conftest.$ac_ext >&5
29462 ac_header_preproc=no
29465 rm -f conftest.err conftest.$ac_ext
29466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29467 echo "${ECHO_T}$ac_header_preproc" >&6; }
29469 # So? What about this header?
29470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29472 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
29473 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result
" >&5
29475 echo "$as_me: WARNING
: intuition
/intuitionbase.h
: proceeding with the compiler
's result" >&2;}
29476 ac_header_preproc=yes
29479 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
29480 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
29481 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
29482 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
29483 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
29484 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
29485 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
29486 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
29487 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result
" >&5
29488 echo "$as_me: WARNING
: intuition
/intuitionbase.h
: proceeding with the preprocessor
's result" >&2;}
29489 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
29490 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
29494 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29495 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29496 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29499 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
29501 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29502 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29505 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
29508 can_compile_amigaos=0
29512 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29513 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29514 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29515 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29518 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29519 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29521 # Is the header compilable?
29522 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
29523 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
29524 cat >conftest.$ac_ext <<_ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h. */
29530 $ac_includes_default
29531 #include <cybergraphx/cybergraphics.h>
29533 rm -f conftest.$ac_objext
29534 if { (ac_try="$ac_compile"
29535 case "(($ac_try" in
29536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29537 *) ac_try_echo=$ac_try;;
29539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29540 (eval "$ac_compile") 2>conftest.er1
29542 grep -v '^
*+' conftest.er1 >conftest.err
29544 cat conftest.err >&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); } && {
29547 test -z "$ac_c_werror_flag" ||
29548 test ! -s conftest.err
29549 } && test -s conftest.$ac_objext; then
29550 ac_header_compiler=yes
29552 echo "$as_me: failed program was:" >&5
29553 sed 's
/^
/|
/' conftest.$ac_ext >&5
29555 ac_header_compiler=no
29558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29560 echo "${ECHO_T}$ac_header_compiler" >&6; }
29562 # Is the header present?
29563 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
29564 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
29565 cat >conftest.$ac_ext <<_ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29571 #include <cybergraphx/cybergraphics.h>
29573 if { (ac_try="$ac_cpp conftest.$ac_ext"
29574 case "(($ac_try" in
29575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576 *) ac_try_echo=$ac_try;;
29578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29581 grep -v '^
*+' conftest.er1 >conftest.err
29583 cat conftest.err >&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); } >/dev/null && {
29586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29587 test ! -s conftest.err
29589 ac_header_preproc=yes
29591 echo "$as_me: failed program was:" >&5
29592 sed 's
/^
/|
/' conftest.$ac_ext >&5
29594 ac_header_preproc=no
29597 rm -f conftest.err conftest.$ac_ext
29598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29599 echo "${ECHO_T}$ac_header_preproc" >&6; }
29601 # So? What about this header?
29602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29604 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
29605 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result
" >&5
29607 echo "$as_me: WARNING
: cybergraphx
/cybergraphics.h
: proceeding with the compiler
's result" >&2;}
29608 ac_header_preproc=yes
29611 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
29612 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
29614 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
29616 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
29618 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
29619 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result
" >&5
29620 echo "$as_me: WARNING
: cybergraphx
/cybergraphics.h
: proceeding with the preprocessor
's result" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
29622 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
29626 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29627 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29628 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
29631 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
29633 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29634 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29637 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
29640 can_compile_amigaos=0
29644 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29645 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29646 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29647 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29651 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29653 # Is the header compilable?
29654 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
29655 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
29656 cat >conftest.$ac_ext <<_ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29662 $ac_includes_default
29663 #include <devices/trackdisk.h>
29665 rm -f conftest.$ac_objext
29666 if { (ac_try="$ac_compile"
29667 case "(($ac_try" in
29668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669 *) ac_try_echo=$ac_try;;
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672 (eval "$ac_compile") 2>conftest.er1
29674 grep -v '^
*+' conftest.er1 >conftest.err
29676 cat conftest.err >&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } && {
29679 test -z "$ac_c_werror_flag" ||
29680 test ! -s conftest.err
29681 } && test -s conftest.$ac_objext; then
29682 ac_header_compiler=yes
29684 echo "$as_me: failed program was:" >&5
29685 sed 's
/^
/|
/' conftest.$ac_ext >&5
29687 ac_header_compiler=no
29690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29692 echo "${ECHO_T}$ac_header_compiler" >&6; }
29694 # Is the header present?
29695 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
29696 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
29697 cat >conftest.$ac_ext <<_ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29703 #include <devices/trackdisk.h>
29705 if { (ac_try="$ac_cpp conftest.$ac_ext"
29706 case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29713 grep -v '^
*+' conftest.er1 >conftest.err
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } >/dev/null && {
29718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29719 test ! -s conftest.err
29721 ac_header_preproc=yes
29723 echo "$as_me: failed program was:" >&5
29724 sed 's
/^
/|
/' conftest.$ac_ext >&5
29726 ac_header_preproc=no
29729 rm -f conftest.err conftest.$ac_ext
29730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29731 echo "${ECHO_T}$ac_header_preproc" >&6; }
29733 # So? What about this header?
29734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29736 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
29737 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29738 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result
" >&5
29739 echo "$as_me: WARNING
: devices
/trackdisk.h
: proceeding with the compiler
's result" >&2;}
29740 ac_header_preproc=yes
29743 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
29744 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
29746 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
29748 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
29750 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
29751 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result
" >&5
29752 echo "$as_me: WARNING
: devices
/trackdisk.h
: proceeding with the preprocessor
's result" >&2;}
29753 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
29754 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
29758 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29759 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29760 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29761 echo $ECHO_N "(cached) $ECHO_C" >&6
29763 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
29765 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29766 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29769 if test $ac_cv_header_devices_trackdisk_h = yes; then
29772 can_compile_amigaos=0
29776 if test $can_compile_amigaos = 1; then
29781 if test "$with_macos" != yes; then
29782 can_compile_macos=1
29783 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29784 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29785 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29786 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29789 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29790 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29792 # Is the header compilable?
29793 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
29794 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
29795 cat >conftest.$ac_ext <<_ACEOF
29798 cat confdefs.h >>conftest.$ac_ext
29799 cat >>conftest.$ac_ext <<_ACEOF
29800 /* end confdefs.h. */
29801 $ac_includes_default
29802 #include <Quickdraw.h>
29804 rm -f conftest.$ac_objext
29805 if { (ac_try="$ac_compile"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_compile") 2>conftest.er1
29813 grep -v '^
*+' conftest.er1 >conftest.err
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && {
29818 test -z "$ac_c_werror_flag" ||
29819 test ! -s conftest.err
29820 } && test -s conftest.$ac_objext; then
29821 ac_header_compiler=yes
29823 echo "$as_me: failed program was:" >&5
29824 sed 's
/^
/|
/' conftest.$ac_ext >&5
29826 ac_header_compiler=no
29829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29831 echo "${ECHO_T}$ac_header_compiler" >&6; }
29833 # Is the header present?
29834 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
29835 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
29836 cat >conftest.$ac_ext <<_ACEOF
29839 cat confdefs.h >>conftest.$ac_ext
29840 cat >>conftest.$ac_ext <<_ACEOF
29841 /* end confdefs.h. */
29842 #include <Quickdraw.h>
29844 if { (ac_try="$ac_cpp conftest.$ac_ext"
29845 case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29852 grep -v '^
*+' conftest.er1 >conftest.err
29854 cat conftest.err >&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } >/dev/null && {
29857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29860 ac_header_preproc=yes
29862 echo "$as_me: failed program was:" >&5
29863 sed 's
/^
/|
/' conftest.$ac_ext >&5
29865 ac_header_preproc=no
29868 rm -f conftest.err conftest.$ac_ext
29869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29870 echo "${ECHO_T}$ac_header_preproc" >&6; }
29872 # So? What about this header?
29873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29875 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
29876 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29877 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result
" >&5
29878 echo "$as_me: WARNING
: Quickdraw.h
: proceeding with the compiler
's result" >&2;}
29879 ac_header_preproc=yes
29882 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
29883 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
29885 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
29887 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
29889 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result
" >&5
29891 echo "$as_me: WARNING
: Quickdraw.h
: proceeding with the preprocessor
's result" >&2;}
29892 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
29893 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
29897 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29898 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29899 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29900 echo $ECHO_N "(cached) $ECHO_C" >&6
29902 ac_cv_header_Quickdraw_h=$ac_header_preproc
29904 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29905 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29908 if test $ac_cv_header_Quickdraw_h = yes; then
29911 can_compile_macos=0
29915 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29916 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
29917 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
29918 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
29922 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
29924 # Is the header compilable?
29925 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
29926 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
29927 cat >conftest.$ac_ext <<_ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29933 $ac_includes_default
29934 #include <Dialogs.h>
29936 rm -f conftest.$ac_objext
29937 if { (ac_try="$ac_compile"
29938 case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_compile") 2>conftest.er1
29945 grep -v '^
*+' conftest.er1 >conftest.err
29947 cat conftest.err >&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); } && {
29950 test -z "$ac_c_werror_flag" ||
29951 test ! -s conftest.err
29952 } && test -s conftest.$ac_objext; then
29953 ac_header_compiler=yes
29955 echo "$as_me: failed program was:" >&5
29956 sed 's
/^
/|
/' conftest.$ac_ext >&5
29958 ac_header_compiler=no
29961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29963 echo "${ECHO_T}$ac_header_compiler" >&6; }
29965 # Is the header present?
29966 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
29967 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
29968 cat >conftest.$ac_ext <<_ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h. */
29974 #include <Dialogs.h>
29976 if { (ac_try="$ac_cpp conftest.$ac_ext"
29977 case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29984 grep -v '^
*+' conftest.er1 >conftest.err
29986 cat conftest.err >&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } >/dev/null && {
29989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29990 test ! -s conftest.err
29992 ac_header_preproc=yes
29994 echo "$as_me: failed program was:" >&5
29995 sed 's
/^
/|
/' conftest.$ac_ext >&5
29997 ac_header_preproc=no
30000 rm -f conftest.err conftest.$ac_ext
30001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30002 echo "${ECHO_T}$ac_header_preproc" >&6; }
30004 # So? What about this header?
30005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30007 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
30008 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30009 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result
" >&5
30010 echo "$as_me: WARNING
: Dialogs.h
: proceeding with the compiler
's result" >&2;}
30011 ac_header_preproc=yes
30014 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
30015 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
30016 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
30017 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
30019 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
30021 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result
" >&5
30023 echo "$as_me: WARNING
: Dialogs.h
: proceeding with the preprocessor
's result" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
30025 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
30029 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
30030 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
30031 if test "${ac_cv_header_Dialogs_h+set}" = set; then
30032 echo $ECHO_N "(cached) $ECHO_C" >&6
30034 ac_cv_header_Dialogs_h=$ac_header_preproc
30036 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
30037 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
30040 if test $ac_cv_header_Dialogs_h = yes; then
30043 can_compile_macos=0
30047 if test $can_compile_macos = 1; then
30052 if test "$with_carbon" != yes; then
30053 can_compile_carbon=1
30054 if test "${ac_cv_header_Carbon_h+set}" = set; then
30055 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30056 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30057 if test "${ac_cv_header_Carbon_h+set}" = set; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30060 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30061 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30063 # Is the header compilable?
30064 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
30065 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
30066 cat >conftest.$ac_ext <<_ACEOF
30069 cat confdefs.h >>conftest.$ac_ext
30070 cat >>conftest.$ac_ext <<_ACEOF
30071 /* end confdefs.h. */
30072 $ac_includes_default
30073 #include <Carbon.h>
30075 rm -f conftest.$ac_objext
30076 if { (ac_try="$ac_compile"
30077 case "(($ac_try" in
30078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30079 *) ac_try_echo=$ac_try;;
30081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30082 (eval "$ac_compile") 2>conftest.er1
30084 grep -v '^
*+' conftest.er1 >conftest.err
30086 cat conftest.err >&5
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); } && {
30089 test -z "$ac_c_werror_flag" ||
30090 test ! -s conftest.err
30091 } && test -s conftest.$ac_objext; then
30092 ac_header_compiler=yes
30094 echo "$as_me: failed program was:" >&5
30095 sed 's
/^
/|
/' conftest.$ac_ext >&5
30097 ac_header_compiler=no
30100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30102 echo "${ECHO_T}$ac_header_compiler" >&6; }
30104 # Is the header present?
30105 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
30106 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
30107 cat >conftest.$ac_ext <<_ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h. */
30113 #include <Carbon.h>
30115 if { (ac_try="$ac_cpp conftest.$ac_ext"
30116 case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30123 grep -v '^
*+' conftest.er1 >conftest.err
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } >/dev/null && {
30128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30129 test ! -s conftest.err
30131 ac_header_preproc=yes
30133 echo "$as_me: failed program was:" >&5
30134 sed 's
/^
/|
/' conftest.$ac_ext >&5
30136 ac_header_preproc=no
30139 rm -f conftest.err conftest.$ac_ext
30140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30141 echo "${ECHO_T}$ac_header_preproc" >&6; }
30143 # So? What about this header?
30144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30146 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
30147 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30148 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result
" >&5
30149 echo "$as_me: WARNING
: Carbon.h
: proceeding with the compiler
's result" >&2;}
30150 ac_header_preproc=yes
30153 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
30154 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
30156 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
30157 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
30158 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
30159 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
30160 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
30161 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result
" >&5
30162 echo "$as_me: WARNING
: Carbon.h
: proceeding with the preprocessor
's result" >&2;}
30163 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
30164 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
30168 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30169 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30170 if test "${ac_cv_header_Carbon_h+set}" = set; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30173 ac_cv_header_Carbon_h=$ac_header_preproc
30175 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30176 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30179 if test $ac_cv_header_Carbon_h = yes; then
30182 can_compile_carbon=0
30186 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30187 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30188 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30189 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30193 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30195 # Is the header compilable?
30196 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
30197 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
30198 cat >conftest.$ac_ext <<_ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30204 $ac_includes_default
30205 #include <ApplicationServices/ApplicationServices.h>
30207 rm -f conftest.$ac_objext
30208 if { (ac_try="$ac_compile"
30209 case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_compile") 2>conftest.er1
30216 grep -v '^
*+' conftest.er1 >conftest.err
30218 cat conftest.err >&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); } && {
30221 test -z "$ac_c_werror_flag" ||
30222 test ! -s conftest.err
30223 } && test -s conftest.$ac_objext; then
30224 ac_header_compiler=yes
30226 echo "$as_me: failed program was:" >&5
30227 sed 's
/^
/|
/' conftest.$ac_ext >&5
30229 ac_header_compiler=no
30232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30234 echo "${ECHO_T}$ac_header_compiler" >&6; }
30236 # Is the header present?
30237 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
30238 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
30239 cat >conftest.$ac_ext <<_ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30245 #include <ApplicationServices/ApplicationServices.h>
30247 if { (ac_try="$ac_cpp conftest.$ac_ext"
30248 case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30255 grep -v '^
*+' conftest.er1 >conftest.err
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } >/dev/null && {
30260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30261 test ! -s conftest.err
30263 ac_header_preproc=yes
30265 echo "$as_me: failed program was:" >&5
30266 sed 's
/^
/|
/' conftest.$ac_ext >&5
30268 ac_header_preproc=no
30271 rm -f conftest.err conftest.$ac_ext
30272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6; }
30275 # So? What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30278 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result
" >&5
30281 echo "$as_me: WARNING
: ApplicationServices
/ApplicationServices.h
: proceeding with the compiler
's result" >&2;}
30282 ac_header_preproc=yes
30285 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result
" >&5
30294 echo "$as_me: WARNING
: ApplicationServices
/ApplicationServices.h
: proceeding with the preprocessor
's result" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
30300 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30301 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30302 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30305 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
30307 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30308 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30311 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
30314 can_compile_carbon=0
30318 if test $can_compile_carbon = 1; then
30323 if test "$with_win32" != yes; then
30324 can_compile_win32=1
30325 if test "${ac_cv_header_windows_h+set}" = set; then
30326 { echo "$as_me:$LINENO: checking for windows.h" >&5
30327 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30328 if test "${ac_cv_header_windows_h+set}" = set; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30332 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30334 # Is the header compilable?
30335 { echo "$as_me:$LINENO: checking windows.h usability" >&5
30336 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
30337 cat >conftest.$ac_ext <<_ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 $ac_includes_default
30344 #include <windows.h>
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_compile") 2>conftest.er1
30355 grep -v '^
*+' conftest.er1 >conftest.err
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } && {
30360 test -z "$ac_c_werror_flag" ||
30361 test ! -s conftest.err
30362 } && test -s conftest.$ac_objext; then
30363 ac_header_compiler=yes
30365 echo "$as_me: failed program was:" >&5
30366 sed 's
/^
/|
/' conftest.$ac_ext >&5
30368 ac_header_compiler=no
30371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30373 echo "${ECHO_T}$ac_header_compiler" >&6; }
30375 # Is the header present?
30376 { echo "$as_me:$LINENO: checking windows.h presence" >&5
30377 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
30378 cat >conftest.$ac_ext <<_ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h. */
30384 #include <windows.h>
30386 if { (ac_try="$ac_cpp conftest.$ac_ext"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30394 grep -v '^
*+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } >/dev/null && {
30399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30402 ac_header_preproc=yes
30404 echo "$as_me: failed program was:" >&5
30405 sed 's
/^
/|
/' conftest.$ac_ext >&5
30407 ac_header_preproc=no
30410 rm -f conftest.err conftest.$ac_ext
30411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30412 echo "${ECHO_T}$ac_header_preproc" >&6; }
30414 # So? What about this header?
30415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30417 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
30418 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30419 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result
" >&5
30420 echo "$as_me: WARNING
: windows.h
: proceeding with the compiler
's result" >&2;}
30421 ac_header_preproc=yes
30424 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
30425 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
30427 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
30429 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
30431 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result
" >&5
30433 echo "$as_me: WARNING
: windows.h
: proceeding with the preprocessor
's result" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
30435 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
30439 { echo "$as_me:$LINENO: checking for windows.h" >&5
30440 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30441 if test "${ac_cv_header_windows_h+set}" = set; then
30442 echo $ECHO_N "(cached) $ECHO_C" >&6
30444 ac_cv_header_windows_h=$ac_header_preproc
30446 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30447 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30450 if test $ac_cv_header_windows_h = yes; then
30453 can_compile_win32=0
30457 if test "${ac_cv_header_commctrl_h+set}" = set; then
30458 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30459 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30460 if test "${ac_cv_header_commctrl_h+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30464 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30466 # Is the header compilable?
30467 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
30468 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
30469 cat >conftest.$ac_ext <<_ACEOF
30472 cat confdefs.h >>conftest.$ac_ext
30473 cat >>conftest.$ac_ext <<_ACEOF
30474 /* end confdefs.h. */
30475 $ac_includes_default
30476 #include <commctrl.h>
30478 rm -f conftest.$ac_objext
30479 if { (ac_try="$ac_compile"
30480 case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485 (eval "$ac_compile") 2>conftest.er1
30487 grep -v '^
*+' conftest.er1 >conftest.err
30489 cat conftest.err >&5
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } && {
30492 test -z "$ac_c_werror_flag" ||
30493 test ! -s conftest.err
30494 } && test -s conftest.$ac_objext; then
30495 ac_header_compiler=yes
30497 echo "$as_me: failed program was:" >&5
30498 sed 's
/^
/|
/' conftest.$ac_ext >&5
30500 ac_header_compiler=no
30503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30505 echo "${ECHO_T}$ac_header_compiler" >&6; }
30507 # Is the header present?
30508 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
30509 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
30510 cat >conftest.$ac_ext <<_ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h. */
30516 #include <commctrl.h>
30518 if { (ac_try="$ac_cpp conftest.$ac_ext"
30519 case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30526 grep -v '^
*+' conftest.er1 >conftest.err
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } >/dev/null && {
30531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30532 test ! -s conftest.err
30534 ac_header_preproc=yes
30536 echo "$as_me: failed program was:" >&5
30537 sed 's
/^
/|
/' conftest.$ac_ext >&5
30539 ac_header_preproc=no
30542 rm -f conftest.err conftest.$ac_ext
30543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30544 echo "${ECHO_T}$ac_header_preproc" >&6; }
30546 # So? What about this header?
30547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30549 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30550 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30551 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result
" >&5
30552 echo "$as_me: WARNING
: commctrl.h
: proceeding with the compiler
's result" >&2;}
30553 ac_header_preproc=yes
30556 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
30557 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
30558 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
30559 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
30561 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
30562 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
30563 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30564 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result
" >&5
30565 echo "$as_me: WARNING
: commctrl.h
: proceeding with the preprocessor
's result" >&2;}
30566 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
30567 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
30571 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30572 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30573 if test "${ac_cv_header_commctrl_h+set}" = set; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30576 ac_cv_header_commctrl_h=$ac_header_preproc
30578 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30579 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30582 if test $ac_cv_header_commctrl_h = yes; then
30585 can_compile_win32=0
30589 if test $can_compile_win32 = 1; then
30594 if test "$with_sdl" != yes; then
30596 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30597 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30598 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30599 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30602 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30603 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30605 # Is the header compilable?
30606 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
30607 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
30608 cat >conftest.$ac_ext <<_ACEOF
30611 cat confdefs.h >>conftest.$ac_ext
30612 cat >>conftest.$ac_ext <<_ACEOF
30613 /* end confdefs.h. */
30614 $ac_includes_default
30615 #include <SDL/SDL.h>
30617 rm -f conftest.$ac_objext
30618 if { (ac_try="$ac_compile"
30619 case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624 (eval "$ac_compile") 2>conftest.er1
30626 grep -v '^
*+' conftest.er1 >conftest.err
30628 cat conftest.err >&5
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); } && {
30631 test -z "$ac_c_werror_flag" ||
30632 test ! -s conftest.err
30633 } && test -s conftest.$ac_objext; then
30634 ac_header_compiler=yes
30636 echo "$as_me: failed program was:" >&5
30637 sed 's
/^
/|
/' conftest.$ac_ext >&5
30639 ac_header_compiler=no
30642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30644 echo "${ECHO_T}$ac_header_compiler" >&6; }
30646 # Is the header present?
30647 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
30648 echo $ECHO_N "checking SDL/SDL.h presence... $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 #include <SDL/SDL.h>
30657 if { (ac_try="$ac_cpp conftest.$ac_ext"
30658 case "(($ac_try" in
30659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660 *) ac_try_echo=$ac_try;;
30662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30665 grep -v '^
*+' conftest.er1 >conftest.err
30667 cat conftest.err >&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } >/dev/null && {
30670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30671 test ! -s conftest.err
30673 ac_header_preproc=yes
30675 echo "$as_me: failed program was:" >&5
30676 sed 's
/^
/|
/' conftest.$ac_ext >&5
30678 ac_header_preproc=no
30681 rm -f conftest.err conftest.$ac_ext
30682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30683 echo "${ECHO_T}$ac_header_preproc" >&6; }
30685 # So? What about this header?
30686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30688 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
30689 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result
" >&5
30691 echo "$as_me: WARNING
: SDL
/SDL.h
: proceeding with the compiler
's result" >&2;}
30692 ac_header_preproc=yes
30695 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
30696 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
30697 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
30698 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
30700 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
30702 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result
" >&5
30704 echo "$as_me: WARNING
: SDL
/SDL.h
: proceeding with the preprocessor
's result" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
30706 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
30710 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30711 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30712 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30715 ac_cv_header_SDL_SDL_h=$ac_header_preproc
30717 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30718 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30721 if test $ac_cv_header_SDL_SDL_h = yes; then
30728 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30729 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30730 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30731 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30732 echo $ECHO_N "(cached) $ECHO_C" >&6
30734 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30735 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30737 # Is the header compilable?
30738 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
30739 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
30740 cat >conftest.$ac_ext <<_ACEOF
30743 cat confdefs.h >>conftest.$ac_ext
30744 cat >>conftest.$ac_ext <<_ACEOF
30745 /* end confdefs.h. */
30746 $ac_includes_default
30747 #include <SDL/SDL_main.h>
30749 rm -f conftest.$ac_objext
30750 if { (ac_try="$ac_compile"
30751 case "(($ac_try" in
30752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30753 *) ac_try_echo=$ac_try;;
30755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30756 (eval "$ac_compile") 2>conftest.er1
30758 grep -v '^
*+' conftest.er1 >conftest.err
30760 cat conftest.err >&5
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); } && {
30763 test -z "$ac_c_werror_flag" ||
30764 test ! -s conftest.err
30765 } && test -s conftest.$ac_objext; then
30766 ac_header_compiler=yes
30768 echo "$as_me: failed program was:" >&5
30769 sed 's
/^
/|
/' conftest.$ac_ext >&5
30771 ac_header_compiler=no
30774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30776 echo "${ECHO_T}$ac_header_compiler" >&6; }
30778 # Is the header present?
30779 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
30780 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
30781 cat >conftest.$ac_ext <<_ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h. */
30787 #include <SDL/SDL_main.h>
30789 if { (ac_try="$ac_cpp conftest.$ac_ext"
30790 case "(($ac_try" in
30791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792 *) ac_try_echo=$ac_try;;
30794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30797 grep -v '^
*+' conftest.er1 >conftest.err
30799 cat conftest.err >&5
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } >/dev/null && {
30802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30803 test ! -s conftest.err
30805 ac_header_preproc=yes
30807 echo "$as_me: failed program was:" >&5
30808 sed 's
/^
/|
/' conftest.$ac_ext >&5
30810 ac_header_preproc=no
30813 rm -f conftest.err conftest.$ac_ext
30814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30815 echo "${ECHO_T}$ac_header_preproc" >&6; }
30817 # So? What about this header?
30818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30820 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
30821 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30822 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result
" >&5
30823 echo "$as_me: WARNING
: SDL
/SDL_main.h
: proceeding with the compiler
's result" >&2;}
30824 ac_header_preproc=yes
30827 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
30828 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
30830 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
30832 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
30834 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
30835 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result
" >&5
30836 echo "$as_me: WARNING
: SDL
/SDL_main.h
: proceeding with the preprocessor
's result" >&2;}
30837 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
30838 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
30842 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30843 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30844 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
30847 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
30849 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30850 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30853 if test $ac_cv_header_SDL_SDL_main_h = yes; then
30860 if test $can_compile_sdl = 1; then
30865 if test "$with_svga" != yes; then
30867 if test "${ac_cv_header_vga_h+set}" = set; then
30868 { echo "$as_me:$LINENO: checking for vga.h" >&5
30869 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30870 if test "${ac_cv_header_vga_h+set}" = set; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30873 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30874 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30876 # Is the header compilable?
30877 { echo "$as_me:$LINENO: checking vga.h usability" >&5
30878 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
30879 cat >conftest.$ac_ext <<_ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h. */
30885 $ac_includes_default
30888 rm -f conftest.$ac_objext
30889 if { (ac_try="$ac_compile"
30890 case "(($ac_try" in
30891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30892 *) ac_try_echo=$ac_try;;
30894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30895 (eval "$ac_compile") 2>conftest.er1
30897 grep -v '^
*+' conftest.er1 >conftest.err
30899 cat conftest.err >&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } && {
30902 test -z "$ac_c_werror_flag" ||
30903 test ! -s conftest.err
30904 } && test -s conftest.$ac_objext; then
30905 ac_header_compiler=yes
30907 echo "$as_me: failed program was:" >&5
30908 sed 's
/^
/|
/' conftest.$ac_ext >&5
30910 ac_header_compiler=no
30913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30915 echo "${ECHO_T}$ac_header_compiler" >&6; }
30917 # Is the header present?
30918 { echo "$as_me:$LINENO: checking vga.h presence" >&5
30919 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
30920 cat >conftest.$ac_ext <<_ACEOF
30923 cat confdefs.h >>conftest.$ac_ext
30924 cat >>conftest.$ac_ext <<_ACEOF
30925 /* end confdefs.h. */
30928 if { (ac_try="$ac_cpp conftest.$ac_ext"
30929 case "(($ac_try" in
30930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931 *) ac_try_echo=$ac_try;;
30933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30936 grep -v '^
*+' conftest.er1 >conftest.err
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } >/dev/null && {
30941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30942 test ! -s conftest.err
30944 ac_header_preproc=yes
30946 echo "$as_me: failed program was:" >&5
30947 sed 's
/^
/|
/' conftest.$ac_ext >&5
30949 ac_header_preproc=no
30952 rm -f conftest.err conftest.$ac_ext
30953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30954 echo "${ECHO_T}$ac_header_preproc" >&6; }
30956 # So? What about this header?
30957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30959 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
30960 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30961 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result
" >&5
30962 echo "$as_me: WARNING
: vga.h
: proceeding with the compiler
's result" >&2;}
30963 ac_header_preproc=yes
30966 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
30967 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
30969 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
30971 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
30973 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result
" >&5
30975 echo "$as_me: WARNING
: vga.h
: proceeding with the preprocessor
's result" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
30977 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
30981 { echo "$as_me:$LINENO: checking for vga.h" >&5
30982 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30983 if test "${ac_cv_header_vga_h+set}" = set; then
30984 echo $ECHO_N "(cached) $ECHO_C" >&6
30986 ac_cv_header_vga_h=$ac_header_preproc
30988 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30989 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30992 if test $ac_cv_header_vga_h = yes; then
30999 if test "${ac_cv_header_vgagl_h+set}" = set; then
31000 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31001 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31002 if test "${ac_cv_header_vgagl_h+set}" = set; then
31003 echo $ECHO_N "(cached) $ECHO_C" >&6
31005 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31006 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31008 # Is the header compilable?
31009 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
31010 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 $ac_includes_default
31020 rm -f conftest.$ac_objext
31021 if { (ac_try="$ac_compile"
31022 case "(($ac_try" in
31023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31024 *) ac_try_echo=$ac_try;;
31026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31027 (eval "$ac_compile") 2>conftest.er1
31029 grep -v '^
*+' conftest.er1 >conftest.err
31031 cat conftest.err >&5
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); } && {
31034 test -z "$ac_c_werror_flag" ||
31035 test ! -s conftest.err
31036 } && test -s conftest.$ac_objext; then
31037 ac_header_compiler=yes
31039 echo "$as_me: failed program was:" >&5
31040 sed 's
/^
/|
/' conftest.$ac_ext >&5
31042 ac_header_compiler=no
31045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31047 echo "${ECHO_T}$ac_header_compiler" >&6; }
31049 # Is the header present?
31050 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
31051 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
31052 cat >conftest.$ac_ext <<_ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h. */
31060 if { (ac_try="$ac_cpp conftest.$ac_ext"
31061 case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31068 grep -v '^
*+' conftest.er1 >conftest.err
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } >/dev/null && {
31073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31074 test ! -s conftest.err
31076 ac_header_preproc=yes
31078 echo "$as_me: failed program was:" >&5
31079 sed 's
/^
/|
/' conftest.$ac_ext >&5
31081 ac_header_preproc=no
31084 rm -f conftest.err conftest.$ac_ext
31085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31086 echo "${ECHO_T}$ac_header_preproc" >&6; }
31088 # So? What about this header?
31089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31091 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31092 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31093 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result
" >&5
31094 echo "$as_me: WARNING
: vgagl.h
: proceeding with the compiler
's result" >&2;}
31095 ac_header_preproc=yes
31098 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
31099 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
31100 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
31101 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
31102 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
31103 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
31104 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
31105 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31106 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result
" >&5
31107 echo "$as_me: WARNING
: vgagl.h
: proceeding with the preprocessor
's result" >&2;}
31108 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
31109 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
31113 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31114 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31115 if test "${ac_cv_header_vgagl_h+set}" = set; then
31116 echo $ECHO_N "(cached) $ECHO_C" >&6
31118 ac_cv_header_vgagl_h=$ac_header_preproc
31120 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31121 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31124 if test $ac_cv_header_vgagl_h = yes; then
31131 if test $can_compile_svga = 1; then
31136 if test "$with_x11" != yes; then
31138 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31139 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31140 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31141 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31142 echo $ECHO_N "(cached) $ECHO_C" >&6
31144 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31145 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31147 # Is the header compilable?
31148 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
31149 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
31150 cat >conftest.$ac_ext <<_ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h. */
31156 $ac_includes_default
31157 #include <X11/Xlib.h>
31159 rm -f conftest.$ac_objext
31160 if { (ac_try="$ac_compile"
31161 case "(($ac_try" in
31162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163 *) ac_try_echo=$ac_try;;
31165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166 (eval "$ac_compile") 2>conftest.er1
31168 grep -v '^
*+' conftest.er1 >conftest.err
31170 cat conftest.err >&5
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); } && {
31173 test -z "$ac_c_werror_flag" ||
31174 test ! -s conftest.err
31175 } && test -s conftest.$ac_objext; then
31176 ac_header_compiler=yes
31178 echo "$as_me: failed program was:" >&5
31179 sed 's
/^
/|
/' conftest.$ac_ext >&5
31181 ac_header_compiler=no
31184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31186 echo "${ECHO_T}$ac_header_compiler" >&6; }
31188 # Is the header present?
31189 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
31190 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
31191 cat >conftest.$ac_ext <<_ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h. */
31197 #include <X11/Xlib.h>
31199 if { (ac_try="$ac_cpp conftest.$ac_ext"
31200 case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31207 grep -v '^
*+' conftest.er1 >conftest.err
31209 cat conftest.err >&5
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); } >/dev/null && {
31212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31213 test ! -s conftest.err
31215 ac_header_preproc=yes
31217 echo "$as_me: failed program was:" >&5
31218 sed 's
/^
/|
/' conftest.$ac_ext >&5
31220 ac_header_preproc=no
31223 rm -f conftest.err conftest.$ac_ext
31224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31225 echo "${ECHO_T}$ac_header_preproc" >&6; }
31227 # So? What about this header?
31228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31230 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31231 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31232 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result
" >&5
31233 echo "$as_me: WARNING
: X11
/Xlib.h
: proceeding with the compiler
's result" >&2;}
31234 ac_header_preproc=yes
31237 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
31238 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
31240 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
31241 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
31242 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
31243 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
31244 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31245 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result
" >&5
31246 echo "$as_me: WARNING
: X11
/Xlib.h
: proceeding with the preprocessor
's result" >&2;}
31247 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
31248 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
31252 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31253 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31254 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31257 ac_cv_header_X11_Xlib_h=$ac_header_preproc
31259 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31260 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31263 if test $ac_cv_header_X11_Xlib_h = yes; then
31270 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31271 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31272 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31273 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31276 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31277 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31279 # Is the header compilable?
31280 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
31281 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
31282 cat >conftest.$ac_ext <<_ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h. */
31288 $ac_includes_default
31289 #include <X11/Xutil.h>
31291 rm -f conftest.$ac_objext
31292 if { (ac_try="$ac_compile"
31293 case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_compile") 2>conftest.er1
31300 grep -v '^
*+' conftest.er1 >conftest.err
31302 cat conftest.err >&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); } && {
31305 test -z "$ac_c_werror_flag" ||
31306 test ! -s conftest.err
31307 } && test -s conftest.$ac_objext; then
31308 ac_header_compiler=yes
31310 echo "$as_me: failed program was:" >&5
31311 sed 's
/^
/|
/' conftest.$ac_ext >&5
31313 ac_header_compiler=no
31316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31318 echo "${ECHO_T}$ac_header_compiler" >&6; }
31320 # Is the header present?
31321 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
31322 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
31323 cat >conftest.$ac_ext <<_ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31329 #include <X11/Xutil.h>
31331 if { (ac_try="$ac_cpp conftest.$ac_ext"
31332 case "(($ac_try" in
31333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334 *) ac_try_echo=$ac_try;;
31336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31339 grep -v '^
*+' conftest.er1 >conftest.err
31341 cat conftest.err >&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); } >/dev/null && {
31344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31345 test ! -s conftest.err
31347 ac_header_preproc=yes
31349 echo "$as_me: failed program was:" >&5
31350 sed 's
/^
/|
/' conftest.$ac_ext >&5
31352 ac_header_preproc=no
31355 rm -f conftest.err conftest.$ac_ext
31356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31357 echo "${ECHO_T}$ac_header_preproc" >&6; }
31359 # So? What about this header?
31360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31362 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
31363 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31364 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result
" >&5
31365 echo "$as_me: WARNING
: X11
/Xutil.h
: proceeding with the compiler
's result" >&2;}
31366 ac_header_preproc=yes
31369 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
31370 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
31371 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
31372 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
31373 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
31374 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
31375 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
31376 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
31377 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result
" >&5
31378 echo "$as_me: WARNING
: X11
/Xutil.h
: proceeding with the preprocessor
's result" >&2;}
31379 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
31380 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
31384 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31385 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31386 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31387 echo $ECHO_N "(cached) $ECHO_C" >&6
31389 ac_cv_header_X11_Xutil_h=$ac_header_preproc
31391 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31392 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31395 if test $ac_cv_header_X11_Xutil_h = yes; then
31402 if test $can_compile_x11 = 1; then
31407 if test "$with_rfb" != yes; then
31410 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
31411 if test "${ac_cv_header_winsock_h+set}" = set; then
31412 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31413 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31414 if test "${ac_cv_header_winsock_h+set}" = set; then
31415 echo $ECHO_N "(cached) $ECHO_C" >&6
31417 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31418 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31420 # Is the header compilable?
31421 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
31422 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
31423 cat >conftest.$ac_ext <<_ACEOF
31426 cat confdefs.h >>conftest.$ac_ext
31427 cat >>conftest.$ac_ext <<_ACEOF
31428 /* end confdefs.h. */
31429 $ac_includes_default
31430 #include <winsock.h>
31432 rm -f conftest.$ac_objext
31433 if { (ac_try="$ac_compile"
31434 case "(($ac_try" in
31435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436 *) ac_try_echo=$ac_try;;
31438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31439 (eval "$ac_compile") 2>conftest.er1
31441 grep -v '^
*+' conftest.er1 >conftest.err
31443 cat conftest.err >&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } && {
31446 test -z "$ac_c_werror_flag" ||
31447 test ! -s conftest.err
31448 } && test -s conftest.$ac_objext; then
31449 ac_header_compiler=yes
31451 echo "$as_me: failed program was:" >&5
31452 sed 's
/^
/|
/' conftest.$ac_ext >&5
31454 ac_header_compiler=no
31457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31459 echo "${ECHO_T}$ac_header_compiler" >&6; }
31461 # Is the header present?
31462 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
31463 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
31464 cat >conftest.$ac_ext <<_ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h. */
31470 #include <winsock.h>
31472 if { (ac_try="$ac_cpp conftest.$ac_ext"
31473 case "(($ac_try" in
31474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475 *) ac_try_echo=$ac_try;;
31477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31480 grep -v '^
*+' conftest.er1 >conftest.err
31482 cat conftest.err >&5
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } >/dev/null && {
31485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31486 test ! -s conftest.err
31488 ac_header_preproc=yes
31490 echo "$as_me: failed program was:" >&5
31491 sed 's
/^
/|
/' conftest.$ac_ext >&5
31493 ac_header_preproc=no
31496 rm -f conftest.err conftest.$ac_ext
31497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31498 echo "${ECHO_T}$ac_header_preproc" >&6; }
31500 # So? What about this header?
31501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31503 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
31504 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31505 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result
" >&5
31506 echo "$as_me: WARNING
: winsock.h
: proceeding with the compiler
's result" >&2;}
31507 ac_header_preproc=yes
31510 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
31511 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
31512 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
31513 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
31514 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
31515 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
31516 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
31517 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
31518 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result
" >&5
31519 echo "$as_me: WARNING
: winsock.h
: proceeding with the preprocessor
's result" >&2;}
31520 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
31521 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
31525 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31526 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31527 if test "${ac_cv_header_winsock_h+set}" = set; then
31528 echo $ECHO_N "(cached) $ECHO_C" >&6
31530 ac_cv_header_winsock_h=$ac_header_preproc
31532 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31533 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31536 if test $ac_cv_header_winsock_h = yes; then
31543 if test "${ac_cv_header_process_h+set}" = set; then
31544 { echo "$as_me:$LINENO: checking for process.h" >&5
31545 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31546 if test "${ac_cv_header_process_h+set}" = set; then
31547 echo $ECHO_N "(cached) $ECHO_C" >&6
31549 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31550 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31552 # Is the header compilable?
31553 { echo "$as_me:$LINENO: checking process.h usability" >&5
31554 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
31555 cat >conftest.$ac_ext <<_ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31561 $ac_includes_default
31562 #include <process.h>
31564 rm -f conftest.$ac_objext
31565 if { (ac_try="$ac_compile"
31566 case "(($ac_try" in
31567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31568 *) ac_try_echo=$ac_try;;
31570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31571 (eval "$ac_compile") 2>conftest.er1
31573 grep -v '^
*+' conftest.er1 >conftest.err
31575 cat conftest.err >&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); } && {
31578 test -z "$ac_c_werror_flag" ||
31579 test ! -s conftest.err
31580 } && test -s conftest.$ac_objext; then
31581 ac_header_compiler=yes
31583 echo "$as_me: failed program was:" >&5
31584 sed 's
/^
/|
/' conftest.$ac_ext >&5
31586 ac_header_compiler=no
31589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31591 echo "${ECHO_T}$ac_header_compiler" >&6; }
31593 # Is the header present?
31594 { echo "$as_me:$LINENO: checking process.h presence" >&5
31595 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
31596 cat >conftest.$ac_ext <<_ACEOF
31599 cat confdefs.h >>conftest.$ac_ext
31600 cat >>conftest.$ac_ext <<_ACEOF
31601 /* end confdefs.h. */
31602 #include <process.h>
31604 if { (ac_try="$ac_cpp conftest.$ac_ext"
31605 case "(($ac_try" in
31606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607 *) ac_try_echo=$ac_try;;
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31612 grep -v '^
*+' conftest.er1 >conftest.err
31614 cat conftest.err >&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } >/dev/null && {
31617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31618 test ! -s conftest.err
31620 ac_header_preproc=yes
31622 echo "$as_me: failed program was:" >&5
31623 sed 's
/^
/|
/' conftest.$ac_ext >&5
31625 ac_header_preproc=no
31628 rm -f conftest.err conftest.$ac_ext
31629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31630 echo "${ECHO_T}$ac_header_preproc" >&6; }
31632 # So? What about this header?
31633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31635 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
31636 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31637 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result
" >&5
31638 echo "$as_me: WARNING
: process.h
: proceeding with the compiler
's result" >&2;}
31639 ac_header_preproc=yes
31642 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
31643 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
31644 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
31645 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
31646 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
31647 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
31648 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
31649 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
31650 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result
" >&5
31651 echo "$as_me: WARNING
: process.h
: proceeding with the preprocessor
's result" >&2;}
31652 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
31653 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
31657 { echo "$as_me:$LINENO: checking for process.h" >&5
31658 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31659 if test "${ac_cv_header_process_h+set}" = set; then
31660 echo $ECHO_N "(cached) $ECHO_C" >&6
31662 ac_cv_header_process_h=$ac_header_preproc
31664 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31665 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31668 if test $ac_cv_header_process_h = yes; then
31677 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31678 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31679 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31680 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31681 echo $ECHO_N "(cached) $ECHO_C" >&6
31683 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31684 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31686 # Is the header compilable?
31687 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
31688 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
31689 cat >conftest.$ac_ext <<_ACEOF
31692 cat confdefs.h >>conftest.$ac_ext
31693 cat >>conftest.$ac_ext <<_ACEOF
31694 /* end confdefs.h. */
31695 $ac_includes_default
31696 #include <sys/socket.h>
31698 rm -f conftest.$ac_objext
31699 if { (ac_try="$ac_compile"
31700 case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_compile") 2>conftest.er1
31707 grep -v '^
*+' conftest.er1 >conftest.err
31709 cat conftest.err >&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } && {
31712 test -z "$ac_c_werror_flag" ||
31713 test ! -s conftest.err
31714 } && test -s conftest.$ac_objext; then
31715 ac_header_compiler=yes
31717 echo "$as_me: failed program was:" >&5
31718 sed 's
/^
/|
/' conftest.$ac_ext >&5
31720 ac_header_compiler=no
31723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31725 echo "${ECHO_T}$ac_header_compiler" >&6; }
31727 # Is the header present?
31728 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
31729 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
31730 cat >conftest.$ac_ext <<_ACEOF
31733 cat confdefs.h >>conftest.$ac_ext
31734 cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h. */
31736 #include <sys/socket.h>
31738 if { (ac_try="$ac_cpp conftest.$ac_ext"
31739 case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31746 grep -v '^
*+' conftest.er1 >conftest.err
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } >/dev/null && {
31751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31752 test ! -s conftest.err
31754 ac_header_preproc=yes
31756 echo "$as_me: failed program was:" >&5
31757 sed 's
/^
/|
/' conftest.$ac_ext >&5
31759 ac_header_preproc=no
31762 rm -f conftest.err conftest.$ac_ext
31763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31764 echo "${ECHO_T}$ac_header_preproc" >&6; }
31766 # So? What about this header?
31767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31769 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
31770 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31771 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result
" >&5
31772 echo "$as_me: WARNING
: sys
/socket.h
: proceeding with the compiler
's result" >&2;}
31773 ac_header_preproc=yes
31776 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
31777 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
31779 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
31781 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
31782 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
31783 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
31784 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result
" >&5
31785 echo "$as_me: WARNING
: sys
/socket.h
: proceeding with the preprocessor
's result" >&2;}
31786 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
31787 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
31791 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31792 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31793 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31796 ac_cv_header_sys_socket_h=$ac_header_preproc
31798 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31799 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31802 if test $ac_cv_header_sys_socket_h = yes; then
31809 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31810 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31811 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31812 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31813 echo $ECHO_N "(cached) $ECHO_C" >&6
31815 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31816 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31818 # Is the header compilable?
31819 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
31820 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
31821 cat >conftest.$ac_ext <<_ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31827 $ac_includes_default
31828 #include <netinet/tcp.h>
31830 rm -f conftest.$ac_objext
31831 if { (ac_try="$ac_compile"
31832 case "(($ac_try" in
31833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834 *) ac_try_echo=$ac_try;;
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837 (eval "$ac_compile") 2>conftest.er1
31839 grep -v '^
*+' conftest.er1 >conftest.err
31841 cat conftest.err >&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } && {
31844 test -z "$ac_c_werror_flag" ||
31845 test ! -s conftest.err
31846 } && test -s conftest.$ac_objext; then
31847 ac_header_compiler=yes
31849 echo "$as_me: failed program was:" >&5
31850 sed 's
/^
/|
/' conftest.$ac_ext >&5
31852 ac_header_compiler=no
31855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31857 echo "${ECHO_T}$ac_header_compiler" >&6; }
31859 # Is the header present?
31860 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
31861 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
31862 cat >conftest.$ac_ext <<_ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h. */
31868 #include <netinet/tcp.h>
31870 if { (ac_try="$ac_cpp conftest.$ac_ext"
31871 case "(($ac_try" in
31872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873 *) ac_try_echo=$ac_try;;
31875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31878 grep -v '^
*+' conftest.er1 >conftest.err
31880 cat conftest.err >&5
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); } >/dev/null && {
31883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31884 test ! -s conftest.err
31886 ac_header_preproc=yes
31888 echo "$as_me: failed program was:" >&5
31889 sed 's
/^
/|
/' conftest.$ac_ext >&5
31891 ac_header_preproc=no
31894 rm -f conftest.err conftest.$ac_ext
31895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31896 echo "${ECHO_T}$ac_header_preproc" >&6; }
31898 # So? What about this header?
31899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31901 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31902 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31903 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result
" >&5
31904 echo "$as_me: WARNING
: netinet
/tcp.h
: proceeding with the compiler
's result" >&2;}
31905 ac_header_preproc=yes
31908 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
31909 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
31910 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
31911 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
31912 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
31913 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
31914 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
31915 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31916 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result
" >&5
31917 echo "$as_me: WARNING
: netinet
/tcp.h
: proceeding with the preprocessor
's result" >&2;}
31918 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
31919 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
31923 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31924 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31925 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31926 echo $ECHO_N "(cached) $ECHO_C" >&6
31928 ac_cv_header_netinet_tcp_h=$ac_header_preproc
31930 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31931 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31934 if test $ac_cv_header_netinet_tcp_h = yes; then
31941 if test "${ac_cv_header_pthread_h+set}" = set; then
31942 { echo "$as_me:$LINENO: checking for pthread.h" >&5
31943 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
31944 if test "${ac_cv_header_pthread_h+set}" = set; then
31945 echo $ECHO_N "(cached) $ECHO_C" >&6
31947 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
31948 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
31950 # Is the header compilable?
31951 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
31952 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
31953 cat >conftest.$ac_ext <<_ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h. */
31959 $ac_includes_default
31960 #include <pthread.h>
31962 rm -f conftest.$ac_objext
31963 if { (ac_try="$ac_compile"
31964 case "(($ac_try" in
31965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31966 *) ac_try_echo=$ac_try;;
31968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31969 (eval "$ac_compile") 2>conftest.er1
31971 grep -v '^
*+' conftest.er1 >conftest.err
31973 cat conftest.err >&5
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); } && {
31976 test -z "$ac_c_werror_flag" ||
31977 test ! -s conftest.err
31978 } && test -s conftest.$ac_objext; then
31979 ac_header_compiler=yes
31981 echo "$as_me: failed program was:" >&5
31982 sed 's
/^
/|
/' conftest.$ac_ext >&5
31984 ac_header_compiler=no
31987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31989 echo "${ECHO_T}$ac_header_compiler" >&6; }
31991 # Is the header present?
31992 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
31993 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
31994 cat >conftest.$ac_ext <<_ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h. */
32000 #include <pthread.h>
32002 if { (ac_try="$ac_cpp conftest.$ac_ext"
32003 case "(($ac_try" in
32004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005 *) ac_try_echo=$ac_try;;
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32010 grep -v '^
*+' conftest.er1 >conftest.err
32012 cat conftest.err >&5
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); } >/dev/null && {
32015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32016 test ! -s conftest.err
32018 ac_header_preproc=yes
32020 echo "$as_me: failed program was:" >&5
32021 sed 's
/^
/|
/' conftest.$ac_ext >&5
32023 ac_header_preproc=no
32026 rm -f conftest.err conftest.$ac_ext
32027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32028 echo "${ECHO_T}$ac_header_preproc" >&6; }
32030 # So? What about this header?
32031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32033 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
32034 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32035 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result
" >&5
32036 echo "$as_me: WARNING
: pthread.h
: proceeding with the compiler
's result" >&2;}
32037 ac_header_preproc=yes
32040 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
32041 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
32042 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
32043 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
32044 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
32045 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
32046 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
32047 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
32048 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result
" >&5
32049 echo "$as_me: WARNING
: pthread.h
: proceeding with the preprocessor
's result" >&2;}
32050 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
32051 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
32055 { echo "$as_me:$LINENO: checking for pthread.h" >&5
32056 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
32057 if test "${ac_cv_header_pthread_h+set}" = set; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32060 ac_cv_header_pthread_h=$ac_header_preproc
32062 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
32063 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
32066 if test $ac_cv_header_pthread_h = yes; then
32075 if test $can_compile_rfb = 1; then
32080 if test "$with_term" != yes; then
32082 if test "${ac_cv_header_curses_h+set}" = set; then
32083 { echo "$as_me:$LINENO: checking for curses.h" >&5
32084 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32085 if test "${ac_cv_header_curses_h+set}" = set; then
32086 echo $ECHO_N "(cached) $ECHO_C" >&6
32088 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32089 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32091 # Is the header compilable?
32092 { echo "$as_me:$LINENO: checking curses.h usability" >&5
32093 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
32094 cat >conftest.$ac_ext <<_ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h. */
32100 $ac_includes_default
32101 #include <curses.h>
32103 rm -f conftest.$ac_objext
32104 if { (ac_try="$ac_compile"
32105 case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_compile") 2>conftest.er1
32112 grep -v '^
*+' conftest.er1 >conftest.err
32114 cat conftest.err >&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); } && {
32117 test -z "$ac_c_werror_flag" ||
32118 test ! -s conftest.err
32119 } && test -s conftest.$ac_objext; then
32120 ac_header_compiler=yes
32122 echo "$as_me: failed program was:" >&5
32123 sed 's
/^
/|
/' conftest.$ac_ext >&5
32125 ac_header_compiler=no
32128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32130 echo "${ECHO_T}$ac_header_compiler" >&6; }
32132 # Is the header present?
32133 { echo "$as_me:$LINENO: checking curses.h presence" >&5
32134 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
32135 cat >conftest.$ac_ext <<_ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h. */
32141 #include <curses.h>
32143 if { (ac_try="$ac_cpp conftest.$ac_ext"
32144 case "(($ac_try" in
32145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32146 *) ac_try_echo=$ac_try;;
32148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32151 grep -v '^
*+' conftest.er1 >conftest.err
32153 cat conftest.err >&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } >/dev/null && {
32156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32157 test ! -s conftest.err
32159 ac_header_preproc=yes
32161 echo "$as_me: failed program was:" >&5
32162 sed 's
/^
/|
/' conftest.$ac_ext >&5
32164 ac_header_preproc=no
32167 rm -f conftest.err conftest.$ac_ext
32168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32169 echo "${ECHO_T}$ac_header_preproc" >&6; }
32171 # So? What about this header?
32172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32174 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
32175 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32176 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result
" >&5
32177 echo "$as_me: WARNING
: curses.h
: proceeding with the compiler
's result" >&2;}
32178 ac_header_preproc=yes
32181 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
32182 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
32184 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
32185 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
32186 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
32187 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
32188 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
32189 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result
" >&5
32190 echo "$as_me: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&2;}
32191 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
32192 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
32196 { echo "$as_me:$LINENO: checking for curses.h" >&5
32197 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32198 if test "${ac_cv_header_curses_h+set}" = set; then
32199 echo $ECHO_N "(cached) $ECHO_C" >&6
32201 ac_cv_header_curses_h=$ac_header_preproc
32203 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32204 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32207 if test $ac_cv_header_curses_h = yes; then
32214 if test "${ac_cv_header_signal_h+set}" = set; then
32215 { echo "$as_me:$LINENO: checking for signal.h" >&5
32216 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32217 if test "${ac_cv_header_signal_h+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32220 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32221 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32223 # Is the header compilable?
32224 { echo "$as_me:$LINENO: checking signal.h usability" >&5
32225 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 $ac_includes_default
32233 #include <signal.h>
32235 rm -f conftest.$ac_objext
32236 if { (ac_try="$ac_compile"
32237 case "(($ac_try" in
32238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32239 *) ac_try_echo=$ac_try;;
32241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32242 (eval "$ac_compile") 2>conftest.er1
32244 grep -v '^
*+' conftest.er1 >conftest.err
32246 cat conftest.err >&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } && {
32249 test -z "$ac_c_werror_flag" ||
32250 test ! -s conftest.err
32251 } && test -s conftest.$ac_objext; then
32252 ac_header_compiler=yes
32254 echo "$as_me: failed program was:" >&5
32255 sed 's
/^
/|
/' conftest.$ac_ext >&5
32257 ac_header_compiler=no
32260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32262 echo "${ECHO_T}$ac_header_compiler" >&6; }
32264 # Is the header present?
32265 { echo "$as_me:$LINENO: checking signal.h presence" >&5
32266 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
32267 cat >conftest.$ac_ext <<_ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h. */
32273 #include <signal.h>
32275 if { (ac_try="$ac_cpp conftest.$ac_ext"
32276 case "(($ac_try" in
32277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32278 *) ac_try_echo=$ac_try;;
32280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32283 grep -v '^
*+' conftest.er1 >conftest.err
32285 cat conftest.err >&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } >/dev/null && {
32288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32289 test ! -s conftest.err
32291 ac_header_preproc=yes
32293 echo "$as_me: failed program was:" >&5
32294 sed 's
/^
/|
/' conftest.$ac_ext >&5
32296 ac_header_preproc=no
32299 rm -f conftest.err conftest.$ac_ext
32300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32301 echo "${ECHO_T}$ac_header_preproc" >&6; }
32303 # So? What about this header?
32304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32306 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
32307 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32308 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result
" >&5
32309 echo "$as_me: WARNING
: signal.h
: proceeding with the compiler
's result" >&2;}
32310 ac_header_preproc=yes
32313 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
32314 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
32315 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
32316 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
32317 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
32318 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
32319 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
32320 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
32321 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result
" >&5
32322 echo "$as_me: WARNING
: signal.h
: proceeding with the preprocessor
's result" >&2;}
32323 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
32324 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
32328 { echo "$as_me:$LINENO: checking for signal.h" >&5
32329 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32330 if test "${ac_cv_header_signal_h+set}" = set; then
32331 echo $ECHO_N "(cached) $ECHO_C" >&6
32333 ac_cv_header_signal_h=$ac_header_preproc
32335 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32336 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32339 if test $ac_cv_header_signal_h = yes; then
32346 if test $can_compile_term = 1; then
32351 if test "$with_nogui" != yes; then
32354 fi # end of if $with_all_libs = yes
32356 { echo "$as_me:$LINENO: checking for idle hack" >&5
32357 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
32358 # Check whether --enable-idle-hack was given.
32359 if test "${enable_idle_hack+set}" = set; then
32360 enableval=$enable_idle_hack; if test "$enableval" = yes; then
32361 { echo "$as_me:$LINENO: result: yes" >&5
32362 echo "${ECHO_T}yes" >&6; }
32363 cat >>confdefs.h <<\_ACEOF
32364 #define BX_USE_IDLE_HACK 1
32368 { echo "$as_me:$LINENO: result: no" >&5
32369 echo "${ECHO_T}no" >&6; }
32370 cat >>confdefs.h <<\_ACEOF
32371 #define BX_USE_IDLE_HACK 0
32377 { echo "$as_me:$LINENO: result: no" >&5
32378 echo "${ECHO_T}no" >&6; }
32379 cat >>confdefs.h <<\_ACEOF
32380 #define BX_USE_IDLE_HACK 0
32389 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32390 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32391 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32392 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32393 echo $ECHO_N "(cached) $ECHO_C" >&6
32395 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32396 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32398 # Is the header compilable?
32399 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
32400 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
32401 cat >conftest.$ac_ext <<_ACEOF
32404 cat confdefs.h >>conftest.$ac_ext
32405 cat >>conftest.$ac_ext <<_ACEOF
32406 /* end confdefs.h. */
32407 $ac_includes_default
32410 rm -f conftest.$ac_objext
32411 if { (ac_try="$ac_compile"
32412 case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_compile") 2>conftest.er1
32419 grep -v '^
*+' conftest.er1 >conftest.err
32421 cat conftest.err >&5
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); } && {
32424 test -z "$ac_c_werror_flag" ||
32425 test ! -s conftest.err
32426 } && test -s conftest.$ac_objext; then
32427 ac_header_compiler=yes
32429 echo "$as_me: failed program was:" >&5
32430 sed 's
/^
/|
/' conftest.$ac_ext >&5
32432 ac_header_compiler=no
32435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32437 echo "${ECHO_T}$ac_header_compiler" >&6; }
32439 # Is the header present?
32440 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
32441 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
32442 cat >conftest.$ac_ext <<_ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h. */
32450 if { (ac_try="$ac_cpp conftest.$ac_ext"
32451 case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32458 grep -v '^
*+' conftest.er1 >conftest.err
32460 cat conftest.err >&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } >/dev/null && {
32463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32464 test ! -s conftest.err
32466 ac_header_preproc=yes
32468 echo "$as_me: failed program was:" >&5
32469 sed 's
/^
/|
/' conftest.$ac_ext >&5
32471 ac_header_preproc=no
32474 rm -f conftest.err conftest.$ac_ext
32475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32476 echo "${ECHO_T}$ac_header_preproc" >&6; }
32478 # So? What about this header?
32479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32481 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
32482 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32483 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result
" >&5
32484 echo "$as_me: WARNING
: dlfcn.h
: proceeding with the compiler
's result" >&2;}
32485 ac_header_preproc=yes
32488 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
32489 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
32490 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
32491 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
32493 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
32494 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
32495 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
32496 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result
" >&5
32497 echo "$as_me: WARNING
: dlfcn.h
: proceeding with the preprocessor
's result" >&2;}
32498 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
32499 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
32503 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32504 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32505 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32506 echo $ECHO_N "(cached) $ECHO_C" >&6
32508 ac_cv_header_dlfcn_h=$ac_header_preproc
32510 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32511 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32514 if test $ac_cv_header_dlfcn_h = yes; then
32515 cat >>confdefs.h <<\_ACEOF
32516 #define BX_HAVE_DLFCN_H 1
32522 if test "${ac_cv_header_assert_h+set}" = set; then
32523 { echo "$as_me:$LINENO: checking for assert.h" >&5
32524 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32525 if test "${ac_cv_header_assert_h+set}" = set; then
32526 echo $ECHO_N "(cached) $ECHO_C" >&6
32528 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32529 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32531 # Is the header compilable?
32532 { echo "$as_me:$LINENO: checking assert.h usability" >&5
32533 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
32534 cat >conftest.$ac_ext <<_ACEOF
32537 cat confdefs.h >>conftest.$ac_ext
32538 cat >>conftest.$ac_ext <<_ACEOF
32539 /* end confdefs.h. */
32540 $ac_includes_default
32541 #include <assert.h>
32543 rm -f conftest.$ac_objext
32544 if { (ac_try="$ac_compile"
32545 case "(($ac_try" in
32546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547 *) ac_try_echo=$ac_try;;
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550 (eval "$ac_compile") 2>conftest.er1
32552 grep -v '^
*+' conftest.er1 >conftest.err
32554 cat conftest.err >&5
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); } && {
32557 test -z "$ac_c_werror_flag" ||
32558 test ! -s conftest.err
32559 } && test -s conftest.$ac_objext; then
32560 ac_header_compiler=yes
32562 echo "$as_me: failed program was:" >&5
32563 sed 's
/^
/|
/' conftest.$ac_ext >&5
32565 ac_header_compiler=no
32568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32570 echo "${ECHO_T}$ac_header_compiler" >&6; }
32572 # Is the header present?
32573 { echo "$as_me:$LINENO: checking assert.h presence" >&5
32574 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
32575 cat >conftest.$ac_ext <<_ACEOF
32578 cat confdefs.h >>conftest.$ac_ext
32579 cat >>conftest.$ac_ext <<_ACEOF
32580 /* end confdefs.h. */
32581 #include <assert.h>
32583 if { (ac_try="$ac_cpp conftest.$ac_ext"
32584 case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32591 grep -v '^
*+' conftest.er1 >conftest.err
32593 cat conftest.err >&5
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); } >/dev/null && {
32596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32597 test ! -s conftest.err
32599 ac_header_preproc=yes
32601 echo "$as_me: failed program was:" >&5
32602 sed 's
/^
/|
/' conftest.$ac_ext >&5
32604 ac_header_preproc=no
32607 rm -f conftest.err conftest.$ac_ext
32608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32609 echo "${ECHO_T}$ac_header_preproc" >&6; }
32611 # So? What about this header?
32612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32614 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
32615 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32616 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result
" >&5
32617 echo "$as_me: WARNING
: assert.h
: proceeding with the compiler
's result" >&2;}
32618 ac_header_preproc=yes
32621 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
32622 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
32623 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
32624 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
32625 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
32626 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
32627 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
32628 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
32629 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result
" >&5
32630 echo "$as_me: WARNING
: assert.h
: proceeding with the preprocessor
's result" >&2;}
32631 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
32632 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
32636 { echo "$as_me:$LINENO: checking for assert.h" >&5
32637 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32638 if test "${ac_cv_header_assert_h+set}" = set; then
32639 echo $ECHO_N "(cached) $ECHO_C" >&6
32641 ac_cv_header_assert_h=$ac_header_preproc
32643 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32644 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32647 if test $ac_cv_header_assert_h = yes; then
32648 cat >>confdefs.h <<\_ACEOF
32649 #define HAVE_ASSERT_H 1
32656 { echo "$as_me:$LINENO: checking for plugins support" >&5
32657 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
32658 # Check whether --enable-plugins was given.
32659 if test "${enable_plugins+set}" = set; then
32660 enableval=$enable_plugins; if test "$enableval" = yes; then
32673 if test "$bx_plugins" = 1; then
32674 { echo "$as_me:$LINENO: result: yes" >&5
32675 echo "${ECHO_T}yes" >&6; }
32676 cat >>confdefs.h <<\_ACEOF
32677 #define BX_PLUGINS 1
32680 GUI_NON_PLUGIN_OBJS='$
(OBJS_THAT_CANNOT_BE_PLUGINS
)'
32681 GUI_PLUGIN_OBJS='$
(OBJS_THAT_CAN_BE_PLUGINS
)'
32682 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
32683 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
32684 # by special link rules for the plugins that they support.
32685 LIBS="$LIBS $LIBADD_DL"
32686 PLUGIN_VAR='ltdl.o
'
32687 PLUGIN_TARGET=bochs_plugins
32688 INSTALL_PLUGINS_VAR=install_libtool_plugins
32689 NONPLUGIN_GUI_LINK_OPTS=''
32691 { echo "$as_me:$LINENO: result: no" >&5
32692 echo "${ECHO_T}no" >&6; }
32694 cat >>confdefs.h <<\_ACEOF
32695 #define BX_PLUGINS 0
32698 GUI_NON_PLUGIN_OBJS='$
(OBJS_THAT_CANNOT_BE_PLUGINS
) $
(OBJS_THAT_CAN_BE_PLUGINS
) $
(OBJS_THAT_SUPPORT_OTHER_PLUGINS
)'
32700 NONPLUGIN_GUI_LINK_OPTS='$
(GUI_LINK_OPTS
)'
32705 # copy gui variables into iodev variables. Later, we will add to the gui
32706 # objs list, according to which display libraries are enabled.
32707 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
32708 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
32710 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
32711 # It is provided by a library called dlcompat.
32712 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
32714 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
32716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32719 ac_check_lib_save_LIBS=$LIBS
32721 cat >conftest.$ac_ext <<_ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h. */
32728 /* Override any GCC internal prototype to avoid an error.
32729 Use char because int might match the return type of a GCC
32730 builtin and then its argument prototype would still apply. */
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (ac_try="$ac_link"
32745 case "(($ac_try" in
32746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747 *) ac_try_echo=$ac_try;;
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750 (eval "$ac_link") 2>conftest.er1
32752 grep -v '^
*+' conftest.er1 >conftest.err
32754 cat conftest.err >&5
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); } && {
32757 test -z "$ac_c_werror_flag" ||
32758 test ! -s conftest.err
32759 } && test -s conftest$ac_exeext &&
32760 $as_test_x conftest$ac_exeext; then
32761 ac_cv_lib_dl_dlopen=yes
32763 echo "$as_me: failed program was:" >&5
32764 sed 's
/^
/|
/' conftest.$ac_ext >&5
32766 ac_cv_lib_dl_dlopen=no
32769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32770 conftest$ac_exeext conftest.$ac_ext
32771 LIBS=$ac_check_lib_save_LIBS
32773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32774 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
32775 if test $ac_cv_lib_dl_dlopen = yes; then
32779 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
32780 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
32781 if test "$have_dlopen" = 0; then
32782 { echo "$as_me:$LINENO: result: no" >&5
32783 echo "${ECHO_T}no" >&6; }
32784 { { 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
32785 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;}
32786 { (exit 1); exit 1; }; }
32788 { echo "$as_me:$LINENO: result: yes" >&5
32789 echo "${ECHO_T}yes" >&6; }
32793 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
32794 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
32795 cat >conftest.$ac_ext <<_ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h. */
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_compile") 2>conftest.er1
32819 grep -v '^
*+' conftest.er1 >conftest.err
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } && {
32824 test -z "$ac_c_werror_flag" ||
32825 test ! -s conftest.err
32826 } && test -s conftest.$ac_objext; then
32827 { echo "$as_me:$LINENO: result: yes" >&5
32828 echo "${ECHO_T}yes" >&6; }
32830 echo "$as_me: failed program was:" >&5
32831 sed 's
/^
/|
/' conftest.$ac_ext >&5
32834 { echo "$as_me:$LINENO: result: no" >&5
32835 echo "${ECHO_T}no" >&6; }
32836 cat >>confdefs.h <<\_ACEOF
32837 #define BX_NO_BLANK_LABELS 1
32843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32845 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
32846 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
32847 cat >conftest.$ac_ext <<_ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h. */
32862 rm -f conftest.$ac_objext
32863 if { (ac_try="$ac_compile"
32864 case "(($ac_try" in
32865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866 *) ac_try_echo=$ac_try;;
32868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869 (eval "$ac_compile") 2>conftest.er1
32871 grep -v '^
*+' conftest.er1 >conftest.err
32873 cat conftest.err >&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); } && {
32876 test -z "$ac_c_werror_flag" ||
32877 test ! -s conftest.err
32878 } && test -s conftest.$ac_objext; then
32879 { echo "$as_me:$LINENO: result: yes" >&5
32880 echo "${ECHO_T}yes" >&6; }
32882 echo "$as_me: failed program was:" >&5
32883 sed 's
/^
/|
/' conftest.$ac_ext >&5
32886 { echo "$as_me:$LINENO: result: no" >&5
32887 echo "${ECHO_T}no" >&6; }
32888 cat >>confdefs.h <<\_ACEOF
32889 #define BX_64BIT_CONSTANTS_USE_LL 0
32895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32898 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
32899 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
32900 # Check whether --enable-x86-64 was given.
32901 if test "${enable_x86_64+set}" = set; then
32902 enableval=$enable_x86_64; if test "$enableval" = yes; then
32903 { echo "$as_me:$LINENO: result: yes" >&5
32904 echo "${ECHO_T}yes" >&6; }
32906 cat >>confdefs.h <<\_ACEOF
32907 #define BX_SUPPORT_X86_64 1
32912 { echo "$as_me:$LINENO: result: no" >&5
32913 echo "${ECHO_T}no" >&6; }
32915 cat >>confdefs.h <<\_ACEOF
32916 #define BX_SUPPORT_X86_64 0
32923 { echo "$as_me:$LINENO: result: no" >&5
32924 echo "${ECHO_T}no" >&6; }
32926 cat >>confdefs.h <<\_ACEOF
32927 #define BX_SUPPORT_X86_64 0
32937 { echo "$as_me:$LINENO: checking for SMP support" >&5
32938 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
32939 # Check whether --enable-smp was given.
32940 if test "${enable_smp+set}" = set; then
32941 enableval=$enable_smp; if test "$enableval" = yes; then
32942 { echo "$as_me:$LINENO: result: yes" >&5
32943 echo "${ECHO_T}yes" >&6; }
32944 cat >>confdefs.h <<\_ACEOF
32945 #define BX_SUPPORT_SMP 1
32948 cat >>confdefs.h <<\_ACEOF
32949 #define BX_USE_CPU_SMF 0
32954 { echo "$as_me:$LINENO: result: no" >&5
32955 echo "${ECHO_T}no" >&6; }
32956 cat >>confdefs.h <<\_ACEOF
32957 #define BX_SUPPORT_SMP 0
32964 { echo "$as_me:$LINENO: result: no" >&5
32965 echo "${ECHO_T}no" >&6; }
32966 cat >>confdefs.h <<\_ACEOF
32967 #define BX_SUPPORT_SMP 0
32975 { echo "$as_me:$LINENO: checking for cpu level" >&5
32976 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
32977 # Check whether --enable-cpu-level was given.
32978 if test "${enable_cpu_level+set}" = set; then
32979 enableval=$enable_cpu_level; case "$enableval" in
32981 { echo "$as_me:$LINENO: result: 3" >&5
32982 echo "${ECHO_T}3" >&6; }
32983 cat >>confdefs.h <<\_ACEOF
32984 #define BX_CPU_LEVEL 3
32987 cat >>confdefs.h <<\_ACEOF
32988 #define BX_CPU_LEVEL_HACKED 3
32993 { echo "$as_me:$LINENO: result: 4" >&5
32994 echo "${ECHO_T}4" >&6; }
32995 cat >>confdefs.h <<\_ACEOF
32996 #define BX_CPU_LEVEL 4
32999 cat >>confdefs.h <<\_ACEOF
33000 #define BX_CPU_LEVEL_HACKED 4
33005 { echo "$as_me:$LINENO: result: 5" >&5
33006 echo "${ECHO_T}5" >&6; }
33007 cat >>confdefs.h <<\_ACEOF
33008 #define BX_CPU_LEVEL 5
33011 cat >>confdefs.h <<\_ACEOF
33012 #define BX_CPU_LEVEL_HACKED 5
33017 { echo "$as_me:$LINENO: result: 6" >&5
33018 echo "${ECHO_T}6" >&6; }
33019 cat >>confdefs.h <<\_ACEOF
33020 #define BX_CPU_LEVEL 6
33023 cat >>confdefs.h <<\_ACEOF
33024 #define BX_CPU_LEVEL_HACKED 6
33030 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
33034 bx_cpu_level=$enableval
33035 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
33036 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
33042 # for multiprocessors or x86-64, cpu level must be 6
33043 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
33044 { echo "$as_me:$LINENO: result: 6" >&5
33045 echo "${ECHO_T}6" >&6; }
33046 cat >>confdefs.h <<\_ACEOF
33047 #define BX_CPU_LEVEL 6
33050 cat >>confdefs.h <<\_ACEOF
33051 #define BX_CPU_LEVEL_HACKED 6
33056 { echo "$as_me:$LINENO: result: 5" >&5
33057 echo "${ECHO_T}5" >&6; }
33058 cat >>confdefs.h <<\_ACEOF
33059 #define BX_CPU_LEVEL 5
33062 cat >>confdefs.h <<\_ACEOF
33063 #define BX_CPU_LEVEL_HACKED 5
33074 { echo "$as_me:$LINENO: checking for APIC support" >&5
33075 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
33076 # Check whether --enable-apic was given.
33077 if test "${enable_apic+set}" = set; then
33078 enableval=$enable_apic; if test "$enableval" = yes; then
33079 { echo "$as_me:$LINENO: result: yes" >&5
33080 echo "${ECHO_T}yes" >&6; }
33081 cat >>confdefs.h <<\_ACEOF
33082 #define BX_SUPPORT_APIC 1
33085 IOAPIC_OBJS='ioapic.o
'
33087 { echo "$as_me:$LINENO: result: no" >&5
33088 echo "${ECHO_T}no" >&6; }
33089 if test "$use_smp" = 1; then
33090 echo "ERROR: With SMP configuration you must use --enable-apic"
33093 cat >>confdefs.h <<\_ACEOF
33094 #define BX_SUPPORT_APIC 0
33102 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
33103 # enable APIC by default, if SMP configuration or if cpulevel>5
33104 { echo "$as_me:$LINENO: result: yes" >&5
33105 echo "${ECHO_T}yes" >&6; }
33106 cat >>confdefs.h <<\_ACEOF
33107 #define BX_SUPPORT_APIC 1
33110 IOAPIC_OBJS='ioapic.o
'
33112 { echo "$as_me:$LINENO: result: no" >&5
33113 echo "${ECHO_T}no" >&6; }
33114 cat >>confdefs.h <<\_ACEOF
33115 #define BX_SUPPORT_APIC 0
33126 if test "${ac_cv_header_zlib_h+set}" = set; then
33127 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33128 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33129 if test "${ac_cv_header_zlib_h+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33132 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33133 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33135 # Is the header compilable?
33136 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33137 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33138 cat >conftest.$ac_ext <<_ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h. */
33144 $ac_includes_default
33147 rm -f conftest.$ac_objext
33148 if { (ac_try="$ac_compile"
33149 case "(($ac_try" in
33150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33151 *) ac_try_echo=$ac_try;;
33153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33154 (eval "$ac_compile") 2>conftest.er1
33156 grep -v '^
*+' conftest.er1 >conftest.err
33158 cat conftest.err >&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); } && {
33161 test -z "$ac_c_werror_flag" ||
33162 test ! -s conftest.err
33163 } && test -s conftest.$ac_objext; then
33164 ac_header_compiler=yes
33166 echo "$as_me: failed program was:" >&5
33167 sed 's
/^
/|
/' conftest.$ac_ext >&5
33169 ac_header_compiler=no
33172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33174 echo "${ECHO_T}$ac_header_compiler" >&6; }
33176 # Is the header present?
33177 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33178 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33179 cat >conftest.$ac_ext <<_ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h. */
33187 if { (ac_try="$ac_cpp conftest.$ac_ext"
33188 case "(($ac_try" in
33189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33190 *) ac_try_echo=$ac_try;;
33192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33195 grep -v '^
*+' conftest.er1 >conftest.err
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } >/dev/null && {
33200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33201 test ! -s conftest.err
33203 ac_header_preproc=yes
33205 echo "$as_me: failed program was:" >&5
33206 sed 's
/^
/|
/' conftest.$ac_ext >&5
33208 ac_header_preproc=no
33211 rm -f conftest.err conftest.$ac_ext
33212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33213 echo "${ECHO_T}$ac_header_preproc" >&6; }
33215 # So? What about this header?
33216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33218 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33219 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33220 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
33221 echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
33222 ac_header_preproc=yes
33225 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33226 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33227 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33228 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33229 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33230 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33231 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33232 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33233 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
33234 echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
33235 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33236 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33240 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33241 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33242 if test "${ac_cv_header_zlib_h+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33245 ac_cv_header_zlib_h=$ac_header_preproc
33247 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33248 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33251 if test $ac_cv_header_zlib_h = yes; then
33252 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
33253 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
33254 if test "${ac_cv_lib_z_gzopen+set}" = set; then
33255 echo $ECHO_N "(cached) $ECHO_C" >&6
33257 ac_check_lib_save_LIBS=$LIBS
33259 cat >conftest.$ac_ext <<_ACEOF
33262 cat confdefs.h >>conftest.$ac_ext
33263 cat >>conftest.$ac_ext <<_ACEOF
33264 /* end confdefs.h. */
33266 /* Override any GCC internal prototype to avoid an error.
33267 Use char because int might match the return type of a GCC
33268 builtin and then its argument prototype would still apply. */
33281 rm -f conftest.$ac_objext conftest$ac_exeext
33282 if { (ac_try="$ac_link"
33283 case "(($ac_try" in
33284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_link") 2>conftest.er1
33290 grep -v '^
*+' conftest.er1 >conftest.err
33292 cat conftest.err >&5
33293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294 (exit $ac_status); } && {
33295 test -z "$ac_c_werror_flag" ||
33296 test ! -s conftest.err
33297 } && test -s conftest$ac_exeext &&
33298 $as_test_x conftest$ac_exeext; then
33299 ac_cv_lib_z_gzopen=yes
33301 echo "$as_me: failed program was:" >&5
33302 sed 's
/^
/|
/' conftest.$ac_ext >&5
33304 ac_cv_lib_z_gzopen=no
33307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33308 conftest$ac_exeext conftest.$ac_ext
33309 LIBS=$ac_check_lib_save_LIBS
33311 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
33312 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
33313 if test $ac_cv_lib_z_gzopen = yes; then
33314 cat >>confdefs.h <<\_ACEOF
33315 #define BX_HAVE_ZLIB 1
33324 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
33325 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
33326 # Check whether --enable-compressed-hd was given.
33327 if test "${enable_compressed_hd+set}" = set; then
33328 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
33329 { echo "$as_me:$LINENO: result: yes" >&5
33330 echo "${ECHO_T}yes" >&6; }
33331 cat >>confdefs.h <<\_ACEOF
33332 #define BX_COMPRESSED_HD_SUPPORT 1
33337 { echo "$as_me:$LINENO: result: no" >&5
33338 echo "${ECHO_T}no" >&6; }
33339 cat >>confdefs.h <<\_ACEOF
33340 #define BX_COMPRESSED_HD_SUPPORT 0
33346 { echo "$as_me:$LINENO: result: no" >&5
33347 echo "${ECHO_T}no" >&6; }
33348 cat >>confdefs.h <<\_ACEOF
33349 #define BX_COMPRESSED_HD_SUPPORT 0
33358 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
33359 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
33360 # Check whether --enable-ne2000 was given.
33361 if test "${enable_ne2000+set}" = set; then
33362 enableval=$enable_ne2000; if test "$enableval" = yes; then
33363 { echo "$as_me:$LINENO: result: yes" >&5
33364 echo "${ECHO_T}yes" >&6; }
33365 cat >>confdefs.h <<\_ACEOF
33366 #define BX_SUPPORT_NE2K 1
33372 { echo "$as_me:$LINENO: result: no" >&5
33373 echo "${ECHO_T}no" >&6; }
33374 cat >>confdefs.h <<\_ACEOF
33375 #define BX_SUPPORT_NE2K 0
33383 { echo "$as_me:$LINENO: result: no" >&5
33384 echo "${ECHO_T}no" >&6; }
33385 cat >>confdefs.h <<\_ACEOF
33386 #define BX_SUPPORT_NE2K 0
33397 { echo "$as_me:$LINENO: checking for ACPI support" >&5
33398 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
33399 # Check whether --enable-acpi was given.
33400 if test "${enable_acpi+set}" = set; then
33401 enableval=$enable_acpi; if test "$enableval" = yes; then
33402 { echo "$as_me:$LINENO: result: yes" >&5
33403 echo "${ECHO_T}yes" >&6; }
33404 cat >>confdefs.h <<\_ACEOF
33405 #define BX_SUPPORT_ACPI 1
33409 { echo "$as_me:$LINENO: result: no" >&5
33410 echo "${ECHO_T}no" >&6; }
33411 cat >>confdefs.h <<\_ACEOF
33412 #define BX_SUPPORT_ACPI 0
33418 { echo "$as_me:$LINENO: result: no" >&5
33419 echo "${ECHO_T}no" >&6; }
33420 cat >>confdefs.h <<\_ACEOF
33421 #define BX_SUPPORT_ACPI 0
33430 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
33431 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
33432 # Check whether --enable-pci was given.
33433 if test "${enable_pci+set}" = set; then
33434 enableval=$enable_pci; if test "$enableval" = yes; then
33435 { echo "$as_me:$LINENO: result: yes" >&5
33436 echo "${ECHO_T}yes" >&6; }
33437 cat >>confdefs.h <<\_ACEOF
33438 #define BX_SUPPORT_PCI 1
33442 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o
'
33444 { echo "$as_me:$LINENO: result: no" >&5
33445 echo "${ECHO_T}no" >&6; }
33446 cat >>confdefs.h <<\_ACEOF
33447 #define BX_SUPPORT_PCI 0
33455 { echo "$as_me:$LINENO: result: no" >&5
33456 echo "${ECHO_T}no" >&6; }
33457 cat >>confdefs.h <<\_ACEOF
33458 #define BX_SUPPORT_PCI 0
33470 # PCI host device support
33472 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
33473 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
33474 # Check whether --enable-pcidev was given.
33475 if test "${enable_pcidev+set}" = set; then
33476 enableval=$enable_pcidev;
33477 if test "$enableval" = "yes"; then
33478 { echo "$as_me:$LINENO: result: yes" >&5
33479 echo "${ECHO_T}yes" >&6; }
33480 if test "$pci" != "1"; then
33481 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
33482 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
33483 { (exit 1); exit 1; }; }
33487 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
33488 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
33489 linux_version=`uname -r`
33490 case "$linux_version" in
33492 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
33493 KERNEL_MODULE_SUFFIX="o"
33496 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
33497 KERNEL_MODULE_SUFFIX="ko"
33500 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
33501 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
33502 { (exit 1); exit 1; }; }
33505 KERNELDIR="/lib/modules/$linux_version/build"
33519 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
33520 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
33521 { (exit 1); exit 1; }; }
33524 cat >>confdefs.h <<\_ACEOF
33525 #define BX_SUPPORT_PCIDEV 1
33528 PCI_OBJ="$PCI_OBJ pcidev.o"
33530 { echo "$as_me:$LINENO: result: no" >&5
33531 echo "${ECHO_T}no" >&6; }
33532 cat >>confdefs.h <<\_ACEOF
33533 #define BX_SUPPORT_PCIDEV 0
33540 { echo "$as_me:$LINENO: result: no" >&5
33541 echo "${ECHO_T}no" >&6; }
33542 cat >>confdefs.h <<\_ACEOF
33543 #define BX_SUPPORT_PCIDEV 0
33553 { echo "$as_me:$LINENO: checking for limited USB support" >&5
33554 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
33555 # Check whether --enable-usb was given.
33556 if test "${enable_usb+set}" = set; then
33557 enableval=$enable_usb; if test "$enableval" = yes; then
33558 { echo "$as_me:$LINENO: result: yes" >&5
33559 echo "${ECHO_T}yes" >&6; }
33560 cat >>confdefs.h <<\_ACEOF
33561 #define BX_SUPPORT_PCIUSB 1
33564 PCI_OBJ="$PCI_OBJ pciusb.o"
33565 USBDEV_OBJS="usb_hid.o usb_msd.o"
33566 SCSI_OBJS="scsi_device.o"
33568 { echo "$as_me:$LINENO: result: no" >&5
33569 echo "${ECHO_T}no" >&6; }
33570 cat >>confdefs.h <<\_ACEOF
33571 #define BX_SUPPORT_PCIUSB 0
33577 { echo "$as_me:$LINENO: result: no" >&5
33578 echo "${ECHO_T}no" >&6; }
33579 cat >>confdefs.h <<\_ACEOF
33580 #define BX_SUPPORT_PCIUSB 0
33591 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
33592 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
33593 # Check whether --enable-pnic was given.
33594 if test "${enable_pnic+set}" = set; then
33595 enableval=$enable_pnic; if test "$enableval" = yes; then
33596 { echo "$as_me:$LINENO: result: yes" >&5
33597 echo "${ECHO_T}yes" >&6; }
33598 cat >>confdefs.h <<\_ACEOF
33599 #define BX_SUPPORT_PCIPNIC 1
33602 PCI_OBJ="$PCI_OBJ pcipnic.o"
33605 { echo "$as_me:$LINENO: result: no" >&5
33606 echo "${ECHO_T}no" >&6; }
33607 cat >>confdefs.h <<\_ACEOF
33608 #define BX_SUPPORT_PCIPNIC 0
33614 { echo "$as_me:$LINENO: result: no" >&5
33615 echo "${ECHO_T}no" >&6; }
33616 cat >>confdefs.h <<\_ACEOF
33617 #define BX_SUPPORT_PCIPNIC 0
33626 if test "$networking" = yes; then
33627 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o
'
33628 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33629 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33630 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33631 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33632 echo $ECHO_N "(cached) $ECHO_C" >&6
33634 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33635 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33637 # Is the header compilable?
33638 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
33639 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
33640 cat >conftest.$ac_ext <<_ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h. */
33646 $ac_includes_default
33647 #include <net/bpf.h>
33649 rm -f conftest.$ac_objext
33650 if { (ac_try="$ac_compile"
33651 case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_compile") 2>conftest.er1
33658 grep -v '^
*+' conftest.er1 >conftest.err
33660 cat conftest.err >&5
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); } && {
33663 test -z "$ac_c_werror_flag" ||
33664 test ! -s conftest.err
33665 } && test -s conftest.$ac_objext; then
33666 ac_header_compiler=yes
33668 echo "$as_me: failed program was:" >&5
33669 sed 's
/^
/|
/' conftest.$ac_ext >&5
33671 ac_header_compiler=no
33674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33676 echo "${ECHO_T}$ac_header_compiler" >&6; }
33678 # Is the header present?
33679 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
33680 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
33681 cat >conftest.$ac_ext <<_ACEOF
33684 cat confdefs.h >>conftest.$ac_ext
33685 cat >>conftest.$ac_ext <<_ACEOF
33686 /* end confdefs.h. */
33687 #include <net/bpf.h>
33689 if { (ac_try="$ac_cpp conftest.$ac_ext"
33690 case "(($ac_try" in
33691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33692 *) ac_try_echo=$ac_try;;
33694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33697 grep -v '^
*+' conftest.er1 >conftest.err
33699 cat conftest.err >&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } >/dev/null && {
33702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33703 test ! -s conftest.err
33705 ac_header_preproc=yes
33707 echo "$as_me: failed program was:" >&5
33708 sed 's
/^
/|
/' conftest.$ac_ext >&5
33710 ac_header_preproc=no
33713 rm -f conftest.err conftest.$ac_ext
33714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33715 echo "${ECHO_T}$ac_header_preproc" >&6; }
33717 # So? What about this header?
33718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33720 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
33721 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33722 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result
" >&5
33723 echo "$as_me: WARNING
: net
/bpf.h
: proceeding with the compiler
's result" >&2;}
33724 ac_header_preproc=yes
33727 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
33728 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
33729 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
33730 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
33731 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
33732 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
33733 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
33734 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
33735 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result
" >&5
33736 echo "$as_me: WARNING
: net
/bpf.h
: proceeding with the preprocessor
's result" >&2;}
33737 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
33738 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
33742 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33743 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33744 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33745 echo $ECHO_N "(cached) $ECHO_C" >&6
33747 ac_cv_header_net_bpf_h=$ac_header_preproc
33749 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33750 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33753 if test $ac_cv_header_net_bpf_h = yes; then
33754 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
33758 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33759 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33760 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33761 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33764 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33765 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33767 # Is the header compilable?
33768 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
33769 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
33770 cat >conftest.$ac_ext <<_ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h. */
33776 $ac_includes_default
33777 #include <netpacket/packet.h>
33779 rm -f conftest.$ac_objext
33780 if { (ac_try="$ac_compile"
33781 case "(($ac_try" in
33782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33783 *) ac_try_echo=$ac_try;;
33785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33786 (eval "$ac_compile") 2>conftest.er1
33788 grep -v '^
*+' conftest.er1 >conftest.err
33790 cat conftest.err >&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } && {
33793 test -z "$ac_c_werror_flag" ||
33794 test ! -s conftest.err
33795 } && test -s conftest.$ac_objext; then
33796 ac_header_compiler=yes
33798 echo "$as_me: failed program was:" >&5
33799 sed 's
/^
/|
/' conftest.$ac_ext >&5
33801 ac_header_compiler=no
33804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33806 echo "${ECHO_T}$ac_header_compiler" >&6; }
33808 # Is the header present?
33809 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
33810 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
33811 cat >conftest.$ac_ext <<_ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h. */
33817 #include <netpacket/packet.h>
33819 if { (ac_try="$ac_cpp conftest.$ac_ext"
33820 case "(($ac_try" in
33821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822 *) ac_try_echo=$ac_try;;
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33827 grep -v '^
*+' conftest.er1 >conftest.err
33829 cat conftest.err >&5
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); } >/dev/null && {
33832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33833 test ! -s conftest.err
33835 ac_header_preproc=yes
33837 echo "$as_me: failed program was:" >&5
33838 sed 's
/^
/|
/' conftest.$ac_ext >&5
33840 ac_header_preproc=no
33843 rm -f conftest.err conftest.$ac_ext
33844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33845 echo "${ECHO_T}$ac_header_preproc" >&6; }
33847 # So? What about this header?
33848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33850 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
33851 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33852 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result
" >&5
33853 echo "$as_me: WARNING
: netpacket
/packet.h
: proceeding with the compiler
's result" >&2;}
33854 ac_header_preproc=yes
33857 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
33858 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
33860 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
33861 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
33862 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
33863 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
33864 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
33865 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result
" >&5
33866 echo "$as_me: WARNING
: netpacket
/packet.h
: proceeding with the preprocessor
's result" >&2;}
33867 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
33868 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
33872 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33873 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33874 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33877 ac_cv_header_netpacket_packet_h=$ac_header_preproc
33879 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33880 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33883 if test $ac_cv_header_netpacket_packet_h = yes; then
33884 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
33889 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
33890 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
33892 *-macosx* | *-darwin*)
33893 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
33894 cat >>confdefs.h <<\_ACEOF
33895 #define HAVE_TUNTAP 1
33900 { echo "$as_me:$LINENO: checking for net/if.h" >&5
33901 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
33902 if test "${ac_cv_header_net_if_h+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33905 cat >conftest.$ac_ext <<_ACEOF
33908 cat confdefs.h >>conftest.$ac_ext
33909 cat >>conftest.$ac_ext <<_ACEOF
33910 /* end confdefs.h. */
33912 #include <sys/types.h>
33913 #include <sys/socket.h>
33916 #include <net/if.h>
33918 rm -f conftest.$ac_objext
33919 if { (ac_try="$ac_compile"
33920 case "(($ac_try" in
33921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922 *) ac_try_echo=$ac_try;;
33924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925 (eval "$ac_compile") 2>conftest.er1
33927 grep -v '^
*+' conftest.er1 >conftest.err
33929 cat conftest.err >&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); } && {
33932 test -z "$ac_c_werror_flag" ||
33933 test ! -s conftest.err
33934 } && test -s conftest.$ac_objext; then
33935 ac_cv_header_net_if_h=yes
33937 echo "$as_me: failed program was:" >&5
33938 sed 's
/^
/|
/' conftest.$ac_ext >&5
33940 ac_cv_header_net_if_h=no
33943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
33946 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
33947 if test $ac_cv_header_net_if_h = yes; then
33950 cat >>confdefs.h <<\_ACEOF
33951 #define BX_HAVE_NET_IF_H 1
33958 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
33959 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
33960 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
33961 echo $ECHO_N "(cached) $ECHO_C" >&6
33963 cat >conftest.$ac_ext <<_ACEOF
33966 cat confdefs.h >>conftest.$ac_ext
33967 cat >>conftest.$ac_ext <<_ACEOF
33968 /* end confdefs.h. */
33970 #include <asm/types.h>
33971 #include <sys/socket.h>
33974 #include <linux/netlink.h>
33976 rm -f conftest.$ac_objext
33977 if { (ac_try="$ac_compile"
33978 case "(($ac_try" in
33979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33980 *) ac_try_echo=$ac_try;;
33982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33983 (eval "$ac_compile") 2>conftest.er1
33985 grep -v '^
*+' conftest.er1 >conftest.err
33987 cat conftest.err >&5
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); } && {
33990 test -z "$ac_c_werror_flag" ||
33991 test ! -s conftest.err
33992 } && test -s conftest.$ac_objext; then
33993 ac_cv_header_linux_netlink_h=yes
33995 echo "$as_me: failed program was:" >&5
33996 sed 's
/^
/|
/' conftest.$ac_ext >&5
33998 ac_cv_header_linux_netlink_h=no
34001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34003 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
34004 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
34005 if test $ac_cv_header_linux_netlink_h = yes; then
34013 if test "$use_ethertap" = yes; then
34014 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
34015 cat >>confdefs.h <<\_ACEOF
34016 #define HAVE_ETHERTAP 1
34019 cat >>confdefs.h <<\_ACEOF
34025 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
34026 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
34027 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
34028 echo $ECHO_N "(cached) $ECHO_C" >&6
34030 cat >conftest.$ac_ext <<_ACEOF
34033 cat confdefs.h >>conftest.$ac_ext
34034 cat >>conftest.$ac_ext <<_ACEOF
34035 /* end confdefs.h. */
34037 #include <sys/types.h>
34038 #include <sys/socket.h>
34039 #include <net/if.h>
34042 #include <net/if_tun.h>
34044 rm -f conftest.$ac_objext
34045 if { (ac_try="$ac_compile"
34046 case "(($ac_try" in
34047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048 *) ac_try_echo=$ac_try;;
34050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34051 (eval "$ac_compile") 2>conftest.er1
34053 grep -v '^
*+' conftest.er1 >conftest.err
34055 cat conftest.err >&5
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); } && {
34058 test -z "$ac_c_werror_flag" ||
34059 test ! -s conftest.err
34060 } && test -s conftest.$ac_objext; then
34061 ac_cv_header_net_if_tun_h=yes
34063 echo "$as_me: failed program was:" >&5
34064 sed 's
/^
/|
/' conftest.$ac_ext >&5
34066 ac_cv_header_net_if_tun_h=no
34069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34071 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
34072 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
34073 if test $ac_cv_header_net_if_tun_h = yes; then
34080 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
34081 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
34082 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
34083 echo $ECHO_N "(cached) $ECHO_C" >&6
34085 cat >conftest.$ac_ext <<_ACEOF
34088 cat confdefs.h >>conftest.$ac_ext
34089 cat >>conftest.$ac_ext <<_ACEOF
34090 /* end confdefs.h. */
34092 #include <asm/types.h>
34093 #include <sys/socket.h>
34096 #include <linux/if_tun.h>
34098 rm -f conftest.$ac_objext
34099 if { (ac_try="$ac_compile"
34100 case "(($ac_try" in
34101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102 *) ac_try_echo=$ac_try;;
34104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105 (eval "$ac_compile") 2>conftest.er1
34107 grep -v '^
*+' conftest.er1 >conftest.err
34109 cat conftest.err >&5
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); } && {
34112 test -z "$ac_c_werror_flag" ||
34113 test ! -s conftest.err
34114 } && test -s conftest.$ac_objext; then
34115 ac_cv_header_linux_if_tun_h=yes
34117 echo "$as_me: failed program was:" >&5
34118 sed 's
/^
/|
/' conftest.$ac_ext >&5
34120 ac_cv_header_linux_if_tun_h=no
34123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34125 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
34126 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
34127 if test $ac_cv_header_linux_if_tun_h = yes; then
34134 if test "$use_tuntap" = yes; then
34135 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
34136 cat >>confdefs.h <<\_ACEOF
34137 #define HAVE_TUNTAP 1
34144 cat >>confdefs.h <<\_ACEOF
34145 #define BX_NETWORKING 1
34149 cat >>confdefs.h <<\_ACEOF
34150 #define BX_NETWORKING 0
34158 { echo "$as_me:$LINENO: checking for large pages support" >&5
34159 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
34160 # Check whether --enable-large-pages was given.
34161 if test "${enable_large_pages+set}" = set; then
34162 enableval=$enable_large_pages; if test "$enableval" = yes; then
34163 { echo "$as_me:$LINENO: result: yes" >&5
34164 echo "${ECHO_T}yes" >&6; }
34165 cat >>confdefs.h <<\_ACEOF
34166 #define BX_SUPPORT_LARGE_PAGES 1
34169 support_large_pages=1
34171 { echo "$as_me:$LINENO: result: no" >&5
34172 echo "${ECHO_T}no" >&6; }
34173 cat >>confdefs.h <<\_ACEOF
34174 #define BX_SUPPORT_LARGE_PAGES 0
34177 support_large_pages=0
34181 if test "$bx_cpu_level" -gt 4; then
34182 { echo "$as_me:$LINENO: result: yes" >&5
34183 echo "${ECHO_T}yes" >&6; }
34184 cat >>confdefs.h <<\_ACEOF
34185 #define BX_SUPPORT_LARGE_PAGES 1
34188 support_large_pages=1
34190 { echo "$as_me:$LINENO: result: no" >&5
34191 echo "${ECHO_T}no" >&6; }
34192 cat >>confdefs.h <<\_ACEOF
34193 #define BX_SUPPORT_LARGE_PAGES 0
34196 support_large_pages=0
34204 { echo "$as_me:$LINENO: checking for PAE support" >&5
34205 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
34206 # Check whether --enable-pae was given.
34207 if test "${enable_pae+set}" = set; then
34208 enableval=$enable_pae; if test "$enableval" = yes; then
34209 { echo "$as_me:$LINENO: result: yes" >&5
34210 echo "${ECHO_T}yes" >&6; }
34211 cat >>confdefs.h <<\_ACEOF
34212 #define BX_SUPPORT_PAE 1
34217 { echo "$as_me:$LINENO: result: no" >&5
34218 echo "${ECHO_T}no" >&6; }
34219 cat >>confdefs.h <<\_ACEOF
34220 #define BX_SUPPORT_PAE 0
34227 if test "$bx_cpu_level" -gt 5; then
34228 { echo "$as_me:$LINENO: result: yes" >&5
34229 echo "${ECHO_T}yes" >&6; }
34230 cat >>confdefs.h <<\_ACEOF
34231 #define BX_SUPPORT_PAE 1
34236 { echo "$as_me:$LINENO: result: no" >&5
34237 echo "${ECHO_T}no" >&6; }
34238 cat >>confdefs.h <<\_ACEOF
34239 #define BX_SUPPORT_PAE 0
34249 { echo "$as_me:$LINENO: checking for global pages support" >&5
34250 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
34251 # Check whether --enable-global-pages was given.
34252 if test "${enable_global_pages+set}" = set; then
34253 enableval=$enable_global_pages; if test "$enableval" = yes; then
34254 { echo "$as_me:$LINENO: result: yes" >&5
34255 echo "${ECHO_T}yes" >&6; }
34256 cat >>confdefs.h <<\_ACEOF
34257 #define BX_SUPPORT_GLOBAL_PAGES 1
34260 support_global_pages=1
34262 { echo "$as_me:$LINENO: result: no" >&5
34263 echo "${ECHO_T}no" >&6; }
34264 cat >>confdefs.h <<\_ACEOF
34265 #define BX_SUPPORT_GLOBAL_PAGES 0
34268 support_global_pages=0
34272 if test "$bx_cpu_level" -gt 5; then
34273 # enable by default
34274 { echo "$as_me:$LINENO: result: yes" >&5
34275 echo "${ECHO_T}yes" >&6; }
34276 cat >>confdefs.h <<\_ACEOF
34277 #define BX_SUPPORT_GLOBAL_PAGES 1
34280 support_global_pages=1
34282 { echo "$as_me:$LINENO: result: no" >&5
34283 echo "${ECHO_T}no" >&6; }
34284 cat >>confdefs.h <<\_ACEOF
34285 #define BX_SUPPORT_GLOBAL_PAGES 0
34288 support_global_pages=0
34295 { echo "$as_me:$LINENO: checking for long mode 1G pages support" >&5
34296 echo $ECHO_N "checking for long mode 1G pages support... $ECHO_C" >&6; }
34297 # Check whether --enable-1g-pages was given.
34298 if test "${enable_1g_pages+set}" = set; then
34299 enableval=$enable_1g_pages; if test "$enableval" = yes; then
34300 { echo "$as_me:$LINENO: result: yes" >&5
34301 echo "${ECHO_T}yes" >&6; }
34302 cat >>confdefs.h <<\_ACEOF
34303 #define BX_SUPPORT_1G_PAGES 1
34308 { echo "$as_me:$LINENO: result: no" >&5
34309 echo "${ECHO_T}no" >&6; }
34310 cat >>confdefs.h <<\_ACEOF
34311 #define BX_SUPPORT_1G_PAGES 0
34318 { echo "$as_me:$LINENO: result: no" >&5
34319 echo "${ECHO_T}no" >&6; }
34320 cat >>confdefs.h <<\_ACEOF
34321 #define BX_SUPPORT_1G_PAGES 0
34330 if test "$support_1g_pages" = 1 -a "$use_x86_64" = 0; then
34331 { { echo "$as_me:$LINENO: error: x86-64 mode is required for 1G pages support" >&5
34332 echo "$as_me: error: x86-64 mode is required for 1G pages support" >&2;}
34333 { (exit 1); exit 1; }; }
34336 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
34337 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
34338 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
34339 { (exit 1); exit 1; }; }
34342 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
34343 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
34344 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
34345 { (exit 1); exit 1; }; }
34348 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
34349 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
34350 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
34351 { (exit 1); exit 1; }; }
34354 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
34355 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
34356 # Check whether --enable-mtrr was given.
34357 if test "${enable_mtrr+set}" = set; then
34358 enableval=$enable_mtrr; if test "$enableval" = yes; then
34359 { echo "$as_me:$LINENO: result: yes" >&5
34360 echo "${ECHO_T}yes" >&6; }
34361 cat >>confdefs.h <<\_ACEOF
34362 #define BX_SUPPORT_MTRR 1
34366 { echo "$as_me:$LINENO: result: no" >&5
34367 echo "${ECHO_T}no" >&6; }
34368 cat >>confdefs.h <<\_ACEOF
34369 #define BX_SUPPORT_MTRR 0
34375 if test "$bx_cpu_level" -gt 5; then
34376 # enable by default
34377 { echo "$as_me:$LINENO: result: yes" >&5
34378 echo "${ECHO_T}yes" >&6; }
34379 cat >>confdefs.h <<\_ACEOF
34380 #define BX_SUPPORT_MTRR 1
34384 { echo "$as_me:$LINENO: result: no" >&5
34385 echo "${ECHO_T}no" >&6; }
34386 cat >>confdefs.h <<\_ACEOF
34387 #define BX_SUPPORT_MTRR 0
34396 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
34397 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
34398 # Check whether --enable-repeat-speedups was given.
34399 if test "${enable_repeat_speedups+set}" = set; then
34400 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
34401 { echo "$as_me:$LINENO: result: yes" >&5
34402 echo "${ECHO_T}yes" >&6; }
34405 { echo "$as_me:$LINENO: result: no" >&5
34406 echo "${ECHO_T}no" >&6; }
34411 { echo "$as_me:$LINENO: result: no" >&5
34412 echo "${ECHO_T}no" >&6; }
34419 { echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
34420 echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
34421 # Check whether --enable-trace-cache was given.
34422 if test "${enable_trace_cache+set}" = set; then
34423 enableval=$enable_trace_cache; if test "$enableval" = yes; then
34424 { echo "$as_me:$LINENO: result: yes" >&5
34425 echo "${ECHO_T}yes" >&6; }
34426 speedup_TraceCache=1
34428 { echo "$as_me:$LINENO: result: no" >&5
34429 echo "${ECHO_T}no" >&6; }
34430 speedup_TraceCache=0
34434 if test "$speedup_TraceCache " = 1; then
34435 { echo "$as_me:$LINENO: result: yes" >&5
34436 echo "${ECHO_T}yes" >&6; }
34437 speedup_TraceCache=1
34439 { echo "$as_me:$LINENO: result: no" >&5
34440 echo "${ECHO_T}no" >&6; }
34441 speedup_TraceCache=0
34448 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
34449 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
34450 # Check whether --enable-icache was given.
34451 if test "${enable_icache+set}" = set; then
34452 enableval=$enable_icache; if test "$enableval" = yes; then
34453 { echo "$as_me:$LINENO: result: yes" >&5
34454 echo "${ECHO_T}yes" >&6; }
34457 { echo "$as_me:$LINENO: result: no" >&5
34458 echo "${ECHO_T}no" >&6; }
34463 { echo "$as_me:$LINENO: result: no" >&5
34464 echo "${ECHO_T}no" >&6; }
34471 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
34472 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
34473 # Check whether --enable-fast-function-calls was given.
34474 if test "${enable_fast_function_calls+set}" = set; then
34475 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
34476 { echo "$as_me:$LINENO: result: yes" >&5
34477 echo "${ECHO_T}yes" >&6; }
34480 { echo "$as_me:$LINENO: result: no" >&5
34481 echo "${ECHO_T}no" >&6; }
34486 { echo "$as_me:$LINENO: result: no" >&5
34487 echo "${ECHO_T}no" >&6; }
34494 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
34495 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
34496 # Check whether --enable-host-specific-asms was given.
34497 if test "${enable_host_specific_asms+set}" = set; then
34498 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
34499 { echo "$as_me:$LINENO: result: yes" >&5
34500 echo "${ECHO_T}yes" >&6; }
34501 speedup_host_specific_asms=1
34503 { echo "$as_me:$LINENO: result: no" >&5
34504 echo "${ECHO_T}no" >&6; }
34505 speedup_host_specific_asms=0
34509 { echo "$as_me:$LINENO: result: no" >&5
34510 echo "${ECHO_T}no" >&6; }
34511 speedup_host_specific_asms=0
34517 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
34518 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
34519 # Check whether --enable-ignore-bad-msr was given.
34520 if test "${enable_ignore_bad_msr+set}" = set; then
34521 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
34522 { echo "$as_me:$LINENO: result: yes" >&5
34523 echo "${ECHO_T}yes" >&6; }
34524 cat >>confdefs.h <<\_ACEOF
34525 #define BX_IGNORE_BAD_MSR 1
34529 { echo "$as_me:$LINENO: result: no" >&5
34530 echo "${ECHO_T}no" >&6; }
34531 cat >>confdefs.h <<\_ACEOF
34532 #define BX_IGNORE_BAD_MSR 0
34538 { echo "$as_me:$LINENO: result: yes" >&5
34539 echo "${ECHO_T}yes" >&6; }
34540 cat >>confdefs.h <<\_ACEOF
34541 #define BX_IGNORE_BAD_MSR 1
34549 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
34550 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
34551 # Check whether --enable-port-e9-hack was given.
34552 if test "${enable_port_e9_hack+set}" = set; then
34553 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
34554 { echo "$as_me:$LINENO: result: yes" >&5
34555 echo "${ECHO_T}yes" >&6; }
34556 cat >>confdefs.h <<\_ACEOF
34557 #define BX_PORT_E9_HACK 1
34561 { echo "$as_me:$LINENO: result: no" >&5
34562 echo "${ECHO_T}no" >&6; }
34563 cat >>confdefs.h <<\_ACEOF
34564 #define BX_PORT_E9_HACK 0
34570 { echo "$as_me:$LINENO: result: yes" >&5
34571 echo "${ECHO_T}yes" >&6; }
34572 cat >>confdefs.h <<\_ACEOF
34573 #define BX_PORT_E9_HACK 1
34581 { echo "$as_me:$LINENO: checking show IPS" >&5
34582 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
34583 # Check whether --enable-show-ips was given.
34584 if test "${enable_show_ips+set}" = set; then
34585 enableval=$enable_show_ips; if test "$enableval" = yes; then
34586 { echo "$as_me:$LINENO: result: yes" >&5
34587 echo "${ECHO_T}yes" >&6; }
34588 cat >>confdefs.h <<\_ACEOF
34589 #define BX_SHOW_IPS 1
34593 { echo "$as_me:$LINENO: result: no" >&5
34594 echo "${ECHO_T}no" >&6; }
34595 cat >>confdefs.h <<\_ACEOF
34596 #define BX_SHOW_IPS 0
34602 { echo "$as_me:$LINENO: result: no" >&5
34603 echo "${ECHO_T}no" >&6; }
34604 cat >>confdefs.h <<\_ACEOF
34605 #define BX_SHOW_IPS 0
34613 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
34614 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
34615 # Check whether --enable-cpp was given.
34616 if test "${enable_cpp+set}" = set; then
34617 enableval=$enable_cpp; if test "$enableval" = yes; then
34618 { echo "$as_me:$LINENO: result: yes" >&5
34619 echo "${ECHO_T}yes" >&6; }
34620 SUFFIX_LINE='.SUFFIXES
: .cpp
'
34623 { echo "$as_me:$LINENO: result: no" >&5
34624 echo "${ECHO_T}no" >&6; }
34625 SUFFIX_LINE='.SUFFIXES
: .cc
'
34630 { echo "$as_me:$LINENO: result: no" >&5
34631 echo "${ECHO_T}no" >&6; }
34632 SUFFIX_LINE='.SUFFIXES
: .cc
'
34641 if test "$enable_cpp" = yes; then
34642 echo "moving .cc source files to .cpp"
34643 sourcefiles=`find . -name "*.cc" -print`
34644 if test "$sourcefiles" != ""; then
34645 for ccname in $sourcefiles
34647 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
34648 echo "mv $ccname $cppname"
34649 mv $ccname $cppname
34652 echo "no more .cc source files to rename"
34658 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
34659 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
34660 # Check whether --enable-debugger was given.
34661 if test "${enable_debugger+set}" = set; then
34662 enableval=$enable_debugger; if test "$enableval" = yes; then
34663 { echo "$as_me:$LINENO: result: yes" >&5
34664 echo "${ECHO_T}yes" >&6; }
34665 cat >>confdefs.h <<\_ACEOF
34666 #define BX_DEBUGGER 1
34669 DEBUGGER_VAR='$
(DEBUGGER_LIB
)'
34672 { echo "$as_me:$LINENO: result: no" >&5
34673 echo "${ECHO_T}no" >&6; }
34674 cat >>confdefs.h <<\_ACEOF
34675 #define BX_DEBUGGER 0
34684 { echo "$as_me:$LINENO: result: no" >&5
34685 echo "${ECHO_T}no" >&6; }
34686 cat >>confdefs.h <<\_ACEOF
34687 #define BX_DEBUGGER 0
34698 { echo "$as_me:$LINENO: checking for disassembler support" >&5
34699 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
34700 # Check whether --enable-disasm was given.
34701 if test "${enable_disasm+set}" = set; then
34702 enableval=$enable_disasm; if test "$enableval" = yes; then
34703 { echo "$as_me:$LINENO: result: yes" >&5
34704 echo "${ECHO_T}yes" >&6; }
34705 cat >>confdefs.h <<\_ACEOF
34706 #define BX_DISASM 1
34709 DISASM_VAR='$
(DISASM_LIB
)'
34711 { echo "$as_me:$LINENO: result: no" >&5
34712 echo "${ECHO_T}no" >&6; }
34713 if test "$bx_debugger" = 1; then
34714 echo "ERROR: debugger is enabled, so --enable-disasm is required"
34717 cat >>confdefs.h <<\_ACEOF
34718 #define BX_DISASM 0
34725 { echo "$as_me:$LINENO: result: yes" >&5
34726 echo "${ECHO_T}yes" >&6; }
34727 cat >>confdefs.h <<\_ACEOF
34728 #define BX_DISASM 1
34731 DISASM_VAR='$
(DISASM_LIB
)'
34737 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
34738 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
34739 # Check whether --enable-all-optimizations was given.
34740 if test "${enable_all_optimizations+set}" = set; then
34741 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
34742 { echo "$as_me:$LINENO: result: yes" >&5
34743 echo "${ECHO_T}yes" >&6; }
34746 { echo "$as_me:$LINENO: result: no" >&5
34747 echo "${ECHO_T}no" >&6; }
34753 { echo "$as_me:$LINENO: result: no" >&5
34754 echo "${ECHO_T}no" >&6; }
34762 # Optimizations section. Decide what the status of various optimizations
34763 # should be based on configure choices and other factors.
34766 if test "$speedups_all" = 1; then
34767 # Configure requested to force all options enabled.
34770 speedup_TraceCache=1
34774 if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
34775 { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
34776 echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
34777 { (exit 1); exit 1; }; }
34780 if test "$speedup_repeat" = 1; then
34781 cat >>confdefs.h <<\_ACEOF
34782 #define BX_SupportRepeatSpeedups 1
34786 cat >>confdefs.h <<\_ACEOF
34787 #define BX_SupportRepeatSpeedups 0
34792 if test "$speedup_iCache" = 1; then
34793 cat >>confdefs.h <<\_ACEOF
34794 #define BX_SUPPORT_ICACHE 1
34798 cat >>confdefs.h <<\_ACEOF
34799 #define BX_SUPPORT_ICACHE 0
34804 if test "$speedup_host_specific_asms" = 1; then
34805 cat >>confdefs.h <<\_ACEOF
34806 #define BX_SupportHostAsms 1
34810 cat >>confdefs.h <<\_ACEOF
34811 #define BX_SupportHostAsms 0
34816 if test "$speedup_fastcall" = 1; then
34817 cat >>confdefs.h <<\_ACEOF
34818 #define BX_FAST_FUNC_CALL 1
34822 cat >>confdefs.h <<\_ACEOF
34823 #define BX_FAST_FUNC_CALL 0
34828 if test "$speedup_TraceCache" = 1; then
34829 cat >>confdefs.h <<\_ACEOF
34830 #define BX_SUPPORT_TRACE_CACHE 1
34834 cat >>confdefs.h <<\_ACEOF
34835 #define BX_SUPPORT_TRACE_CACHE 0
34842 rl_without_curses_ok=no
34843 rl_with_curses_ok=no
34845 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
34846 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
34847 # Check whether --enable-readline was given.
34848 if test "${enable_readline+set}" = set; then
34849 enableval=$enable_readline; if test "$enableval" = yes; then
34850 { echo "$as_me:$LINENO: result: yes" >&5
34851 echo "${ECHO_T}yes" >&6; }
34854 { echo "$as_me:$LINENO: result: no" >&5
34855 echo "${ECHO_T}no" >&6; }
34860 { echo "$as_me:$LINENO: result: yes" >&5
34861 echo "${ECHO_T}yes" >&6; }
34869 { echo "$as_me:$LINENO: checking whether to use readline" >&5
34870 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
34871 if test "$want_readline" = yes; then
34872 if test "$bx_debugger" = 1; then
34874 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
34875 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
34877 LIBS="$LIBS -lreadline"
34878 if test "$cross_compiling" = yes; then
34879 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34880 See \`config.log' for more details.
" >&5
34881 echo "$as_me: error
: cannot run
test program
while cross compiling
34882 See \
`config.log' for more details." >&2;}
34883 { (exit 1); exit 1; }; }
34885 cat >conftest.$ac_ext <<_ACEOF
34888 cat confdefs.h >>conftest.$ac_ext
34889 cat >>conftest.$ac_ext <<_ACEOF
34890 /* end confdefs.h. */
34893 #include <readline/readline.h>
34894 int main() { rl_initialize(); exit(0); }
34897 rm -f conftest$ac_exeext
34898 if { (ac_try="$ac_link"
34899 case "(($ac_try" in
34900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34901 *) ac_try_echo
=$ac_try;;
34903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34904 (eval "$ac_link") 2>&5
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34908 { (case "(($ac_try" in
34909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34910 *) ac_try_echo=$ac_try;;
34912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34913 (eval "$ac_try") 2>&5
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); }; }; then
34917 { echo "$as_me:$LINENO: result: yes" >&5
34918 echo "${ECHO_T}yes" >&6; }
34919 rl_without_curses_ok=yes
34921 echo "$as_me: program exited with status $ac_status" >&5
34922 echo "$as_me: failed program was:" >&5
34923 sed 's/^/| /' conftest.$ac_ext >&5
34925 ( exit $ac_status )
34926 { echo "$as_me:$LINENO: result: no" >&5
34927 echo "${ECHO_T}no" >&6; }
34930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34934 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
34935 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
34936 LIBS="$LIBS -lcurses"
34937 if test "$cross_compiling" = yes; then
34938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34939 See \`config.log
' for more details." >&5
34940 echo "$as_me: error: cannot run test program while cross compiling
34941 See \`config.log' for more details.
" >&2;}
34942 { (exit 1); exit 1; }; }
34944 cat >conftest.$ac_ext <<_ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h. */
34952 #include <readline/readline.h>
34953 int main() { rl_initialize(); exit(0); }
34956 rm -f conftest$ac_exeext
34957 if { (ac_try="$ac_link"
34958 case "(($ac_try" in
34959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34960 *) ac_try_echo=$ac_try;;
34962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34963 (eval "$ac_link") 2>&5
34965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34967 { (case "(($ac_try" in
34968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34969 *) ac_try_echo=$ac_try;;
34971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34972 (eval "$ac_try") 2>&5
34974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34975 (exit $ac_status); }; }; then
34976 { echo "$as_me:$LINENO: result
: yes" >&5
34977 echo "${ECHO_T}yes" >&6; }
34978 rl_with_curses_ok=yes
34980 echo "$as_me: program exited with status
$ac_status" >&5
34981 echo "$as_me: failed program was
:" >&5
34982 sed 's/^/| /' conftest.$ac_ext >&5
34984 ( exit $ac_status )
34985 { echo "$as_me:$LINENO: result
: no
" >&5
34986 echo "${ECHO_T}no
" >&6; }
34989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34995 if test "$rl_without_curses_ok" = yes; then
34996 { echo "$as_me:$LINENO: result
: yes" >&5
34997 echo "${ECHO_T}yes" >&6; }
34998 cat >>confdefs.h <<\_ACEOF
34999 #define HAVE_LIBREADLINE 1
35002 READLINE_LIB="-lreadline"
35004 elif test "$rl_with_curses_ok" = yes; then
35005 { echo "$as_me:$LINENO: result
: yes" >&5
35006 echo "${ECHO_T}yes" >&6; }
35007 cat >>confdefs.h <<\_ACEOF
35008 #define HAVE_LIBREADLINE 1
35011 READLINE_LIB="-lreadline -lcurses"
35014 { echo "$as_me:$LINENO: result
: no
" >&5
35015 echo "${ECHO_T}no
" >&6; }
35016 echo WARNING: The readline library was disabled because it was not found.
35019 { echo "$as_me:$LINENO: result
: no
" >&5
35020 echo "${ECHO_T}no
" >&6; }
35023 { echo "$as_me:$LINENO: result
: no
" >&5
35024 echo "${ECHO_T}no
" >&6; }
35028 if test "${ac_cv_header_readline_history_h+set}" = set; then
35029 { echo "$as_me:$LINENO: checking
for readline
/history.h
" >&5
35030 echo $ECHO_N "checking
for readline
/history.h...
$ECHO_C" >&6; }
35031 if test "${ac_cv_header_readline_history_h+set}" = set; then
35032 echo $ECHO_N "(cached
) $ECHO_C" >&6
35034 { echo "$as_me:$LINENO: result
: $ac_cv_header_readline_history_h" >&5
35035 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35037 # Is the header compilable?
35038 { echo "$as_me:$LINENO: checking readline
/history.h usability
" >&5
35039 echo $ECHO_N "checking readline
/history.h usability...
$ECHO_C" >&6; }
35040 cat >conftest.$ac_ext <<_ACEOF
35043 cat confdefs.h >>conftest.$ac_ext
35044 cat >>conftest.$ac_ext <<_ACEOF
35045 /* end confdefs.h. */
35046 $ac_includes_default
35047 #include <readline/history.h>
35049 rm -f conftest.$ac_objext
35050 if { (ac_try="$ac_compile"
35051 case "(($ac_try" in
35052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053 *) ac_try_echo=$ac_try;;
35055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
35056 (eval "$ac_compile") 2>conftest.er1
35058 grep -v '^ *+' conftest.er1 >conftest.err
35060 cat conftest.err >&5
35061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35062 (exit $ac_status); } && {
35063 test -z "$ac_c_werror_flag" ||
35064 test ! -s conftest.err
35065 } && test -s conftest.$ac_objext; then
35066 ac_header_compiler=yes
35068 echo "$as_me: failed program was
:" >&5
35069 sed 's/^/| /' conftest.$ac_ext >&5
35071 ac_header_compiler=no
35074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35075 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
35076 echo "${ECHO_T}$ac_header_compiler" >&6; }
35078 # Is the header present?
35079 { echo "$as_me:$LINENO: checking readline
/history.h presence
" >&5
35080 echo $ECHO_N "checking readline
/history.h presence...
$ECHO_C" >&6; }
35081 cat >conftest.$ac_ext <<_ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h. */
35087 #include <readline/history.h>
35089 if { (ac_try="$ac_cpp conftest.
$ac_ext"
35090 case "(($ac_try" in
35091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35092 *) ac_try_echo=$ac_try;;
35094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
35095 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
35097 grep -v '^ *+' conftest.er1 >conftest.err
35099 cat conftest.err >&5
35100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35101 (exit $ac_status); } >/dev/null && {
35102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35103 test ! -s conftest.err
35105 ac_header_preproc=yes
35107 echo "$as_me: failed program was
:" >&5
35108 sed 's/^/| /' conftest.$ac_ext >&5
35110 ac_header_preproc=no
35113 rm -f conftest.err conftest.$ac_ext
35114 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
35115 echo "${ECHO_T}$ac_header_preproc" >&6; }
35117 # So? What about this header?
35118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35120 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
35121 echo "$as_me: WARNING
: readline
/history.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
35122 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: proceeding with the compiler
's result" >&5
35123 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result
" >&2;}
35124 ac_header_preproc=yes
35127 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: present but cannot be compiled
" >&5
35128 echo "$as_me: WARNING
: readline
/history.h
: present but cannot be compiled
" >&2;}
35129 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: check
for missing prerequisite headers?
" >&5
35130 echo "$as_me: WARNING
: readline
/history.h
: check
for missing prerequisite headers?
" >&2;}
35131 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: see the Autoconf documentation
" >&5
35132 echo "$as_me: WARNING
: readline
/history.h
: see the Autoconf documentation
" >&2;}
35133 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: section
\"Present But Cannot Be Compiled
\"" >&5
35134 echo "$as_me: WARNING
: readline
/history.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
35135 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: proceeding with the preprocessor
's result" >&5
35136 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result
" >&2;}
35137 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: in the future
, the compiler will take precedence
" >&5
35138 echo "$as_me: WARNING
: readline
/history.h
: in the future
, the compiler will take precedence
" >&2;}
35142 { echo "$as_me:$LINENO: checking
for readline
/history.h
" >&5
35143 echo $ECHO_N "checking
for readline
/history.h...
$ECHO_C" >&6; }
35144 if test "${ac_cv_header_readline_history_h+set}" = set; then
35145 echo $ECHO_N "(cached
) $ECHO_C" >&6
35147 ac_cv_header_readline_history_h=$ac_header_preproc
35149 { echo "$as_me:$LINENO: result
: $ac_cv_header_readline_history_h" >&5
35150 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35153 if test $ac_cv_header_readline_history_h = yes; then
35154 cat >>confdefs.h <<\_ACEOF
35155 #define HAVE_READLINE_HISTORY_H 1
35163 INSTRUMENT_DIR='instrument/stubs'
35165 { echo "$as_me:$LINENO: checking
for instrumentation support
" >&5
35166 echo $ECHO_N "checking
for instrumentation support...
$ECHO_C" >&6; }
35167 # Check whether --enable-instrumentation was given.
35168 if test "${enable_instrumentation+set}" = set; then
35169 enableval=$enable_instrumentation; if test "$enableval" = yes; then
35170 { echo "$as_me:$LINENO: result
: yes" >&5
35171 echo "${ECHO_T}yes" >&6; }
35172 cat >>confdefs.h <<\_ACEOF
35173 #define BX_INSTRUMENTATION 1
35176 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35177 elif test "$enableval" = no; then
35178 { echo "$as_me:$LINENO: result
: no
" >&5
35179 echo "${ECHO_T}no
" >&6; }
35180 cat >>confdefs.h <<\_ACEOF
35181 #define BX_INSTRUMENTATION 0
35186 { echo "$as_me:$LINENO: result
: yes" >&5
35187 echo "${ECHO_T}yes" >&6; }
35188 cat >>confdefs.h <<\_ACEOF
35189 #define BX_INSTRUMENTATION 1
35192 INSTRUMENT_DIR=$enableval
35193 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35197 { echo "$as_me:$LINENO: result
: no
" >&5
35198 echo "${ECHO_T}no
" >&6; }
35199 cat >>confdefs.h <<\_ACEOF
35200 #define BX_INSTRUMENTATION 0
35211 if test "$bx_plugins" = 0; then
35214 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib
"
35216 *-cygwin* | *-mingw32*)
35217 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
35222 { echo "$as_me:$LINENO: checking
enable logging
" >&5
35223 echo $ECHO_N "checking
enable logging...
$ECHO_C" >&6; }
35224 # Check whether --enable-logging was given.
35225 if test "${enable_logging+set}" = set; then
35226 enableval=$enable_logging; if test "$enableval" = yes; then
35227 { echo "$as_me:$LINENO: result
: yes" >&5
35228 echo "${ECHO_T}yes" >&6; }
35229 cat >>confdefs.h <<\_ACEOF
35230 #define BX_NO_LOGGING 0
35234 { echo "$as_me:$LINENO: result
: no
" >&5
35235 echo "${ECHO_T}no
" >&6; }
35236 cat >>confdefs.h <<\_ACEOF
35237 #define BX_NO_LOGGING 1
35243 { echo "$as_me:$LINENO: result
: yes" >&5
35244 echo "${ECHO_T}yes" >&6; }
35245 cat >>confdefs.h <<\_ACEOF
35246 #define BX_NO_LOGGING 0
35254 { echo "$as_me:$LINENO: checking
enable assert checks
" >&5
35255 echo $ECHO_N "checking
enable assert checks...
$ECHO_C" >&6; }
35256 # Check whether --enable-assert-checks was given.
35257 if test "${enable_assert_checks+set}" = set; then
35258 enableval=$enable_assert_checks; if test "$enableval" = yes; then
35259 { echo "$as_me:$LINENO: result
: yes" >&5
35260 echo "${ECHO_T}yes" >&6; }
35261 cat >>confdefs.h <<\_ACEOF
35262 #define BX_ASSERT_ENABLE 1
35266 { echo "$as_me:$LINENO: result
: no
" >&5
35267 echo "${ECHO_T}no
" >&6; }
35268 cat >>confdefs.h <<\_ACEOF
35269 #define BX_ASSERT_ENABLE 0
35275 if test "$bx_debugger" = 1; then
35276 { echo "$as_me:$LINENO: result
: yes" >&5
35277 echo "${ECHO_T}yes" >&6; }
35278 cat >>confdefs.h <<\_ACEOF
35279 #define BX_ASSERT_ENABLE 1
35283 { echo "$as_me:$LINENO: result
: no
" >&5
35284 echo "${ECHO_T}no
" >&6; }
35285 cat >>confdefs.h <<\_ACEOF
35286 #define BX_ASSERT_ENABLE 0
35295 { echo "$as_me:$LINENO: checking
for raw serial support
" >&5
35296 echo $ECHO_N "checking
for raw serial support...
$ECHO_C" >&6; }
35297 # Check whether --enable-raw-serial was given.
35298 if test "${enable_raw_serial+set}" = set; then
35299 enableval=$enable_raw_serial; if test "$enableval" = yes; then
35300 { echo "$as_me:$LINENO: result
: yes" >&5
35301 echo "${ECHO_T}yes" >&6; }
35302 cat >>confdefs.h <<\_ACEOF
35303 #define USE_RAW_SERIAL 1
35307 { echo "$as_me:$LINENO: result
: no
" >&5
35308 echo "${ECHO_T}no
" >&6; }
35309 cat >>confdefs.h <<\_ACEOF
35310 #define USE_RAW_SERIAL 0
35316 { echo "$as_me:$LINENO: result
: no
" >&5
35317 echo "${ECHO_T}no
" >&6; }
35318 cat >>confdefs.h <<\_ACEOF
35319 #define USE_RAW_SERIAL 0
35327 { echo "$as_me:$LINENO: checking
for VESA BIOS extensions
" >&5
35328 echo $ECHO_N "checking
for VESA BIOS extensions...
$ECHO_C" >&6; }
35329 # Check whether --enable-vbe was given.
35330 if test "${enable_vbe+set}" = set; then
35331 enableval=$enable_vbe; if test "$enableval" = yes; then
35332 { echo "$as_me:$LINENO: result
: yes" >&5
35333 echo "${ECHO_T}yes" >&6; }
35334 cat >>confdefs.h <<\_ACEOF
35335 #define BX_SUPPORT_VBE 1
35338 if test "$pci" = 1; then
35339 cat >>confdefs.h <<\_ACEOF
35340 #define BX_SUPPORT_PCIVGA 1
35345 { echo "$as_me:$LINENO: result
: no
" >&5
35346 echo "${ECHO_T}no
" >&6; }
35347 cat >>confdefs.h <<\_ACEOF
35348 #define BX_SUPPORT_VBE 0
35354 { echo "$as_me:$LINENO: result
: yes" >&5
35355 echo "${ECHO_T}yes" >&6; }
35356 cat >>confdefs.h <<\_ACEOF
35357 #define BX_SUPPORT_VBE 1
35360 if test "$pci" = 1; then
35361 cat >>confdefs.h <<\_ACEOF
35362 #define BX_SUPPORT_PCIVGA 1
35371 { echo "$as_me:$LINENO: checking
for CLGD54XX emulation
" >&5
35372 echo $ECHO_N "checking
for CLGD54XX emulation...
$ECHO_C" >&6; }
35373 # Check whether --enable-clgd54xx was given.
35374 if test "${enable_clgd54xx+set}" = set; then
35375 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
35376 { echo "$as_me:$LINENO: result
: yes" >&5
35377 echo "${ECHO_T}yes" >&6; }
35378 cat >>confdefs.h <<\_ACEOF
35379 #define BX_SUPPORT_CLGD54XX 1
35383 { echo "$as_me:$LINENO: result
: no
" >&5
35384 echo "${ECHO_T}no
" >&6; }
35385 cat >>confdefs.h <<\_ACEOF
35386 #define BX_SUPPORT_CLGD54XX 0
35392 { echo "$as_me:$LINENO: result
: no
" >&5
35393 echo "${ECHO_T}no
" >&6; }
35394 cat >>confdefs.h <<\_ACEOF
35395 #define BX_SUPPORT_CLGD54XX 0
35404 { echo "$as_me:$LINENO: checking
for FPU emulation
" >&5
35405 echo $ECHO_N "checking
for FPU emulation...
$ECHO_C" >&6; }
35407 # Check whether --enable-fpu was given.
35408 if test "${enable_fpu+set}" = set; then
35409 enableval=$enable_fpu; if test "$enableval" = yes; then
35410 { echo "$as_me:$LINENO: result
: yes" >&5
35411 echo "${ECHO_T}yes" >&6; }
35412 cat >>confdefs.h <<\_ACEOF
35413 #define BX_SUPPORT_FPU 1
35416 FPU_VAR='$(FPU_LIB)'
35417 elif test "$enableval" = no; then
35418 { echo "$as_me:$LINENO: result
: no
" >&5
35419 echo "${ECHO_T}no
" >&6; }
35420 cat >>confdefs.h <<\_ACEOF
35421 #define BX_SUPPORT_FPU 0
35427 echo "ERROR
: --enable-fpu does not accept a path
"
35433 { echo "$as_me:$LINENO: result
: yes" >&5
35434 echo "${ECHO_T}yes" >&6; }
35435 cat >>confdefs.h <<\_ACEOF
35436 #define BX_SUPPORT_FPU 1
35439 FPU_VAR='$(FPU_LIB)'
35446 { echo "$as_me:$LINENO: checking
for VME support
" >&5
35447 echo $ECHO_N "checking
for VME support...
$ECHO_C" >&6; }
35448 # Check whether --enable-vme was given.
35449 if test "${enable_vme+set}" = set; then
35450 enableval=$enable_vme; if test "$enableval" = yes; then
35451 { echo "$as_me:$LINENO: result
: yes" >&5
35452 echo "${ECHO_T}yes" >&6; }
35453 cat >>confdefs.h <<\_ACEOF
35454 #define BX_SUPPORT_VME 1
35457 elif test "$enableval" = no; then
35458 { echo "$as_me:$LINENO: result
: no
" >&5
35459 echo "${ECHO_T}no
" >&6; }
35460 cat >>confdefs.h <<\_ACEOF
35461 #define BX_SUPPORT_VME 0
35468 if test "$bx_cpu_level" -ge 5; then
35469 { echo "$as_me:$LINENO: result
: yes" >&5
35470 echo "${ECHO_T}yes" >&6; }
35471 cat >>confdefs.h <<\_ACEOF
35472 #define BX_SUPPORT_VME 1
35476 { echo "$as_me:$LINENO: result
: no
" >&5
35477 echo "${ECHO_T}no
" >&6; }
35478 cat >>confdefs.h <<\_ACEOF
35479 #define BX_SUPPORT_VME 0
35489 { echo "$as_me:$LINENO: checking
for MMX support
" >&5
35490 echo $ECHO_N "checking
for MMX support...
$ECHO_C" >&6; }
35491 # Check whether --enable-mmx was given.
35492 if test "${enable_mmx+set}" = set; then
35493 enableval=$enable_mmx; if test "$enableval" = yes; then
35494 { echo "$as_me:$LINENO: result
: yes" >&5
35495 echo "${ECHO_T}yes" >&6; }
35496 cat >>confdefs.h <<\_ACEOF
35497 #define BX_SUPPORT_MMX 1
35500 elif test "$enableval" = no; then
35501 { echo "$as_me:$LINENO: result
: no
" >&5
35502 echo "${ECHO_T}no
" >&6; }
35503 cat >>confdefs.h <<\_ACEOF
35504 #define BX_SUPPORT_MMX 0
35512 if test "$bx_cpu_level" -ge 5; then
35513 { echo "$as_me:$LINENO: result
: yes" >&5
35514 echo "${ECHO_T}yes" >&6; }
35515 cat >>confdefs.h <<\_ACEOF
35516 #define BX_SUPPORT_MMX 1
35520 { echo "$as_me:$LINENO: result
: no
" >&5
35521 echo "${ECHO_T}no
" >&6; }
35522 cat >>confdefs.h <<\_ACEOF
35523 #define BX_SUPPORT_MMX 0
35532 { echo "$as_me:$LINENO: checking
for 3DNow
! support
" >&5
35533 echo $ECHO_N "checking
for 3DNow
! support...
$ECHO_C" >&6; }
35534 # Check whether --enable-3dnow was given.
35535 if test "${enable_3dnow+set}" = set; then
35536 enableval=$enable_3dnow; if test "$enableval" = yes; then
35537 { echo "$as_me:$LINENO: result
: yes" >&5
35538 echo "${ECHO_T}yes" >&6; }
35539 cat >>confdefs.h <<\_ACEOF
35540 #define BX_SUPPORT_3DNOW 1
35543 elif test "$enableval" = no; then
35544 { echo "$as_me:$LINENO: result
: no
" >&5
35545 echo "${ECHO_T}no
" >&6; }
35546 cat >>confdefs.h <<\_ACEOF
35547 #define BX_SUPPORT_3DNOW 0
35554 { echo "$as_me:$LINENO: result
: no
" >&5
35555 echo "${ECHO_T}no
" >&6; }
35556 cat >>confdefs.h <<\_ACEOF
35557 #define BX_SUPPORT_3DNOW 0
35566 { echo "$as_me:$LINENO: checking
for SSE support
" >&5
35567 echo $ECHO_N "checking
for SSE support...
$ECHO_C" >&6; }
35568 # Check whether --enable-sse was given.
35569 if test "${enable_sse+set}" = set; then
35570 enableval=$enable_sse; case "$enableval" in
35573 { echo "$as_me:$LINENO: result
: no
" >&5
35574 echo "${ECHO_T}no
" >&6; }
35578 { echo "$as_me:$LINENO: result
: SSE1
" >&5
35579 echo "${ECHO_T}SSE1
" >&6; }
35583 { echo "$as_me:$LINENO: result
: SSE2
" >&5
35584 echo "${ECHO_T}SSE2
" >&6; }
35588 { echo "$as_me:$LINENO: result
: SSE3
" >&5
35589 echo "${ECHO_T}SSE3
" >&6; }
35593 { echo "$as_me:$LINENO: result
: SSE4
" >&5
35594 echo "${ECHO_T}SSE4
" >&6; }
35597 echo "ERROR
: --enable-sse=$enableval not understood. Use
--enable-sse=no|
1|
2|
3|
4"
35604 if test "$use_x86_64" = 1; then
35606 { echo "$as_me:$LINENO: result
: SSE2
" >&5
35607 echo "${ECHO_T}SSE2
" >&6; }
35609 { echo "$as_me:$LINENO: result
: no
" >&5
35610 echo "${ECHO_T}no
" >&6; }
35617 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
35618 { { echo "$as_me:$LINENO: error
: for SSE support the CPU level must be
set to
6" >&5
35619 echo "$as_me: error
: for SSE support the CPU level must be
set to
6" >&2;}
35620 { (exit 1); exit 1; }; }
35623 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
35624 { { echo "$as_me:$LINENO: error
: x86-64 needs SSE2 support
" >&5
35625 echo "$as_me: error
: x86-64 needs SSE2 support
" >&2;}
35626 { (exit 1); exit 1; }; }
35629 if test "$support_sse" = 4; then
35630 cat >>confdefs.h <<\_ACEOF
35631 #define BX_SUPPORT_SSE 4
35634 elif test "$support_sse" = 3; then
35635 cat >>confdefs.h <<\_ACEOF
35636 #define BX_SUPPORT_SSE 3
35639 elif test "$support_sse" = 2; then
35640 cat >>confdefs.h <<\_ACEOF
35641 #define BX_SUPPORT_SSE 2
35644 elif test "$support_sse" = 1; then
35645 cat >>confdefs.h <<\_ACEOF
35646 #define BX_SUPPORT_SSE 1
35650 cat >>confdefs.h <<\_ACEOF
35651 #define BX_SUPPORT_SSE 0
35656 support_sse_extensions=0
35657 { echo "$as_me:$LINENO: checking
for SSE extensions support
" >&5
35658 echo $ECHO_N "checking
for SSE extensions support...
$ECHO_C" >&6; }
35659 # Check whether --enable-sse-extension was given.
35660 if test "${enable_sse_extension+set}" = set; then
35661 enableval=$enable_sse_extension; if test "$enableval" = yes; then
35662 { echo "$as_me:$LINENO: result
: yes" >&5
35663 echo "${ECHO_T}yes" >&6; }
35664 cat >>confdefs.h <<\_ACEOF
35665 #define BX_SUPPORT_SSE_EXTENSION 1
35668 support_sse_extensions=1
35669 elif test "$enableval" = no; then
35670 { echo "$as_me:$LINENO: result
: no
" >&5
35671 echo "${ECHO_T}no
" >&6; }
35672 cat >>confdefs.h <<\_ACEOF
35673 #define BX_SUPPORT_SSE_EXTENSION 0
35680 { echo "$as_me:$LINENO: result
: no
" >&5
35681 echo "${ECHO_T}no
" >&6; }
35682 cat >>confdefs.h <<\_ACEOF
35683 #define BX_SUPPORT_SSE_EXTENSION 0
35691 { echo "$as_me:$LINENO: checking
for DAZ support
" >&5
35692 echo $ECHO_N "checking
for DAZ support...
$ECHO_C" >&6; }
35693 # Check whether --enable-daz was given.
35694 if test "${enable_daz+set}" = set; then
35695 enableval=$enable_daz; if test "$enableval" = yes; then
35696 { echo "$as_me:$LINENO: result
: yes" >&5
35697 echo "${ECHO_T}yes" >&6; }
35698 cat >>confdefs.h <<\_ACEOF
35699 #define BX_SUPPORT_DAZ 1
35702 elif test "$enableval" = no; then
35703 { echo "$as_me:$LINENO: result
: no
" >&5
35704 echo "${ECHO_T}no
" >&6; }
35705 cat >>confdefs.h <<\_ACEOF
35706 #define BX_SUPPORT_DAZ 0
35713 if test "$support_sse" -ge 2; then
35714 { echo "$as_me:$LINENO: result
: yes" >&5
35715 echo "${ECHO_T}yes" >&6; }
35716 cat >>confdefs.h <<\_ACEOF
35717 #define BX_SUPPORT_DAZ 1
35721 { echo "$as_me:$LINENO: result
: no
" >&5
35722 echo "${ECHO_T}no
" >&6; }
35723 cat >>confdefs.h <<\_ACEOF
35724 #define BX_SUPPORT_DAZ 0
35734 { echo "$as_me:$LINENO: checking
for XSAVE
/XRSTOR support
" >&5
35735 echo $ECHO_N "checking
for XSAVE
/XRSTOR support...
$ECHO_C" >&6; }
35736 # Check whether --enable-xsave was given.
35737 if test "${enable_xsave+set}" = set; then
35738 enableval=$enable_xsave; if test "$enableval" = yes; then
35739 { echo "$as_me:$LINENO: result
: yes" >&5
35740 echo "${ECHO_T}yes" >&6; }
35741 cat >>confdefs.h <<\_ACEOF
35742 #define BX_SUPPORT_XSAVE 1
35746 elif test "$enableval" = no; then
35747 { echo "$as_me:$LINENO: result
: no
" >&5
35748 echo "${ECHO_T}no
" >&6; }
35749 cat >>confdefs.h <<\_ACEOF
35750 #define BX_SUPPORT_XSAVE 0
35757 { echo "$as_me:$LINENO: result
: no
" >&5
35758 echo "${ECHO_T}no
" >&6; }
35759 cat >>confdefs.h <<\_ACEOF
35760 #define BX_SUPPORT_XSAVE 0
35768 if test "$support_sse" -lt 1 -a "$use_xsave" = 1; then
35769 { { echo "$as_me:$LINENO: error
: XSAVE requires SSE support
!" >&5
35770 echo "$as_me: error
: XSAVE requires SSE support
!" >&2;}
35771 { (exit 1); exit 1; }; }
35775 { echo "$as_me:$LINENO: checking
for AES instructions support
" >&5
35776 echo $ECHO_N "checking
for AES instructions support...
$ECHO_C" >&6; }
35777 # Check whether --enable-aes was given.
35778 if test "${enable_aes+set}" = set; then
35779 enableval=$enable_aes; if test "$enableval" = yes; then
35780 { echo "$as_me:$LINENO: result
: yes" >&5
35781 echo "${ECHO_T}yes" >&6; }
35782 cat >>confdefs.h <<\_ACEOF
35783 #define BX_SUPPORT_AES 1
35787 elif test "$enableval" = no; then
35788 { echo "$as_me:$LINENO: result
: no
" >&5
35789 echo "${ECHO_T}no
" >&6; }
35790 cat >>confdefs.h <<\_ACEOF
35791 #define BX_SUPPORT_AES 0
35798 { echo "$as_me:$LINENO: result
: no
" >&5
35799 echo "${ECHO_T}no
" >&6; }
35800 cat >>confdefs.h <<\_ACEOF
35801 #define BX_SUPPORT_AES 0
35809 if test "$support_sse" -lt 1 -a "$use_aes" = 1; then
35810 { { echo "$as_me:$LINENO: error
: AES requires SSE support
!" >&5
35811 echo "$as_me: error
: AES requires SSE support
!" >&2;}
35812 { (exit 1); exit 1; }; }
35815 { echo "$as_me:$LINENO: checking
for alignment check support
" >&5
35816 echo $ECHO_N "checking
for alignment check support...
$ECHO_C" >&6; }
35817 # Check whether --enable-alignment-check was given.
35818 if test "${enable_alignment_check+set}" = set; then
35819 enableval=$enable_alignment_check; if test "$enableval" = yes; then
35820 { echo "$as_me:$LINENO: result
: yes" >&5
35821 echo "${ECHO_T}yes" >&6; }
35822 cat >>confdefs.h <<\_ACEOF
35823 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35826 elif test "$enableval" = no; then
35827 { echo "$as_me:$LINENO: result
: no
" >&5
35828 echo "${ECHO_T}no
" >&6; }
35829 cat >>confdefs.h <<\_ACEOF
35830 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35837 if test "$bx_cpu_level" -gt 3; then
35838 { echo "$as_me:$LINENO: result
: yes" >&5
35839 echo "${ECHO_T}yes" >&6; }
35840 cat >>confdefs.h <<\_ACEOF
35841 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35845 { echo "$as_me:$LINENO: result
: no
" >&5
35846 echo "${ECHO_T}no
" >&6; }
35847 cat >>confdefs.h <<\_ACEOF
35848 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35857 { echo "$as_me:$LINENO: checking
for misaligned SSE support
" >&5
35858 echo $ECHO_N "checking
for misaligned SSE support...
$ECHO_C" >&6; }
35859 # Check whether --enable-misaligned-sse was given.
35860 if test "${enable_misaligned_sse+set}" = set; then
35861 enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
35862 { echo "$as_me:$LINENO: result
: yes" >&5
35863 echo "${ECHO_T}yes" >&6; }
35864 cat >>confdefs.h <<\_ACEOF
35865 #define BX_SUPPORT_MISALIGNED_SSE 1
35868 elif test "$enableval" = no; then
35869 { echo "$as_me:$LINENO: result
: no
" >&5
35870 echo "${ECHO_T}no
" >&6; }
35871 cat >>confdefs.h <<\_ACEOF
35872 #define BX_SUPPORT_MISALIGNED_SSE 0
35879 { echo "$as_me:$LINENO: result
: no
" >&5
35880 echo "${ECHO_T}no
" >&6; }
35881 cat >>confdefs.h <<\_ACEOF
35882 #define BX_SUPPORT_MISALIGNED_SSE 0
35890 { echo "$as_me:$LINENO: checking
for SEP support
" >&5
35891 echo $ECHO_N "checking
for SEP support...
$ECHO_C" >&6; }
35892 # Check whether --enable-sep was given.
35893 if test "${enable_sep+set}" = set; then
35894 enableval=$enable_sep; if test "$enableval" = yes; then
35895 { echo "$as_me:$LINENO: result
: yes" >&5
35896 echo "${ECHO_T}yes" >&6; }
35897 cat >>confdefs.h <<\_ACEOF
35898 #define BX_SUPPORT_SEP 1
35901 elif test "$enableval" = no; then
35902 { echo "$as_me:$LINENO: result
: no
" >&5
35903 echo "${ECHO_T}no
" >&6; }
35904 cat >>confdefs.h <<\_ACEOF
35905 #define BX_SUPPORT_SEP 0
35912 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
35913 { echo "$as_me:$LINENO: result
: yes" >&5
35914 echo "${ECHO_T}yes" >&6; }
35915 cat >>confdefs.h <<\_ACEOF
35916 #define BX_SUPPORT_SEP 1
35920 { echo "$as_me:$LINENO: result
: no
" >&5
35921 echo "${ECHO_T}no
" >&6; }
35922 cat >>confdefs.h <<\_ACEOF
35923 #define BX_SUPPORT_SEP 0
35932 { echo "$as_me:$LINENO: checking
for POPCNT instruction support
" >&5
35933 echo $ECHO_N "checking
for POPCNT instruction support...
$ECHO_C" >&6; }
35934 # Check whether --enable-popcnt was given.
35935 if test "${enable_popcnt+set}" = set; then
35936 enableval=$enable_popcnt; if test "$enableval" = yes; then
35937 { echo "$as_me:$LINENO: result
: yes" >&5
35938 echo "${ECHO_T}yes" >&6; }
35939 cat >>confdefs.h <<\_ACEOF
35940 #define BX_SUPPORT_POPCNT 1
35943 elif test "$enableval" = no; then
35944 { echo "$as_me:$LINENO: result
: no
" >&5
35945 echo "${ECHO_T}no
" >&6; }
35946 cat >>confdefs.h <<\_ACEOF
35947 #define BX_SUPPORT_POPCNT 0
35954 if test "$support_sse" -ge 4 -a "$support_sse_extensions" = 1; then
35955 { echo "$as_me:$LINENO: result
: yes" >&5
35956 echo "${ECHO_T}yes" >&6; }
35957 cat >>confdefs.h <<\_ACEOF
35958 #define BX_SUPPORT_POPCNT 1
35962 { echo "$as_me:$LINENO: result
: no
" >&5
35963 echo "${ECHO_T}no
" >&6; }
35964 cat >>confdefs.h <<\_ACEOF
35965 #define BX_SUPPORT_POPCNT 0
35974 { echo "$as_me:$LINENO: checking
for MOVBE instruction support
" >&5
35975 echo $ECHO_N "checking
for MOVBE instruction support...
$ECHO_C" >&6; }
35976 # Check whether --enable-movbe was given.
35977 if test "${enable_movbe+set}" = set; then
35978 enableval=$enable_movbe; if test "$enableval" = yes; then
35979 { echo "$as_me:$LINENO: result
: yes" >&5
35980 echo "${ECHO_T}yes" >&6; }
35981 cat >>confdefs.h <<\_ACEOF
35982 #define BX_SUPPORT_MOVBE 1
35985 elif test "$enableval" = no; then
35986 { echo "$as_me:$LINENO: result
: no
" >&5
35987 echo "${ECHO_T}no
" >&6; }
35988 cat >>confdefs.h <<\_ACEOF
35989 #define BX_SUPPORT_MOVBE 0
35996 { echo "$as_me:$LINENO: result
: no
" >&5
35997 echo "${ECHO_T}no
" >&6; }
35998 cat >>confdefs.h <<\_ACEOF
35999 #define BX_SUPPORT_MOVBE 0
36007 { echo "$as_me:$LINENO: checking
for MONITOR
/MWAIT instructions support
(experimental
)" >&5
36008 echo $ECHO_N "checking
for MONITOR
/MWAIT instructions support
(experimental
)...
$ECHO_C" >&6; }
36009 # Check whether --enable-monitor_mwait was given.
36010 if test "${enable_monitor_mwait+set}" = set; then
36011 enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
36012 { echo "$as_me:$LINENO: result
: yes" >&5
36013 echo "${ECHO_T}yes" >&6; }
36014 cat >>confdefs.h <<\_ACEOF
36015 #define BX_SUPPORT_MONITOR_MWAIT 1
36018 elif test "$enableval" = no; then
36019 { echo "$as_me:$LINENO: result
: no
" >&5
36020 echo "${ECHO_T}no
" >&6; }
36021 cat >>confdefs.h <<\_ACEOF
36022 #define BX_SUPPORT_MONITOR_MWAIT 0
36029 { echo "$as_me:$LINENO: result
: no
" >&5
36030 echo "${ECHO_T}no
" >&6; }
36031 cat >>confdefs.h <<\_ACEOF
36032 #define BX_SUPPORT_MONITOR_MWAIT 0
36040 { echo "$as_me:$LINENO: checking
for x86 debugger support
" >&5
36041 echo $ECHO_N "checking
for x86 debugger support...
$ECHO_C" >&6; }
36042 # Check whether --enable-x86-debugger was given.
36043 if test "${enable_x86_debugger+set}" = set; then
36044 enableval=$enable_x86_debugger; if test "$enableval" = yes; then
36045 { echo "$as_me:$LINENO: result
: yes" >&5
36046 echo "${ECHO_T}yes" >&6; }
36047 cat >>confdefs.h <<\_ACEOF
36048 #define BX_X86_DEBUGGER 1
36051 elif test "$enableval" = no; then
36052 { echo "$as_me:$LINENO: result
: no
" >&5
36053 echo "${ECHO_T}no
" >&6; }
36054 cat >>confdefs.h <<\_ACEOF
36055 #define BX_X86_DEBUGGER 0
36062 { echo "$as_me:$LINENO: result
: no
" >&5
36063 echo "${ECHO_T}no
" >&6; }
36064 cat >>confdefs.h <<\_ACEOF
36065 #define BX_X86_DEBUGGER 0
36073 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36074 { echo "$as_me:$LINENO: checking
for IOKit
/storage
/IOCDMedia.h
" >&5
36075 echo $ECHO_N "checking
for IOKit
/storage
/IOCDMedia.h...
$ECHO_C" >&6; }
36076 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36077 echo $ECHO_N "(cached
) $ECHO_C" >&6
36079 { echo "$as_me:$LINENO: result
: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36080 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36082 # Is the header compilable?
36083 { echo "$as_me:$LINENO: checking IOKit
/storage
/IOCDMedia.h usability
" >&5
36084 echo $ECHO_N "checking IOKit
/storage
/IOCDMedia.h usability...
$ECHO_C" >&6; }
36085 cat >conftest.$ac_ext <<_ACEOF
36088 cat confdefs.h >>conftest.$ac_ext
36089 cat >>conftest.$ac_ext <<_ACEOF
36090 /* end confdefs.h. */
36091 $ac_includes_default
36092 #include <IOKit/storage/IOCDMedia.h>
36094 rm -f conftest.$ac_objext
36095 if { (ac_try="$ac_compile"
36096 case "(($ac_try" in
36097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36098 *) ac_try_echo=$ac_try;;
36100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36101 (eval "$ac_compile") 2>conftest.er1
36103 grep -v '^ *+' conftest.er1 >conftest.err
36105 cat conftest.err >&5
36106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36107 (exit $ac_status); } && {
36108 test -z "$ac_c_werror_flag" ||
36109 test ! -s conftest.err
36110 } && test -s conftest.$ac_objext; then
36111 ac_header_compiler=yes
36113 echo "$as_me: failed program was
:" >&5
36114 sed 's/^/| /' conftest.$ac_ext >&5
36116 ac_header_compiler=no
36119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36120 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
36121 echo "${ECHO_T}$ac_header_compiler" >&6; }
36123 # Is the header present?
36124 { echo "$as_me:$LINENO: checking IOKit
/storage
/IOCDMedia.h presence
" >&5
36125 echo $ECHO_N "checking IOKit
/storage
/IOCDMedia.h presence...
$ECHO_C" >&6; }
36126 cat >conftest.$ac_ext <<_ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h. */
36132 #include <IOKit/storage/IOCDMedia.h>
36134 if { (ac_try="$ac_cpp conftest.
$ac_ext"
36135 case "(($ac_try" in
36136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36137 *) ac_try_echo=$ac_try;;
36139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36140 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
36142 grep -v '^ *+' conftest.er1 >conftest.err
36144 cat conftest.err >&5
36145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36146 (exit $ac_status); } >/dev/null && {
36147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36148 test ! -s conftest.err
36150 ac_header_preproc=yes
36152 echo "$as_me: failed program was
:" >&5
36153 sed 's/^/| /' conftest.$ac_ext >&5
36155 ac_header_preproc=no
36158 rm -f conftest.err conftest.$ac_ext
36159 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
36160 echo "${ECHO_T}$ac_header_preproc" >&6; }
36162 # So? What about this header?
36163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36165 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
36166 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
36167 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: proceeding with the compiler
's result" >&5
36168 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result
" >&2;}
36169 ac_header_preproc=yes
36172 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: present but cannot be compiled
" >&5
36173 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: present but cannot be compiled
" >&2;}
36174 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: check
for missing prerequisite headers?
" >&5
36175 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: check
for missing prerequisite headers?
" >&2;}
36176 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: see the Autoconf documentation
" >&5
36177 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: see the Autoconf documentation
" >&2;}
36178 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: section
\"Present But Cannot Be Compiled
\"" >&5
36179 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
36180 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: proceeding with the preprocessor
's result" >&5
36181 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result
" >&2;}
36182 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: in the future
, the compiler will take precedence
" >&5
36183 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: in the future
, the compiler will take precedence
" >&2;}
36187 { echo "$as_me:$LINENO: checking
for IOKit
/storage
/IOCDMedia.h
" >&5
36188 echo $ECHO_N "checking
for IOKit
/storage
/IOCDMedia.h...
$ECHO_C" >&6; }
36189 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36190 echo $ECHO_N "(cached
) $ECHO_C" >&6
36192 ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
36194 { echo "$as_me:$LINENO: result
: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36195 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36198 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
36199 can_use_osx_cdrom=yes
36205 { echo "$as_me:$LINENO: checking
for CDROM support
" >&5
36206 echo $ECHO_N "checking
for CDROM support...
$ECHO_C" >&6; }
36207 # Check whether --enable-cdrom was given.
36208 if test "${enable_cdrom+set}" = set; then
36209 enableval=$enable_cdrom; if test "$enableval" = no; then
36220 if test "$bx_cdrom" = 1; then
36221 { echo "$as_me:$LINENO: result
: yes" >&5
36222 echo "${ECHO_T}yes" >&6; }
36223 CDROM_OBJS='cdrom.o'
36224 if test "$with_amigaos" = yes; then
36225 # use the amiga cdrom file instead.
36226 CDROM_OBJS="cdrom_amigaos.o
"
36227 elif test "$can_use_osx_cdrom" = yes; then
36229 { echo "$as_me:$LINENO: result
: Using OSX IOKit CD Interface
" >&5
36230 echo "${ECHO_T}Using OSX IOKit CD Interface
" >&6; }
36231 CDROM_OBJS="cdrom.o
"
36232 EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit
-framework CoreFoundation
"'$(GUI_LINK_OPTS)'
36236 # use the beos cdrom file instead
36237 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o
"
36239 cat >>confdefs.h <<\_ACEOF
36240 #define BX_SUPPORT_CDROM 1
36244 { echo "$as_me:$LINENO: result
: no
" >&5
36245 echo "${ECHO_T}no
" >&6; }
36247 cat >>confdefs.h <<\_ACEOF
36248 #define BX_SUPPORT_CDROM 0
36257 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36258 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
36259 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
36260 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36261 echo $ECHO_N "(cached
) $ECHO_C" >&6
36263 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
36264 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36266 # Is the header compilable?
36267 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h usability
" >&5
36268 echo $ECHO_N "checking alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
36269 cat >conftest.$ac_ext <<_ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h. */
36275 $ac_includes_default
36276 #include <alsa/asoundlib.h>
36278 rm -f conftest.$ac_objext
36279 if { (ac_try="$ac_compile"
36280 case "(($ac_try" in
36281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282 *) ac_try_echo=$ac_try;;
36284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36285 (eval "$ac_compile") 2>conftest.er1
36287 grep -v '^ *+' conftest.er1 >conftest.err
36289 cat conftest.err >&5
36290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36291 (exit $ac_status); } && {
36292 test -z "$ac_c_werror_flag" ||
36293 test ! -s conftest.err
36294 } && test -s conftest.$ac_objext; then
36295 ac_header_compiler=yes
36297 echo "$as_me: failed program was
:" >&5
36298 sed 's/^/| /' conftest.$ac_ext >&5
36300 ac_header_compiler=no
36303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36304 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
36305 echo "${ECHO_T}$ac_header_compiler" >&6; }
36307 # Is the header present?
36308 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h presence
" >&5
36309 echo $ECHO_N "checking alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
36310 cat >conftest.$ac_ext <<_ACEOF
36313 cat confdefs.h >>conftest.$ac_ext
36314 cat >>conftest.$ac_ext <<_ACEOF
36315 /* end confdefs.h. */
36316 #include <alsa/asoundlib.h>
36318 if { (ac_try="$ac_cpp conftest.
$ac_ext"
36319 case "(($ac_try" in
36320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36321 *) ac_try_echo=$ac_try;;
36323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36324 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
36326 grep -v '^ *+' conftest.er1 >conftest.err
36328 cat conftest.err >&5
36329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36330 (exit $ac_status); } >/dev/null && {
36331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36332 test ! -s conftest.err
36334 ac_header_preproc=yes
36336 echo "$as_me: failed program was
:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36339 ac_header_preproc=no
36342 rm -f conftest.err conftest.$ac_ext
36343 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
36344 echo "${ECHO_T}$ac_header_preproc" >&6; }
36346 # So? What about this header?
36347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36349 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
36350 echo "$as_me: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
36351 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
36352 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
36353 ac_header_preproc=yes
36356 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&5
36357 echo "$as_me: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
36358 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
36359 echo "$as_me: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
36360 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
36361 echo "$as_me: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
36362 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
36363 echo "$as_me: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
36364 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
36365 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
36366 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
36367 echo "$as_me: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
36371 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
36372 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
36373 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36374 echo $ECHO_N "(cached
) $ECHO_C" >&6
36376 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
36378 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
36379 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36382 if test $ac_cv_header_alsa_asoundlib_h = yes; then
36388 { echo "$as_me:$LINENO: checking
for Sound Blaster
16 support
" >&5
36389 echo $ECHO_N "checking
for Sound Blaster
16 support...
$ECHO_C" >&6; }
36394 # Check whether --enable-sb16 was given.
36395 if test "${enable_sb16+set}" = set; then
36396 enableval=$enable_sb16; if test "$enableval" = no; then
36397 { echo "$as_me:$LINENO: result
: no
" >&5
36398 echo "${ECHO_T}no
" >&6; }
36399 cat >>confdefs.h <<\_ACEOF
36400 #define BX_SUPPORT_SB16 0
36404 case "$enableval" in
36407 cat >>confdefs.h <<\_ACEOF
36408 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36411 { echo "$as_me:$LINENO: result
: dummy
" >&5
36412 echo "${ECHO_T}dummy
" >&6; }
36415 SOUNDLOW_OBJS='soundlnx.o'
36416 cat >>confdefs.h <<\_ACEOF
36417 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36420 if test "$bx_have_alsa" = 1; then
36421 cat >>confdefs.h <<\_ACEOF
36422 #define BX_HAVE_ALSASOUND 1
36425 if test "$bx_plugins" = 1; then
36426 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36428 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36431 { echo "$as_me:$LINENO: result
: linux
" >&5
36432 echo "${ECHO_T}linux
" >&6; }
36435 SOUNDLOW_OBJS='soundwin.o'
36436 cat >>confdefs.h <<\_ACEOF
36437 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36440 { echo "$as_me:$LINENO: result
: win
" >&5
36441 echo "${ECHO_T}win
" >&6; }
36444 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib
"
36447 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36452 SOUNDLOW_OBJS='soundosx.o'
36453 cat >>confdefs.h <<\_ACEOF
36454 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36457 { echo "$as_me:$LINENO: result
: osx
" >&5
36458 echo "${ECHO_T}osx
" >&6; }
36459 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit
-framework AudioToolbox
"
36463 *-linux* | *-freebsd*)
36464 SOUNDLOW_OBJS='soundlnx.o'
36465 cat >>confdefs.h <<\_ACEOF
36466 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36469 if test "$bx_have_alsa" = 1; then
36470 cat >>confdefs.h <<\_ACEOF
36471 #define BX_HAVE_ALSASOUND 1
36474 if test "$bx_plugins" = 1; then
36475 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36477 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36480 { echo "$as_me:$LINENO: result
: linux
" >&5
36481 echo "${ECHO_T}linux
" >&6; }
36484 SOUNDLOW_OBJS='soundwin.o'
36485 cat >>confdefs.h <<\_ACEOF
36486 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36489 { echo "$as_me:$LINENO: result
: win
" >&5
36490 echo "${ECHO_T}win
" >&6; }
36491 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib
"
36493 *-cygwin* | *-mingw32*)
36494 SOUNDLOW_OBJS='soundwin.o'
36495 cat >>confdefs.h <<\_ACEOF
36496 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36499 { echo "$as_me:$LINENO: result
: win
" >&5
36500 echo "${ECHO_T}win
" >&6; }
36501 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36503 *-macosx* | *-macos*)
36504 SOUNDLOW_OBJS='soundosx.o'
36505 cat >>confdefs.h <<\_ACEOF
36506 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36509 { echo "$as_me:$LINENO: result
: osx
" >&5
36510 echo "${ECHO_T}osx
" >&6; }
36511 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit
-framework AudioToolbox
"
36515 cat >>confdefs.h <<\_ACEOF
36516 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36519 { echo "$as_me:$LINENO: result
: dummy
" >&5
36520 echo "${ECHO_T}dummy
" >&6; }
36526 echo \!\!\!Error\!\!\!
36527 echo "You must pass one of dummy
, linux
, win
, freebsd
, osx to
--enable-sb16"
36531 cat >>confdefs.h <<\_ACEOF
36532 #define BX_SUPPORT_SB16 1
36535 GAME_OBJS='gameport.o'
36540 { echo "$as_me:$LINENO: result
: no
" >&5
36541 echo "${ECHO_T}no
" >&6; }
36542 cat >>confdefs.h <<\_ACEOF
36543 #define BX_SUPPORT_SB16 0
36555 { echo "$as_me:$LINENO: checking
for standard PC gameport support
" >&5
36556 echo $ECHO_N "checking
for standard PC gameport support...
$ECHO_C" >&6; }
36557 # Check whether --enable-gameport was given.
36558 if test "${enable_gameport+set}" = set; then
36559 enableval=$enable_gameport; if test "$enableval" = yes; then
36560 { echo "$as_me:$LINENO: result
: yes" >&5
36561 echo "${ECHO_T}yes" >&6; }
36562 cat >>confdefs.h <<\_ACEOF
36563 #define BX_SUPPORT_GAMEPORT 1
36566 if test "$gameport_present" = 0; then
36567 GAME_OBJS='gameport.o'
36569 *-cygwin* | *-mingw32*)
36570 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36575 { echo "$as_me:$LINENO: result
: no
" >&5
36576 echo "${ECHO_T}no
" >&6; }
36578 cat >>confdefs.h <<\_ACEOF
36579 #define BX_SUPPORT_GAMEPORT 0
36585 if test "$gameport_present" = 1; then
36586 cat >>confdefs.h <<\_ACEOF
36587 #define BX_SUPPORT_GAMEPORT 1
36590 { echo "$as_me:$LINENO: result
: yes" >&5
36591 echo "${ECHO_T}yes" >&6; }
36593 cat >>confdefs.h <<\_ACEOF
36594 #define BX_SUPPORT_GAMEPORT 0
36597 { echo "$as_me:$LINENO: result
: no
" >&5
36598 echo "${ECHO_T}no
" >&6; }
36606 { echo "$as_me:$LINENO: checking
for gdb stub
enable" >&5
36607 echo $ECHO_N "checking
for gdb stub
enable...
$ECHO_C" >&6; }
36608 # Check whether --enable-gdb-stub was given.
36609 if test "${enable_gdb_stub+set}" = set; then
36610 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
36611 { echo "$as_me:$LINENO: result
: yes" >&5
36612 echo "${ECHO_T}yes" >&6; }
36613 cat >>confdefs.h <<\_ACEOF
36614 #define BX_GDBSTUB 1
36617 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
36618 if test "$bx_debugger" = 1; then
36619 { { echo "$as_me:$LINENO: error
: --enable-debugger and
--enable-gdb-stub are mutually exclusive
" >&5
36620 echo "$as_me: error
: --enable-debugger and
--enable-gdb-stub are mutually exclusive
" >&2;}
36621 { (exit 1); exit 1; }; }
36624 { echo "$as_me:$LINENO: result
: no
" >&5
36625 echo "${ECHO_T}no
" >&6; }
36626 cat >>confdefs.h <<\_ACEOF
36627 #define BX_GDBSTUB 0
36634 { echo "$as_me:$LINENO: result
: no
" >&5
36635 echo "${ECHO_T}no
" >&6; }
36636 cat >>confdefs.h <<\_ACEOF
36637 #define BX_GDBSTUB 0
36648 { echo "$as_me:$LINENO: checking
for I
/O Interface to the debugger
" >&5
36649 echo $ECHO_N "checking
for I
/O Interface to the debugger...
$ECHO_C" >&6; }
36651 # Check whether --enable-iodebug was given.
36652 if test "${enable_iodebug+set}" = set; then
36653 enableval=$enable_iodebug; if test "$enableval" = yes; then
36654 { echo "$as_me:$LINENO: result
: yes" >&5
36655 echo "${ECHO_T}yes" >&6; }
36656 cat >>confdefs.h <<\_ACEOF
36657 #define BX_SUPPORT_IODEBUG 1
36660 IODEBUG_OBJS='iodebug.o'
36662 { echo "$as_me:$LINENO: result
: no
" >&5
36663 echo "${ECHO_T}no
" >&6; }
36664 cat >>confdefs.h <<\_ACEOF
36665 #define BX_SUPPORT_IODEBUG 0
36672 if test "" = 1; then
36673 # enable by default if debugger is on
36674 { echo "$as_me:$LINENO: result
: yes" >&5
36675 echo "${ECHO_T}yes" >&6; }
36676 cat >>confdefs.h <<\_ACEOF
36677 #define BX_SUPPORT_IODEBUG 1
36680 IODEBUG_OBJS='iodebug.o'
36682 { echo "$as_me:$LINENO: result
: no
" >&5
36683 echo "${ECHO_T}no
" >&6; }
36692 # Extract the first word of "docbook2html
", so it can be a program name with args.
36693 set dummy docbook2html; ac_word=$2
36694 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
36695 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
36696 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
36697 echo $ECHO_N "(cached
) $ECHO_C" >&6
36699 case $DOCBOOK2HTML in
36701 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
36704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36705 for as_dir in $PATH
36708 test -z "$as_dir" && as_dir=.
36709 for ac_exec_ext in '' $ac_executable_extensions; do
36710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36711 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
36712 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
36719 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found
"
36723 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
36724 if test -n "$DOCBOOK2HTML"; then
36725 { echo "$as_me:$LINENO: result
: $DOCBOOK2HTML" >&5
36726 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
36728 { echo "$as_me:$LINENO: result
: no
" >&5
36729 echo "${ECHO_T}no
" >&6; }
36733 { echo "$as_me:$LINENO: checking whether to build docbook documentation
" >&5
36734 echo $ECHO_N "checking whether to build docbook documentation...
$ECHO_C" >&6; }
36736 # Check whether --enable-docbook was given.
36737 if test "${enable_docbook+set}" = set; then
36738 enableval=$enable_docbook;
36739 if test "$enableval" = yes; then build_docbook=1; fi
36743 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
36749 if test $build_docbook = 1; then
36750 { echo "$as_me:$LINENO: result
: yes" >&5
36751 echo "${ECHO_T}yes" >&6; }
36752 BUILD_DOCBOOK_VAR=build_docbook
36753 INSTALL_DOCBOOK_VAR=install_docbook
36754 if test "$DOCBOOK2HTML" = not_found; then
36755 echo "ERROR
: docbook2html must be installed to build the documentation
"
36759 { echo "$as_me:$LINENO: result
: no
" >&5
36760 echo "${ECHO_T}no
" >&6; }
36766 PRIMARY_TARGET='bochs'
36767 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
36769 cat >>confdefs.h <<\_ACEOF
36770 #define BX_PROVIDE_DEVICE_MODELS 1
36773 IODEV_LIB_VAR='iodev/libiodev.a'
36774 cat >>confdefs.h <<\_ACEOF
36775 #define BX_PROVIDE_CPU_MEMORY 1
36778 NONINLINE_VAR='$(NONINLINE_OBJS)'
36790 # Check whether --with-x11 was given.
36791 if test "${with_x11+set}" = set; then
36797 # Check whether --with-beos was given.
36798 if test "${with_beos+set}" = set; then
36799 withval=$with_beos;
36804 # Check whether --with-win32 was given.
36805 if test "${with_win32+set}" = set; then
36806 withval=$with_win32;
36811 # Check whether --with-macos was given.
36812 if test "${with_macos+set}" = set; then
36813 withval=$with_macos;
36818 # Check whether --with-carbon was given.
36819 if test "${with_carbon+set}" = set; then
36820 withval=$with_carbon;
36825 # Check whether --with-nogui was given.
36826 if test "${with_nogui+set}" = set; then
36827 withval=$with_nogui;
36832 # Check whether --with-term was given.
36833 if test "${with_term+set}" = set; then
36834 withval=$with_term;
36839 # Check whether --with-rfb was given.
36840 if test "${with_rfb+set}" = set; then
36846 # Check whether --with-amigaos was given.
36847 if test "${with_amigaos+set}" = set; then
36848 withval=$with_amigaos;
36853 # Check whether --with-sdl was given.
36854 if test "${with_sdl+set}" = set; then
36860 # Check whether --with-svga was given.
36861 if test "${with_svga+set}" = set; then
36862 withval=$with_svga;
36867 # Check whether --with-wx was given.
36868 if test "${with_wx+set}" = set; then
36874 # Check whether --with-all-libs was given.
36875 if test "${with_all_libs+set}" = set; then
36876 withval=$with_all_libs;
36885 MAKELIB="ar rv \$@
"
36887 # first define link variables without libtool
36888 LINK="\$
(CXX
) -o \$@ \$
(CXXFLAGS
) \$
(LDFLAGS
)"
36889 LINK_CONSOLE="\$
(CXX
) -o \$@ \$
(CXXFLAGS_CONSOLE
) \$
(LDFLAGS
)"
36890 # unless NO_LT is set, add libtool to the front of the link command
36891 if test "$NO_LT" != 1; then
36892 LINK="\$
(LIBTOOL
) --mode=link
$LINK"
36893 LINK_CONSOLE="\$
(LIBTOOL
) --mode=link
$LINK_CONSOLE"
36896 COMMAND_SEPARATOR="&& \\"
36897 CD_UP_ONE="echo done"
36898 CD_UP_TWO="echo done"
36899 CD_UP_THREE="echo done"
36901 INSTALL_TARGET=install_unix
36902 INSTALL_LIST_FOR_PLATFORM=
36904 # check for existence of and usable version of wxWidgets. This comes
36905 # early so that it could affect which one gets chosen.
36906 if test x$WX_CONFIG = x; then
36907 # Extract the first word of " wx-config
--version ", so it can be a program name with args.
36908 set dummy wx-config --version ; ac_word=$2
36909 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
36910 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
36911 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
36912 echo $ECHO_N "(cached
) $ECHO_C" >&6
36914 if test -n "$WX_CONFIG"; then
36915 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
36917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36918 for as_dir in $PATH
36921 test -z "$as_dir" && as_dir=.
36922 for ac_exec_ext in '' $ac_executable_extensions; do
36923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36924 ac_cv_prog_WX_CONFIG="wx-config
"
36925 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
36932 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found
"
36935 WX_CONFIG=$ac_cv_prog_WX_CONFIG
36936 if test -n "$WX_CONFIG"; then
36937 { echo "$as_me:$LINENO: result
: $WX_CONFIG" >&5
36938 echo "${ECHO_T}$WX_CONFIG" >&6; }
36940 { echo "$as_me:$LINENO: result
: no
" >&5
36941 echo "${ECHO_T}no
" >&6; }
36946 { echo "$as_me:$LINENO: checking
for wxWidgets configuration
script" >&5
36947 echo $ECHO_N "checking
for wxWidgets configuration
script...
$ECHO_C" >&6; }
36948 { echo "$as_me:$LINENO: result
: $WX_CONFIG" >&5
36949 echo "${ECHO_T}$WX_CONFIG" >&6; }
36954 { echo "$as_me:$LINENO: checking
for wxWidgets library version
" >&5
36955 echo $ECHO_N "checking
for wxWidgets library version...
$ECHO_C" >&6; }
36956 if test x$WX_CONFIG != xnot_found; then
36957 WX_VERSION=`$WX_CONFIG --version`
36958 WX_BASENAME=`$WX_CONFIG --basename`
36960 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
36961 case x$WX_VERSION in
36962 x2.[012]*) ;; # less than version 2.3.x
36963 x2.3.[01]) ;; # less than version 2.3.2
36964 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
36965 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
36966 x2.[6-9]*) # version 2.6 or greater
36969 case x$WX_BASENAME in
36970 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
36974 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
36979 { echo "$as_me:$LINENO: result
: $WX_VERSION" >&5
36980 echo "${ECHO_T}$WX_VERSION" >&6; }
36981 if test "$cross_configure" = 0; then
36982 if test "$ok_wx_version" = 1; then
36983 # detected a usable version
36984 if test "$with_all_libs" = yes; then
36988 if test "$with_wx" = yes; then
36989 { echo "$as_me:$LINENO: WARNING
: Bochs
for wxWidgets cannot be compiled here
, disabling it
" >&5
36990 echo "$as_me: WARNING
: Bochs
for wxWidgets cannot be compiled here
, disabling it
" >&2;}
36996 { echo "$as_me:$LINENO: checking
for default gui on this platform
" >&5
36997 echo $ECHO_N "checking
for default gui on this platform...
$ECHO_C" >&6; }
36998 { echo "$as_me:$LINENO: result
: $DEFAULT_GUI" >&5
36999 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
37003 # the $with_* variable tells the gui library to use, but does NOT necessarily
37004 # indicate the platform. Settings that depend on the platform should be
37008 if test "$with_x11" = yes; then
37009 display_libs="$display_libs X11
"
37010 if test "$no_x" = yes; then
37011 echo ERROR: X windows gui was selected, but X windows libraries were not found.
37014 cat >>confdefs.h <<\_ACEOF
37015 #define BX_WITH_X11 1
37018 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_X11
)"
37019 GUI_CFLAGS="$GUI_CFLAGS \$
(X_CFLAGS
)"
37020 GUI_CXXFLAGS="$GUI_CXXFLAGS \$
(X_CFLAGS
)"
37021 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_X
)"
37023 { echo "$as_me:$LINENO: checking whether user wants XPM support
" >&5
37024 echo $ECHO_N "checking whether user wants XPM support...
$ECHO_C" >&6; }
37025 # Check whether --enable-xpm was given.
37026 if test "${enable_xpm+set}" = set; then
37027 enableval=$enable_xpm; if test "$enableval" = yes; then
37029 { echo "$as_me:$LINENO: result
: yes" >&5
37030 echo "${ECHO_T}yes" >&6; }
37033 { echo "$as_me:$LINENO: result
: no
" >&5
37034 echo "${ECHO_T}no
" >&6; }
37039 { echo "$as_me:$LINENO: result
: yes" >&5
37040 echo "${ECHO_T}yes" >&6; }
37046 if test $check_xpm = 1; then
37047 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37048 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
37049 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
37050 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37051 echo $ECHO_N "(cached
) $ECHO_C" >&6
37053 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
37054 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37056 # Is the header compilable?
37057 { echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
37058 echo $ECHO_N "checking X11
/xpm.h usability...
$ECHO_C" >&6; }
37059 cat >conftest.$ac_ext <<_ACEOF
37062 cat confdefs.h >>conftest.$ac_ext
37063 cat >>conftest.$ac_ext <<_ACEOF
37064 /* end confdefs.h. */
37065 $ac_includes_default
37066 #include <X11/xpm.h>
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072 *) ac_try_echo=$ac_try;;
37074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37075 (eval "$ac_compile") 2>conftest.er1
37077 grep -v '^ *+' conftest.er1 >conftest.err
37079 cat conftest.err >&5
37080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37081 (exit $ac_status); } && {
37082 test -z "$ac_c_werror_flag" ||
37083 test ! -s conftest.err
37084 } && test -s conftest.$ac_objext; then
37085 ac_header_compiler=yes
37087 echo "$as_me: failed program was
:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37090 ac_header_compiler=no
37093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37094 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
37095 echo "${ECHO_T}$ac_header_compiler" >&6; }
37097 # Is the header present?
37098 { echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
37099 echo $ECHO_N "checking X11
/xpm.h presence...
$ECHO_C" >&6; }
37100 cat >conftest.$ac_ext <<_ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h. */
37106 #include <X11/xpm.h>
37108 if { (ac_try="$ac_cpp conftest.
$ac_ext"
37109 case "(($ac_try" in
37110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37111 *) ac_try_echo=$ac_try;;
37113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37114 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
37116 grep -v '^ *+' conftest.er1 >conftest.err
37118 cat conftest.err >&5
37119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37120 (exit $ac_status); } >/dev/null && {
37121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37122 test ! -s conftest.err
37124 ac_header_preproc=yes
37126 echo "$as_me: failed program was
:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37129 ac_header_preproc=no
37132 rm -f conftest.err conftest.$ac_ext
37133 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
37134 echo "${ECHO_T}$ac_header_preproc" >&6; }
37136 # So? What about this header?
37137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37139 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
37140 echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
37141 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
37142 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
37143 ac_header_preproc=yes
37146 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
37147 echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
37148 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
37149 echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
37150 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
37151 echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
37152 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
37153 echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
37154 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
37155 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
37156 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
37157 echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
37161 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
37162 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
37163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37164 echo $ECHO_N "(cached
) $ECHO_C" >&6
37166 ac_cv_header_X11_xpm_h=$ac_header_preproc
37168 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
37169 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37172 if test $ac_cv_header_X11_xpm_h = yes; then
37174 cat >>confdefs.h <<\_ACEOF
37175 #define BX_HAVE_XPM_H 1
37187 if test "$with_beos" = yes; then
37188 display_libs="$display_libs beos
"
37189 cat >>confdefs.h <<\_ACEOF
37190 #define BX_WITH_BEOS 1
37193 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_BEOS
)"
37194 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_BEOS
)"
37197 if test "$with_sdl" = yes; then
37198 display_libs="$display_libs sdl
"
37199 cat >>confdefs.h <<\_ACEOF
37200 #define BX_WITH_SDL 1
37203 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_SDL
)"
37204 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37205 # the files in gui/*.cc.
37206 SDL_CFLAGS=`sdl-config --cflags`
37207 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
37208 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
37209 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_SDL
)"
37210 if test "$with_win32" != yes -a "$with_wx" != yes; then
37214 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37216 *-cygwin* | *-mingw32*)
37217 RC_CMD="windres
-o "
37218 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37224 if test "$with_svga" = yes; then
37225 display_libs="$display_libs svga
"
37226 cat >>confdefs.h <<\_ACEOF
37227 #define BX_WITH_SVGA 1
37230 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_SVGA
)"
37231 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37232 # the files in gui/*.cc.
37233 GUI_CFLAGS="$GUI_CFLAGS"
37234 GUI_CXXFLAGS="$GUI_CXXFLAGS"
37235 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_SVGA
)"
37238 if test "$with_rfb" = yes; then
37239 display_libs="$display_libs rfb
"
37240 cat >>confdefs.h <<\_ACEOF
37241 #define BX_WITH_RFB 1
37244 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_RFB
)"
37245 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_RFB
)"
37248 if test "$with_amigaos" = yes; then
37249 display_libs="$display_libs amigaos
"
37250 cat >>confdefs.h <<\_ACEOF
37251 #define BX_WITH_AMIGAOS 1
37254 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_AMIGAOS
)"
37255 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_AMIGAOS
)"
37258 if test "$with_win32" = yes; then
37259 display_libs="$display_libs win32
"
37260 cat >>confdefs.h <<\_ACEOF
37261 #define BX_WITH_WIN32 1
37264 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_WIN32
)"
37267 if test "$with_wx" != yes; then
37269 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37271 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_WIN32_VCPP
)"
37273 *-cygwin* | *-mingw32*)
37274 if test "$with_wx" != yes; then
37275 RC_CMD="windres
-o "
37276 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37278 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_WIN32
)"
37280 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
37285 if test "$with_macos" = yes; then
37286 display_libs="$display_libs macos
"
37287 cat >>confdefs.h <<\_ACEOF
37288 #define BX_WITH_MACOS 1
37291 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_MACOS
)"
37292 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_MACOS
)"
37295 if test "$with_carbon" = yes; then
37296 display_libs="$display_libs carbon
"
37297 cat >>confdefs.h <<\_ACEOF
37298 #define BX_WITH_CARBON 1
37301 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_CARBON
)"
37302 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_CARBON
)"
37303 if test "$bx_plugins" = 1; then
37304 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
37306 PRIMARY_TARGET=bochs.app/.build # only for carbon application
37308 INSTALL_TARGET='install_macosx'
37311 if test "$with_term" = yes; then
37312 display_libs="$display_libs term
"
37313 cat >>confdefs.h <<\_ACEOF
37314 #define BX_WITH_TERM 1
37317 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_TERM
)"
37318 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_TERM
)"
37322 if test "$with_wx" = yes; then
37323 display_libs="$display_libs wxWidgets
"
37324 if test "$cross_configure" = 1; then
37325 true # do not insist, if configuring for another machine
37327 if test x$ok_wx_version != x1; then
37328 echo ERROR: A usable version of wxWidgets was not found.
37329 echo Upgrade the library or choose another gui.
37333 cat >>confdefs.h <<\_ACEOF
37334 #define BX_WITH_WX 1
37337 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_WX
)"
37338 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$
(GUI_OBJS_WX_SUPPORT
)"
37339 WX_CFLAGS="`$WX_CONFIG --cflags`"
37340 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
37341 if test "$wx_multi_lib" = 1; then
37342 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
37344 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
37346 if test "$wx_needs_gtk2" = 1; then
37349 if test "x
$ac_cv_env_PKG_CONFIG_set" != "xset
"; then
37350 if test -n "$ac_tool_prefix"; then
37351 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
37352 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37353 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
37354 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
37355 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37356 echo $ECHO_N "(cached
) $ECHO_C" >&6
37358 case $PKG_CONFIG in
37360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37364 for as_dir in $PATH
37367 test -z "$as_dir" && as_dir=.
37368 for ac_exec_ext in '' $ac_executable_extensions; do
37369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37371 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
37381 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37382 if test -n "$PKG_CONFIG"; then
37383 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
37384 echo "${ECHO_T}$PKG_CONFIG" >&6; }
37386 { echo "$as_me:$LINENO: result
: no
" >&5
37387 echo "${ECHO_T}no
" >&6; }
37392 if test -z "$ac_cv_path_PKG_CONFIG"; then
37393 ac_pt_PKG_CONFIG=$PKG_CONFIG
37394 # Extract the first word of "pkg-config
", so it can be a program name with args.
37395 set dummy pkg-config; ac_word=$2
37396 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
37397 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
37398 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
37399 echo $ECHO_N "(cached
) $ECHO_C" >&6
37401 case $ac_pt_PKG_CONFIG in
37403 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37407 for as_dir in $PATH
37410 test -z "$as_dir" && as_dir=.
37411 for ac_exec_ext in '' $ac_executable_extensions; do
37412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37413 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37414 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
37424 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37425 if test -n "$ac_pt_PKG_CONFIG"; then
37426 { echo "$as_me:$LINENO: result
: $ac_pt_PKG_CONFIG" >&5
37427 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37429 { echo "$as_me:$LINENO: result
: no
" >&5
37430 echo "${ECHO_T}no
" >&6; }
37433 if test "x
$ac_pt_PKG_CONFIG" = x; then
37436 case $cross_compiling:$ac_tool_warned in
37438 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
37439 whose name does not start with the
host triplet. If you think this
37440 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
37441 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
37442 whose name does not start with the
host triplet. If you think this
37443 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
37444 ac_tool_warned=yes ;;
37446 PKG_CONFIG=$ac_pt_PKG_CONFIG
37449 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37453 if test -n "$PKG_CONFIG"; then
37454 _pkg_min_version=0.9.0
37455 { echo "$as_me:$LINENO: checking pkg-config is
at least version
$_pkg_min_version" >&5
37456 echo $ECHO_N "checking pkg-config is
at least version
$_pkg_min_version...
$ECHO_C" >&6; }
37457 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37458 { echo "$as_me:$LINENO: result
: yes" >&5
37459 echo "${ECHO_T}yes" >&6; }
37461 { echo "$as_me:$LINENO: result
: no
" >&5
37462 echo "${ECHO_T}no
" >&6; }
37469 { echo "$as_me:$LINENO: checking
for GTK
" >&5
37470 echo $ECHO_N "checking
for GTK...
$ECHO_C" >&6; }
37472 if test -n "$PKG_CONFIG"; then
37473 if test -n "$GTK_CFLAGS"; then
37474 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
37476 if test -n "$PKG_CONFIG" && \
37477 { (echo "$as_me:$LINENO: \
$PKG_CONFIG --exists --print-errors \"gtk
+-2.0
\"") >&5
37478 ($PKG_CONFIG --exists --print-errors "gtk
+-2.0
") 2>&5
37480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37481 (exit $ac_status); }; then
37482 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk
+-2.0
" 2>/dev/null`
37490 if test -n "$PKG_CONFIG"; then
37491 if test -n "$GTK_LIBS"; then
37492 pkg_cv_GTK_LIBS="$GTK_LIBS"
37494 if test -n "$PKG_CONFIG" && \
37495 { (echo "$as_me:$LINENO: \
$PKG_CONFIG --exists --print-errors \"gtk
+-2.0
\"") >&5
37496 ($PKG_CONFIG --exists --print-errors "gtk
+-2.0
") 2>&5
37498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37499 (exit $ac_status); }; then
37500 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk
+-2.0
" 2>/dev/null`
37511 if test $pkg_failed = yes; then
37513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37514 _pkg_short_errors_supported=yes
37516 _pkg_short_errors_supported=no
37518 if test $_pkg_short_errors_supported = yes; then
37519 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk
+-2.0
"`
37521 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk
+-2.0
"`
37523 # Put the nasty error message in config.log where it belongs
37524 echo "$GTK_PKG_ERRORS" >&5
37526 { { echo "$as_me:$LINENO: error
: Package requirements
(gtk
+-2.0
) were not met
:
37530 Consider adjusting the PKG_CONFIG_PATH environment variable
if you
37531 installed software
in a non-standard prefix.
37533 Alternatively
, you may
set the environment variables GTK_CFLAGS
37534 and GTK_LIBS to avoid the need to call pkg-config.
37535 See the pkg-config man page
for more details.
37537 echo "$as_me: error
: Package requirements
(gtk
+-2.0
) were not met
:
37541 Consider adjusting the PKG_CONFIG_PATH environment variable
if you
37542 installed software
in a non-standard prefix.
37544 Alternatively
, you may
set the environment variables GTK_CFLAGS
37545 and GTK_LIBS to avoid the need to call pkg-config.
37546 See the pkg-config man page
for more details.
37548 { (exit 1); exit 1; }; }
37549 elif test $pkg_failed = untried; then
37550 { { echo "$as_me:$LINENO: error
: The pkg-config
script could not be found or is too old. Make sure it
37551 is
in your PATH or
set the PKG_CONFIG environment variable to the full
37552 path to pkg-config.
37554 Alternatively
, you may
set the environment variables GTK_CFLAGS
37555 and GTK_LIBS to avoid the need to call pkg-config.
37556 See the pkg-config man page
for more details.
37558 To get pkg-config
, see
<http
://www.freedesktop.org
/software
/pkgconfig
>.
37559 See \
`config.log' for more details." >&5
37560 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
37561 is in your PATH or set the PKG_CONFIG environment variable to the full
37562 path to pkg-config.
37564 Alternatively, you may set the environment variables GTK_CFLAGS
37565 and GTK_LIBS to avoid the need to call pkg-config.
37566 See the pkg-config man page for more details.
37568 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37569 See \`config.log
' for more details." >&2;}
37570 { (exit 1); exit 1; }; }
37572 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
37573 GTK_LIBS=$pkg_cv_GTK_LIBS
37574 { echo "$as_me:$LINENO: result: yes" >&5
37575 echo "${ECHO_T}yes" >&6; }
37577 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
37578 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
37582 # if gtk-config exists, then add it to the cflags.
37583 gtkconf=`gtk-config --cflags`
37584 if test $? = 0; then
37585 # gtk-config was found and returned 0, so it must return valid output
37586 WX_CFLAGS="$WX_CFLAGS $gtkconf"
37587 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
37590 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
37591 # the files in gui/*.cc. They are not used when building other things
37593 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
37594 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
37595 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
37596 # using debugger with readline is failing due to thread/signal handler
37599 *-pc-windows* | *-cygwin* | *-mingw32*)
37600 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
37601 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
37606 if test "$with_nogui" = yes; then
37607 display_libs="$display_libs nogui"
37608 cat >>confdefs.h <<\_ACEOF
37609 #define BX_WITH_NOGUI 1
37612 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
37615 { echo "$as_me:$LINENO: checking for display libraries" >&5
37616 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
37617 { echo "$as_me:$LINENO: result: $display_libs" >&5
37618 echo "${ECHO_T}$display_libs" >&6; }
37620 if test "$display_libs" = ""; then
37621 echo "No display libraries were selected. Use --with-* options to enable"
37622 echo "individual display libraries, or --with-all-libs to detect the ones"
37623 echo "that Bochs supports."
37627 if test "$display_libs" = " wxWidgets"; then
37628 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
37629 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
37630 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37631 echo "${ECHO_T}wxWidgets" >&6; }
37632 { echo "$as_me:$LINENO: checking for default display library" >&5
37633 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
37634 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37635 echo "${ECHO_T}wxWidgets" >&6; }
37636 cat >>confdefs.h <<\_ACEOF
37637 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
37640 cat >>confdefs.h <<\_ACEOF
37641 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
37644 cat >>confdefs.h <<\_ACEOF
37645 #define BX_USE_TEXTCONFIG 0
37649 cat >>confdefs.h <<\_ACEOF
37650 #define BX_USE_TEXTCONFIG 1
37655 if test "$bx_plugins" = 1; then
37656 # every item in this list will be compiled as a plugin. Do not include
37657 # support objs; they will be mentioned in plugin-specific makefile rules.
37658 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
37660 # include support objs
37661 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
37670 for ac_prog in wget curl fetch
37672 # Extract the first word of "$ac_prog", so it can be a program name with args.
37673 set dummy $ac_prog; ac_word=$2
37674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37676 if test "${ac_cv_prog_WGET+set}" = set; then
37677 echo $ECHO_N "(cached) $ECHO_C" >&6
37679 if test -n "$WGET"; then
37680 ac_cv_prog_WGET="$WGET" # Let the user override the test.
37682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37683 for as_dir in $PATH
37686 test -z "$as_dir" && as_dir=.
37687 for ac_exec_ext in '' $ac_executable_extensions; do
37688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37689 ac_cv_prog_WGET="$ac_prog"
37690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37699 WGET=$ac_cv_prog_WGET
37700 if test -n "$WGET"; then
37701 { echo "$as_me:$LINENO: result: $WGET" >&5
37702 echo "${ECHO_T}$WGET" >&6; }
37704 { echo "$as_me:$LINENO: result: no" >&5
37705 echo "${ECHO_T}no" >&6; }
37709 test -n "$WGET" && break
37711 test -n "$WGET" || WGET="not_found"
37713 if test "$WGET" = not_found; then
37714 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
37715 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
37717 # everybody has to re-invent the wheel. differently.
37718 test "${WGET}" = "curl" && WGET="curl -O"
37720 # modify settings based on target platform
37723 cat >>confdefs.h <<\_ACEOF
37724 #define BX_HAVE_STRDUP 0
37729 cat >>confdefs.h <<\_ACEOF
37730 #define BX_HAVE_STRDUP 0
37733 cat >>confdefs.h <<\_ACEOF
37734 #define BX_PLUGINS 0
37737 cat >>confdefs.h <<\_ACEOF
37738 #define BX_HAVE_DLFCN_H 0
37741 cat >>confdefs.h <<\_ACEOF
37742 #define BX_HAVE_SOCKLEN_T 0
37745 cat >>confdefs.h <<\_ACEOF
37746 #define BX_HAVE_SELECT 0
37749 cat >>confdefs.h <<\_ACEOF
37750 #define BX_HAVE_GETTIMEOFDAY 0
37753 cat >>confdefs.h <<\_ACEOF
37754 #define BX_NO_ATTRIBUTES 1
37757 cat >>confdefs.h <<\_ACEOF
37758 #define HAVE_TUNTAP 0
37761 cat >>confdefs.h <<\_ACEOF
37762 #define HAVE_ETHERTAP 0
37765 cat >>confdefs.h <<\_ACEOF
37766 #define BX_HAVE_HASH_MAP 0
37771 INSTALL_TARGET='install_win32
'
37774 #C_OPT="/Zi" # for debugging
37775 C_OPT="/Ox" # optimize for speed
37776 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
37784 MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
37787 #L_OPT="/debug" # for debugging
37788 L_OPT="" # no debug info
37789 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
37792 PRIMARY_TARGET="bochs.exe"
37793 BXIMAGE_LINK_OPTS="user32.lib"
37794 # also compile niclist if networking is on
37795 if test "$networking" = yes; then
37796 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37798 COMMAND_SEPARATOR=""
37800 CD_UP_TWO="cd ..\.."
37801 CD_UP_THREE="cd ..\..\.."
37802 have_gettimeofday=0 # even though it may exist in build environment
37803 cat >>confdefs.h <<\_ACEOF
37804 #define BX_64BIT_CONSTANTS_USE_LL 0
37807 cat >>confdefs.h <<\_ACEOF
37808 #define inline __inline
37811 cat >>confdefs.h <<\_ACEOF
37812 #define BX_NO_EMPTY_STRUCTS 1
37815 cat >>confdefs.h <<\_ACEOF
37816 #define BX_NO_ATTRIBUTES 1
37819 cat >>confdefs.h <<\_ACEOF
37820 #define BX_HAVE_HASH_MAP 0
37823 cat >>confdefs.h <<\_ACEOF
37824 #define BX_HAVE_HASH_MAP_H 0
37827 cat >>confdefs.h <<\_ACEOF
37828 #define BX_HAVE_STRTOULL 0
37831 cat >>confdefs.h <<\_ACEOF
37832 #define BX_HAVE_STRTOUQ 0
37835 cat >>confdefs.h <<\_ACEOF
37836 #define HAVE_LIBREADLINE 0
37839 cat >>confdefs.h <<\_ACEOF
37840 #define BX_HAVE_GETTIMEOFDAY 0
37843 cat >>confdefs.h <<\_ACEOF
37844 #define BX_HAVE_DLFCN_H 0
37847 cat >>confdefs.h <<\_ACEOF
37848 #define BX_HAVE_MKSTEMP 0
37851 cat >>confdefs.h <<\_ACEOF
37852 #define BX_HAVE_SYS_MMAN_H 0
37855 cat >>confdefs.h <<\_ACEOF
37856 #define BX_HAVE_USLEEP 0
37859 cat >>confdefs.h <<\_ACEOF
37860 #define HAVE_ETHERTAP 0
37863 cat >>confdefs.h <<\_ACEOF
37864 #define BX_HAVE_SELECT 1
37867 cat >>confdefs.h <<\_ACEOF
37868 #define BX_HAVE_SOCKLEN_T 0
37874 PRIMARY_TARGET="bochs.exe"
37875 BXIMAGE_LINK_OPTS="-luser32"
37876 if test "$networking" = yes; then
37877 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37879 cat >>confdefs.h <<\_ACEOF
37880 #define BX_HAVE_SELECT 1
37885 BXIMAGE_LINK_OPTS="-luser32"
37886 if test "$networking" = yes; then
37887 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
37889 cat >>confdefs.h <<\_ACEOF
37890 #define BX_HAVE_SELECT 1
37895 PRIMARY_TARGET=.bochs_beos_target
37900 EXPORT_DYNAMIC="-export-dynamic"
37902 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
37903 if test "$bx_plugins" = 1; then
37904 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
37905 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
37906 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
37907 echo $ECHO_N "(cached) $ECHO_C" >&6
37909 ac_check_lib_save_LIBS=$LIBS
37910 LIBS="-lmingwex $LIBS"
37911 cat >conftest.$ac_ext <<_ACEOF
37914 cat confdefs.h >>conftest.$ac_ext
37915 cat >>conftest.$ac_ext <<_ACEOF
37916 /* end confdefs.h. */
37918 /* Override any GCC internal prototype to avoid an error.
37919 Use char because int might match the return type of a GCC
37920 builtin and then its argument prototype would still apply. */
37933 rm -f conftest.$ac_objext conftest$ac_exeext
37934 if { (ac_try="$ac_link"
37935 case "(($ac_try" in
37936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37937 *) ac_try_echo=$ac_try;;
37939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37940 (eval "$ac_link") 2>conftest.er1
37942 grep -v '^
*+' conftest.er1 >conftest.err
37944 cat conftest.err >&5
37945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946 (exit $ac_status); } && {
37947 test -z "$ac_c_werror_flag" ||
37948 test ! -s conftest.err
37949 } && test -s conftest$ac_exeext &&
37950 $as_test_x conftest$ac_exeext; then
37951 ac_cv_lib_mingwex_opendir=yes
37953 echo "$as_me: failed program was:" >&5
37954 sed 's
/^
/|
/' conftest.$ac_ext >&5
37956 ac_cv_lib_mingwex_opendir=no
37959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37960 conftest$ac_exeext conftest.$ac_ext
37961 LIBS=$ac_check_lib_save_LIBS
37963 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
37964 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
37965 if test $ac_cv_lib_mingwex_opendir = yes; then
37966 LIBS="$LIBS -lmingwex"
37969 # set variables for building DLL plugins
37970 PRIMARY_TARGET=".win32_dll_plugin_target"
37971 PLUGIN_LIBNAME_TRANSFORMATION='%.o
=bx_
%.dll
'
37972 INSTALL_PLUGINS_VAR=install_dll_plugins
37974 if test "$with_win32" != yes; then
37975 LIBS="$LIBS -lcomctl32"
37978 DIALOG_OBJS="win32dialog.o win32_enh_dbg.o"
37985 if test "$use_curses" = yes -a "$cross_configure" = 0; then
37986 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
37987 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
37988 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
37989 echo $ECHO_N "(cached) $ECHO_C" >&6
37991 ac_check_lib_save_LIBS=$LIBS
37992 LIBS="-lcurses $LIBS"
37993 cat >conftest.$ac_ext <<_ACEOF
37996 cat confdefs.h >>conftest.$ac_ext
37997 cat >>conftest.$ac_ext <<_ACEOF
37998 /* end confdefs.h. */
38000 /* Override any GCC internal prototype to avoid an error.
38001 Use char because int might match the return type of a GCC
38002 builtin and then its argument prototype would still apply. */
38015 rm -f conftest.$ac_objext conftest$ac_exeext
38016 if { (ac_try="$ac_link"
38017 case "(($ac_try" in
38018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38019 *) ac_try_echo=$ac_try;;
38021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38022 (eval "$ac_link") 2>conftest.er1
38024 grep -v '^
*+' conftest.er1 >conftest.err
38026 cat conftest.err >&5
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); } && {
38029 test -z "$ac_c_werror_flag" ||
38030 test ! -s conftest.err
38031 } && test -s conftest$ac_exeext &&
38032 $as_test_x conftest$ac_exeext; then
38033 ac_cv_lib_curses_mvaddch=yes
38035 echo "$as_me: failed program was:" >&5
38036 sed 's
/^
/|
/' conftest.$ac_ext >&5
38038 ac_cv_lib_curses_mvaddch=no
38041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38042 conftest$ac_exeext conftest.$ac_ext
38043 LIBS=$ac_check_lib_save_LIBS
38045 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
38046 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
38047 if test $ac_cv_lib_curses_mvaddch = yes; then
38048 GUI_LINK_OPTS_TERM='-lcurses'
38051 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
38052 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
38053 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
38054 echo $ECHO_N "(cached) $ECHO_C" >&6
38056 ac_check_lib_save_LIBS=$LIBS
38057 LIBS="-lncurses $LIBS"
38058 cat >conftest.$ac_ext <<_ACEOF
38061 cat confdefs.h >>conftest.$ac_ext
38062 cat >>conftest.$ac_ext <<_ACEOF
38063 /* end confdefs.h. */
38065 /* Override any GCC internal prototype to avoid an error.
38066 Use char because int might match the return type of a GCC
38067 builtin and then its argument prototype would still apply. */
38080 rm -f conftest.$ac_objext conftest$ac_exeext
38081 if { (ac_try="$ac_link"
38082 case "(($ac_try" in
38083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38084 *) ac_try_echo=$ac_try;;
38086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38087 (eval "$ac_link") 2>conftest.er1
38089 grep -v '^
*+' conftest.er1 >conftest.err
38091 cat conftest.err >&5
38092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38093 (exit $ac_status); } && {
38094 test -z "$ac_c_werror_flag" ||
38095 test ! -s conftest.err
38096 } && test -s conftest$ac_exeext &&
38097 $as_test_x conftest$ac_exeext; then
38098 ac_cv_lib_ncurses_mvaddch=yes
38100 echo "$as_me: failed program was:" >&5
38101 sed 's
/^
/|
/' conftest.$ac_ext >&5
38103 ac_cv_lib_ncurses_mvaddch=no
38106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38107 conftest$ac_exeext conftest.$ac_ext
38108 LIBS=$ac_check_lib_save_LIBS
38110 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
38111 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
38112 if test $ac_cv_lib_ncurses_mvaddch = yes; then
38113 GUI_LINK_OPTS_TERM='-lncurses'
38116 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
38117 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
38118 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38121 ac_check_lib_save_LIBS=$LIBS
38122 LIBS="-ltermlib $LIBS"
38123 cat >conftest.$ac_ext <<_ACEOF
38126 cat confdefs.h >>conftest.$ac_ext
38127 cat >>conftest.$ac_ext <<_ACEOF
38128 /* end confdefs.h. */
38130 /* Override any GCC internal prototype to avoid an error.
38131 Use char because int might match the return type of a GCC
38132 builtin and then its argument prototype would still apply. */
38145 rm -f conftest.$ac_objext conftest$ac_exeext
38146 if { (ac_try="$ac_link"
38147 case "(($ac_try" in
38148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38149 *) ac_try_echo=$ac_try;;
38151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38152 (eval "$ac_link") 2>conftest.er1
38154 grep -v '^
*+' conftest.er1 >conftest.err
38156 cat conftest.err >&5
38157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38158 (exit $ac_status); } && {
38159 test -z "$ac_c_werror_flag" ||
38160 test ! -s conftest.err
38161 } && test -s conftest$ac_exeext &&
38162 $as_test_x conftest$ac_exeext; then
38163 ac_cv_lib_termlib_mvaddch=yes
38165 echo "$as_me: failed program was:" >&5
38166 sed 's
/^
/|
/' conftest.$ac_ext >&5
38168 ac_cv_lib_termlib_mvaddch=no
38171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38172 conftest$ac_exeext conftest.$ac_ext
38173 LIBS=$ac_check_lib_save_LIBS
38175 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
38176 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
38177 if test $ac_cv_lib_termlib_mvaddch = yes; then
38178 GUI_LINK_OPTS_TERM='-ltermlib'
38181 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
38182 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
38183 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
38184 echo $ECHO_N "(cached) $ECHO_C" >&6
38186 ac_check_lib_save_LIBS=$LIBS
38187 LIBS="-lpdcurses $LIBS"
38188 cat >conftest.$ac_ext <<_ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h. */
38195 /* Override any GCC internal prototype to avoid an error.
38196 Use char because int might match the return type of a GCC
38197 builtin and then its argument prototype would still apply. */
38210 rm -f conftest.$ac_objext conftest$ac_exeext
38211 if { (ac_try="$ac_link"
38212 case "(($ac_try" in
38213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38214 *) ac_try_echo=$ac_try;;
38216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38217 (eval "$ac_link") 2>conftest.er1
38219 grep -v '^
*+' conftest.er1 >conftest.err
38221 cat conftest.err >&5
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); } && {
38224 test -z "$ac_c_werror_flag" ||
38225 test ! -s conftest.err
38226 } && test -s conftest$ac_exeext &&
38227 $as_test_x conftest$ac_exeext; then
38228 ac_cv_lib_pdcurses_mvaddch=yes
38230 echo "$as_me: failed program was:" >&5
38231 sed 's
/^
/|
/' conftest.$ac_ext >&5
38233 ac_cv_lib_pdcurses_mvaddch=no
38236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38237 conftest$ac_exeext conftest.$ac_ext
38238 LIBS=$ac_check_lib_save_LIBS
38240 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
38241 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
38242 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
38243 GUI_LINK_OPTS_TERM='-lpdcurses'
38246 if test "$GUI_LINK_OPTS_TERM" = ""; then
38247 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
38252 if test "$with_term" = yes; then
38254 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
38256 for ac_func in color_set
38258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38262 echo $ECHO_N "(cached) $ECHO_C" >&6
38264 cat >conftest.$ac_ext <<_ACEOF
38267 cat confdefs.h >>conftest.$ac_ext
38268 cat >>conftest.$ac_ext <<_ACEOF
38269 /* end confdefs.h. */
38270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38272 #define $ac_func innocuous_$ac_func
38274 /* System header to define __stub macros and hopefully few prototypes,
38275 which can conflict with char $ac_func (); below.
38276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38277 <limits.h> exists even on freestanding compilers. */
38280 # include <limits.h>
38282 # include <assert.h>
38287 /* Override any GCC internal prototype to avoid an error.
38288 Use char because int might match the return type of a GCC
38289 builtin and then its argument prototype would still apply. */
38294 /* The GNU C library defines this for functions which it implements
38295 to always fail with ENOSYS. Some functions are actually named
38296 something starting with __ and the normal name is an alias. */
38297 #if defined __stub_$ac_func || defined __stub___$ac_func
38304 return $ac_func ();
38309 rm -f conftest.$ac_objext conftest$ac_exeext
38310 if { (ac_try="$ac_link"
38311 case "(($ac_try" in
38312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38313 *) ac_try_echo=$ac_try;;
38315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38316 (eval "$ac_link") 2>conftest.er1
38318 grep -v '^
*+' conftest.er1 >conftest.err
38320 cat conftest.err >&5
38321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38322 (exit $ac_status); } && {
38323 test -z "$ac_c_werror_flag" ||
38324 test ! -s conftest.err
38325 } && test -s conftest$ac_exeext &&
38326 $as_test_x conftest$ac_exeext; then
38327 eval "$as_ac_var=yes"
38329 echo "$as_me: failed program was:" >&5
38330 sed 's
/^
/|
/' conftest.$ac_ext >&5
38332 eval "$as_ac_var=no"
38335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38336 conftest$ac_exeext conftest.$ac_ext
38338 ac_res=`eval echo '${'$as_ac_var'}'`
38339 { echo "$as_me:$LINENO: result: $ac_res" >&5
38340 echo "${ECHO_T}$ac_res" >&6; }
38341 if test `eval echo '${'$as_ac_var'}'` = yes; then
38342 cat >>confdefs.h <<_ACEOF
38343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38345 cat >>confdefs.h <<\_ACEOF
38346 #define BX_HAVE_COLOR_SET 1
38353 for ac_func in mvhline
38355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38359 echo $ECHO_N "(cached) $ECHO_C" >&6
38361 cat >conftest.$ac_ext <<_ACEOF
38364 cat confdefs.h >>conftest.$ac_ext
38365 cat >>conftest.$ac_ext <<_ACEOF
38366 /* end confdefs.h. */
38367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38369 #define $ac_func innocuous_$ac_func
38371 /* System header to define __stub macros and hopefully few prototypes,
38372 which can conflict with char $ac_func (); below.
38373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38374 <limits.h> exists even on freestanding compilers. */
38377 # include <limits.h>
38379 # include <assert.h>
38384 /* Override any GCC internal prototype to avoid an error.
38385 Use char because int might match the return type of a GCC
38386 builtin and then its argument prototype would still apply. */
38391 /* The GNU C library defines this for functions which it implements
38392 to always fail with ENOSYS. Some functions are actually named
38393 something starting with __ and the normal name is an alias. */
38394 #if defined __stub_$ac_func || defined __stub___$ac_func
38401 return $ac_func ();
38406 rm -f conftest.$ac_objext conftest$ac_exeext
38407 if { (ac_try="$ac_link"
38408 case "(($ac_try" in
38409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38410 *) ac_try_echo=$ac_try;;
38412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38413 (eval "$ac_link") 2>conftest.er1
38415 grep -v '^
*+' conftest.er1 >conftest.err
38417 cat conftest.err >&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); } && {
38420 test -z "$ac_c_werror_flag" ||
38421 test ! -s conftest.err
38422 } && test -s conftest$ac_exeext &&
38423 $as_test_x conftest$ac_exeext; then
38424 eval "$as_ac_var=yes"
38426 echo "$as_me: failed program was:" >&5
38427 sed 's
/^
/|
/' conftest.$ac_ext >&5
38429 eval "$as_ac_var=no"
38432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38433 conftest$ac_exeext conftest.$ac_ext
38435 ac_res=`eval echo '${'$as_ac_var'}'`
38436 { echo "$as_me:$LINENO: result: $ac_res" >&5
38437 echo "${ECHO_T}$ac_res" >&6; }
38438 if test `eval echo '${'$as_ac_var'}'` = yes; then
38439 cat >>confdefs.h <<_ACEOF
38440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38442 cat >>confdefs.h <<\_ACEOF
38443 #define BX_HAVE_MVHLINE 1
38450 for ac_func in mvvline
38452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38456 echo $ECHO_N "(cached) $ECHO_C" >&6
38458 cat >conftest.$ac_ext <<_ACEOF
38461 cat confdefs.h >>conftest.$ac_ext
38462 cat >>conftest.$ac_ext <<_ACEOF
38463 /* end confdefs.h. */
38464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38466 #define $ac_func innocuous_$ac_func
38468 /* System header to define __stub macros and hopefully few prototypes,
38469 which can conflict with char $ac_func (); below.
38470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38471 <limits.h> exists even on freestanding compilers. */
38474 # include <limits.h>
38476 # include <assert.h>
38481 /* Override any GCC internal prototype to avoid an error.
38482 Use char because int might match the return type of a GCC
38483 builtin and then its argument prototype would still apply. */
38488 /* The GNU C library defines this for functions which it implements
38489 to always fail with ENOSYS. Some functions are actually named
38490 something starting with __ and the normal name is an alias. */
38491 #if defined __stub_$ac_func || defined __stub___$ac_func
38498 return $ac_func ();
38503 rm -f conftest.$ac_objext conftest$ac_exeext
38504 if { (ac_try="$ac_link"
38505 case "(($ac_try" in
38506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38507 *) ac_try_echo=$ac_try;;
38509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38510 (eval "$ac_link") 2>conftest.er1
38512 grep -v '^
*+' conftest.er1 >conftest.err
38514 cat conftest.err >&5
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); } && {
38517 test -z "$ac_c_werror_flag" ||
38518 test ! -s conftest.err
38519 } && test -s conftest$ac_exeext &&
38520 $as_test_x conftest$ac_exeext; then
38521 eval "$as_ac_var=yes"
38523 echo "$as_me: failed program was:" >&5
38524 sed 's
/^
/|
/' conftest.$ac_ext >&5
38526 eval "$as_ac_var=no"
38529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38530 conftest$ac_exeext conftest.$ac_ext
38532 ac_res=`eval echo '${'$as_ac_var'}'`
38533 { echo "$as_me:$LINENO: result: $ac_res" >&5
38534 echo "${ECHO_T}$ac_res" >&6; }
38535 if test `eval echo '${'$as_ac_var'}'` = yes; then
38536 cat >>confdefs.h <<_ACEOF
38537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38539 cat >>confdefs.h <<\_ACEOF
38540 #define BX_HAVE_MVVLINE 1
38549 if test "$with_rfb" = yes; then
38550 # we need the socket function
38553 # is this okay without a check ?
38554 RFB_LIBS="$RFB_LIBS wsock32.lib"
38557 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
38558 # is this okay without a check ?
38559 RFB_LIBS="$RFB_LIBS -lwsock32"
38564 for ac_func in socket
38566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38570 echo $ECHO_N "(cached) $ECHO_C" >&6
38572 cat >conftest.$ac_ext <<_ACEOF
38575 cat confdefs.h >>conftest.$ac_ext
38576 cat >>conftest.$ac_ext <<_ACEOF
38577 /* end confdefs.h. */
38578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38580 #define $ac_func innocuous_$ac_func
38582 /* System header to define __stub macros and hopefully few prototypes,
38583 which can conflict with char $ac_func (); below.
38584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38585 <limits.h> exists even on freestanding compilers. */
38588 # include <limits.h>
38590 # include <assert.h>
38595 /* Override any GCC internal prototype to avoid an error.
38596 Use char because int might match the return type of a GCC
38597 builtin and then its argument prototype would still apply. */
38602 /* The GNU C library defines this for functions which it implements
38603 to always fail with ENOSYS. Some functions are actually named
38604 something starting with __ and the normal name is an alias. */
38605 #if defined __stub_$ac_func || defined __stub___$ac_func
38612 return $ac_func ();
38617 rm -f conftest.$ac_objext conftest$ac_exeext
38618 if { (ac_try="$ac_link"
38619 case "(($ac_try" in
38620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621 *) ac_try_echo=$ac_try;;
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624 (eval "$ac_link") 2>conftest.er1
38626 grep -v '^
*+' conftest.er1 >conftest.err
38628 cat conftest.err >&5
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); } && {
38631 test -z "$ac_c_werror_flag" ||
38632 test ! -s conftest.err
38633 } && test -s conftest$ac_exeext &&
38634 $as_test_x conftest$ac_exeext; then
38635 eval "$as_ac_var=yes"
38637 echo "$as_me: failed program was:" >&5
38638 sed 's
/^
/|
/' conftest.$ac_ext >&5
38640 eval "$as_ac_var=no"
38643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38644 conftest$ac_exeext conftest.$ac_ext
38646 ac_res=`eval echo '${'$as_ac_var'}'`
38647 { echo "$as_me:$LINENO: result: $ac_res" >&5
38648 echo "${ECHO_T}$ac_res" >&6; }
38649 if test `eval echo '${'$as_ac_var'}'` = yes; then
38650 cat >>confdefs.h <<_ACEOF
38651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38657 if test "$have_socket" != yes; then
38658 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38659 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
38660 if test "${ac_cv_lib_socket_socket+set}" = set; then
38661 echo $ECHO_N "(cached) $ECHO_C" >&6
38663 ac_check_lib_save_LIBS=$LIBS
38664 LIBS="-lsocket $LIBS"
38665 cat >conftest.$ac_ext <<_ACEOF
38668 cat confdefs.h >>conftest.$ac_ext
38669 cat >>conftest.$ac_ext <<_ACEOF
38670 /* end confdefs.h. */
38672 /* Override any GCC internal prototype to avoid an error.
38673 Use char because int might match the return type of a GCC
38674 builtin and then its argument prototype would still apply. */
38687 rm -f conftest.$ac_objext conftest$ac_exeext
38688 if { (ac_try="$ac_link"
38689 case "(($ac_try" in
38690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38691 *) ac_try_echo=$ac_try;;
38693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38694 (eval "$ac_link") 2>conftest.er1
38696 grep -v '^
*+' conftest.er1 >conftest.err
38698 cat conftest.err >&5
38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); } && {
38701 test -z "$ac_c_werror_flag" ||
38702 test ! -s conftest.err
38703 } && test -s conftest$ac_exeext &&
38704 $as_test_x conftest$ac_exeext; then
38705 ac_cv_lib_socket_socket=yes
38707 echo "$as_me: failed program was:" >&5
38708 sed 's
/^
/|
/' conftest.$ac_ext >&5
38710 ac_cv_lib_socket_socket=no
38713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38714 conftest$ac_exeext conftest.$ac_ext
38715 LIBS=$ac_check_lib_save_LIBS
38717 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38718 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
38719 if test $ac_cv_lib_socket_socket = yes; then
38721 RFB_LIBS="$RFB_LIBS -lsocket"
38729 if test "$have_socket" != yes; then
38730 echo 'ERROR
: socket
function required
for RFB compile
'
38735 # The ACX_PTHREAD function was written by
38736 # Steven G. Johnson <stevenj@alum.mit.edu> and
38737 # Alejandro Forero Cuervo <bachue@bachue.com>
38738 # I found it in the ac-archive project on Source Forge.
38746 # First, check if the POSIX threads header, pthread.h, is available.
38747 # If it isn't
, don
't bother looking for the threads libraries.
38748 if test "${ac_cv_header_pthread_h+set}" = set; then
38749 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38750 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38751 if test "${ac_cv_header_pthread_h+set}" = set; then
38752 echo $ECHO_N "(cached) $ECHO_C" >&6
38754 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38755 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38757 # Is the header compilable?
38758 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
38759 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
38760 cat >conftest.$ac_ext <<_ACEOF
38763 cat confdefs.h >>conftest.$ac_ext
38764 cat >>conftest.$ac_ext <<_ACEOF
38765 /* end confdefs.h. */
38766 $ac_includes_default
38767 #include <pthread.h>
38769 rm -f conftest.$ac_objext
38770 if { (ac_try="$ac_compile"
38771 case "(($ac_try" in
38772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773 *) ac_try_echo=$ac_try;;
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776 (eval "$ac_compile") 2>conftest.er1
38778 grep -v '^
*+' conftest.er1 >conftest.err
38780 cat conftest.err >&5
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } && {
38783 test -z "$ac_c_werror_flag" ||
38784 test ! -s conftest.err
38785 } && test -s conftest.$ac_objext; then
38786 ac_header_compiler=yes
38788 echo "$as_me: failed program was:" >&5
38789 sed 's
/^
/|
/' conftest.$ac_ext >&5
38791 ac_header_compiler=no
38794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38796 echo "${ECHO_T}$ac_header_compiler" >&6; }
38798 # Is the header present?
38799 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
38800 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
38801 cat >conftest.$ac_ext <<_ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h. */
38807 #include <pthread.h>
38809 if { (ac_try="$ac_cpp conftest.$ac_ext"
38810 case "(($ac_try" in
38811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38812 *) ac_try_echo=$ac_try;;
38814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38817 grep -v '^
*+' conftest.er1 >conftest.err
38819 cat conftest.err >&5
38820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); } >/dev/null && {
38822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38823 test ! -s conftest.err
38825 ac_header_preproc=yes
38827 echo "$as_me: failed program was:" >&5
38828 sed 's
/^
/|
/' conftest.$ac_ext >&5
38830 ac_header_preproc=no
38833 rm -f conftest.err conftest.$ac_ext
38834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38835 echo "${ECHO_T}$ac_header_preproc" >&6; }
38837 # So? What about this header?
38838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38840 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
38841 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38842 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result
" >&5
38843 echo "$as_me: WARNING
: pthread.h
: proceeding with the compiler
's result" >&2;}
38844 ac_header_preproc=yes
38847 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
38848 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
38849 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
38850 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
38851 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
38852 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
38853 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
38854 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
38855 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result
" >&5
38856 echo "$as_me: WARNING
: pthread.h
: proceeding with the preprocessor
's result" >&2;}
38857 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
38858 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
38862 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38863 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38864 if test "${ac_cv_header_pthread_h+set}" = set; then
38865 echo $ECHO_N "(cached) $ECHO_C" >&6
38867 ac_cv_header_pthread_h=$ac_header_preproc
38869 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38870 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38873 if test $ac_cv_header_pthread_h = yes; then
38876 acx_pthread_ok=noheader
38881 # We must check for the threads library under a number of different
38882 # names; the ordering is very important because some systems
38883 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
38884 # libraries is broken (non-POSIX).
38886 # First of all, check if the user has set any of the PTHREAD_LIBS,
38887 # etcetera environment variables, and if threads linking works using
38889 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
38890 save_CFLAGS="$CFLAGS"
38891 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38892 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
38894 LIBS="$PTHREAD_LIBS $LIBS"
38895 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
38896 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
38897 cat >conftest.$ac_ext <<_ACEOF
38900 cat confdefs.h >>conftest.$ac_ext
38901 cat >>conftest.$ac_ext <<_ACEOF
38902 /* end confdefs.h. */
38904 /* Override any GCC internal prototype to avoid an error.
38905 Use char because int might match the return type of a GCC
38906 builtin and then its argument prototype would still apply. */
38910 char pthread_join ();
38914 return pthread_join ();
38919 rm -f conftest.$ac_objext conftest$ac_exeext
38920 if { (ac_try="$ac_link"
38921 case "(($ac_try" in
38922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38923 *) ac_try_echo=$ac_try;;
38925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38926 (eval "$ac_link") 2>conftest.er1
38928 grep -v '^
*+' conftest.er1 >conftest.err
38930 cat conftest.err >&5
38931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932 (exit $ac_status); } && {
38933 test -z "$ac_c_werror_flag" ||
38934 test ! -s conftest.err
38935 } && test -s conftest$ac_exeext &&
38936 $as_test_x conftest$ac_exeext; then
38939 echo "$as_me: failed program was:" >&5
38940 sed 's
/^
/|
/' conftest.$ac_ext >&5
38945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38946 conftest$ac_exeext conftest.$ac_ext
38947 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
38948 echo "${ECHO_T}$acx_pthread_ok" >&6; }
38949 if test x"$acx_pthread_ok" = xno; then
38954 CFLAGS="$save_CFLAGS"
38957 # Create a list of thread flags to try. Items starting with a "-" are
38958 # C compiler flags, and other items are library names, except for "none"
38959 # which indicates that we try without any flags at all.
38961 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
38963 # The ordering *is* (sometimes) important. Some notes on the
38964 # individual items follow:
38966 # pthreads: AIX (must check this before -lpthread)
38967 # none: in case threads are in libc; should be tried before -Kthread and
38968 # other compiler flags to prevent continual compiler warnings
38969 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
38970 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
38971 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
38972 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
38973 # -pthreads: Solaris/gcc
38974 # -mthreads: Mingw32/gcc, Lynx/gcc
38975 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
38976 # doesn't hurt to check since this sometimes defines pthreads too
;
38977 # also defines -D_REENTRANT)
38978 # pthread: Linux, etcetera
38979 # --thread-safe: KAI C++
38981 case "${host_cpu}-${host_os}" in
38984 # On Solaris (at least, for some versions), libc contains stubbed
38985 # (non-functional) versions of the pthreads routines, so link-based
38986 # tests will erroneously succeed. (We need to link with -pthread or
38987 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
38988 # a function called by this macro, so we could check for that, but
38989 # who knows whether they'll stub that too in a future libc.) So,
38990 # we'll just look for -pthreads and -lpthread first:
38992 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
38996 if test x
"$acx_pthread_ok" = xno
; then
38997 for flag
in $acx_pthread_flags; do
39001 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39002 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
39006 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39007 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
39008 PTHREAD_CFLAGS
="$flag"
39012 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39013 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
39014 PTHREAD_LIBS
="-l$flag"
39019 save_CFLAGS
="$CFLAGS"
39020 LIBS
="$PTHREAD_LIBS $LIBS"
39021 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
39023 # Check for various functions. We must include pthread.h,
39024 # since some functions may be macros. (On the Sequent, we
39025 # need a special flag -Kthread to make this header compile.)
39026 # We check for pthread_join because it is in -lpthread on IRIX
39027 # while pthread_create is in libc. We check for pthread_attr_init
39028 # due to DEC craziness with -lpthreads. We check for
39029 # pthread_cleanup_push because it is one of the few pthread
39030 # functions on Solaris that doesn't have a non-functional libc stub.
39031 # We try pthread_create on general principles.
39032 cat >conftest.
$ac_ext <<_ACEOF
39035 cat confdefs.h
>>conftest.
$ac_ext
39036 cat >>conftest.
$ac_ext <<_ACEOF
39037 /* end confdefs.h. */
39038 #include <pthread.h>
39042 pthread_t th; pthread_join(th, 0);
39043 pthread_attr_init(0); pthread_cleanup_push(0, 0);
39044 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
39049 rm -f conftest.
$ac_objext conftest
$ac_exeext
39050 if { (ac_try
="$ac_link"
39051 case "(($ac_try" in
39052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39053 *) ac_try_echo=$ac_try;;
39055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39056 (eval "$ac_link") 2>conftest.er1
39058 grep -v '^ *+' conftest.er1 >conftest.err
39060 cat conftest.err >&5
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); } && {
39063 test -z "$ac_c_werror_flag" ||
39064 test ! -s conftest.err
39065 } && test -s conftest$ac_exeext &&
39066 $as_test_x conftest$ac_exeext; then
39069 echo "$as_me: failed program was:" >&5
39070 sed 's/^/| /' conftest.$ac_ext >&5
39075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39076 conftest$ac_exeext conftest.$ac_ext
39079 CFLAGS="$save_CFLAGS"
39081 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
39082 echo "${ECHO_T}$acx_pthread_ok" >&6; }
39083 if test "x$acx_pthread_ok" = xyes; then
39092 # Various other checks:
39093 if test "x$acx_pthread_ok" = xyes; then
39095 LIBS="$PTHREAD_LIBS $LIBS"
39096 save_CFLAGS="$CFLAGS"
39097 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39099 # Detect AIX lossage: threads are created detached by default
39100 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
39101 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
39102 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
39103 cat >conftest.$ac_ext <<_ACEOF
39106 cat confdefs.h >>conftest.$ac_ext
39107 cat >>conftest.$ac_ext <<_ACEOF
39108 /* end confdefs.h. */
39109 #include <pthread.h>
39113 int attr=PTHREAD_CREATE_JOINABLE;
39118 rm -f conftest.$ac_objext conftest$ac_exeext
39119 if { (ac_try="$ac_link"
39120 case "(($ac_try" in
39121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39122 *) ac_try_echo
=$ac_try;;
39124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39125 (eval "$ac_link") 2>conftest.er1
39127 grep -v '^ *+' conftest.er1
>conftest.err
39129 cat conftest.err
>&5
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); } && {
39132 test -z "$ac_c_werror_flag" ||
39133 test ! -s conftest.err
39134 } && test -s conftest
$ac_exeext &&
39135 $as_test_x conftest
$ac_exeext; then
39136 ok
=PTHREAD_CREATE_JOINABLE
39138 echo "$as_me: failed program was:" >&5
39139 sed 's/^/| /' conftest.
$ac_ext >&5
39144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
39145 conftest
$ac_exeext conftest.
$ac_ext
39146 if test x
"$ok" = xunknown
; then
39147 cat >conftest.
$ac_ext <<_ACEOF
39150 cat confdefs.h
>>conftest.
$ac_ext
39151 cat >>conftest.
$ac_ext <<_ACEOF
39152 /* end confdefs.h. */
39153 #include <pthread.h>
39157 int attr=PTHREAD_CREATE_UNDETACHED;
39162 rm -f conftest.
$ac_objext conftest
$ac_exeext
39163 if { (ac_try
="$ac_link"
39164 case "(($ac_try" in
39165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39166 *) ac_try_echo=$ac_try;;
39168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39169 (eval "$ac_link") 2>conftest.er1
39171 grep -v '^ *+' conftest.er1 >conftest.err
39173 cat conftest.err >&5
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); } && {
39176 test -z "$ac_c_werror_flag" ||
39177 test ! -s conftest.err
39178 } && test -s conftest$ac_exeext &&
39179 $as_test_x conftest$ac_exeext; then
39180 ok=PTHREAD_CREATE_UNDETACHED
39182 echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39189 conftest$ac_exeext conftest.$ac_ext
39191 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
39193 cat >>confdefs.h <<\_ACEOF
39194 #define PTHREAD_CREATE_JOINABLE $ok
39198 { echo "$as_me:$LINENO: result: ${ok}" >&5
39199 echo "${ECHO_T}${ok}" >&6; }
39200 if test x"$ok" = xunknown; then
39201 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
39202 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
39205 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39206 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39208 case "${host_cpu}-${host_os}" in
39209 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
39210 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
39212 { echo "$as_me:$LINENO: result: ${flag}" >&5
39213 echo "${ECHO_T}${flag}" >&6; }
39214 if test "x$flag" != xno; then
39215 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
39219 CFLAGS="$save_CFLAGS"
39221 # More AIX lossage: must compile with cc_r
39222 # Extract the first word of "cc_r", so it can be a program name with args.
39223 set dummy cc_r; ac_word=$2
39224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39226 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39229 if test -n "$PTHREAD_CC"; then
39230 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
39232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39233 for as_dir in $PATH
39236 test -z "$as_dir" && as_dir=.
39237 for ac_exec_ext in '' $ac_executable_extensions; do
39238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39239 ac_cv_prog_PTHREAD_CC="cc_r"
39240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39247 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
39250 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
39251 if test -n "$PTHREAD_CC"; then
39252 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
39253 echo "${ECHO_T}$PTHREAD_CC" >&6; }
39255 { echo "$as_me:$LINENO: result: no" >&5
39256 echo "${ECHO_T}no" >&6; }
39268 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
39269 if test x"$acx_pthread_ok" = xyes; then
39272 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
39273 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
39274 #echo Using PTHREAD_CC=$PTHREAD_CC
39285 # since RFB (usually) needs pthread library, check that it was found.
39286 # But on win32 platforms, the pthread library is not needed.
39287 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
39288 if test "$pthread_ok" = yes; then
39289 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
39290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39291 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
39295 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
39296 # pthread not needed for win32 platform
39299 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
39305 { echo "$as_me:$LINENO: checking for guest to host TLB support (deprecated)" >&5
39306 echo $ECHO_N "checking for guest to host TLB support (deprecated)... $ECHO_C" >&6; }
39307 # Check whether --enable-guest2host-tlb was given.
39308 if test "${enable_guest2host_tlb+set}" = set; then
39309 enableval=$enable_guest2host_tlb; { echo "$as_me:$LINENO: result: $enableval" >&5
39310 echo "${ECHO_T}$enableval" >&6; }
39311 { { echo "$as_me:$LINENO: error: DEPRECATED - ALWAYS ON" >&5
39312 echo "$as_me: error: DEPRECATED - ALWAYS ON" >&2;}
39313 { (exit 1); exit 1; }; }
39317 { echo "$as_me:$LINENO: result: no" >&5
39318 echo "${ECHO_T}no" >&6; }
39323 { echo "$as_me:$LINENO: checking for external debugger interface (deprecated)" >&5
39324 echo $ECHO_N "checking for external debugger interface (deprecated)... $ECHO_C" >&6; }
39325 # Check whether --enable-external-debugger was given.
39326 if test "${enable_external_debugger+set}" = set; then
39327 enableval=$enable_external_debugger; { echo "$as_me:$LINENO: result: $enableval" >&5
39328 echo "${ECHO_T}$enableval" >&6; }
39329 { { echo "$as_me:$LINENO: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&5
39330 echo "$as_me: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&2;}
39331 { (exit 1); exit 1; }; }
39335 { echo "$as_me:$LINENO: result: no" >&5
39336 echo "${ECHO_T}no" >&6; }
39341 { echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
39342 echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
39343 # Check whether --enable-magic-breakpoints was given.
39344 if test "${enable_magic_breakpoints+set}" = set; then
39345 enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
39346 echo "${ECHO_T}$enableval" >&6; }
39347 { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
39348 echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
39349 { (exit 1); exit 1; }; }
39353 { echo "$as_me:$LINENO: result: no" >&5
39354 echo "${ECHO_T}no" >&6; }
39359 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
39360 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
39361 # Check whether --enable-save-restore was given.
39362 if test "${enable_save_restore+set}" = set; then
39363 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
39364 echo "${ECHO_T}$enableval" >&6; }
39365 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
39366 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
39367 { (exit 1); exit 1; }; }
39371 { echo "$as_me:$LINENO: result: no" >&5
39372 echo "${ECHO_T}no" >&6; }
39377 # Create some subdirectories for when you run configure from some other
39379 if test ! -d instrument; then mkdir instrument; fi
39380 if test ! -d build; then mkdir build; fi
39381 if test ! -d build/linux; then mkdir build/linux; fi
39382 if test ! -d build/win32; then mkdir build/win32; fi
39383 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
39423 # Extract the first word of "gzip", so it can be a program name with args.
39424 set dummy gzip; ac_word=$2
39425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39427 if test "${ac_cv_path_GZIP+set}" = set; then
39428 echo $ECHO_N "(cached) $ECHO_C" >&6
39432 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
39435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39436 for as_dir in $PATH
39439 test -z "$as_dir" && as_dir=.
39440 for ac_exec_ext in '' $ac_executable_extensions; do
39441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39442 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
39443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39453 GZIP=$ac_cv_path_GZIP
39454 if test -n "$GZIP"; then
39455 { echo "$as_me:$LINENO: result: $GZIP" >&5
39456 echo "${ECHO_T}$GZIP" >&6; }
39458 { echo "$as_me:$LINENO: result: no" >&5
39459 echo "${ECHO_T}no" >&6; }
39463 # Extract the first word of "tar", so it can be a program name with args.
39464 set dummy tar; ac_word=$2
39465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39467 if test "${ac_cv_path_TAR+set}" = set; then
39468 echo $ECHO_N "(cached) $ECHO_C" >&6
39472 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
39475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39476 for as_dir in $PATH
39479 test -z "$as_dir" && as_dir=.
39480 for ac_exec_ext in '' $ac_executable_extensions; do
39481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39482 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
39483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39493 TAR=$ac_cv_path_TAR
39494 if test -n "$TAR"; then
39495 { echo "$as_me:$LINENO: result: $TAR" >&5
39496 echo "${ECHO_T}$TAR" >&6; }
39498 { echo "$as_me:$LINENO: result: no" >&5
39499 echo "${ECHO_T}no" >&6; }
39504 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 bxversion.rc build/macosx/Info.plist build/win32/nsis/Makefile build/win32/nsis/bochs.nsi host/linux/pcidev/Makefile"
39506 cat >confcache <<\_ACEOF
39507 # This file is a shell script that caches the results of configure
39508 # tests run on this system so they can be shared between configure
39509 # scripts and configure runs, see configure's option --config-cache.
39510 # It is not useful on other systems. If it contains results you don't
39511 # want to keep, you may remove or edit it.
39513 # config.status only pays attention to the cache file if you give it
39514 # the --recheck option to rerun configure.
39516 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
39517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39518 # following values.
39522 # The following way of writing the cache mishandles newlines in values,
39523 # but we know of no workaround that is simple, portable, and efficient.
39524 # So, we kill variables containing newlines.
39525 # Ultrix sh set writes to stderr and can't be redirected directly,
39526 # and sets the high bit in the cache file unless we assign to the vars.
39528 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39529 eval ac_val
=\$
$ac_var
39533 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39534 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39537 _ | IFS | as_nl
) ;; #(
39538 *) $as_unset $ac_var ;;
39544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39545 *${as_nl}ac_space
=\
*)
39546 # `set' does not quote correctly, so add quotes (double-quote
39547 # substitution turns \\\\ into \\, and sed turns \\ into \).
39550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39553 # `set' quotes correctly as required by POSIX, so do not add quotes.
39554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39567 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
39568 if test -w "$cache_file"; then
39569 test "x$cache_file" != "x/dev/null" &&
39570 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39571 echo "$as_me: updating cache $cache_file" >&6;}
39572 cat confcache
>$cache_file
39574 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39575 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39580 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
39581 # Let make expand exec_prefix.
39582 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
39584 DEFS
=-DHAVE_CONFIG_H
39588 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
39589 # 1. Remove the extension, and $U if already installed.
39590 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
39591 ac_i
=`echo "$ac_i" | sed "$ac_script"`
39592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39593 # will be set to the directory where LIBOBJS objects are built.
39594 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39595 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39597 LIBOBJS
=$ac_libobjs
39599 LTLIBOBJS
=$ac_ltlibobjs
39603 : ${CONFIG_STATUS=./config.status}
39604 ac_clean_files_save
=$ac_clean_files
39605 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
39606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39608 cat >$CONFIG_STATUS <<_ACEOF
39610 # Generated by $as_me.
39611 # Run this file to recreate the current configuration.
39612 # Compiler output produced by configure, useful for debugging
39613 # configure, is in config.log if it exists.
39616 ac_cs_recheck=false
39618 SHELL=\${CONFIG_SHELL-$SHELL}
39621 cat >>$CONFIG_STATUS <<\_ACEOF
39622 ## --------------------- ##
39623 ## M4sh Initialization. ##
39624 ## --------------------- ##
39626 # Be more Bourne compatible
39627 DUALCASE
=1; export DUALCASE
# for MKS sh
39628 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
39631 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39632 # is contrary to our usage. Disable this feature.
39633 alias -g '${1+"$@"}'='"$@"'
39634 setopt NO_GLOB_SUBST
39636 case `(set -o) 2>/dev/null` in
39637 *posix
*) set -o posix
;;
39646 # Avoid depending upon Character Ranges.
39647 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39648 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39649 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39650 as_cr_digits
='0123456789'
39651 as_cr_alnum
=$as_cr_Letters$as_cr_digits
39653 # The user is always right.
39654 if test "${PATH_SEPARATOR+set}" != set; then
39655 echo "#! /bin/sh" >conf$$.sh
39656 echo "exit 0" >>conf$$.sh
39658 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
39666 # Support unset when possible.
39667 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
39675 # We need space, tab and new line, in precisely that order. Quoting is
39676 # there to prevent editors from complaining about space-tab.
39677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39678 # splitting by setting IFS to empty value.)
39683 # Find who we are. Look in the path if we contain no directory separator.
39685 *[\\/]* ) as_myself
=$0 ;;
39686 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
39687 for as_dir
in $PATH
39690 test -z "$as_dir" && as_dir
=.
39691 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
39697 # We did not find ourselves, most probably we were run as `sh COMMAND'
39698 # in which case we are not to be found in the path.
39699 if test "x$as_myself" = x
; then
39702 if test ! -f "$as_myself"; then
39703 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39704 { (exit 1); exit 1; }
39707 # Work around bugs in pre-3.0 UWIN ksh.
39708 for as_var
in ENV MAIL MAILPATH
39709 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
39717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39719 LC_TELEPHONE LC_TIME
39721 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39722 eval $as_var=C
; export $as_var
39724 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
39728 # Required to use basename.
39729 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
39730 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
39736 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39737 as_basename
=basename
39743 # Name of the executable.
39744 as_me
=`$as_basename -- "$0" ||
39745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39746 X"$0" : 'X\(//\)$' \| \
39747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39749 sed '/^.*\/\([^/][^/]*\)\/*$/{
39768 as_lineno_1
=$LINENO
39769 as_lineno_2
=$LINENO
39770 test "x$as_lineno_1" != "x$as_lineno_2" &&
39771 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
39773 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39774 # uniformly replaced by the line number. The first 'sed' inserts a
39775 # line-number line after each line using $LINENO; the second 'sed'
39776 # does the real work. The second script uses 'N' to pair each
39777 # line-number line with the line containing $LINENO, and appends
39778 # trailing '-' during substitution so that $LINENO is not a special
39779 # case at line end.
39780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39781 # scripts with optimization help from Paolo Bonzini. Blame Lee
39782 # E. McMahon (1931-1989) for sed's syntax. :-)
39794 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39797 ' >$as_me.lineno
&&
39798 chmod +x
"$as_me.lineno" ||
39799 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39800 { (exit 1); exit 1; }; }
39802 # Don't try to exec as it changes $[0], causing all sort of problems
39803 # (the dirname of $[0] is not the place where we might find the
39804 # original and so on. Autoconf is especially sensitive to this).
39805 .
"./$as_me.lineno"
39806 # Exit status is that of the last command.
39811 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
39817 ECHO_C
= ECHO_N
= ECHO_T
=
39818 case `echo -n x` in
39820 case `echo 'x\c'` in
39821 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
39828 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
39829 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
39835 rm -f conf$$ conf$$.exe conf$$.
file
39836 if test -d conf$$.dir
; then
39837 rm -f conf$$.dir
/conf$$.
file
39843 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
39845 # ... but there are two gotchas:
39846 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39847 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39848 # In both cases, we have to default to `cp -p'.
39849 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
39851 elif ln conf$$.
file conf$$
2>/dev
/null
; then
39856 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
39857 rmdir conf$$.dir
2>/dev
/null
39859 if mkdir
-p .
2>/dev
/null
; then
39862 test -d .
/-p && rmdir .
/-p
39866 if test -x / >/dev
/null
2>&1; then
39867 as_test_x
='test -x'
39869 if ls -dL / >/dev
/null
2>&1; then
39876 if test -d "$1"; then
39882 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39883 ???[sx]*):;;*)false;;esac;fi
39887 as_executable_p
=$as_test_x
39889 # Sed expression to map a string onto a valid CPP name.
39890 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39892 # Sed expression to map a string onto a valid variable name.
39893 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39898 # Save the log message, to keep $[0] and so on meaningful, and to
39899 # report actual input values of CONFIG_FILES etc. instead of their
39900 # values after options handling.
39902 This file was extended by $as_me, which was
39903 generated by GNU Autoconf 2.61. Invocation command line was
39905 CONFIG_FILES = $CONFIG_FILES
39906 CONFIG_HEADERS = $CONFIG_HEADERS
39907 CONFIG_LINKS = $CONFIG_LINKS
39908 CONFIG_COMMANDS = $CONFIG_COMMANDS
39911 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39916 cat >>$CONFIG_STATUS <<_ACEOF
39917 # Files that config.status was made for.
39918 config_files="$ac_config_files"
39919 config_headers="$ac_config_headers"
39923 cat >>$CONFIG_STATUS <<\_ACEOF
39925 \`$as_me' instantiates files from templates according to the
39926 current configuration.
39928 Usage: $0 [OPTIONS] [FILE]...
39930 -h, --help print this help, then exit
39931 -V, --version print version number and configuration settings, then exit
39932 -q, --quiet do not print progress messages
39933 -d, --debug don't remove temporary files
39934 --recheck update $as_me by reconfiguring in the same conditions
39935 --file=FILE[:TEMPLATE]
39936 instantiate the configuration file FILE
39937 --header=FILE[:TEMPLATE]
39938 instantiate the configuration header FILE
39940 Configuration files:
39943 Configuration headers:
39946 Report bugs to <bug-autoconf@gnu.org>."
39949 cat >>$CONFIG_STATUS <<_ACEOF
39952 configured by $0, generated by GNU Autoconf 2.61,
39953 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39955 Copyright (C) 2006 Free Software Foundation, Inc.
39956 This config.status script is free software; the Free Software Foundation
39957 gives unlimited permission to copy, distribute and modify it."
39963 cat >>$CONFIG_STATUS <<\_ACEOF
39964 # If no file are specified by the user, then we need to provide default
39965 # value. By we need to know if files were specified by the user.
39971 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
39972 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
39983 # Handling of the options.
39984 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
39986 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
39987 echo "$ac_cs_version"; exit ;;
39988 --debug |
--debu |
--deb |
--de |
--d |
-d )
39990 --file |
--fil |
--fi |
--f )
39992 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
39993 ac_need_defaults
=false
;;
39994 --header |
--heade |
--head |
--hea )
39996 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
39997 ac_need_defaults
=false
;;
39999 # Conflict between --help and --header
40000 { echo "$as_me: error: ambiguous option: $1
40001 Try \`$0 --help' for more information." >&2
40002 { (exit 1); exit 1; }; };;
40003 --help |
--hel |
-h )
40004 echo "$ac_cs_usage"; exit ;;
40005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
40006 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
40009 # This is an error.
40010 -*) { echo "$as_me: error: unrecognized option: $1
40011 Try \`$0 --help' for more information." >&2
40012 { (exit 1); exit 1; }; } ;;
40014 *) ac_config_targets
="$ac_config_targets $1"
40015 ac_need_defaults
=false
;;
40021 ac_configure_extra_args
=
40023 if $ac_cs_silent; then
40025 ac_configure_extra_args
="$ac_configure_extra_args --silent"
40029 cat >>$CONFIG_STATUS <<_ACEOF
40030 if \$ac_cs_recheck; then
40031 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40032 CONFIG_SHELL=$SHELL
40033 export CONFIG_SHELL
40034 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40038 cat >>$CONFIG_STATUS <<\_ACEOF
40042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40043 ## Running $as_me. ##
40049 cat >>$CONFIG_STATUS <<_ACEOF
40052 cat >>$CONFIG_STATUS <<\_ACEOF
40054 # Handling of arguments.
40055 for ac_config_target
in $ac_config_targets
40057 case $ac_config_target in
40058 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
40059 "ltdlconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ltdlconf.h" ;;
40060 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
40061 "iodev/Makefile") CONFIG_FILES
="$CONFIG_FILES iodev/Makefile" ;;
40062 "bx_debug/Makefile") CONFIG_FILES
="$CONFIG_FILES bx_debug/Makefile" ;;
40063 "bios/Makefile") CONFIG_FILES
="$CONFIG_FILES bios/Makefile" ;;
40064 "cpu/Makefile") CONFIG_FILES
="$CONFIG_FILES cpu/Makefile" ;;
40065 "memory/Makefile") CONFIG_FILES
="$CONFIG_FILES memory/Makefile" ;;
40066 "gui/Makefile") CONFIG_FILES
="$CONFIG_FILES gui/Makefile" ;;
40067 "disasm/Makefile") CONFIG_FILES
="$CONFIG_FILES disasm/Makefile" ;;
40068 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES
="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
40069 "misc/Makefile") CONFIG_FILES
="$CONFIG_FILES misc/Makefile" ;;
40070 "fpu/Makefile") CONFIG_FILES
="$CONFIG_FILES fpu/Makefile" ;;
40071 "doc/docbook/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/docbook/Makefile" ;;
40072 "build/linux/bochs-dlx") CONFIG_FILES
="$CONFIG_FILES build/linux/bochs-dlx" ;;
40073 "bxversion.h") CONFIG_FILES
="$CONFIG_FILES bxversion.h" ;;
40074 "bxversion.rc") CONFIG_FILES
="$CONFIG_FILES bxversion.rc" ;;
40075 "build/macosx/Info.plist") CONFIG_FILES
="$CONFIG_FILES build/macosx/Info.plist" ;;
40076 "build/win32/nsis/Makefile") CONFIG_FILES
="$CONFIG_FILES build/win32/nsis/Makefile" ;;
40077 "build/win32/nsis/bochs.nsi") CONFIG_FILES
="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
40078 "host/linux/pcidev/Makefile") CONFIG_FILES
="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
40080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40081 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40082 { (exit 1); exit 1; }; };;
40087 # If the user did not use the arguments to specify the items to instantiate,
40088 # then the envvar interface is used. Set only those that are not.
40089 # We use the long form for the default assignment because of an extremely
40090 # bizarre bug on SunOS 4.1.3.
40091 if $ac_need_defaults; then
40092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
40093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
40096 # Have a temporary directory for convenience. Make it in the build tree
40097 # simply because there is no reason against having it here, and in addition,
40098 # creating and moving files from /tmp can sometimes cause problems.
40099 # Hook for its removal unless debugging.
40100 # Note that there is a small window in which the directory will not be cleaned:
40101 # after its creation but before its name has been assigned to `$tmp'.
40105 trap 'exit_status=$?
40106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
40108 trap '{ (exit 1); exit 1; }' 1 2 13 15
40110 # Create a (secure) tmp directory for tmp files.
40113 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40114 test -n "$tmp" && test -d "$tmp"
40117 tmp
=.
/conf$$
-$RANDOM
40118 (umask 077 && mkdir
"$tmp")
40121 echo "$me: cannot create a temporary directory in ." >&2
40122 { (exit 1); exit 1; }
40126 # Set up the sed scripts for CONFIG_FILES section.
40129 # No need to generate the scripts if there are no CONFIG_FILES.
40130 # This happens for instance when ./config.status config.h
40131 if test -n "$CONFIG_FILES"; then
40138 for ac_last_try
in false false false false false
:; do
40139 cat >conf$
$subs.
sed <<_ACEOF
40140 SHELL!$SHELL$ac_delim
40141 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
40142 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
40143 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
40144 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
40145 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
40146 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
40147 exec_prefix!$exec_prefix$ac_delim
40148 prefix!$prefix$ac_delim
40149 program_transform_name!$program_transform_name$ac_delim
40150 bindir!$bindir$ac_delim
40151 sbindir!$sbindir$ac_delim
40152 libexecdir!$libexecdir$ac_delim
40153 datarootdir!$datarootdir$ac_delim
40154 datadir!$datadir$ac_delim
40155 sysconfdir!$sysconfdir$ac_delim
40156 sharedstatedir!$sharedstatedir$ac_delim
40157 localstatedir!$localstatedir$ac_delim
40158 includedir!$includedir$ac_delim
40159 oldincludedir!$oldincludedir$ac_delim
40160 docdir!$docdir$ac_delim
40161 infodir!$infodir$ac_delim
40162 htmldir!$htmldir$ac_delim
40163 dvidir!$dvidir$ac_delim
40164 pdfdir!$pdfdir$ac_delim
40165 psdir!$psdir$ac_delim
40166 libdir!$libdir$ac_delim
40167 localedir!$localedir$ac_delim
40168 mandir!$mandir$ac_delim
40169 DEFS!$DEFS$ac_delim
40170 ECHO_C!$ECHO_C$ac_delim
40171 ECHO_N!$ECHO_N$ac_delim
40172 ECHO_T!$ECHO_T$ac_delim
40173 LIBS!$LIBS$ac_delim
40174 build_alias!$build_alias$ac_delim
40175 host_alias!$host_alias$ac_delim
40176 target_alias!$target_alias$ac_delim
40177 build!$build$ac_delim
40178 build_cpu!$build_cpu$ac_delim
40179 build_vendor!$build_vendor$ac_delim
40180 build_os!$build_os$ac_delim
40181 host!$host$ac_delim
40182 host_cpu!$host_cpu$ac_delim
40183 host_vendor!$host_vendor$ac_delim
40184 host_os!$host_os$ac_delim
40185 target!$target$ac_delim
40186 target_cpu!$target_cpu$ac_delim
40187 target_vendor!$target_vendor$ac_delim
40188 target_os!$target_os$ac_delim
40190 CFLAGS!$CFLAGS$ac_delim
40191 LDFLAGS!$LDFLAGS$ac_delim
40192 CPPFLAGS!$CPPFLAGS$ac_delim
40193 ac_ct_CC!$ac_ct_CC$ac_delim
40194 EXEEXT!$EXEEXT$ac_delim
40195 OBJEXT!$OBJEXT$ac_delim
40197 CXXFLAGS!$CXXFLAGS$ac_delim
40198 ac_ct_CXX!$ac_ct_CXX$ac_delim
40199 SET_MAKE!$SET_MAKE$ac_delim
40200 GREP!$GREP$ac_delim
40201 EGREP!$EGREP$ac_delim
40202 LN_S!$LN_S$ac_delim
40203 ECHO!$ECHO$ac_delim
40205 RANLIB!$RANLIB$ac_delim
40206 STRIP!$STRIP$ac_delim
40208 CXXCPP!$CXXCPP$ac_delim
40210 FFLAGS!$FFLAGS$ac_delim
40211 ac_ct_F77!$ac_ct_F77$ac_delim
40212 LIBTOOL!$LIBTOOL$ac_delim
40213 LIBADD_DL!$LIBADD_DL$ac_delim
40214 XMKMF!$XMKMF$ac_delim
40215 X_CFLAGS!$X_CFLAGS$ac_delim
40216 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
40217 X_LIBS!$X_LIBS$ac_delim
40218 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
40219 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
40220 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
40221 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
40222 OBJS64!$OBJS64$ac_delim
40223 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
40224 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
40225 NE2K_OBJS!$NE2K_OBJS$ac_delim
40226 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
40227 PCI_OBJ!$PCI_OBJ$ac_delim
40228 KERNELDIR!$KERNELDIR$ac_delim
40229 LSMOD!$LSMOD$ac_delim
40230 INSMOD!$INSMOD$ac_delim
40231 RMMOD!$RMMOD$ac_delim
40232 DEPMOD!$DEPMOD$ac_delim
40233 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
40234 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
40235 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
40236 SCSI_OBJS!$SCSI_OBJS$ac_delim
40239 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40241 elif $ac_last_try; then
40242 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40244 { (exit 1); exit 1; }; }
40246 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
40250 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40251 if test -n "$ac_eof"; then
40252 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
40253 ac_eof
=`expr $ac_eof + 1`
40256 cat >>$CONFIG_STATUS <<_ACEOF
40257 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40262 s/^/s,@/; s/!/@,|#_!!_#|/
40265 s/'"$ac_delim"'$/,g/; t
40267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40268 ' >>$CONFIG_STATUS <conf$
$subs.
sed
40269 rm -f conf$
$subs.
sed
40270 cat >>$CONFIG_STATUS <<_ACEOF
40276 for ac_last_try
in false false false false false
:; do
40277 cat >conf$
$subs.
sed <<_ACEOF
40278 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
40279 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
40280 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
40281 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
40282 DISASM_VAR!$DISASM_VAR$ac_delim
40283 READLINE_LIB!$READLINE_LIB$ac_delim
40284 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
40285 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
40286 FPU_VAR!$FPU_VAR$ac_delim
40287 CDROM_OBJS!$CDROM_OBJS$ac_delim
40288 SB16_OBJS!$SB16_OBJS$ac_delim
40289 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
40290 SOUND_LINK_OPTS!$SOUND_LINK_OPTS$ac_delim
40291 GAME_OBJS!$GAME_OBJS$ac_delim
40292 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
40293 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
40294 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
40295 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
40296 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
40297 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
40298 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
40299 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
40300 INLINE_VAR!$INLINE_VAR$ac_delim
40301 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
40302 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
40303 RC_CMD!$RC_CMD$ac_delim
40304 WX_CONFIG!$WX_CONFIG$ac_delim
40305 XPM_LIB!$XPM_LIB$ac_delim
40306 PKG_CONFIG!$PKG_CONFIG$ac_delim
40307 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
40308 GTK_LIBS!$GTK_LIBS$ac_delim
40309 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
40310 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
40311 WX_CFLAGS!$WX_CFLAGS$ac_delim
40312 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
40313 WGET!$WGET$ac_delim
40314 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
40315 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
40316 PTHREAD_CC!$PTHREAD_CC$ac_delim
40317 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
40318 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
40319 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
40320 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
40321 RFB_LIBS!$RFB_LIBS$ac_delim
40322 GUI_OBJS!$GUI_OBJS$ac_delim
40323 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
40324 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
40325 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
40326 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
40327 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
40328 DASH!$DASH$ac_delim
40329 SLASH!$SLASH$ac_delim
40330 CXXFP!$CXXFP$ac_delim
40333 MAKELIB!$MAKELIB$ac_delim
40334 RMCOMMAND!$RMCOMMAND$ac_delim
40335 LINK!$LINK$ac_delim
40336 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
40338 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
40339 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
40340 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
40341 CD_UP_ONE!$CD_UP_ONE$ac_delim
40342 CD_UP_TWO!$CD_UP_TWO$ac_delim
40343 CD_UP_THREE!$CD_UP_THREE$ac_delim
40344 VERSION!$VERSION$ac_delim
40345 VER_STRING!$VER_STRING$ac_delim
40346 WIN_VER_STRING!$WIN_VER_STRING$ac_delim
40347 REL_STRING!$REL_STRING$ac_delim
40348 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
40349 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
40350 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
40351 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
40352 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
40353 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
40354 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
40355 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
40356 GZIP!$GZIP$ac_delim
40358 LIBOBJS!$LIBOBJS$ac_delim
40359 LTLIBOBJS!$LTLIBOBJS$ac_delim
40362 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
40364 elif $ac_last_try; then
40365 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40366 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40367 { (exit 1); exit 1; }; }
40369 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
40373 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40374 if test -n "$ac_eof"; then
40375 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
40376 ac_eof
=`expr $ac_eof + 1`
40379 cat >>$CONFIG_STATUS <<_ACEOF
40380 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40384 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40385 s/^/s,@/; s/!/@,|#_!!_#|/
40388 s/'"$ac_delim"'$/,g/; t
40390 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40391 ' >>$CONFIG_STATUS <conf$
$subs.
sed
40392 rm -f conf$
$subs.
sed
40393 cat >>$CONFIG_STATUS <<_ACEOF
40400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40402 # trailing colons and then remove the whole line if VPATH becomes empty
40403 # (actually we leave an empty line to preserve line numbers).
40404 if test "x$srcdir" = x.
; then
40405 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
40406 s/:*\$(srcdir):*/:/
40407 s/:*\${srcdir}:*/:/
40409 s/^\([^=]*=[ ]*\):*/\1/
40415 cat >>$CONFIG_STATUS <<\_ACEOF
40416 fi # test -n "$CONFIG_FILES"
40419 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
40422 :[FHLC
]) ac_mode
=$ac_tag; continue;;
40424 case $ac_mode$ac_tag in
40426 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40427 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40428 { (exit 1); exit 1; }; };;
40429 :[FH
]-) ac_tag
=-:-;;
40430 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
40447 -) ac_f
="$tmp/stdin";;
40448 *) # Look for the file first in the build tree, then in the source tree
40449 # (if the path is not absolute). The absolute path cannot be DOS-style,
40450 # because $ac_f cannot contain `:'.
40454 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
40456 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40457 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40458 { (exit 1); exit 1; }; };;
40460 ac_file_inputs
="$ac_file_inputs $ac_f"
40463 # Let's still pretend it is `configure' which instantiates (i.e., don't
40464 # use $as_me), people would be surprised to read:
40465 # /* config.h. Generated by config.status. */
40466 configure_input
="Generated from "`IFS=:
40467 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40468 if test x
"$ac_file" != x-
; then
40469 configure_input
="$ac_file. $configure_input"
40470 { echo "$as_me:$LINENO: creating $ac_file" >&5
40471 echo "$as_me: creating $ac_file" >&6;}
40475 *:-:* |
*:-) cat >"$tmp/stdin";;
40480 ac_dir
=`$as_dirname -- "$ac_file" ||
40481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40482 X"$ac_file" : 'X\(//\)[^/]' \| \
40483 X"$ac_file" : 'X\(//\)$' \| \
40484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40490 /^X\(\/\/\)[^/].*/{
40505 -*) as_dir
=.
/$as_dir;;
40507 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
40511 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40512 *) as_qdir
=$as_dir;;
40514 as_dirs
="'$as_qdir' $as_dirs"
40515 as_dir
=`$as_dirname -- "$as_dir" ||
40516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40517 X"$as_dir" : 'X\(//\)[^/]' \| \
40518 X"$as_dir" : 'X\(//\)$' \| \
40519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40525 /^X\(\/\/\)[^/].*/{
40538 test -d "$as_dir" && break
40540 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
40541 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40543 { (exit 1); exit 1; }; }; }
40547 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
40549 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40550 # A ".." for each directory in $ac_dir_suffix.
40551 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40552 case $ac_top_builddir_sub in
40553 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
40554 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
40557 ac_abs_top_builddir
=$ac_pwd
40558 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
40559 # for backward compatibility:
40560 ac_top_builddir
=$ac_top_build_prefix
40563 .
) # We are building in place.
40565 ac_top_srcdir
=$ac_top_builddir_sub
40566 ac_abs_top_srcdir
=$ac_pwd ;;
40567 [\\/]* | ?
:[\\/]* ) # Absolute name.
40568 ac_srcdir
=$srcdir$ac_dir_suffix;
40569 ac_top_srcdir
=$srcdir
40570 ac_abs_top_srcdir
=$srcdir ;;
40571 *) # Relative name.
40572 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
40573 ac_top_srcdir
=$ac_top_build_prefix$srcdir
40574 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
40576 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
40587 cat >>$CONFIG_STATUS <<\_ACEOF
40588 # If the template does not know about datarootdir, expand it.
40589 # FIXME: This hack should be removed a few years after 2.60.
40590 ac_datarootdir_hack
=; ac_datarootdir_seen
=
40592 case `sed -n '/datarootdir/ {
40601 ' $ac_file_inputs` in
40602 *datarootdir
*) ac_datarootdir_seen
=yes;;
40603 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
40604 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40605 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40607 cat >>$CONFIG_STATUS <<_ACEOF
40608 ac_datarootdir_hack='
40609 s&@datadir@&$datadir&g
40610 s&@docdir@&$docdir&g
40611 s&@infodir@&$infodir&g
40612 s&@localedir@&$localedir&g
40613 s&@mandir@&$mandir&g
40614 s&\\\${datarootdir}&$datarootdir&g' ;;
40618 # Neutralize VPATH when `$srcdir' = `.'.
40619 # Shell code in configure.ac might set extrasub.
40620 # FIXME: do we really want to maintain this feature?
40621 cat >>$CONFIG_STATUS <<_ACEOF
40625 cat >>$CONFIG_STATUS <<\_ACEOF
40627 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
40628 s
&@configure_input@
&$configure_input&;t t
40629 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
40630 s
&@srcdir@
&$ac_srcdir&;t t
40631 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
40632 s
&@top_srcdir@
&$ac_top_srcdir&;t t
40633 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
40634 s
&@builddir@
&$ac_builddir&;t t
40635 s
&@abs_builddir@
&$ac_abs_builddir&;t t
40636 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
40637 $ac_datarootdir_hack
40638 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
40640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40641 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
40642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
40643 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
40644 which seems to be undefined. Please make sure it is defined." >&5
40645 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
40646 which seems to be undefined. Please make sure it is defined." >&2;}
40650 -) cat "$tmp/out"; rm -f "$tmp/out";;
40651 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40660 # Transform confdefs.h into a sed script `conftest.defines', that
40661 # substitutes the proper values into config.h.in to produce config.h.
40662 rm -f conftest.defines conftest.
tail
40663 # First, append a space to every undef/define line, to ease matching.
40664 echo 's/$/ /' >conftest.defines
40665 # Then, protect against being on the right side of a sed subst, or in
40666 # an unquoted here document, in config.status. If some macros were
40667 # called several times there might be several #defines for the same
40668 # symbol, which is useless. But do not sort them, since the last
40669 # AC_DEFINE must be honored.
40670 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
40671 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40672 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40673 # PARAMS is the parameter list in the macro definition--in most cases, it's
40674 # just an empty string.
40675 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40676 ac_dB
='\\)[ (].*,\\1define\\2'
40684 s/^[ ]*#[ ]*define[ ][ ]*//
40689 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40690 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40691 ' >>conftest.defines
40693 # Remove the space that was appended to ease matching.
40694 # Then replace #undef with comments. This is necessary, for
40695 # example, in the case of _POSIX_SOURCE, which is predefined and required
40696 # on some systems where configure will not decide to define it.
40697 # (The regexp can be short, since the line contains either #define or #undef.)
40699 s,^[ #]*u.*,/* & */,' >>conftest.defines
40701 # Break up conftest.defines:
40702 ac_max_sed_lines
=50
40704 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40705 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40706 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40708 ac_in
='$ac_file_inputs'
40709 ac_out
='"$tmp/out1"'
40710 ac_nxt
='"$tmp/out2"'
40714 # Write a here document:
40715 cat >>$CONFIG_STATUS <<_ACEOF
40716 # First, check the format of the line:
40717 cat >"\$tmp/defines.sed" <<\\CEOF
40718 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40719 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40723 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
40725 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40726 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
40727 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
40728 grep . conftest.
tail >/dev
/null ||
break
40729 rm -f conftest.defines
40730 mv conftest.
tail conftest.defines
40732 rm -f conftest.defines conftest.
tail
40734 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40735 cat >>$CONFIG_STATUS <<\_ACEOF
40736 if test x
"$ac_file" != x-
; then
40737 echo "/* $configure_input */" >"$tmp/config.h"
40738 cat "$ac_result" >>"$tmp/config.h"
40739 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
40740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40741 echo "$as_me: $ac_file is unchanged" >&6;}
40744 mv "$tmp/config.h" $ac_file
40747 echo "/* $configure_input */"
40759 { (exit 0); exit 0; }
40761 chmod +x
$CONFIG_STATUS
40762 ac_clean_files
=$ac_clean_files_save
40765 # configure is writing to config.log, and then calls config.status.
40766 # config.status does its own redirection, appending to config.log.
40767 # Unfortunately, on DOS this fails, as config.log is still kept open
40768 # by configure, so config.status won't be able to write to it; its
40769 # output is simply discarded. So we exec the FD to /dev/null,
40770 # effectively closing config.log, so it can be properly (re)opened and
40771 # appended to by config.status. When coming back to configure, we
40772 # need to make the FD available again.
40773 if test "$no_create" != yes; then
40775 ac_config_status_args
=
40776 test "$silent" = yes &&
40777 ac_config_status_args
="$ac_config_status_args --quiet"
40779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
40781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40782 # would make configure fail if this is the last instruction.
40783 $ac_cs_success ||
{ (exit 1); exit 1; }